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_9649
rasdani/github-patches
git_diff
OBOFoundry__OBOFoundry.github.io-1980
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- OBO prefix map should include prefixes of obsolete ontologies I think OBO prefix map should contain prefixes of obsolete ontologies. Sometimes, like [here](https://github.com/OBOFoundry/OBOFoundry.github.io/p...
diff --git a/util/make-shacl-prefixes.py b/util/make-shacl-prefixes.py --- a/util/make-shacl-prefixes.py +++ b/util/make-shacl-prefixes.py @@ -43,8 +43,9 @@ print(" sh:declare") sep = "" for ont in data["ontologies"]: - if ont.get("is_obsolete", False): - continue + # if ont.get(...
{"golden_diff": "diff --git a/util/make-shacl-prefixes.py b/util/make-shacl-prefixes.py\n--- a/util/make-shacl-prefixes.py\n+++ b/util/make-shacl-prefixes.py\n@@ -43,8 +43,9 @@\n print(\" sh:declare\")\n sep = \"\"\n for ont in data[\"ontologies\"]:\n- if ont.get(\"is_obsolete\", False):\n- ...
937
185
gh_patches_debug_17509
rasdani/github-patches
git_diff
bokeh__bokeh-3888
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bokeh 0.11: Enables webgl causes inconsistent update of scatter points This problem might be related to this issue: https://github.com/bokeh/bokeh/issues/3795 Lets consider this minimal example: ``` python ...
diff --git a/examples/plotting/file/line_compare.py b/examples/plotting/file/line_compare.py --- a/examples/plotting/file/line_compare.py +++ b/examples/plotting/file/line_compare.py @@ -13,6 +13,7 @@ ys = 10 # yscale, to increase anisotropy +lines = [] for p in (p1, p2): t = np.linspace(0, 2 * np.pi, 50)...
{"golden_diff": "diff --git a/examples/plotting/file/line_compare.py b/examples/plotting/file/line_compare.py\n--- a/examples/plotting/file/line_compare.py\n+++ b/examples/plotting/file/line_compare.py\n@@ -13,6 +13,7 @@\n \n ys = 10 # yscale, to increase anisotropy\n \n+lines = []\n for p in (p1, p2):\n \n t = np...
1,848
266
gh_patches_debug_29833
rasdani/github-patches
git_diff
Project-MONAI__MONAI-5067
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ThreadDataLoader dataloading order is related to numworker, which makes it difficult to reproduce **Describe the bug** During our experiments, we found that the ThreadDataLoader loading order made a differen...
diff --git a/monai/data/dataloader.py b/monai/data/dataloader.py --- a/monai/data/dataloader.py +++ b/monai/data/dataloader.py @@ -66,6 +66,8 @@ num_workers: how many subprocesses to use for data loading. ``0`` means that the data will be loaded in the main process. (default: ``0``) +...
{"golden_diff": "diff --git a/monai/data/dataloader.py b/monai/data/dataloader.py\n--- a/monai/data/dataloader.py\n+++ b/monai/data/dataloader.py\n@@ -66,6 +66,8 @@\n num_workers: how many subprocesses to use for data\n loading. ``0`` means that the data will be loaded in the main process.\n ...
1,824
403
gh_patches_debug_11625
rasdani/github-patches
git_diff
fidals__shopelectro-419
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- /robots.txt url returns 301. stb2 Check this for example: https://www.shopelectro.ru/robots.txt --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may con...
diff --git a/shopelectro/urls.py b/shopelectro/urls.py --- a/shopelectro/urls.py +++ b/shopelectro/urls.py @@ -92,7 +92,7 @@ custom_pages = [ custom_page_url(r'^(?P<page>)$', cached_2h(views.IndexPage.as_view())), - custom_page_url(r'^(?P<page>robots\.txt)/$', RobotsView.as_view(in_db=True)), + custom_pag...
{"golden_diff": "diff --git a/shopelectro/urls.py b/shopelectro/urls.py\n--- a/shopelectro/urls.py\n+++ b/shopelectro/urls.py\n@@ -92,7 +92,7 @@\n \n custom_pages = [\n custom_page_url(r'^(?P<page>)$', cached_2h(views.IndexPage.as_view())),\n- custom_page_url(r'^(?P<page>robots\\.txt)/$', RobotsView.as_view(in_d...
1,882
200
gh_patches_debug_33062
rasdani/github-patches
git_diff
bridgecrewio__checkov-3387
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Crash mentioned in issue #2370 still exist for AWS Batch Job with Fargate **Describe the issue** Checkov is failing for Fargate AWS Batch Job with error - `[ERROR] Failed to run check: Batch job does not ...
diff --git a/checkov/terraform/checks/resource/aws/BatchJobIsNotPrivileged.py b/checkov/terraform/checks/resource/aws/BatchJobIsNotPrivileged.py --- a/checkov/terraform/checks/resource/aws/BatchJobIsNotPrivileged.py +++ b/checkov/terraform/checks/resource/aws/BatchJobIsNotPrivileged.py @@ -1,28 +1,34 @@ +from __future_...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/aws/BatchJobIsNotPrivileged.py b/checkov/terraform/checks/resource/aws/BatchJobIsNotPrivileged.py\n--- a/checkov/terraform/checks/resource/aws/BatchJobIsNotPrivileged.py\n+++ b/checkov/terraform/checks/resource/aws/BatchJobIsNotPrivileged.py\n@@ -1,28 +1,3...
1,816
457
gh_patches_debug_12388
rasdani/github-patches
git_diff
safe-global__safe-config-service-30
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cache GET /safe-apps/ endpoint The endpoint `GET /safe-apps` returns a list of safe-apps that can be cached (eg.: 1h) due to the nature of the endpoint (frequency of updating the app list is low). Updating th...
diff --git a/src/safe_apps/views.py b/src/safe_apps/views.py --- a/src/safe_apps/views.py +++ b/src/safe_apps/views.py @@ -1,3 +1,5 @@ +from django.utils.decorators import method_decorator +from django.views.decorators.cache import cache_page from rest_framework.generics import ListAPIView from .models import SafeA...
{"golden_diff": "diff --git a/src/safe_apps/views.py b/src/safe_apps/views.py\n--- a/src/safe_apps/views.py\n+++ b/src/safe_apps/views.py\n@@ -1,3 +1,5 @@\n+from django.utils.decorators import method_decorator\n+from django.views.decorators.cache import cache_page\n from rest_framework.generics import ListAPIView\n \n ...
452
176
gh_patches_debug_7339
rasdani/github-patches
git_diff
OCHA-DAP__hdx-ckan-1684
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ebola Static Page: static page extension Create configuration and deploy of static page extention/plugin. This is a blocker for the other issues. - populate the list of datasets of the controller --- END IS...
diff --git a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py --- a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py +++ b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py @@ -90,7 ...
{"golden_diff": "diff --git a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py\n--- a/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_controller.py\n+++ b/ckanext-hdx_crisis/ckanext/hdx_crisis/controllers/crisis_cont...
1,206
182
gh_patches_debug_5006
rasdani/github-patches
git_diff
Textualize__textual-2621
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pushing a screen should send Leave message If you have an action that opens a screen, it leaves the footer stuck in the highlight state. I think we need to call `_set_mouse_over(None)` on the current screen ...
diff --git a/src/textual/widgets/_footer.py b/src/textual/widgets/_footer.py --- a/src/textual/widgets/_footer.py +++ b/src/textual/widgets/_footer.py @@ -79,8 +79,7 @@ def _on_leave(self, _: events.Leave) -> None: """Clear any highlight when the mouse leaves the widget""" - if self.screen.is_cur...
{"golden_diff": "diff --git a/src/textual/widgets/_footer.py b/src/textual/widgets/_footer.py\n--- a/src/textual/widgets/_footer.py\n+++ b/src/textual/widgets/_footer.py\n@@ -79,8 +79,7 @@\n \n def _on_leave(self, _: events.Leave) -> None:\n \"\"\"Clear any highlight when the mouse leaves the widget\"\"\"\n...
1,647
126
gh_patches_debug_27148
rasdani/github-patches
git_diff
beeware__toga-2086
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Gtk] WebView uses deprecated run_javascript api ### Describe the bug The Gtk backend for `toga.WebView` uses the `run_javascript()` API to evaluate JavaScript. This was deprecated in WebView v2.40 in favo...
diff --git a/gtk/src/toga_gtk/widgets/webview.py b/gtk/src/toga_gtk/widgets/webview.py --- a/gtk/src/toga_gtk/widgets/webview.py +++ b/gtk/src/toga_gtk/widgets/webview.py @@ -80,11 +80,10 @@ # Define a callback that will update the future when # the Javascript is complete. def gtk_js_finished...
{"golden_diff": "diff --git a/gtk/src/toga_gtk/widgets/webview.py b/gtk/src/toga_gtk/widgets/webview.py\n--- a/gtk/src/toga_gtk/widgets/webview.py\n+++ b/gtk/src/toga_gtk/widgets/webview.py\n@@ -80,11 +80,10 @@\n # Define a callback that will update the future when\n # the Javascript is complete.\n ...
1,740
334
gh_patches_debug_4483
rasdani/github-patches
git_diff
kserve__kserve-2134
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- kfserving-samples bucket on GCS was gone /kind bug **What steps did you take and what happened:** The existing codebase is running some test code with a prebuild model file located in GCS, especially `gs:...
diff --git a/docs/samples/pipelines/sample-tf-pipeline.py b/docs/samples/pipelines/sample-tf-pipeline.py --- a/docs/samples/pipelines/sample-tf-pipeline.py +++ b/docs/samples/pipelines/sample-tf-pipeline.py @@ -28,7 +28,7 @@ def kservePipeline( action='apply', model_name='tensorflow-sample', - ...
{"golden_diff": "diff --git a/docs/samples/pipelines/sample-tf-pipeline.py b/docs/samples/pipelines/sample-tf-pipeline.py\n--- a/docs/samples/pipelines/sample-tf-pipeline.py\n+++ b/docs/samples/pipelines/sample-tf-pipeline.py\n@@ -28,7 +28,7 @@\n def kservePipeline(\n action='apply',\n model_name='tenso...
852
141
gh_patches_debug_4867
rasdani/github-patches
git_diff
buildbot__buildbot-5768
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Send keepalive messages on websocket to prevent cloudflare disconnect buildbot behind cloudflare is currently reloading for me every 100 seconds. This is due to a cloudflare limitation that is resetting webso...
diff --git a/master/buildbot/www/ws.py b/master/buildbot/www/ws.py --- a/master/buildbot/www/ws.py +++ b/master/buildbot/www/ws.py @@ -135,7 +135,8 @@ def __init__(self, master): super().__init__() self.master = master - self.setProtocolOptions(webStatus=False) + pingInterval = self...
{"golden_diff": "diff --git a/master/buildbot/www/ws.py b/master/buildbot/www/ws.py\n--- a/master/buildbot/www/ws.py\n+++ b/master/buildbot/www/ws.py\n@@ -135,7 +135,8 @@\n def __init__(self, master):\n super().__init__()\n self.master = master\n- self.setProtocolOptions(webStatus=False)\n+ ...
2,008
133
gh_patches_debug_20747
rasdani/github-patches
git_diff
DataDog__dd-trace-py-477
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [psycopg2] The quote_ident function requires psycopg2.extensions.connection. This is very related to https://github.com/DataDog/dd-trace-py/issues/383. To reproduce: ``` from ddtrace import patch_all pa...
diff --git a/ddtrace/contrib/psycopg/patch.py b/ddtrace/contrib/psycopg/patch.py --- a/ddtrace/contrib/psycopg/patch.py +++ b/ddtrace/contrib/psycopg/patch.py @@ -93,6 +93,17 @@ return func(obj, scope) if scope else func(obj) +def _extensions_quote_ident(func, _, args, kwargs): + def _unroll_args(obj, scope...
{"golden_diff": "diff --git a/ddtrace/contrib/psycopg/patch.py b/ddtrace/contrib/psycopg/patch.py\n--- a/ddtrace/contrib/psycopg/patch.py\n+++ b/ddtrace/contrib/psycopg/patch.py\n@@ -93,6 +93,17 @@\n \n return func(obj, scope) if scope else func(obj)\n \n+def _extensions_quote_ident(func, _, args, kwargs):\n+ de...
1,834
333
gh_patches_debug_751
rasdani/github-patches
git_diff
pytorch__TensorRT-74
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Create some sort of serialization / deserialization functionality With INT8 about to land, would be a pain to have to calibrate from scratch every time. There should be some mechanism to save and load modules...
diff --git a/py/trtorch/__init__.py b/py/trtorch/__init__.py --- a/py/trtorch/__init__.py +++ b/py/trtorch/__init__.py @@ -11,3 +11,7 @@ from trtorch._compiler import * from trtorch._types import * from trtorch import logging + +def _register_with_torch(): + trtorch_dir = os.path.dirname(__file__) + torch.ops....
{"golden_diff": "diff --git a/py/trtorch/__init__.py b/py/trtorch/__init__.py\n--- a/py/trtorch/__init__.py\n+++ b/py/trtorch/__init__.py\n@@ -11,3 +11,7 @@\n from trtorch._compiler import *\n from trtorch._types import *\n from trtorch import logging\n+\n+def _register_with_torch():\n+ trtorch_dir = os.path.dirname...
403
117
gh_patches_debug_39214
rasdani/github-patches
git_diff
pytorch__TensorRT-2372
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 🐛 [Bug] Bug in `aten.where` converter for Numpy array inputs ## Bug Description - When applying converter to Numpy arrays or constants, the compilation fails due to use of the `expand` operator, which only...
diff --git a/py/torch_tensorrt/dynamo/conversion/impl/condition/ops.py b/py/torch_tensorrt/dynamo/conversion/impl/condition/ops.py --- a/py/torch_tensorrt/dynamo/conversion/impl/condition/ops.py +++ b/py/torch_tensorrt/dynamo/conversion/impl/condition/ops.py @@ -1,4 +1,4 @@ -from typing import Optional +from typing imp...
{"golden_diff": "diff --git a/py/torch_tensorrt/dynamo/conversion/impl/condition/ops.py b/py/torch_tensorrt/dynamo/conversion/impl/condition/ops.py\n--- a/py/torch_tensorrt/dynamo/conversion/impl/condition/ops.py\n+++ b/py/torch_tensorrt/dynamo/conversion/impl/condition/ops.py\n@@ -1,4 +1,4 @@\n-from typing import Opti...
1,372
677
gh_patches_debug_3522
rasdani/github-patches
git_diff
pytorch__TensorRT-1953
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ✨[Converter] Implement aten::addmm Torch op: func: addmm(Tensor self, Tensor mat1, Tensor mat2, *, Scalar beta=1, Scalar alpha=1) -> Tensor Aten op: torch.ops.addmm.default --- END ISSUE --- Below are som...
diff --git a/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py b/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py --- a/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py +++ b/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py @@ -56,5 +56,14 @@ return x +@register_d...
{"golden_diff": "diff --git a/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py b/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py\n--- a/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py\n+++ b/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py\n@@ -56,5 +56,14 @@\n retu...
1,028
193
gh_patches_debug_65034
rasdani/github-patches
git_diff
learningequality__kolibri-7238
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- import footer styling regression ### Observed behavior ![image](https://user-images.githubusercontent.com/2367265/85073073-fef1cd80-b16e-11ea-98c5-8e2342430929.png) ### Expected behavior button a...
diff --git a/kolibri/core/content/utils/channels.py b/kolibri/core/content/utils/channels.py --- a/kolibri/core/content/utils/channels.py +++ b/kolibri/core/content/utils/channels.py @@ -123,7 +123,7 @@ "id": channel.id, "name": channel.name, "description": channel.description, - ...
{"golden_diff": "diff --git a/kolibri/core/content/utils/channels.py b/kolibri/core/content/utils/channels.py\n--- a/kolibri/core/content/utils/channels.py\n+++ b/kolibri/core/content/utils/channels.py\n@@ -123,7 +123,7 @@\n \"id\": channel.id,\n \"name\": channel.name,\n \"descripti...
1,992
129
gh_patches_debug_26328
rasdani/github-patches
git_diff
mindsdb__mindsdb-1020
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Run tests on windows and OSX Part of the reason we wanted tests with remote databases was to be able to test mindsdb on windows and OSX. This is currently being done for native but not for mindsdb, curren...
diff --git a/mindsdb/utilities/ps.py b/mindsdb/utilities/ps.py --- a/mindsdb/utilities/ps.py +++ b/mindsdb/utilities/ps.py @@ -1,11 +1,44 @@ -import psutil +import sys import time +from collections import namedtuple +import psutil + + +def net_connections(): + """Cross-platform psutil.net_connections like interface...
{"golden_diff": "diff --git a/mindsdb/utilities/ps.py b/mindsdb/utilities/ps.py\n--- a/mindsdb/utilities/ps.py\n+++ b/mindsdb/utilities/ps.py\n@@ -1,11 +1,44 @@\n-import psutil\n+import sys\n import time\n+from collections import namedtuple\n+import psutil\n+\n+\n+def net_connections():\n+ \"\"\"Cross-platform psuti...
674
453
gh_patches_debug_29878
rasdani/github-patches
git_diff
translate__pootle-4260
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Enable sorting by contribution in contributor command Currently contributors are sorted in alphabetical order. This is great for crediting. But it would be more helpful to allow sorting by contribution in c...
diff --git a/pootle/apps/pootle_app/management/commands/contributors.py b/pootle/apps/pootle_app/management/commands/contributors.py --- a/pootle/apps/pootle_app/management/commands/contributors.py +++ b/pootle/apps/pootle_app/management/commands/contributors.py @@ -32,6 +32,15 @@ dest="revision", ...
{"golden_diff": "diff --git a/pootle/apps/pootle_app/management/commands/contributors.py b/pootle/apps/pootle_app/management/commands/contributors.py\n--- a/pootle/apps/pootle_app/management/commands/contributors.py\n+++ b/pootle/apps/pootle_app/management/commands/contributors.py\n@@ -32,6 +32,15 @@\n dest...
950
433
gh_patches_debug_15183
rasdani/github-patches
git_diff
activeloopai__deeplake-2472
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Possibly unsafe conversion of DatasetDiff instance to bytes ## 🐛🐛 Bug Report ### ⚗️ Current Behavior The code block https://github.com/activeloopai/deeplake/blob/c88925d8afa94841972fe4fd6f1dd...
diff --git a/deeplake/core/version_control/dataset_diff.py b/deeplake/core/version_control/dataset_diff.py --- a/deeplake/core/version_control/dataset_diff.py +++ b/deeplake/core/version_control/dataset_diff.py @@ -36,10 +36,13 @@ [ len(old_name).to_bytes(8, "big"),...
{"golden_diff": "diff --git a/deeplake/core/version_control/dataset_diff.py b/deeplake/core/version_control/dataset_diff.py\n--- a/deeplake/core/version_control/dataset_diff.py\n+++ b/deeplake/core/version_control/dataset_diff.py\n@@ -36,10 +36,13 @@\n [\n len(old_nam...
1,832
205
gh_patches_debug_21888
rasdani/github-patches
git_diff
wagtail__wagtail-651
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "wagtail start project_name" fails to run on Windows 7 Hi. So everything is compiled perfectly inside the virtualenv and I'm trying to start a new project. ``` $ wagtail start wagtailtest Creating a wagtail ...
diff --git a/wagtail/bin/wagtail.py b/wagtail/bin/wagtail.py --- a/wagtail/bin/wagtail.py +++ b/wagtail/bin/wagtail.py @@ -2,11 +2,11 @@ from __future__ import print_function, absolute_import import os -import subprocess import errno import sys from optparse import OptionParser +from django.core.management imp...
{"golden_diff": "diff --git a/wagtail/bin/wagtail.py b/wagtail/bin/wagtail.py\n--- a/wagtail/bin/wagtail.py\n+++ b/wagtail/bin/wagtail.py\n@@ -2,11 +2,11 @@\n from __future__ import print_function, absolute_import\n \n import os\n-import subprocess\n import errno\n import sys\n \n from optparse import OptionParser\n+fr...
1,299
258
gh_patches_debug_30556
rasdani/github-patches
git_diff
mdn__kuma-6929
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- T - the API to support subscription management The backend pieces needed for https://github.com/mdn/kuma/issues/6703 That way we, can Reactify the subscription management page. What we need is to endpo...
diff --git a/kuma/users/stripe_utils.py b/kuma/users/stripe_utils.py --- a/kuma/users/stripe_utils.py +++ b/kuma/users/stripe_utils.py @@ -64,7 +64,7 @@ UserSubscription.set_active(user, stripe_subscription_info.id) else: # The user has a stripe_customer_id but no active subscription ...
{"golden_diff": "diff --git a/kuma/users/stripe_utils.py b/kuma/users/stripe_utils.py\n--- a/kuma/users/stripe_utils.py\n+++ b/kuma/users/stripe_utils.py\n@@ -64,7 +64,7 @@\n UserSubscription.set_active(user, stripe_subscription_info.id)\n else:\n # The user has a stripe_customer_id but ...
1,758
323
gh_patches_debug_31465
rasdani/github-patches
git_diff
weecology__retriever-769
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reinstate Fia script (Forest Inventory and Analysis) Forest Inventory and Analysis changed the file locations. New species table url: https://apps.fs.usda.gov/fiadb-downloads/CSV/REF_SPECIES.csv new main: ...
diff --git a/scripts/forest-inventory-analysis.py b/scripts/forest-inventory-analysis.py --- a/scripts/forest-inventory-analysis.py +++ b/scripts/forest-inventory-analysis.py @@ -7,12 +7,10 @@ standard_library.install_aliases() import os -import urllib.request, urllib.parse, urllib.error -import zipfile -from decim...
{"golden_diff": "diff --git a/scripts/forest-inventory-analysis.py b/scripts/forest-inventory-analysis.py\n--- a/scripts/forest-inventory-analysis.py\n+++ b/scripts/forest-inventory-analysis.py\n@@ -7,12 +7,10 @@\n standard_library.install_aliases()\n \n import os\n-import urllib.request, urllib.parse, urllib.error\n-i...
1,792
425
gh_patches_debug_572
rasdani/github-patches
git_diff
hylang__hy-1343
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- REPL history is lost on (quit) REPL history is not flushed to disk if the REPL is exited using `(quit)`. A workaround is to remember to use `CTRL-D` to exit the REPL. Would be nice if `(quit)` also wor...
diff --git a/hy/completer.py b/hy/completer.py --- a/hy/completer.py +++ b/hy/completer.py @@ -124,7 +124,8 @@ readline.parse_and_bind(readline_bind) - yield - - if docomplete: - readline.write_history_file(history) + try: + yield + finally: + if docomplete: + re...
{"golden_diff": "diff --git a/hy/completer.py b/hy/completer.py\n--- a/hy/completer.py\n+++ b/hy/completer.py\n@@ -124,7 +124,8 @@\n \n readline.parse_and_bind(readline_bind)\n \n- yield\n-\n- if docomplete:\n- readline.write_history_file(history)\n+ try:\n+ yield\n+ finally:\n+ ...
1,393
108
gh_patches_debug_21107
rasdani/github-patches
git_diff
bridgecrewio__checkov-3043
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Checks IDs changing Hi Team, would like to request the check IDs do not get changed since we allowlist some checks which we run in our environment. Eg : https://docs.bridgecrew.io/docs/bc_aws_iam_45 Check...
diff --git a/checkov/cloudformation/checks/resource/aws/IAMRoleAllowAssumeFromAccount.py b/checkov/cloudformation/checks/resource/aws/IAMRoleAllowAssumeFromAccount.py --- a/checkov/cloudformation/checks/resource/aws/IAMRoleAllowAssumeFromAccount.py +++ b/checkov/cloudformation/checks/resource/aws/IAMRoleAllowAssumeFrom...
{"golden_diff": "diff --git a/checkov/cloudformation/checks/resource/aws/IAMRoleAllowAssumeFromAccount.py b/checkov/cloudformation/checks/resource/aws/IAMRoleAllowAssumeFromAccount.py\n--- a/checkov/cloudformation/checks/resource/aws/IAMRoleAllowAssumeFromAccount.py\n+++ b/checkov/cloudformation/checks/resource/aws/IAM...
1,321
357
gh_patches_debug_13349
rasdani/github-patches
git_diff
python-poetry__poetry-3583
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- --short has no effect when `poetry version` is passed a new version <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this; let's make sure of a few things. Please...
diff --git a/poetry/console/commands/version.py b/poetry/console/commands/version.py --- a/poetry/console/commands/version.py +++ b/poetry/console/commands/version.py @@ -48,11 +48,14 @@ self.poetry.package.pretty_version, version ) - self.line( - "Bumping versi...
{"golden_diff": "diff --git a/poetry/console/commands/version.py b/poetry/console/commands/version.py\n--- a/poetry/console/commands/version.py\n+++ b/poetry/console/commands/version.py\n@@ -48,11 +48,14 @@\n self.poetry.package.pretty_version, version\n )\n \n- self.line(\n- ...
1,631
197
gh_patches_debug_3951
rasdani/github-patches
git_diff
ARM-DOE__ACT-837
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AmeriFlux Documentation is not showing up in the API The new act.io.ameriflux code is not showing up in the documentation. --- END ISSUE --- Below are some code segments, each from a relevant file. One or m...
diff --git a/act/io/__init__.py b/act/io/__init__.py --- a/act/io/__init__.py +++ b/act/io/__init__.py @@ -28,7 +28,7 @@ 'check_if_tar_gz_file', 'read_arm_mmcr', ], - 'ameriflux': ['format_as_ameriflux'], + 'ameriflux': ['convert_to_ameriflux'], 'text': ['read_c...
{"golden_diff": "diff --git a/act/io/__init__.py b/act/io/__init__.py\n--- a/act/io/__init__.py\n+++ b/act/io/__init__.py\n@@ -28,7 +28,7 @@\n 'check_if_tar_gz_file',\n 'read_arm_mmcr',\n ],\n- 'ameriflux': ['format_as_ameriflux'],\n+ 'ameriflux': ['convert_to_ameriflux'],\...
794
141
gh_patches_debug_13418
rasdani/github-patches
git_diff
scikit-hep__awkward-2111
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `fill_none` doesn't move through indexed types ### Version of Awkward Array main ### Description and code to reproduce The failure mode here is where we have a lazy carryd `RecordArray`, which then contain...
diff --git a/src/awkward/operations/ak_fill_none.py b/src/awkward/operations/ak_fill_none.py --- a/src/awkward/operations/ak_fill_none.py +++ b/src/awkward/operations/ak_fill_none.py @@ -117,10 +117,10 @@ def action(layout, depth, **kwargs): posaxis = ak._util.maybe_posaxis(layout, axis, depth) ...
{"golden_diff": "diff --git a/src/awkward/operations/ak_fill_none.py b/src/awkward/operations/ak_fill_none.py\n--- a/src/awkward/operations/ak_fill_none.py\n+++ b/src/awkward/operations/ak_fill_none.py\n@@ -117,10 +117,10 @@\n def action(layout, depth, **kwargs):\n posaxis = ak._util.maybe_posaxis(l...
1,830
186
gh_patches_debug_3468
rasdani/github-patches
git_diff
pallets__werkzeug-2612
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Increase default work factor for PBKDF2 to 600,000 iterations https://github.com/pallets/werkzeug/blob/bba2109e276ab876b8d64e2b967412cb6da1d865/src/werkzeug/security.py#L12 The value has not been updated f...
diff --git a/src/werkzeug/security.py b/src/werkzeug/security.py --- a/src/werkzeug/security.py +++ b/src/werkzeug/security.py @@ -9,7 +9,7 @@ pass SALT_CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" -DEFAULT_PBKDF2_ITERATIONS = 260000 +DEFAULT_PBKDF2_ITERATIONS = 600000 _os_alt_sep...
{"golden_diff": "diff --git a/src/werkzeug/security.py b/src/werkzeug/security.py\n--- a/src/werkzeug/security.py\n+++ b/src/werkzeug/security.py\n@@ -9,7 +9,7 @@\n pass\n \n SALT_CHARS = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"\n-DEFAULT_PBKDF2_ITERATIONS = 260000\n+DEFAULT_PBKDF2_ITERATI...
1,893
137
gh_patches_debug_64988
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-911
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- (Berliner Stadtreinigung) BSR not working Hi there, since about a day or two BSR integration isn't pulling data into HA. Any idea what might be wrong? Just FYI the data from abfall.io (ALBA Berlin) is worki...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/bsr_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/bsr_de.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/bsr_de.py +++ b/custom_components/waste_collecti...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/bsr_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/bsr_de.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/bsr_de.py\n+++ b/custom_compon...
1,480
166
gh_patches_debug_24298
rasdani/github-patches
git_diff
airctic__icevision-71
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Hub Detr fine tuning Following the first relase of Detr on hub, it would be a very good idea to support fine tuning. [this](https://github.com/facebookresearch/detr/issues/9) thread should be helpful, and ...
diff --git a/examples/detr_wheat.py b/examples/detr_wheat.py --- a/examples/detr_wheat.py +++ b/examples/detr_wheat.py @@ -30,17 +30,17 @@ def width(self, o) -> int: return o.width - def label(self, o) -> int: - return 1 + def label(self, o) -> List[int]: + return [1] - def bbox...
{"golden_diff": "diff --git a/examples/detr_wheat.py b/examples/detr_wheat.py\n--- a/examples/detr_wheat.py\n+++ b/examples/detr_wheat.py\n@@ -30,17 +30,17 @@\n def width(self, o) -> int:\n return o.width\n \n- def label(self, o) -> int:\n- return 1\n+ def label(self, o) -> List[int]:\n+ ...
999
363
gh_patches_debug_4773
rasdani/github-patches
git_diff
mozilla__bugbug-476
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- defect_enhancement_task Taskcluster task is missing the artifact From the task () logs: ``` [taskcluster 2019-05-21 08:37:51.436Z] === Task Finished === [taskcluster 2019-05-21 08:37:51.519Z] Artifact "pub...
diff --git a/scripts/trainer.py b/scripts/trainer.py --- a/scripts/trainer.py +++ b/scripts/trainer.py @@ -43,9 +43,14 @@ model = model_class() model.train() + logger.info(f"Training done") + model_file_name = f"{model_name}model" + assert os.path.exists(model_file_name) ...
{"golden_diff": "diff --git a/scripts/trainer.py b/scripts/trainer.py\n--- a/scripts/trainer.py\n+++ b/scripts/trainer.py\n@@ -43,9 +43,14 @@\n model = model_class()\n model.train()\n \n+ logger.info(f\"Training done\")\n+\n model_file_name = f\"{model_name}model\"\n+ assert os.pat...
941
115
gh_patches_debug_18311
rasdani/github-patches
git_diff
pytorch__ignite-474
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Version selector on gh-pages like in pytorch docs I think that many of us are installing the ignite using the master branch. It would be nice if the ignite documentation also contains the master docs like ...
diff --git a/docs/source/conf.py b/docs/source/conf.py --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,9 +12,9 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -# import os -# import sys -# sy...
{"golden_diff": "diff --git a/docs/source/conf.py b/docs/source/conf.py\n--- a/docs/source/conf.py\n+++ b/docs/source/conf.py\n@@ -12,9 +12,9 @@\n # add these directories to sys.path here. If the directory is relative to the\n # documentation root, use os.path.abspath to make it absolute, like shown here.\n #\n-# impor...
2,015
252
gh_patches_debug_10249
rasdani/github-patches
git_diff
tensorflow__addons-248
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Build fails because of optimizers Some tests for optimizers fail because of this commit https://github.com/tensorflow/tensorflow/commit/2cb745ef1e0b4082a618c81274fca39be0cb4fc6. It can be fixed by replacing `...
diff --git a/tensorflow_addons/optimizers/lazy_adam.py b/tensorflow_addons/optimizers/lazy_adam.py --- a/tensorflow_addons/optimizers/lazy_adam.py +++ b/tensorflow_addons/optimizers/lazy_adam.py @@ -55,7 +55,7 @@ local_step = tf.cast(self.iterations + 1, var_dtype) beta_1_power = tf.math.pow(beta_1_t,...
{"golden_diff": "diff --git a/tensorflow_addons/optimizers/lazy_adam.py b/tensorflow_addons/optimizers/lazy_adam.py\n--- a/tensorflow_addons/optimizers/lazy_adam.py\n+++ b/tensorflow_addons/optimizers/lazy_adam.py\n@@ -55,7 +55,7 @@\n local_step = tf.cast(self.iterations + 1, var_dtype)\n beta_1_power =...
1,524
206
gh_patches_debug_20695
rasdani/github-patches
git_diff
mne-tools__mne-bids-pipeline-699
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DOC: Website <->README sync Following @hoechenberger's PRs I think our README.md (which ends up on PyPI) looks nicer / does better advertising than our docs landing page does | https://pypi.org/project/mne...
diff --git a/docs/hooks.py b/docs/hooks.py --- a/docs/hooks.py +++ b/docs/hooks.py @@ -2,6 +2,8 @@ from typing import Dict, Any from mkdocs.config.defaults import MkDocsConfig +from mkdocs.structure.pages import Page +from mkdocs.structure.files import Files logger = logging.getLogger("mkdocs") @@ -22,3 +24,29...
{"golden_diff": "diff --git a/docs/hooks.py b/docs/hooks.py\n--- a/docs/hooks.py\n+++ b/docs/hooks.py\n@@ -2,6 +2,8 @@\n from typing import Dict, Any\n \n from mkdocs.config.defaults import MkDocsConfig\n+from mkdocs.structure.pages import Page\n+from mkdocs.structure.files import Files\n \n logger = logging.getLogger(...
835
335
gh_patches_debug_48777
rasdani/github-patches
git_diff
kymatio__kymatio-288
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BUG 3D benchmark fails on GPU It doesn't call the `cuda()` function (now required) when giving a CUDA tensor input, so the scattering transform errors. --- END ISSUE --- Below are some code segments, each f...
diff --git a/examples/3d/compute_speed.py b/examples/3d/compute_speed.py --- a/examples/3d/compute_speed.py +++ b/examples/3d/compute_speed.py @@ -97,8 +97,10 @@ print(fmt_str.format(backend.NAME, device.upper())) if device == 'gpu': + scattering.cuda() x = x.cuda() else: + scatt...
{"golden_diff": "diff --git a/examples/3d/compute_speed.py b/examples/3d/compute_speed.py\n--- a/examples/3d/compute_speed.py\n+++ b/examples/3d/compute_speed.py\n@@ -97,8 +97,10 @@\n print(fmt_str.format(backend.NAME, device.upper()))\n \n if device == 'gpu':\n+ scattering.cuda()\n x = x.cuda()\...
1,689
110
gh_patches_debug_1004
rasdani/github-patches
git_diff
cloudtools__troposphere-2238
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update DLM Interval Rule Values Update DLM valid intervals. `1` has been added. [DLM interval rule allows ](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolic...
diff --git a/troposphere/validators/dlm.py b/troposphere/validators/dlm.py --- a/troposphere/validators/dlm.py +++ b/troposphere/validators/dlm.py @@ -22,7 +22,7 @@ Property: CreateRule.Interval """ - VALID_INTERVALS = (2, 3, 4, 6, 8, 12, 24) + VALID_INTERVALS = (1, 2, 3, 4, 6, 8, 12, 24) if in...
{"golden_diff": "diff --git a/troposphere/validators/dlm.py b/troposphere/validators/dlm.py\n--- a/troposphere/validators/dlm.py\n+++ b/troposphere/validators/dlm.py\n@@ -22,7 +22,7 @@\n Property: CreateRule.Interval\n \"\"\"\n \n- VALID_INTERVALS = (2, 3, 4, 6, 8, 12, 24)\n+ VALID_INTERVALS = (1, 2, 3, 4...
768
141
gh_patches_debug_23227
rasdani/github-patches
git_diff
deepchecks__deepchecks-405
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BUG: model info check fails when model is sklearn pipeline to reproduce: https://www.kaggle.com/itay94/notebook6f16624759 ![image](https://user-images.githubusercontent.com/20860465/147880701-f8edc031-bc1...
diff --git a/deepchecks/checks/overview/model_info.py b/deepchecks/checks/overview/model_info.py --- a/deepchecks/checks/overview/model_info.py +++ b/deepchecks/checks/overview/model_info.py @@ -14,6 +14,7 @@ from deepchecks import ModelOnlyBaseCheck, CheckResult from deepchecks.utils.validation import model_type_v...
{"golden_diff": "diff --git a/deepchecks/checks/overview/model_info.py b/deepchecks/checks/overview/model_info.py\n--- a/deepchecks/checks/overview/model_info.py\n+++ b/deepchecks/checks/overview/model_info.py\n@@ -14,6 +14,7 @@\n \n from deepchecks import ModelOnlyBaseCheck, CheckResult\n from deepchecks.utils.validat...
973
280
gh_patches_debug_25992
rasdani/github-patches
git_diff
joke2k__faker-314
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Param switches on faker.password() don't guarantee valid password The format switches on `faker.password()` (`special_chars, digits, upper_case, lower_case`) don't always return passwords matching those rules...
diff --git a/faker/providers/misc/__init__.py b/faker/providers/misc/__init__.py --- a/faker/providers/misc/__init__.py +++ b/faker/providers/misc/__init__.py @@ -88,13 +88,33 @@ @param lower_case: Boolean. Whether to use lower letters @return: String. Random password """ - chars = "" ...
{"golden_diff": "diff --git a/faker/providers/misc/__init__.py b/faker/providers/misc/__init__.py\n--- a/faker/providers/misc/__init__.py\n+++ b/faker/providers/misc/__init__.py\n@@ -88,13 +88,33 @@\n @param lower_case: Boolean. Whether to use lower letters\n @return: String. Random password\n \...
1,345
394
gh_patches_debug_9023
rasdani/github-patches
git_diff
ESMCI__cime-2482
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unsupported testlist versions should trigger an error #2316 (included in [cime5.4.0-alpha.25](https://github.com/ESMCI/cime/releases/tag/cime5.4.0-alpha.25)) dropped support for v1 of the testlist XML file, b...
diff --git a/scripts/lib/CIME/XML/testlist.py b/scripts/lib/CIME/XML/testlist.py --- a/scripts/lib/CIME/XML/testlist.py +++ b/scripts/lib/CIME/XML/testlist.py @@ -52,6 +52,8 @@ files = Files() schema = files.get_schema("TESTS_SPEC_FILE") GenericXML.__init__(self, infile, schema=schema) + ...
{"golden_diff": "diff --git a/scripts/lib/CIME/XML/testlist.py b/scripts/lib/CIME/XML/testlist.py\n--- a/scripts/lib/CIME/XML/testlist.py\n+++ b/scripts/lib/CIME/XML/testlist.py\n@@ -52,6 +52,8 @@\n files = Files()\n schema = files.get_schema(\"TESTS_SPEC_FILE\")\n GenericXML.__init__(self, ...
1,802
151
gh_patches_debug_5655
rasdani/github-patches
git_diff
google__mobly-842
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Refactor Snippet Client Mobly supports testing devices of multiple platforms, including Android, iOS and Windows. Mobly has one snippet client for each platform, and these clients share common patterns. So we...
diff --git a/mobly/controllers/android_device_lib/services/snippet_management_service.py b/mobly/controllers/android_device_lib/services/snippet_management_service.py --- a/mobly/controllers/android_device_lib/services/snippet_management_service.py +++ b/mobly/controllers/android_device_lib/services/snippet_management_...
{"golden_diff": "diff --git a/mobly/controllers/android_device_lib/services/snippet_management_service.py b/mobly/controllers/android_device_lib/services/snippet_management_service.py\n--- a/mobly/controllers/android_device_lib/services/snippet_management_service.py\n+++ b/mobly/controllers/android_device_lib/services/...
1,929
158
gh_patches_debug_33906
rasdani/github-patches
git_diff
intel__dffml-526
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- operation: io: Examples not being run Due to the lack of newline between the sentence in the examples section and the python prompt. The sphinx doctest plugin isn't running the examples for the IO operations....
diff --git a/dffml/operation/io.py b/dffml/operation/io.py --- a/dffml/operation/io.py +++ b/dffml/operation/io.py @@ -52,6 +52,7 @@ ++++++++ The following example shows how to use AcceptUserInput. + >>> dataflow = DataFlow.auto(AcceptUserInput, GetSingle) >>> dataflow.seed.append( ... In...
{"golden_diff": "diff --git a/dffml/operation/io.py b/dffml/operation/io.py\n--- a/dffml/operation/io.py\n+++ b/dffml/operation/io.py\n@@ -52,6 +52,7 @@\n ++++++++\n \n The following example shows how to use AcceptUserInput.\n+\n >>> dataflow = DataFlow.auto(AcceptUserInput, GetSingle)\n >>> dataflow.se...
1,879
478
gh_patches_debug_42011
rasdani/github-patches
git_diff
freedomofpress__securedrop-3724
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update OSSEC to v3.0 ## Description OSSEC 3.0 was released on July 17th 2018[0], containing a large amount of bug fixes (including 2 security fixes) as well as new major functionality. Of note, it supports...
diff --git a/install_files/ansible-base/roles/build-ossec-deb-pkg/library/ossec_urls.py b/install_files/ansible-base/roles/build-ossec-deb-pkg/library/ossec_urls.py --- a/install_files/ansible-base/roles/build-ossec-deb-pkg/library/ossec_urls.py +++ b/install_files/ansible-base/roles/build-ossec-deb-pkg/library/ossec_u...
{"golden_diff": "diff --git a/install_files/ansible-base/roles/build-ossec-deb-pkg/library/ossec_urls.py b/install_files/ansible-base/roles/build-ossec-deb-pkg/library/ossec_urls.py\n--- a/install_files/ansible-base/roles/build-ossec-deb-pkg/library/ossec_urls.py\n+++ b/install_files/ansible-base/roles/build-ossec-deb-...
1,566
942
gh_patches_debug_62140
rasdani/github-patches
git_diff
searx__searx-801
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tags <xml> are hidden from result titles --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `searx/engines/xpa...
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py --- a/searx/engines/xpath.py +++ b/searx/engines/xpath.py @@ -42,7 +42,9 @@ return ''.join(xpath_results) else: # it's a element - return html_to_text(xpath_results.text_content()).strip() + text = html.tostring(xpath_resu...
{"golden_diff": "diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py\n--- a/searx/engines/xpath.py\n+++ b/searx/engines/xpath.py\n@@ -42,7 +42,9 @@\n return ''.join(xpath_results)\n else:\n # it's a element\n- return html_to_text(xpath_results.text_content()).strip()\n+ text =...
1,381
144
gh_patches_debug_40192
rasdani/github-patches
git_diff
conan-io__conan-center-index-18702
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] tree-sitter-c/*: tree-sitter-c needs to be updated to conan v2 ### Description tree-sitter-c needs to wrok well with conan v2. ### Package and Environment Details * Package Name/Version: **...
diff --git a/recipes/tree-sitter-c/all/conanfile.py b/recipes/tree-sitter-c/all/conanfile.py --- a/recipes/tree-sitter-c/all/conanfile.py +++ b/recipes/tree-sitter-c/all/conanfile.py @@ -1,8 +1,10 @@ -from conans import CMake, ConanFile, tools -import functools +from conan import ConanFile +from conan.tools.cmake impor...
{"golden_diff": "diff --git a/recipes/tree-sitter-c/all/conanfile.py b/recipes/tree-sitter-c/all/conanfile.py\n--- a/recipes/tree-sitter-c/all/conanfile.py\n+++ b/recipes/tree-sitter-c/all/conanfile.py\n@@ -1,8 +1,10 @@\n-from conans import CMake, ConanFile, tools\n-import functools\n+from conan import ConanFile\n+from...
1,376
861
gh_patches_debug_1854
rasdani/github-patches
git_diff
urllib3__urllib3-2424
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove integration tests for Botocore with Python 2.7 Botocore dropped support for Python 2.7 in July so we don't have to do integration testing with Botocore+Python 2.7 on the 1.26.x branch any longer. Re...
diff --git a/noxfile.py b/noxfile.py --- a/noxfile.py +++ b/noxfile.py @@ -88,7 +88,7 @@ session.run("git", "clone", "--depth", "1", git_url, external=True) -@nox.session(python=["2.7", "3.9"]) +@nox.session(python=["3.9"]) def downstream_botocore(session): root = os.getcwd() tmp_dir = session.creat...
{"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -88,7 +88,7 @@\n session.run(\"git\", \"clone\", \"--depth\", \"1\", git_url, external=True)\n \n \n-@nox.session(python=[\"2.7\", \"3.9\"])\n+@nox.session(python=[\"3.9\"])\n def downstream_botocore(session):\n root =...
1,869
110
gh_patches_debug_24601
rasdani/github-patches
git_diff
fossasia__open-event-server-835
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Session Form: Make Title and Name always required In session forms in step 5 of the wizard make "Title" and "Name" always required. Maybe we should make those in another color, so it becomes clear that they c...
diff --git a/open_event/views/admin/models_views/events.py b/open_event/views/admin/models_views/events.py --- a/open_event/views/admin/models_views/events.py +++ b/open_event/views/admin/models_views/events.py @@ -29,6 +29,9 @@ def create_view(self): session_columns = DataGetter.get_session_columns() ...
{"golden_diff": "diff --git a/open_event/views/admin/models_views/events.py b/open_event/views/admin/models_views/events.py\n--- a/open_event/views/admin/models_views/events.py\n+++ b/open_event/views/admin/models_views/events.py\n@@ -29,6 +29,9 @@\n def create_view(self):\n session_columns = DataGetter.get...
1,473
230
gh_patches_debug_27663
rasdani/github-patches
git_diff
interlegis__sapl-2580
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Corrigir caixa de busca do lexml com link quebrado http://sapl3.interlegis.leg.br/generico/lexml_pesquisar Verificar com @edwardoliveira qual caminho tomar quanto a isso! ![image](https://user-images.gith...
diff --git a/sapl/lexml/urls.py b/sapl/lexml/urls.py --- a/sapl/lexml/urls.py +++ b/sapl/lexml/urls.py @@ -1,6 +1,6 @@ from django.conf.urls import include, url -from sapl.lexml.views import LexmlProvedorCrud, LexmlPublicadorCrud, lexml_request +from sapl.lexml.views import LexmlProvedorCrud, LexmlPublicadorCrud, le...
{"golden_diff": "diff --git a/sapl/lexml/urls.py b/sapl/lexml/urls.py\n--- a/sapl/lexml/urls.py\n+++ b/sapl/lexml/urls.py\n@@ -1,6 +1,6 @@\n from django.conf.urls import include, url\n \n-from sapl.lexml.views import LexmlProvedorCrud, LexmlPublicadorCrud, lexml_request\n+from sapl.lexml.views import LexmlProvedorCrud,...
737
423
gh_patches_debug_22765
rasdani/github-patches
git_diff
ietf-tools__datatracker-5858
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- chore: Replace deprecated bootstrap features with alternatives ### Description Throughout the code. As suggested by @NGPixel. ### Code of Conduct - [X] I agree to follow the [IETF's Code of Conduct](https:...
diff --git a/ietf/ietfauth/widgets.py b/ietf/ietfauth/widgets.py --- a/ietf/ietfauth/widgets.py +++ b/ietf/ietfauth/widgets.py @@ -41,7 +41,7 @@ <div class="progress" style="margin-bottom: 10px;"> <div class="progress-bar progress-bar-warning password_strength_bar" role="progressbar" aria-...
{"golden_diff": "diff --git a/ietf/ietfauth/widgets.py b/ietf/ietfauth/widgets.py\n--- a/ietf/ietfauth/widgets.py\n+++ b/ietf/ietfauth/widgets.py\n@@ -41,7 +41,7 @@\n <div class=\"progress\" style=\"margin-bottom: 10px;\">\n <div class=\"progress-bar progress-bar-warning password_strength_ba...
1,536
238
gh_patches_debug_21502
rasdani/github-patches
git_diff
NVIDIA-Merlin__NVTabular-1380
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [FEA] Add DistributedClient API and use global client objects in Workflow and Dataset **Is your feature request related to a problem? Please describe.** In order to perform distributed ETL and/or spill data ...
diff --git a/nvtabular/__init__.py b/nvtabular/__init__.py --- a/nvtabular/__init__.py +++ b/nvtabular/__init__.py @@ -18,7 +18,7 @@ from merlin.graph import ColumnSelector from merlin.schema import ColumnSchema, Schema -from . import graph, io, workflow # noqa +from . import graph, io, utils, workflow # noqa fr...
{"golden_diff": "diff --git a/nvtabular/__init__.py b/nvtabular/__init__.py\n--- a/nvtabular/__init__.py\n+++ b/nvtabular/__init__.py\n@@ -18,7 +18,7 @@\n from merlin.graph import ColumnSelector\n from merlin.schema import ColumnSchema, Schema\n \n-from . import graph, io, workflow # noqa\n+from . import graph, io, ut...
1,302
241
gh_patches_debug_26077
rasdani/github-patches
git_diff
cupy__cupy-4203
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug, Enhancement] array_equal returns False on identical arrays with NaN values * Conditions (you can just paste the output of `python -c 'import cupy; cupy.show_config()'`) - CuPy Version : 8.0....
diff --git a/cupy/_logic/comparison.py b/cupy/_logic/comparison.py --- a/cupy/_logic/comparison.py +++ b/cupy/_logic/comparison.py @@ -2,6 +2,7 @@ import cupy from cupy import core +from cupy._logic import content _is_close = core.create_ufunc( @@ -38,12 +39,14 @@ ) -def array_equal(a1, a2): +def array_eq...
{"golden_diff": "diff --git a/cupy/_logic/comparison.py b/cupy/_logic/comparison.py\n--- a/cupy/_logic/comparison.py\n+++ b/cupy/_logic/comparison.py\n@@ -2,6 +2,7 @@\n \n import cupy\n from cupy import core\n+from cupy._logic import content\n \n \n _is_close = core.create_ufunc(\n@@ -38,12 +39,14 @@\n )\n \n \n-def ar...
2,043
415
gh_patches_debug_8791
rasdani/github-patches
git_diff
deepchecks__deepchecks-536
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wrong BSD license tag in the distribution Although you clearly state in the repository that the software is licensed under AGPLv3, you do not explicitly specify the license type in the `setup.py` script. The ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -111,7 +111,7 @@ 'Intended Audience :: Science/Research', 'Topic :: Software Development', 'Topic :: Scientific/Engineering', - 'License :: OSI Approved :: BSD License', + 'License :: OSI Approved :: GNU Affero Ge...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -111,7 +111,7 @@\n 'Intended Audience :: Science/Research',\n 'Topic :: Software Development',\n 'Topic :: Scientific/Engineering',\n- 'License :: OSI Approved :: BSD License',\n+ 'License :: OSI ...
1,791
128
gh_patches_debug_32431
rasdani/github-patches
git_diff
engnadeau__pybotics-13
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Robot Model-Specific Parameters Should be in External Files Robot Model-Specific Parameters (e.g., MDH, joint limits, etc) Should be in External Files (e.g., csv, json, etc). This way, new models and modifica...
diff --git a/examples/example_robot.py b/examples/example_robot.py --- a/examples/example_robot.py +++ b/examples/example_robot.py @@ -8,18 +8,17 @@ np.set_printoptions(suppress=True) # create robot -ideal_robot = py.Robot() -ideal_robot.robot_model = py.robot_model.ur10() +model = np.loadtxt('ur10-mdh.csv', delimi...
{"golden_diff": "diff --git a/examples/example_robot.py b/examples/example_robot.py\n--- a/examples/example_robot.py\n+++ b/examples/example_robot.py\n@@ -8,18 +8,17 @@\n np.set_printoptions(suppress=True)\n \n # create robot\n-ideal_robot = py.Robot()\n-ideal_robot.robot_model = py.robot_model.ur10()\n+model = np.load...
1,201
961
gh_patches_debug_169
rasdani/github-patches
git_diff
joke2k__faker-1235
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- French IBAN should be 27 char of length * Faker version: 4.1.1 ### Steps to reproduce ``` import faker from faker import Faker fake = Faker('fr_FR') fr_iban = fake.iban() fr_iban 'FR96505438725498...
diff --git a/faker/providers/bank/fr_FR/__init__.py b/faker/providers/bank/fr_FR/__init__.py --- a/faker/providers/bank/fr_FR/__init__.py +++ b/faker/providers/bank/fr_FR/__init__.py @@ -2,5 +2,5 @@ class Provider(BankProvider): - bban_format = '########################' + bban_format = '####################...
{"golden_diff": "diff --git a/faker/providers/bank/fr_FR/__init__.py b/faker/providers/bank/fr_FR/__init__.py\n--- a/faker/providers/bank/fr_FR/__init__.py\n+++ b/faker/providers/bank/fr_FR/__init__.py\n@@ -2,5 +2,5 @@\n \n \n class Provider(BankProvider):\n- bban_format = '########################'\n+ bban_forma...
461
99
gh_patches_debug_12956
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-5392
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG]: Wrong import in ColossalAuto's meta_registry/binary_elementwise_ops.py ### 🐛 Describe the bug # Problem description The file `colossalai/auto_parallel/meta_profiler/meta_registry/binary_elementwis...
diff --git a/colossalai/auto_parallel/meta_profiler/meta_registry/binary_elementwise_ops.py b/colossalai/auto_parallel/meta_profiler/meta_registry/binary_elementwise_ops.py --- a/colossalai/auto_parallel/meta_profiler/meta_registry/binary_elementwise_ops.py +++ b/colossalai/auto_parallel/meta_profiler/meta_registry/bin...
{"golden_diff": "diff --git a/colossalai/auto_parallel/meta_profiler/meta_registry/binary_elementwise_ops.py b/colossalai/auto_parallel/meta_profiler/meta_registry/binary_elementwise_ops.py\n--- a/colossalai/auto_parallel/meta_profiler/meta_registry/binary_elementwise_ops.py\n+++ b/colossalai/auto_parallel/meta_profile...
1,371
190
gh_patches_debug_20586
rasdani/github-patches
git_diff
TheAlgorithms__Python-9178
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- sorts/random_normal_distribution_quicksort.py has no tests ### Repository commit 3 ### Python version (python --version) Python 3.11.5 ### Dependencies version (pip freeze) Numpy ### Expected behavior ...
diff --git a/sorts/random_pivot_quick_sort.py b/sorts/random_pivot_quick_sort.py deleted file mode 100644 --- a/sorts/random_pivot_quick_sort.py +++ /dev/null @@ -1,44 +0,0 @@ -""" -Picks the random index as the pivot -""" -import random - - -def partition(a, left_index, right_index): - pivot = a[left_index] ...
{"golden_diff": "diff --git a/sorts/random_pivot_quick_sort.py b/sorts/random_pivot_quick_sort.py\ndeleted file mode 100644\n--- a/sorts/random_pivot_quick_sort.py\n+++ /dev/null\n@@ -1,44 +0,0 @@\n-\"\"\"\r\n-Picks the random index as the pivot\r\n-\"\"\"\r\n-import random\r\n-\r\n-\r\n-def partition(a, left_index, ri...
715
402
gh_patches_debug_22354
rasdani/github-patches
git_diff
sublimelsp__LSP-491
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- LSP needs a LspJumpBackCommand When executing LSP goto definition, and then executing the built in `jump_back` command, the cursor won't be placed in the previous place, as I expect. To fix this, we ca...
diff --git a/plugin/definition.py b/plugin/definition.py --- a/plugin/definition.py +++ b/plugin/definition.py @@ -5,6 +5,7 @@ from .core.documents import get_document_position, get_position, is_at_word from .core.url import uri_to_filename from .core.logging import debug +from Default.history_list import get_jump_h...
{"golden_diff": "diff --git a/plugin/definition.py b/plugin/definition.py\n--- a/plugin/definition.py\n+++ b/plugin/definition.py\n@@ -5,6 +5,7 @@\n from .core.documents import get_document_position, get_position, is_at_word\n from .core.url import uri_to_filename\n from .core.logging import debug\n+from Default.histor...
864
216
gh_patches_debug_6705
rasdani/github-patches
git_diff
ansible__molecule-2826
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Docs contains template option for init role that actually does not exists There are option documented here https://molecule.readthedocs.io/en/latest/usage.html#cmdoption-molecule-init-role-foo-template-path-a...
diff --git a/molecule/command/init/role.py b/molecule/command/init/role.py --- a/molecule/command/init/role.py +++ b/molecule/command/init/role.py @@ -43,10 +43,6 @@ Initialize a new role. - .. program:: molecule init role foo --template path - - .. option:: molecule init role foo --template path - ...
{"golden_diff": "diff --git a/molecule/command/init/role.py b/molecule/command/init/role.py\n--- a/molecule/command/init/role.py\n+++ b/molecule/command/init/role.py\n@@ -43,10 +43,6 @@\n \n Initialize a new role.\n \n- .. program:: molecule init role foo --template path\n-\n- .. option:: molecule init ro...
1,959
129
gh_patches_debug_5516
rasdani/github-patches
git_diff
kivy__kivy-4047
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pygame text provider does not render text opacity properly Text renders as if opacity is set to 100% regardless of what's set in a Label's color attribute. SDL2 works just fine. Tested with master pulled to...
diff --git a/kivy/core/text/text_pygame.py b/kivy/core/text/text_pygame.py --- a/kivy/core/text/text_pygame.py +++ b/kivy/core/text/text_pygame.py @@ -97,6 +97,7 @@ color[0], color[2] = color[2], color[0] try: text = font.render(text, True, color) + text.set_colorkey(color) ...
{"golden_diff": "diff --git a/kivy/core/text/text_pygame.py b/kivy/core/text/text_pygame.py\n--- a/kivy/core/text/text_pygame.py\n+++ b/kivy/core/text/text_pygame.py\n@@ -97,6 +97,7 @@\n color[0], color[2] = color[2], color[0]\n try:\n text = font.render(text, True, color)\n+ text...
1,389
124
gh_patches_debug_13813
rasdani/github-patches
git_diff
cloud-custodian__cloud-custodian-9500
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add support for kms-key in timestream service ### Describe the feature Add support for kms-key in timestream service ### Extra information or context _No response_ --- END ISSUE --- Below are some code s...
diff --git a/c7n/resources/timestream.py b/c7n/resources/timestream.py --- a/c7n/resources/timestream.py +++ b/c7n/resources/timestream.py @@ -1,5 +1,6 @@ from c7n.manager import resources from c7n.actions import Action +from c7n.filters.kms import KmsRelatedFilter from c7n.query import DescribeSource, QueryResource...
{"golden_diff": "diff --git a/c7n/resources/timestream.py b/c7n/resources/timestream.py\n--- a/c7n/resources/timestream.py\n+++ b/c7n/resources/timestream.py\n@@ -1,5 +1,6 @@\n from c7n.manager import resources\n from c7n.actions import Action\n+from c7n.filters.kms import KmsRelatedFilter\n from c7n.query import Descr...
1,591
183
gh_patches_debug_28719
rasdani/github-patches
git_diff
ansible__ansible-lint-533
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add type checking to role metadata in rule 701 MetaMainHasInfoRule --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --...
diff --git a/lib/ansiblelint/rules/MetaMainHasInfoRule.py b/lib/ansiblelint/rules/MetaMainHasInfoRule.py --- a/lib/ansiblelint/rules/MetaMainHasInfoRule.py +++ b/lib/ansiblelint/rules/MetaMainHasInfoRule.py @@ -1,6 +1,8 @@ # Copyright (c) 2016, Will Thames and contributors # Copyright (c) 2018, Ansible Project +imp...
{"golden_diff": "diff --git a/lib/ansiblelint/rules/MetaMainHasInfoRule.py b/lib/ansiblelint/rules/MetaMainHasInfoRule.py\n--- a/lib/ansiblelint/rules/MetaMainHasInfoRule.py\n+++ b/lib/ansiblelint/rules/MetaMainHasInfoRule.py\n@@ -1,6 +1,8 @@\n # Copyright (c) 2016, Will Thames and contributors\n # Copyright (c) 2018, ...
690
404
gh_patches_debug_3237
rasdani/github-patches
git_diff
DistrictDataLabs__yellowbrick-545
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Joint Plot Viz has messed up (overlapping labels on) axes **Describe the bug** If you look at the x and y axis on http://www.scikit-yb.org/en/latest/api/features/scatter.html#joint-plot-visualization you w...
diff --git a/docs/api/features/jointplot.py b/docs/api/features/jointplot.py --- a/docs/api/features/jointplot.py +++ b/docs/api/features/jointplot.py @@ -5,12 +5,8 @@ def jointplot(X, y, outpath, **kwargs): - # Create a new figure and axes - fig = plt.figure() - ax = fig.add_subplot(111) - # Create ...
{"golden_diff": "diff --git a/docs/api/features/jointplot.py b/docs/api/features/jointplot.py\n--- a/docs/api/features/jointplot.py\n+++ b/docs/api/features/jointplot.py\n@@ -5,12 +5,8 @@\n \n \n def jointplot(X, y, outpath, **kwargs):\n- # Create a new figure and axes\n- fig = plt.figure()\n- ax = fig.add_sub...
853
143
gh_patches_debug_17565
rasdani/github-patches
git_diff
beeware__toga-530
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ImageView Example Crashes when Image Not Found ## Expected Behavior <!--- If you're describing a bug, tell us what you expect to happen. --> The image view example to render If the imageview widget does no...
diff --git a/src/gtk/toga_gtk/widgets/imageview.py b/src/gtk/toga_gtk/widgets/imageview.py --- a/src/gtk/toga_gtk/widgets/imageview.py +++ b/src/gtk/toga_gtk/widgets/imageview.py @@ -27,11 +27,11 @@ with urlopen(request) as result: input_stream = Gio.MemoryInputStream.new_from_data(result....
{"golden_diff": "diff --git a/src/gtk/toga_gtk/widgets/imageview.py b/src/gtk/toga_gtk/widgets/imageview.py\n--- a/src/gtk/toga_gtk/widgets/imageview.py\n+++ b/src/gtk/toga_gtk/widgets/imageview.py\n@@ -27,11 +27,11 @@\n with urlopen(request) as result:\n input_stream = Gio.MemoryInputStream...
1,846
266
gh_patches_debug_2948
rasdani/github-patches
git_diff
espnet__espnet-3022
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error with using compute-fbank-feats.py Hello! I tried to use script compute-fbank-feats.py to compute fbank features from wav, and tried to use it according to its documentation https://espnet.github.io/espn...
diff --git a/utils/compute-fbank-feats.py b/utils/compute-fbank-feats.py --- a/utils/compute-fbank-feats.py +++ b/utils/compute-fbank-feats.py @@ -118,7 +118,7 @@ lmspc = logmelspectrogram( x=array, - fs=args.fs, + fs=args.fs if args.fs is not None else rate...
{"golden_diff": "diff --git a/utils/compute-fbank-feats.py b/utils/compute-fbank-feats.py\n--- a/utils/compute-fbank-feats.py\n+++ b/utils/compute-fbank-feats.py\n@@ -118,7 +118,7 @@\n \n lmspc = logmelspectrogram(\n x=array,\n- fs=args.fs,\n+ fs=args.fs if args...
1,969
117
gh_patches_debug_26151
rasdani/github-patches
git_diff
python-gitlab__python-gitlab-2771
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow update of protected branches In gitlab 15.6 gitlab finally added api support to update protected branch settings, so ProjectProtectedBranch should be updated accordingly https://gitlab.com/gitlab-org...
diff --git a/gitlab/v4/objects/branches.py b/gitlab/v4/objects/branches.py --- a/gitlab/v4/objects/branches.py +++ b/gitlab/v4/objects/branches.py @@ -1,7 +1,13 @@ from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject -from gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin +from gi...
{"golden_diff": "diff --git a/gitlab/v4/objects/branches.py b/gitlab/v4/objects/branches.py\n--- a/gitlab/v4/objects/branches.py\n+++ b/gitlab/v4/objects/branches.py\n@@ -1,7 +1,13 @@\n from typing import Any, cast, Union\n \n from gitlab.base import RESTManager, RESTObject\n-from gitlab.mixins import NoUpdateMixin, Ob...
830
335
gh_patches_debug_51489
rasdani/github-patches
git_diff
kivy__kivy-4728
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error: fromstring() in core/image/img_pil.py Platform: Linux (OpenSuse, Ubuntu) [INFO ] [Kivy ] v1.9.1 [INFO ] [Python ] v2.7.12 (default, Jul 01 2016, 15:36:53) [GCC] Error: File "/...
diff --git a/kivy/core/image/img_pil.py b/kivy/core/image/img_pil.py --- a/kivy/core/image/img_pil.py +++ b/kivy/core/image/img_pil.py @@ -102,7 +102,8 @@ @staticmethod def save(filename, width, height, fmt, pixels, flipped=False): - image = PILImage.fromstring(fmt.upper(), (width, height), pixels) +...
{"golden_diff": "diff --git a/kivy/core/image/img_pil.py b/kivy/core/image/img_pil.py\n--- a/kivy/core/image/img_pil.py\n+++ b/kivy/core/image/img_pil.py\n@@ -102,7 +102,8 @@\n \n @staticmethod\n def save(filename, width, height, fmt, pixels, flipped=False):\n- image = PILImage.fromstring(fmt.upper(), (w...
1,604
139
gh_patches_debug_752
rasdani/github-patches
git_diff
CTPUG__wafer-657
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- icalendar 5.0 breaks the tests With icalendar 5.0, the test_ics_view test fails with ``` File "/home/runner/work/wafer/wafer/wafer/schedule/tests/test_views.py", line 1526, in test_ics_view 20 self.as...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ 'django-select2', 'djangorestframework', 'drf-extensions>=0.5.0', - 'icalendar>=4.0,<5.0', + 'icalendar>=4.0', 'jsonfield', 'markdown>=2.5', 'pillow',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -16,7 +16,7 @@\n 'django-select2',\n 'djangorestframework',\n 'drf-extensions>=0.5.0',\n- 'icalendar>=4.0,<5.0',\n+ 'icalendar>=4.0',\n 'jsonfield',\n 'markdown>=2.5',\n 'pillow',\n", "issue": "icalendar ...
1,147
100
gh_patches_debug_22334
rasdani/github-patches
git_diff
wagtail__wagtail-10913
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Login template does not respect non_fields_errors display When using a custom `WAGTAILADMIN_USER_LOGIN_FORM`, you can't set form-wide errors as they will always be displayed as `Your {{ username_field }} and ...
diff --git a/wagtail/admin/forms/auth.py b/wagtail/admin/forms/auth.py --- a/wagtail/admin/forms/auth.py +++ b/wagtail/admin/forms/auth.py @@ -18,6 +18,13 @@ remember = forms.BooleanField(required=False) + error_messages = { + **AuthenticationForm.error_messages, + "invalid_login": gettext_laz...
{"golden_diff": "diff --git a/wagtail/admin/forms/auth.py b/wagtail/admin/forms/auth.py\n--- a/wagtail/admin/forms/auth.py\n+++ b/wagtail/admin/forms/auth.py\n@@ -18,6 +18,13 @@\n \n remember = forms.BooleanField(required=False)\n \n+ error_messages = {\n+ **AuthenticationForm.error_messages,\n+ \"...
991
260
gh_patches_debug_36983
rasdani/github-patches
git_diff
liberapay__liberapay.com-1717
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `Cache-Control: immutable` It's [a new experimental HTTP feature](https://bitsup.blogspot.fr/2016/05/cache-control-immutable.html) that we should probably start using. It's low priority though. --- END ISSU...
diff --git a/liberapay/utils/http_caching.py b/liberapay/utils/http_caching.py --- a/liberapay/utils/http_caching.py +++ b/liberapay/utils/http_caching.py @@ -79,47 +79,41 @@ # This is a request for a dynamic resource. return + # Compare the etag in the request's querystring to the one we have. ...
{"golden_diff": "diff --git a/liberapay/utils/http_caching.py b/liberapay/utils/http_caching.py\n--- a/liberapay/utils/http_caching.py\n+++ b/liberapay/utils/http_caching.py\n@@ -79,47 +79,41 @@\n # This is a request for a dynamic resource.\n return\n \n+ # Compare the etag in the request's querystri...
1,510
810
gh_patches_debug_55168
rasdani/github-patches
git_diff
spack__spack-6617
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- spack find : always prompt 0 installed packages On a clean `develop` checkout : ``` $ git clone https://github.com/LLNL/spack.git Cloning into 'spack'... remote: Counting objects: 25613, done. remote: Compr...
diff --git a/var/spack/repos/builtin/packages/globus-toolkit/package.py b/var/spack/repos/builtin/packages/globus-toolkit/package.py --- a/var/spack/repos/builtin/packages/globus-toolkit/package.py +++ b/var/spack/repos/builtin/packages/globus-toolkit/package.py @@ -33,3 +33,6 @@ url = "http://toolkit.globus....
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/globus-toolkit/package.py b/var/spack/repos/builtin/packages/globus-toolkit/package.py\n--- a/var/spack/repos/builtin/packages/globus-toolkit/package.py\n+++ b/var/spack/repos/builtin/packages/globus-toolkit/package.py\n@@ -33,3 +33,6 @@\n url = \"...
1,928
235
gh_patches_debug_26075
rasdani/github-patches
git_diff
openmc-dev__openmc-2825
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- _DECAY_ENERGIES not cleared when changing chain in openmc.config <!-- If you are a user of OpenMC and are running into trouble with the code or are seeking general user support, we highly recommend posting ...
diff --git a/openmc/config.py b/openmc/config.py --- a/openmc/config.py +++ b/openmc/config.py @@ -4,7 +4,7 @@ import warnings from openmc.data import DataLibrary -from openmc.data.decay import _DECAY_PHOTON_ENERGY +from openmc.data.decay import _DECAY_ENERGY, _DECAY_PHOTON_ENERGY __all__ = ["config"] @@ -41,6...
{"golden_diff": "diff --git a/openmc/config.py b/openmc/config.py\n--- a/openmc/config.py\n+++ b/openmc/config.py\n@@ -4,7 +4,7 @@\n import warnings\n \n from openmc.data import DataLibrary\n-from openmc.data.decay import _DECAY_PHOTON_ENERGY\n+from openmc.data.decay import _DECAY_ENERGY, _DECAY_PHOTON_ENERGY\n \n __al...
1,346
267
gh_patches_debug_7284
rasdani/github-patches
git_diff
scrapy__scrapy-3381
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- scrapy check command ignores contracts with the same URL ### Description When testing callbacks with the same URL, only one callback is tested. ### Reproduce ```python class DemoSpider(Spider): nam...
diff --git a/scrapy/contracts/__init__.py b/scrapy/contracts/__init__.py --- a/scrapy/contracts/__init__.py +++ b/scrapy/contracts/__init__.py @@ -56,7 +56,12 @@ # calculate request args args, kwargs = get_spec(request_cls.__init__) + + # Don't filter requests to allow + ...
{"golden_diff": "diff --git a/scrapy/contracts/__init__.py b/scrapy/contracts/__init__.py\n--- a/scrapy/contracts/__init__.py\n+++ b/scrapy/contracts/__init__.py\n@@ -56,7 +56,12 @@\n \n # calculate request args\n args, kwargs = get_spec(request_cls.__init__)\n+\n+ # Don't filter requ...
2,006
132
gh_patches_debug_3701
rasdani/github-patches
git_diff
huggingface__transformers-10531
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Typo in deberta_v2/__init__.py https://github.com/huggingface/transformers/blob/c503a1c15ec1b11e69a3eaaf06edfa87c05a2849/src/transformers/models/deberta_v2/__init__.py#L31 Should be '' DEBERTA_V2_PRETRAINED_...
diff --git a/src/transformers/models/deberta_v2/__init__.py b/src/transformers/models/deberta_v2/__init__.py --- a/src/transformers/models/deberta_v2/__init__.py +++ b/src/transformers/models/deberta_v2/__init__.py @@ -28,7 +28,7 @@ if is_torch_available(): _import_structure["modeling_deberta_v2"] = [ - ...
{"golden_diff": "diff --git a/src/transformers/models/deberta_v2/__init__.py b/src/transformers/models/deberta_v2/__init__.py\n--- a/src/transformers/models/deberta_v2/__init__.py\n+++ b/src/transformers/models/deberta_v2/__init__.py\n@@ -28,7 +28,7 @@\n \n if is_torch_available():\n _import_structure[\"modeling_de...
1,138
162
gh_patches_debug_12268
rasdani/github-patches
git_diff
ManimCommunity__manim-1363
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Suggestion to improve user experience w.r.t InCodeTexTemplate example ## Enhancement proposal At present on macOS (with MacTex latest or even older installations) if you run InCodeTexTemplate from example_...
diff --git a/example_scenes/customtex.py b/example_scenes/customtex.py --- a/example_scenes/customtex.py +++ b/example_scenes/customtex.py @@ -31,8 +31,8 @@ # Set the compiler and output format (default: latex and .dvi) # possible tex compilers: "latex", "pdflatex", "xelatex", "lualatex", "luatex" ...
{"golden_diff": "diff --git a/example_scenes/customtex.py b/example_scenes/customtex.py\n--- a/example_scenes/customtex.py\n+++ b/example_scenes/customtex.py\n@@ -31,8 +31,8 @@\n # Set the compiler and output format (default: latex and .dvi)\n # possible tex compilers: \"latex\", \"pdflatex\", \"xelatex...
1,581
184
gh_patches_debug_17781
rasdani/github-patches
git_diff
openstates__openstates-scrapers-1428
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SD: legislators have no email addresses Example legislator: http://sdlegislature.gov/Legislators/Legislators/MemberDetail.aspx?Session=2017&Member=1125&Cleaned=True Looking at him in openstates, his phone ...
diff --git a/openstates/sd/legislators.py b/openstates/sd/legislators.py --- a/openstates/sd/legislators.py +++ b/openstates/sd/legislators.py @@ -69,12 +69,14 @@ if office_phone.strip() != "": kwargs['phone'] = office_phone - if email and email.strip() != "": - # South Dakota ...
{"golden_diff": "diff --git a/openstates/sd/legislators.py b/openstates/sd/legislators.py\n--- a/openstates/sd/legislators.py\n+++ b/openstates/sd/legislators.py\n@@ -69,12 +69,14 @@\n if office_phone.strip() != \"\":\n kwargs['phone'] = office_phone\n \n- if email and email.strip() != \"\":\...
1,575
278
gh_patches_debug_6207
rasdani/github-patches
git_diff
getsentry__sentry-23499
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError /api/0/organizations/{organization_slug}/sentry-apps/ ## Important Details How are you running Sentry? <!-- Please pick one of the following --> On-Premise w/ Docker, Sentry 21.1.0486d79...
diff --git a/src/sentry/api/endpoints/organization_sentry_apps.py b/src/sentry/api/endpoints/organization_sentry_apps.py --- a/src/sentry/api/endpoints/organization_sentry_apps.py +++ b/src/sentry/api/endpoints/organization_sentry_apps.py @@ -7,7 +7,7 @@ class OrganizationSentryAppsEndpoint(OrganizationEndpoint): ...
{"golden_diff": "diff --git a/src/sentry/api/endpoints/organization_sentry_apps.py b/src/sentry/api/endpoints/organization_sentry_apps.py\n--- a/src/sentry/api/endpoints/organization_sentry_apps.py\n+++ b/src/sentry/api/endpoints/organization_sentry_apps.py\n@@ -7,7 +7,7 @@\n class OrganizationSentryAppsEndpoint(Organi...
1,064
138
gh_patches_debug_55582
rasdani/github-patches
git_diff
wagtail__wagtail-997
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Password reset request generates email with URL "example.com" Received: ``` Please follow the link below to reset your password http://example.com/admin/password_reset/confirm/NA/3x7-cfc1f37209f0c04d1ee1/ ``...
diff --git a/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py b/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py --- a/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py +++ b/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py @@ -134,6 +134,11 @@ return getattr(settings, 'WAGTAIL_USAGE_COUNT_E...
{"golden_diff": "diff --git a/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py b/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py\n--- a/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py\n+++ b/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py\n@@ -134,6 +134,11 @@\n return getattr(settings, '...
1,859
170
gh_patches_debug_16973
rasdani/github-patches
git_diff
coala__coala-1081
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- coala-ci doesn't use fail_aqcuire_settings --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `coalib/coala_ma...
diff --git a/coalib/coala_main.py b/coalib/coala_main.py --- a/coalib/coala_main.py +++ b/coalib/coala_main.py @@ -9,6 +9,7 @@ from coalib.misc.Exceptions import get_exitcode from coalib.bears.BEAR_KIND import BEAR_KIND from coalib.collecting.Collectors import collect_bears +from coalib.output.Interactions import fa...
{"golden_diff": "diff --git a/coalib/coala_main.py b/coalib/coala_main.py\n--- a/coalib/coala_main.py\n+++ b/coalib/coala_main.py\n@@ -9,6 +9,7 @@\n from coalib.misc.Exceptions import get_exitcode\n from coalib.bears.BEAR_KIND import BEAR_KIND\n from coalib.collecting.Collectors import collect_bears\n+from coalib.outpu...
1,643
186
gh_patches_debug_7932
rasdani/github-patches
git_diff
chainer__chainer-240
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add type check to Parameter function Related to #123 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `chai...
diff --git a/chainer/functions/parameter.py b/chainer/functions/parameter.py --- a/chainer/functions/parameter.py +++ b/chainer/functions/parameter.py @@ -1,6 +1,7 @@ import numpy from chainer import function +from chainer.utils import type_check class Parameter(function.Function): @@ -21,6 +22,9 @@ s...
{"golden_diff": "diff --git a/chainer/functions/parameter.py b/chainer/functions/parameter.py\n--- a/chainer/functions/parameter.py\n+++ b/chainer/functions/parameter.py\n@@ -1,6 +1,7 @@\n import numpy\n \n from chainer import function\n+from chainer.utils import type_check\n \n \n class Parameter(function.Function):\n...
469
136
gh_patches_debug_17546
rasdani/github-patches
git_diff
mesonbuild__meson-5531
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- apple clang does not have visibility "protected" This results in the attribute check function returning false on apple clang, but symbol visibility otherwise working. so something like: ```meson args = [...
diff --git a/mesonbuild/compilers/c_function_attributes.py b/mesonbuild/compilers/c_function_attributes.py --- a/mesonbuild/compilers/c_function_attributes.py +++ b/mesonbuild/compilers/c_function_attributes.py @@ -93,8 +93,15 @@ 'visibility': ''' int foo_def(void) __attribute__((visibility("default"))); ...
{"golden_diff": "diff --git a/mesonbuild/compilers/c_function_attributes.py b/mesonbuild/compilers/c_function_attributes.py\n--- a/mesonbuild/compilers/c_function_attributes.py\n+++ b/mesonbuild/compilers/c_function_attributes.py\n@@ -93,8 +93,15 @@\n 'visibility': '''\n int foo_def(void) __attribute__((vis...
1,819
252
gh_patches_debug_10864
rasdani/github-patches
git_diff
apache__airflow-33404
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix lost runs in `CronTriggerTimetable` closes: #27399 Fix lost runs in `CronTriggerTimetable` by resetting seconds and microseconds in `start_time_candidates`. <!-- Licensed to the Apache Software Foun...
diff --git a/airflow/timetables/trigger.py b/airflow/timetables/trigger.py --- a/airflow/timetables/trigger.py +++ b/airflow/timetables/trigger.py @@ -89,7 +89,7 @@ else: next_start_time = self._align_to_next(restriction.earliest) else: - start_time_candidates = [self._...
{"golden_diff": "diff --git a/airflow/timetables/trigger.py b/airflow/timetables/trigger.py\n--- a/airflow/timetables/trigger.py\n+++ b/airflow/timetables/trigger.py\n@@ -89,7 +89,7 @@\n else:\n next_start_time = self._align_to_next(restriction.earliest)\n else:\n- start_t...
1,875
153
gh_patches_debug_17412
rasdani/github-patches
git_diff
ESMCI__cime-4411
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- case.build --clean-build will remove the CASEDIR contents if EXEDIR points to the CASEDIR I'm reporting this from @dmleung. He setup some cases where EXEDIR was set to be the same as CASEDIR (so NOT a bld sub...
diff --git a/CIME/XML/env_build.py b/CIME/XML/env_build.py --- a/CIME/XML/env_build.py +++ b/CIME/XML/env_build.py @@ -18,4 +18,19 @@ initialize an object interface to file env_build.xml in the case directory """ schema = os.path.join(utils.get_schema_path(), "env_entry_id.xsd") + self...
{"golden_diff": "diff --git a/CIME/XML/env_build.py b/CIME/XML/env_build.py\n--- a/CIME/XML/env_build.py\n+++ b/CIME/XML/env_build.py\n@@ -18,4 +18,19 @@\n initialize an object interface to file env_build.xml in the case directory\n \"\"\"\n schema = os.path.join(utils.get_schema_path(), \"env_e...
662
274
gh_patches_debug_9678
rasdani/github-patches
git_diff
conan-io__conan-9087
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [question] using `boost/system` recipe with system-wide config <!-- What is your question? Please be as specific as possible! --> - [x] I've read the [CONTRIBUTING guide](https://github.com/conan-io/conan/...
diff --git a/conan/tools/cmake/cmakedeps/cmakedeps.py b/conan/tools/cmake/cmakedeps/cmakedeps.py --- a/conan/tools/cmake/cmakedeps/cmakedeps.py +++ b/conan/tools/cmake/cmakedeps/cmakedeps.py @@ -60,6 +60,10 @@ if dep.is_build_context and dep.ref.name not in self.build_context_activated: co...
{"golden_diff": "diff --git a/conan/tools/cmake/cmakedeps/cmakedeps.py b/conan/tools/cmake/cmakedeps/cmakedeps.py\n--- a/conan/tools/cmake/cmakedeps/cmakedeps.py\n+++ b/conan/tools/cmake/cmakedeps/cmakedeps.py\n@@ -60,6 +60,10 @@\n if dep.is_build_context and dep.ref.name not in self.build_context_activated...
1,755
163
gh_patches_debug_25224
rasdani/github-patches
git_diff
castorini__pyserini-18
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Strange terms() behavior in IndexReaderUtils I do this: ``` from pyserini.index import pyutils index_utils = pyutils.IndexReaderUtils('lucene-index.robust04.pos+docvectors+rawdocs') iter1 = index_ut...
diff --git a/pyserini/index/pyutils.py b/pyserini/index/pyutils.py --- a/pyserini/index/pyutils.py +++ b/pyserini/index/pyutils.py @@ -37,7 +37,6 @@ def __init__(self, index_dir): self.object = JIndexReaderUtils() self.reader = self.object.getReader(JString(index_dir)) - self.term_iterator...
{"golden_diff": "diff --git a/pyserini/index/pyutils.py b/pyserini/index/pyutils.py\n--- a/pyserini/index/pyutils.py\n+++ b/pyserini/index/pyutils.py\n@@ -37,7 +37,6 @@\n def __init__(self, index_dir):\n self.object = JIndexReaderUtils()\n self.reader = self.object.getReader(JString(index_dir))\n- ...
1,844
287
gh_patches_debug_35541
rasdani/github-patches
git_diff
mlcommons__GaNDLF-296
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Include a git submodule update when doing pip install **Is your feature request related to a problem? Please describe.** Currently, the installation step requires a user to run `git submodule update --init -...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -2,11 +2,40 @@ """The setup script.""" + +import os from setuptools import setup, find_packages +from setuptools.command.install import install +from setuptools.command.develop import develop +from setuptools.command.egg_info import egg_info wit...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -2,11 +2,40 @@\n \n \"\"\"The setup script.\"\"\"\n \n+\n+import os\n from setuptools import setup, find_packages\n+from setuptools.command.install import install\n+from setuptools.command.develop import develop\n+from setuptools.comm...
1,560
661
gh_patches_debug_35199
rasdani/github-patches
git_diff
litestar-org__litestar-2581
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: CLI Schema Export fails ### Description Exporting the Litestar schema via CLI fails presumably because the `json.dumps` can't serialize certain field types such as `UUID` or `datetime`. > [!IMPORTA...
diff --git a/litestar/cli/commands/schema.py b/litestar/cli/commands/schema.py --- a/litestar/cli/commands/schema.py +++ b/litestar/cli/commands/schema.py @@ -1,7 +1,7 @@ -from json import dumps from pathlib import Path from typing import TYPE_CHECKING +import msgspec from yaml import dump as dump_yaml from lit...
{"golden_diff": "diff --git a/litestar/cli/commands/schema.py b/litestar/cli/commands/schema.py\n--- a/litestar/cli/commands/schema.py\n+++ b/litestar/cli/commands/schema.py\n@@ -1,7 +1,7 @@\n-from json import dumps\n from pathlib import Path\n from typing import TYPE_CHECKING\n \n+import msgspec\n from yaml import dum...
1,669
568
gh_patches_debug_17160
rasdani/github-patches
git_diff
strawberry-graphql__strawberry-18
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow to specify host and port in dev server --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `strawberry/cl...
diff --git a/strawberry/cli/__init__.py b/strawberry/cli/__init__.py --- a/strawberry/cli/__init__.py +++ b/strawberry/cli/__init__.py @@ -20,10 +20,12 @@ @run.command("server") @click.argument("module", type=str) -def server(module): +@click.option("-h", "--host", default="0.0.0.0", type=str) +@click.option("-p", ...
{"golden_diff": "diff --git a/strawberry/cli/__init__.py b/strawberry/cli/__init__.py\n--- a/strawberry/cli/__init__.py\n+++ b/strawberry/cli/__init__.py\n@@ -20,10 +20,12 @@\n \n @run.command(\"server\")\n @click.argument(\"module\", type=str)\n-def server(module):\n+@click.option(\"-h\", \"--host\", default=\"0.0.0.0...
515
295
gh_patches_debug_37398
rasdani/github-patches
git_diff
akvo__akvo-rsr-4787
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow passing date range for perform_iati_checks Currently, [`perform_iati_checks`](https://github.com/akvo/akvo-rsr/blob/master/akvo/rsr/management/commands/perform_iati_checks.py) only has the `--all` optio...
diff --git a/akvo/rsr/management/commands/perform_iati_checks.py b/akvo/rsr/management/commands/perform_iati_checks.py --- a/akvo/rsr/management/commands/perform_iati_checks.py +++ b/akvo/rsr/management/commands/perform_iati_checks.py @@ -3,25 +3,60 @@ # Akvo Reporting is covered by the GNU Affero General Public Licen...
{"golden_diff": "diff --git a/akvo/rsr/management/commands/perform_iati_checks.py b/akvo/rsr/management/commands/perform_iati_checks.py\n--- a/akvo/rsr/management/commands/perform_iati_checks.py\n+++ b/akvo/rsr/management/commands/perform_iati_checks.py\n@@ -3,25 +3,60 @@\n # Akvo Reporting is covered by the GNU Affero...
675
624
gh_patches_debug_12644
rasdani/github-patches
git_diff
bridgecrewio__checkov-281
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CloudFormation: S3 default encryption check should look for ServerSideEncryptionByDefault The CloudFormation check for CKV_AWS_19 only looks for `ServerSideEncryptionRule`, not `ServerSideEncryptionByDefault`...
diff --git a/checkov/cloudformation/checks/resource/aws/S3Encryption.py b/checkov/cloudformation/checks/resource/aws/S3Encryption.py --- a/checkov/cloudformation/checks/resource/aws/S3Encryption.py +++ b/checkov/cloudformation/checks/resource/aws/S3Encryption.py @@ -11,8 +11,11 @@ super().__init__(name=name, i...
{"golden_diff": "diff --git a/checkov/cloudformation/checks/resource/aws/S3Encryption.py b/checkov/cloudformation/checks/resource/aws/S3Encryption.py\n--- a/checkov/cloudformation/checks/resource/aws/S3Encryption.py\n+++ b/checkov/cloudformation/checks/resource/aws/S3Encryption.py\n@@ -11,8 +11,11 @@\n super()....
742
211
gh_patches_debug_15364
rasdani/github-patches
git_diff
bridgecrewio__checkov-3933
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- OCI Security Group Control Problem **Describe the issue** AbsSecurtiGroupUnrestictedIngress The function needs to control "destination_port_range" instead of "source_port_range" [Codo Block](https://gith...
diff --git a/checkov/terraform/checks/resource/oci/AbsSecurityGroupUnrestrictedIngress.py b/checkov/terraform/checks/resource/oci/AbsSecurityGroupUnrestrictedIngress.py --- a/checkov/terraform/checks/resource/oci/AbsSecurityGroupUnrestrictedIngress.py +++ b/checkov/terraform/checks/resource/oci/AbsSecurityGroupUnrestri...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/oci/AbsSecurityGroupUnrestrictedIngress.py b/checkov/terraform/checks/resource/oci/AbsSecurityGroupUnrestrictedIngress.py\n--- a/checkov/terraform/checks/resource/oci/AbsSecurityGroupUnrestrictedIngress.py\n+++ b/checkov/terraform/checks/resource/oci/AbsSe...
921
263
gh_patches_debug_70
rasdani/github-patches
git_diff
d2l-ai__d2l-en-2254
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ModuleNotFoundError when running the official pytorch colab notebook ![image](https://user-images.githubusercontent.com/33608782/184685789-951935c7-1725-4a23-944d-8d48b32bf76c.png) I can replicate the erro...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ import d2l requirements = [ + 'ipython>=7.23', 'jupyter', 'numpy', 'matplotlib',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -2,6 +2,7 @@\n import d2l\n \n requirements = [\n+ 'ipython>=7.23',\n 'jupyter',\n 'numpy',\n 'matplotlib',\n", "issue": "ModuleNotFoundError when running the official pytorch colab notebook\n![image](https://user-image...
723
62
gh_patches_debug_3462
rasdani/github-patches
git_diff
bookwyrm-social__bookwyrm-504
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Shelf page json view has a server error This is a quick fix, needs a unittest. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEG...
diff --git a/bookwyrm/models/shelf.py b/bookwyrm/models/shelf.py --- a/bookwyrm/models/shelf.py +++ b/bookwyrm/models/shelf.py @@ -39,7 +39,7 @@ @property def collection_queryset(self): ''' list of books for this shelf, overrides OrderedCollectionMixin ''' - return self.books + return ...
{"golden_diff": "diff --git a/bookwyrm/models/shelf.py b/bookwyrm/models/shelf.py\n--- a/bookwyrm/models/shelf.py\n+++ b/bookwyrm/models/shelf.py\n@@ -39,7 +39,7 @@\n @property\n def collection_queryset(self):\n ''' list of books for this shelf, overrides OrderedCollectionMixin '''\n- return sel...
1,114
106
gh_patches_debug_19760
rasdani/github-patches
git_diff
streamlink__streamlink-1618
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BritTV in need of password ? - [x] I have read the contribution guidelines. Brit TV won't open for me any more, could it be it needs One's credentials ? How would that look ? --brittv-username=xxxx -...
diff --git a/src/streamlink/plugins/brittv.py b/src/streamlink/plugins/brittv.py --- a/src/streamlink/plugins/brittv.py +++ b/src/streamlink/plugins/brittv.py @@ -10,7 +10,7 @@ class BritTV(Plugin): url_re = re.compile(r"https?://(?:www\.)?brittv\.co.uk/watch/") js_re = re.compile(r"""/js/brittv\.player\.js\...
{"golden_diff": "diff --git a/src/streamlink/plugins/brittv.py b/src/streamlink/plugins/brittv.py\n--- a/src/streamlink/plugins/brittv.py\n+++ b/src/streamlink/plugins/brittv.py\n@@ -10,7 +10,7 @@\n class BritTV(Plugin):\n url_re = re.compile(r\"https?://(?:www\\.)?brittv\\.co.uk/watch/\")\n js_re = re.compile(...
1,231
260
gh_patches_debug_35445
rasdani/github-patches
git_diff
weecology__retriever-408
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- download_only w/path fails to use path argument when checking for file When `download_only` checks to see if the file already exists before copying it, it ignores the path argument. This means that: ``` retr...
diff --git a/engines/download_only.py b/engines/download_only.py --- a/engines/download_only.py +++ b/engines/download_only.py @@ -48,14 +48,17 @@ if hasattr(self, "all_files"): for file_name in self.all_files: file_path, file_name_nopath = os.path.split(file_name) + ...
{"golden_diff": "diff --git a/engines/download_only.py b/engines/download_only.py\n--- a/engines/download_only.py\n+++ b/engines/download_only.py\n@@ -48,14 +48,17 @@\n if hasattr(self, \"all_files\"):\n for file_name in self.all_files:\n file_path, file_name_nopath = os.path.split(f...
1,508
386
gh_patches_debug_40892
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-1875
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider texas_roadhouse is broken During the global build at 2021-05-26-14-42-23, spider **texas_roadhouse** failed with **0 features** and **1 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/20...
diff --git a/locations/spiders/texas_roadhouse.py b/locations/spiders/texas_roadhouse.py --- a/locations/spiders/texas_roadhouse.py +++ b/locations/spiders/texas_roadhouse.py @@ -1,7 +1,5 @@ import json - import scrapy - from locations.items import GeojsonPointItem from locations.hours import OpeningHours @@ -11,...
{"golden_diff": "diff --git a/locations/spiders/texas_roadhouse.py b/locations/spiders/texas_roadhouse.py\n--- a/locations/spiders/texas_roadhouse.py\n+++ b/locations/spiders/texas_roadhouse.py\n@@ -1,7 +1,5 @@\n import json\n-\n import scrapy\n-\n from locations.items import GeojsonPointItem\n from locations.hours imp...
1,025
830
gh_patches_debug_32460
rasdani/github-patches
git_diff
google__timesketch-1735
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sigma tags as labels / tags for events Sigma rules do come with something like: ``` tags: - attack.initial_access - attack.t1190 ``` It could be useful to apply those tags to events that ...
diff --git a/timesketch/lib/analyzers/sigma_tagger.py b/timesketch/lib/analyzers/sigma_tagger.py --- a/timesketch/lib/analyzers/sigma_tagger.py +++ b/timesketch/lib/analyzers/sigma_tagger.py @@ -22,12 +22,13 @@ DISPLAY_NAME = 'Sigma' DESCRIPTION = 'Run pre-defined Sigma rules and tag matching events' - d...
{"golden_diff": "diff --git a/timesketch/lib/analyzers/sigma_tagger.py b/timesketch/lib/analyzers/sigma_tagger.py\n--- a/timesketch/lib/analyzers/sigma_tagger.py\n+++ b/timesketch/lib/analyzers/sigma_tagger.py\n@@ -22,12 +22,13 @@\n DISPLAY_NAME = 'Sigma'\n DESCRIPTION = 'Run pre-defined Sigma rules and tag mat...
1,689
405
gh_patches_debug_26973
rasdani/github-patches
git_diff
PlasmaPy__PlasmaPy-1613
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `plasma-calculator` does not launch on a Windows 10 system Original comment...https://github.com/PlasmaPy/PlasmaPy/pull/1610#discussion_r912220976 The `plasma-calculator` does not launch when using a Windo...
diff --git a/plasmapy/utils/calculator/__init__.py b/plasmapy/utils/calculator/__init__.py --- a/plasmapy/utils/calculator/__init__.py +++ b/plasmapy/utils/calculator/__init__.py @@ -4,7 +4,7 @@ __all__ = ["main"] import argparse -import os +import pathlib import shlex import subprocess @@ -33,17 +33,25...
{"golden_diff": "diff --git a/plasmapy/utils/calculator/__init__.py b/plasmapy/utils/calculator/__init__.py\n--- a/plasmapy/utils/calculator/__init__.py\n+++ b/plasmapy/utils/calculator/__init__.py\n@@ -4,7 +4,7 @@\n __all__ = [\"main\"]\r\n \r\n import argparse\r\n-import os\r\n+import pathlib\r\n import shlex\r\n imp...
917
397
gh_patches_debug_2079
rasdani/github-patches
git_diff
docker__docker-py-3023
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Not a Contribution: create_api_error_from_api_exception should "raise <exception> from <original-error>" to preserve error message Not a Contribution. APIError handling should be changed to so that it do...
diff --git a/docker/errors.py b/docker/errors.py --- a/docker/errors.py +++ b/docker/errors.py @@ -28,7 +28,7 @@ cls = ImageNotFound else: cls = NotFound - raise cls(e, response=response, explanation=explanation) + raise cls(e, response=response, explanation=explanation) from e ...
{"golden_diff": "diff --git a/docker/errors.py b/docker/errors.py\n--- a/docker/errors.py\n+++ b/docker/errors.py\n@@ -28,7 +28,7 @@\n cls = ImageNotFound\n else:\n cls = NotFound\n- raise cls(e, response=response, explanation=explanation)\n+ raise cls(e, response=response, explana...
1,973
94
gh_patches_debug_64119
rasdani/github-patches
git_diff
Pylons__pyramid-3271
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bump Sphinx to >=1.7.2 Would anyone be opposed to bumping Sphinx to >=1.7.2, != 1.7.3 in `setup.py`? I really want our PDFs to have `emphasize-lines` support, at long last, and bring in support for Unicode ch...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ docs_extras = [ - 'Sphinx >= 1.3.5, != 1.7.3', + 'Sphinx >= 1.7.4', 'docutils', 'repoze.sphinx.autointerface', 'pylons_sphinx_latesturl',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -40,7 +40,7 @@\n \n \n docs_extras = [\n- 'Sphinx >= 1.3.5, != 1.7.3',\n+ 'Sphinx >= 1.7.4',\n 'docutils',\n 'repoze.sphinx.autointerface',\n 'pylons_sphinx_latesturl',\n", "issue": "Bump Sphinx to >=1.7.2\nWould any...
1,651
98
gh_patches_debug_12181
rasdani/github-patches
git_diff
pre-commit__pre-commit-832
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- git.get_git_dir() appears to break with older versions of git When you install the current pre-commit (v1.11.0) on a system using an older git, eg 2.1.4, the `git rev-parse --git-common-dir` ultimately issued...
diff --git a/pre_commit/git.py b/pre_commit/git.py --- a/pre_commit/git.py +++ b/pre_commit/git.py @@ -31,16 +31,13 @@ def get_git_dir(git_root): - def _git_dir(opt): - return os.path.normpath(os.path.join( - git_root, - cmd_output('git', 'rev-parse', opt, cwd=git_root)[1].strip(), ...
{"golden_diff": "diff --git a/pre_commit/git.py b/pre_commit/git.py\n--- a/pre_commit/git.py\n+++ b/pre_commit/git.py\n@@ -31,16 +31,13 @@\n \n \n def get_git_dir(git_root):\n- def _git_dir(opt):\n- return os.path.normpath(os.path.join(\n- git_root,\n- cmd_output('git', 'rev-parse', opt,...
1,936
261
gh_patches_debug_31946
rasdani/github-patches
git_diff
ansible__ansible-2952
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Hardcoded location of the chroot executable On Gentoo, chroot is in /usr/bin and not /usr/sbin as ansible assumes. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of ...
diff --git a/lib/ansible/runner/connection_plugins/chroot.py b/lib/ansible/runner/connection_plugins/chroot.py --- a/lib/ansible/runner/connection_plugins/chroot.py +++ b/lib/ansible/runner/connection_plugins/chroot.py @@ -16,13 +16,11 @@ # You should have received a copy of the GNU General Public License # along wit...
{"golden_diff": "diff --git a/lib/ansible/runner/connection_plugins/chroot.py b/lib/ansible/runner/connection_plugins/chroot.py\n--- a/lib/ansible/runner/connection_plugins/chroot.py\n+++ b/lib/ansible/runner/connection_plugins/chroot.py\n@@ -16,13 +16,11 @@\n # You should have received a copy of the GNU General Public...
1,702
445