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_39662
rasdani/github-patches
git_diff
jupyterhub__zero-to-jupyterhub-k8s-531
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- culler is failing and exiting when culling users and servers are slow to stop Two issues: 1. culler script seems to exit when the cull request fails. It's unclear why this happens, but we should confirm an...
diff --git a/images/hub/cull_idle_servers.py b/images/hub/cull_idle_servers.py --- a/images/hub/cull_idle_servers.py +++ b/images/hub/cull_idle_servers.py @@ -70,7 +70,15 @@ method='DELETE', headers=auth_header, ) - yield client.fetch(req) + resp = yi...
{"golden_diff": "diff --git a/images/hub/cull_idle_servers.py b/images/hub/cull_idle_servers.py\n--- a/images/hub/cull_idle_servers.py\n+++ b/images/hub/cull_idle_servers.py\n@@ -70,7 +70,15 @@\n method='DELETE',\n headers=auth_header,\n )\n- yield client.fetch(req...
1,716
647
gh_patches_debug_19230
rasdani/github-patches
git_diff
google__clusterfuzz-863
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fuzzers page does not work well with large number of jobs For libFuzzer, if we have a lot of existing jobs (>100) and want to add a new job and associate it. Submit button feels stuck, does not show updates, ...
diff --git a/src/python/fuzzing/fuzzer_selection.py b/src/python/fuzzing/fuzzer_selection.py --- a/src/python/fuzzing/fuzzer_selection.py +++ b/src/python/fuzzing/fuzzer_selection.py @@ -37,20 +37,20 @@ entities = ndb_utils.get_all_from_query(query) old_mappings = {} for entity in entities: - old_mappings[(...
{"golden_diff": "diff --git a/src/python/fuzzing/fuzzer_selection.py b/src/python/fuzzing/fuzzer_selection.py\n--- a/src/python/fuzzing/fuzzer_selection.py\n+++ b/src/python/fuzzing/fuzzer_selection.py\n@@ -37,20 +37,20 @@\n entities = ndb_utils.get_all_from_query(query)\n old_mappings = {}\n for entity in entiti...
1,537
248
gh_patches_debug_20320
rasdani/github-patches
git_diff
praw-dev__praw-1104
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Replying to comments in quarantined subreddits returns an empty object I have a bot that fetches comment ids from pushshift, then does some work and replies to the comment. If the comment is in a quarantined ...
diff --git a/praw/models/reddit/mixins/replyable.py b/praw/models/reddit/mixins/replyable.py --- a/praw/models/reddit/mixins/replyable.py +++ b/praw/models/reddit/mixins/replyable.py @@ -9,7 +9,14 @@ """Reply to the object. :param body: The markdown formatted content for a comment. - :returns...
{"golden_diff": "diff --git a/praw/models/reddit/mixins/replyable.py b/praw/models/reddit/mixins/replyable.py\n--- a/praw/models/reddit/mixins/replyable.py\n+++ b/praw/models/reddit/mixins/replyable.py\n@@ -9,7 +9,14 @@\n \"\"\"Reply to the object.\n \n :param body: The markdown formatted content for a ...
694
313
gh_patches_debug_22216
rasdani/github-patches
git_diff
spacetelescope__jwql-483
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Simplify conda environments Since `conda` will automatically determine which libraries are needed for dependencies (e.g. `numpy_base` is installed when installing `numpy`), we could probably use to trim down...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -4,21 +4,26 @@ VERSION = '0.21.0' -AUTHORS = 'Matthew Bourque, Lauren Chambers, Misty Cracraft, Joe Filippazzo, Bryan Hilbert, ' -AUTHORS += 'Graham Kanarek, Catherine Martlin, Johannes Sahlmann' +AUTHORS = 'Matthew Bourque, Misty Cracraft, Joe Fili...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -4,21 +4,26 @@\n \n VERSION = '0.21.0'\n \n-AUTHORS = 'Matthew Bourque, Lauren Chambers, Misty Cracraft, Joe Filippazzo, Bryan Hilbert, '\n-AUTHORS += 'Graham Kanarek, Catherine Martlin, Johannes Sahlmann'\n+AUTHORS = 'Matthew Bourque...
766
391
gh_patches_debug_26912
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-361
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Refactor technical feedback The current implementation of technical feedback does not comply with the way it is used in the apps when submitting feedback. Instead of having one model for technical feedback, w...
diff --git a/src/cms/models/__init__.py b/src/cms/models/__init__.py --- a/src/cms/models/__init__.py +++ b/src/cms/models/__init__.py @@ -13,7 +13,6 @@ from .feedback.page_feedback import PageFeedback from .feedback.region_feedback import RegionFeedback from .feedback.search_result_feedback import SearchResultFeedb...
{"golden_diff": "diff --git a/src/cms/models/__init__.py b/src/cms/models/__init__.py\n--- a/src/cms/models/__init__.py\n+++ b/src/cms/models/__init__.py\n@@ -13,7 +13,6 @@\n from .feedback.page_feedback import PageFeedback\n from .feedback.region_feedback import RegionFeedback\n from .feedback.search_result_feedback i...
1,007
394
gh_patches_debug_7917
rasdani/github-patches
git_diff
bokeh__bokeh-6159
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- For Interactive Legends, a note about `muted_color` would be helpful For the [Interactive Legend guide](https://github.com/bokeh/bokeh/blob/d8fcffa1c472bf641517ef81698bb6d057cbd30f/sphinx/source/docs/user_gui...
diff --git a/sphinx/source/docs/user_guide/examples/interaction_legend_mute.py b/sphinx/source/docs/user_guide/examples/interaction_legend_mute.py --- a/sphinx/source/docs/user_guide/examples/interaction_legend_mute.py +++ b/sphinx/source/docs/user_guide/examples/interaction_legend_mute.py @@ -11,7 +11,8 @@ "h...
{"golden_diff": "diff --git a/sphinx/source/docs/user_guide/examples/interaction_legend_mute.py b/sphinx/source/docs/user_guide/examples/interaction_legend_mute.py\n--- a/sphinx/source/docs/user_guide/examples/interaction_legend_mute.py\n+++ b/sphinx/source/docs/user_guide/examples/interaction_legend_mute.py\n@@ -11,7 ...
632
223
gh_patches_debug_13930
rasdani/github-patches
git_diff
microsoft__ptvsd-1425
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- python without debugging won't start if there is a breakpoint @tmdag commented on [Thu May 02 2019](https://github.com/microsoft/vscode-python/issues/5540) ## Environment data - VSCode Version: 1.33.1 - OS...
diff --git a/src/ptvsd/runner.py b/src/ptvsd/runner.py --- a/src/ptvsd/runner.py +++ b/src/ptvsd/runner.py @@ -39,6 +39,19 @@ class SESSION(DebugSession): class MESSAGE_PROCESSOR(VSCLifecycleMsgProcessor): + + def on_setBreakpoints(self, request, args): + # Note: breakpoints is...
{"golden_diff": "diff --git a/src/ptvsd/runner.py b/src/ptvsd/runner.py\n--- a/src/ptvsd/runner.py\n+++ b/src/ptvsd/runner.py\n@@ -39,6 +39,19 @@\n \n class SESSION(DebugSession):\n class MESSAGE_PROCESSOR(VSCLifecycleMsgProcessor):\n+\n+ def on_setBreakpoints(self, request, args):\n+ ...
1,440
201
gh_patches_debug_41696
rasdani/github-patches
git_diff
carpentries__amy-475
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Admin commands broken Please check all the admin commands (use `make` on its own to get a list): ``` $ make airports /Users/gvwilson/anaconda/envs/py3k/lib/python3.3/site-packages/crispy_forms/utils.py:25: ...
diff --git a/api/views.py b/api/views.py --- a/api/views.py +++ b/api/views.py @@ -26,45 +26,31 @@ }) -class ExportBadgesView(APIView): +class ExportBadgesView(ListAPIView): """List all badges and people who have them.""" permission_classes = (IsAuthenticatedOrReadOnly, ) + paginator = None #...
{"golden_diff": "diff --git a/api/views.py b/api/views.py\n--- a/api/views.py\n+++ b/api/views.py\n@@ -26,45 +26,31 @@\n })\n \n \n-class ExportBadgesView(APIView):\n+class ExportBadgesView(ListAPIView):\n \"\"\"List all badges and people who have them.\"\"\"\n permission_classes = (IsAuthenticatedOrRea...
1,798
954
gh_patches_debug_13993
rasdani/github-patches
git_diff
google__flax-1324
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: module 'flax.linen' has no attribute 'merge_param' [This guide](https://flax.readthedocs.io/en/latest/design_notes/arguments.html) suggests using `nn.merge_param` to combine arguments, but `me...
diff --git a/flax/linen/__init__.py b/flax/linen/__init__.py --- a/flax/linen/__init__.py +++ b/flax/linen/__init__.py @@ -25,7 +25,8 @@ make_causal_mask, combine_masks) from ..core import broadcast, DenyList from .linear import Conv, ConvTranspose, Dense, DenseGeneral, Embed -from .module im...
{"golden_diff": "diff --git a/flax/linen/__init__.py b/flax/linen/__init__.py\n--- a/flax/linen/__init__.py\n+++ b/flax/linen/__init__.py\n@@ -25,7 +25,8 @@\n make_causal_mask, combine_masks)\n from ..core import broadcast, DenyList\n from .linear import Conv, ConvTranspose, Dense, DenseGeneral,...
860
201
gh_patches_debug_28915
rasdani/github-patches
git_diff
ckan__ckan-6797
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support for pdb and debuggers ### Proposed fixes: It is now possible to debug ckan with pdb/ipdb/PyCharm debugger and others, both outside Docker and inside Docker. I just exposed a `werkzeug` option to t...
diff --git a/ckan/cli/server.py b/ckan/cli/server.py --- a/ckan/cli/server.py +++ b/ckan/cli/server.py @@ -19,6 +19,8 @@ @click.option(u"-p", u"--port", help=u"Port number") @click.option(u"-r", u"--disable-reloader", is_flag=True, help=u"Disable reloader") +@click.option(u"-E", u"--passthrough-errors"...
{"golden_diff": "diff --git a/ckan/cli/server.py b/ckan/cli/server.py\n--- a/ckan/cli/server.py\n+++ b/ckan/cli/server.py\n@@ -19,6 +19,8 @@\n @click.option(u\"-p\", u\"--port\", help=u\"Port number\")\n @click.option(u\"-r\", u\"--disable-reloader\", is_flag=True,\n help=u\"Disable reloader\")\n+@click.o...
2,004
385
gh_patches_debug_19296
rasdani/github-patches
git_diff
scikit-hep__pyhf-1673
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pass `Accept` header in `contrib.utils.download` I'm copying a comment here that I made in the [HEPData Zulip chat](https://hepdata.zulipchat.com/#narrow/stream/226203-pyhf/topic/DOIs/near/213610306) on 16th ...
diff --git a/src/pyhf/contrib/utils.py b/src/pyhf/contrib/utils.py --- a/src/pyhf/contrib/utils.py +++ b/src/pyhf/contrib/utils.py @@ -53,7 +53,18 @@ + "To download an archive from this host use the --force option." ) - with requests.get(archive_url) as response: + ...
{"golden_diff": "diff --git a/src/pyhf/contrib/utils.py b/src/pyhf/contrib/utils.py\n--- a/src/pyhf/contrib/utils.py\n+++ b/src/pyhf/contrib/utils.py\n@@ -53,7 +53,18 @@\n + \"To download an archive from this host use the --force option.\"\n )\n \n- with requests.get(archive_u...
1,412
280
gh_patches_debug_50213
rasdani/github-patches
git_diff
pex-tool__pex-1590
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.64 On the docket: + [x] Pex does not support mac universal2 wheels #1587 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bug...
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.63" +__version__ = "2.1.64"
{"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.63\"\n+__version__ = \"2.1.64\"\n", "...
342
96
gh_patches_debug_8532
rasdani/github-patches
git_diff
akvo__akvo-rsr-2994
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Custom reports removed from 'Reports' general view Remove custom reports from 'Reports' general view, i.e. Plan Finland or EUTF reports are not visible for other partners. ![custom reports included](http...
diff --git a/akvo/rest/views/report.py b/akvo/rest/views/report.py --- a/akvo/rest/views/report.py +++ b/akvo/rest/views/report.py @@ -23,8 +23,9 @@ reports = Report.objects.all() if not is_admin: # Show only those reports that the user is allowed to see + approved_orgs = user.approved_organis...
{"golden_diff": "diff --git a/akvo/rest/views/report.py b/akvo/rest/views/report.py\n--- a/akvo/rest/views/report.py\n+++ b/akvo/rest/views/report.py\n@@ -23,8 +23,9 @@\n reports = Report.objects.all()\n if not is_admin:\n # Show only those reports that the user is allowed to see\n+ approved_orgs...
781
166
gh_patches_debug_11850
rasdani/github-patches
git_diff
cobbler__cobbler-3397
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Backport] GHSA-mcg6-h362-cmq5 ### Original feature issue - Advisory: https://github.com/advisories/GHSA-mcg6-h362-cmq5 ### Target release - [ ] release33 - [x] release32 - [ ] release30 ### Rea...
diff --git a/cobbler/modules/authentication/pam.py b/cobbler/modules/authentication/pam.py --- a/cobbler/modules/authentication/pam.py +++ b/cobbler/modules/authentication/pam.py @@ -114,6 +114,10 @@ PAM_AUTHENTICATE.restype = c_int PAM_AUTHENTICATE.argtypes = [PamHandle, c_int] +PAM_ACCT_MGMT = LIBPAM.pam_acct_mgm...
{"golden_diff": "diff --git a/cobbler/modules/authentication/pam.py b/cobbler/modules/authentication/pam.py\n--- a/cobbler/modules/authentication/pam.py\n+++ b/cobbler/modules/authentication/pam.py\n@@ -114,6 +114,10 @@\n PAM_AUTHENTICATE.restype = c_int\n PAM_AUTHENTICATE.argtypes = [PamHandle, c_int]\n \n+PAM_ACCT_MG...
2,016
218
gh_patches_debug_44788
rasdani/github-patches
git_diff
aws__aws-cli-2537
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reading/writing EMR key_pair_file configuration options behaves oddly Version: ``` $ aws --version aws-cli/1.11.75 Python/2.7.10 Darwin/15.6.0 botocore/1.5.38 ``` [It's suggested that one can set a d...
diff --git a/awscli/customizations/configure/get.py b/awscli/customizations/configure/get.py --- a/awscli/customizations/configure/get.py +++ b/awscli/customizations/configure/get.py @@ -11,17 +11,21 @@ # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limita...
{"golden_diff": "diff --git a/awscli/customizations/configure/get.py b/awscli/customizations/configure/get.py\n--- a/awscli/customizations/configure/get.py\n+++ b/awscli/customizations/configure/get.py\n@@ -11,17 +11,21 @@\n # ANY KIND, either express or implied. See the License for the specific\n # language governing ...
1,619
974
gh_patches_debug_30466
rasdani/github-patches
git_diff
vaexio__vaex-1150
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG-REPORT] TypeError: can't pickle vaex.superutils.ordered_set **Description** If I use `df.func.where` with `isin`, I can't pickle the resulted state. This is for machine learning pipelines. reproduc...
diff --git a/packages/vaex-core/vaex/hash.py b/packages/vaex-core/vaex/hash.py --- a/packages/vaex-core/vaex/hash.py +++ b/packages/vaex-core/vaex/hash.py @@ -1,12 +1,19 @@ import os +import copyreg on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if not on_rtd: from .superutils import * from . i...
{"golden_diff": "diff --git a/packages/vaex-core/vaex/hash.py b/packages/vaex-core/vaex/hash.py\n--- a/packages/vaex-core/vaex/hash.py\n+++ b/packages/vaex-core/vaex/hash.py\n@@ -1,12 +1,19 @@\n import os\n+import copyreg\n \n \n on_rtd = os.environ.get('READTHEDOCS', None) == 'True'\n if not on_rtd:\n from .superu...
932
381
gh_patches_debug_15466
rasdani/github-patches
git_diff
google__turbinia-811
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DockerContainersEnumerationTask JSON decode failure ``` DockerContainersEnumerationTask Task failed with exception: [Expecting value: line 1 column 1 (char 0)] Traceback (most recent call last): File "/u...
diff --git a/turbinia/workers/docker.py b/turbinia/workers/docker.py --- a/turbinia/workers/docker.py +++ b/turbinia/workers/docker.py @@ -75,14 +75,14 @@ try: json_string = subprocess.check_output(docker_explorer_command).decode( 'utf-8') + containers_info = json.loads(json_string) exc...
{"golden_diff": "diff --git a/turbinia/workers/docker.py b/turbinia/workers/docker.py\n--- a/turbinia/workers/docker.py\n+++ b/turbinia/workers/docker.py\n@@ -75,14 +75,14 @@\n try:\n json_string = subprocess.check_output(docker_explorer_command).decode(\n 'utf-8')\n+ containers_info = json.loa...
1,910
214
gh_patches_debug_12726
rasdani/github-patches
git_diff
enthought__chaco-678
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove chaco.chaco_version file https://github.com/enthought/chaco/blob/fdd858aa6dbc76addb50d011fb81e879ce8e0355/chaco/chaco_version.py We now create `chaco._version` file when installing the package (in `...
diff --git a/chaco/chaco_version.py b/chaco/chaco_version.py deleted file mode 100644 --- a/chaco/chaco_version.py +++ /dev/null @@ -1,25 +0,0 @@ -# ------------------------------------------------------------------------------ -# Copyright (c) 2005, Enthought, Inc. -# All rights reserved. -# -# This software is provid...
{"golden_diff": "diff --git a/chaco/chaco_version.py b/chaco/chaco_version.py\ndeleted file mode 100644\n--- a/chaco/chaco_version.py\n+++ /dev/null\n@@ -1,25 +0,0 @@\n-# ------------------------------------------------------------------------------\n-# Copyright (c) 2005, Enthought, Inc.\n-# All rights reserved.\n-#\n...
569
245
gh_patches_debug_41891
rasdani/github-patches
git_diff
streamlink__streamlink-2134
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Huomao plugin not work <!-- 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/stre...
diff --git a/src/streamlink/plugins/huomao.py b/src/streamlink/plugins/huomao.py --- a/src/streamlink/plugins/huomao.py +++ b/src/streamlink/plugins/huomao.py @@ -4,8 +4,8 @@ scraping the HTML and JS of one of Huomaos mobile webpages. When viewing a stream on huomao.com, the base URL references a room_id. This -roo...
{"golden_diff": "diff --git a/src/streamlink/plugins/huomao.py b/src/streamlink/plugins/huomao.py\n--- a/src/streamlink/plugins/huomao.py\n+++ b/src/streamlink/plugins/huomao.py\n@@ -4,8 +4,8 @@\n scraping the HTML and JS of one of Huomaos mobile webpages.\n \n When viewing a stream on huomao.com, the base URL referenc...
1,741
889
gh_patches_debug_6455
rasdani/github-patches
git_diff
voicepaw__so-vits-svc-fork-354
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- UnpicklingError: Weights only load failed. Unpickler error: Unsupported class numpy.core.multiarray._reconstruct **Describe the bug** I tried to update, but I got this exception start from version 3.6.0 duri...
diff --git a/src/so_vits_svc_fork/cluster/__init__.py b/src/so_vits_svc_fork/cluster/__init__.py --- a/src/so_vits_svc_fork/cluster/__init__.py +++ b/src/so_vits_svc_fork/cluster/__init__.py @@ -9,7 +9,9 @@ def get_cluster_model(ckpt_path: Path | str): with Path(ckpt_path).open("rb") as f: - checkpoint =...
{"golden_diff": "diff --git a/src/so_vits_svc_fork/cluster/__init__.py b/src/so_vits_svc_fork/cluster/__init__.py\n--- a/src/so_vits_svc_fork/cluster/__init__.py\n+++ b/src/so_vits_svc_fork/cluster/__init__.py\n@@ -9,7 +9,9 @@\n \n def get_cluster_model(ckpt_path: Path | str):\n with Path(ckpt_path).open(\"rb\") as...
919
179
gh_patches_debug_7476
rasdani/github-patches
git_diff
Mailu__Mailu-1084
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Setup error for incorrect docker network subnet When entering an incorrect docker subnet (e.g. 172.168.0.1/16) the setup throws a 500 error -- without any reasons being given. If you run locally, the erro...
diff --git a/setup/server.py b/setup/server.py --- a/setup/server.py +++ b/setup/server.py @@ -91,7 +91,7 @@ data = flask.request.form.copy() data['uid'] = str(uuid.uuid4()) try: - data['dns'] = str(ipaddress.IPv4Network(data['subnet'])[-2]) + data['dns'] = str(ipaddress...
{"golden_diff": "diff --git a/setup/server.py b/setup/server.py\n--- a/setup/server.py\n+++ b/setup/server.py\n@@ -91,7 +91,7 @@\n data = flask.request.form.copy()\n data['uid'] = str(uuid.uuid4())\n try:\n- data['dns'] = str(ipaddress.IPv4Network(data['subnet'])[-2])\n+ da...
1,664
132
gh_patches_debug_23312
rasdani/github-patches
git_diff
ephios-dev__ephios-338
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Format event description As a planner, I want to be able to format the event description. This should at least mean that links will be formatted so that they are clickable. Maybe this should mean that the des...
diff --git a/ephios/extra/templatetags/rich_text.py b/ephios/extra/templatetags/rich_text.py --- a/ephios/extra/templatetags/rich_text.py +++ b/ephios/extra/templatetags/rich_text.py @@ -53,22 +53,28 @@ ALLOWED_PROTOCOLS = ["http", "https", "mailto", "tel"] -def markdown_compile(source): +def markdown_compile(sour...
{"golden_diff": "diff --git a/ephios/extra/templatetags/rich_text.py b/ephios/extra/templatetags/rich_text.py\n--- a/ephios/extra/templatetags/rich_text.py\n+++ b/ephios/extra/templatetags/rich_text.py\n@@ -53,22 +53,28 @@\n ALLOWED_PROTOCOLS = [\"http\", \"https\", \"mailto\", \"tel\"]\n \n \n-def markdown_compile(sou...
839
314
gh_patches_debug_30302
rasdani/github-patches
git_diff
wagtail__wagtail-10860
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Please add a progress bar to "wagtail_update_image_renditions" management command I love this new management command to regenerate all image renditions `wagtail_update_image_renditions`. But often the website...
diff --git a/wagtail/images/management/commands/wagtail_update_image_renditions.py b/wagtail/images/management/commands/wagtail_update_image_renditions.py --- a/wagtail/images/management/commands/wagtail_update_image_renditions.py +++ b/wagtail/images/management/commands/wagtail_update_image_renditions.py @@ -8,6 +8,17...
{"golden_diff": "diff --git a/wagtail/images/management/commands/wagtail_update_image_renditions.py b/wagtail/images/management/commands/wagtail_update_image_renditions.py\n--- a/wagtail/images/management/commands/wagtail_update_image_renditions.py\n+++ b/wagtail/images/management/commands/wagtail_update_image_renditio...
1,113
397
gh_patches_debug_19081
rasdani/github-patches
git_diff
nvaccess__nvda-11609
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Visual Studio IntelliSense overly verbose To reproduce this issue: 1. I created a console application 2. In the main method I started typing "Console" and it reads ok 3. When I press "." to access "WriteLi...
diff --git a/source/NVDAObjects/UIA/VisualStudio.py b/source/NVDAObjects/UIA/VisualStudio.py --- a/source/NVDAObjects/UIA/VisualStudio.py +++ b/source/NVDAObjects/UIA/VisualStudio.py @@ -36,8 +36,31 @@ ... +class IntelliSenseLiveRegion(UIA): + """ + Visual Studio uses both Intellisense menu item objects and a liv...
{"golden_diff": "diff --git a/source/NVDAObjects/UIA/VisualStudio.py b/source/NVDAObjects/UIA/VisualStudio.py\n--- a/source/NVDAObjects/UIA/VisualStudio.py\n+++ b/source/NVDAObjects/UIA/VisualStudio.py\n@@ -36,8 +36,31 @@\n \t...\n \n \n+class IntelliSenseLiveRegion(UIA):\n+\t\"\"\"\n+\tVisual Studio uses both Intellis...
912
336
gh_patches_debug_47517
rasdani/github-patches
git_diff
conda-forge__conda-smithy-1727
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Python 3 regression: Undefined Jinja2 variables get rendered as empty string in linting ### Solution to issue cannot be found in the documentation. - [X] I checked the documentation. ### Issue For linting,...
diff --git a/conda_smithy/utils.py b/conda_smithy/utils.py --- a/conda_smithy/utils.py +++ b/conda_smithy/utils.py @@ -61,7 +61,7 @@ class NullUndefined(jinja2.Undefined): - def __unicode__(self): + def __str__(self): return self._undefined_name def __getattr__(self, name):
{"golden_diff": "diff --git a/conda_smithy/utils.py b/conda_smithy/utils.py\n--- a/conda_smithy/utils.py\n+++ b/conda_smithy/utils.py\n@@ -61,7 +61,7 @@\n \n \n class NullUndefined(jinja2.Undefined):\n- def __unicode__(self):\n+ def __str__(self):\n return self._undefined_name\n \n def __getattr__(sel...
1,844
95
gh_patches_debug_566
rasdani/github-patches
git_diff
pex-tool__pex-797
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.0.1 On the docket: + [x] pex --index-url=... fails in 2.0.0 #794 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGI...
diff --git a/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.0.0' +__version__ = '2.0.1'
{"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.0.0'\n+__version__ = '2.0.1'\n", "issue"...
343
94
gh_patches_debug_56452
rasdani/github-patches
git_diff
netket__netket-111
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Python bindings for Jastrow machines randomly failing I realized in #91 that once in a while the python tests for the `Jastrow` machines fail. This issue seems related to some memory problem, but I still don'...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ setup( name='netket', - version='0.1', + version='2.0', author='Giuseppe Carleo et al.', description='NetKet', url='http://github.com/netket/netket',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -58,7 +58,7 @@\n \n setup(\n name='netket',\n- version='0.1',\n+ version='2.0',\n author='Giuseppe Carleo et al.',\n description='NetKet',\n url='http://github.com/netket/netket',\n", "issue": "Python bindings fo...
1,045
86
gh_patches_debug_20708
rasdani/github-patches
git_diff
cfpb__consumerfinance.gov-457
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- little typo on The Bureau page http://beta.consumerfinance.gov/the-bureau/ "Organizaitonal structure and leadership >" should be Organizational --- END ISSUE --- Below are some code segments, each from a...
diff --git a/_lib/wordpress_post_processor.py b/_lib/wordpress_post_processor.py --- a/_lib/wordpress_post_processor.py +++ b/_lib/wordpress_post_processor.py @@ -37,13 +37,13 @@ post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_cfpb_newsroom_cat_taxonomy']] elif post['type'...
{"golden_diff": "diff --git a/_lib/wordpress_post_processor.py b/_lib/wordpress_post_processor.py\n--- a/_lib/wordpress_post_processor.py\n+++ b/_lib/wordpress_post_processor.py\n@@ -37,13 +37,13 @@\n post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_cfpb_newsroom_cat_taxonomy']]\...
1,064
261
gh_patches_debug_15914
rasdani/github-patches
git_diff
keras-team__keras-8240
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fix device names for multi_gpu_model This PR will try to fix #8213. `DeviceSpec.from_string(device).to_string()` is used by tensorflow. ([Ref](https://github.com/tensorflow/tensorflow/blob/40c475b48c091a70...
diff --git a/keras/utils/training_utils.py b/keras/utils/training_utils.py --- a/keras/utils/training_utils.py +++ b/keras/utils/training_utils.py @@ -10,6 +10,11 @@ return [x.name for x in local_device_protos] +def _normalize_device_name(name): + name = name.lower().replace('device:', '') + return name ...
{"golden_diff": "diff --git a/keras/utils/training_utils.py b/keras/utils/training_utils.py\n--- a/keras/utils/training_utils.py\n+++ b/keras/utils/training_utils.py\n@@ -10,6 +10,11 @@\n return [x.name for x in local_device_protos]\n \n \n+def _normalize_device_name(name):\n+ name = name.lower().replace('device...
1,957
201
gh_patches_debug_12524
rasdani/github-patches
git_diff
python-telegram-bot__python-telegram-bot-1734
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Python supported versions need to be updated in docs Not really a bug, but for example it still says Python 3.4 is supported in readme and setup explanations. Copy-pasting from https://pypi.org/project/pyt...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -50,10 +50,7 @@ 'Topic :: Communications :: Chat', 'Topic :: Internet', 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python ::...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -50,10 +50,7 @@\n 'Topic :: Communications :: Chat',\n 'Topic :: Internet',\n 'Programming Language :: Python',\n- 'Programming Language :: Python :: 2',\n- 'Programm...
904
137
gh_patches_debug_17838
rasdani/github-patches
git_diff
voxel51__fiftyone-1283
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [FR] update opencv-python-headless ### Proposal Summary Currently this repo requires opencv-python-headless<=4.4.0.46. To cut a long story short there are no wheels available for python3.9 and I am unable to...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -78,6 +78,7 @@ "mongoengine==0.20.0", "motor>=2.3,<3", "numpy", + "opencv-python-headless", "packaging", "pandas", "Pillow>=6.2", @@ -96,12 +97,6 @@ "universal-analytics-python3>=1.0.1...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -78,6 +78,7 @@\n \"mongoengine==0.20.0\",\n \"motor>=2.3,<3\",\n \"numpy\",\n+ \"opencv-python-headless\",\n \"packaging\",\n \"pandas\",\n \"Pillow>=6.2\",\n@@ -96,12 +97,6 @@\n ...
1,643
242
gh_patches_debug_7459
rasdani/github-patches
git_diff
rlworkgroup__garage-1558
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Backport #1554 --- 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/garage/tf/plotter/plotter.py` Content: ...
diff --git a/src/garage/tf/plotter/plotter.py b/src/garage/tf/plotter/plotter.py --- a/src/garage/tf/plotter/plotter.py +++ b/src/garage/tf/plotter/plotter.py @@ -43,6 +43,7 @@ ) if graph is None else graph with self.sess.as_default(), self.graph.as_default(): self.policy = policy.clone('...
{"golden_diff": "diff --git a/src/garage/tf/plotter/plotter.py b/src/garage/tf/plotter/plotter.py\n--- a/src/garage/tf/plotter/plotter.py\n+++ b/src/garage/tf/plotter/plotter.py\n@@ -43,6 +43,7 @@\n ) if graph is None else graph\n with self.sess.as_default(), self.graph.as_default():\n self....
1,514
145
gh_patches_debug_1848
rasdani/github-patches
git_diff
kivy__python-for-android-1163
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Openssl recipe crashes on x86 arch p4a branch: stable buildozer: 0.33 bootstrap: sdl2 kivy: 1.10.0 Error message i get: ``` arm_arch.h:46:6: error: #error "unsupported ARM architecture" ``` --- END ...
diff --git a/pythonforandroid/recipes/openssl/__init__.py b/pythonforandroid/recipes/openssl/__init__.py --- a/pythonforandroid/recipes/openssl/__init__.py +++ b/pythonforandroid/recipes/openssl/__init__.py @@ -36,6 +36,8 @@ return 'android-armv7' if 'arm' in aname: return 'android' +...
{"golden_diff": "diff --git a/pythonforandroid/recipes/openssl/__init__.py b/pythonforandroid/recipes/openssl/__init__.py\n--- a/pythonforandroid/recipes/openssl/__init__.py\n+++ b/pythonforandroid/recipes/openssl/__init__.py\n@@ -36,6 +36,8 @@\n return 'android-armv7'\n if 'arm' in aname:\n ...
1,086
128
gh_patches_debug_66775
rasdani/github-patches
git_diff
apache__airflow-1296
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Inconsistent 'owner' field in examples Dear Airflow Maintainers, ### Environment - Version of Airflow (e.g. a release version, running your own fork, running off master -- provide a git log snippet): **1.7.0*...
diff --git a/airflow/example_dags/example_trigger_controller_dag.py b/airflow/example_dags/example_trigger_controller_dag.py --- a/airflow/example_dags/example_trigger_controller_dag.py +++ b/airflow/example_dags/example_trigger_controller_dag.py @@ -37,7 +37,7 @@ # Define the DAG dag = DAG(dag_id='example_trigger_...
{"golden_diff": "diff --git a/airflow/example_dags/example_trigger_controller_dag.py b/airflow/example_dags/example_trigger_controller_dag.py\n--- a/airflow/example_dags/example_trigger_controller_dag.py\n+++ b/airflow/example_dags/example_trigger_controller_dag.py\n@@ -37,7 +37,7 @@\n \n # Define the DAG\n dag = DAG(d...
1,091
127
gh_patches_debug_37830
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-2969
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG]: 运行chatgpt推理示例报错 ### 🐛 Describe the bug (https://github.com/hpcaitech/ColossalAI/tree/main/applications/ChatGPT)/examples/ 运行inference.py 抛出OSError: ![image](https://user-images.githubusercontent....
diff --git a/applications/ChatGPT/examples/inference.py b/applications/ChatGPT/examples/inference.py --- a/applications/ChatGPT/examples/inference.py +++ b/applications/ChatGPT/examples/inference.py @@ -9,30 +9,34 @@ def eval(args): # configure model if args.model == 'gpt2': - model = GPTActor(pretrai...
{"golden_diff": "diff --git a/applications/ChatGPT/examples/inference.py b/applications/ChatGPT/examples/inference.py\n--- a/applications/ChatGPT/examples/inference.py\n+++ b/applications/ChatGPT/examples/inference.py\n@@ -9,30 +9,34 @@\n def eval(args):\n # configure model\n if args.model == 'gpt2':\n- ...
970
592
gh_patches_debug_15935
rasdani/github-patches
git_diff
vispy__vispy-305
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The first emitted Timer event has `None` as `dt` property ``` python def on_timer(self, event): print event.dt ``` displays `None` the first time, and the correct dt then (a float). The first dt should p...
diff --git a/vispy/app/timer.py b/vispy/app/timer.py --- a/vispy/app/timer.py +++ b/vispy/app/timer.py @@ -103,7 +103,7 @@ self.max_iterations = iterations self._backend._vispy_start(self.interval) self._running = True - self._last_emit_time = None + self._last_emit_time = p...
{"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@@ -103,7 +103,7 @@\n self.max_iterations = iterations\n self._backend._vispy_start(self.interval)\n self._running = True\n- self._last_emit_time = None\n+ ...
1,767
204
gh_patches_debug_24108
rasdani/github-patches
git_diff
pypa__pip-11264
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Checking out Bazaar branch makes full clone When checking out a Bazaar branch, pip currently makes a full clone of the branch history. This is unnecessary and much slower than just fetching the latest revisio...
diff --git a/src/pip/_internal/vcs/bazaar.py b/src/pip/_internal/vcs/bazaar.py --- a/src/pip/_internal/vcs/bazaar.py +++ b/src/pip/_internal/vcs/bazaar.py @@ -49,14 +49,25 @@ flag = "" else: flag = f"-{'v'*verbosity}" - cmd_args = make_command("branch", flag, rev_options.to_arg...
{"golden_diff": "diff --git a/src/pip/_internal/vcs/bazaar.py b/src/pip/_internal/vcs/bazaar.py\n--- a/src/pip/_internal/vcs/bazaar.py\n+++ b/src/pip/_internal/vcs/bazaar.py\n@@ -49,14 +49,25 @@\n flag = \"\"\n else:\n flag = f\"-{'v'*verbosity}\"\n- cmd_args = make_command(\"bran...
1,332
355
gh_patches_debug_5737
rasdani/github-patches
git_diff
spesmilo__electrum-1738
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Feature request: Label colour - History Window The transaction amount of outgoing transactions, when viewed in the history window, is coloured red. It would be a nice if the label of these transactions coul...
diff --git a/gui/qt/history_widget.py b/gui/qt/history_widget.py --- a/gui/qt/history_widget.py +++ b/gui/qt/history_widget.py @@ -92,6 +92,7 @@ if i!=2: item.setFont(i, QFont(MONOSPACE_FONT)) if value < 0: + item.setForeground(3, QBrush(QColor("#BC1E1E"...
{"golden_diff": "diff --git a/gui/qt/history_widget.py b/gui/qt/history_widget.py\n--- a/gui/qt/history_widget.py\n+++ b/gui/qt/history_widget.py\n@@ -92,6 +92,7 @@\n if i!=2:\n item.setFont(i, QFont(MONOSPACE_FONT))\n if value < 0:\n+ item.setForeground(3,...
1,727
122
gh_patches_debug_627
rasdani/github-patches
git_diff
bridgecrewio__checkov-3151
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Terraform parsing error string with escaped backslash at the end **Describe the issue** Checkov crashes if it encounters an escaped backslash (`"\\"`) at the end of a string. **Examples** Minimal example...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ ] }, install_requires=[ - "bc-python-hcl2==0.3.42", + "bc-python-hcl2==0.3.44", "cloudsplaining>=0.4.1", "deep_merge", "tabulate",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -33,7 +33,7 @@\n ]\n },\n install_requires=[\n- \"bc-python-hcl2==0.3.42\",\n+ \"bc-python-hcl2==0.3.44\",\n \"cloudsplaining>=0.4.1\",\n \"deep_merge\",\n \"tabulate\",\n", "issue...
1,765
94
gh_patches_debug_25963
rasdani/github-patches
git_diff
pymedusa__Medusa-3131
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Login error ``` Error unhashable type: 'list' Traceback Traceback (most recent call last): File "/home/pi/Medusa/ext/tornado/web.py", line 1509, in _execute result = method(*self.path_args, **self.path_...
diff --git a/medusa/notifiers/nma.py b/medusa/notifiers/nma.py --- a/medusa/notifiers/nma.py +++ b/medusa/notifiers/nma.py @@ -4,8 +4,8 @@ from medusa import app, common from medusa.logger.adapters.style import BraceAdapter - from pynma import pynma +from six import text_type log = BraceAdapter(logging.getLogge...
{"golden_diff": "diff --git a/medusa/notifiers/nma.py b/medusa/notifiers/nma.py\n--- a/medusa/notifiers/nma.py\n+++ b/medusa/notifiers/nma.py\n@@ -4,8 +4,8 @@\n \n from medusa import app, common\n from medusa.logger.adapters.style import BraceAdapter\n-\n from pynma import pynma\n+from six import text_type\n \n log = B...
1,798
304
gh_patches_debug_16829
rasdani/github-patches
git_diff
pyload__pyload-1412
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Smoozed Hello, Smooth is free in the moment for 10GB a day but the hooks said that it is not a premium account. Would be great if somebody can have a look on it. Thanks --- END ISSUE --- Below are some ...
diff --git a/module/plugins/accounts/SmoozedCom.py b/module/plugins/accounts/SmoozedCom.py --- a/module/plugins/accounts/SmoozedCom.py +++ b/module/plugins/accounts/SmoozedCom.py @@ -34,7 +34,6 @@ def loadAccountInfo(self, user, req): - # Get user data from premiumize.me status = self.getAccoun...
{"golden_diff": "diff --git a/module/plugins/accounts/SmoozedCom.py b/module/plugins/accounts/SmoozedCom.py\n--- a/module/plugins/accounts/SmoozedCom.py\n+++ b/module/plugins/accounts/SmoozedCom.py\n@@ -34,7 +34,6 @@\n \n \n def loadAccountInfo(self, user, req):\n- # Get user data from premiumize.me\n ...
1,053
214
gh_patches_debug_6986
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-1210
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- MAE can't handle MPS backend ## 🐛 Bug The currently, the mean absolute error can't handle the MPS backend. This is a simple fix and just requires casting to .float() ### To Reproduce This works: ...
diff --git a/src/torchmetrics/functional/regression/mae.py b/src/torchmetrics/functional/regression/mae.py --- a/src/torchmetrics/functional/regression/mae.py +++ b/src/torchmetrics/functional/regression/mae.py @@ -28,8 +28,9 @@ preds: Predicted tensor target: Ground truth tensor """ - _chec...
{"golden_diff": "diff --git a/src/torchmetrics/functional/regression/mae.py b/src/torchmetrics/functional/regression/mae.py\n--- a/src/torchmetrics/functional/regression/mae.py\n+++ b/src/torchmetrics/functional/regression/mae.py\n@@ -28,8 +28,9 @@\n preds: Predicted tensor\n target: Ground truth tensor...
1,747
160
gh_patches_debug_1424
rasdani/github-patches
git_diff
cookiecutter__cookiecutter-1891
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 2.2.0 CLI reports version 2.1.2dev0 * Cookiecutter version: 2.2.0 (or 2.1.2dev0, depending on who you ask) * Template project url: n/a * Python version: 3.11 * Operating System: linux ### Description: ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ """cookiecutter distutils configuration.""" from setuptools import setup -version = "2.2.2.dev0" +version = "2.2.2" with open('README.md', encoding='utf-8') as readme_file: readme = readme_file.read()
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,7 +1,7 @@\n \"\"\"cookiecutter distutils configuration.\"\"\"\n from setuptools import setup\n \n-version = \"2.2.2.dev0\"\n+version = \"2.2.2\"\n \n with open('README.md', encoding='utf-8') as readme_file:\n readme = readme_fi...
1,211
88
gh_patches_debug_33
rasdani/github-patches
git_diff
googleapis__google-api-python-client-1864
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Stop using external 'mock' dependency As of Python 3.4, 'mock' is included in the standard library under the unittest module, and since the lowest supported version of Python is greater than that, we can remo...
diff --git a/noxfile.py b/noxfile.py --- a/noxfile.py +++ b/noxfile.py @@ -42,7 +42,6 @@ "pytest-cov", "webtest", "coverage", - "mock", ]
{"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -42,7 +42,6 @@\n \"pytest-cov\",\n \"webtest\",\n \"coverage\",\n- \"mock\",\n ]\n", "issue": "Stop using external 'mock' dependency\nAs of Python 3.4, 'mock' is included in the standard library under the unitte...
1,557
61
gh_patches_debug_7786
rasdani/github-patches
git_diff
Lightning-AI__pytorch-lightning-619
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Comet PAPI Depreciated Use of the Comet API logger reports an unecessary depreciation warning relating to the use of comet_ml.papi, rather than the newer comet_ml.api. Example: `COMET WARNING: You have im...
diff --git a/pytorch_lightning/logging/comet.py b/pytorch_lightning/logging/comet.py --- a/pytorch_lightning/logging/comet.py +++ b/pytorch_lightning/logging/comet.py @@ -52,7 +52,11 @@ try: from comet_ml import Experiment as CometExperiment from comet_ml import OfflineExperiment as CometOfflineExperiment - ...
{"golden_diff": "diff --git a/pytorch_lightning/logging/comet.py b/pytorch_lightning/logging/comet.py\n--- a/pytorch_lightning/logging/comet.py\n+++ b/pytorch_lightning/logging/comet.py\n@@ -52,7 +52,11 @@\n try:\n from comet_ml import Experiment as CometExperiment\n from comet_ml import OfflineExperiment as Co...
2,015
157
gh_patches_debug_28626
rasdani/github-patches
git_diff
pymodbus-dev__pymodbus-1053
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Updating Server Example does not work <!-- Please use the Pymodbus gitter channel at https://gitter.im/pymodbus_dev/Lobby or Stack Overflow(tag [pymodbus](https://stackoverflow.com/questions/tagged/pymodbus)...
diff --git a/examples/common/updating_server.py b/examples/common/updating_server.py --- a/examples/common/updating_server.py +++ b/examples/common/updating_server.py @@ -36,7 +36,7 @@ """Run every so often, and updates live values of the context. It should be noted - that there is a race condition for t...
{"golden_diff": "diff --git a/examples/common/updating_server.py b/examples/common/updating_server.py\n--- a/examples/common/updating_server.py\n+++ b/examples/common/updating_server.py\n@@ -36,7 +36,7 @@\n \"\"\"Run every so often,\n \n and updates live values of the context. It should be noted\n- that ther...
1,458
338
gh_patches_debug_3003
rasdani/github-patches
git_diff
lightly-ai__lightly-656
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incorrect inputsize for BarlowTwins Lightning Example Code Should the input_size in [1] be `32` instead of `224`? In [2], we use `input_size=32`. [1] https://github.com/lightly-ai/lightly/blob/master/exam...
diff --git a/examples/pytorch_lightning/barlowtwins.py b/examples/pytorch_lightning/barlowtwins.py --- a/examples/pytorch_lightning/barlowtwins.py +++ b/examples/pytorch_lightning/barlowtwins.py @@ -41,7 +41,7 @@ # or create a dataset from a folder containing images or videos: # dataset = LightlyDataset("path/to/fold...
{"golden_diff": "diff --git a/examples/pytorch_lightning/barlowtwins.py b/examples/pytorch_lightning/barlowtwins.py\n--- a/examples/pytorch_lightning/barlowtwins.py\n+++ b/examples/pytorch_lightning/barlowtwins.py\n@@ -41,7 +41,7 @@\n # or create a dataset from a folder containing images or videos:\n # dataset = Lightl...
934
135
gh_patches_debug_924
rasdani/github-patches
git_diff
joke2k__faker-993
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- text-unidecode is released under the Artistic license `text-unidecode` is released under the Artistic license v1.0, which is considered non-free by the FSF (and therefore not compatible with the GPL). I belie...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -66,7 +66,7 @@ install_requires=[ "python-dateutil>=2.4", "six>=1.10", - "text-unidecode==1.2", + "text-unidecode==1.3", ], tests_require=[ "validators>=0.13.0",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -66,7 +66,7 @@\n install_requires=[\n \"python-dateutil>=2.4\",\n \"six>=1.10\",\n- \"text-unidecode==1.2\",\n+ \"text-unidecode==1.3\",\n ],\n tests_require=[\n \"validators>=0.13.0\"...
1,404
96
gh_patches_debug_22236
rasdani/github-patches
git_diff
onnx__onnx-4386
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make C++ and Python checker API consistent Python checker API supports `full_check` arg: https://github.com/onnx/onnx/blob/fa6f8cfdce3d86346e8a7494f3062b98416c85fb/onnx/checker.py#L94 C++ does not. It'd ...
diff --git a/onnx/checker.py b/onnx/checker.py --- a/onnx/checker.py +++ b/onnx/checker.py @@ -94,18 +94,14 @@ """ # If model is a path instead of ModelProto if isinstance(model, str): - C.check_model_path(model) - if full_check: - onnx.shape_inference.infer_shapes_path(model, ch...
{"golden_diff": "diff --git a/onnx/checker.py b/onnx/checker.py\n--- a/onnx/checker.py\n+++ b/onnx/checker.py\n@@ -94,18 +94,14 @@\n \"\"\"\n # If model is a path instead of ModelProto\n if isinstance(model, str):\n- C.check_model_path(model)\n- if full_check:\n- onnx.shape_inferenc...
1,450
249
gh_patches_debug_37440
rasdani/github-patches
git_diff
arviz-devs__arviz-636
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow normalization in plot_parallel It would be great if plot_parallel had a keyword arg `normalize` (or standardize), that centers and rescales the variables before plotting. That would make it easier to se...
diff --git a/arviz/plots/parallelplot.py b/arviz/plots/parallelplot.py --- a/arviz/plots/parallelplot.py +++ b/arviz/plots/parallelplot.py @@ -2,6 +2,7 @@ import matplotlib.pyplot as plt import numpy as np +from scipy.stats.mstats import rankdata from ..data import convert_to_dataset from .plot_utils import _scal...
{"golden_diff": "diff --git a/arviz/plots/parallelplot.py b/arviz/plots/parallelplot.py\n--- a/arviz/plots/parallelplot.py\n+++ b/arviz/plots/parallelplot.py\n@@ -2,6 +2,7 @@\n import matplotlib.pyplot as plt\n import numpy as np\n \n+from scipy.stats.mstats import rankdata\n from ..data import convert_to_dataset\n fro...
1,352
702
gh_patches_debug_30482
rasdani/github-patches
git_diff
SeldonIO__MLServer-605
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add docker build option to not use cache To ensure fresh environment and while potentially developing a new model version users will not want to use cached layers in the docker build for their image. In do...
diff --git a/mlserver/cli/build.py b/mlserver/cli/build.py --- a/mlserver/cli/build.py +++ b/mlserver/cli/build.py @@ -37,12 +37,18 @@ return dockerfile_path -def build_image(folder: str, dockerfile: str, image_tag: str) -> str: +def build_image( + folder: str, dockerfile: str, image_tag: str, no_cache: boo...
{"golden_diff": "diff --git a/mlserver/cli/build.py b/mlserver/cli/build.py\n--- a/mlserver/cli/build.py\n+++ b/mlserver/cli/build.py\n@@ -37,12 +37,18 @@\n return dockerfile_path\n \n \n-def build_image(folder: str, dockerfile: str, image_tag: str) -> str:\n+def build_image(\n+ folder: str, dockerfile: str, ima...
1,461
479
gh_patches_debug_30513
rasdani/github-patches
git_diff
great-expectations__great_expectations-1292
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- QueryBatchKwargsGenerator._get_raw_query produces incorrect filepath I am using the `QueryBatchKwargsGenerator` to generate `BATCH_KWARGS` using a SQL file I have stored on disk. My `great_expectations.yml` l...
diff --git a/great_expectations/datasource/generator/query_generator.py b/great_expectations/datasource/generator/query_generator.py --- a/great_expectations/datasource/generator/query_generator.py +++ b/great_expectations/datasource/generator/query_generator.py @@ -25,7 +25,7 @@ class QueryBatchKwargsGenerator(BatchK...
{"golden_diff": "diff --git a/great_expectations/datasource/generator/query_generator.py b/great_expectations/datasource/generator/query_generator.py\n--- a/great_expectations/datasource/generator/query_generator.py\n+++ b/great_expectations/datasource/generator/query_generator.py\n@@ -25,7 +25,7 @@\n class QueryBatchK...
1,992
348
gh_patches_debug_10612
rasdani/github-patches
git_diff
fedora-infra__bodhi-1450
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- There are multiple alembic heads on the develop branch The migrations can't be applied on the develop branch because there are multiple alembic heads: ``` [vagrant@bodhi-dev bodhi]$ alembic upgrade head ...
diff --git a/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py b/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py --- a/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py +++ b/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py @@ -1,7 +1,7 @@ """Convert the b...
{"golden_diff": "diff --git a/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py b/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py\n--- a/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py\n+++ b/alembic/versions/9241378c92ab_convert_the_builds_table_to_be_.py\n@@ -1,7 +1,7 ...
1,090
307
gh_patches_debug_57587
rasdani/github-patches
git_diff
joke2k__faker-262
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- en_US SSN provider generates invalid SSNs There's a few limitations on United States' SSNs that prevent it from being completely random. - No group can be all 0s - The SSN cannot start with 666 - The SSN cann...
diff --git a/faker/providers/ssn/en_US/__init__.py b/faker/providers/ssn/en_US/__init__.py --- a/faker/providers/ssn/en_US/__init__.py +++ b/faker/providers/ssn/en_US/__init__.py @@ -4,4 +4,17 @@ class Provider(BaseProvider): - pass + + @classmethod + def ssn(cls): + # Certain numbers are invalid f...
{"golden_diff": "diff --git a/faker/providers/ssn/en_US/__init__.py b/faker/providers/ssn/en_US/__init__.py\n--- a/faker/providers/ssn/en_US/__init__.py\n+++ b/faker/providers/ssn/en_US/__init__.py\n@@ -4,4 +4,17 @@\n \n \n class Provider(BaseProvider):\n- pass\n+\n+ @classmethod\n+ def ssn(cls):\n+ # C...
395
269
gh_patches_debug_57082
rasdani/github-patches
git_diff
SeldonIO__MLServer-1171
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add OS constraint in PyPI Mention MLServer's OS constraints as metadata in `setup.py`, so that it becomes visible in pypi.org. ``` setup(..., classifiers=[ 'Operating System :: POSIX', ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -37,6 +37,7 @@ url="https://github.com/SeldonIO/MLServer.git", author="Seldon Technologies Ltd.", author_email="hello@seldon.io", + classifiers=["Operating System :: POSIX", "Operating System :: MacOS"], description="ML server", ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -37,6 +37,7 @@\n url=\"https://github.com/SeldonIO/MLServer.git\",\n author=\"Seldon Technologies Ltd.\",\n author_email=\"hello@seldon.io\",\n+ classifiers=[\"Operating System :: POSIX\", \"Operating System :: MacOS\"]...
1,009
104
gh_patches_debug_41531
rasdani/github-patches
git_diff
deepset-ai__haystack-7247
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Docstrings - `haystack.components.caching` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `haystack/compon...
diff --git a/haystack/components/caching/cache_checker.py b/haystack/components/caching/cache_checker.py --- a/haystack/components/caching/cache_checker.py +++ b/haystack/components/caching/cache_checker.py @@ -14,27 +14,63 @@ @component class CacheChecker: """ - CacheChecker is a component that checks for th...
{"golden_diff": "diff --git a/haystack/components/caching/cache_checker.py b/haystack/components/caching/cache_checker.py\n--- a/haystack/components/caching/cache_checker.py\n+++ b/haystack/components/caching/cache_checker.py\n@@ -14,27 +14,63 @@\n @component\n class CacheChecker:\n \"\"\"\n- CacheChecker is a c...
1,070
899
gh_patches_debug_19709
rasdani/github-patches
git_diff
fossasia__open-event-server-5615
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unable to login to the Admin Panel. **Description:** When we try to login to admin panel, even if the credentials belong to super-admin, it returns "Credential incorrect" **Steps to reproduce the behavior...
diff --git a/app/views/__init__.py b/app/views/__init__.py --- a/app/views/__init__.py +++ b/app/views/__init__.py @@ -3,7 +3,6 @@ from flask import url_for, redirect, Blueprint, request, make_response from flask_admin import Admin, AdminIndexView, expose, helpers as admin_helpers from flask_admin.contrib.sqla impor...
{"golden_diff": "diff --git a/app/views/__init__.py b/app/views/__init__.py\n--- a/app/views/__init__.py\n+++ b/app/views/__init__.py\n@@ -3,7 +3,6 @@\n from flask import url_for, redirect, Blueprint, request, make_response\n from flask_admin import Admin, AdminIndexView, expose, helpers as admin_helpers\n from flask_a...
1,546
193
gh_patches_debug_10505
rasdani/github-patches
git_diff
cornellius-gp__gpytorch-1371
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ZeroMean for Batch Independent Multioutput GP I'm following the Batch Independent Multioutput GP example, but instead of using a constant mean, I would like each dimension to use a zero mean (maybe this is a ...
diff --git a/gpytorch/means/zero_mean.py b/gpytorch/means/zero_mean.py --- a/gpytorch/means/zero_mean.py +++ b/gpytorch/means/zero_mean.py @@ -2,9 +2,18 @@ import torch +from ..utils.broadcasting import _mul_broadcast_shape from .mean import Mean class ZeroMean(Mean): + def __init__(self, batch_shape=torc...
{"golden_diff": "diff --git a/gpytorch/means/zero_mean.py b/gpytorch/means/zero_mean.py\n--- a/gpytorch/means/zero_mean.py\n+++ b/gpytorch/means/zero_mean.py\n@@ -2,9 +2,18 @@\n \n import torch\n \n+from ..utils.broadcasting import _mul_broadcast_shape\n from .mean import Mean\n \n \n class ZeroMean(Mean):\n+ def __...
704
216
gh_patches_debug_1971
rasdani/github-patches
git_diff
strawberry-graphql__strawberry-1994
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Postponed annotation evaluation causes `Annotated` to break When using postponed annotation evaluation, annotating resolver arguments no longer works: ```python from __future__ import annotations impor...
diff --git a/strawberry/auto.py b/strawberry/auto.py --- a/strawberry/auto.py +++ b/strawberry/auto.py @@ -57,7 +57,7 @@ if args[0] is Any: return any(isinstance(arg, StrawberryAuto) for arg in args[1:]) - return False + return instance == "strawberry.auto" class Straw...
{"golden_diff": "diff --git a/strawberry/auto.py b/strawberry/auto.py\n--- a/strawberry/auto.py\n+++ b/strawberry/auto.py\n@@ -57,7 +57,7 @@\n if args[0] is Any:\n return any(isinstance(arg, StrawberryAuto) for arg in args[1:])\n \n- return False\n+ return instance == \"strawbe...
1,076
104
gh_patches_debug_10295
rasdani/github-patches
git_diff
holoviz__panel-723
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Scipy now required dependency? The latest dev build of panel (panel-0.7.0a15-py_0) looks like it is trying to import scipy, but scipy is not among the required dependencies that are automatically installed th...
diff --git a/panel/widgets/misc.py b/panel/widgets/misc.py --- a/panel/widgets/misc.py +++ b/panel/widgets/misc.py @@ -11,7 +11,6 @@ import param import numpy as np -from scipy.io import wavfile from ..io.notebook import push from ..io.state import state @@ -48,6 +47,7 @@ _rename = {'name': None, 'sample_r...
{"golden_diff": "diff --git a/panel/widgets/misc.py b/panel/widgets/misc.py\n--- a/panel/widgets/misc.py\n+++ b/panel/widgets/misc.py\n@@ -11,7 +11,6 @@\n \n import param\n import numpy as np\n-from scipy.io import wavfile\n \n from ..io.notebook import push\n from ..io.state import state\n@@ -48,6 +47,7 @@\n _rena...
1,782
143
gh_patches_debug_41072
rasdani/github-patches
git_diff
PaddlePaddle__PaddleSeg-1746
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- paddleseg/models/hrnet_contrast.py 中没有执行 init_weight paddleseg/models/hrnet_contrast.py 中__init__()没有执行 init_weight,导致hrnet_w48_contrast 没法加载完整的模型 --- END ISSUE --- Below are some code segments, each from a...
diff --git a/paddleseg/models/hrnet_contrast.py b/paddleseg/models/hrnet_contrast.py --- a/paddleseg/models/hrnet_contrast.py +++ b/paddleseg/models/hrnet_contrast.py @@ -40,6 +40,7 @@ e.g. 1024x512, otherwise it is True, e.g. 769x769. Default: False. pretrained (str, optional): The path or url of...
{"golden_diff": "diff --git a/paddleseg/models/hrnet_contrast.py b/paddleseg/models/hrnet_contrast.py\n--- a/paddleseg/models/hrnet_contrast.py\n+++ b/paddleseg/models/hrnet_contrast.py\n@@ -40,6 +40,7 @@\n e.g. 1024x512, otherwise it is True, e.g. 769x769. Default: False.\n pretrained (str, optiona...
1,602
701
gh_patches_debug_20653
rasdani/github-patches
git_diff
ipython__ipython-6338
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Implement check_pid for .NET This is a reminder - I added an `IPython.utils.process.check_pid` function to check if a process exists with a given PID. However, we have a `_process_cli` module containing .NET ...
diff --git a/IPython/utils/_process_cli.py b/IPython/utils/_process_cli.py --- a/IPython/utils/_process_cli.py +++ b/IPython/utils/_process_cli.py @@ -61,3 +61,18 @@ myError = reg.StandardError error = myError.ReadToEnd() return output + +def check_pid(pid): + """ + Check if a process with the give...
{"golden_diff": "diff --git a/IPython/utils/_process_cli.py b/IPython/utils/_process_cli.py\n--- a/IPython/utils/_process_cli.py\n+++ b/IPython/utils/_process_cli.py\n@@ -61,3 +61,18 @@\n myError = reg.StandardError\n error = myError.ReadToEnd()\n return output\n+\n+def check_pid(pid):\n+ \"\"\"\n+ Ch...
2,016
327
gh_patches_debug_1640
rasdani/github-patches
git_diff
scikit-image__scikit-image-1430
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- measure.label is documented under morphology.label In the [measure API reference](http://scikit-image.org/docs/stable/api/skimage.measure.html) label is not documented, but it is [documented under morphology ...
diff --git a/skimage/measure/__init__.py b/skimage/measure/__init__.py --- a/skimage/measure/__init__.py +++ b/skimage/measure/__init__.py @@ -9,7 +9,7 @@ from .profile import profile_line from .fit import LineModel, CircleModel, EllipseModel, ransac from .block import block_reduce -from ._ccomp import label +from ....
{"golden_diff": "diff --git a/skimage/measure/__init__.py b/skimage/measure/__init__.py\n--- a/skimage/measure/__init__.py\n+++ b/skimage/measure/__init__.py\n@@ -9,7 +9,7 @@\n from .profile import profile_line\n from .fit import LineModel, CircleModel, EllipseModel, ransac\n from .block import block_reduce\n-from ._cc...
661
114
gh_patches_debug_128
rasdani/github-patches
git_diff
opsdroid__opsdroid-28
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Regex case sensitive The regex match is currently case insensitive. It shouldn't be. https://github.com/opsdroid/opsdroid/blob/master/opsdroid/helper.py#L30 --- END ISSUE --- Below are some code segments,...
diff --git a/opsdroid/helper.py b/opsdroid/helper.py --- a/opsdroid/helper.py +++ b/opsdroid/helper.py @@ -27,4 +27,4 @@ def match(regex, message): """Regex match a string.""" - return re.match(regex, message, re.M | re.I) + return re.match(regex, message)
{"golden_diff": "diff --git a/opsdroid/helper.py b/opsdroid/helper.py\n--- a/opsdroid/helper.py\n+++ b/opsdroid/helper.py\n@@ -27,4 +27,4 @@\n \n def match(regex, message):\n \"\"\"Regex match a string.\"\"\"\n- return re.match(regex, message, re.M | re.I)\n+ return re.match(regex, message)\n", "issue": "Rege...
553
86
gh_patches_debug_24940
rasdani/github-patches
git_diff
HypothesisWorks__hypothesis-1548
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Log message hiding interfers with pytest log caputure fixture. The log message hiding merged in #1535 interferes with pytests log capturing. In the example below I am using the [caplog fixture](https://do...
diff --git a/hypothesis-python/src/hypothesis/control.py b/hypothesis-python/src/hypothesis/control.py --- a/hypothesis-python/src/hypothesis/control.py +++ b/hypothesis-python/src/hypothesis/control.py @@ -17,7 +17,6 @@ from __future__ import division, print_function, absolute_import -import logging import trace...
{"golden_diff": "diff --git a/hypothesis-python/src/hypothesis/control.py b/hypothesis-python/src/hypothesis/control.py\n--- a/hypothesis-python/src/hypothesis/control.py\n+++ b/hypothesis-python/src/hypothesis/control.py\n@@ -17,7 +17,6 @@\n \n from __future__ import division, print_function, absolute_import\n \n-impo...
1,801
262
gh_patches_debug_10841
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-435
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Manual creation of Languages results in Bugsplash at page view. ### Describe the Bug If a system is set up manually without the test data. The manual language setup results in a error when opening the list v...
diff --git a/src/cms/templatetags/content_filters.py b/src/cms/templatetags/content_filters.py --- a/src/cms/templatetags/content_filters.py +++ b/src/cms/templatetags/content_filters.py @@ -15,11 +15,14 @@ @register.simple_tag def translated_language_name(language_code): - return Language.objects.get(code=langu...
{"golden_diff": "diff --git a/src/cms/templatetags/content_filters.py b/src/cms/templatetags/content_filters.py\n--- a/src/cms/templatetags/content_filters.py\n+++ b/src/cms/templatetags/content_filters.py\n@@ -15,11 +15,14 @@\n \n @register.simple_tag\n def translated_language_name(language_code):\n- return Languag...
949
178
gh_patches_debug_229
rasdani/github-patches
git_diff
facebookresearch__hydra-1808
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] hydra-optuna-sweeper 1.1.0 requires numpy<1.20.0 # 🐛 Bug ## Description <!-- A clear and concise description of what the bug is. --> I used the guide from https://hydra.cc/docs/plugins/optuna_swe...
diff --git a/plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/__init__.py b/plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/__init__.py --- a/plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/__init__.py +++ b/plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/_...
{"golden_diff": "diff --git a/plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/__init__.py b/plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/__init__.py\n--- a/plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/__init__.py\n+++ b/plugins/hydra_optuna_sweeper/hydra_plugins/hyd...
577
163
gh_patches_debug_43516
rasdani/github-patches
git_diff
ResonantGeoData__ResonantGeoData-577
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Client: API token saving bug on MacOS @banesullivan was experiencing the following issue: When calling `create_rgd_client`, if there isn't already a token stored locally (in `$HOME/.rgd/token`), the client...
diff --git a/django-rgd/client/rgd_client/client.py b/django-rgd/client/rgd_client/client.py --- a/django-rgd/client/rgd_client/client.py +++ b/django-rgd/client/rgd_client/client.py @@ -1,4 +1,5 @@ import getpass +import logging import os from typing import List, Optional, Type @@ -8,6 +9,8 @@ from .session impo...
{"golden_diff": "diff --git a/django-rgd/client/rgd_client/client.py b/django-rgd/client/rgd_client/client.py\n--- a/django-rgd/client/rgd_client/client.py\n+++ b/django-rgd/client/rgd_client/client.py\n@@ -1,4 +1,5 @@\n import getpass\n+import logging\n import os\n from typing import List, Optional, Type\n \n@@ -8,6 +...
1,456
938
gh_patches_debug_36852
rasdani/github-patches
git_diff
googleapis__google-api-python-client-961
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Python == 2.7 The read me states that ># Deprecated Python Versions >Python == 2.7 It does not appear to work with Python == 2.7. (link to question on [SO](https://stackoverflow.com/q/56731694/1841839...
diff --git a/noxfile.py b/noxfile.py --- a/noxfile.py +++ b/noxfile.py @@ -18,6 +18,7 @@ import nox test_dependencies = [ + "django>=2.0.0", "google-auth", "google-auth-httplib2", "mox", @@ -46,7 +47,7 @@ ) -@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"]) +@nox.session(python=["3...
{"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -18,6 +18,7 @@\n import nox\n \n test_dependencies = [\n+ \"django>=2.0.0\",\n \"google-auth\",\n \"google-auth-httplib2\",\n \"mox\",\n@@ -46,7 +47,7 @@\n )\n \n \n-@nox.session(python=[\"2.7\", \"3.5\", \"...
1,958
659
gh_patches_debug_18713
rasdani/github-patches
git_diff
pypi__warehouse-3396
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Missing Purges Noticed this while setting up new mirror. We don't seem to be purging `project/<normalized_name>` key when projects are deleted. This leads bandersnatch to get confused and fall behind until...
diff --git a/warehouse/packaging/__init__.py b/warehouse/packaging/__init__.py --- a/warehouse/packaging/__init__.py +++ b/warehouse/packaging/__init__.py @@ -17,7 +17,7 @@ from warehouse.accounts.models import User, Email from warehouse.cache.origin import key_factory, receive_set from warehouse.packaging.interface...
{"golden_diff": "diff --git a/warehouse/packaging/__init__.py b/warehouse/packaging/__init__.py\n--- a/warehouse/packaging/__init__.py\n+++ b/warehouse/packaging/__init__.py\n@@ -17,7 +17,7 @@\n from warehouse.accounts.models import User, Email\n from warehouse.cache.origin import key_factory, receive_set\n from wareho...
1,161
216
gh_patches_debug_21636
rasdani/github-patches
git_diff
cloudtools__troposphere-1775
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add AdvancedSecurityOptions property to AWS ElasticSearch Domain **Description:** AWS Elasticsearch now supports fine-grained access control with Cloudformation. Need to add AdvancedSecurityOptions and Mas...
diff --git a/troposphere/elasticsearch.py b/troposphere/elasticsearch.py --- a/troposphere/elasticsearch.py +++ b/troposphere/elasticsearch.py @@ -81,8 +81,24 @@ class VPCOptions(AWSProperty): props = { - "SecurityGroupIds": ([basestring], False), - "SubnetIds": ([basestring], False) + 'Sec...
{"golden_diff": "diff --git a/troposphere/elasticsearch.py b/troposphere/elasticsearch.py\n--- a/troposphere/elasticsearch.py\n+++ b/troposphere/elasticsearch.py\n@@ -81,8 +81,24 @@\n \n class VPCOptions(AWSProperty):\n props = {\n- \"SecurityGroupIds\": ([basestring], False),\n- \"SubnetIds\": ([base...
1,376
322
gh_patches_debug_39486
rasdani/github-patches
git_diff
PlasmaPy__PlasmaPy-491
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve project description on PyPI [Project description](https://pypi.org/project/plasmapy/#description) is currently bland. We should detail some functionality, problems that the project is trying to addres...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -23,6 +23,7 @@ from astropy_helpers.setup_helpers import (register_commands, get_debug_option, get_package_info) +from astropy_helpers.distutils_helpers import is_distutils_display_option from astropy_helpe...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -23,6 +23,7 @@\n \n from astropy_helpers.setup_helpers import (register_commands, get_debug_option,\n get_package_info)\n+from astropy_helpers.distutils_helpers import is_distutils_display_op...
1,899
645
gh_patches_debug_25159
rasdani/github-patches
git_diff
mlflow__mlflow-9258
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Typo fix https://github.com/mlflow/mlflow/blob/9724c83bd8f0100c465e68e30651a9727de42ce0/dev/show_package_release_dates.py#L49 `package_legnth` -> `package_length` --- END ISSUE --- Below are some code se...
diff --git a/dev/show_package_release_dates.py b/dev/show_package_release_dates.py --- a/dev/show_package_release_dates.py +++ b/dev/show_package_release_dates.py @@ -46,11 +46,11 @@ release_dates = [safe_result(f) for f in futures] packages, versions = list(zip(*distributions)) - package_legnth = ge...
{"golden_diff": "diff --git a/dev/show_package_release_dates.py b/dev/show_package_release_dates.py\n--- a/dev/show_package_release_dates.py\n+++ b/dev/show_package_release_dates.py\n@@ -46,11 +46,11 @@\n release_dates = [safe_result(f) for f in futures]\n \n packages, versions = list(zip(*distributions))\n...
962
301
gh_patches_debug_27386
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-8360
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Problems with Spiders built on YextSpider I've noticed a few of the spiders whose results I was using in my OSM tool have recently stopped returning any results, including five_guys_de_es_fr_gb.py , matalan_g...
diff --git a/locations/spiders/independent_financial_us.py b/locations/spiders/independent_financial_us.py --- a/locations/spiders/independent_financial_us.py +++ b/locations/spiders/independent_financial_us.py @@ -1,24 +1,18 @@ from locations.categories import Categories, apply_category -from locations.storefinders.y...
{"golden_diff": "diff --git a/locations/spiders/independent_financial_us.py b/locations/spiders/independent_financial_us.py\n--- a/locations/spiders/independent_financial_us.py\n+++ b/locations/spiders/independent_financial_us.py\n@@ -1,24 +1,18 @@\n from locations.categories import Categories, apply_category\n-from lo...
735
477
gh_patches_debug_950
rasdani/github-patches
git_diff
OpenNMT__OpenNMT-py-2204
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- torch.div() (1.6.0) does not have 'rounding_mode' parameter According to the torch 1.6.0 here: https://pytorch.org/docs/1.6.0/generated/torch.div.html?highlight=torch%20div#torch.div there is no 'rounding_mo...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ }, python_requires=">=3.5", install_requires=[ - "torch>=1.6.0", + "torch>=1.9.0", "torchtext==0.5.0", "configargparse", "tensorboard>=2.3",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -21,7 +21,7 @@\n },\n python_requires=\">=3.5\",\n install_requires=[\n- \"torch>=1.6.0\",\n+ \"torch>=1.9.0\",\n \"torchtext==0.5.0\",\n \"configargparse\",\n \"tensorboard>=2.3\",\n"...
1,461
95
gh_patches_debug_13922
rasdani/github-patches
git_diff
huggingface__accelerate-445
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `psutil` required by utils/modeling.py but it isn't declared as a dependency ### System Info ```Shell Accelerate `0.10.0.dev0` on Debian Bullseye running Python 3.10.5. File "/opt/venv/lib/python3.10/si...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -19,7 +19,6 @@ extras["quality"] = ["black ~= 22.0", "isort >= 5.5.4", "flake8 >= 3.8.3"] extras["docs"] = [] extras["test"] = [ - "psutil", "pytest", "pytest-xdist", "pytest-subtests", @@ -60,7 +59,7 @@ ] }, pytho...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -19,7 +19,6 @@\n extras[\"quality\"] = [\"black ~= 22.0\", \"isort >= 5.5.4\", \"flake8 >= 3.8.3\"]\n extras[\"docs\"] = []\n extras[\"test\"] = [\n- \"psutil\",\n \"pytest\",\n \"pytest-xdist\",\n \"pytest-subtests\",\...
1,676
222
gh_patches_debug_9144
rasdani/github-patches
git_diff
Cloud-CV__EvalAI-1305
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add challenge filtering using featured parameter. We need to add filtering in challenge model on the basis of `featured` parameter. Add challenge filtering using featured parameter. We need to add filtering i...
diff --git a/apps/challenges/admin.py b/apps/challenges/admin.py --- a/apps/challenges/admin.py +++ b/apps/challenges/admin.py @@ -14,8 +14,9 @@ @admin.register(Challenge) class ChallengeAdmin(ImportExportTimeStampedAdmin): - list_display = ("title", "start_date", "end_date", "creator", "published", "enable_foru...
{"golden_diff": "diff --git a/apps/challenges/admin.py b/apps/challenges/admin.py\n--- a/apps/challenges/admin.py\n+++ b/apps/challenges/admin.py\n@@ -14,8 +14,9 @@\n \n @admin.register(Challenge)\n class ChallengeAdmin(ImportExportTimeStampedAdmin):\n- list_display = (\"title\", \"start_date\", \"end_date\", \"crea...
983
181
gh_patches_debug_5820
rasdani/github-patches
git_diff
aws__aws-cli-761
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- datapipeline query-object --query argument is shadowed The top level `--query` option shadows the `--query` from datapipeline query-object. This can be addressed in the argrename customization model. We can...
diff --git a/awscli/customizations/argrename.py b/awscli/customizations/argrename.py --- a/awscli/customizations/argrename.py +++ b/awscli/customizations/argrename.py @@ -26,6 +26,11 @@ 'ec2.create-image.no-no-reboot': 'reboot', 'ec2.*.no-egress': 'ingress', 'ec2.*.no-disable-api-termination': 'enable-ap...
{"golden_diff": "diff --git a/awscli/customizations/argrename.py b/awscli/customizations/argrename.py\n--- a/awscli/customizations/argrename.py\n+++ b/awscli/customizations/argrename.py\n@@ -26,6 +26,11 @@\n 'ec2.create-image.no-no-reboot': 'reboot',\n 'ec2.*.no-egress': 'ingress',\n 'ec2.*.no-disable-api-t...
829
176
gh_patches_debug_17055
rasdani/github-patches
git_diff
svthalia__concrexit-1680
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Show non-current FoodEvents in API v2. ### Describe the bug The `api/v2/food/events/` and `api/v2/food/events/<pk>/` endpoints currently do not return FoodEvents that are not current. I think to change t...
diff --git a/website/pizzas/api/v2/views.py b/website/pizzas/api/v2/views.py --- a/website/pizzas/api/v2/views.py +++ b/website/pizzas/api/v2/views.py @@ -28,7 +28,7 @@ """Returns an overview of all food events.""" serializer_class = FoodEventSerializer - queryset = FoodEvent.current_objects.all() + q...
{"golden_diff": "diff --git a/website/pizzas/api/v2/views.py b/website/pizzas/api/v2/views.py\n--- a/website/pizzas/api/v2/views.py\n+++ b/website/pizzas/api/v2/views.py\n@@ -28,7 +28,7 @@\n \"\"\"Returns an overview of all food events.\"\"\"\n \n serializer_class = FoodEventSerializer\n- queryset = FoodEven...
1,460
190
gh_patches_debug_30501
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-306
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Calendar used as a trigger for automations never fire. So I created an automation that uses the generated calendar to notify me when I have to put the bins out using the new calendar triggers. However, the...
diff --git a/custom_components/waste_collection_schedule/calendar.py b/custom_components/waste_collection_schedule/calendar.py --- a/custom_components/waste_collection_schedule/calendar.py +++ b/custom_components/waste_collection_schedule/calendar.py @@ -1,9 +1,11 @@ """Calendar platform support for Waste Collection S...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/calendar.py b/custom_components/waste_collection_schedule/calendar.py\n--- a/custom_components/waste_collection_schedule/calendar.py\n+++ b/custom_components/waste_collection_schedule/calendar.py\n@@ -1,9 +1,11 @@\n \"\"\"Calendar platform suppor...
1,596
392
gh_patches_debug_36612
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-2633
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider officedepot is broken During the global build at 2021-08-18-14-42-26, spider **officedepot** failed with **0 features** and **0 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-08-18...
diff --git a/locations/spiders/officedepot.py b/locations/spiders/officedepot.py --- a/locations/spiders/officedepot.py +++ b/locations/spiders/officedepot.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +import json import scrapy from locations.items import GeojsonPointItem @@ -7,8 +8,41 @@ class OfficedepotSpider(...
{"golden_diff": "diff --git a/locations/spiders/officedepot.py b/locations/spiders/officedepot.py\n--- a/locations/spiders/officedepot.py\n+++ b/locations/spiders/officedepot.py\n@@ -1,4 +1,5 @@\n # -*- coding: utf-8 -*-\n+import json\n import scrapy\n \n from locations.items import GeojsonPointItem\n@@ -7,8 +8,41 @@\n...
1,058
777
gh_patches_debug_29567
rasdani/github-patches
git_diff
GPflow__GPflow-1350
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- tf2.2-rc1 gast requirement Hi, gpflow 2.0.0-rc1 has gast requirement 0.2.2. TensorFlow has gast requirement 0.3.3 from 2.2-rc1, which is incompatible with gpflow requirement. Best Regards, Marco ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -18,8 +18,7 @@ 'numpy>=1.10.0', 'scipy>=0.18.0', 'multipledispatch>=0.4.9', - 'tabulate', - 'gast==0.2.2', + 'tabulate' ] if not is_py37: @@ -32,6 +31,22 @@ tf_cpu = 'tensorflow' tf_gpu = 'tensorflow-gpu' + +# for latest_v...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -18,8 +18,7 @@\n 'numpy>=1.10.0',\n 'scipy>=0.18.0',\n 'multipledispatch>=0.4.9',\n- 'tabulate',\n- 'gast==0.2.2',\n+ 'tabulate'\n ]\n \n if not is_py37:\n@@ -32,6 +31,22 @@\n tf_cpu = 'tensorflow'\n tf_gpu = 'ten...
1,085
462
gh_patches_debug_18286
rasdani/github-patches
git_diff
spotify__luigi-908
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Exception when a command-line parametter contains a non-ascii character Hey, We've just upgraded to Luigi 1.1.2, and now we get an error when launching Tasks that have utf-8 characters on the parameters. (u...
diff --git a/luigi/lock.py b/luigi/lock.py --- a/luigi/lock.py +++ b/luigi/lock.py @@ -24,6 +24,8 @@ import hashlib import os +from luigi import six + def getpcmd(pid): """ @@ -32,16 +34,23 @@ :param pid: """ cmd = 'ps -p %s -o command=' % (pid,) - p = os.popen(cmd, 'r') - return p.read...
{"golden_diff": "diff --git a/luigi/lock.py b/luigi/lock.py\n--- a/luigi/lock.py\n+++ b/luigi/lock.py\n@@ -24,6 +24,8 @@\n import hashlib\n import os\n \n+from luigi import six\n+\n \n def getpcmd(pid):\n \"\"\"\n@@ -32,16 +34,23 @@\n :param pid:\n \"\"\"\n cmd = 'ps -p %s -o command=' % (pid,)\n- p ...
1,724
313
gh_patches_debug_22058
rasdani/github-patches
git_diff
pex-tool__pex-258
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update PyPI page It would be nice if the `README.rst` were included in the `setup.py` `long_description` in addition to the `CHANGES.rst` so that users browsing PyPI could read the README without having to tr...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -5,9 +5,11 @@ from setuptools import setup +with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as fp: + LONG_DESCRIPTION = fp.read() + '\n' with open(os.path.join(os.path.dirname(__file__), 'CHANGES.rst')) as fp: - LONG_DESCRIPTIO...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -5,9 +5,11 @@\n \n from setuptools import setup\n \n+with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as fp:\n+ LONG_DESCRIPTION = fp.read() + '\\n'\n \n with open(os.path.join(os.path.dirname(__file__), 'CHANGES.rst'...
926
298
gh_patches_debug_19082
rasdani/github-patches
git_diff
mkdocs__mkdocs-1322
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Version to 0.17.0 See discussion in #1166. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `mkdocs/contrib/l...
diff --git a/mkdocs/contrib/legacy_search/__init__.py b/mkdocs/contrib/legacy_search/__init__.py --- a/mkdocs/contrib/legacy_search/__init__.py +++ b/mkdocs/contrib/legacy_search/__init__.py @@ -17,11 +17,13 @@ def on_config(self, config, **kwargs): "Add plugin templates and scripts to config." - ...
{"golden_diff": "diff --git a/mkdocs/contrib/legacy_search/__init__.py b/mkdocs/contrib/legacy_search/__init__.py\n--- a/mkdocs/contrib/legacy_search/__init__.py\n+++ b/mkdocs/contrib/legacy_search/__init__.py\n@@ -17,11 +17,13 @@\n \n def on_config(self, config, **kwargs):\n \"Add plugin templates and scri...
660
301
gh_patches_debug_79
rasdani/github-patches
git_diff
flairNLP__flair-447
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- __version__ attribute? I'm always frustrated when flair doesn't have a __version__attribute... :-) Please, add a __version__attribute to the module. Thank you! DC --- END ISSUE --- Below are some c...
diff --git a/flair/__init__.py b/flair/__init__.py --- a/flair/__init__.py +++ b/flair/__init__.py @@ -7,6 +7,7 @@ import logging.config +__version__ = "0.4.1" logging.config.dictConfig({ 'version': 1,
{"golden_diff": "diff --git a/flair/__init__.py b/flair/__init__.py\n--- a/flair/__init__.py\n+++ b/flair/__init__.py\n@@ -7,6 +7,7 @@\n \n import logging.config\n \n+__version__ = \"0.4.1\"\n \n logging.config.dictConfig({\n 'version': 1,\n", "issue": "__version__ attribute?\nI'm always frustrated when flair doesn...
616
76
gh_patches_debug_29935
rasdani/github-patches
git_diff
google__jax-2481
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add multivariate normal pdf evalutation to jax.scipy It would be great to have a Multivariate gaussian pdf/logpdf implementation, similar to the univariate version in [jax.scipy.stats.norm](https://jax.readth...
diff --git a/jax/scipy/stats/multivariate_normal.py b/jax/scipy/stats/multivariate_normal.py --- a/jax/scipy/stats/multivariate_normal.py +++ b/jax/scipy/stats/multivariate_normal.py @@ -17,27 +17,29 @@ import scipy.stats as osp_stats from ... import lax +from ...lax_linalg import cholesky, triangular_solve +from ....
{"golden_diff": "diff --git a/jax/scipy/stats/multivariate_normal.py b/jax/scipy/stats/multivariate_normal.py\n--- a/jax/scipy/stats/multivariate_normal.py\n+++ b/jax/scipy/stats/multivariate_normal.py\n@@ -17,27 +17,29 @@\n import scipy.stats as osp_stats\n \n from ... import lax\n+from ...lax_linalg import cholesky, ...
1,053
655
gh_patches_debug_17452
rasdani/github-patches
git_diff
streamlink__streamlink-5908
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plugins.vkplay: vkplay.live has moved to another domain (live.vkplay.ru) ### Checklist - [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue](https://gi...
diff --git a/src/streamlink/plugins/vkplay.py b/src/streamlink/plugins/vkplay.py --- a/src/streamlink/plugins/vkplay.py +++ b/src/streamlink/plugins/vkplay.py @@ -1,6 +1,6 @@ """ $description Russian live-streaming platform for gaming and esports, owned by VKontakte. -$url vkplay.live +$url live.vkplay.ru $type live...
{"golden_diff": "diff --git a/src/streamlink/plugins/vkplay.py b/src/streamlink/plugins/vkplay.py\n--- a/src/streamlink/plugins/vkplay.py\n+++ b/src/streamlink/plugins/vkplay.py\n@@ -1,6 +1,6 @@\n \"\"\"\n $description Russian live-streaming platform for gaming and esports, owned by VKontakte.\n-$url vkplay.live\n+$url...
1,762
261
gh_patches_debug_958
rasdani/github-patches
git_diff
nvaccess__nvda-10921
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- VS Code: Reduce the number of times one has to use NVDA+Space to switch modes. I just filed [this issue](https://github.com/microsoft/vscode/issues/93087) against VS Code where I suggest to use targeted role=...
diff --git a/source/appModules/code.py b/source/appModules/code.py deleted file mode 100644 --- a/source/appModules/code.py +++ /dev/null @@ -1,10 +0,0 @@ -#appModules/code.py -#A part of NonVisual Desktop Access (NVDA) -#Copyright (C) 2019 NV Access Limited, Babbage B.V. -#This file is covered by the GNU General Publi...
{"golden_diff": "diff --git a/source/appModules/code.py b/source/appModules/code.py\ndeleted file mode 100644\n--- a/source/appModules/code.py\n+++ /dev/null\n@@ -1,10 +0,0 @@\n-#appModules/code.py\n-#A part of NonVisual Desktop Access (NVDA)\n-#Copyright (C) 2019 NV Access Limited, Babbage B.V.\n-#This file is covered...
535
139
gh_patches_debug_27836
rasdani/github-patches
git_diff
encode__starlette-151
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wildcard domains and TrustedhostMiddleware Support for wildcard domains --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILE...
diff --git a/starlette/middleware/trustedhost.py b/starlette/middleware/trustedhost.py --- a/starlette/middleware/trustedhost.py +++ b/starlette/middleware/trustedhost.py @@ -4,10 +4,17 @@ import typing +ENFORCE_DOMAIN_WILDCARD = "Domain wildcard patterns must be like '*.example.com'." + + class TrustedHostMiddle...
{"golden_diff": "diff --git a/starlette/middleware/trustedhost.py b/starlette/middleware/trustedhost.py\n--- a/starlette/middleware/trustedhost.py\n+++ b/starlette/middleware/trustedhost.py\n@@ -4,10 +4,17 @@\n import typing\n \n \n+ENFORCE_DOMAIN_WILDCARD = \"Domain wildcard patterns must be like '*.example.com'.\"\n+...
492
355
gh_patches_debug_30801
rasdani/github-patches
git_diff
numba__numba-1719
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- LinkedList jitclass example is broken ``` Internal error: TypeError: Invalid store of %"deferred.4329823704.value" to {i8*, {i32, {%"deferred.4329823704.data", i8}}*} in <numba.datamodel.models.OptionalModel ...
diff --git a/numba/targets/optional.py b/numba/targets/optional.py --- a/numba/targets/optional.py +++ b/numba/targets/optional.py @@ -20,6 +20,39 @@ return cgutils.false_bit +@lower_cast(types.Optional, types.Optional) +def optional_to_optional(context, builder, fromty, toty, val): + """ + The handling ...
{"golden_diff": "diff --git a/numba/targets/optional.py b/numba/targets/optional.py\n--- a/numba/targets/optional.py\n+++ b/numba/targets/optional.py\n@@ -20,6 +20,39 @@\n return cgutils.false_bit\n \n \n+@lower_cast(types.Optional, types.Optional)\n+def optional_to_optional(context, builder, fromty, toty, val):\n+...
743
525
gh_patches_debug_14145
rasdani/github-patches
git_diff
facebookresearch__nevergrad-11
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Hello-world install question ## Steps to reproduce Install nevergrad ``` pip3 install -e git+git@github.com:facebookresearch/nevergrad@master#egg=nevergrad Obtaining nevergrad from git+git@github.com:...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -7,14 +7,22 @@ # from distutils.core import setup from setuptools import setup - with open('requirements.txt') as f: requirements = f.read().splitlines() - -setup(name='nevergrad', - version='0.1.0', - description='Gradient-free opt...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -7,14 +7,22 @@\n # from distutils.core import setup\n from setuptools import setup\n \n-\n with open('requirements.txt') as f:\n requirements = f.read().splitlines()\n \n-\n-setup(name='nevergrad',\n- version='0.1.0',\n- ...
870
219
gh_patches_debug_33030
rasdani/github-patches
git_diff
pypa__cibuildwheel-1613
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- setup.py setup() not detected in __name__ == '__main__' block ### Description My setup.py setup() includes: python_requires=">=3.8" However cibuildwheel still tries and fails to compile under Pytho...
diff --git a/cibuildwheel/projectfiles.py b/cibuildwheel/projectfiles.py --- a/cibuildwheel/projectfiles.py +++ b/cibuildwheel/projectfiles.py @@ -8,6 +8,43 @@ from ._compat import tomllib +def get_parent(node: ast.AST | None, depth: int = 1) -> ast.AST | None: + for _ in range(depth): + node = getattr(n...
{"golden_diff": "diff --git a/cibuildwheel/projectfiles.py b/cibuildwheel/projectfiles.py\n--- a/cibuildwheel/projectfiles.py\n+++ b/cibuildwheel/projectfiles.py\n@@ -8,6 +8,43 @@\n from ._compat import tomllib\n \n \n+def get_parent(node: ast.AST | None, depth: int = 1) -> ast.AST | None:\n+ for _ in range(depth):\...
1,180
596
gh_patches_debug_13024
rasdani/github-patches
git_diff
vega__altair-2570
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tooltip doesn't support "image" key My understanding is that to render tooltips, Altair uses the `vega-tooltip` plugin. Per that project's [README](https://github.com/vega/vega-tooltip), one awesome feature t...
diff --git a/altair/examples/image_tooltip.py b/altair/examples/image_tooltip.py --- a/altair/examples/image_tooltip.py +++ b/altair/examples/image_tooltip.py @@ -3,7 +3,9 @@ ------------- This example shows how to render images in tooltips. Either URLs or local file paths can be used to reference -the images. +the ...
{"golden_diff": "diff --git a/altair/examples/image_tooltip.py b/altair/examples/image_tooltip.py\n--- a/altair/examples/image_tooltip.py\n+++ b/altair/examples/image_tooltip.py\n@@ -3,7 +3,9 @@\n -------------\n This example shows how to render images in tooltips.\n Either URLs or local file paths can be used to refer...
952
195
gh_patches_debug_2489
rasdani/github-patches
git_diff
rucio__rucio-2776
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Account and Scope new types Motivation ---------- For multi-vo the internal representation of scope and account will need to be different from the external representation. The translations for these should ...
diff --git a/lib/rucio/vcsversion.py b/lib/rucio/vcsversion.py --- a/lib/rucio/vcsversion.py +++ b/lib/rucio/vcsversion.py @@ -4,8 +4,8 @@ ''' VERSION_INFO = { 'final': True, - 'version': '1.20.3', - 'branch_nick': 'patch-0-Release__Rucio_1_20_3_preparation', - 'revision_id': 'f05e019f7178590718bf3f1eee...
{"golden_diff": "diff --git a/lib/rucio/vcsversion.py b/lib/rucio/vcsversion.py\n--- a/lib/rucio/vcsversion.py\n+++ b/lib/rucio/vcsversion.py\n@@ -4,8 +4,8 @@\n '''\n VERSION_INFO = {\n 'final': True,\n- 'version': '1.20.3',\n- 'branch_nick': 'patch-0-Release__Rucio_1_20_3_preparation',\n- 'revision_id': '...
497
254
gh_patches_debug_1579
rasdani/github-patches
git_diff
elastic__apm-agent-python-1758
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- KeyError:'db' when capturing elasticsearch span context **Describe the bug**: ... **To Reproduce** 1. Instrument via capture serverless 2. Perform an async_scan: ```python async with AsyncElasticsear...
diff --git a/elasticapm/instrumentation/packages/asyncio/elasticsearch.py b/elasticapm/instrumentation/packages/asyncio/elasticsearch.py --- a/elasticapm/instrumentation/packages/asyncio/elasticsearch.py +++ b/elasticapm/instrumentation/packages/asyncio/elasticsearch.py @@ -106,6 +106,6 @@ hits = self._g...
{"golden_diff": "diff --git a/elasticapm/instrumentation/packages/asyncio/elasticsearch.py b/elasticapm/instrumentation/packages/asyncio/elasticsearch.py\n--- a/elasticapm/instrumentation/packages/asyncio/elasticsearch.py\n+++ b/elasticapm/instrumentation/packages/asyncio/elasticsearch.py\n@@ -106,6 +106,6 @@\n \n ...
1,947
132
gh_patches_debug_6983
rasdani/github-patches
git_diff
frappe__frappe-6179
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "StartTLS is not supported"-Bug in LDAP integrations `self` is used in the method `authenticate_ldap_user` which results in the Python exception: ``` NameError: global name 'self' is not defined ``` https...
diff --git a/frappe/integrations/doctype/ldap_settings/ldap_settings.py b/frappe/integrations/doctype/ldap_settings/ldap_settings.py --- a/frappe/integrations/doctype/ldap_settings/ldap_settings.py +++ b/frappe/integrations/doctype/ldap_settings/ldap_settings.py @@ -86,7 +86,7 @@ try: try: # set TLS settings f...
{"golden_diff": "diff --git a/frappe/integrations/doctype/ldap_settings/ldap_settings.py b/frappe/integrations/doctype/ldap_settings/ldap_settings.py\n--- a/frappe/integrations/doctype/ldap_settings/ldap_settings.py\n+++ b/frappe/integrations/doctype/ldap_settings/ldap_settings.py\n@@ -86,7 +86,7 @@\n \ttry:\n \t\ttry:...
1,929
167
gh_patches_debug_9901
rasdani/github-patches
git_diff
bridgecrewio__checkov-1062
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_AZURE_12: Retention policy of 0 is not supported **Describe the bug** When setting the `retention_period.days` value on `azurerm_network_watcher_flow_log` to `0`, `CKV_AZURE_12` still fails. `0` is the v...
diff --git a/checkov/terraform/checks/resource/azure/NetworkWatcherFlowLogPeriod.py b/checkov/terraform/checks/resource/azure/NetworkWatcherFlowLogPeriod.py --- a/checkov/terraform/checks/resource/azure/NetworkWatcherFlowLogPeriod.py +++ b/checkov/terraform/checks/resource/azure/NetworkWatcherFlowLogPeriod.py @@ -16,7 ...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/azure/NetworkWatcherFlowLogPeriod.py b/checkov/terraform/checks/resource/azure/NetworkWatcherFlowLogPeriod.py\n--- a/checkov/terraform/checks/resource/azure/NetworkWatcherFlowLogPeriod.py\n+++ b/checkov/terraform/checks/resource/azure/NetworkWatcherFlowLog...
867
182
gh_patches_debug_30688
rasdani/github-patches
git_diff
joke2k__faker-592
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reseed code broke in 0.8 unnecessarily Commit ea4f189bbff1925d7a7e2d7cbc6e91e2e8a9a3f3 changed the name of the `random.Random()` object in `faker.generator` from `random` to `mod_random`, re-exposing the `ran...
diff --git a/faker/generator.py b/faker/generator.py --- a/faker/generator.py +++ b/faker/generator.py @@ -3,11 +3,12 @@ from __future__ import unicode_literals import re -import random +import random as random_module _re_token = re.compile(r'\{\{(\s?)(\w+)(\s?)\}\}') -mod_random = random.Random() +random = ra...
{"golden_diff": "diff --git a/faker/generator.py b/faker/generator.py\n--- a/faker/generator.py\n+++ b/faker/generator.py\n@@ -3,11 +3,12 @@\n from __future__ import unicode_literals\n \n import re\n-import random\n+import random as random_module\n \n \n _re_token = re.compile(r'\\{\\{(\\s?)(\\w+)(\\s?)\\}\\}')\n-mod_r...
1,596
407
gh_patches_debug_4387
rasdani/github-patches
git_diff
falconry__falcon-1593
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Official support for CPython 3.8 CPython 3.8.0 was [released Oct 14, 2019](https://www.python.org/downloads/release/python-380/). Make Falcon offically support CPython 3.8: - [ ] README - [ ] Docker imag...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -133,6 +133,7 @@ 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', ], keywords='wsgi web api f...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -133,6 +133,7 @@\n 'Programming Language :: Python :: 3.5',\n 'Programming Language :: Python :: 3.6',\n 'Programming Language :: Python :: 3.7',\n+ 'Programming Language :: Python :: 3.8',\n ],\n ...
1,812
105