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_10906
rasdani/github-patches
git_diff
plone__Products.CMFPlone-973
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Group administration: AttributeError: 'NoneType' object has no attribute 'getGroupTitleOrName' /Plone2/@@usergroup-groupmembership?groupname=None gives me Here is the full error message: Display traceback ...
diff --git a/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py b/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py --- a/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py +++ b/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py @@ -13,6 +13,9 @@...
{"golden_diff": "diff --git a/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py b/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py\n--- a/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.py\n+++ b/Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.p...
1,451
179
gh_patches_debug_17529
rasdani/github-patches
git_diff
talonhub__community-324
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Vocabulary functions do not strip whitespace from CSV I had the misfortune the last few days to believe that the vocabulary csv files were not operating correctly. Apparently whitespace is not stripped aro...
diff --git a/code/user_settings.py b/code/user_settings.py --- a/code/user_settings.py +++ b/code/user_settings.py @@ -51,14 +51,17 @@ # Windows newlines are sometimes read as empty rows. :champagne: continue if len(row) == 1: - mapping[row[0]] = row[0] + ...
{"golden_diff": "diff --git a/code/user_settings.py b/code/user_settings.py\n--- a/code/user_settings.py\n+++ b/code/user_settings.py\n@@ -51,14 +51,17 @@\n # Windows newlines are sometimes read as empty rows. :champagne:\n continue\n if len(row) == 1:\n- mappi...
1,781
198
gh_patches_debug_40475
rasdani/github-patches
git_diff
aio-libs-abandoned__aioredis-py-846
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `HashCommandsMixin.hset()` doesn't support multiple field=value pairs > As of Redis 4.0.0, HSET is variadic and allows for multiple field/value pairs. https://redis.io/commands/hset And also info about ...
diff --git a/aioredis/commands/hash.py b/aioredis/commands/hash.py --- a/aioredis/commands/hash.py +++ b/aioredis/commands/hash.py @@ -1,3 +1,4 @@ +import warnings from itertools import chain from aioredis.util import ( @@ -55,7 +56,17 @@ return self.execute(b"HMGET", key, field, *fields, encoding=encoding...
{"golden_diff": "diff --git a/aioredis/commands/hash.py b/aioredis/commands/hash.py\n--- a/aioredis/commands/hash.py\n+++ b/aioredis/commands/hash.py\n@@ -1,3 +1,4 @@\n+import warnings\n from itertools import chain\n \n from aioredis.util import (\n@@ -55,7 +56,17 @@\n return self.execute(b\"HMGET\", key, field...
1,957
806
gh_patches_debug_16347
rasdani/github-patches
git_diff
liqd__a4-meinberlin-506
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Organisations listed in filter on project overview unsorted The list of organisations listed in filter on the project overview page is unsorted and determined by the order of creating the organisations. I thi...
diff --git a/apps/projects/views.py b/apps/projects/views.py --- a/apps/projects/views.py +++ b/apps/projects/views.py @@ -54,7 +54,8 @@ def __init__(self, attrs=None): choices = (('', _('Any')),) - for blueprint_key, blueprint in blueprints.blueprints: + sorted_blueprints = sorted(bluepri...
{"golden_diff": "diff --git a/apps/projects/views.py b/apps/projects/views.py\n--- a/apps/projects/views.py\n+++ b/apps/projects/views.py\n@@ -54,7 +54,8 @@\n \n def __init__(self, attrs=None):\n choices = (('', _('Any')),)\n- for blueprint_key, blueprint in blueprints.blueprints:\n+ sorted_bl...
1,136
205
gh_patches_debug_42454
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-2641
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider holiday_stationstores is broken During the global build at 2021-08-18-14-42-26, spider **holiday_stationstores** failed with **552 features** and **10 errors**. Here's [the log](https://data.allthepla...
diff --git a/locations/spiders/holiday_stationstores.py b/locations/spiders/holiday_stationstores.py --- a/locations/spiders/holiday_stationstores.py +++ b/locations/spiders/holiday_stationstores.py @@ -19,10 +19,10 @@ callback=self.parse_all_stores) def parse_all_stores(self, respo...
{"golden_diff": "diff --git a/locations/spiders/holiday_stationstores.py b/locations/spiders/holiday_stationstores.py\n--- a/locations/spiders/holiday_stationstores.py\n+++ b/locations/spiders/holiday_stationstores.py\n@@ -19,10 +19,10 @@\n callback=self.parse_all_stores)\n \n def parse...
1,997
959
gh_patches_debug_13266
rasdani/github-patches
git_diff
liqd__a4-opin-1158
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- dashboard styling: spacing when entering the first information of project We also need more space between texts, boxes and bottons on the page where I add the first information for a project. ![screen shot...
diff --git a/euth/projects/forms.py b/euth/projects/forms.py --- a/euth/projects/forms.py +++ b/euth/projects/forms.py @@ -1,11 +1,17 @@ from django import forms +from django.utils.translation import ugettext_lazy as _ from adhocracy4.projects.models import Project from euth.users.fields import UserSearchField ...
{"golden_diff": "diff --git a/euth/projects/forms.py b/euth/projects/forms.py\n--- a/euth/projects/forms.py\n+++ b/euth/projects/forms.py\n@@ -1,11 +1,17 @@\n from django import forms\n+from django.utils.translation import ugettext_lazy as _\n \n from adhocracy4.projects.models import Project\n from euth.users.fields i...
468
169
gh_patches_debug_27829
rasdani/github-patches
git_diff
pyg-team__pytorch_geometric-7655
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Broken link in the GNN Cheat sheet ### 📚 Describe the documentation issue In the cheatsheet [https://pytorch-geometric.readthedocs.io/en/latest/cheatsheet/gnn_cheatsheet.html](https://pytorch-geometric.re...
diff --git a/torch_geometric/datasets/utils/cheatsheet.py b/torch_geometric/datasets/utils/cheatsheet.py --- a/torch_geometric/datasets/utils/cheatsheet.py +++ b/torch_geometric/datasets/utils/cheatsheet.py @@ -4,7 +4,7 @@ from typing import Any, List, Optional -def paper_link(cls: str) -> str: +def paper_link(cls...
{"golden_diff": "diff --git a/torch_geometric/datasets/utils/cheatsheet.py b/torch_geometric/datasets/utils/cheatsheet.py\n--- a/torch_geometric/datasets/utils/cheatsheet.py\n+++ b/torch_geometric/datasets/utils/cheatsheet.py\n@@ -4,7 +4,7 @@\n from typing import Any, List, Optional\n \n \n-def paper_link(cls: str) -> ...
2,013
426
gh_patches_debug_40608
rasdani/github-patches
git_diff
enthought__chaco-501
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Demo functionplotter.py range editor error **Problem Description** functionplotter.py break when `auto` is chosen from enum editor. **Reproduction Steps:** Run the file and change the enum to `auto`. **Ex...
diff --git a/examples/demo/functionplotter.py b/examples/demo/functionplotter.py --- a/examples/demo/functionplotter.py +++ b/examples/demo/functionplotter.py @@ -9,8 +9,8 @@ # Enthought library imports from enable.api import Component, ComponentEditor -from traits.api import HasTraits, Instance, Int -from traitsui...
{"golden_diff": "diff --git a/examples/demo/functionplotter.py b/examples/demo/functionplotter.py\n--- a/examples/demo/functionplotter.py\n+++ b/examples/demo/functionplotter.py\n@@ -9,8 +9,8 @@\n \n # Enthought library imports\n from enable.api import Component, ComponentEditor\n-from traits.api import HasTraits, Inst...
1,844
723
gh_patches_debug_2517
rasdani/github-patches
git_diff
encode__uvicorn-436
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- --limit-max-requests not working Hi! I'm trying to figure out why my workers are not restarting as expected when using the `--limit-max-requests` flag. I ran `uvicorn` in debug mode and noticed that the `self...
diff --git a/uvicorn/workers.py b/uvicorn/workers.py --- a/uvicorn/workers.py +++ b/uvicorn/workers.py @@ -25,6 +25,7 @@ "timeout_keep_alive": self.cfg.keepalive, "timeout_notify": self.timeout, "callback_notify": self.callback_notify, + "limit_max_requests": self.max_r...
{"golden_diff": "diff --git a/uvicorn/workers.py b/uvicorn/workers.py\n--- a/uvicorn/workers.py\n+++ b/uvicorn/workers.py\n@@ -25,6 +25,7 @@\n \"timeout_keep_alive\": self.cfg.keepalive,\n \"timeout_notify\": self.timeout,\n \"callback_notify\": self.callback_notify,\n+ \"...
993
97
gh_patches_debug_9521
rasdani/github-patches
git_diff
mkdocs__mkdocs-272
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Show installed version in command-line I'd expect `mkdocs help` to display the currently installed version, would be nice to have for the next versions --- END ISSUE --- Below are some code segments, each ...
diff --git a/mkdocs/main.py b/mkdocs/main.py --- a/mkdocs/main.py +++ b/mkdocs/main.py @@ -4,6 +4,7 @@ import sys +from mkdocs import __version__ from mkdocs.build import build from mkdocs.config import load_config from mkdocs.exceptions import ConfigurationError @@ -44,6 +45,7 @@ elif cmd == 'new': ...
{"golden_diff": "diff --git a/mkdocs/main.py b/mkdocs/main.py\n--- a/mkdocs/main.py\n+++ b/mkdocs/main.py\n@@ -4,6 +4,7 @@\n \n import sys\n \n+from mkdocs import __version__\n from mkdocs.build import build\n from mkdocs.config import load_config\n from mkdocs.exceptions import ConfigurationError\n@@ -44,6 +45,7 @@\n ...
881
145
gh_patches_debug_30007
rasdani/github-patches
git_diff
vispy__vispy-335
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Adding `elapsed` property to Timer event? `event.elapsed` would be a shortcut to ~~`event.dt * event.iteration`~~. Actually it's a bit more complicated because `event.dt` is not constant, so it should rather ...
diff --git a/vispy/app/timer.py b/vispy/app/timer.py --- a/vispy/app/timer.py +++ b/vispy/app/timer.py @@ -56,6 +56,7 @@ self._interval = interval self._running = False + self._first_emit_time = None self._last_emit_time = None self.iter_count = 0 self.max_iteration...
{"golden_diff": "diff --git a/vispy/app/timer.py b/vispy/app/timer.py\n--- a/vispy/app/timer.py\n+++ b/vispy/app/timer.py\n@@ -56,6 +56,7 @@\n \n self._interval = interval\n self._running = False\n+ self._first_emit_time = None\n self._last_emit_time = None\n self.iter_count = 0\n...
1,738
331
gh_patches_debug_15129
rasdani/github-patches
git_diff
fossasia__open-event-server-5346
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sort message-settings by id **Describe the bug** <!-- A clear and concise description of what the bug is. --> Sort message-settings by id **To Reproduce** Steps to reproduce the behavior: 1. Go to '......
diff --git a/app/api/message_settings.py b/app/api/message_settings.py --- a/app/api/message_settings.py +++ b/app/api/message_settings.py @@ -10,11 +10,23 @@ """ List Events Role Permission """ + def query(self, view_kwargs): + """ + query method for Message Setting List + :param...
{"golden_diff": "diff --git a/app/api/message_settings.py b/app/api/message_settings.py\n--- a/app/api/message_settings.py\n+++ b/app/api/message_settings.py\n@@ -10,11 +10,23 @@\n \"\"\"\n List Events Role Permission\n \"\"\"\n+ def query(self, view_kwargs):\n+ \"\"\"\n+ query method for M...
678
194
gh_patches_debug_67410
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-4066
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Mitmweb fails with addons/options-configure.py example. I am new to learn it, but i follow official [demo][1], it can't working? ```python Proxy server listening at http://*:8888 ERROR:tornado.application:...
diff --git a/mitmproxy/utils/typecheck.py b/mitmproxy/utils/typecheck.py --- a/mitmproxy/utils/typecheck.py +++ b/mitmproxy/utils/typecheck.py @@ -81,6 +81,8 @@ t = 'optional str' elif typespec == typing.Sequence[str]: t = 'sequence of str' + elif typespec == typing.Optional[int]: + t =...
{"golden_diff": "diff --git a/mitmproxy/utils/typecheck.py b/mitmproxy/utils/typecheck.py\n--- a/mitmproxy/utils/typecheck.py\n+++ b/mitmproxy/utils/typecheck.py\n@@ -81,6 +81,8 @@\n t = 'optional str'\n elif typespec == typing.Sequence[str]:\n t = 'sequence of str'\n+ elif typespec == typing.Opt...
1,479
105
gh_patches_debug_53877
rasdani/github-patches
git_diff
pyca__cryptography-7406
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- release.py should link to GH create PAT page We can pre-fill what permissions are needed to improve the UX of doing a release. Example URL: https://github.com/settings/tokens/new?description=foo&scopes=repo,w...
diff --git a/release.py b/release.py --- a/release.py +++ b/release.py @@ -103,6 +103,11 @@ """ ``version`` should be a string like '0.4' or '1.0'. """ + print( + f"Create a new GH PAT at: " + f"https://github.com/settings/tokens/new?" + f"description={version}&scopes=repo" + )...
{"golden_diff": "diff --git a/release.py b/release.py\n--- a/release.py\n+++ b/release.py\n@@ -103,6 +103,11 @@\n \"\"\"\n ``version`` should be a string like '0.4' or '1.0'.\n \"\"\"\n+ print(\n+ f\"Create a new GH PAT at: \"\n+ f\"https://github.com/settings/tokens/new?\"\n+ f\"des...
1,499
134
gh_patches_debug_22074
rasdani/github-patches
git_diff
GPflow__GPflow-165
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- tests fail with tensorflow 10.0rc0 One test fails with the new tensorflow pre-release, it's related to the custom-op test: ``` python ImportError: No module named 'tensorflow.python.kernel_tests' ``` In add...
diff --git a/GPflow/_version.py b/GPflow/_version.py --- a/GPflow/_version.py +++ b/GPflow/_version.py @@ -13,4 +13,4 @@ # limitations under the License. -__version__ = "0.2.1" +__version__ = "0.3.0" diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -33,12 +33,14 @@ license="BSD 3-clause", ...
{"golden_diff": "diff --git a/GPflow/_version.py b/GPflow/_version.py\n--- a/GPflow/_version.py\n+++ b/GPflow/_version.py\n@@ -13,4 +13,4 @@\n # limitations under the License.\n \n \n-__version__ = \"0.2.1\"\n+__version__ = \"0.3.0\"\ndiff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -33,12 +33,14 @@...
1,101
298
gh_patches_debug_13731
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-4801
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Locally hosted RTD instance doesn't allow git file:/// URLs ## Details I installed a local RTD instance according to the Installation guide and imported test project. Now, I want to import my git project man...
diff --git a/readthedocs/projects/validators.py b/readthedocs/projects/validators.py --- a/readthedocs/projects/validators.py +++ b/readthedocs/projects/validators.py @@ -62,9 +62,12 @@ allow_private_repos = getattr(settings, 'ALLOW_PRIVATE_REPOS', False) public_schemes = ['https', 'http', 'git', 'ftp...
{"golden_diff": "diff --git a/readthedocs/projects/validators.py b/readthedocs/projects/validators.py\n--- a/readthedocs/projects/validators.py\n+++ b/readthedocs/projects/validators.py\n@@ -62,9 +62,12 @@\n allow_private_repos = getattr(settings, 'ALLOW_PRIVATE_REPOS', False)\n public_schemes = ['https...
1,555
183
gh_patches_debug_14591
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-144
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Function to order table by set of columns **Problem** <!-- Please provide a clear and concise description of the problem that this feature request is designed to solve.--> We should be able to get the rec...
diff --git a/db/records.py b/db/records.py --- a/db/records.py +++ b/db/records.py @@ -18,8 +18,20 @@ return result[0] if result else None -def get_records(table, engine, limit=None, offset=None): - query = select(table).limit(limit).offset(offset) +def get_records(table, engine, limit=None, offset=None...
{"golden_diff": "diff --git a/db/records.py b/db/records.py\n--- a/db/records.py\n+++ b/db/records.py\n@@ -18,8 +18,20 @@\n return result[0] if result else None\n \n \n-def get_records(table, engine, limit=None, offset=None):\n- query = select(table).limit(limit).offset(offset)\n+def get_records(table, engin...
994
240
gh_patches_debug_4832
rasdani/github-patches
git_diff
PlasmaPy__PlasmaPy-664
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bring back parallel testing in tox.ini I forgot a flag in there while debugging. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- B...
diff --git a/plasmapy/classes/sources/openpmd_hdf5.py b/plasmapy/classes/sources/openpmd_hdf5.py --- a/plasmapy/classes/sources/openpmd_hdf5.py +++ b/plasmapy/classes/sources/openpmd_hdf5.py @@ -84,6 +84,15 @@ self.subname = tuple(self.h5['data'])[0] + def __enter__(self): + return self.h5 + + ...
{"golden_diff": "diff --git a/plasmapy/classes/sources/openpmd_hdf5.py b/plasmapy/classes/sources/openpmd_hdf5.py\n--- a/plasmapy/classes/sources/openpmd_hdf5.py\n+++ b/plasmapy/classes/sources/openpmd_hdf5.py\n@@ -84,6 +84,15 @@\n \n self.subname = tuple(self.h5['data'])[0]\n \n+ def __enter__(self):\n+ ...
1,916
174
gh_patches_debug_37987
rasdani/github-patches
git_diff
scikit-image__scikit-image-4348
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- regionsprops_table is not mentioned in the doc We should use it in an existing example, or add a new example. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these ...
diff --git a/doc/examples/segmentation/plot_regionprops.py b/doc/examples/segmentation/plot_regionprops.py --- a/doc/examples/segmentation/plot_regionprops.py +++ b/doc/examples/segmentation/plot_regionprops.py @@ -3,15 +3,17 @@ Measure region properties ========================= -This example shows how to measure ...
{"golden_diff": "diff --git a/doc/examples/segmentation/plot_regionprops.py b/doc/examples/segmentation/plot_regionprops.py\n--- a/doc/examples/segmentation/plot_regionprops.py\n+++ b/doc/examples/segmentation/plot_regionprops.py\n@@ -3,15 +3,17 @@\n Measure region properties\n =========================\n \n-This examp...
821
767
gh_patches_debug_49618
rasdani/github-patches
git_diff
bridgecrewio__checkov-5936
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_GCP_79 SQL Server latest version is 2022 instead of 2019 **Describe the issue** The `CKV_GCP_79` about SQL server is pinned at 2019 but 2022 is the latest version : https://learn.microsoft.com/en-us/tr...
diff --git a/checkov/terraform/checks/resource/gcp/CloudSqlMajorVersion.py b/checkov/terraform/checks/resource/gcp/CloudSqlMajorVersion.py --- a/checkov/terraform/checks/resource/gcp/CloudSqlMajorVersion.py +++ b/checkov/terraform/checks/resource/gcp/CloudSqlMajorVersion.py @@ -14,8 +14,8 @@ return 'database_v...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/gcp/CloudSqlMajorVersion.py b/checkov/terraform/checks/resource/gcp/CloudSqlMajorVersion.py\n--- a/checkov/terraform/checks/resource/gcp/CloudSqlMajorVersion.py\n+++ b/checkov/terraform/checks/resource/gcp/CloudSqlMajorVersion.py\n@@ -14,8 +14,8 @@\n ...
699
230
gh_patches_debug_20647
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-1352
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bug in pairwise_euclidean_distance https://github.com/Lightning-AI/metrics/blob/e1c3fda24f90367803c2b04315ad7c8bced719db/torchmetrics/functional/pairwise/euclidean.py#L34 this line can become negative, resul...
diff --git a/src/torchmetrics/functional/pairwise/euclidean.py b/src/torchmetrics/functional/pairwise/euclidean.py --- a/src/torchmetrics/functional/pairwise/euclidean.py +++ b/src/torchmetrics/functional/pairwise/euclidean.py @@ -13,6 +13,7 @@ # limitations under the License. from typing import Optional +import to...
{"golden_diff": "diff --git a/src/torchmetrics/functional/pairwise/euclidean.py b/src/torchmetrics/functional/pairwise/euclidean.py\n--- a/src/torchmetrics/functional/pairwise/euclidean.py\n+++ b/src/torchmetrics/functional/pairwise/euclidean.py\n@@ -13,6 +13,7 @@\n # limitations under the License.\n from typing import...
1,755
330
gh_patches_debug_50347
rasdani/github-patches
git_diff
pypi__warehouse-7351
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix simple typo: thorugh -> through # Issue Type [x] Bug (Typo) # Steps to Replicate 1. Examine warehouse/filters.py. 2. Search for `thorugh`. # Expected Behaviour 1. Should read `through`. --- END IS...
diff --git a/warehouse/filters.py b/warehouse/filters.py --- a/warehouse/filters.py +++ b/warehouse/filters.py @@ -132,7 +132,7 @@ if value: structured[key].append(value[0]) - # Go thorugh and ensure that all of the lists in our classifiers are in + # Go through and ensure that all of the ...
{"golden_diff": "diff --git a/warehouse/filters.py b/warehouse/filters.py\n--- a/warehouse/filters.py\n+++ b/warehouse/filters.py\n@@ -132,7 +132,7 @@\n if value:\n structured[key].append(value[0])\n \n- # Go thorugh and ensure that all of the lists in our classifiers are in\n+ # Go through an...
1,875
119
gh_patches_debug_17552
rasdani/github-patches
git_diff
modin-project__modin-6959
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove `DataFrame.to_pickle_distributed` in favour of `DataFrame.modin.to_pickle_distributed` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may conta...
diff --git a/modin/experimental/pandas/__init__.py b/modin/experimental/pandas/__init__.py --- a/modin/experimental/pandas/__init__.py +++ b/modin/experimental/pandas/__init__.py @@ -32,9 +32,6 @@ >>> df = pd.read_csv_glob("data*.csv") """ -import functools -import warnings - from modin.pandas import * # noqa F40...
{"golden_diff": "diff --git a/modin/experimental/pandas/__init__.py b/modin/experimental/pandas/__init__.py\n--- a/modin/experimental/pandas/__init__.py\n+++ b/modin/experimental/pandas/__init__.py\n@@ -32,9 +32,6 @@\n >>> df = pd.read_csv_glob(\"data*.csv\")\n \"\"\"\n \n-import functools\n-import warnings\n-\n from m...
913
285
gh_patches_debug_16826
rasdani/github-patches
git_diff
lightly-ai__lightly-164
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: train_embedding fails when pytorch-lightning version is a release candit ## Bug description, how to reproduce and reason When running the line https://github.com/lightly-ai/lightly/blob/6cee517ff73ab8f...
diff --git a/lightly/embedding/_base.py b/lightly/embedding/_base.py --- a/lightly/embedding/_base.py +++ b/lightly/embedding/_base.py @@ -82,21 +82,8 @@ A trained encoder, ready for embedding datasets. """ - # backwards compatability for old pytorch-lightning versions: - # they ch...
{"golden_diff": "diff --git a/lightly/embedding/_base.py b/lightly/embedding/_base.py\n--- a/lightly/embedding/_base.py\n+++ b/lightly/embedding/_base.py\n@@ -82,21 +82,8 @@\n A trained encoder, ready for embedding datasets.\n \n \"\"\"\n- # backwards compatability for old pytorch-lightning v...
1,915
261
gh_patches_debug_44533
rasdani/github-patches
git_diff
biolab__orange3-text-240
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- OWCorpus: save Text Features in Settings <!-- This is an issue template. Please fill in the relevant details in the sections below. --> ##### Text version <!-- From menu _Options→Add-ons→Orange3-Text_ ...
diff --git a/orangecontrib/text/widgets/owloadcorpus.py b/orangecontrib/text/widgets/owloadcorpus.py --- a/orangecontrib/text/widgets/owloadcorpus.py +++ b/orangecontrib/text/widgets/owloadcorpus.py @@ -4,7 +4,7 @@ from Orange.widgets import gui from Orange.widgets.utils.itemmodels import VariableListModel from Oran...
{"golden_diff": "diff --git a/orangecontrib/text/widgets/owloadcorpus.py b/orangecontrib/text/widgets/owloadcorpus.py\n--- a/orangecontrib/text/widgets/owloadcorpus.py\n+++ b/orangecontrib/text/widgets/owloadcorpus.py\n@@ -4,7 +4,7 @@\n from Orange.widgets import gui\n from Orange.widgets.utils.itemmodels import Variab...
1,675
878
gh_patches_debug_15637
rasdani/github-patches
git_diff
zestedesavoir__zds-site-2216
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Un utilisateur peut s'écrire à lui même Testé en préprod. Scénario : - Je vais dans l'interface des messages - Dans les destinaites, je renseigne la chaine suivante (contenu entre guillemets) " , ". - Le MP...
diff --git a/zds/mp/forms.py b/zds/mp/forms.py --- a/zds/mp/forms.py +++ b/zds/mp/forms.py @@ -76,7 +76,8 @@ if participants is not None and participants.strip() != '': receivers = participants.strip().split(',') for receiver in receivers: - if User.objects.filter(usern...
{"golden_diff": "diff --git a/zds/mp/forms.py b/zds/mp/forms.py\n--- a/zds/mp/forms.py\n+++ b/zds/mp/forms.py\n@@ -76,7 +76,8 @@\n if participants is not None and participants.strip() != '':\n receivers = participants.strip().split(',')\n for receiver in receivers:\n- if U...
1,590
166
gh_patches_debug_1822
rasdani/github-patches
git_diff
zigpy__zha-device-handlers-342
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update zigpy version to use the new (old module) name for zigpy? @dmulcahey Ready to update zigpy version to use new (old) module name without -homeassistant suffix? @Adminiuga in the PR https://github.com...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -24,6 +24,6 @@ keywords="zha quirks homeassistant hass", packages=find_packages(exclude=["*.tests"]), python_requires=">=3", - install_requires=["zigpy-homeassistant>=0.18.1"], + install_requires=["zigpy>=0.20.0"], tests_require...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -24,6 +24,6 @@\n keywords=\"zha quirks homeassistant hass\",\n packages=find_packages(exclude=[\"*.tests\"]),\n python_requires=\">=3\",\n- install_requires=[\"zigpy-homeassistant>=0.18.1\"],\n+ install_requires=[\"z...
683
99
gh_patches_debug_10358
rasdani/github-patches
git_diff
crytic__slither-971
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Broken link in Slither recommendation due to typo in Wiki Hi, there is a typo (oarameters instead of parameters) in the first-level header "Unindexed ERC20 event oarameters" of the wiki: https://github.com/...
diff --git a/slither/detectors/erc/unindexed_event_parameters.py b/slither/detectors/erc/unindexed_event_parameters.py --- a/slither/detectors/erc/unindexed_event_parameters.py +++ b/slither/detectors/erc/unindexed_event_parameters.py @@ -16,7 +16,7 @@ WIKI = "https://github.com/crytic/slither/wiki/Detector-Docu...
{"golden_diff": "diff --git a/slither/detectors/erc/unindexed_event_parameters.py b/slither/detectors/erc/unindexed_event_parameters.py\n--- a/slither/detectors/erc/unindexed_event_parameters.py\n+++ b/slither/detectors/erc/unindexed_event_parameters.py\n@@ -16,7 +16,7 @@\n \n WIKI = \"https://github.com/crytic/sli...
1,403
186
gh_patches_debug_27309
rasdani/github-patches
git_diff
getpelican__pelican-1778
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- No tests in bdist Discussion from IRC: ``` 18:38 <ionelmc> can you stop including the tests in the installed package? 18:39 <+justmay> Fine with me. Care to submit a PR that addresses that? 18:39 <ionelmc> s...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +from os import walk +from os.path import join, relpath, dirname + from setuptools import setup requires = ['feedgenerator >= 1.6', 'jinja2 >= 2.7', 'pygments', 'docutils', @@ -14,11 +17,9 @@ ] } - README ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,4 +1,7 @@\n #!/usr/bin/env python\n+from os import walk\n+from os.path import join, relpath, dirname\n+\n from setuptools import setup\n \n requires = ['feedgenerator >= 1.6', 'jinja2 >= 2.7', 'pygments', 'docutils',\n@@ -14,11 +17...
1,496
371
gh_patches_debug_4667
rasdani/github-patches
git_diff
akvo__akvo-rsr-1910
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- REST API: project_extra with organisation filter gives duplicates The `project_extra` REST API endpoint shows duplicate projects when it is filtered on organisation. --- END ISSUE --- Below are some code s...
diff --git a/akvo/rest/views/project.py b/akvo/rest/views/project.py --- a/akvo/rest/views/project.py +++ b/akvo/rest/views/project.py @@ -93,7 +93,7 @@ if sync_owner: queryset = queryset.filter(partnerships__iati_organisation_role=101, partnerships__organis...
{"golden_diff": "diff --git a/akvo/rest/views/project.py b/akvo/rest/views/project.py\n--- a/akvo/rest/views/project.py\n+++ b/akvo/rest/views/project.py\n@@ -93,7 +93,7 @@\n if sync_owner:\n queryset = queryset.filter(partnerships__iati_organisation_role=101,\n ...
1,883
106
gh_patches_debug_25926
rasdani/github-patches
git_diff
PennyLaneAI__pennylane-2601
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- int to qml.BasisEmbedding ### Feature details Currently, to use `BasisEmbedding` we have to pass a list with the bits [0,1,0,0] for example to put a PauliX gate in the second qubit. It would be nice to be ...
diff --git a/pennylane/templates/embeddings/basis.py b/pennylane/templates/embeddings/basis.py --- a/pennylane/templates/embeddings/basis.py +++ b/pennylane/templates/embeddings/basis.py @@ -23,8 +23,8 @@ class BasisEmbedding(Operation): r"""Encodes :math:`n` binary features into a basis state of :math:`n` qubits...
{"golden_diff": "diff --git a/pennylane/templates/embeddings/basis.py b/pennylane/templates/embeddings/basis.py\n--- a/pennylane/templates/embeddings/basis.py\n+++ b/pennylane/templates/embeddings/basis.py\n@@ -23,8 +23,8 @@\n class BasisEmbedding(Operation):\n r\"\"\"Encodes :math:`n` binary features into a basis ...
2,021
394
gh_patches_debug_17293
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-1637
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Feature]: Add support for Christchurch (NZ) special date overrides ### I propose a feature for: Sources ### Describe your wanted feature The API for collection dates for Christchurch City Council does not...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/ccc_govt_nz.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/ccc_govt_nz.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/ccc_govt_nz.py +++ b/custom_components...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/ccc_govt_nz.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/ccc_govt_nz.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/ccc_govt_nz.py\n+++ ...
1,149
319
gh_patches_debug_35436
rasdani/github-patches
git_diff
cocotb__cocotb-2200
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- cocotb.hook does not do anything unless in a module present in COCOTB_HOOKS Marking a function with `@cocotb.hook` is insufficient for it to do anything - you also have to set the `COCOTB_HOOKS` environment v...
diff --git a/cocotb/xunit_reporter.py b/cocotb/xunit_reporter.py --- a/cocotb/xunit_reporter.py +++ b/cocotb/xunit_reporter.py @@ -28,40 +28,6 @@ from xml.etree.ElementTree import Element, SubElement import xml.etree.ElementTree as ET -import mmap -from io import StringIO - -TRUNCATE_LINES = 100 - - -# file from h...
{"golden_diff": "diff --git a/cocotb/xunit_reporter.py b/cocotb/xunit_reporter.py\n--- a/cocotb/xunit_reporter.py\n+++ b/cocotb/xunit_reporter.py\n@@ -28,40 +28,6 @@\n from xml.etree.ElementTree import Element, SubElement\n import xml.etree.ElementTree as ET\n \n-import mmap\n-from io import StringIO\n-\n-TRUNCATE_LINE...
1,970
712
gh_patches_debug_25338
rasdani/github-patches
git_diff
streamlit__streamlit-2482
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Streamlit fails to start without Git executable # Summary Streamlit version `0.69.1` fails to start when run inside a Docker container that doesn't have Git installed. # Steps to reproduce 1. Create ...
diff --git a/lib/streamlit/git_util.py b/lib/streamlit/git_util.py --- a/lib/streamlit/git_util.py +++ b/lib/streamlit/git_util.py @@ -2,8 +2,6 @@ import re from typing import Optional, Tuple -import git # type: ignore[import] - # Github has two URLs, one that is https and one that is ssh GITHUB_HTTP_URL = r"^ht...
{"golden_diff": "diff --git a/lib/streamlit/git_util.py b/lib/streamlit/git_util.py\n--- a/lib/streamlit/git_util.py\n+++ b/lib/streamlit/git_util.py\n@@ -2,8 +2,6 @@\n import re\n from typing import Optional, Tuple\n \n-import git # type: ignore[import]\n-\n # Github has two URLs, one that is https and one that is ss...
1,779
281
gh_patches_debug_1623
rasdani/github-patches
git_diff
googleapis__google-auth-library-python-671
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use extra for asyncio dependencies Hello! The latest release for this library pulls in aiohttp and its dependencies unconditionally, which adds non-trivial burden to projects that don’t need it. Would you c...
diff --git a/synth.py b/synth.py --- a/synth.py +++ b/synth.py @@ -10,8 +10,8 @@ s.move( templated_files / ".kokoro", excludes=[ - ".kokoro/continuous/common.cfg", - ".kokoro/presubmit/common.cfg", - ".kokoro/build.sh", + "continuous/common.cfg", + "presubmit/common.cfg", +...
{"golden_diff": "diff --git a/synth.py b/synth.py\n--- a/synth.py\n+++ b/synth.py\n@@ -10,8 +10,8 @@\n s.move(\n templated_files / \".kokoro\",\n excludes=[\n- \".kokoro/continuous/common.cfg\",\n- \".kokoro/presubmit/common.cfg\",\n- \".kokoro/build.sh\",\n+ \"continuous/common.cfg\...
1,645
114
gh_patches_debug_26588
rasdani/github-patches
git_diff
ckan__ckan-5723
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "Top Rated Datasets" needs to be removed from stats **CKAN version** 2.9.1 **Describe the bug** "Top Rated Datasets" is still in /stats even though ratings are being deprecated #5558 **Steps to reprod...
diff --git a/ckanext/stats/blueprint.py b/ckanext/stats/blueprint.py --- a/ckanext/stats/blueprint.py +++ b/ckanext/stats/blueprint.py @@ -13,7 +13,6 @@ def index(): stats = stats_lib.Stats() extra_vars = { - u'top_rated_packages': stats.top_rated_packages(), u'largest_groups': stats.largest_...
{"golden_diff": "diff --git a/ckanext/stats/blueprint.py b/ckanext/stats/blueprint.py\n--- a/ckanext/stats/blueprint.py\n+++ b/ckanext/stats/blueprint.py\n@@ -13,7 +13,6 @@\n def index():\n stats = stats_lib.Stats()\n extra_vars = {\n- u'top_rated_packages': stats.top_rated_packages(),\n u'larges...
1,844
434
gh_patches_debug_582
rasdani/github-patches
git_diff
pex-tool__pex-777
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 1.6.12 On the docket: + [x] PythonInterpreter: support python binary names with single letter suffixes #769 + [x] Pex should support some form of verifiably reproducible resolve. #772 --- END ISSUE...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = '1.6.11' +__version__ = '1.6.12'
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = '1.6.11'\n+__version__ = '1.6.12'\n", "issu...
365
96
gh_patches_debug_23322
rasdani/github-patches
git_diff
fossasia__open-event-server-9034
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- allow mutiple station for same location <!-- (Thanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.) --> <!-- Add...
diff --git a/app/api/station.py b/app/api/station.py --- a/app/api/station.py +++ b/app/api/station.py @@ -63,7 +63,7 @@ if data.get('microlocation'): require_relationship(['microlocation'], data) else: - if data['station_type'] in ('check in', 'check out', 'daily'): + ...
{"golden_diff": "diff --git a/app/api/station.py b/app/api/station.py\n--- a/app/api/station.py\n+++ b/app/api/station.py\n@@ -63,7 +63,7 @@\n if data.get('microlocation'):\n require_relationship(['microlocation'], data)\n else:\n- if data['station_type'] in ('check in', 'check ou...
1,565
222
gh_patches_debug_41468
rasdani/github-patches
git_diff
strawberry-graphql__strawberry-323
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use sentinel value for input parameters that aren't sent by the clients When using input types with optional fields we cannot differentiate by fields that have sent as null and fields that haven't been sent a...
diff --git a/strawberry/utils/arguments.py b/strawberry/utils/arguments.py --- a/strawberry/utils/arguments.py +++ b/strawberry/utils/arguments.py @@ -1,19 +1,49 @@ import enum +import typing from dataclasses import is_dataclass from datetime import date, datetime, time from ..exceptions import UnsupportedTypeErr...
{"golden_diff": "diff --git a/strawberry/utils/arguments.py b/strawberry/utils/arguments.py\n--- a/strawberry/utils/arguments.py\n+++ b/strawberry/utils/arguments.py\n@@ -1,19 +1,49 @@\n import enum\n+import typing\n from dataclasses import is_dataclass\n from datetime import date, datetime, time\n \n from ..exceptions...
938
872
gh_patches_debug_34000
rasdani/github-patches
git_diff
AlexsLemonade__refinebio-2280
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Engagement bot thinks every user is a returning user ### Context https://alexslemonade.slack.com/archives/CRK42AL1Y/p1587988808265500 ### Problem or idea @dvenprasad says 6 of those are new users. Th...
diff --git a/api/data_refinery_api/management/commands/post_downloads_summary.py b/api/data_refinery_api/management/commands/post_downloads_summary.py --- a/api/data_refinery_api/management/commands/post_downloads_summary.py +++ b/api/data_refinery_api/management/commands/post_downloads_summary.py @@ -42,28 +42,30 @@ ...
{"golden_diff": "diff --git a/api/data_refinery_api/management/commands/post_downloads_summary.py b/api/data_refinery_api/management/commands/post_downloads_summary.py\n--- a/api/data_refinery_api/management/commands/post_downloads_summary.py\n+++ b/api/data_refinery_api/management/commands/post_downloads_summary.py\n@...
1,574
515
gh_patches_debug_26690
rasdani/github-patches
git_diff
getsentry__sentry-python-2755
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make EventScrubber recursive ### Problem Statement We have a custom `before_send` implementation that scrubs data recursively. I was hopping to replace the custom implementation with the built-in EventScru...
diff --git a/sentry_sdk/scrubber.py b/sentry_sdk/scrubber.py --- a/sentry_sdk/scrubber.py +++ b/sentry_sdk/scrubber.py @@ -59,19 +59,36 @@ class EventScrubber(object): - def __init__(self, denylist=None): - # type: (Optional[List[str]]) -> None + def __init__(self, denylist=None, recursive=False): + ...
{"golden_diff": "diff --git a/sentry_sdk/scrubber.py b/sentry_sdk/scrubber.py\n--- a/sentry_sdk/scrubber.py\n+++ b/sentry_sdk/scrubber.py\n@@ -59,19 +59,36 @@\n \n \n class EventScrubber(object):\n- def __init__(self, denylist=None):\n- # type: (Optional[List[str]]) -> None\n+ def __init__(self, denylist=N...
1,603
385
gh_patches_debug_6031
rasdani/github-patches
git_diff
pytorch__audio-579
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- _audio_backends platform independent ## 🐛 Bug The constant [_audio_backends](https://github.com/pytorch/audio/blob/c29598d54185d73b4ed04103330573e190bbdb69/torchaudio/_backend.py#L12) is referenced by [BA...
diff --git a/torchaudio/_backend.py b/torchaudio/_backend.py --- a/torchaudio/_backend.py +++ b/torchaudio/_backend.py @@ -8,8 +8,12 @@ from . import _soundfile_backend, _sox_backend -_audio_backend = "soundfile" if platform.system() == "Windows" else "sox" -_audio_backends = {"sox": _sox_backend, "soundfile": _so...
{"golden_diff": "diff --git a/torchaudio/_backend.py b/torchaudio/_backend.py\n--- a/torchaudio/_backend.py\n+++ b/torchaudio/_backend.py\n@@ -8,8 +8,12 @@\n from . import _soundfile_backend, _sox_backend\n \n \n-_audio_backend = \"soundfile\" if platform.system() == \"Windows\" else \"sox\"\n-_audio_backends = {\"sox\...
1,852
195
gh_patches_debug_19340
rasdani/github-patches
git_diff
pyca__cryptography-7382
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Include Rust version in DEBUG ASSISTENCE message? I'm not sure what the best way to do this is but it seems like it would be helpful to include the output of `rustc -V` in the DEBUG ASSISTENCE. --- END ISSUE...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -6,6 +6,9 @@ import os import platform +import re +import shutil +import subprocess import sys from setuptools import setup @@ -89,6 +92,22 @@ except pkg_resources.DistributionNotFound: version = "n/a" print(f" {...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -6,6 +6,9 @@\n \n import os\n import platform\n+import re\n+import shutil\n+import subprocess\n import sys\n \n from setuptools import setup\n@@ -89,6 +92,22 @@\n except pkg_resources.DistributionNotFound:\n versio...
1,274
245
gh_patches_debug_42599
rasdani/github-patches
git_diff
StackStorm__st2-5467
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix multiple file support in linux.file_watch.line + black + fstring When multiple file_watch rules are defined, the last defined file reference is used for all files being watched. This causes trigger-insta...
diff --git a/contrib/linux/sensors/file_watch_sensor.py b/contrib/linux/sensors/file_watch_sensor.py --- a/contrib/linux/sensors/file_watch_sensor.py +++ b/contrib/linux/sensors/file_watch_sensor.py @@ -14,7 +14,6 @@ # limitations under the License. import os - import eventlet from logshipper.tail import Tail @...
{"golden_diff": "diff --git a/contrib/linux/sensors/file_watch_sensor.py b/contrib/linux/sensors/file_watch_sensor.py\n--- a/contrib/linux/sensors/file_watch_sensor.py\n+++ b/contrib/linux/sensors/file_watch_sensor.py\n@@ -14,7 +14,6 @@\n # limitations under the License.\n \n import os\n-\n import eventlet\n \n from lo...
1,654
917
gh_patches_debug_2998
rasdani/github-patches
git_diff
archlinux__archinstall-763
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- in xfce, it need xarchiver for create archive & extract here-to in xfce, it need xarchiver for create archive & extract here-to in xfce, it need xarchiver for create archive & extract here-to in xfce, it need...
diff --git a/profiles/kde.py b/profiles/kde.py --- a/profiles/kde.py +++ b/profiles/kde.py @@ -9,6 +9,7 @@ "konsole", "kate", "dolphin", + "ark", "sddm", "plasma-wayland-session", "egl-wayland", diff --git a/profiles/xfce4.py b/profiles/xfce4.py --- a/profiles/xfce4.py +++ b/profiles/xfce4.py @@ -12,6 +12,7...
{"golden_diff": "diff --git a/profiles/kde.py b/profiles/kde.py\n--- a/profiles/kde.py\n+++ b/profiles/kde.py\n@@ -9,6 +9,7 @@\n \t\"konsole\",\n \t\"kate\",\n \t\"dolphin\",\n+\t\"ark\",\n \t\"sddm\",\n \t\"plasma-wayland-session\",\n \t\"egl-wayland\",\ndiff --git a/profiles/xfce4.py b/profiles/xfce4.py\n--- a/profil...
1,326
170
gh_patches_debug_2479
rasdani/github-patches
git_diff
boto__boto-2475
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- VPC Peering Connection "delete()" calls wrong method The "delete()" method of VpcPeeringConnection calls "self.connection.delete_vpc(self.id)" instead of "self.connection.delete_vpc_peering_connection(self.id...
diff --git a/boto/vpc/vpc_peering_connection.py b/boto/vpc/vpc_peering_connection.py --- a/boto/vpc/vpc_peering_connection.py +++ b/boto/vpc/vpc_peering_connection.py @@ -145,7 +145,7 @@ setattr(self, name, value) def delete(self): - return self.connection.delete_vpc(self.id) + return ...
{"golden_diff": "diff --git a/boto/vpc/vpc_peering_connection.py b/boto/vpc/vpc_peering_connection.py\n--- a/boto/vpc/vpc_peering_connection.py\n+++ b/boto/vpc/vpc_peering_connection.py\n@@ -145,7 +145,7 @@\n setattr(self, name, value)\n \n def delete(self):\n- return self.connection.delete_vpc(s...
1,978
124
gh_patches_debug_37928
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-3315
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider lenscrafters is broken During the global build at 2021-08-25-14-42-15, spider **lenscrafters** failed with **0 features** and **1 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-08-...
diff --git a/locations/spiders/lenscrafters.py b/locations/spiders/lenscrafters.py --- a/locations/spiders/lenscrafters.py +++ b/locations/spiders/lenscrafters.py @@ -10,7 +10,7 @@ class LensCraftersSpider(scrapy.Spider): name = "lenscrafters" - item_attributes = { 'brand': "Lenscrafters" } + item_attribu...
{"golden_diff": "diff --git a/locations/spiders/lenscrafters.py b/locations/spiders/lenscrafters.py\n--- a/locations/spiders/lenscrafters.py\n+++ b/locations/spiders/lenscrafters.py\n@@ -10,7 +10,7 @@\n \n class LensCraftersSpider(scrapy.Spider):\n name = \"lenscrafters\"\n- item_attributes = { 'brand': \"Lenscr...
1,129
741
gh_patches_debug_19352
rasdani/github-patches
git_diff
sublimelsp__LSP-339
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Scopes priorities while selecting configuration ## Bug: When there are multiple language servers configured, all of which are for similar scopes (Ex. `source.json`, `source.json.sublime.settings`) the conf...
diff --git a/plugin/core/configurations.py b/plugin/core/configurations.py --- a/plugin/core/configurations.py +++ b/plugin/core/configurations.py @@ -17,13 +17,21 @@ def get_scope_client_config(view: 'sublime.View', configs: 'List[ClientConfig]') -> 'Optional[ClientConfig]': + # When there are multiple server ...
{"golden_diff": "diff --git a/plugin/core/configurations.py b/plugin/core/configurations.py\n--- a/plugin/core/configurations.py\n+++ b/plugin/core/configurations.py\n@@ -17,13 +17,21 @@\n \n \n def get_scope_client_config(view: 'sublime.View', configs: 'List[ClientConfig]') -> 'Optional[ClientConfig]':\n+ # When th...
1,514
280
gh_patches_debug_12787
rasdani/github-patches
git_diff
numba__numba-672
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wrong type coercion on input arguments If the following snippet, it looks like first calling the function with int arguments then coerces any further float arguments to int: ``` >>> @jit(nopython=True) ... d...
diff --git a/numba/typeconv/typeconv.py b/numba/typeconv/typeconv.py --- a/numba/typeconv/typeconv.py +++ b/numba/typeconv/typeconv.py @@ -6,10 +6,10 @@ def __init__(self): self._ptr = _typeconv.new_type_manager() - def select_overload(self, sig, overloads): + def select_overload(self, sig, overlo...
{"golden_diff": "diff --git a/numba/typeconv/typeconv.py b/numba/typeconv/typeconv.py\n--- a/numba/typeconv/typeconv.py\n+++ b/numba/typeconv/typeconv.py\n@@ -6,10 +6,10 @@\n def __init__(self):\n self._ptr = _typeconv.new_type_manager()\n \n- def select_overload(self, sig, overloads):\n+ def select_o...
808
213
gh_patches_debug_33843
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-731
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- E3031 CidrIp contains invalid characters fails when Fn::Sub is present *cfn-lint version: (`cfn-lint --version`)* `cfn-lint 0.16.0` *Description of issue.* When `CidrIp` value is `!Sub`ed from `Param...
diff --git a/src/cfnlint/rules/resources/properties/AllowedPattern.py b/src/cfnlint/rules/resources/properties/AllowedPattern.py --- a/src/cfnlint/rules/resources/properties/AllowedPattern.py +++ b/src/cfnlint/rules/resources/properties/AllowedPattern.py @@ -15,7 +15,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE...
{"golden_diff": "diff --git a/src/cfnlint/rules/resources/properties/AllowedPattern.py b/src/cfnlint/rules/resources/properties/AllowedPattern.py\n--- a/src/cfnlint/rules/resources/properties/AllowedPattern.py\n+++ b/src/cfnlint/rules/resources/properties/AllowedPattern.py\n@@ -15,7 +15,6 @@\n SOFTWARE OR THE USE OR ...
2,029
430
gh_patches_debug_5376
rasdani/github-patches
git_diff
great-expectations__great_expectations-4471
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of th...
diff --git a/great_expectations/rule_based_profiler/types/__init__.py b/great_expectations/rule_based_profiler/types/__init__.py --- a/great_expectations/rule_based_profiler/types/__init__.py +++ b/great_expectations/rule_based_profiler/types/__init__.py @@ -9,6 +9,8 @@ from .parameter_container import ( # isort:skip...
{"golden_diff": "diff --git a/great_expectations/rule_based_profiler/types/__init__.py b/great_expectations/rule_based_profiler/types/__init__.py\n--- a/great_expectations/rule_based_profiler/types/__init__.py\n+++ b/great_expectations/rule_based_profiler/types/__init__.py\n@@ -9,6 +9,8 @@\n from .parameter_container i...
504
148
gh_patches_debug_8097
rasdani/github-patches
git_diff
uccser__cs-unplugged-652
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Modify docker configuration to work on OSX Docker for Mac does not properly support the `network_mode: host` option for containers. In order to run the system on OSX, it will be necessary to network the conta...
diff --git a/csunplugged/config/settings/database_proxy.py b/csunplugged/config/settings/database_proxy.py --- a/csunplugged/config/settings/database_proxy.py +++ b/csunplugged/config/settings/database_proxy.py @@ -10,8 +10,8 @@ DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", - ...
{"golden_diff": "diff --git a/csunplugged/config/settings/database_proxy.py b/csunplugged/config/settings/database_proxy.py\n--- a/csunplugged/config/settings/database_proxy.py\n+++ b/csunplugged/config/settings/database_proxy.py\n@@ -10,8 +10,8 @@\n DATABASES = {\n \"default\": {\n \"ENGINE\": \"django.db....
625
176
gh_patches_debug_2946
rasdani/github-patches
git_diff
beetbox__beets-3703
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Minor documentation correction: correct id3.org url https://github.com/beetbox/beets/blob/master/docs/faq.rst#L303 refers to: http://www.id3.org/id3v2.4.0-structure as a reference url for a copy of the ID...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -28,6 +28,13 @@ 'stdlib': ('https://docs.python.org/3/library/%s.html', ''), } +linkcheck_ignore = [ + r'https://github.com/beetbox/beets/issues/', + r'https://github.com/\w+$', # ignore user pages + r'.*localhost.*', + ...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -28,6 +28,13 @@\n 'stdlib': ('https://docs.python.org/3/library/%s.html', ''),\n }\n \n+linkcheck_ignore = [\n+ r'https://github.com/beetbox/beets/issues/',\n+ r'https://github.com/\\w+$', # ignore user page...
806
137
gh_patches_debug_27634
rasdani/github-patches
git_diff
adap__flower-465
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve docstring for `start_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: `src/py/flwr/server/ap...
diff --git a/src/py/flwr/server/app.py b/src/py/flwr/server/app.py --- a/src/py/flwr/server/app.py +++ b/src/py/flwr/server/app.py @@ -35,7 +35,33 @@ strategy: Optional[Strategy] = None, grpc_max_message_length: int = GRPC_MAX_MESSAGE_LENGTH, ) -> None: - """Start a Flower server using the gRPC transport ...
{"golden_diff": "diff --git a/src/py/flwr/server/app.py b/src/py/flwr/server/app.py\n--- a/src/py/flwr/server/app.py\n+++ b/src/py/flwr/server/app.py\n@@ -35,7 +35,33 @@\n strategy: Optional[Strategy] = None,\n grpc_max_message_length: int = GRPC_MAX_MESSAGE_LENGTH,\n ) -> None:\n- \"\"\"Start a Flower serve...
1,190
476
gh_patches_debug_2933
rasdani/github-patches
git_diff
conda__conda-5009
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- When lacking permissions to write, clone message should quote prefix. When trying to install a new package into a location that the user lacks write permissions (read-only root), conda helpfully suggests clon...
diff --git a/conda/cli/help.py b/conda/cli/help.py --- a/conda/cli/help.py +++ b/conda/cli/help.py @@ -35,7 +35,7 @@ # then make changes to it. # This may be done using the command: # -# $ conda create -n my_${name} --clone=${prefix} +# $ conda create -n my_${name} --clone="${prefix}" """ msg = msg.replace('${...
{"golden_diff": "diff --git a/conda/cli/help.py b/conda/cli/help.py\n--- a/conda/cli/help.py\n+++ b/conda/cli/help.py\n@@ -35,7 +35,7 @@\n # then make changes to it.\n # This may be done using the command:\n #\n-# $ conda create -n my_${name} --clone=${prefix}\n+# $ conda create -n my_${name} --clone=\"${prefix}\"\n \"...
888
118
gh_patches_debug_610
rasdani/github-patches
git_diff
ivy-llc__ivy-23142
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ifft --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ivy/functional/frontends/jax/numpy/fft.py` Content: `...
diff --git a/ivy/functional/frontends/jax/numpy/fft.py b/ivy/functional/frontends/jax/numpy/fft.py --- a/ivy/functional/frontends/jax/numpy/fft.py +++ b/ivy/functional/frontends/jax/numpy/fft.py @@ -27,3 +27,10 @@ roll = ivy.roll(x, shifts, axis=axes) return roll + + +@to_ivy_arrays_and_back +def ifft(a, n=...
{"golden_diff": "diff --git a/ivy/functional/frontends/jax/numpy/fft.py b/ivy/functional/frontends/jax/numpy/fft.py\n--- a/ivy/functional/frontends/jax/numpy/fft.py\n+++ b/ivy/functional/frontends/jax/numpy/fft.py\n@@ -27,3 +27,10 @@\n roll = ivy.roll(x, shifts, axis=axes)\n \n return roll\n+\n+\n+@to_ivy_array...
554
155
gh_patches_debug_28326
rasdani/github-patches
git_diff
pyca__cryptography-5803
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Circular import error (again) in 3.4.3 Opening a new issue as the old one (https://github.com/pyca/cryptography/issues/5756) wasn't re-opened after my comment: @reaperhulk Hi, still got some circul...
diff --git a/src/cryptography/__about__.py b/src/cryptography/__about__.py --- a/src/cryptography/__about__.py +++ b/src/cryptography/__about__.py @@ -21,7 +21,7 @@ ) __uri__ = "https://github.com/pyca/cryptography" -__version__ = "3.4.3" +__version__ = "3.4.4" __author__ = "The Python Cryptographic Authority an...
{"golden_diff": "diff --git a/src/cryptography/__about__.py b/src/cryptography/__about__.py\n--- a/src/cryptography/__about__.py\n+++ b/src/cryptography/__about__.py\n@@ -21,7 +21,7 @@\n )\n __uri__ = \"https://github.com/pyca/cryptography\"\n \n-__version__ = \"3.4.3\"\n+__version__ = \"3.4.4\"\n \n __author__ = \"The...
1,844
461
gh_patches_debug_50232
rasdani/github-patches
git_diff
pex-tool__pex-1720
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.79 On the docket: + [x] The --lock resolver only includes extras from the 1st encounter of a required project in its graph walk. #1717 + [x] Support canonicalizing absolute paths in locks. (#17...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = "2.1.78" +__version__ = "2.1.79"
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.78\"\n+__version__ = \"2.1.79\"\n", "...
371
96
gh_patches_debug_21195
rasdani/github-patches
git_diff
open-mmlab__mmocr-1587
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] 数据集预处理中,对于含","的特殊文本未特殊处理 ### Prerequisite - [X] I have searched [Issues](https://github.com/open-mmlab/mmocr/issues) and [Discussions](https://github.com/open-mmlab/mmocr/discussions) but cannot get th...
diff --git a/mmocr/datasets/preparers/parsers/base.py b/mmocr/datasets/preparers/parsers/base.py --- a/mmocr/datasets/preparers/parsers/base.py +++ b/mmocr/datasets/preparers/parsers/base.py @@ -79,7 +79,8 @@ separator: str = ',', format: str = 'x1,y1,x2,y2,x3,y3,x4,y4,trans', ...
{"golden_diff": "diff --git a/mmocr/datasets/preparers/parsers/base.py b/mmocr/datasets/preparers/parsers/base.py\n--- a/mmocr/datasets/preparers/parsers/base.py\n+++ b/mmocr/datasets/preparers/parsers/base.py\n@@ -79,7 +79,8 @@\n separator: str = ',',\n format: str = 'x1,y1,x2,y2,x3,y3,x4...
1,858
269
gh_patches_debug_7801
rasdani/github-patches
git_diff
python-pillow__Pillow-7357
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug in QOI decoder leading to corrupted images ### What did you do? Loaded dice.qoi from the official test image set (https://qoiformat.org/qoi_test_images.zip). ### What did you expect to happen? Im...
diff --git a/src/PIL/QoiImagePlugin.py b/src/PIL/QoiImagePlugin.py --- a/src/PIL/QoiImagePlugin.py +++ b/src/PIL/QoiImagePlugin.py @@ -55,7 +55,7 @@ while len(data) < self.state.xsize * self.state.ysize * bands: byte = self.fd.read(1)[0] if byte == 0b11111110: # QOI_OP_RGB - ...
{"golden_diff": "diff --git a/src/PIL/QoiImagePlugin.py b/src/PIL/QoiImagePlugin.py\n--- a/src/PIL/QoiImagePlugin.py\n+++ b/src/PIL/QoiImagePlugin.py\n@@ -55,7 +55,7 @@\n while len(data) < self.state.xsize * self.state.ysize * bands:\n byte = self.fd.read(1)[0]\n if byte == 0b11111110: ...
1,772
179
gh_patches_debug_16247
rasdani/github-patches
git_diff
pyca__cryptography-1397
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- dsa_private_key.pem vector has p and q whose lengths we don't normally allow We currently enforce that `p` and `q` have lengths which are one of: - `(1024, 160)` - `(2048, 256)` - `(3072, 256)` However, this...
diff --git a/cryptography/hazmat/primitives/asymmetric/dsa.py b/cryptography/hazmat/primitives/asymmetric/dsa.py --- a/cryptography/hazmat/primitives/asymmetric/dsa.py +++ b/cryptography/hazmat/primitives/asymmetric/dsa.py @@ -27,17 +27,10 @@ def _check_dsa_parameters(parameters): - if (utils.bit_length(paramet...
{"golden_diff": "diff --git a/cryptography/hazmat/primitives/asymmetric/dsa.py b/cryptography/hazmat/primitives/asymmetric/dsa.py\n--- a/cryptography/hazmat/primitives/asymmetric/dsa.py\n+++ b/cryptography/hazmat/primitives/asymmetric/dsa.py\n@@ -27,17 +27,10 @@\n \n \n def _check_dsa_parameters(parameters):\n- if (...
1,608
364
gh_patches_debug_16759
rasdani/github-patches
git_diff
bridgecrewio__checkov-1479
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_AWS_78 misreported **Describe the bug** Checkov is returning as vulnerability CKV_AWS_78, but the solution breaks Terraform validation. Accordigly to Checkov if `encryption_disabled = false` is not se...
diff --git a/checkov/terraform/checks/resource/aws/CodeBuildProjectEncryption.py b/checkov/terraform/checks/resource/aws/CodeBuildProjectEncryption.py --- a/checkov/terraform/checks/resource/aws/CodeBuildProjectEncryption.py +++ b/checkov/terraform/checks/resource/aws/CodeBuildProjectEncryption.py @@ -16,11 +16,13 @@ ...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/aws/CodeBuildProjectEncryption.py b/checkov/terraform/checks/resource/aws/CodeBuildProjectEncryption.py\n--- a/checkov/terraform/checks/resource/aws/CodeBuildProjectEncryption.py\n+++ b/checkov/terraform/checks/resource/aws/CodeBuildProjectEncryption.py\n@...
952
253
gh_patches_debug_2490
rasdani/github-patches
git_diff
dotkom__onlineweb4-165
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Adding 'Offline Informasjonstekster' causes error Not really sure what this does but it casts an error saying: Exception Type: IntegrityError Exception Value: column key is not unique --- END ISSUE ...
diff --git a/apps/offline/admin.py b/apps/offline/admin.py --- a/apps/offline/admin.py +++ b/apps/offline/admin.py @@ -8,6 +8,9 @@ readonly_fields = ['key'] + def has_add_permission(self, request): + return False + def queryset(self, request): offline = Chunk.objects.filter(Q(key='offli...
{"golden_diff": "diff --git a/apps/offline/admin.py b/apps/offline/admin.py\n--- a/apps/offline/admin.py\n+++ b/apps/offline/admin.py\n@@ -8,6 +8,9 @@\n \n readonly_fields = ['key']\n \n+ def has_add_permission(self, request):\n+ return False\n+\n def queryset(self, request):\n offline = Chunk...
426
101
gh_patches_debug_34711
rasdani/github-patches
git_diff
scikit-image__scikit-image-6035
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Segfault in peak_local_max with large numbed of segments ## Description scikit-image dives to (absolutely uncatchable and untrackable) segfault in peak_local_max. ## Way to reproduce ```python import ...
diff --git a/skimage/_shared/coord.py b/skimage/_shared/coord.py --- a/skimage/_shared/coord.py +++ b/skimage/_shared/coord.py @@ -59,7 +59,7 @@ def ensure_spacing(coords, spacing=1, p_norm=np.inf, min_split_size=50, - max_out=None): + max_out=None, *, max_split_size=2000): ...
{"golden_diff": "diff --git a/skimage/_shared/coord.py b/skimage/_shared/coord.py\n--- a/skimage/_shared/coord.py\n+++ b/skimage/_shared/coord.py\n@@ -59,7 +59,7 @@\n \n \n def ensure_spacing(coords, spacing=1, p_norm=np.inf, min_split_size=50,\n- max_out=None):\n+ max_out=None, *, m...
1,663
560
gh_patches_debug_37441
rasdani/github-patches
git_diff
scikit-hep__awkward-1841
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ak.type does not understand `numpy.<type>` style dtypes ### Version of Awkward Array 2.0.0rc1 ### Description and code to reproduce numpy = 1.23.4 ```python3 >>> import awkward as ak >>> import numpy ...
diff --git a/src/awkward/operations/ak_type.py b/src/awkward/operations/ak_type.py --- a/src/awkward/operations/ak_type.py +++ b/src/awkward/operations/ak_type.py @@ -1,6 +1,8 @@ # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE +import builtins import numbers +from datetime im...
{"golden_diff": "diff --git a/src/awkward/operations/ak_type.py b/src/awkward/operations/ak_type.py\n--- a/src/awkward/operations/ak_type.py\n+++ b/src/awkward/operations/ak_type.py\n@@ -1,6 +1,8 @@\n # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n \n+import builtins\n import n...
1,821
651
gh_patches_debug_38340
rasdani/github-patches
git_diff
python-poetry__poetry-2602
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Poetry 1.1.0a2 includes python code in the version string To reproduce: 1. `poetry init` with default choices; no dependencies. 1. `poetry add pytest-cov` 1. `poetry install` The last command prints: ...
diff --git a/poetry/repositories/installed_repository.py b/poetry/repositories/installed_repository.py --- a/poetry/repositories/installed_repository.py +++ b/poetry/repositories/installed_repository.py @@ -1,3 +1,5 @@ +from typing import Set + from poetry.core.packages import Package from poetry.utils._compat import...
{"golden_diff": "diff --git a/poetry/repositories/installed_repository.py b/poetry/repositories/installed_repository.py\n--- a/poetry/repositories/installed_repository.py\n+++ b/poetry/repositories/installed_repository.py\n@@ -1,3 +1,5 @@\n+from typing import Set\n+\n from poetry.core.packages import Package\n from poe...
1,170
671
gh_patches_debug_4899
rasdani/github-patches
git_diff
ivy-llc__ivy-18924
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- dropout3d --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ivy/functional/frontends/paddle/nn/functional/co...
diff --git a/ivy/functional/frontends/paddle/nn/functional/common.py b/ivy/functional/frontends/paddle/nn/functional/common.py --- a/ivy/functional/frontends/paddle/nn/functional/common.py +++ b/ivy/functional/frontends/paddle/nn/functional/common.py @@ -109,3 +109,9 @@ def linear(x, weight, bias=None, name=None): ...
{"golden_diff": "diff --git a/ivy/functional/frontends/paddle/nn/functional/common.py b/ivy/functional/frontends/paddle/nn/functional/common.py\n--- a/ivy/functional/frontends/paddle/nn/functional/common.py\n+++ b/ivy/functional/frontends/paddle/nn/functional/common.py\n@@ -109,3 +109,9 @@\n def linear(x, weight, bias=...
1,676
210
gh_patches_debug_18102
rasdani/github-patches
git_diff
iterative__dvc-417
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Running DVC outside of Git dir We should handle all the cases like this. ``` cd / $ dvc repro No handlers could be found for logger "dvc" ``` --- END ISSUE --- Below are some code segments, each from...
diff --git a/dvc/logger.py b/dvc/logger.py --- a/dvc/logger.py +++ b/dvc/logger.py @@ -25,15 +25,19 @@ } def __init__(self, config=None): + self.init(config) + + @staticmethod + def init(config=None): sh = logging.StreamHandler(sys.stdout) - sh.setFormatter(logging.Formatter(sel...
{"golden_diff": "diff --git a/dvc/logger.py b/dvc/logger.py\n--- a/dvc/logger.py\n+++ b/dvc/logger.py\n@@ -25,15 +25,19 @@\n }\n \n def __init__(self, config=None):\n+ self.init(config)\n+\n+ @staticmethod\n+ def init(config=None):\n sh = logging.StreamHandler(sys.stdout)\n- sh.setFo...
1,060
243
gh_patches_debug_22662
rasdani/github-patches
git_diff
psf__black-2839
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve documentation for configuration options Currently, our config options are documented only in a collapsed-by-default text block in https://black.readthedocs.io/en/stable/usage_and_configuration/the_bas...
diff --git a/scripts/check_version_in_basics_example.py b/scripts/check_version_in_basics_example.py --- a/scripts/check_version_in_basics_example.py +++ b/scripts/check_version_in_basics_example.py @@ -20,20 +20,21 @@ the_basics_html = commonmark.commonmark(the_basics) the_basics_soup = BeautifulSoup(the_b...
{"golden_diff": "diff --git a/scripts/check_version_in_basics_example.py b/scripts/check_version_in_basics_example.py\n--- a/scripts/check_version_in_basics_example.py\n+++ b/scripts/check_version_in_basics_example.py\n@@ -20,20 +20,21 @@\n \n the_basics_html = commonmark.commonmark(the_basics)\n the_basics_sou...
818
318
gh_patches_debug_738
rasdani/github-patches
git_diff
certbot__certbot-7766
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Required pyparsing version I've been experimenting with writing tests using the oldest allowed versions of our Python dependencies. `setup.py` for `letsencrypt-nginx` says it requires `pyparsing>=1.5.5` but w...
diff --git a/certbot-nginx/setup.py b/certbot-nginx/setup.py --- a/certbot-nginx/setup.py +++ b/certbot-nginx/setup.py @@ -13,7 +13,7 @@ 'certbot>=1.1.0', 'mock', 'PyOpenSSL', - 'pyparsing>=1.5.5', # Python3 support; perhaps unnecessary? + 'pyparsing>=1.5.5', # Python3 support 'setuptools', ...
{"golden_diff": "diff --git a/certbot-nginx/setup.py b/certbot-nginx/setup.py\n--- a/certbot-nginx/setup.py\n+++ b/certbot-nginx/setup.py\n@@ -13,7 +13,7 @@\n 'certbot>=1.1.0',\n 'mock',\n 'PyOpenSSL',\n- 'pyparsing>=1.5.5', # Python3 support; perhaps unnecessary?\n+ 'pyparsing>=1.5.5', # Python3 su...
1,138
126
gh_patches_debug_4844
rasdani/github-patches
git_diff
twisted__twisted-11722
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- .hypothesis should be in .gitignore **Describe the incorrect behavior you saw** `git diff` shows me an untracked `.hypothesis` directory. **Describe how to cause this behavior** I ran the tests. *...
diff --git a/.github/scripts/check-pr-text.py b/.github/scripts/check-pr-text.py --- a/.github/scripts/check-pr-text.py +++ b/.github/scripts/check-pr-text.py @@ -41,7 +41,7 @@ if not pr_body: fail("Body for the PR not found. " "Maybe missing PR_BODY env var.") -title_search = re.search(r"^(#\d+) .+", pr_title)...
{"golden_diff": "diff --git a/.github/scripts/check-pr-text.py b/.github/scripts/check-pr-text.py\n--- a/.github/scripts/check-pr-text.py\n+++ b/.github/scripts/check-pr-text.py\n@@ -41,7 +41,7 @@\n if not pr_body:\n fail(\"Body for the PR not found. \" \"Maybe missing PR_BODY env var.\")\n \n-title_search = re.sea...
942
146
gh_patches_debug_391
rasdani/github-patches
git_diff
getmoto__moto-1992
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Replace pyaml dependency with PyYAML There is a dependency on pyaml in setup.py: https://github.com/spulec/moto/blob/master/setup.py#L18 I think that this is intended to be PyYAML (which pyaml depends o...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ "xmltodict", "six>1.9", "werkzeug", - "pyaml", + "PyYAML", "pytz", "python-dateutil<3.0.0,>=2.1", "python-jose<3.0.0",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -15,7 +15,7 @@\n \"xmltodict\",\n \"six>1.9\",\n \"werkzeug\",\n- \"pyaml\",\n+ \"PyYAML\",\n \"pytz\",\n \"python-dateutil<3.0.0,>=2.1\",\n \"python-jose<3.0.0\",\n", "issue": "Replace pyaml dependency w...
1,070
98
gh_patches_debug_24229
rasdani/github-patches
git_diff
streamlink__streamlink-2160
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Skai plugin broken <!-- Thanks for reporting a plugin issue! USE THE TEMPLATE. Otherwise your plugin issue may be rejected. First, see the contribution guidelines: https://github.com/streamlink/streamli...
diff --git a/src/streamlink/plugins/skai.py b/src/streamlink/plugins/skai.py --- a/src/streamlink/plugins/skai.py +++ b/src/streamlink/plugins/skai.py @@ -3,20 +3,15 @@ from streamlink.plugin import Plugin from streamlink.plugin.api import validate -YOUTUBE_URL = "https://www.youtube.com/watch?v={0}" -_url_re = re....
{"golden_diff": "diff --git a/src/streamlink/plugins/skai.py b/src/streamlink/plugins/skai.py\n--- a/src/streamlink/plugins/skai.py\n+++ b/src/streamlink/plugins/skai.py\n@@ -3,20 +3,15 @@\n from streamlink.plugin import Plugin\n from streamlink.plugin.api import validate\n \n-YOUTUBE_URL = \"https://www.youtube.com/wa...
735
400
gh_patches_debug_48579
rasdani/github-patches
git_diff
openai__gym-1730
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sampling Bug Gym Version: 0.15.3 issue: Box samples numbers above the `high` parameter. ``` from gym.spaces import Box observation_space = Box(low=-3, high=-1, shape=(9,), dtype='int') print(observatio...
diff --git a/gym/spaces/box.py b/gym/spaces/box.py --- a/gym/spaces/box.py +++ b/gym/spaces/box.py @@ -93,6 +93,8 @@ sample[bounded] = self.np_random.uniform(low=self.low[bounded], high=high[bounded], size=bounded[bounde...
{"golden_diff": "diff --git a/gym/spaces/box.py b/gym/spaces/box.py\n--- a/gym/spaces/box.py\n+++ b/gym/spaces/box.py\n@@ -93,6 +93,8 @@\n sample[bounded] = self.np_random.uniform(low=self.low[bounded], \n high=high[bounded],\n ...
1,774
112
gh_patches_debug_26366
rasdani/github-patches
git_diff
chainer__chainer-510
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- numerical_grad caution I was implementing a differentiable Transpose function. ``` class Transpose(Function): def forward(self, inputs): x = inputs[0] return x.transpose(), def backw...
diff --git a/chainer/gradient_check.py b/chainer/gradient_check.py --- a/chainer/gradient_check.py +++ b/chainer/gradient_check.py @@ -5,6 +5,11 @@ from chainer import utils +def _copy_arrays(xs): + xp = cuda.get_array_module(*xs) + return tuple(xp.copy(x) for x in xs) + + def numerical_grad_cpu(f, inputs, ...
{"golden_diff": "diff --git a/chainer/gradient_check.py b/chainer/gradient_check.py\n--- a/chainer/gradient_check.py\n+++ b/chainer/gradient_check.py\n@@ -5,6 +5,11 @@\n from chainer import utils\n \n \n+def _copy_arrays(xs):\n+ xp = cuda.get_array_module(*xs)\n+ return tuple(xp.copy(x) for x in xs)\n+\n+\n def n...
1,782
346
gh_patches_debug_6369
rasdani/github-patches
git_diff
ivy-llc__ivy-18211
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- selu #14951 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ivy/functional/frontends/mindspore/ops/functio...
diff --git a/ivy/functional/frontends/mindspore/ops/function/nn_func.py b/ivy/functional/frontends/mindspore/ops/function/nn_func.py --- a/ivy/functional/frontends/mindspore/ops/function/nn_func.py +++ b/ivy/functional/frontends/mindspore/ops/function/nn_func.py @@ -7,6 +7,12 @@ from ivy.functional.frontends.paddle.fu...
{"golden_diff": "diff --git a/ivy/functional/frontends/mindspore/ops/function/nn_func.py b/ivy/functional/frontends/mindspore/ops/function/nn_func.py\n--- a/ivy/functional/frontends/mindspore/ops/function/nn_func.py\n+++ b/ivy/functional/frontends/mindspore/ops/function/nn_func.py\n@@ -7,6 +7,12 @@\n from ivy.functiona...
428
211
gh_patches_debug_5837
rasdani/github-patches
git_diff
googleapis__google-api-python-client-1639
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- docs: 404 error while accessing contribution guide When I was trying to access the contribution guide mentioned in `CONTRIBUTING.rst`, I am getting 404 error - https://googleapis.github.io/google-api-python-c...
diff --git a/owlbot.py b/owlbot.py --- a/owlbot.py +++ b/owlbot.py @@ -35,6 +35,9 @@ # Move scripts folder needed for samples CI s.move(templated_files / 'scripts') +# Copy CONTRIBUTING.rst +s.move(templated_files / 'CONTRIBUTING.rst') + # ---------------------------------------------------------------------------...
{"golden_diff": "diff --git a/owlbot.py b/owlbot.py\n--- a/owlbot.py\n+++ b/owlbot.py\n@@ -35,6 +35,9 @@\n # Move scripts folder needed for samples CI\n s.move(templated_files / 'scripts')\n \n+# Copy CONTRIBUTING.rst\n+s.move(templated_files / 'CONTRIBUTING.rst')\n+\n # ------------------------------------------------...
830
87
gh_patches_debug_12483
rasdani/github-patches
git_diff
freedomofpress__securedrop-2929
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bump Ansible to 2.4 ## Description The current version of Ansible in the admin workstation uses PyCrypto==2.6.1 as a dependency, which is causing CI safety failures when checking the admin pip requirements...
diff --git a/install_files/ansible-base/callback_plugins/ansible_version_check.py b/install_files/ansible-base/callback_plugins/ansible_version_check.py --- a/install_files/ansible-base/callback_plugins/ansible_version_check.py +++ b/install_files/ansible-base/callback_plugins/ansible_version_check.py @@ -19,7 +19,7 @@...
{"golden_diff": "diff --git a/install_files/ansible-base/callback_plugins/ansible_version_check.py b/install_files/ansible-base/callback_plugins/ansible_version_check.py\n--- a/install_files/ansible-base/callback_plugins/ansible_version_check.py\n+++ b/install_files/ansible-base/callback_plugins/ansible_version_check.p...
729
185
gh_patches_debug_6736
rasdani/github-patches
git_diff
freqtrade__freqtrade-3490
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- I get the same profit / loss report in all time frames <!-- Have you searched for similar issues before posting it? Yes If you have discovered a bug in the bot, please [search our issue tracker](https://...
diff --git a/freqtrade/configuration/deprecated_settings.py b/freqtrade/configuration/deprecated_settings.py --- a/freqtrade/configuration/deprecated_settings.py +++ b/freqtrade/configuration/deprecated_settings.py @@ -72,4 +72,9 @@ "DEPRECATED: " "Please use 'timeframe' instead of 'ticker_int...
{"golden_diff": "diff --git a/freqtrade/configuration/deprecated_settings.py b/freqtrade/configuration/deprecated_settings.py\n--- a/freqtrade/configuration/deprecated_settings.py\n+++ b/freqtrade/configuration/deprecated_settings.py\n@@ -72,4 +72,9 @@\n \"DEPRECATED: \"\n \"Please use 'timefram...
1,575
140
gh_patches_debug_8822
rasdani/github-patches
git_diff
learningequality__kolibri-4588
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- <Improvement> Not showing user is exist notification on UI. ### Observed behavior We are able to create user using CREATE AN ACCOUNT option which is on login page of kolibri. But when someone uses existing...
diff --git a/kolibri/core/auth/serializers.py b/kolibri/core/auth/serializers.py --- a/kolibri/core/auth/serializers.py +++ b/kolibri/core/auth/serializers.py @@ -55,8 +55,10 @@ def validate_username(self, value): if FacilityUser.objects.filter(username__iexact=value).exists(): - raise serial...
{"golden_diff": "diff --git a/kolibri/core/auth/serializers.py b/kolibri/core/auth/serializers.py\n--- a/kolibri/core/auth/serializers.py\n+++ b/kolibri/core/auth/serializers.py\n@@ -55,8 +55,10 @@\n \n def validate_username(self, value):\n if FacilityUser.objects.filter(username__iexact=value).exists():\n-...
2,028
150
gh_patches_debug_14756
rasdani/github-patches
git_diff
translate__pootle-4277
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `sync_stores` doesn't handle disabled projects We addressed the similar issue for `update_stores` #4198. `sync_stores` should work for disabled projects as well https://github.com/translate/pootle/issues/4198...
diff --git a/pootle/apps/pootle_app/management/commands/sync_stores.py b/pootle/apps/pootle_app/management/commands/sync_stores.py --- a/pootle/apps/pootle_app/management/commands/sync_stores.py +++ b/pootle/apps/pootle_app/management/commands/sync_stores.py @@ -40,13 +40,15 @@ ), ) help = "Save new ...
{"golden_diff": "diff --git a/pootle/apps/pootle_app/management/commands/sync_stores.py b/pootle/apps/pootle_app/management/commands/sync_stores.py\n--- a/pootle/apps/pootle_app/management/commands/sync_stores.py\n+++ b/pootle/apps/pootle_app/management/commands/sync_stores.py\n@@ -40,13 +40,15 @@\n ),\n )\...
816
233
gh_patches_debug_16297
rasdani/github-patches
git_diff
spyder-ide__spyder-7300
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Debugging history saves both python commands and pdb commands <!--- **PLEASE READ:** When submitting here, please ensure you've completed the following checklist and checked the boxes to confirm. Issue report...
diff --git a/spyder/widgets/ipythonconsole/debugging.py b/spyder/widgets/ipythonconsole/debugging.py --- a/spyder/widgets/ipythonconsole/debugging.py +++ b/spyder/widgets/ipythonconsole/debugging.py @@ -10,6 +10,7 @@ """ import ast +import pdb import pickle from qtpy.QtCore import Qt @@ -86,7 +87,10 @@ ...
{"golden_diff": "diff --git a/spyder/widgets/ipythonconsole/debugging.py b/spyder/widgets/ipythonconsole/debugging.py\n--- a/spyder/widgets/ipythonconsole/debugging.py\n+++ b/spyder/widgets/ipythonconsole/debugging.py\n@@ -10,6 +10,7 @@\n \"\"\"\n \n import ast\n+import pdb\n import pickle\n \n from qtpy.QtCore import ...
1,835
214
gh_patches_debug_26800
rasdani/github-patches
git_diff
gammapy__gammapy-4657
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Models are lost in FluxProfileEstimator **Gammapy version** gammapy 1.0.1 **Bug description** All models attached to my datasets are discarded when I calculate a flux profile with `FluxProfileEstimator`....
diff --git a/gammapy/estimators/points/profile.py b/gammapy/estimators/points/profile.py --- a/gammapy/estimators/points/profile.py +++ b/gammapy/estimators/points/profile.py @@ -1,5 +1,6 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst """Tools to create profiles (i.e. 1D "slices" from 2D images)."...
{"golden_diff": "diff --git a/gammapy/estimators/points/profile.py b/gammapy/estimators/points/profile.py\n--- a/gammapy/estimators/points/profile.py\n+++ b/gammapy/estimators/points/profile.py\n@@ -1,5 +1,6 @@\n # Licensed under a 3-clause BSD style license - see LICENSE.rst\n \"\"\"Tools to create profiles (i.e. 1D \...
1,954
312
gh_patches_debug_3819
rasdani/github-patches
git_diff
liqd__a4-meinberlin-2395
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- single module project without timeline is missing any discription my single module project [https://meinberlin-dev.liqd.net/projects/schillerkasse-ihre-kiezkasse-fur-den-schillerkiez/](url) which is module Ki...
diff --git a/meinberlin/apps/contrib/mixins.py b/meinberlin/apps/contrib/mixins.py --- a/meinberlin/apps/contrib/mixins.py +++ b/meinberlin/apps/contrib/mixins.py @@ -156,7 +156,8 @@ except IndexError: pass try: - previous_module = cluster[idx - 1] + ...
{"golden_diff": "diff --git a/meinberlin/apps/contrib/mixins.py b/meinberlin/apps/contrib/mixins.py\n--- a/meinberlin/apps/contrib/mixins.py\n+++ b/meinberlin/apps/contrib/mixins.py\n@@ -156,7 +156,8 @@\n except IndexError:\n pass\n try:\n- previous_module = cluste...
1,980
126
gh_patches_debug_55161
rasdani/github-patches
git_diff
spack__spack-5031
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Adios2 missing zeromq dependency @ax3l : I did a normal build without specifying any variants Call Stack (most recent call first): ..../cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_...
diff --git a/var/spack/repos/builtin/packages/adios2/package.py b/var/spack/repos/builtin/packages/adios2/package.py --- a/var/spack/repos/builtin/packages/adios2/package.py +++ b/var/spack/repos/builtin/packages/adios2/package.py @@ -77,6 +77,7 @@ # depends_on('pybind11@2.1.1:', when='+python') depends_on(...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/adios2/package.py b/var/spack/repos/builtin/packages/adios2/package.py\n--- a/var/spack/repos/builtin/packages/adios2/package.py\n+++ b/var/spack/repos/builtin/packages/adios2/package.py\n@@ -77,6 +77,7 @@\n # depends_on('pybind11@2.1.1:', when='+python...
1,895
154
gh_patches_debug_40664
rasdani/github-patches
git_diff
medtagger__MedTagger-40
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add "radon" tool to the Backend and enable it in CI ## Expected Behavior Python code in backend should be validated by "radon" tool in CI. ## Actual Behavior MedTagger backend uses a few linters alre...
diff --git a/backend/scripts/migrate_hbase.py b/backend/scripts/migrate_hbase.py --- a/backend/scripts/migrate_hbase.py +++ b/backend/scripts/migrate_hbase.py @@ -11,6 +11,8 @@ import logging import logging.config +from starbase import Table + from medtagger.clients.hbase_client import HBaseClient from utils impo...
{"golden_diff": "diff --git a/backend/scripts/migrate_hbase.py b/backend/scripts/migrate_hbase.py\n--- a/backend/scripts/migrate_hbase.py\n+++ b/backend/scripts/migrate_hbase.py\n@@ -11,6 +11,8 @@\n import logging\n import logging.config\n \n+from starbase import Table\n+\n from medtagger.clients.hbase_client import HB...
926
964
gh_patches_debug_1836
rasdani/github-patches
git_diff
Nitrate__Nitrate-337
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Upgrade django-tinymce to 2.7.0 As per subject. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `setup.py` C...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ 'beautifulsoup4 >= 4.1.1', 'celery == 4.1.0', 'django-contrib-comments == 1.8.0', - 'django-tinymce == 2.6.0', + 'django-tinymce == 2.7.0', 'django-uuslug == 1.1.8', 'django >= 1.10,<2.0', 'html2text',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -17,7 +17,7 @@\n 'beautifulsoup4 >= 4.1.1',\n 'celery == 4.1.0',\n 'django-contrib-comments == 1.8.0',\n- 'django-tinymce == 2.6.0',\n+ 'django-tinymce == 2.7.0',\n 'django-uuslug == 1.1.8',\n 'django >= 1.10...
1,071
134
gh_patches_debug_58946
rasdani/github-patches
git_diff
ivy-llc__ivy-13797
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- diagflat --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ivy/functional/frontends/numpy/creation_routines/...
diff --git a/ivy/functional/frontends/numpy/creation_routines/building_matrices.py b/ivy/functional/frontends/numpy/creation_routines/building_matrices.py --- a/ivy/functional/frontends/numpy/creation_routines/building_matrices.py +++ b/ivy/functional/frontends/numpy/creation_routines/building_matrices.py @@ -36,3 +36,...
{"golden_diff": "diff --git a/ivy/functional/frontends/numpy/creation_routines/building_matrices.py b/ivy/functional/frontends/numpy/creation_routines/building_matrices.py\n--- a/ivy/functional/frontends/numpy/creation_routines/building_matrices.py\n+++ b/ivy/functional/frontends/numpy/creation_routines/building_matric...
615
198
gh_patches_debug_23782
rasdani/github-patches
git_diff
Textualize__rich-273
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] '#' sign is treated as the end of a URL **Describe the bug** The `#` a valid element of the URL, but Rich seems to ignore it and treats it as the end of it. Consider this URL: https://github.com/will...
diff --git a/rich/highlighter.py b/rich/highlighter.py --- a/rich/highlighter.py +++ b/rich/highlighter.py @@ -79,7 +79,7 @@ r"(?P<number>0x[0-9a-f]*)", r"(?P<path>\B(\/[\w\.\-\_\+]+)*\/)(?P<filename>[\w\.\-\_\+]*)?", r"(?<!\\)(?P<str>b?\'\'\'.*?(?<!\\)\'\'\'|b?\'.*?(?<!\\)\'|b?\"\"\".*?(?<!\...
{"golden_diff": "diff --git a/rich/highlighter.py b/rich/highlighter.py\n--- a/rich/highlighter.py\n+++ b/rich/highlighter.py\n@@ -79,7 +79,7 @@\n r\"(?P<number>0x[0-9a-f]*)\",\n r\"(?P<path>\\B(\\/[\\w\\.\\-\\_\\+]+)*\\/)(?P<filename>[\\w\\.\\-\\_\\+]*)?\",\n r\"(?<!\\\\)(?P<str>b?\\'\\'\\'.*?(...
1,732
431
gh_patches_debug_480
rasdani/github-patches
git_diff
google__flax-2136
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Flax actually requires jax 0.3.2 https://github.com/google/flax/blob/ef6bf4054c30271a58bfabb58f3d0049ef5d851a/flax/linen/initializers.py#L19 the constant initialiser was added in this commit https://github...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ install_requires = [ "numpy>=1.12", - "jax>=0.3", + "jax>=0.3.2", "matplotlib", # only needed for tensorboard export "msgpack", "optax",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -26,7 +26,7 @@\n \n install_requires = [\n \"numpy>=1.12\",\n- \"jax>=0.3\",\n+ \"jax>=0.3.2\",\n \"matplotlib\", # only needed for tensorboard export\n \"msgpack\",\n \"optax\",\n", "issue": "Flax actually requ...
1,248
89
gh_patches_debug_1736
rasdani/github-patches
git_diff
pyqtgraph__pyqtgraph-1045
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PlotWidget.__getattr__ raises wrong exception type - but this has a simple fix `hasattr(widget, "some_non_existing_attribute")` raises `NameError` instead of returning `False` for instances of `PlotWidget`. I...
diff --git a/pyqtgraph/graphicsWindows.py b/pyqtgraph/graphicsWindows.py --- a/pyqtgraph/graphicsWindows.py +++ b/pyqtgraph/graphicsWindows.py @@ -45,10 +45,7 @@ self.show() def __getattr__(self, attr): - if hasattr(self.cw, attr): - return getattr(self.cw, attr) - else:...
{"golden_diff": "diff --git a/pyqtgraph/graphicsWindows.py b/pyqtgraph/graphicsWindows.py\n--- a/pyqtgraph/graphicsWindows.py\n+++ b/pyqtgraph/graphicsWindows.py\n@@ -45,10 +45,7 @@\n self.show()\n \n def __getattr__(self, attr):\n- if hasattr(self.cw, attr):\n- return getattr(self...
1,207
117
gh_patches_debug_10360
rasdani/github-patches
git_diff
ckan__ckan-624
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tag pages still use old templates /tag --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ckan/controllers/ta...
diff --git a/ckan/controllers/tag.py b/ckan/controllers/tag.py --- a/ckan/controllers/tag.py +++ b/ckan/controllers/tag.py @@ -1,5 +1,5 @@ from pylons.i18n import _ -from pylons import request, c +from pylons import request, c, config import ckan.logic as logic import ckan.model as model @@ -65,4 +65,7 @@ ...
{"golden_diff": "diff --git a/ckan/controllers/tag.py b/ckan/controllers/tag.py\n--- a/ckan/controllers/tag.py\n+++ b/ckan/controllers/tag.py\n@@ -1,5 +1,5 @@\n from pylons.i18n import _\n-from pylons import request, c\n+from pylons import request, c, config\n \n import ckan.logic as logic\n import ckan.model as model\...
871
180
gh_patches_debug_11659
rasdani/github-patches
git_diff
gratipay__gratipay.com-4464
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NPM sync is broken https://gratipay.slack.com/archives/C36LJJF9V/p1494580201702422 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. ---...
diff --git a/gratipay/sync_npm.py b/gratipay/sync_npm.py --- a/gratipay/sync_npm.py +++ b/gratipay/sync_npm.py @@ -52,7 +52,11 @@ # Decide what to do. if change.get('deleted'): package = Package.from_names(NPM, change['id']) - assert package is not None # right...
{"golden_diff": "diff --git a/gratipay/sync_npm.py b/gratipay/sync_npm.py\n--- a/gratipay/sync_npm.py\n+++ b/gratipay/sync_npm.py\n@@ -52,7 +52,11 @@\n # Decide what to do.\n if change.get('deleted'):\n package = Package.from_names(NPM, change['id'])\n- assert pack...
1,044
171
gh_patches_debug_26298
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-3326
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider wsp is broken During the global build at 2021-09-01-14-42-16, spider **wsp** failed with **0 features** and **0 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-09-01-14-42-16/logs/w...
diff --git a/locations/spiders/wsp.py b/locations/spiders/wsp.py --- a/locations/spiders/wsp.py +++ b/locations/spiders/wsp.py @@ -9,7 +9,7 @@ item_attributes = {'brand': "wsp"} allowed_domains = ["www.wsp.com"] start_urls = ( - 'https://www.wsp.com', + 'https://www.wsp.com/', ) ...
{"golden_diff": "diff --git a/locations/spiders/wsp.py b/locations/spiders/wsp.py\n--- a/locations/spiders/wsp.py\n+++ b/locations/spiders/wsp.py\n@@ -9,7 +9,7 @@\n item_attributes = {'brand': \"wsp\"}\n allowed_domains = [\"www.wsp.com\"]\n start_urls = (\n- 'https://www.wsp.com',\n+ 'https:/...
816
293
gh_patches_debug_10115
rasdani/github-patches
git_diff
Qiskit__qiskit-11782
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Round durations in `GenericBackendV2` <!-- ⚠️ If you do not respect this template, your pull request will be closed. ⚠️ Your pull request title should be short detailed and understandable for all. ⚠️ Also,...
diff --git a/qiskit/circuit/duration.py b/qiskit/circuit/duration.py --- a/qiskit/circuit/duration.py +++ b/qiskit/circuit/duration.py @@ -78,8 +78,15 @@ operation.duration = duration_in_dt(duration, dt_in_sec) operation.unit = "dt" - if circ.duration is not None: - circ.duration = duratio...
{"golden_diff": "diff --git a/qiskit/circuit/duration.py b/qiskit/circuit/duration.py\n--- a/qiskit/circuit/duration.py\n+++ b/qiskit/circuit/duration.py\n@@ -78,8 +78,15 @@\n operation.duration = duration_in_dt(duration, dt_in_sec)\n operation.unit = \"dt\"\n \n- if circ.duration is not None:\n- ...
1,718
200
gh_patches_debug_7618
rasdani/github-patches
git_diff
localstack__localstack-8398
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unable to change ContentBasedDeduplication attribute on existing queue ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior If I create a queue and ...
diff --git a/localstack/services/sqs/constants.py b/localstack/services/sqs/constants.py --- a/localstack/services/sqs/constants.py +++ b/localstack/services/sqs/constants.py @@ -26,7 +26,6 @@ QueueAttributeName.ApproximateNumberOfMessages, QueueAttributeName.ApproximateNumberOfMessagesDelayed, QueueAttr...
{"golden_diff": "diff --git a/localstack/services/sqs/constants.py b/localstack/services/sqs/constants.py\n--- a/localstack/services/sqs/constants.py\n+++ b/localstack/services/sqs/constants.py\n@@ -26,7 +26,6 @@\n QueueAttributeName.ApproximateNumberOfMessages,\n QueueAttributeName.ApproximateNumberOfMessagesD...
1,309
112
gh_patches_debug_37151
rasdani/github-patches
git_diff
conan-io__conan-10960
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [bug] version is not set correctly when using layout When layout is being used, recipe version is not set correctly somehow using json generator, it seems that version is not being fetched from package metada...
diff --git a/conans/client/generators/json_generator.py b/conans/client/generators/json_generator.py --- a/conans/client/generators/json_generator.py +++ b/conans/client/generators/json_generator.py @@ -3,26 +3,6 @@ from conans.model import Generator -def serialize_cpp_info(cpp_info): - keys = [ - "versi...
{"golden_diff": "diff --git a/conans/client/generators/json_generator.py b/conans/client/generators/json_generator.py\n--- a/conans/client/generators/json_generator.py\n+++ b/conans/client/generators/json_generator.py\n@@ -3,26 +3,6 @@\n from conans.model import Generator\n \n \n-def serialize_cpp_info(cpp_info):\n- ...
1,253
704
gh_patches_debug_28718
rasdani/github-patches
git_diff
napari__napari-3613
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Adding 0 and 1 coords if missed in colormap # Description <!-- What does this pull request (PR) do? Why is it necessary? --> <!-- Tell us about your new feature, improvement, or fix! --> <!-- If your chang...
diff --git a/napari/utils/colormaps/colormap.py b/napari/utils/colormaps/colormap.py --- a/napari/utils/colormaps/colormap.py +++ b/napari/utils/colormaps/colormap.py @@ -67,11 +67,44 @@ # controls validator must be called even if None for correct initialization @validator('controls', pre=True, always=True) ...
{"golden_diff": "diff --git a/napari/utils/colormaps/colormap.py b/napari/utils/colormaps/colormap.py\n--- a/napari/utils/colormaps/colormap.py\n+++ b/napari/utils/colormaps/colormap.py\n@@ -67,11 +67,44 @@\n # controls validator must be called even if None for correct initialization\n @validator('controls', pr...
1,836
438
gh_patches_debug_2718
rasdani/github-patches
git_diff
pyload__pyload-1733
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- HOOK LinkdecrypterCom: 'LinkdecrypterComHook' object has no attribute 'COOKIES' 03.08.2015 20:46:43 INFO Free space: 6.48 TiB 630 03.08.2015 20:46:43 INFO Activating Accounts... 631 03.08.2015 20:46:43...
diff --git a/module/plugins/hooks/LinkdecrypterComHook.py b/module/plugins/hooks/LinkdecrypterComHook.py --- a/module/plugins/hooks/LinkdecrypterComHook.py +++ b/module/plugins/hooks/LinkdecrypterComHook.py @@ -21,6 +21,7 @@ __license__ = "GPLv3" __authors__ = [("Walter Purcaro", "vuolter@gmail.com")]...
{"golden_diff": "diff --git a/module/plugins/hooks/LinkdecrypterComHook.py b/module/plugins/hooks/LinkdecrypterComHook.py\n--- a/module/plugins/hooks/LinkdecrypterComHook.py\n+++ b/module/plugins/hooks/LinkdecrypterComHook.py\n@@ -21,6 +21,7 @@\n __license__ = \"GPLv3\"\n __authors__ = [(\"Walter Purcar...
1,353
137
gh_patches_debug_65083
rasdani/github-patches
git_diff
cupy__cupy-5857
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Drop support for NumPy 1.17 in v10 (NEP 29) CuPy should drop support for these legacy versions, following [NEP 29](https://numpy.org/neps/nep-0029-deprecation_policy.html#support-table). --- END ISSUE --- B...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ 'fastrlock>=0.5', ] install_requires = [ - 'numpy>=1.17,<1.24', # see #4773 + 'numpy>=1.18,<1.24', # see #4773 'fastrlock>=0.5', ] extras_require = {
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -23,7 +23,7 @@\n 'fastrlock>=0.5',\n ]\n install_requires = [\n- 'numpy>=1.17,<1.24', # see #4773\n+ 'numpy>=1.18,<1.24', # see #4773\n 'fastrlock>=0.5',\n ]\n extras_require = {\n", "issue": "Drop support for NumPy 1....
1,813
110