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_3181
rasdani/github-patches
git_diff
translate__pootle-6456
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Terminology is not updated when term units are updated the terminology stemmer listens to `submission.post_save` - but submissions are always `bulk_created` so it doesn't seem to get triggered --- END ISSUE ...
diff --git a/pootle/apps/pootle_terminology/receivers.py b/pootle/apps/pootle_terminology/receivers.py --- a/pootle/apps/pootle_terminology/receivers.py +++ b/pootle/apps/pootle_terminology/receivers.py @@ -34,7 +34,7 @@ @receiver(post_save, sender=Submission) def handle_submission_save(**kwargs): sub = kwargs["...
{"golden_diff": "diff --git a/pootle/apps/pootle_terminology/receivers.py b/pootle/apps/pootle_terminology/receivers.py\n--- a/pootle/apps/pootle_terminology/receivers.py\n+++ b/pootle/apps/pootle_terminology/receivers.py\n@@ -34,7 +34,7 @@\n @receiver(post_save, sender=Submission)\n def handle_submission_save(**kwargs...
741
143
gh_patches_debug_9819
rasdani/github-patches
git_diff
opensearch-project__opensearch-build-1520
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug]: Maven sign and upload should be done inside a docker container ### Describe the bug We should be using a docker container to run jenkinsjob. https://github.com/opensearch-project/opensearch-infra/...
diff --git a/src/run_sign.py b/src/run_sign.py --- a/src/run_sign.py +++ b/src/run_sign.py @@ -24,6 +24,7 @@ parser.add_argument("--component", nargs="?", help="Component name") parser.add_argument("--type", nargs="?", help="Artifact type") parser.add_argument("--sigtype", choices=ACCEPTED_SIGNATURE_FILE...
{"golden_diff": "diff --git a/src/run_sign.py b/src/run_sign.py\n--- a/src/run_sign.py\n+++ b/src/run_sign.py\n@@ -24,6 +24,7 @@\n parser.add_argument(\"--component\", nargs=\"?\", help=\"Component name\")\n parser.add_argument(\"--type\", nargs=\"?\", help=\"Artifact type\")\n parser.add_argument(\"--sigty...
852
131
gh_patches_debug_67079
rasdani/github-patches
git_diff
vyperlang__vyper-3936
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `vyper-serve` is still lingering in `setup.py` ### Version Information * vyper Version (output of `vyper --version`): doesn't matter * OS: doesn't matter * Python Version (output of `python --version`): ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -103,7 +103,6 @@ entry_points={ "console_scripts": [ "vyper=vyper.cli.vyper_compile:_parse_cli_args", - "vyper-serve=vyper.cli.vyper_serve:_parse_cli_args", "fang=vyper.cli.vyper_ir:_parse_cli_args", ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -103,7 +103,6 @@\n entry_points={\n \"console_scripts\": [\n \"vyper=vyper.cli.vyper_compile:_parse_cli_args\",\n- \"vyper-serve=vyper.cli.vyper_serve:_parse_cli_args\",\n \"fang=vyper.cl...
1,844
114
gh_patches_debug_7424
rasdani/github-patches
git_diff
facebookresearch__habitat-lab-132
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Recursive directory lookup can take long This [line](https://github.com/facebookresearch/habitat-api/blob/master/setup.py#L38) looks for requirements.txt under all directories, this can be especially costly i...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -35,7 +35,9 @@ DEFAULT_EXCLUSION = ["test", "examples"] FULL_REQUIREMENTS = set() # collect requirements.txt file in all subdirectories -for file_name in glob.glob("**/requirements.txt", recursive=True): +for file_name in ["requirements.txt"] + glob.g...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -35,7 +35,9 @@\n DEFAULT_EXCLUSION = [\"test\", \"examples\"]\n FULL_REQUIREMENTS = set()\n # collect requirements.txt file in all subdirectories\n-for file_name in glob.glob(\"**/requirements.txt\", recursive=True):\n+for file_name i...
1,202
132
gh_patches_debug_40883
rasdani/github-patches
git_diff
fossasia__open-event-server-5135
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add completed orders to order-statistics endpoint **Is your feature request related to a problem? Please describe.** Currently order statistics endpoint does not return completed orders. **Describe the so...
diff --git a/app/api/order_statistics/events.py b/app/api/order_statistics/events.py --- a/app/api/order_statistics/events.py +++ b/app/api/order_statistics/events.py @@ -46,13 +46,16 @@ Order.event_id == obj_id, Order.status == 'expired').scalar() placed = db.session.query(func.sum(OrderTicket.qu...
{"golden_diff": "diff --git a/app/api/order_statistics/events.py b/app/api/order_statistics/events.py\n--- a/app/api/order_statistics/events.py\n+++ b/app/api/order_statistics/events.py\n@@ -46,13 +46,16 @@\n Order.event_id == obj_id, Order.status == 'expired').scalar()\n placed = db.session.query(f...
1,728
601
gh_patches_debug_5684
rasdani/github-patches
git_diff
pulp__pulpcore-4011
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- RESTAPI document fix for Upstream Pulp Replication API **Version** Pulp installed through the Python modules. "core:3.28.0" "certguard:3.28.0" "file:3.28.0" "python:3.28.0" "rpm:3.28.0" **Describe th...
diff --git a/pulpcore/app/viewsets/replica.py b/pulpcore/app/viewsets/replica.py --- a/pulpcore/app/viewsets/replica.py +++ b/pulpcore/app/viewsets/replica.py @@ -33,6 +33,7 @@ summary="Replicate", description="Trigger an asynchronous repository replication task group. This API is " "provided...
{"golden_diff": "diff --git a/pulpcore/app/viewsets/replica.py b/pulpcore/app/viewsets/replica.py\n--- a/pulpcore/app/viewsets/replica.py\n+++ b/pulpcore/app/viewsets/replica.py\n@@ -33,6 +33,7 @@\n summary=\"Replicate\",\n description=\"Trigger an asynchronous repository replication task group. This AP...
1,049
122
gh_patches_debug_121
rasdani/github-patches
git_diff
rotki__rotki-4490
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Extract SQLCipher and pysqlcipher building to different repo ## Problem Definition We have pinned versions of SQLCipher, and pysqlcipher that we use. The build of SQLCipher happens on every build, docke...
diff --git a/tools/pyinstaller_hooks/hook-pysqlcipher3.py b/tools/pyinstaller_hooks/hook-pysqlcipher3.py --- a/tools/pyinstaller_hooks/hook-pysqlcipher3.py +++ b/tools/pyinstaller_hooks/hook-pysqlcipher3.py @@ -1,3 +1,3 @@ from PyInstaller.utils.hooks import copy_metadata -datas = copy_metadata("pysqlcipher3") +data...
{"golden_diff": "diff --git a/tools/pyinstaller_hooks/hook-pysqlcipher3.py b/tools/pyinstaller_hooks/hook-pysqlcipher3.py\n--- a/tools/pyinstaller_hooks/hook-pysqlcipher3.py\n+++ b/tools/pyinstaller_hooks/hook-pysqlcipher3.py\n@@ -1,3 +1,3 @@\n from PyInstaller.utils.hooks import copy_metadata\n \n-datas = copy_metadat...
457
100
gh_patches_debug_36020
rasdani/github-patches
git_diff
scoutapp__scout_apm_python-711
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PyMongo v4 removed collection methods [PyMongo v4 removed a number of collection methods](https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html). While the agent still functions properly, it's log...
diff --git a/src/scout_apm/instruments/pymongo.py b/src/scout_apm/instruments/pymongo.py --- a/src/scout_apm/instruments/pymongo.py +++ b/src/scout_apm/instruments/pymongo.py @@ -8,8 +8,10 @@ from scout_apm.core.tracked_request import TrackedRequest try: + import pymongo from pymongo.collection import Colle...
{"golden_diff": "diff --git a/src/scout_apm/instruments/pymongo.py b/src/scout_apm/instruments/pymongo.py\n--- a/src/scout_apm/instruments/pymongo.py\n+++ b/src/scout_apm/instruments/pymongo.py\n@@ -8,8 +8,10 @@\n from scout_apm.core.tracked_request import TrackedRequest\n \n try:\n+ import pymongo\n from pymong...
1,012
515
gh_patches_debug_16145
rasdani/github-patches
git_diff
dmlc__dgl-4219
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Example][Bug] Running error on the example case: example/pytorch/dimenet ## 🐛 Bug Dimenet example is crashed. ## To Reproduce `python main.py --model-cnf config/dimenet.yaml` ``` Traceback (mo...
diff --git a/examples/pytorch/dimenet/modules/bessel_basis_layer.py b/examples/pytorch/dimenet/modules/bessel_basis_layer.py --- a/examples/pytorch/dimenet/modules/bessel_basis_layer.py +++ b/examples/pytorch/dimenet/modules/bessel_basis_layer.py @@ -17,7 +17,9 @@ self.reset_params() def reset_params(se...
{"golden_diff": "diff --git a/examples/pytorch/dimenet/modules/bessel_basis_layer.py b/examples/pytorch/dimenet/modules/bessel_basis_layer.py\n--- a/examples/pytorch/dimenet/modules/bessel_basis_layer.py\n+++ b/examples/pytorch/dimenet/modules/bessel_basis_layer.py\n@@ -17,7 +17,9 @@\n self.reset_params()\n \n ...
1,084
249
gh_patches_debug_22613
rasdani/github-patches
git_diff
facebookresearch__fairscale-237
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [ShardedGradScaler] Handle optimizers not being OSS instances ## 🚀 Feature Some frameworks (Classy for instance) change the optimizers to enable different non-pytorch-compliant features. ShardedGradScaler a...
diff --git a/fairscale/optim/grad_scaler.py b/fairscale/optim/grad_scaler.py --- a/fairscale/optim/grad_scaler.py +++ b/fairscale/optim/grad_scaler.py @@ -3,6 +3,7 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. +import logging from typ...
{"golden_diff": "diff --git a/fairscale/optim/grad_scaler.py b/fairscale/optim/grad_scaler.py\n--- a/fairscale/optim/grad_scaler.py\n+++ b/fairscale/optim/grad_scaler.py\n@@ -3,6 +3,7 @@\n # This source code is licensed under the MIT license found in the\n # LICENSE file in the root directory of this source tree.\n \n+...
870
287
gh_patches_debug_29280
rasdani/github-patches
git_diff
lightly-ai__lightly-993
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NNMemoryBank not working with DataParallel I have been using the NNMemoryBank as a component in my module and noticed that at each forward pass `NNMemoryBank.bank` is equal to `None`. This only occurs when my...
diff --git a/lightly/loss/memory_bank.py b/lightly/loss/memory_bank.py --- a/lightly/loss/memory_bank.py +++ b/lightly/loss/memory_bank.py @@ -46,10 +46,9 @@ raise ValueError(msg) self.size = size + self.register_buffer("bank", tensor=torch.empty(0, dtype=torch.float), persistent=False) +...
{"golden_diff": "diff --git a/lightly/loss/memory_bank.py b/lightly/loss/memory_bank.py\n--- a/lightly/loss/memory_bank.py\n+++ b/lightly/loss/memory_bank.py\n@@ -46,10 +46,9 @@\n raise ValueError(msg)\n \n self.size = size\n+ self.register_buffer(\"bank\", tensor=torch.empty(0, dtype=torch.f...
1,607
384
gh_patches_debug_9243
rasdani/github-patches
git_diff
getnikola__nikola-971
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Drafts are leaked in feeds Reported by @kayhayen in the mailing list. Proposed patch breaks tests, so checking things out a bit more carefully. --- END ISSUE --- Below are some code segments, each from a r...
diff --git a/nikola/plugins/task/rss.py b/nikola/plugins/task/rss.py --- a/nikola/plugins/task/rss.py +++ b/nikola/plugins/task/rss.py @@ -58,6 +58,11 @@ "feed_length": self.site.config['FEED_LENGTH'], } self.site.scan_posts() + # Check for any changes in the state of use_in_feeds ...
{"golden_diff": "diff --git a/nikola/plugins/task/rss.py b/nikola/plugins/task/rss.py\n--- a/nikola/plugins/task/rss.py\n+++ b/nikola/plugins/task/rss.py\n@@ -58,6 +58,11 @@\n \"feed_length\": self.site.config['FEED_LENGTH'],\n }\n self.site.scan_posts()\n+ # Check for any changes in ...
1,295
168
gh_patches_debug_20570
rasdani/github-patches
git_diff
nvaccess__nvda-13213
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- nvda is not reading the result of the accounts in the windows calculator history ### Steps to reproduce: open windows calculator do at least two operations walk with tabe until nvda advertise list, list...
diff --git a/source/appModules/calculator.py b/source/appModules/calculator.py --- a/source/appModules/calculator.py +++ b/source/appModules/calculator.py @@ -1,5 +1,5 @@ # A part of NonVisual Desktop Access (NVDA) -# Copyright (C) 2020-2021 NV Access Limited, Joseph Lee +# Copyright (C) 2020-2022 NV Access Limited, J...
{"golden_diff": "diff --git a/source/appModules/calculator.py b/source/appModules/calculator.py\n--- a/source/appModules/calculator.py\n+++ b/source/appModules/calculator.py\n@@ -1,5 +1,5 @@\n # A part of NonVisual Desktop Access (NVDA)\n-# Copyright (C) 2020-2021 NV Access Limited, Joseph Lee\n+# Copyright (C) 2020-20...
1,943
317
gh_patches_debug_21516
rasdani/github-patches
git_diff
python-telegram-bot__python-telegram-bot-3514
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Don't allow more than 2 dimensional input for `Inline/ReplyKeyboardMarkup` ### What kind of feature are you missing? Where do you notice a shortcoming of PTB? When a user passes their list to `Inline/ReplyKe...
diff --git a/telegram/_utils/markup.py b/telegram/_utils/markup.py --- a/telegram/_utils/markup.py +++ b/telegram/_utils/markup.py @@ -31,7 +31,7 @@ def check_keyboard_type(keyboard: object) -> bool: - """Checks if the keyboard provided is of the correct type - A list of lists. + """Checks if the keyboard pr...
{"golden_diff": "diff --git a/telegram/_utils/markup.py b/telegram/_utils/markup.py\n--- a/telegram/_utils/markup.py\n+++ b/telegram/_utils/markup.py\n@@ -31,7 +31,7 @@\n \n \n def check_keyboard_type(keyboard: object) -> bool:\n- \"\"\"Checks if the keyboard provided is of the correct type - A list of lists.\n+ ...
973
242
gh_patches_debug_6602
rasdani/github-patches
git_diff
encode__starlette-1410
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ETag checksum fails on FIPS-enabled systems when using MD5 ### Checklist <!-- Please make sure you check all these items before submitting your bug report. --> - [x] The bug is reproducible against the ...
diff --git a/starlette/_compat.py b/starlette/_compat.py --- a/starlette/_compat.py +++ b/starlette/_compat.py @@ -11,7 +11,10 @@ # See issue: https://github.com/encode/starlette/issues/1365 try: - hashlib.md5(b"data", usedforsecurity=True) # type: ignore[call-arg] + # check if the Python version supports th...
{"golden_diff": "diff --git a/starlette/_compat.py b/starlette/_compat.py\n--- a/starlette/_compat.py\n+++ b/starlette/_compat.py\n@@ -11,7 +11,10 @@\n # See issue: https://github.com/encode/starlette/issues/1365\n try:\n \n- hashlib.md5(b\"data\", usedforsecurity=True) # type: ignore[call-arg]\n+ # check if the...
1,385
174
gh_patches_debug_43922
rasdani/github-patches
git_diff
certbot__certbot-5329
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Install Python3 via EPEL on CentOS6 with letsencrypt-auto? CentOS 6 ships with Python 2.6 by default, which isn't 100% stably supported by letsencrypt, and which the Python community at large is trying to dro...
diff --git a/letsencrypt-auto-source/pieces/fetch.py b/letsencrypt-auto-source/pieces/fetch.py --- a/letsencrypt-auto-source/pieces/fetch.py +++ b/letsencrypt-auto-source/pieces/fetch.py @@ -11,17 +11,22 @@ """ -from __future__ import print_function +from __future__ import print_function, unicode_literals from ...
{"golden_diff": "diff --git a/letsencrypt-auto-source/pieces/fetch.py b/letsencrypt-auto-source/pieces/fetch.py\n--- a/letsencrypt-auto-source/pieces/fetch.py\n+++ b/letsencrypt-auto-source/pieces/fetch.py\n@@ -11,17 +11,22 @@\n \n \"\"\"\n \n-from __future__ import print_function\n+from __future__ import print_functio...
2,008
999
gh_patches_debug_8956
rasdani/github-patches
git_diff
keras-team__keras-11147
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sync naming convention and style in NLP datasets Also fixes a possible bug with np.load()/f.close() pair not being exception-safe. --- END ISSUE --- Below are some code segments, each from a relevant file. ...
diff --git a/keras/datasets/boston_housing.py b/keras/datasets/boston_housing.py --- a/keras/datasets/boston_housing.py +++ b/keras/datasets/boston_housing.py @@ -25,10 +25,9 @@ path = get_file(path, origin='https://s3.amazonaws.com/keras-datasets/boston_housing.npz', file...
{"golden_diff": "diff --git a/keras/datasets/boston_housing.py b/keras/datasets/boston_housing.py\n--- a/keras/datasets/boston_housing.py\n+++ b/keras/datasets/boston_housing.py\n@@ -25,10 +25,9 @@\n path = get_file(path,\n origin='https://s3.amazonaws.com/keras-datasets/boston_housing.npz',\n ...
797
228
gh_patches_debug_159
rasdani/github-patches
git_diff
uccser__cs-unplugged-54
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add Bootstrap 4 SCSS --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `csunplugged/config/settings.py` Conte...
diff --git a/csunplugged/config/settings.py b/csunplugged/config/settings.py --- a/csunplugged/config/settings.py +++ b/csunplugged/config/settings.py @@ -126,5 +126,5 @@ STATIC_URL = '/static/' STATICFILES_DIRS = ( - os.path.join(BASE_DIR, 'static'), + os.path.join(BASE_DIR, 'build'), )
{"golden_diff": "diff --git a/csunplugged/config/settings.py b/csunplugged/config/settings.py\n--- a/csunplugged/config/settings.py\n+++ b/csunplugged/config/settings.py\n@@ -126,5 +126,5 @@\n \n STATIC_URL = '/static/'\n STATICFILES_DIRS = (\n- os.path.join(BASE_DIR, 'static'),\n+ os.path.join(BASE_DIR, ...
1,380
90
gh_patches_debug_20201
rasdani/github-patches
git_diff
translate__pootle-4492
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add test if TP uses a proper checker This commit https://github.com/translate/pootle/commit/1d6ef1c987f2ee421b678fb9ac36e16175e4f364 fixed very hidden bug, let's add a test for it. --- END ISSUE --- Below ...
diff --git a/pytest_pootle/fixtures/models/translation_project.py b/pytest_pootle/fixtures/models/translation_project.py --- a/pytest_pootle/fixtures/models/translation_project.py +++ b/pytest_pootle/fixtures/models/translation_project.py @@ -7,6 +7,8 @@ # or later license. See the LICENSE file for a copy of the licen...
{"golden_diff": "diff --git a/pytest_pootle/fixtures/models/translation_project.py b/pytest_pootle/fixtures/models/translation_project.py\n--- a/pytest_pootle/fixtures/models/translation_project.py\n+++ b/pytest_pootle/fixtures/models/translation_project.py\n@@ -7,6 +7,8 @@\n # or later license. See the LICENSE file fo...
991
279
gh_patches_debug_24147
rasdani/github-patches
git_diff
UTNkar__moore-310
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Raw HTML content type <!-- Do you want to ask a question? Are you looking for support? The system administrator can help you: admin@utn.se --> ### Description There is currently no content type for raw HT...
diff --git a/src/home/models/web_page.py b/src/home/models/web_page.py --- a/src/home/models/web_page.py +++ b/src/home/models/web_page.py @@ -5,6 +5,7 @@ TabbedInterface, ObjectList from wagtail.core.fields import StreamField from wagtail.core.models import Page +from wagtail.core.blocks import RawHTMLBlock...
{"golden_diff": "diff --git a/src/home/models/web_page.py b/src/home/models/web_page.py\n--- a/src/home/models/web_page.py\n+++ b/src/home/models/web_page.py\n@@ -5,6 +5,7 @@\n TabbedInterface, ObjectList\n from wagtail.core.fields import StreamField\n from wagtail.core.models import Page\n+from wagtail.core.bl...
919
227
gh_patches_debug_17224
rasdani/github-patches
git_diff
cobbler__cobbler-626
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 'get-loader' needs syslinux updating. I've confirmed that the version of syslinux (3.61) currently in get-loader will not let you deploy vmware 5.1 on random machine. It errors with "fatal error: 10 (out of...
diff --git a/cobbler/action_dlcontent.py b/cobbler/action_dlcontent.py --- a/cobbler/action_dlcontent.py +++ b/cobbler/action_dlcontent.py @@ -56,8 +56,8 @@ ( "%s/COPYING.syslinux" % content_server, "%s/COPYING.syslinux" % dest), ( "%s/elilo-3.8-ia64.efi" % content_server, "%s/elilo-ia64.efi" % de...
{"golden_diff": "diff --git a/cobbler/action_dlcontent.py b/cobbler/action_dlcontent.py\n--- a/cobbler/action_dlcontent.py\n+++ b/cobbler/action_dlcontent.py\n@@ -56,8 +56,8 @@\n ( \"%s/COPYING.syslinux\" % content_server, \"%s/COPYING.syslinux\" % dest),\n ( \"%s/elilo-3.8-ia64.efi\" % content_serv...
1,444
343
gh_patches_debug_11180
rasdani/github-patches
git_diff
scrapy__scrapy-4761
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Have tests generate a certificate on-the-fly Unless we want to be doing https://github.com/scrapy/scrapy/pull/4650 every year, we should look into making tests generate a fresh certificate at run time. --- E...
diff --git a/conftest.py b/conftest.py --- a/conftest.py +++ b/conftest.py @@ -2,6 +2,8 @@ import pytest +from tests.keys import generate_keys + def _py_files(folder): return (str(p) for p in Path(folder).rglob('*.py')) @@ -53,3 +55,7 @@ def only_asyncio(request, reactor_pytest): if request.node.get_...
{"golden_diff": "diff --git a/conftest.py b/conftest.py\n--- a/conftest.py\n+++ b/conftest.py\n@@ -2,6 +2,8 @@\n \n import pytest\n \n+from tests.keys import generate_keys\n+\n \n def _py_files(folder):\n return (str(p) for p in Path(folder).rglob('*.py'))\n@@ -53,3 +55,7 @@\n def only_asyncio(request, reactor_pyte...
812
154
gh_patches_debug_25712
rasdani/github-patches
git_diff
cisagov__manage.get.gov-829
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add field for tribe locality on Tribal Goverment Question Page ### Story As a Registrant Applicant I want a way to specify the locality of my tribe so that I can give analysts more specific information to...
diff --git a/src/registrar/templatetags/custom_filters.py b/src/registrar/templatetags/custom_filters.py --- a/src/registrar/templatetags/custom_filters.py +++ b/src/registrar/templatetags/custom_filters.py @@ -23,3 +23,20 @@ extracted_text = "" return extracted_text + + +@register.filter +def find_inde...
{"golden_diff": "diff --git a/src/registrar/templatetags/custom_filters.py b/src/registrar/templatetags/custom_filters.py\n--- a/src/registrar/templatetags/custom_filters.py\n+++ b/src/registrar/templatetags/custom_filters.py\n@@ -23,3 +23,20 @@\n extracted_text = \"\"\n \n return extracted_text\n+\n+\n+@re...
1,351
403
gh_patches_debug_12955
rasdani/github-patches
git_diff
sopel-irc__sopel-2052
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- find_updates: Unexpected error (local variable 'info' referenced before assignment) ### Description An error is logged, errors shouldn't happen. ### Reproduction steps Seen in log channel, unknown, run t...
diff --git a/sopel/modules/find_updates.py b/sopel/modules/find_updates.py --- a/sopel/modules/find_updates.py +++ b/sopel/modules/find_updates.py @@ -67,8 +67,14 @@ except ValueError: # TODO: use JSONDecodeError when dropping Pythons < 3.5 _check_failed(bot) + success = False - if no...
{"golden_diff": "diff --git a/sopel/modules/find_updates.py b/sopel/modules/find_updates.py\n--- a/sopel/modules/find_updates.py\n+++ b/sopel/modules/find_updates.py\n@@ -67,8 +67,14 @@\n except ValueError:\n # TODO: use JSONDecodeError when dropping Pythons < 3.5\n _check_failed(bot)\n+ succ...
1,579
200
gh_patches_debug_32345
rasdani/github-patches
git_diff
optuna__optuna-1103
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `plot_intermediate_values` example code does not contain intermediate values. The example code snippet embedded in the documentation for [`plot_intermediate_values`](https://github.com/optuna/optuna/blob/mast...
diff --git a/docs/source/scripts/plot_intermediate_values.py b/docs/source/scripts/plot_intermediate_values.py --- a/docs/source/scripts/plot_intermediate_values.py +++ b/docs/source/scripts/plot_intermediate_values.py @@ -5,16 +5,35 @@ import optuna +def f(x): + return (x - 2) ** 2 + + +def df(x): + return ...
{"golden_diff": "diff --git a/docs/source/scripts/plot_intermediate_values.py b/docs/source/scripts/plot_intermediate_values.py\n--- a/docs/source/scripts/plot_intermediate_values.py\n+++ b/docs/source/scripts/plot_intermediate_values.py\n@@ -5,16 +5,35 @@\n import optuna\n \n \n+def f(x):\n+ return (x - 2) ** 2\n+\...
1,525
671
gh_patches_debug_4254
rasdani/github-patches
git_diff
facebookresearch__Mephisto-594
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NameError: name 'Blueprint' is not defined Hi! I wanted to try the project from the "quickstart" but I hit >NameError: name 'Blueprint' is not defined After running these steps: ```bash pip insta...
diff --git a/mephisto/abstractions/blueprints/static_html_task/static_html_blueprint.py b/mephisto/abstractions/blueprints/static_html_task/static_html_blueprint.py --- a/mephisto/abstractions/blueprints/static_html_task/static_html_blueprint.py +++ b/mephisto/abstractions/blueprints/static_html_task/static_html_bluepr...
{"golden_diff": "diff --git a/mephisto/abstractions/blueprints/static_html_task/static_html_blueprint.py b/mephisto/abstractions/blueprints/static_html_task/static_html_blueprint.py\n--- a/mephisto/abstractions/blueprints/static_html_task/static_html_blueprint.py\n+++ b/mephisto/abstractions/blueprints/static_html_task...
1,932
145
gh_patches_debug_31256
rasdani/github-patches
git_diff
open-mmlab__mmdetection-3529
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ModuleNotFoundError: No module named 'tools' i would like to test the result of training, so i write the next: (base) zhangshen@zhangshen-X550JX:~/mmdetection$ python tools/test.py configs/faster_rcnn/faste...
diff --git a/tools/fuse_conv_bn.py b/tools/fuse_conv_bn.py deleted file mode 100644 --- a/tools/fuse_conv_bn.py +++ /dev/null @@ -1,67 +0,0 @@ -import argparse - -import torch -import torch.nn as nn -from mmcv.runner import save_checkpoint - -from mmdet.apis import init_detector - - -def fuse_conv_bn(conv, bn): - ""...
{"golden_diff": "diff --git a/tools/fuse_conv_bn.py b/tools/fuse_conv_bn.py\ndeleted file mode 100644\n--- a/tools/fuse_conv_bn.py\n+++ /dev/null\n@@ -1,67 +0,0 @@\n-import argparse\n-\n-import torch\n-import torch.nn as nn\n-from mmcv.runner import save_checkpoint\n-\n-from mmdet.apis import init_detector\n-\n-\n-def ...
1,065
600
gh_patches_debug_21808
rasdani/github-patches
git_diff
nonebot__nonebot2-1720
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Feature: 替换 toml 读取方式 在 python 3.11 中已经支持了读取 toml 配置。https://docs.python.org/3/library/tomllib.html --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may ...
diff --git a/nonebot/plugin/load.py b/nonebot/plugin/load.py --- a/nonebot/plugin/load.py +++ b/nonebot/plugin/load.py @@ -9,14 +9,17 @@ from types import ModuleType from typing import Set, Union, Iterable, Optional -import tomlkit - from nonebot.utils import path_to_module_name from .plugin import Plugin from...
{"golden_diff": "diff --git a/nonebot/plugin/load.py b/nonebot/plugin/load.py\n--- a/nonebot/plugin/load.py\n+++ b/nonebot/plugin/load.py\n@@ -9,14 +9,17 @@\n from types import ModuleType\n from typing import Set, Union, Iterable, Optional\n \n-import tomlkit\n-\n from nonebot.utils import path_to_module_name\n \n from...
2,020
272
gh_patches_debug_25092
rasdani/github-patches
git_diff
jupyterhub__jupyterhub-1413
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fractional memory / CPU limits / guarantees fail **How to reproduce the issue** Set memory limit (or guarantee, or cpu limit / guarantee) to a non-integral spec: ```python c.Spawner.mem_limit = "1.5G" ...
diff --git a/jupyterhub/traitlets.py b/jupyterhub/traitlets.py --- a/jupyterhub/traitlets.py +++ b/jupyterhub/traitlets.py @@ -48,7 +48,7 @@ 'K': 1024, 'M': 1024 * 1024, 'G': 1024 * 1024 * 1024, - 'T': 1024 * 1024 * 1024 * 1024 + 'T': 1024 * 1024 * 1024 * 1024, } # D...
{"golden_diff": "diff --git a/jupyterhub/traitlets.py b/jupyterhub/traitlets.py\n--- a/jupyterhub/traitlets.py\n+++ b/jupyterhub/traitlets.py\n@@ -48,7 +48,7 @@\n 'K': 1024,\n 'M': 1024 * 1024,\n 'G': 1024 * 1024 * 1024,\n- 'T': 1024 * 1024 * 1024 * 1024\n+ 'T': 1024 * 1024 * 1024 ...
1,874
413
gh_patches_debug_59179
rasdani/github-patches
git_diff
TheAlgorithms__Python-1943
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Same name for an attribute and a function Hi, I'm new to programming and I'm not sure if it's a problem, but the code( Python/data_structures/queue/queue_on_list.py) have the same name for an attribute and a...
diff --git a/data_structures/queue/queue_on_list.py b/data_structures/queue/queue_on_list.py --- a/data_structures/queue/queue_on_list.py +++ b/data_structures/queue/queue_on_list.py @@ -43,7 +43,7 @@ """Enqueues {@code item} @return item at front of self.entries""" - def front(self): + def get_fr...
{"golden_diff": "diff --git a/data_structures/queue/queue_on_list.py b/data_structures/queue/queue_on_list.py\n--- a/data_structures/queue/queue_on_list.py\n+++ b/data_structures/queue/queue_on_list.py\n@@ -43,7 +43,7 @@\n \"\"\"Enqueues {@code item}\r\n @return item at front of self.entries\"\"\"\r\n \r\n- ...
782
113
gh_patches_debug_31878
rasdani/github-patches
git_diff
googleapis__google-cloud-python-4817
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Vision: Single feature functions generated by cloud vision client library does not support parameter max_results As specified in [the gRPC reference](https://cloud.google.com/vision/docs/reference/rpc/google....
diff --git a/vision/google/cloud/vision_helpers/decorators.py b/vision/google/cloud/vision_helpers/decorators.py --- a/vision/google/cloud/vision_helpers/decorators.py +++ b/vision/google/cloud/vision_helpers/decorators.py @@ -83,8 +83,11 @@ Args: image (:class:`~.{module}.types.Image`): The image to an...
{"golden_diff": "diff --git a/vision/google/cloud/vision_helpers/decorators.py b/vision/google/cloud/vision_helpers/decorators.py\n--- a/vision/google/cloud/vision_helpers/decorators.py\n+++ b/vision/google/cloud/vision_helpers/decorators.py\n@@ -83,8 +83,11 @@\n \n Args:\n image (:class:`~.{module}.types.I...
1,639
442
gh_patches_debug_25483
rasdani/github-patches
git_diff
aio-libs-abandoned__aioredis-py-355
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fixed ConnectionsPool.[pubsub_channels/pubsub_patterns] Fixed bug in `commands.pubsub.PubSubCommandsMixin.subscribe` (and psubscribe). `ConnectionsPool.pubsub_channles` code was called before `ConnectionsPool...
diff --git a/aioredis/commands/pubsub.py b/aioredis/commands/pubsub.py --- a/aioredis/commands/pubsub.py +++ b/aioredis/commands/pubsub.py @@ -29,7 +29,7 @@ conn = self._pool_or_conn return wait_return_channels( conn.execute_pubsub(b'SUBSCRIBE', channel, *channels), - conn.pubs...
{"golden_diff": "diff --git a/aioredis/commands/pubsub.py b/aioredis/commands/pubsub.py\n--- a/aioredis/commands/pubsub.py\n+++ b/aioredis/commands/pubsub.py\n@@ -29,7 +29,7 @@\n conn = self._pool_or_conn\n return wait_return_channels(\n conn.execute_pubsub(b'SUBSCRIBE', channel, *channels),...
1,325
309
gh_patches_debug_13881
rasdani/github-patches
git_diff
praw-dev__praw-939
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Provide "best" sort for front page (models.Front) The new "best" sort for the front page isn't currently available via PRAW. See [this Reddit thread](https://www.reddit.com/r/redditdev/comments/8h8ijn/how_do_...
diff --git a/praw/models/front.py b/praw/models/front.py --- a/praw/models/front.py +++ b/praw/models/front.py @@ -1,4 +1,6 @@ """Provide the Front class.""" +from ..const import urljoin +from .listing.generator import ListingGenerator from .listing.mixins import SubredditListingMixin @@ -9,3 +11,13 @@ "...
{"golden_diff": "diff --git a/praw/models/front.py b/praw/models/front.py\n--- a/praw/models/front.py\n+++ b/praw/models/front.py\n@@ -1,4 +1,6 @@\n \"\"\"Provide the Front class.\"\"\"\n+from ..const import urljoin\n+from .listing.generator import ListingGenerator\n from .listing.mixins import SubredditListingMixin\n ...
411
187
gh_patches_debug_40979
rasdani/github-patches
git_diff
dotkom__onlineweb4-599
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- (Event) Minimum length on event description and ingress Possibly we should also limit the text to exclude words like TBA. Events in ow4 demand some text in order to look good, so let's put a minimum requirem...
diff --git a/apps/events/admin.py b/apps/events/admin.py --- a/apps/events/admin.py +++ b/apps/events/admin.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- +from django import forms +from django.contrib import admin +from django.core import validators +from django.utils.translation import ugettext as _ + from apps.even...
{"golden_diff": "diff --git a/apps/events/admin.py b/apps/events/admin.py\n--- a/apps/events/admin.py\n+++ b/apps/events/admin.py\n@@ -1,5 +1,10 @@\n # -*- coding: utf-8 -*-\n \n+from django import forms\n+from django.contrib import admin\n+from django.core import validators\n+from django.utils.translation import ugett...
1,039
622
gh_patches_debug_30808
rasdani/github-patches
git_diff
PrefectHQ__prefect-3008
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `unittest` framework raises `ResourceWarning` ## Description <!-- A clear description of the bug --> I'm using [`unittest`](https://docs.python.org/3/library/unittest.html) framework for testing purposes an...
diff --git a/src/prefect/tasks/shell.py b/src/prefect/tasks/shell.py --- a/src/prefect/tasks/shell.py +++ b/src/prefect/tasks/shell.py @@ -97,27 +97,29 @@ tmp.write("\n".encode()) tmp.write(command.encode()) tmp.flush() - sub_process = Popen( + with Popen...
{"golden_diff": "diff --git a/src/prefect/tasks/shell.py b/src/prefect/tasks/shell.py\n--- a/src/prefect/tasks/shell.py\n+++ b/src/prefect/tasks/shell.py\n@@ -97,27 +97,29 @@\n tmp.write(\"\\n\".encode())\n tmp.write(command.encode())\n tmp.flush()\n- sub_process = Pop...
2,012
447
gh_patches_debug_593
rasdani/github-patches
git_diff
projectmesa__mesa-1437
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- v1.1.0 Safford Release Milestone: https://github.com/projectmesa/mesa/milestone/31 Highlighted changes: - #1376 > 6x perf speedup for add/remove agent in `ContinuousSpace` - #1391 correctness fix for `Si...
diff --git a/mesa/__init__.py b/mesa/__init__.py --- a/mesa/__init__.py +++ b/mesa/__init__.py @@ -26,6 +26,6 @@ ] __title__ = "mesa" -__version__ = "1.0.0" +__version__ = "1.1.0" __license__ = "Apache 2.0" __copyright__ = f"Copyright {datetime.date.today().year} Project Mesa Team"
{"golden_diff": "diff --git a/mesa/__init__.py b/mesa/__init__.py\n--- a/mesa/__init__.py\n+++ b/mesa/__init__.py\n@@ -26,6 +26,6 @@\n ]\n \n __title__ = \"mesa\"\n-__version__ = \"1.0.0\"\n+__version__ = \"1.1.0\"\n __license__ = \"Apache 2.0\"\n __copyright__ = f\"Copyright {datetime.date.today().year} Project Mesa T...
626
111
gh_patches_debug_31948
rasdani/github-patches
git_diff
redis__redis-py-1791
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- redis-py version attribute should be decoupled from the redis module Following the conversation from https://github.com/redis/redis-py/issues/1625#issuecomment-991744836 looks like importing `redis` module pr...
diff --git a/redis/__init__.py b/redis/__init__.py --- a/redis/__init__.py +++ b/redis/__init__.py @@ -1,3 +1,10 @@ +import sys + +if sys.version_info >= (3, 8): + from importlib import metadata +else: + import importlib_metadata as metadata + from redis.client import Redis, StrictRedis from redis.cluster impor...
{"golden_diff": "diff --git a/redis/__init__.py b/redis/__init__.py\n--- a/redis/__init__.py\n+++ b/redis/__init__.py\n@@ -1,3 +1,10 @@\n+import sys\n+\n+if sys.version_info >= (3, 8):\n+ from importlib import metadata\n+else:\n+ import importlib_metadata as metadata\n+\n from redis.client import Redis, StrictRed...
1,434
447
gh_patches_debug_32341
rasdani/github-patches
git_diff
zulip__zulip-3217
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- contrib_bots: Prevent runaway bots with rate limiting It's possible to create a runaway bot if you have a bot send a message to certain stimuli that in turns becomes a stimulus for the bot to send another mes...
diff --git a/contrib_bots/run.py b/contrib_bots/run.py --- a/contrib_bots/run.py +++ b/contrib_bots/run.py @@ -6,6 +6,7 @@ import optparse import os import sys +import time our_dir = os.path.dirname(os.path.abspath(__file__)) @@ -15,11 +16,27 @@ from zulip import Client +class RateLimit(object): + def _...
{"golden_diff": "diff --git a/contrib_bots/run.py b/contrib_bots/run.py\n--- a/contrib_bots/run.py\n+++ b/contrib_bots/run.py\n@@ -6,6 +6,7 @@\n import optparse\n import os\n import sys\n+import time\n \n our_dir = os.path.dirname(os.path.abspath(__file__))\n \n@@ -15,11 +16,27 @@\n \n from zulip import Client\n \n+cla...
1,560
471
gh_patches_debug_38222
rasdani/github-patches
git_diff
getredash__redash-1394
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Share access permissions for add/remove widgets Hi @arikfr , in our PR #1113 we focused primarily on sharing access permissions for queries, and for dashboards we currently only allow to modify basic info ...
diff --git a/redash/handlers/widgets.py b/redash/handlers/widgets.py --- a/redash/handlers/widgets.py +++ b/redash/handlers/widgets.py @@ -1,10 +1,11 @@ import json from flask import request - from redash import models -from redash.permissions import require_permission, require_admin_or_owner, require_access, view...
{"golden_diff": "diff --git a/redash/handlers/widgets.py b/redash/handlers/widgets.py\n--- a/redash/handlers/widgets.py\n+++ b/redash/handlers/widgets.py\n@@ -1,10 +1,11 @@\n import json\n \n from flask import request\n-\n from redash import models\n-from redash.permissions import require_permission, require_admin_or_o...
1,146
506
gh_patches_debug_25840
rasdani/github-patches
git_diff
lnbits__lnbits-690
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Split payments shares <1% Trying to set a payment share <1% will result in 500 INTERNAL SERVER ERROR. This should work as it would be very useful as a fee for hosting lnbits but 1% is too much. ![grafik](ht...
diff --git a/lnbits/extensions/splitpayments/migrations.py b/lnbits/extensions/splitpayments/migrations.py --- a/lnbits/extensions/splitpayments/migrations.py +++ b/lnbits/extensions/splitpayments/migrations.py @@ -14,3 +14,41 @@ ); """ ) + + +async def m002_float_percent(db): + """ + Add f...
{"golden_diff": "diff --git a/lnbits/extensions/splitpayments/migrations.py b/lnbits/extensions/splitpayments/migrations.py\n--- a/lnbits/extensions/splitpayments/migrations.py\n+++ b/lnbits/extensions/splitpayments/migrations.py\n@@ -14,3 +14,41 @@\n );\n \"\"\"\n )\n+\n+\n+async def m002_float_per...
643
464
gh_patches_debug_24470
rasdani/github-patches
git_diff
talonhub__community-889
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve VSCode draft editor robustness Users can lose drafts if window switch is too slow. To address this issue, we propose the following: - [x] Increase sleep timeout in https://github.com/knausj85/knau...
diff --git a/draft_editor/draft_editor.py b/draft_editor/draft_editor.py --- a/draft_editor/draft_editor.py +++ b/draft_editor/draft_editor.py @@ -61,6 +61,8 @@ original_window = None +last_draft = None + @mod.action_class class Actions: @@ -86,6 +88,11 @@ """Discard draft editor""" close_edi...
{"golden_diff": "diff --git a/draft_editor/draft_editor.py b/draft_editor/draft_editor.py\n--- a/draft_editor/draft_editor.py\n+++ b/draft_editor/draft_editor.py\n@@ -61,6 +61,8 @@\n \n original_window = None\n \n+last_draft = None\n+\n \n @mod.action_class\n class Actions:\n@@ -86,6 +88,11 @@\n \"\"\"Discard d...
1,291
272
gh_patches_debug_5922
rasdani/github-patches
git_diff
bridgecrewio__checkov-3130
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV2 cloudformation checks are not packaged into the whl file **Describe the issue** CKV2 cloudformation checks are not packaged into the whl file. I don't see them in the list command or the policy index....
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -81,6 +81,7 @@ include_package_data=True, package_dir={ "checkov.bicep.checks.graph_checks": "checkov/bicep/checks/graph_checks", + "checkov.cloudformation.checks.graph_checks": "checkov/cloudformation/checks/graph_checks", ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -81,6 +81,7 @@\n include_package_data=True,\n package_dir={\n \"checkov.bicep.checks.graph_checks\": \"checkov/bicep/checks/graph_checks\",\n+ \"checkov.cloudformation.checks.graph_checks\": \"checkov/cloudforma...
1,471
114
gh_patches_debug_17020
rasdani/github-patches
git_diff
pypa__pip-9779
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pip 21.0.1 fails when run with warnings converted to errors **Environment** * pip version: 21.0.1 * Python version: 3.9.1 * OS: Windows **Description** With the latest version of packaging (vendored ...
diff --git a/src/pip/__main__.py b/src/pip/__main__.py --- a/src/pip/__main__.py +++ b/src/pip/__main__.py @@ -1,5 +1,6 @@ import os import sys +import warnings # Remove '' and current working directory from the first entry # of sys.path, if present to avoid using current directory @@ -18,7 +19,13 @@ path = ...
{"golden_diff": "diff --git a/src/pip/__main__.py b/src/pip/__main__.py\n--- a/src/pip/__main__.py\n+++ b/src/pip/__main__.py\n@@ -1,5 +1,6 @@\n import os\n import sys\n+import warnings\n \n # Remove '' and current working directory from the first entry\n # of sys.path, if present to avoid using current directory\n@@ -...
1,644
247
gh_patches_debug_33257
rasdani/github-patches
git_diff
localstack__localstack-2244
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incorrect response content-type header from cloudwatch logs When using the .NET AWSSDK connected to localstack and querying cloudwatch logs e.g. var logClient = new AmazonCloudWatchLogsClient(new AmazonClo...
diff --git a/localstack/services/logs/logs_listener.py b/localstack/services/logs/logs_listener.py --- a/localstack/services/logs/logs_listener.py +++ b/localstack/services/logs/logs_listener.py @@ -1,11 +1,11 @@ import re from requests.models import Request from localstack.utils.common import to_str +from localstac...
{"golden_diff": "diff --git a/localstack/services/logs/logs_listener.py b/localstack/services/logs/logs_listener.py\n--- a/localstack/services/logs/logs_listener.py\n+++ b/localstack/services/logs/logs_listener.py\n@@ -1,11 +1,11 @@\n import re\n from requests.models import Request\n from localstack.utils.common import...
863
418
gh_patches_debug_28173
rasdani/github-patches
git_diff
CMSgov__bluebutton-web-server-5
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- When editing an application user can select capabilities not allowed by his groups --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --...
diff --git a/apps/dot_ext/views/application.py b/apps/dot_ext/views/application.py --- a/apps/dot_ext/views/application.py +++ b/apps/dot_ext/views/application.py @@ -6,6 +6,8 @@ from oauth2_provider.models import get_application_model +from ..forms import CustomRegisterApplicationForm + class ApplicationOwnerI...
{"golden_diff": "diff --git a/apps/dot_ext/views/application.py b/apps/dot_ext/views/application.py\n--- a/apps/dot_ext/views/application.py\n+++ b/apps/dot_ext/views/application.py\n@@ -6,6 +6,8 @@\n \n from oauth2_provider.models import get_application_model\n \n+from ..forms import CustomRegisterApplicationForm\n+\n...
885
312
gh_patches_debug_34316
rasdani/github-patches
git_diff
meltano__meltano-6856
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bug: Flaky test `tests/meltano/api/test_workers.py::TestUIAvailableWorker::test_open_browser` ### Meltano Version N/A ### Python Version NA ### Bug scope API ### Operating System N/A ### Description ...
diff --git a/src/meltano/api/workers/ui_available_worker.py b/src/meltano/api/workers/ui_available_worker.py --- a/src/meltano/api/workers/ui_available_worker.py +++ b/src/meltano/api/workers/ui_available_worker.py @@ -1,10 +1,11 @@ +"""Meltano UI worker thread definition.""" + from __future__ import annotations im...
{"golden_diff": "diff --git a/src/meltano/api/workers/ui_available_worker.py b/src/meltano/api/workers/ui_available_worker.py\n--- a/src/meltano/api/workers/ui_available_worker.py\n+++ b/src/meltano/api/workers/ui_available_worker.py\n@@ -1,10 +1,11 @@\n+\"\"\"Meltano UI worker thread definition.\"\"\"\n+\n from __futu...
1,159
423
gh_patches_debug_167
rasdani/github-patches
git_diff
jupyterhub__jupyterhub-1526
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Jupyterhub 0.8.0 radio buttons unclickable or ugly due to form-control class ``` jupyterhub --version 0.8.0 ``` I have some radio buttons in my spawner's `_option_form_default`: ``` return """<label...
diff --git a/jupyterhub/_version.py b/jupyterhub/_version.py --- a/jupyterhub/_version.py +++ b/jupyterhub/_version.py @@ -6,8 +6,8 @@ version_info = ( 0, 8, - 1, - # 'dev', + 2, + 'dev', ) __version__ = '.'.join(map(str, version_info))
{"golden_diff": "diff --git a/jupyterhub/_version.py b/jupyterhub/_version.py\n--- a/jupyterhub/_version.py\n+++ b/jupyterhub/_version.py\n@@ -6,8 +6,8 @@\n version_info = (\n 0,\n 8,\n- 1,\n- # 'dev',\n+ 2,\n+ 'dev',\n )\n \n __version__ = '.'.join(map(str, version_info))\n", "issue": "Jupyterhub 0...
1,114
94
gh_patches_debug_13267
rasdani/github-patches
git_diff
PokemonGoF__PokemonGo-Bot-1025
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bot unnecessarily walks to center of Pokestops This issue may also increase detectability since it's unlikely that users would walk to the exact center of every stop they visit. Also, most stops are spinnabl...
diff --git a/pokemongo_bot/cell_workers/move_to_fort_worker.py b/pokemongo_bot/cell_workers/move_to_fort_worker.py --- a/pokemongo_bot/cell_workers/move_to_fort_worker.py +++ b/pokemongo_bot/cell_workers/move_to_fort_worker.py @@ -1,4 +1,4 @@ -from utils import distance, format_dist +from utils import distance, format_...
{"golden_diff": "diff --git a/pokemongo_bot/cell_workers/move_to_fort_worker.py b/pokemongo_bot/cell_workers/move_to_fort_worker.py\n--- a/pokemongo_bot/cell_workers/move_to_fort_worker.py\n+++ b/pokemongo_bot/cell_workers/move_to_fort_worker.py\n@@ -1,4 +1,4 @@\n-from utils import distance, format_dist\n+from utils im...
849
201
gh_patches_debug_48993
rasdani/github-patches
git_diff
googleapis__google-api-python-client-1030
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- googleapiclient.discovery.build fails with module 'six.moves' has no attribute 'collections_abc' since version 1.12.0 #### Environment details - OS type and version: 18.04.1-Ubuntu - Python version: P...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ "google-auth>=1.16.0", "google-auth-httplib2>=0.0.3", "google-api-core>=1.21.0,<2dev", - "six>=1.6.1,<2dev", + "six>=1.13.0,<2dev", "uritemplate>=3.0.0,<4dev", ]
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -42,7 +42,7 @@\n \"google-auth>=1.16.0\",\n \"google-auth-httplib2>=0.0.3\",\n \"google-api-core>=1.21.0,<2dev\",\n- \"six>=1.6.1,<2dev\",\n+ \"six>=1.13.0,<2dev\",\n \"uritemplate>=3.0.0,<4dev\",\n ]\n", "issue"...
1,344
120
gh_patches_debug_9665
rasdani/github-patches
git_diff
great-expectations__great_expectations-2958
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of th...
diff --git a/great_expectations/rule_based_profiler/profiler.py b/great_expectations/rule_based_profiler/profiler.py --- a/great_expectations/rule_based_profiler/profiler.py +++ b/great_expectations/rule_based_profiler/profiler.py @@ -40,8 +40,7 @@ These will be used to define profiler computation patterns. ...
{"golden_diff": "diff --git a/great_expectations/rule_based_profiler/profiler.py b/great_expectations/rule_based_profiler/profiler.py\n--- a/great_expectations/rule_based_profiler/profiler.py\n+++ b/great_expectations/rule_based_profiler/profiler.py\n@@ -40,8 +40,7 @@\n These will be used to define profiler com...
1,720
151
gh_patches_debug_567
rasdani/github-patches
git_diff
pex-tool__pex-891
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.3 On the docket: + [x] Error eagerly if an interpreter binary doesn't exist #886 + [x] The pip-powered resolve in pex 2 will re-tokenize --find-links pages on each transitive requirement #887 ...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = '2.1.2' +__version__ = '2.1.3'
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = '2.1.2'\n+__version__ = '2.1.3'\n", "issue"...
368
94
gh_patches_debug_24149
rasdani/github-patches
git_diff
lightly-ai__lightly-482
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- when pip version older than newest version, it calls API on every command rather than caching the information When I use an older pip version, I see multiple lines of output like this when I run `lightly-magi...
diff --git a/lightly/__init__.py b/lightly/__init__.py --- a/lightly/__init__.py +++ b/lightly/__init__.py @@ -80,6 +80,7 @@ __name__ = 'lightly' __version__ = '1.1.18' +from multiprocessing import current_process try: # See (https://github.com/PyTorchLightning/pytorch-lightning) @@ -118,14 +119,15 @@ ...
{"golden_diff": "diff --git a/lightly/__init__.py b/lightly/__init__.py\n--- a/lightly/__init__.py\n+++ b/lightly/__init__.py\n@@ -80,6 +80,7 @@\n __name__ = 'lightly'\n __version__ = '1.1.18'\n \n+from multiprocessing import current_process\n \n try:\n # See (https://github.com/PyTorchLightning/pytorch-lightning)\...
1,562
341
gh_patches_debug_25623
rasdani/github-patches
git_diff
StackStorm__st2-5468
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- An exception is raised when calling MockDatastoreService.set_value() with a ttl ## SUMMARY When using `MockDatastoreService.set_value()` for unit testing (e.g. via `BaseActionTestCase`), a `ValueError` exc...
diff --git a/st2tests/st2tests/mocks/datastore.py b/st2tests/st2tests/mocks/datastore.py --- a/st2tests/st2tests/mocks/datastore.py +++ b/st2tests/st2tests/mocks/datastore.py @@ -34,6 +34,7 @@ self._pack_name = pack_name self._class_name = class_name self._username = api_username or "admin" +...
{"golden_diff": "diff --git a/st2tests/st2tests/mocks/datastore.py b/st2tests/st2tests/mocks/datastore.py\n--- a/st2tests/st2tests/mocks/datastore.py\n+++ b/st2tests/st2tests/mocks/datastore.py\n@@ -34,6 +34,7 @@\n self._pack_name = pack_name\n self._class_name = class_name\n self._username = ap...
1,809
294
gh_patches_debug_30371
rasdani/github-patches
git_diff
Flexget__Flexget-2222
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot use variables with integer-only values ### Expected behaviour: Variables should be able to handle integer-only values. ### Actual behaviour: Configuration parsing error (when using ``'{? deluge.po...
diff --git a/flexget/_version.py b/flexget/_version.py --- a/flexget/_version.py +++ b/flexget/_version.py @@ -7,4 +7,4 @@ The jenkins release job will automatically strip the .dev for release, and update the version again for continued development. """ -__version__ = '2.15.2.dev' +__version__ = '2.16.0.dev' diff --...
{"golden_diff": "diff --git a/flexget/_version.py b/flexget/_version.py\n--- a/flexget/_version.py\n+++ b/flexget/_version.py\n@@ -7,4 +7,4 @@\n The jenkins release job will automatically strip the .dev for release,\n and update the version again for continued development.\n \"\"\"\n-__version__ = '2.15.2.dev'\n+__vers...
1,704
403
gh_patches_debug_21179
rasdani/github-patches
git_diff
googleapis__google-api-python-client-903
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add a new mechanism to avoid calling the legacy memcache API This API is only supported on the python27 runtime. Lets only try to import it in environments that actually support it. The problem I'm runnin...
diff --git a/googleapiclient/discovery_cache/__init__.py b/googleapiclient/discovery_cache/__init__.py --- a/googleapiclient/discovery_cache/__init__.py +++ b/googleapiclient/discovery_cache/__init__.py @@ -18,7 +18,7 @@ import logging import datetime - +import os LOGGER = logging.getLogger(__name__) @@ -32,16...
{"golden_diff": "diff --git a/googleapiclient/discovery_cache/__init__.py b/googleapiclient/discovery_cache/__init__.py\n--- a/googleapiclient/discovery_cache/__init__.py\n+++ b/googleapiclient/discovery_cache/__init__.py\n@@ -18,7 +18,7 @@\n \n import logging\n import datetime\n-\n+import os\n \n LOGGER = logging.getL...
852
307
gh_patches_debug_19492
rasdani/github-patches
git_diff
zigpy__zha-device-handlers-664
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Device Support Request] Phillips Button (ROM001) Missing support for manufactuer specific button events **Is your feature request related to a problem? Please describe.** I have just started migrating my de...
diff --git a/zhaquirks/philips/rom001.py b/zhaquirks/philips/rom001.py --- a/zhaquirks/philips/rom001.py +++ b/zhaquirks/philips/rom001.py @@ -13,6 +13,7 @@ ) from zigpy.zcl.clusters.lightlink import LightLink +from . import PhilipsBasicCluster, PhilipsRemoteCluster from ..const import ( COMMAND, COMMAND...
{"golden_diff": "diff --git a/zhaquirks/philips/rom001.py b/zhaquirks/philips/rom001.py\n--- a/zhaquirks/philips/rom001.py\n+++ b/zhaquirks/philips/rom001.py\n@@ -13,6 +13,7 @@\n )\n from zigpy.zcl.clusters.lightlink import LightLink\n \n+from . import PhilipsBasicCluster, PhilipsRemoteCluster\n from ..const import (\n...
1,988
212
gh_patches_debug_29276
rasdani/github-patches
git_diff
wagtail__wagtail-365
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Searching images without match is not displayed correctly (minor) When searching for images, if you enter a query string which will not return resuls you will get the message Sorry, no images match "" (withou...
diff --git a/wagtail/wagtailsearch/views/editorspicks.py b/wagtail/wagtailsearch/views/editorspicks.py --- a/wagtail/wagtailsearch/views/editorspicks.py +++ b/wagtail/wagtailsearch/views/editorspicks.py @@ -13,6 +13,7 @@ @permission_required('wagtailadmin.access_admin') @vary_on_headers('X-Requested-With') def index...
{"golden_diff": "diff --git a/wagtail/wagtailsearch/views/editorspicks.py b/wagtail/wagtailsearch/views/editorspicks.py\n--- a/wagtail/wagtailsearch/views/editorspicks.py\n+++ b/wagtail/wagtailsearch/views/editorspicks.py\n@@ -13,6 +13,7 @@\n @permission_required('wagtailadmin.access_admin')\n @vary_on_headers('X-Reque...
1,820
326
gh_patches_debug_686
rasdani/github-patches
git_diff
projectmesa__mesa-398
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- error launching Flocker I've Anaconda with python 3.6 & Mesa 0.8.1 I launch Flocker's run.py and I get this error: ``` Flockers e$ python run.py Traceback (most recent call last): File "run.py", line...
diff --git a/examples/Flockers/flockers/server.py b/examples/Flockers/flockers/server.py --- a/examples/Flockers/flockers/server.py +++ b/examples/Flockers/flockers/server.py @@ -9,7 +9,7 @@ boid_canvas = SimpleCanvas(boid_draw, 500, 500) model_params = { - "N": 100, + "population": 100, "width": 100, ...
{"golden_diff": "diff --git a/examples/Flockers/flockers/server.py b/examples/Flockers/flockers/server.py\n--- a/examples/Flockers/flockers/server.py\n+++ b/examples/Flockers/flockers/server.py\n@@ -9,7 +9,7 @@\n \n boid_canvas = SimpleCanvas(boid_draw, 500, 500)\n model_params = {\n- \"N\": 100,\n+ \"population\...
692
128
gh_patches_debug_39717
rasdani/github-patches
git_diff
kserve__kserve-156
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- KFServing should have a consistent way of supporting model download across inference server implementations /kind feature **Describe the solution you'd like** KFServing should expose a consistent way to d...
diff --git a/python/kfserving/kfserving/storage.py b/python/kfserving/kfserving/storage.py --- a/python/kfserving/kfserving/storage.py +++ b/python/kfserving/kfserving/storage.py @@ -27,23 +27,25 @@ class Storage(object): # pylint: disable=too-few-public-methods @staticmethod - def download(uri: str) -> str:...
{"golden_diff": "diff --git a/python/kfserving/kfserving/storage.py b/python/kfserving/kfserving/storage.py\n--- a/python/kfserving/kfserving/storage.py\n+++ b/python/kfserving/kfserving/storage.py\n@@ -27,23 +27,25 @@\n \n class Storage(object): # pylint: disable=too-few-public-methods\n @staticmethod\n- def do...
1,496
635
gh_patches_debug_11230
rasdani/github-patches
git_diff
spack__spack-12009
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Installation issue: py-jsonchema (No checksum provided for @2.6.0 requested by nrm) The nrm package specifically requests py-jsonschema@2.6.0. Attempting to install this package results in the following error...
diff --git a/var/spack/repos/builtin/packages/py-jsonschema/package.py b/var/spack/repos/builtin/packages/py-jsonschema/package.py --- a/var/spack/repos/builtin/packages/py-jsonschema/package.py +++ b/var/spack/repos/builtin/packages/py-jsonschema/package.py @@ -10,8 +10,9 @@ """Jsonschema: An(other) implementatio...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/py-jsonschema/package.py b/var/spack/repos/builtin/packages/py-jsonschema/package.py\n--- a/var/spack/repos/builtin/packages/py-jsonschema/package.py\n+++ b/var/spack/repos/builtin/packages/py-jsonschema/package.py\n@@ -10,8 +10,9 @@\n \"\"\"Jsonschema:...
633
280
gh_patches_debug_25167
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-2057
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incorrect E1029 errors when literal YAML block style is used *cfn-lint version: 0.51.0 Embedded parameters are being flagged for not being wrapped in a `!Sub`, but they are in fact wrapped in a `!Sub`. ...
diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py --- a/src/cfnlint/rules/functions/SubNeeded.py +++ b/src/cfnlint/rules/functions/SubNeeded.py @@ -18,6 +18,8 @@ source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-...
{"golden_diff": "diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py\n--- a/src/cfnlint/rules/functions/SubNeeded.py\n+++ b/src/cfnlint/rules/functions/SubNeeded.py\n@@ -18,6 +18,8 @@\n source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsi...
1,992
277
gh_patches_debug_18554
rasdani/github-patches
git_diff
praw-dev__praw-846
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- UnicodeEncodeError is raised if reddit returns localized error message ## Issue Description Context: [[PRAW] UnicodeEncodeError when submitting non-unicode text : redditdev](https://www.reddit.com/r/reddit...
diff --git a/praw/exceptions.py b/praw/exceptions.py --- a/praw/exceptions.py +++ b/praw/exceptions.py @@ -21,10 +21,17 @@ :param message: The associated message for the error. :param field: The input field associated with the error if available. + .. note: Calling `str()` on the instance ret...
{"golden_diff": "diff --git a/praw/exceptions.py b/praw/exceptions.py\n--- a/praw/exceptions.py\n+++ b/praw/exceptions.py\n@@ -21,10 +21,17 @@\n :param message: The associated message for the error.\n :param field: The input field associated with the error if available.\n \n+ .. note: Calling `st...
1,011
252
gh_patches_debug_1683
rasdani/github-patches
git_diff
RedHatInsights__insights-core-2085
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Dmesg combiner always succeeds The [Dmesg combiner has only optional dependencies](https://github.com/RedHatInsights/insights-core/blob/master/insights/combiners/dmesg.py#L51), which means it always succeeds....
diff --git a/insights/combiners/dmesg.py b/insights/combiners/dmesg.py --- a/insights/combiners/dmesg.py +++ b/insights/combiners/dmesg.py @@ -48,7 +48,7 @@ from insights.parsers.dmesg_log import DmesgLog -@combiner(optional=[DmesgLineList, DmesgLog]) +@combiner([DmesgLineList, DmesgLog]) class Dmesg(object): ...
{"golden_diff": "diff --git a/insights/combiners/dmesg.py b/insights/combiners/dmesg.py\n--- a/insights/combiners/dmesg.py\n+++ b/insights/combiners/dmesg.py\n@@ -48,7 +48,7 @@\n from insights.parsers.dmesg_log import DmesgLog\n \n \n-@combiner(optional=[DmesgLineList, DmesgLog])\n+@combiner([DmesgLineList, DmesgLog])\...
1,474
143
gh_patches_debug_31108
rasdani/github-patches
git_diff
python-poetry__poetry-5053
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update prompt environment variable when opening shell <!-- Hi there! Thank you for wanting to make Poetry better. Before you submit this; let's make sure of a few things. Please make sure the follo...
diff --git a/src/poetry/utils/shell.py b/src/poetry/utils/shell.py --- a/src/poetry/utils/shell.py +++ b/src/poetry/utils/shell.py @@ -1,5 +1,6 @@ import os import signal +import subprocess import sys from pathlib import Path @@ -67,8 +68,19 @@ return cls._shell def activate(self, env: "VirtualEnv...
{"golden_diff": "diff --git a/src/poetry/utils/shell.py b/src/poetry/utils/shell.py\n--- a/src/poetry/utils/shell.py\n+++ b/src/poetry/utils/shell.py\n@@ -1,5 +1,6 @@\n import os\n import signal\n+import subprocess\n import sys\n \n from pathlib import Path\n@@ -67,8 +68,19 @@\n return cls._shell\n \n def a...
1,404
450
gh_patches_debug_27038
rasdani/github-patches
git_diff
open-mmlab__mmocr-74
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Webcam demo script is not working properly **Checklist** 1. I have searched related issues but cannot get the expected help: Yes 2. The bug has not been fixed in the latest version: Yes **Describe the ...
diff --git a/mmocr/apis/inference.py b/mmocr/apis/inference.py --- a/mmocr/apis/inference.py +++ b/mmocr/apis/inference.py @@ -1,7 +1,9 @@ +import numpy as np import torch from mmcv.ops import RoIPool from mmcv.parallel import collate, scatter +from mmdet.datasets import replace_ImageToTensor from mmdet.datasets....
{"golden_diff": "diff --git a/mmocr/apis/inference.py b/mmocr/apis/inference.py\n--- a/mmocr/apis/inference.py\n+++ b/mmocr/apis/inference.py\n@@ -1,7 +1,9 @@\n+import numpy as np\n import torch\n from mmcv.ops import RoIPool\n from mmcv.parallel import collate, scatter\n \n+from mmdet.datasets import replace_ImageToTe...
1,975
378
gh_patches_debug_61040
rasdani/github-patches
git_diff
google-research__text-to-text-transfer-transformer-480
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Running hf_model.py I am trying to run your models with [`hf_model`](https://github.com/google-research/text-to-text-transfer-transformer/blob/master/t5/models/hf_model.py). The current blocker issue is that...
diff --git a/t5/version.py b/t5/version.py --- a/t5/version.py +++ b/t5/version.py @@ -18,4 +18,4 @@ Stored in a separate file so that setup.py can reference the version without pulling in all the dependencies in __init__.py. """ -__version__ = '0.7.0' +__version__ = '0.7.1'
{"golden_diff": "diff --git a/t5/version.py b/t5/version.py\n--- a/t5/version.py\n+++ b/t5/version.py\n@@ -18,4 +18,4 @@\n Stored in a separate file so that setup.py can reference the version without\n pulling in all the dependencies in __init__.py.\n \"\"\"\n-__version__ = '0.7.0'\n+__version__ = '0.7.1'\n", "issue": ...
673
91
gh_patches_debug_21897
rasdani/github-patches
git_diff
weecology__retriever-1267
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fetch method should return an ordered dict (not a dict) Hello, I noticed that `fetch` method returns a dict of dataframes. To preserve order of tables (which may have a meaning) it should return an ordere...
diff --git a/retriever/engines/sqlite.py b/retriever/engines/sqlite.py --- a/retriever/engines/sqlite.py +++ b/retriever/engines/sqlite.py @@ -1,6 +1,7 @@ import os import pandas as pd from builtins import range +from collections import OrderedDict from retriever.lib.defaults import DATA_DIR from retriever.lib.m...
{"golden_diff": "diff --git a/retriever/engines/sqlite.py b/retriever/engines/sqlite.py\n--- a/retriever/engines/sqlite.py\n+++ b/retriever/engines/sqlite.py\n@@ -1,6 +1,7 @@\n import os\n import pandas as pd\n from builtins import range\n+from collections import OrderedDict\n \n from retriever.lib.defaults import DATA...
1,473
248
gh_patches_debug_8515
rasdani/github-patches
git_diff
Gallopsled__pwntools-1892
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- phd throws an exception when output pipe fails, as with e.g. `head` We should silence the BrokenPipeError exception when `pwn phd` output closes. ``` $ phd < /dev/random | head -n 1 00000000 43 18 3f 38...
diff --git a/pwnlib/commandline/phd.py b/pwnlib/commandline/phd.py --- a/pwnlib/commandline/phd.py +++ b/pwnlib/commandline/phd.py @@ -4,6 +4,7 @@ import argparse import os +import signal import sys import io @@ -100,6 +101,8 @@ for h in hs.split(','): hl.append(asint(h)) + si...
{"golden_diff": "diff --git a/pwnlib/commandline/phd.py b/pwnlib/commandline/phd.py\n--- a/pwnlib/commandline/phd.py\n+++ b/pwnlib/commandline/phd.py\n@@ -4,6 +4,7 @@\n \n import argparse\n import os\n+import signal\n import sys\n import io\n \n@@ -100,6 +101,8 @@\n for h in hs.split(','):\n ...
1,275
143
gh_patches_debug_16435
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-3324
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider tapetro is broken During the global build at 2021-10-06-14-42-44, spider **tapetro** failed with **0 features** and **1 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-10-06-14-42-4...
diff --git a/locations/spiders/tapetro.py b/locations/spiders/tapetro.py --- a/locations/spiders/tapetro.py +++ b/locations/spiders/tapetro.py @@ -57,7 +57,7 @@ 'fuel:diesel:class2': store['WINTERIZED DIESEL NOV-MAR(any temp)'] == 'Y' or store['WINTERIZED DIESEL NOV-MAR (when temps are 10 degrees o...
{"golden_diff": "diff --git a/locations/spiders/tapetro.py b/locations/spiders/tapetro.py\n--- a/locations/spiders/tapetro.py\n+++ b/locations/spiders/tapetro.py\n@@ -57,7 +57,7 @@\n 'fuel:diesel:class2': store['WINTERIZED DIESEL NOV-MAR(any temp)'] == 'Y' or store['WINTERIZED DIESEL NOV-MAR (when t...
1,150
233
gh_patches_debug_3412
rasdani/github-patches
git_diff
dynaconf__dynaconf-767
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [bug] filter_strategy config not working **Describe the bug** It seems that the `filter_strategy` config (which by the way is misspelled int the [docs](https://github.com/rochacbruno/dynaconf/blob/master/doc...
diff --git a/dynaconf/loaders/env_loader.py b/dynaconf/loaders/env_loader.py --- a/dynaconf/loaders/env_loader.py +++ b/dynaconf/loaders/env_loader.py @@ -76,6 +76,9 @@ } # Update the settings space based on gathered data from environment. if data: + filter_strategy = obj.get("FILT...
{"golden_diff": "diff --git a/dynaconf/loaders/env_loader.py b/dynaconf/loaders/env_loader.py\n--- a/dynaconf/loaders/env_loader.py\n+++ b/dynaconf/loaders/env_loader.py\n@@ -76,6 +76,9 @@\n }\n # Update the settings space based on gathered data from environment.\n if data:\n+ filter_...
1,514
111
gh_patches_debug_16832
rasdani/github-patches
git_diff
pantsbuild__pants-20984
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `stevedore_namespace` documentation shows `str`'s doc string **Describe the bug** The `stevedore_namespace` BUILD file symbol has a doc-string, but it isn't shown in `pants help-all`. It instead shows what...
diff --git a/src/python/pants/backend/python/framework/stevedore/target_types.py b/src/python/pants/backend/python/framework/stevedore/target_types.py --- a/src/python/pants/backend/python/framework/stevedore/target_types.py +++ b/src/python/pants/backend/python/framework/stevedore/target_types.py @@ -11,20 +11,22 @@ ...
{"golden_diff": "diff --git a/src/python/pants/backend/python/framework/stevedore/target_types.py b/src/python/pants/backend/python/framework/stevedore/target_types.py\n--- a/src/python/pants/backend/python/framework/stevedore/target_types.py\n+++ b/src/python/pants/backend/python/framework/stevedore/target_types.py\n@...
1,552
272
gh_patches_debug_18816
rasdani/github-patches
git_diff
encode__uvicorn-646
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add support for --reload to monitor additional file types. The "reload" process currently only monitors ".py" files in various directories. I have a changes that will pass in a list of additional "reload_suff...
diff --git a/uvicorn/supervisors/statreload.py b/uvicorn/supervisors/statreload.py --- a/uvicorn/supervisors/statreload.py +++ b/uvicorn/supervisors/statreload.py @@ -14,7 +14,7 @@ self.mtimes = {} def should_restart(self): - for filename in self.iter_py_files(): + for filename in self.ite...
{"golden_diff": "diff --git a/uvicorn/supervisors/statreload.py b/uvicorn/supervisors/statreload.py\n--- a/uvicorn/supervisors/statreload.py\n+++ b/uvicorn/supervisors/statreload.py\n@@ -14,7 +14,7 @@\n self.mtimes = {}\n \n def should_restart(self):\n- for filename in self.iter_py_files():\n+ ...
887
210
gh_patches_debug_31192
rasdani/github-patches
git_diff
meltano__meltano-6118
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Verify `meltano install` telemetry fires for malformed plugin entries In #6109 @pnadolny13 noticed that with the following entry no events where fired: ```yaml - name: tap-something-invalid variant...
diff --git a/src/meltano/cli/install.py b/src/meltano/cli/install.py --- a/src/meltano/cli/install.py +++ b/src/meltano/cli/install.py @@ -5,7 +5,6 @@ from meltano.core.legacy_tracking import LegacyTracker from meltano.core.plugin import PluginType -from meltano.core.plugin.error import PluginNotFoundError from me...
{"golden_diff": "diff --git a/src/meltano/cli/install.py b/src/meltano/cli/install.py\n--- a/src/meltano/cli/install.py\n+++ b/src/meltano/cli/install.py\n@@ -5,7 +5,6 @@\n \n from meltano.core.legacy_tracking import LegacyTracker\n from meltano.core.plugin import PluginType\n-from meltano.core.plugin.error import Plug...
1,187
406
gh_patches_debug_34990
rasdani/github-patches
git_diff
streamlink__streamlink-838
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- azubu.tv: remove plugin http://www.azubu.tv/ `Soon a new future for Azubu and Hitbox, together as a single force in the world of eSports and competitive gaming, will be revealed. We will be launching a new b...
diff --git a/src/streamlink/plugins/azubutv.py b/src/streamlink/plugins/azubutv.py deleted file mode 100644 --- a/src/streamlink/plugins/azubutv.py +++ /dev/null @@ -1,97 +0,0 @@ -#!/usr/bin/env python -import json -import requests - -import re - -from io import BytesIO -from time import sleep - -from streamlink.except...
{"golden_diff": "diff --git a/src/streamlink/plugins/azubutv.py b/src/streamlink/plugins/azubutv.py\ndeleted file mode 100644\n--- a/src/streamlink/plugins/azubutv.py\n+++ /dev/null\n@@ -1,97 +0,0 @@\n-#!/usr/bin/env python\n-import json\n-import requests\n-\n-import re\n-\n-from io import BytesIO\n-from time import sl...
1,314
898
gh_patches_debug_48199
rasdani/github-patches
git_diff
secdev__scapy-1779
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Scapy crashes when tcpdump is not in $PATH Here is the fix: ```diff git diff scapy/arch/common.py diff --git a/scapy/arch/common.py b/scapy/arch/common.py index 9da19141..f103bebe 100644 --- a/scapy/ar...
diff --git a/scapy/arch/common.py b/scapy/arch/common.py --- a/scapy/arch/common.py +++ b/scapy/arch/common.py @@ -26,9 +26,15 @@ def _check_tcpdump(): + """ + Return True if the tcpdump command can be started + """ with open(os.devnull, 'wb') as devnull: - proc = subprocess.Popen([conf.prog.t...
{"golden_diff": "diff --git a/scapy/arch/common.py b/scapy/arch/common.py\n--- a/scapy/arch/common.py\n+++ b/scapy/arch/common.py\n@@ -26,9 +26,15 @@\n \n \n def _check_tcpdump():\n+ \"\"\"\n+ Return True if the tcpdump command can be started\n+ \"\"\"\n with open(os.devnull, 'wb') as devnull:\n- pr...
1,917
166
gh_patches_debug_22072
rasdani/github-patches
git_diff
dask__distributed-3056
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- cpu cores estimate based on cgroups I was reading the announcement for 2.4.0 and got interested in https://github.com/dask/distributed/pull/3039 by @jcrist That did lead me to this part of the code: http...
diff --git a/distributed/system.py b/distributed/system.py --- a/distributed/system.py +++ b/distributed/system.py @@ -1,3 +1,4 @@ +import math import os import sys @@ -61,16 +62,20 @@ # Check cgroups if available if sys.platform == "linux": - try: - with open("/sys/fs/cgroup/cpuacct,c...
{"golden_diff": "diff --git a/distributed/system.py b/distributed/system.py\n--- a/distributed/system.py\n+++ b/distributed/system.py\n@@ -1,3 +1,4 @@\n+import math\n import os\n import sys\n \n@@ -61,16 +62,20 @@\n \n # Check cgroups if available\n if sys.platform == \"linux\":\n- try:\n- wit...
1,250
346
gh_patches_debug_1615
rasdani/github-patches
git_diff
urllib3__urllib3-987
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- urllib3 fails to install on centos7 due to old setuptools not supporting <=, < environment markers. Current urllib3 fails to install on centos7. This bug was most likely introduced after https://github.com/sh...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -59,8 +59,6 @@ 'cryptography>=1.3.4', 'idna>=2.0.0', 'certifi', - ], - 'secure:python_version <= "2.7"': [ "ipaddress", ], 'socks': [
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -59,8 +59,6 @@\n 'cryptography>=1.3.4',\n 'idna>=2.0.0',\n 'certifi',\n- ],\n- 'secure:python_version <= \"2.7\"': [\n \"ipaddress\",\n ],\n ...
1,950
90
gh_patches_debug_13457
rasdani/github-patches
git_diff
modin-project__modin-3382
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- JSON dispatcher data file split correction Originated from https://github.com/modin-project/modin/pull/2607#discussion_r571989125. --- END ISSUE --- Below are some code segments, each from a relevant file. ...
diff --git a/modin/engines/base/io/text/json_dispatcher.py b/modin/engines/base/io/text/json_dispatcher.py --- a/modin/engines/base/io/text/json_dispatcher.py +++ b/modin/engines/base/io/text/json_dispatcher.py @@ -17,7 +17,6 @@ from io import BytesIO import pandas import numpy as np -from csv import QUOTE_NONE f...
{"golden_diff": "diff --git a/modin/engines/base/io/text/json_dispatcher.py b/modin/engines/base/io/text/json_dispatcher.py\n--- a/modin/engines/base/io/text/json_dispatcher.py\n+++ b/modin/engines/base/io/text/json_dispatcher.py\n@@ -17,7 +17,6 @@\n from io import BytesIO\n import pandas\n import numpy as np\n-from cs...
1,428
170
gh_patches_debug_33856
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-2674
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 [FEATURE]: Patch meta information of `torch.nn.functional.softmax()` This is a part of issue #2628, we will patch meta in...
diff --git a/colossalai/auto_parallel/meta_profiler/meta_registry/activation.py b/colossalai/auto_parallel/meta_profiler/meta_registry/activation.py --- a/colossalai/auto_parallel/meta_profiler/meta_registry/activation.py +++ b/colossalai/auto_parallel/meta_profiler/meta_registry/activation.py @@ -72,3 +72,53 @@ f...
{"golden_diff": "diff --git a/colossalai/auto_parallel/meta_profiler/meta_registry/activation.py b/colossalai/auto_parallel/meta_profiler/meta_registry/activation.py\n--- a/colossalai/auto_parallel/meta_profiler/meta_registry/activation.py\n+++ b/colossalai/auto_parallel/meta_profiler/meta_registry/activation.py\n@@ -7...
1,381
692
gh_patches_debug_4261
rasdani/github-patches
git_diff
Nitrate__Nitrate-406
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix call to DurationField.from_db_value() which will be removed in Django 3.0 Lots of such warning are output. ``` src/tests/xmlrpc/test_testcaseplan.py::TestCasePlanGet::test_get_with_negative_case_id ...
diff --git a/src/tcms/core/models/fields.py b/src/tcms/core/models/fields.py --- a/src/tcms/core/models/fields.py +++ b/src/tcms/core/models/fields.py @@ -36,7 +36,7 @@ else: raise TypeError('Unable to convert %s to timedelta.' % value) - def from_db_value(self, value, expression, connection,...
{"golden_diff": "diff --git a/src/tcms/core/models/fields.py b/src/tcms/core/models/fields.py\n--- a/src/tcms/core/models/fields.py\n+++ b/src/tcms/core/models/fields.py\n@@ -36,7 +36,7 @@\n else:\n raise TypeError('Unable to convert %s to timedelta.' % value)\n \n- def from_db_value(self, value,...
1,007
124
gh_patches_debug_2642
rasdani/github-patches
git_diff
sunpy__sunpy-3676
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Removing astropy_helpers section in CONTRIBUTING.rst <!-- This comments are hidden when you submit the issue so you do not need to remove them! Please be sure to check out our contributing guidelines: https:...
diff --git a/sunpy/version.py b/sunpy/version.py deleted file mode 100644 --- a/sunpy/version.py +++ /dev/null @@ -1,13 +0,0 @@ -# This file is for compatibility with astropy_helpers -version = 'unknown.dev' -try: - from importlib_metadata import version as _version, PackageNotFoundError - version = _version('sun...
{"golden_diff": "diff --git a/sunpy/version.py b/sunpy/version.py\ndeleted file mode 100644\n--- a/sunpy/version.py\n+++ /dev/null\n@@ -1,13 +0,0 @@\n-# This file is for compatibility with astropy_helpers\n-version = 'unknown.dev'\n-try:\n- from importlib_metadata import version as _version, PackageNotFoundError\n- ...
576
148
gh_patches_debug_6051
rasdani/github-patches
git_diff
coala__coala-3888
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- aspects/meta.py: Typo error <!-- Hello! If you're filing a bug, please include every step so as to help us reproduce it on our machines. If you're unsure about how to file an issue, use the issue template. If...
diff --git a/coalib/bearlib/aspects/meta.py b/coalib/bearlib/aspects/meta.py --- a/coalib/bearlib/aspects/meta.py +++ b/coalib/bearlib/aspects/meta.py @@ -44,7 +44,7 @@ attr: getattr(docs, attr, '') for attr in list(signature(Documentation).parameters.keys())[1:]}) - # search for tast...
{"golden_diff": "diff --git a/coalib/bearlib/aspects/meta.py b/coalib/bearlib/aspects/meta.py\n--- a/coalib/bearlib/aspects/meta.py\n+++ b/coalib/bearlib/aspects/meta.py\n@@ -44,7 +44,7 @@\n attr: getattr(docs, attr, '') for attr in\n list(signature(Documentation).parameters.keys())[1:]})\n \n- ...
1,075
139
gh_patches_debug_39017
rasdani/github-patches
git_diff
pypa__pip-2464
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Interrupting a pip download with CTRL-C does not unhide the cursor Version: pep 6.0.8 Pressing CTRL-C while pip is downloading a package (and displaying its progress bar) shows an "Operation cancelled by use...
diff --git a/pip/utils/ui.py b/pip/utils/ui.py --- a/pip/utils/ui.py +++ b/pip/utils/ui.py @@ -3,6 +3,7 @@ import itertools import sys +from signal import signal, SIGINT, default_int_handler from pip.compat import WINDOWS from pip.utils import format_size @@ -50,6 +51,61 @@ _BaseBar = _select_progress_class(In...
{"golden_diff": "diff --git a/pip/utils/ui.py b/pip/utils/ui.py\n--- a/pip/utils/ui.py\n+++ b/pip/utils/ui.py\n@@ -3,6 +3,7 @@\n \n import itertools\n import sys\n+from signal import signal, SIGINT, default_int_handler\n \n from pip.compat import WINDOWS\n from pip.utils import format_size\n@@ -50,6 +51,61 @@\n _BaseBa...
1,786
763
gh_patches_debug_17530
rasdani/github-patches
git_diff
biopython__biopython-2513
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove use of Bio._py3k (Python 2 / 3 compatibility) As of Biopython 1.76 (released December 2019), we are dropping Python 2 support and focusing on Python 3.6 or later. This means we no longer need our (inte...
diff --git a/Bio/_py3k/__init__.py b/Bio/_py3k/__init__.py --- a/Bio/_py3k/__init__.py +++ b/Bio/_py3k/__init__.py @@ -14,20 +14,7 @@ # this file. This line tells flake8 to ignore it for quality assurance: # flake8: noqa -import sys - -import codecs - - -def _bytes_bytearray_to_str(s): - """If s is bytes or byte...
{"golden_diff": "diff --git a/Bio/_py3k/__init__.py b/Bio/_py3k/__init__.py\n--- a/Bio/_py3k/__init__.py\n+++ b/Bio/_py3k/__init__.py\n@@ -14,20 +14,7 @@\n # this file. This line tells flake8 to ignore it for quality assurance:\n # flake8: noqa\n \n-import sys\n-\n-import codecs\n-\n-\n-def _bytes_bytearray_to_str(s):\...
1,581
252
gh_patches_debug_19359
rasdani/github-patches
git_diff
fedora-infra__bodhi-4115
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add the possibility to query updates by releases in graphql We currently have a getUpdates query in graphql that let us query updates using certain attributes, we should add the possibility to give a release ...
diff --git a/bodhi/server/services/graphql.py b/bodhi/server/services/graphql.py --- a/bodhi/server/services/graphql.py +++ b/bodhi/server/services/graphql.py @@ -58,7 +58,7 @@ status=graphene.String(), request=graphene.String(), pushed=graphene.Boolean(), critpath=graphene.Boolean(), date_ap...
{"golden_diff": "diff --git a/bodhi/server/services/graphql.py b/bodhi/server/services/graphql.py\n--- a/bodhi/server/services/graphql.py\n+++ b/bodhi/server/services/graphql.py\n@@ -58,7 +58,7 @@\n status=graphene.String(), request=graphene.String(),\n pushed=graphene.Boolean(), critpath=graphene.Boole...
1,827
224
gh_patches_debug_6998
rasdani/github-patches
git_diff
microsoft__hi-ml-80
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Handle the "v" in version numbering Our code in `setup.py` will trigger with new tags. `setuptools.setup` will reject tags that are not release versions but we could do more to make that explicit by checking...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ # See also: # https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ # https://github.com/pypa/gh-action-pypi-publish -GITHUB_REF_TAG_COMMIT = 'refs/tags/' +GITHUB_REF_TAG_COMM...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -31,7 +31,7 @@\n # See also:\n # https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/\n # https://github.com/pypa/gh-action-pypi-publish\n-GITHUB_REF_TAG_COMMIT = 'refs/tag...
1,509
125
gh_patches_debug_42542
rasdani/github-patches
git_diff
networkx__networkx-2532
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- maximal_independent_set does not work for DiGraph Currently [maximal_independent_set](https://github.com/networkx/networkx/blob/d7d906e1d16ef331da0bc1d149953e7532155acc/networkx/algorithms/mis.py#L70) returns...
diff --git a/networkx/algorithms/mis.py b/networkx/algorithms/mis.py --- a/networkx/algorithms/mis.py +++ b/networkx/algorithms/mis.py @@ -1,24 +1,26 @@ # -*- coding: utf-8 -*- # $Id: maximalIndependentSet.py 576 2011-03-01 05:50:34Z lleeoo $ -""" -Algorithm to find a maximal (not maximum) independent set. - -""" # ...
{"golden_diff": "diff --git a/networkx/algorithms/mis.py b/networkx/algorithms/mis.py\n--- a/networkx/algorithms/mis.py\n+++ b/networkx/algorithms/mis.py\n@@ -1,24 +1,26 @@\n # -*- coding: utf-8 -*-\n # $Id: maximalIndependentSet.py 576 2011-03-01 05:50:34Z lleeoo $\n-\"\"\"\n-Algorithm to find a maximal (not maximum) ...
1,265
846
gh_patches_debug_27752
rasdani/github-patches
git_diff
pyload__pyload-52
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- FourChanOrg don't work When i try to download a thread (e.g. http://boards.4chan.org/wg/res/5176429) nothing happens, only BasePlugin will be used, --- END ISSUE --- Below are some code segments, each from...
diff --git a/module/plugins/crypter/FourChanOrg.py b/module/plugins/crypter/FourChanOrg.py --- a/module/plugins/crypter/FourChanOrg.py +++ b/module/plugins/crypter/FourChanOrg.py @@ -6,34 +6,20 @@ from module.plugins.Crypter import Crypter class FourChanOrg(Crypter): + # Based on 4chandl by Roland Beermann + ...
{"golden_diff": "diff --git a/module/plugins/crypter/FourChanOrg.py b/module/plugins/crypter/FourChanOrg.py\n--- a/module/plugins/crypter/FourChanOrg.py\n+++ b/module/plugins/crypter/FourChanOrg.py\n@@ -6,34 +6,20 @@\n from module.plugins.Crypter import Crypter\n \n class FourChanOrg(Crypter):\n+ # Based on 4chandl ...
725
582
gh_patches_debug_11575
rasdani/github-patches
git_diff
mindsdb__lightwood-968
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve runtime of `LightGBMArray` for long-horizon forecasting Two main approaches: - Disable optuna hyperparam search past some threshold. - Opt for a recursive strategy instead of direct (i.e. same reg...
diff --git a/lightwood/mixer/lightgbm_array.py b/lightwood/mixer/lightgbm_array.py --- a/lightwood/mixer/lightgbm_array.py +++ b/lightwood/mixer/lightgbm_array.py @@ -49,7 +49,7 @@ dtype_dict, input_cols, False, # fit_on...
{"golden_diff": "diff --git a/lightwood/mixer/lightgbm_array.py b/lightwood/mixer/lightgbm_array.py\n--- a/lightwood/mixer/lightgbm_array.py\n+++ b/lightwood/mixer/lightgbm_array.py\n@@ -49,7 +49,7 @@\n dtype_dict,\n input_cols,\n ...
1,576
143
gh_patches_debug_16279
rasdani/github-patches
git_diff
scikit-image__scikit-image-1367
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Invalid deprecation of canny, perhaps others ``` $ python -c "from skimage import filters as F; F.canny(0)" Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/stefan/src/s...
diff --git a/skimage/filter/__init__.py b/skimage/filter/__init__.py --- a/skimage/filter/__init__.py +++ b/skimage/filter/__init__.py @@ -36,7 +36,7 @@ (restoration.denoise_tv_chambolle) # Backward compatibility v<0.11 -@deprecated +@deprecated('skimage.feature.canny') def canny(*args, **k...
{"golden_diff": "diff --git a/skimage/filter/__init__.py b/skimage/filter/__init__.py\n--- a/skimage/filter/__init__.py\n+++ b/skimage/filter/__init__.py\n@@ -36,7 +36,7 @@\n (restoration.denoise_tv_chambolle)\n \n # Backward compatibility v<0.11\n-@deprecated\n+@deprecated('skimage.feature.cann...
1,937
254
gh_patches_debug_23827
rasdani/github-patches
git_diff
scoutapp__scout_apm_python-709
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Celery exceptions cause error in capture_stacktrace The latest version of celery, 5.2.1, raises some exceptions in an unexpected way. For this particular case, `tb` was a string of value: ``` 'Tracebac...
diff --git a/src/scout_apm/celery.py b/src/scout_apm/celery.py --- a/src/scout_apm/celery.py +++ b/src/scout_apm/celery.py @@ -23,7 +23,7 @@ get_safe_settings = None import scout_apm.core -from scout_apm.compat import datetime_to_timestamp +from scout_apm.compat import datetime_to_timestamp, string_type from s...
{"golden_diff": "diff --git a/src/scout_apm/celery.py b/src/scout_apm/celery.py\n--- a/src/scout_apm/celery.py\n+++ b/src/scout_apm/celery.py\n@@ -23,7 +23,7 @@\n get_safe_settings = None\n \n import scout_apm.core\n-from scout_apm.compat import datetime_to_timestamp\n+from scout_apm.compat import datetime_to_times...
2,047
291
gh_patches_debug_56612
rasdani/github-patches
git_diff
spacetelescope__jwql-677
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update Bokeh to latest version I remember there was some reason that we were holding off on upgrading Bokeh from 1.3.4. However, Bokeh is now up to version 2.2.1 I believe. We should look into upgrading the v...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ 'astropy>=3.2.1', 'astroquery>=0.3.9', 'authlib', - 'bokeh>=1.0,<1.4', + 'bokeh', 'codecov', 'crds', 'cryptography',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -16,7 +16,7 @@\n 'astropy>=3.2.1',\n 'astroquery>=0.3.9',\n 'authlib',\n- 'bokeh>=1.0,<1.4',\n+ 'bokeh',\n 'codecov',\n 'crds',\n 'cryptography',\n", "issue": "Update Bokeh to latest version\nI remember t...
981
94
gh_patches_debug_26224
rasdani/github-patches
git_diff
mirumee__ariadne-24
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `add_resolve_functions_to_schema` should support Scalars parse_value and parse_literal Currently Ariadne Scalar support is limited to serializing python types to JSON before returning them to client, but we a...
diff --git a/ariadne/resolvers.py b/ariadne/resolvers.py --- a/ariadne/resolvers.py +++ b/ariadne/resolvers.py @@ -24,16 +24,24 @@ if isinstance(type_object, GraphQLObjectType): add_resolve_functions_to_object(type_name, type_object, resolvers) if isinstance(type_object, GraphQLScalarType...
{"golden_diff": "diff --git a/ariadne/resolvers.py b/ariadne/resolvers.py\n--- a/ariadne/resolvers.py\n+++ b/ariadne/resolvers.py\n@@ -24,16 +24,24 @@\n if isinstance(type_object, GraphQLObjectType):\n add_resolve_functions_to_object(type_name, type_object, resolvers)\n if isinstance(type_ob...
762
363
gh_patches_debug_36546
rasdani/github-patches
git_diff
weecology__retriever-698
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error downloading eBird_observation data. The URL doesn't work anymore. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FIL...
diff --git a/scripts/eBird_observation.py b/scripts/eBird_observation.py deleted file mode 100644 --- a/scripts/eBird_observation.py +++ /dev/null @@ -1,56 +0,0 @@ -#retriever -"""Data Retriever script for the eBird Observation Dataset""" - -from retriever.lib.templates import Script -from retriever.lib.models import T...
{"golden_diff": "diff --git a/scripts/eBird_observation.py b/scripts/eBird_observation.py\ndeleted file mode 100644\n--- a/scripts/eBird_observation.py\n+++ /dev/null\n@@ -1,56 +0,0 @@\n-#retriever\n-\"\"\"Data Retriever script for the eBird Observation Dataset\"\"\"\n-\n-from retriever.lib.templates import Script\n-fr...
1,642
820
gh_patches_debug_29119
rasdani/github-patches
git_diff
googleapis__google-cloud-python-3786
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BigQuery: expose public helper method to convert a list of schema fields to/from a list of schema dictionaries (JSON) I've received some feedback asking how to take a schema from the client library and save i...
diff --git a/bigquery/google/cloud/bigquery/schema.py b/bigquery/google/cloud/bigquery/schema.py --- a/bigquery/google/cloud/bigquery/schema.py +++ b/bigquery/google/cloud/bigquery/schema.py @@ -43,6 +43,25 @@ self._description = description self._fields = tuple(fields) + @classmethod + def fr...
{"golden_diff": "diff --git a/bigquery/google/cloud/bigquery/schema.py b/bigquery/google/cloud/bigquery/schema.py\n--- a/bigquery/google/cloud/bigquery/schema.py\n+++ b/bigquery/google/cloud/bigquery/schema.py\n@@ -43,6 +43,25 @@\n self._description = description\n self._fields = tuple(fields)\n \n+ ...
1,469
468
gh_patches_debug_13145
rasdani/github-patches
git_diff
mabel-dev__opteryx-1159
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 🧹 resync SQLoxide AST to SQL and AST visitor appear to have been added --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FIL...
diff --git a/opteryx/third_party/sqloxide/__init__.py b/opteryx/third_party/sqloxide/__init__.py --- a/opteryx/third_party/sqloxide/__init__.py +++ b/opteryx/third_party/sqloxide/__init__.py @@ -1,8 +1,16 @@ -try: - from .sqloxide import parse_sql -except ImportError as e: # pragma: no cover - print(e) - if s...
{"golden_diff": "diff --git a/opteryx/third_party/sqloxide/__init__.py b/opteryx/third_party/sqloxide/__init__.py\n--- a/opteryx/third_party/sqloxide/__init__.py\n+++ b/opteryx/third_party/sqloxide/__init__.py\n@@ -1,8 +1,16 @@\n-try:\n- from .sqloxide import parse_sql\n-except ImportError as e: # pragma: no cover\...
356
311
gh_patches_debug_15830
rasdani/github-patches
git_diff
Parsl__parsl-666
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add "all" install option We have several subpackages now. I think it would be good if we had an option to install all subpackages. --- END ISSUE --- Below are some code segments, each from a relevant file....
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -24,10 +24,17 @@ extras_require = { 'db_logging' : ['CMRESHandler', 'psutil', 'sqlalchemy'], 'aws' : ['boto3'], - 'jetstream' : ['python-novaclient'], + # Jetstream is deprecated since the interface has not been maint...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -24,10 +24,17 @@\n extras_require = {\n 'db_logging' : ['CMRESHandler', 'psutil', 'sqlalchemy'],\n 'aws' : ['boto3'],\n- 'jetstream' : ['python-novaclient'],\n+ # Jetstream is deprecated since the int...
755
244
gh_patches_debug_15111
rasdani/github-patches
git_diff
wagtail__wagtail-2621
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add default icon for TableBlock As per https://github.com/torchbox/wagtail/pull/1705#issuecomment-216053655. Best to do this after #2417 is merged, to avoid conflicts. --- END ISSUE --- Below are some code...
diff --git a/wagtail/contrib/table_block/fields.py b/wagtail/contrib/table_block/fields.py --- a/wagtail/contrib/table_block/fields.py +++ b/wagtail/contrib/table_block/fields.py @@ -29,7 +29,6 @@ return "initTable({0}, {1});".format(json.dumps(id_), json.dumps(self.table_options)) - class TableBlock(Fiel...
{"golden_diff": "diff --git a/wagtail/contrib/table_block/fields.py b/wagtail/contrib/table_block/fields.py\n--- a/wagtail/contrib/table_block/fields.py\n+++ b/wagtail/contrib/table_block/fields.py\n@@ -29,7 +29,6 @@\n return \"initTable({0}, {1});\".format(json.dumps(id_), json.dumps(self.table_options))\n \n ...
1,409
180
gh_patches_debug_23780
rasdani/github-patches
git_diff
pypa__setuptools-2256
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unexpected behavior when distutils is invoked before Setuptools TL;DR We are forced to use distutils because setuptools has broken symlink processing and this causes `distutils.errors.DistutilsClassError: com...
diff --git a/setuptools/distutils_patch.py b/setuptools/distutils_patch.py --- a/setuptools/distutils_patch.py +++ b/setuptools/distutils_patch.py @@ -12,10 +12,26 @@ import warnings +is_pypy = '__pypy__' in sys.builtin_module_names + + +def warn_distutils_present(): + if 'distutils' not in sys.modules: + ...
{"golden_diff": "diff --git a/setuptools/distutils_patch.py b/setuptools/distutils_patch.py\n--- a/setuptools/distutils_patch.py\n+++ b/setuptools/distutils_patch.py\n@@ -12,10 +12,26 @@\n import warnings\n \n \n+is_pypy = '__pypy__' in sys.builtin_module_names\n+\n+\n+def warn_distutils_present():\n+ if 'distutils'...
770
378
gh_patches_debug_3506
rasdani/github-patches
git_diff
vega__altair-692
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Two renderers with same name Working with a fresh Anaconda installation of Jupyter 3.6. Followed Altair Notebook installation instructions. Basic example (flower petals scatter plot) rendered but with JSON ...
diff --git a/altair/utils/plugin_registry.py b/altair/utils/plugin_registry.py --- a/altair/utils/plugin_registry.py +++ b/altair/utils/plugin_registry.py @@ -75,7 +75,7 @@ exts = list(self._plugins.keys()) more_exts = [ep.name for ep in entrypoints.get_group_all(self.entry_point_group)] exts...
{"golden_diff": "diff --git a/altair/utils/plugin_registry.py b/altair/utils/plugin_registry.py\n--- a/altair/utils/plugin_registry.py\n+++ b/altair/utils/plugin_registry.py\n@@ -75,7 +75,7 @@\n exts = list(self._plugins.keys())\n more_exts = [ep.name for ep in entrypoints.get_group_all(self.entry_point...
1,455
119