problem_id
stringlengths
18
21
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
54
prompt
stringlengths
1.28k
64.2k
golden_diff
stringlengths
166
811
verification_info
stringlengths
604
118k
gh_patches_debug_0
rasdani/github-patches
git_diff
conda-forge__conda-smithy-864
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Autogenerated README.md missing final newline ## The Problem As I've confirmed is the case on multiple repos here, including our own ``spyder-feedstock`` and ``spyder-kernels-feedstock`` as well as two arb...
diff --git a/conda_smithy/vendored/__init__.py b/conda_smithy/vendored/__init__.py --- a/conda_smithy/vendored/__init__.py +++ b/conda_smithy/vendored/__init__.py @@ -0,0 +1 @@ +
{"golden_diff": "diff --git a/conda_smithy/vendored/__init__.py b/conda_smithy/vendored/__init__.py\n--- a/conda_smithy/vendored/__init__.py\n+++ b/conda_smithy/vendored/__init__.py\n@@ -0,0 +1 @@\n+\n", "issue": "Autogenerated README.md missing final newline\n## The Problem\r\n\r\nAs I've confirmed is the case on mult...
gh_patches_debug_1
rasdani/github-patches
git_diff
microsoft__AzureTRE-1754
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release version 0.3 ## Description As a TRE developer I want to release current code base as version 0.3 So that people can use a more stable version going forward ## Acceptance criteria - [ ] All...
diff --git a/api_app/_version.py b/api_app/_version.py --- a/api_app/_version.py +++ b/api_app/_version.py @@ -1 +1 @@ -__version__ = "0.2.28" +__version__ = "0.3.0"
{"golden_diff": "diff --git a/api_app/_version.py b/api_app/_version.py\n--- a/api_app/_version.py\n+++ b/api_app/_version.py\n@@ -1 +1 @@\n-__version__ = \"0.2.28\"\n+__version__ = \"0.3.0\"\n", "issue": "Release version 0.3\n## Description\r\n\r\nAs a TRE developer \r\nI want to release current code base as version 0...
gh_patches_debug_2
rasdani/github-patches
git_diff
OpenEnergyPlatform__oeplatform-1475
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Scenario bundles: Output datasets render weirdly ## Description of the issue I added an output dataset for the WAM scenario for this factsheet: https://openenergy-platform.org/scenario-bundles/id/95a65aca-...
diff --git a/oeplatform/__init__.py b/oeplatform/__init__.py --- a/oeplatform/__init__.py +++ b/oeplatform/__init__.py @@ -1 +1 @@ -__version__ = "0.16.1" +__version__ = "0.16.2"
{"golden_diff": "diff --git a/oeplatform/__init__.py b/oeplatform/__init__.py\n--- a/oeplatform/__init__.py\n+++ b/oeplatform/__init__.py\n@@ -1 +1 @@\n-__version__ = \"0.16.1\"\n+__version__ = \"0.16.2\"\n", "issue": "Scenario bundles: Output datasets render weirdly\n## Description of the issue\r\n\r\nI added an outpu...
gh_patches_debug_3
rasdani/github-patches
git_diff
OCHA-DAP__hdx-ckan-1655
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Main Nav changes to accomodate "Feedback" button Updating the action based on discussions: 1. Remove `Contact` from main nav. 2. Between `About` and `Submit Data`, add a button `Feedback`. 3. While you are...
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py --- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py +++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py @@ -1 +1 @@ -hdx_version = 'v0.4.5' +hdx_version = 'v0.4.6'
{"golden_diff": "diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n--- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n+++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n@@ -1 +1 @@\n-hdx_version = 'v0.4.5'\n+hdx_version = 'v0.4.6'\n", "issue": "Main Nav ...
gh_patches_debug_4
rasdani/github-patches
git_diff
OCHA-DAP__hdx-ckan-2076
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Login page: change spacing on left panel The spacing in the left panel is odd. Change to something like the below: ![image](https://cloud.githubusercontent.com/assets/1654485/5451121/6d3fa152-850d-11e4-87...
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py --- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py +++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py @@ -1 +1 @@ -hdx_version = 'v0.5.13' +hdx_version = 'v0.5.15'
{"golden_diff": "diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n--- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n+++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py\n@@ -1 +1 @@\n-hdx_version = 'v0.5.13'\n+hdx_version = 'v0.5.15'\n", "issue": "Login p...
gh_patches_debug_5
rasdani/github-patches
git_diff
sql-machine-learning__elasticdl-1463
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- No module named 'elasticdl.python.elasticdl.layers' on master ``` Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) ...
diff --git a/elasticdl/python/elasticdl/__init__.py b/elasticdl/python/elasticdl/__init__.py --- a/elasticdl/python/elasticdl/__init__.py +++ b/elasticdl/python/elasticdl/__init__.py @@ -0,0 +1 @@ +from elasticdl.python.elasticdl import layers # noqa: F401
{"golden_diff": "diff --git a/elasticdl/python/elasticdl/__init__.py b/elasticdl/python/elasticdl/__init__.py\n--- a/elasticdl/python/elasticdl/__init__.py\n+++ b/elasticdl/python/elasticdl/__init__.py\n@@ -0,0 +1 @@\n+from elasticdl.python.elasticdl import layers # noqa: F401\n", "issue": "No module named 'elasticdl....
gh_patches_debug_6
rasdani/github-patches
git_diff
codespell-project__codespell-2626
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `python setup.py check` → `twine check` Because `setup.py ...` is deprecated, we need an alternative to `setup.py check` such as `twine`. --- END ISSUE --- Below are some code segments, each from a relevant...
diff --git a/setup.py b/setup.py deleted file mode 100755 --- a/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -#! /usr/bin/env python - -from setuptools import setup - -if __name__ == "__main__": - setup()
{"golden_diff": "diff --git a/setup.py b/setup.py\ndeleted file mode 100755\n--- a/setup.py\n+++ /dev/null\n@@ -1,6 +0,0 @@\n-#! /usr/bin/env python\n-\n-from setuptools import setup\n-\n-if __name__ == \"__main__\":\n- setup()\n", "issue": "`python setup.py check` \u2192 `twine check`\nBecause `setup.py ...` is dep...
gh_patches_debug_7
rasdani/github-patches
git_diff
django__channels-1860
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Current version on Pypi is incompatible with Django 4.0+ The current version available on Pypi, channels-3.0.4 still use the providing_args keyword for signals. Since this keyword has been removed from Djang...
diff --git a/channels/__init__.py b/channels/__init__.py --- a/channels/__init__.py +++ b/channels/__init__.py @@ -1,4 +1,4 @@ -__version__ = "3.0.4" +__version__ = "3.0.5" try: import django
{"golden_diff": "diff --git a/channels/__init__.py b/channels/__init__.py\n--- a/channels/__init__.py\n+++ b/channels/__init__.py\n@@ -1,4 +1,4 @@\n-__version__ = \"3.0.4\"\n+__version__ = \"3.0.5\"\n \n try:\n import django\n", "issue": "Current version on Pypi is incompatible with Django 4.0+\nThe current version...
gh_patches_debug_8
rasdani/github-patches
git_diff
MongoEngine__mongoengine-2224
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- New release Hi, When is coming new release, because I can't update to mongodb 4.2 because of this: https://github.com/MongoEngine/mongoengine/pull/2160/commits/47f8a126ca167cb8fe020e3cc5604b155dfcdebc. ...
diff --git a/mongoengine/__init__.py b/mongoengine/__init__.py --- a/mongoengine/__init__.py +++ b/mongoengine/__init__.py @@ -28,7 +28,7 @@ ) -VERSION = (0, 18, 2) +VERSION = (0, 19, 0) def get_version():
{"golden_diff": "diff --git a/mongoengine/__init__.py b/mongoengine/__init__.py\n--- a/mongoengine/__init__.py\n+++ b/mongoengine/__init__.py\n@@ -28,7 +28,7 @@\n )\n \n \n-VERSION = (0, 18, 2)\n+VERSION = (0, 19, 0)\n \n \n def get_version():\n", "issue": "New release\nHi,\r\n\r\nWhen is coming new release, because I ...
gh_patches_debug_9
rasdani/github-patches
git_diff
scikit-image__scikit-image-6307
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Undefined names in Python code found with flake8 ## Description ## Way to reproduce [flake8](http://flake8.pycqa.org) testing of https://github.com/scikit-image/scikit-image on Python 3.7.1 $ __flake...
diff --git a/doc/ext/notebook_doc.py b/doc/ext/notebook_doc.py --- a/doc/ext/notebook_doc.py +++ b/doc/ext/notebook_doc.py @@ -1,4 +1,4 @@ -__all__ = ['python_to_notebook', 'Notebook'] +__all__ = ['Notebook'] import json import copy
{"golden_diff": "diff --git a/doc/ext/notebook_doc.py b/doc/ext/notebook_doc.py\n--- a/doc/ext/notebook_doc.py\n+++ b/doc/ext/notebook_doc.py\n@@ -1,4 +1,4 @@\n-__all__ = ['python_to_notebook', 'Notebook']\n+__all__ = ['Notebook']\n \n import json\n import copy\n", "issue": "Undefined names in Python code found with fl...
gh_patches_debug_10
rasdani/github-patches
git_diff
RedHatInsights__insights-core-1452
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Run Flake8 lint on RHEL6 Currently, flake8 is run only on RHEL7 and 8 and not on RHEL6. According to [the documentation](http://flake8.pycqa.org/en/latest/#installation) it is necessary to run flake8 with the...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -64,7 +64,7 @@ ]) linting = set([ - 'flake8==3.3.0', + 'flake8==2.6.2', ]) optional = set([
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -64,7 +64,7 @@\n ])\n \n linting = set([\n- 'flake8==3.3.0',\n+ 'flake8==2.6.2',\n ])\n \n optional = set([\n", "issue": "Run Flake8 lint on RHEL6\nCurrently, flake8 is run only on RHEL7 and 8 and not on RHEL6. According to [the...
gh_patches_debug_11
rasdani/github-patches
git_diff
openstates__openstates-scrapers-2289
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- InsecureRequestWarning log spam Scrape logs for https sites are spammed with this INFO-level message on every HTTPS request: ``` /opt/openstates/venv-pupa/lib/python3.5/site-packages/urllib3/connectionpool....
diff --git a/openstates/__init__.py b/openstates/__init__.py --- a/openstates/__init__.py +++ b/openstates/__init__.py @@ -0,0 +1,4 @@ +import urllib3 + +# Quell InsecureRequestWarning: Unverified HTTPS request warnings +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
{"golden_diff": "diff --git a/openstates/__init__.py b/openstates/__init__.py\n--- a/openstates/__init__.py\n+++ b/openstates/__init__.py\n@@ -0,0 +1,4 @@\n+import urllib3\n+\n+# Quell InsecureRequestWarning: Unverified HTTPS request warnings\n+urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)\n", "is...
gh_patches_debug_12
rasdani/github-patches
git_diff
jazzband__django-oauth-toolkit-1126
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fix(tasks): fix error caused by relative import ## Description of the Change Running `oauth2_provider.tasks.clear_tokens` results in an error e.g.: ```python >>> from oauth2_provider.tasks import clear_t...
diff --git a/oauth2_provider/tasks.py b/oauth2_provider/tasks.py deleted file mode 100644 --- a/oauth2_provider/tasks.py +++ /dev/null @@ -1,8 +0,0 @@ -from celery import shared_task - - -@shared_task -def clear_tokens(): - from ...models import clear_expired # noqa - - clear_expired()
{"golden_diff": "diff --git a/oauth2_provider/tasks.py b/oauth2_provider/tasks.py\ndeleted file mode 100644\n--- a/oauth2_provider/tasks.py\n+++ /dev/null\n@@ -1,8 +0,0 @@\n-from celery import shared_task\n-\n-\n-@shared_task\n-def clear_tokens():\n- from ...models import clear_expired # noqa\n-\n- clear_expired...
gh_patches_debug_13
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-3190
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 0.1.3 ## 2023-08-16 ```[tasklist] ### Tasks - [x] Cut 0.1.3 release branch, freeze code - [x] Update version number in all places in the new branch - [x] Make an image from the branch with tag `0...
diff --git a/mathesar/__init__.py b/mathesar/__init__.py --- a/mathesar/__init__.py +++ b/mathesar/__init__.py @@ -1,3 +1,3 @@ default_app_config = 'mathesar.apps.MathesarConfig' -__version__ = "0.1.2" +__version__ = "0.1.3"
{"golden_diff": "diff --git a/mathesar/__init__.py b/mathesar/__init__.py\n--- a/mathesar/__init__.py\n+++ b/mathesar/__init__.py\n@@ -1,3 +1,3 @@\n default_app_config = 'mathesar.apps.MathesarConfig'\n \n-__version__ = \"0.1.2\"\n+__version__ = \"0.1.3\"\n", "issue": "Release 0.1.3\n## 2023-08-16\r\n```[tasklist]\r\n#...
gh_patches_debug_14
rasdani/github-patches
git_diff
magenta__magenta-1079
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error in running Onsets and Frames Colab Notebook Hi @cghawthorne I am using your [Colab notebook](https://colab.research.google.com/notebook#fileId=/v2/external/notebooks/magenta/onsets_frames_transcription...
diff --git a/magenta/version.py b/magenta/version.py --- a/magenta/version.py +++ b/magenta/version.py @@ -17,4 +17,4 @@ pulling in all the dependencies in __init__.py. """ -__version__ = '0.3.5' +__version__ = '0.3.6'
{"golden_diff": "diff --git a/magenta/version.py b/magenta/version.py\n--- a/magenta/version.py\n+++ b/magenta/version.py\n@@ -17,4 +17,4 @@\n pulling in all the dependencies in __init__.py.\n \"\"\"\n \n-__version__ = '0.3.5'\n+__version__ = '0.3.6'\n", "issue": "Error in running Onsets and Frames Colab Notebook\nHi @...
gh_patches_debug_15
rasdani/github-patches
git_diff
Anselmoo__spectrafit-715
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Feature]: Add python 3.11 support ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Missing Feature Add python 3.11 support ### Possible Solution _No respons...
diff --git a/spectrafit/__init__.py b/spectrafit/__init__.py --- a/spectrafit/__init__.py +++ b/spectrafit/__init__.py @@ -1,2 +1,2 @@ """SpectraFit, fast command line tool for fitting data.""" -__version__ = "0.16.6" +__version__ = "0.16.7"
{"golden_diff": "diff --git a/spectrafit/__init__.py b/spectrafit/__init__.py\n--- a/spectrafit/__init__.py\n+++ b/spectrafit/__init__.py\n@@ -1,2 +1,2 @@\n \"\"\"SpectraFit, fast command line tool for fitting data.\"\"\"\n-__version__ = \"0.16.6\"\n+__version__ = \"0.16.7\"\n", "issue": "[Feature]: Add python 3.11 sup...
gh_patches_debug_16
rasdani/github-patches
git_diff
typeddjango__django-stubs-1429
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bump mypy from 1.1.1 to 1.2.0 Bumps [mypy](https://github.com/python/mypy) from 1.1.1 to 1.2.0. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python/mypy/commit/4f47dfb64dff920c237...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ ] extras_require = { - "compatible-mypy": ["mypy>=1.1.1,<1.2"], + "compatible-mypy": ["mypy>=1.2.0,<1.3"], } setup(
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -31,7 +31,7 @@\n ]\n \n extras_require = {\n- \"compatible-mypy\": [\"mypy>=1.1.1,<1.2\"],\n+ \"compatible-mypy\": [\"mypy>=1.2.0,<1.3\"],\n }\n \n setup(\n", "issue": "Bump mypy from 1.1.1 to 1.2.0\nBumps [mypy](https://github....
gh_patches_debug_17
rasdani/github-patches
git_diff
typeddjango__django-stubs-1496
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bump mypy from 1.2.0 to 1.3.0 Bumps [mypy](https://github.com/python/mypy) from 1.2.0 to 1.3.0. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python/mypy/commit/9df39ab1801369cb494...
diff --git a/setup.py b/setup.py old mode 100755 new mode 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ ] extras_require = { - "compatible-mypy": ["mypy>=1.2.0,<1.3"], + "compatible-mypy": ["mypy>=1.3.0,<1.4"], } setup(
{"golden_diff": "diff --git a/setup.py b/setup.py\nold mode 100755\nnew mode 100644\n--- a/setup.py\n+++ b/setup.py\n@@ -32,7 +32,7 @@\n ]\n \n extras_require = {\n- \"compatible-mypy\": [\"mypy>=1.2.0,<1.3\"],\n+ \"compatible-mypy\": [\"mypy>=1.3.0,<1.4\"],\n }\n \n setup(\n", "issue": "Bump mypy from 1.2.0 to 1...
gh_patches_debug_18
rasdani/github-patches
git_diff
freqtrade__freqtrade-5487
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Hyperoptable parameter type: CategoricalParameter is not returning correctly. ## Describe your environment * Operating system: MacOS 11.2.3 (20D91) * Python Version: using the version shiped freqtrade...
diff --git a/freqtrade/__init__.py b/freqtrade/__init__.py --- a/freqtrade/__init__.py +++ b/freqtrade/__init__.py @@ -1,5 +1,5 @@ """ Freqtrade bot """ -__version__ = 'develop' +__version__ = '2021.8' if __version__ == 'develop':
{"golden_diff": "diff --git a/freqtrade/__init__.py b/freqtrade/__init__.py\n--- a/freqtrade/__init__.py\n+++ b/freqtrade/__init__.py\n@@ -1,5 +1,5 @@\n \"\"\" Freqtrade bot \"\"\"\n-__version__ = 'develop'\n+__version__ = '2021.8'\n \n if __version__ == 'develop':\n", "issue": "Hyperoptable parameter type: Categorical...
gh_patches_debug_19
rasdani/github-patches
git_diff
dynaconf__dynaconf-1010
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [bug] TypeError for older versions of HVAC in read_secret_version method **Describe the bug** A combination of newer versions of Dynaconf with older versions of HVAC result in an incompatible mix of expected...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ "python-dotenv", "toml", "redis", - "hvac", + "hvac>=1.1.0", "configobj", ]
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -33,7 +33,7 @@\n \"python-dotenv\",\n \"toml\",\n \"redis\",\n- \"hvac\",\n+ \"hvac>=1.1.0\",\n \"configobj\",\n ]\n", "issue": "[bug] TypeError for older versions of HVAC in read_secret_version method\n**Describ...
gh_patches_debug_20
rasdani/github-patches
git_diff
kedro-org__kedro-2345
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release Kedro `0.18.5` ### Description Release Kedro `0.18.5` which will contain lots of new features for configuration. The release depends on the following tickets to be finished: - [x] BLOCKER: https...
diff --git a/kedro/__init__.py b/kedro/__init__.py --- a/kedro/__init__.py +++ b/kedro/__init__.py @@ -3,7 +3,7 @@ configuration and pipeline assembly. """ -__version__ = "0.18.4" +__version__ = "0.18.5" import logging
{"golden_diff": "diff --git a/kedro/__init__.py b/kedro/__init__.py\n--- a/kedro/__init__.py\n+++ b/kedro/__init__.py\n@@ -3,7 +3,7 @@\n configuration and pipeline assembly.\n \"\"\"\n \n-__version__ = \"0.18.4\"\n+__version__ = \"0.18.5\"\n \n \n import logging\n", "issue": "Release Kedro `0.18.5`\n### Description\r\n...
gh_patches_debug_21
rasdani/github-patches
git_diff
wright-group__WrightTools-168
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Contours in mpl_2D seem to have shape problem. I'm running the following script ``` import WrightTools as wt p = '000.data' d = wt.data.from_PyCMDS(p) d.signal_ratio.clip(zmin=-4, zmax=4) d.signal_ra...
diff --git a/examples/rRaman.py b/examples/rRaman.py --- a/examples/rRaman.py +++ b/examples/rRaman.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ Resonance Raman -========== +=============== A Resonance Raman plot. """
{"golden_diff": "diff --git a/examples/rRaman.py b/examples/rRaman.py\n--- a/examples/rRaman.py\n+++ b/examples/rRaman.py\n@@ -1,7 +1,7 @@\n # -*- coding: utf-8 -*-\n \"\"\"\n Resonance Raman\n-==========\n+===============\n \n A Resonance Raman plot.\n \"\"\"\n", "issue": "Contours in mpl_2D seem to have shape problem...
gh_patches_debug_22
rasdani/github-patches
git_diff
SciTools__cartopy-2079
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- OSGB tests fail without datum transformation grids available ### Description Currently, tests use conda-forge, which is on 8.0.1, but Fedora Rawhide is on 8.1.1. With that version of Proj, a few tests fail...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -25,7 +25,6 @@ import os -import shutil import subprocess import warnings from collections import defaultdict
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -25,7 +25,6 @@\n \n \n import os\n-import shutil\n import subprocess\n import warnings\n from collections import defaultdict\n", "issue": "OSGB tests fail without datum transformation grids available\n### Description\r\n\r\nCurrently,...
gh_patches_debug_23
rasdani/github-patches
git_diff
scipy__scipy-11657
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add wrappers for ?pttrf, ?pttrs See [NumFOCUS Small Development Grant Proposal 2019 Round 3 proposal](https://www.dropbox.com/s/i24h3j2osol56uf/Small%20Development%20Grant%20-%20LAPACK%20%20%28Condensed%29.pd...
diff --git a/scipy/linalg/lapack.py b/scipy/linalg/lapack.py --- a/scipy/linalg/lapack.py +++ b/scipy/linalg/lapack.py @@ -481,6 +481,16 @@ cptsv zptsv + spttrf + dpttrf + cpttrf + zpttrf + + spttrs + dpttrs + cpttrs + zpttrs + crot zrot
{"golden_diff": "diff --git a/scipy/linalg/lapack.py b/scipy/linalg/lapack.py\n--- a/scipy/linalg/lapack.py\n+++ b/scipy/linalg/lapack.py\n@@ -481,6 +481,16 @@\n cptsv\n zptsv\n \n+ spttrf\n+ dpttrf\n+ cpttrf\n+ zpttrf\n+\n+ spttrs\n+ dpttrs\n+ cpttrs\n+ zpttrs\n+\n crot\n zrot\n", "issue": ...
gh_patches_debug_24
rasdani/github-patches
git_diff
vega__altair-3202
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add example showing how to render numpy image arrays as tooltip images I think it could be helpful to show how images that are represented as numpy arrays can be rendered in tooltips in altair. I can add a do...
diff --git a/sphinxext/altairgallery.py b/sphinxext/altairgallery.py --- a/sphinxext/altairgallery.py +++ b/sphinxext/altairgallery.py @@ -86,7 +86,7 @@ :hidden: Gallery <self> - Tutorials <../case_studies/exploring-weather> + Tutorials <../case_studies/index> """ )
{"golden_diff": "diff --git a/sphinxext/altairgallery.py b/sphinxext/altairgallery.py\n--- a/sphinxext/altairgallery.py\n+++ b/sphinxext/altairgallery.py\n@@ -86,7 +86,7 @@\n :hidden:\n \n Gallery <self>\n- Tutorials <../case_studies/exploring-weather>\n+ Tutorials <../case_studies/index>\n \"\"\"\n )\n", "is...
gh_patches_debug_25
rasdani/github-patches
git_diff
graspologic-org__graspologic-366
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- returning test statistic in LDT some practitioners (read: Vince, cep) only care about the test statistic and not the p-value. obviously one can still extract it if they perform the full test. however, that wa...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ "scipy>=1.1.0", "seaborn>=0.9.0", "matplotlib>=3.0.0", - "hyppo>=0.1.2", + "hyppo>=0.1.3", ]
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -18,7 +18,7 @@\n \"scipy>=1.1.0\",\n \"seaborn>=0.9.0\",\n \"matplotlib>=3.0.0\",\n- \"hyppo>=0.1.2\",\n+ \"hyppo>=0.1.3\",\n ]\n", "issue": "returning test statistic in LDT\nsome practitioners (read: Vince, cep) onl...
gh_patches_debug_26
rasdani/github-patches
git_diff
docker__docker-py-2917
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Missed rollback_config in service's create/update methods. Hi, in [documentation](https://docker-py.readthedocs.io/en/stable/services.html) for service written that it support `rollback_config` parameter, but...
diff --git a/docker/models/services.py b/docker/models/services.py --- a/docker/models/services.py +++ b/docker/models/services.py @@ -320,6 +320,7 @@ 'labels', 'mode', 'update_config', + 'rollback_config', 'endpoint_spec', ]
{"golden_diff": "diff --git a/docker/models/services.py b/docker/models/services.py\n--- a/docker/models/services.py\n+++ b/docker/models/services.py\n@@ -320,6 +320,7 @@\n 'labels',\n 'mode',\n 'update_config',\n+ 'rollback_config',\n 'endpoint_spec',\n ]\n", "issue": "Missed rollback_config in serv...
gh_patches_debug_27
rasdani/github-patches
git_diff
pytorch__ignite-1016
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PyTorch dependency is lacking version constraint ## 🐛 Bug description <!-- A clear and concise description of what the bug is. --> PyTorch is a dependency of Ignite and, thus, is specified in `setup.py` ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ VERSION = find_version("ignite", "__init__.py") requirements = [ - "torch", + "torch>=1.0,<2", ] setup(
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -22,7 +22,7 @@\n VERSION = find_version(\"ignite\", \"__init__.py\")\n \n requirements = [\n- \"torch\",\n+ \"torch>=1.0,<2\",\n ]\n \n setup(\n", "issue": "PyTorch dependency is lacking version constraint\n## \ud83d\udc1b Bug d...
gh_patches_debug_28
rasdani/github-patches
git_diff
codespell-project__codespell-86
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- codespell.py does nothng if [fileN] is not specified Previously running `codespell` without file parameter starts the check. Now `codespell.py` does nothing. The behavior should stay the same as before - if f...
diff --git a/bin/codespell.py b/bin/codespell.py --- a/bin/codespell.py +++ b/bin/codespell.py @@ -4,4 +4,4 @@ if __name__ == '__main__': import codespell_lib - sys.exit(codespell_lib.main(*sys.argv)) + sys.exit(codespell_lib.main(*sys.argv[1:]))
{"golden_diff": "diff --git a/bin/codespell.py b/bin/codespell.py\n--- a/bin/codespell.py\n+++ b/bin/codespell.py\n@@ -4,4 +4,4 @@\n \n if __name__ == '__main__':\n import codespell_lib\n- sys.exit(codespell_lib.main(*sys.argv))\n+ sys.exit(codespell_lib.main(*sys.argv[1:]))\n", "issue": "codespell.py does no...
gh_patches_debug_29
rasdani/github-patches
git_diff
django-wiki__django-wiki-1228
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Invalid version of popper.js For bootstrap 4.4.1 it should be popper.js 1.16.0 ([proof](https://getbootstrap.com/docs/4.4/getting-started/introduction/)), not 2.0.5, which [is used now](https://github.com/dja...
diff --git a/testproject/testproject/settings/base.py b/testproject/testproject/settings/base.py --- a/testproject/testproject/settings/base.py +++ b/testproject/testproject/settings/base.py @@ -152,3 +152,5 @@ WIKI_ANONYMOUS_CREATE = False SESSION_COOKIE_SECURE = True + +DEFAULT_AUTO_FIELD = "django.db.models.Auto...
{"golden_diff": "diff --git a/testproject/testproject/settings/base.py b/testproject/testproject/settings/base.py\n--- a/testproject/testproject/settings/base.py\n+++ b/testproject/testproject/settings/base.py\n@@ -152,3 +152,5 @@\n WIKI_ANONYMOUS_CREATE = False\n \n SESSION_COOKIE_SECURE = True\n+\n+DEFAULT_AUTO_FIELD...
gh_patches_debug_30
rasdani/github-patches
git_diff
googleapis__google-api-python-client-129
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- discovery_cache module not packaged during installation. I've installed `google-api-python-client` from source, but when at some point my application was failing with this message: ``` ... ... File "bu...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -59,6 +59,7 @@ packages = [ 'apiclient', 'googleapiclient', + 'googleapiclient/discovery_cache', ] install_requires = [
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -59,6 +59,7 @@\n packages = [\n 'apiclient',\n 'googleapiclient',\n+ 'googleapiclient/discovery_cache',\n ]\n \n install_requires = [\n", "issue": "discovery_cache module not packaged during installation.\nI've installed `g...
gh_patches_debug_31
rasdani/github-patches
git_diff
redis__redis-py-1678
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CI run to install the built package In light of bug #1645 we should amend our CI run to install the built package, in a new virtual env and run something simple like a redis.Redis().ping(). Eventually we cou...
diff --git a/tasks.py b/tasks.py --- a/tasks.py +++ b/tasks.py @@ -56,4 +56,4 @@ @task def package(c): """Create the python packages""" - run("python setup.py build install") + run("python setup.py sdist bdist_wheel")
{"golden_diff": "diff --git a/tasks.py b/tasks.py\n--- a/tasks.py\n+++ b/tasks.py\n@@ -56,4 +56,4 @@\n @task\n def package(c):\n \"\"\"Create the python packages\"\"\"\n- run(\"python setup.py build install\")\n+ run(\"python setup.py sdist bdist_wheel\")\n", "issue": "CI run to install the built package\nIn ...
gh_patches_debug_32
rasdani/github-patches
git_diff
streamlit__streamlit-1931
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add screenshot test for syntax highlighting --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `e2e/scripts/st...
diff --git a/e2e/scripts/st_code.py b/e2e/scripts/st_code.py --- a/e2e/scripts/st_code.py +++ b/e2e/scripts/st_code.py @@ -17,3 +17,9 @@ st.code("# This code is awesome!") st.code("") + +code = """ +def hello(): + print("Hello, Streamlit!") +""" +st.code(code, language="python")
{"golden_diff": "diff --git a/e2e/scripts/st_code.py b/e2e/scripts/st_code.py\n--- a/e2e/scripts/st_code.py\n+++ b/e2e/scripts/st_code.py\n@@ -17,3 +17,9 @@\n st.code(\"# This code is awesome!\")\n \n st.code(\"\")\n+\n+code = \"\"\"\n+def hello():\n+ print(\"Hello, Streamlit!\")\n+\"\"\"\n+st.code(code, language=\"...
gh_patches_debug_33
rasdani/github-patches
git_diff
qtile__qtile-1432
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- docs: Missing deps when building widget docs gives "alias to ImportErrorWidget" See http://docs.qtile.org/en/latest/manual/ref/widgets.html#memory for example. I guess the widget dependencies are not insta...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -36,6 +36,7 @@ 'iwlib', 'keyring', 'mpd', + 'psutil', 'trollius', 'xcffib', 'xcffib.randr',
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -36,6 +36,7 @@\n 'iwlib',\n 'keyring',\n 'mpd',\n+ 'psutil',\n 'trollius',\n 'xcffib',\n 'xcffib.randr',\n", "issue": "docs: Missing deps when building widget docs gives \"alias to ImportErro...
gh_patches_debug_34
rasdani/github-patches
git_diff
sanic-org__sanic-1527
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Publish 19.3 release to PyPI Thank you for the release 3 days ago! https://github.com/huge-success/sanic/releases/tag/19.3 It's missing from PyPI at the moment: https://pypi.org/project/sanic/#histor...
diff --git a/sanic/__init__.py b/sanic/__init__.py --- a/sanic/__init__.py +++ b/sanic/__init__.py @@ -2,6 +2,6 @@ from sanic.blueprints import Blueprint -__version__ = "18.12.0" +__version__ = "19.03.0" __all__ = ["Sanic", "Blueprint"]
{"golden_diff": "diff --git a/sanic/__init__.py b/sanic/__init__.py\n--- a/sanic/__init__.py\n+++ b/sanic/__init__.py\n@@ -2,6 +2,6 @@\n from sanic.blueprints import Blueprint\n \n \n-__version__ = \"18.12.0\"\n+__version__ = \"19.03.0\"\n \n __all__ = [\"Sanic\", \"Blueprint\"]\n", "issue": "Publish 19.3 release to Py...
gh_patches_debug_35
rasdani/github-patches
git_diff
ludwig-ai__ludwig-897
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TF2 is slower than TF1, improve speed https://github.com/tensorflow/tensorflow/issues/33487 Getting the same result: epochs became longer because of switching to TF2. I noticed also that it's using less m...
diff --git a/ludwig/models/trainer.py b/ludwig/models/trainer.py --- a/ludwig/models/trainer.py +++ b/ludwig/models/trainer.py @@ -56,8 +56,6 @@ logger = logging.getLogger(__name__) -tf.config.experimental_run_functions_eagerly(True) - class Trainer: """
{"golden_diff": "diff --git a/ludwig/models/trainer.py b/ludwig/models/trainer.py\n--- a/ludwig/models/trainer.py\n+++ b/ludwig/models/trainer.py\n@@ -56,8 +56,6 @@\n \n logger = logging.getLogger(__name__)\n \n-tf.config.experimental_run_functions_eagerly(True)\n-\n \n class Trainer:\n \"\"\"\n", "issue": "TF2 is ...
gh_patches_debug_36
rasdani/github-patches
git_diff
zulip__zulip-29386
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add clarification tooltip when settings can't be saved due to invalid Jitsi URL In SETTINGS / ORGANIZATION SETTINGS > Other settings, we disable the "Save changes" button when the custom Jitsi URL is invalid....
diff --git a/tools/lib/capitalization.py b/tools/lib/capitalization.py --- a/tools/lib/capitalization.py +++ b/tools/lib/capitalization.py @@ -27,6 +27,7 @@ r"Inbox", r"IP", r"JSON", + r"Jitsi", r"Kerberos", r"LinkedIn", r"LDAP",
{"golden_diff": "diff --git a/tools/lib/capitalization.py b/tools/lib/capitalization.py\n--- a/tools/lib/capitalization.py\n+++ b/tools/lib/capitalization.py\n@@ -27,6 +27,7 @@\n r\"Inbox\",\n r\"IP\",\n r\"JSON\",\n+ r\"Jitsi\",\n r\"Kerberos\",\n r\"LinkedIn\",\n r\"LDAP\",\n", "issue": "Ad...
gh_patches_debug_37
rasdani/github-patches
git_diff
liqd__adhocracy4-58
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Extend linting to javascript and jsx files --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `adhocracy4/repo...
diff --git a/adhocracy4/reports/emails.py b/adhocracy4/reports/emails.py --- a/adhocracy4/reports/emails.py +++ b/adhocracy4/reports/emails.py @@ -1,5 +1,4 @@ from django.contrib.auth import get_user_model -from django.core import urlresolvers from adhocracy4 import emails
{"golden_diff": "diff --git a/adhocracy4/reports/emails.py b/adhocracy4/reports/emails.py\n--- a/adhocracy4/reports/emails.py\n+++ b/adhocracy4/reports/emails.py\n@@ -1,5 +1,4 @@\n from django.contrib.auth import get_user_model\n-from django.core import urlresolvers\n \n from adhocracy4 import emails\n", "issue": "Exte...
gh_patches_debug_38
rasdani/github-patches
git_diff
encode__httpx-362
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Releasing 0.7.3 Hi @encode/httpx-maintainers! It’s been 21 days since 0.7.2 was released, and we’ve got [a bunch of features](https://github.com/encode/httpx/compare/0.7.2...HEAD) ready for 0.7.3 already, ...
diff --git a/httpx/__version__.py b/httpx/__version__.py --- a/httpx/__version__.py +++ b/httpx/__version__.py @@ -1,3 +1,3 @@ __title__ = "httpx" __description__ = "A next generation HTTP client, for Python 3." -__version__ = "0.7.2" +__version__ = "0.7.3"
{"golden_diff": "diff --git a/httpx/__version__.py b/httpx/__version__.py\n--- a/httpx/__version__.py\n+++ b/httpx/__version__.py\n@@ -1,3 +1,3 @@\n __title__ = \"httpx\"\n __description__ = \"A next generation HTTP client, for Python 3.\"\n-__version__ = \"0.7.2\"\n+__version__ = \"0.7.3\"\n", "issue": "Releasing 0.7....
gh_patches_debug_39
rasdani/github-patches
git_diff
wagtail__wagtail-8800
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- patternlibrary_override_tags breaks all non-development installations #8665 added a `patternlibrary_override_tags` tag library to wagtail.admin, which depends on the django-pattern-library package listed in o...
diff --git a/wagtail/admin/templatetags/patternlibrary_override_tags.py b/wagtail/admin/templatetags/patternlibrary_override_tags.py deleted file mode 100644 --- a/wagtail/admin/templatetags/patternlibrary_override_tags.py +++ /dev/null @@ -1,5 +0,0 @@ -from pattern_library.monkey_utils import override_tag - -from wagt...
{"golden_diff": "diff --git a/wagtail/admin/templatetags/patternlibrary_override_tags.py b/wagtail/admin/templatetags/patternlibrary_override_tags.py\ndeleted file mode 100644\n--- a/wagtail/admin/templatetags/patternlibrary_override_tags.py\n+++ /dev/null\n@@ -1,5 +0,0 @@\n-from pattern_library.monkey_utils import ove...
gh_patches_debug_40
rasdani/github-patches
git_diff
web2py__web2py-2127
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- After updating from 2.18.1 to 2.18.2 the session.flash messages all show as b'<message>' **Describe the bug** After updating from 2.18.1 to 2.18.2 the session.flsh messages all show as b'<message>' **To R...
diff --git a/gluon/languages.py b/gluon/languages.py --- a/gluon/languages.py +++ b/gluon/languages.py @@ -451,7 +451,7 @@ def pickle_lazyT(c): - return str, (c.xml(),) + return str, (to_native(c.xml()),) copyreg.pickle(lazyT, pickle_lazyT)
{"golden_diff": "diff --git a/gluon/languages.py b/gluon/languages.py\n--- a/gluon/languages.py\n+++ b/gluon/languages.py\n@@ -451,7 +451,7 @@\n \n \n def pickle_lazyT(c):\n- return str, (c.xml(),)\n+ return str, (to_native(c.xml()),)\n \n copyreg.pickle(lazyT, pickle_lazyT)\n", "issue": "After updating from 2.18...
gh_patches_debug_41
rasdani/github-patches
git_diff
liqd__a4-opin-614
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- project page header: more vertical space for byline The byline in the project page’s header area, which show’s the project’s organization is vertically too close to the headline of the project. ![bildschirm...
diff --git a/euth/organisations/views.py b/euth/organisations/views.py --- a/euth/organisations/views.py +++ b/euth/organisations/views.py @@ -15,4 +15,4 @@ class OrganisationListView(generic.ListView): model = models.Organisation - paginate_by = 10 + paginate_by = 12
{"golden_diff": "diff --git a/euth/organisations/views.py b/euth/organisations/views.py\n--- a/euth/organisations/views.py\n+++ b/euth/organisations/views.py\n@@ -15,4 +15,4 @@\n \n class OrganisationListView(generic.ListView):\n model = models.Organisation\n- paginate_by = 10\n+ paginate_by = 12\n", "issue":...
gh_patches_debug_42
rasdani/github-patches
git_diff
joke2k__faker-1043
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BBAN for en_GB too short * Faker version: v2.0.3 * OS: linux Numeric part of the en_GB BBAN needs to be 14 digits long, it currently only returns 13, failing further validation. ### Steps to reproduce ...
diff --git a/faker/providers/bank/en_GB/__init__.py b/faker/providers/bank/en_GB/__init__.py --- a/faker/providers/bank/en_GB/__init__.py +++ b/faker/providers/bank/en_GB/__init__.py @@ -2,5 +2,5 @@ class Provider(BankProvider): - bban_format = '????#############' + bban_format = '????##############' co...
{"golden_diff": "diff --git a/faker/providers/bank/en_GB/__init__.py b/faker/providers/bank/en_GB/__init__.py\n--- a/faker/providers/bank/en_GB/__init__.py\n+++ b/faker/providers/bank/en_GB/__init__.py\n@@ -2,5 +2,5 @@\n \n \n class Provider(BankProvider):\n- bban_format = '????#############'\n+ bban_format = '??...
gh_patches_debug_43
rasdani/github-patches
git_diff
wemake-services__wemake-python-styleguide-188
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Feature: forbid `credits()` builtin function We should add `credits()` as a forbidden function: ``` » python -c 'credits()' Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands ...
diff --git a/wemake_python_styleguide/constants.py b/wemake_python_styleguide/constants.py --- a/wemake_python_styleguide/constants.py +++ b/wemake_python_styleguide/constants.py @@ -36,6 +36,7 @@ # Misc: 'copyright', 'help', + 'credits', # Dynamic imports: '__import__',
{"golden_diff": "diff --git a/wemake_python_styleguide/constants.py b/wemake_python_styleguide/constants.py\n--- a/wemake_python_styleguide/constants.py\n+++ b/wemake_python_styleguide/constants.py\n@@ -36,6 +36,7 @@\n # Misc:\n 'copyright',\n 'help',\n+ 'credits',\n \n # Dynamic imports:\n '__im...
gh_patches_debug_44
rasdani/github-patches
git_diff
scikit-hep__pyhf-363
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- consolidation: add simplemodls to __all__ # Description It would be nice if the snippet in the README could be shorter: right now this is needed ``` import pyhf import pyhf.simplemodels pdf = pyhf.s...
diff --git a/pyhf/__init__.py b/pyhf/__init__.py --- a/pyhf/__init__.py +++ b/pyhf/__init__.py @@ -82,5 +82,6 @@ from .pdf import Model +from . import simplemodels -__all__ = ['Model', 'utils', 'modifiers', '__version__'] +__all__ = ['Model', 'utils', 'modifiers', 'simplemodels', '__version__']
{"golden_diff": "diff --git a/pyhf/__init__.py b/pyhf/__init__.py\n--- a/pyhf/__init__.py\n+++ b/pyhf/__init__.py\n@@ -82,5 +82,6 @@\n \n \n from .pdf import Model\n+from . import simplemodels\n \n-__all__ = ['Model', 'utils', 'modifiers', '__version__']\n+__all__ = ['Model', 'utils', 'modifiers', 'simplemodels', '__ve...
gh_patches_debug_45
rasdani/github-patches
git_diff
pandas-dev__pandas-19628
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DateTimeIndex.__iter__().next() rounds time to microseconds, when timezone aware #### Code Sample ```python >> import pandas as pd >> datetimeindex = pd.DatetimeIndex(["2018-02-08 15:00:00.168456358"]) ...
diff --git a/pandas/conftest.py b/pandas/conftest.py --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -93,3 +93,9 @@ except zip """ return request.param + + +@pytest.fixture(scope='module') +def datetime_tz_utc(): + from datetime import timezone + return timezone.utc
{"golden_diff": "diff --git a/pandas/conftest.py b/pandas/conftest.py\n--- a/pandas/conftest.py\n+++ b/pandas/conftest.py\n@@ -93,3 +93,9 @@\n except zip\n \"\"\"\n return request.param\n+\n+\n+@pytest.fixture(scope='module')\n+def datetime_tz_utc():\n+ from datetime import timezone\n+ return timezone...
gh_patches_debug_46
rasdani/github-patches
git_diff
webkom__lego-2342
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Phone number not saved from registration form When creating a new user, LEGO ignores the phone number inserted into the registration form. --- END ISSUE --- Below are some code segments, each from a relevan...
diff --git a/lego/apps/users/serializers/registration.py b/lego/apps/users/serializers/registration.py --- a/lego/apps/users/serializers/registration.py +++ b/lego/apps/users/serializers/registration.py @@ -41,4 +41,5 @@ "gender", "password", "allergies", + "phone_numbe...
{"golden_diff": "diff --git a/lego/apps/users/serializers/registration.py b/lego/apps/users/serializers/registration.py\n--- a/lego/apps/users/serializers/registration.py\n+++ b/lego/apps/users/serializers/registration.py\n@@ -41,4 +41,5 @@\n \"gender\",\n \"password\",\n \"allergies...
gh_patches_debug_47
rasdani/github-patches
git_diff
bokeh__bokeh-9477
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Non-daemon worker thread prevents gunicorn from shutting down cleanly. #### ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages) bokeh HEAD e605297 gunicorn (v...
diff --git a/examples/howto/server_embed/flask_gunicorn_embed.py b/examples/howto/server_embed/flask_gunicorn_embed.py --- a/examples/howto/server_embed/flask_gunicorn_embed.py +++ b/examples/howto/server_embed/flask_gunicorn_embed.py @@ -78,4 +78,6 @@ server.start() server.io_loop.start() -Thread(target=bk...
{"golden_diff": "diff --git a/examples/howto/server_embed/flask_gunicorn_embed.py b/examples/howto/server_embed/flask_gunicorn_embed.py\n--- a/examples/howto/server_embed/flask_gunicorn_embed.py\n+++ b/examples/howto/server_embed/flask_gunicorn_embed.py\n@@ -78,4 +78,6 @@\n server.start()\n server.io_loop.start...
gh_patches_debug_48
rasdani/github-patches
git_diff
django-crispy-forms__django-crispy-forms-1015
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Specify Python version requirement (>=3.x) https://github.com/django-crispy-forms/django-crispy-forms/blob/ba53410f752402436d84dc8ab00e2b6e1e67a74c/setup.py#L22 The drop of Python 2 support in release 1.9....
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -50,4 +50,5 @@ packages=find_packages(exclude=['docs']), include_package_data=True, zip_safe=False, + python_requires='>=3.5', )
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -50,4 +50,5 @@\n packages=find_packages(exclude=['docs']),\n include_package_data=True,\n zip_safe=False,\n+ python_requires='>=3.5',\n )\n", "issue": "Specify Python version requirement (>=3.x)\nhttps://github.com/djan...
gh_patches_debug_49
rasdani/github-patches
git_diff
inventree__InvenTree-1692
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Table ordering not working for any parameter ![image](https://user-images.githubusercontent.com/15521303/122682048-35817e80-d1ef-11eb-92d5-8b41370cd088.png) Table ordering not working for any parameter ![im...
diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -706,6 +706,7 @@ 'creation_date', 'IPN', 'in_stock', + 'category', ] # Default ordering
{"golden_diff": "diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py\n--- a/InvenTree/part/api.py\n+++ b/InvenTree/part/api.py\n@@ -706,6 +706,7 @@\n 'creation_date',\n 'IPN',\n 'in_stock',\n+ 'category',\n ]\n \n # Default ordering\n", "issue": "Table ordering not working ...
gh_patches_debug_50
rasdani/github-patches
git_diff
PokemonGoF__PokemonGo-Bot-3951
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bot fails to start: UnicodeEncodeError 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128) ### Expected Behavior Bot is able to start. ### Actual Behavior Bot fails to start. T...
diff --git a/pokemongo_bot/cell_workers/nickname_pokemon.py b/pokemongo_bot/cell_workers/nickname_pokemon.py --- a/pokemongo_bot/cell_workers/nickname_pokemon.py +++ b/pokemongo_bot/cell_workers/nickname_pokemon.py @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + import os import js...
{"golden_diff": "diff --git a/pokemongo_bot/cell_workers/nickname_pokemon.py b/pokemongo_bot/cell_workers/nickname_pokemon.py\n--- a/pokemongo_bot/cell_workers/nickname_pokemon.py\n+++ b/pokemongo_bot/cell_workers/nickname_pokemon.py\n@@ -1,3 +1,6 @@\n+# -*- coding: utf-8 -*-\n+from __future__ import unicode_literals\n...
gh_patches_debug_51
rasdani/github-patches
git_diff
pydantic__pydantic-1618
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NameError: name 'SchemaExtraCallable' is not defined # Bug https://github.com/pawamoy/pytkdocs/pull/41/checks?check_run_id=747827745 ``` pydantic version: 1.5.1 pydantic compi...
diff --git a/pydantic/main.py b/pydantic/main.py --- a/pydantic/main.py +++ b/pydantic/main.py @@ -66,6 +66,10 @@ pass +else: + SchemaExtraCallable = Callable[..., None] + + try: import cython # type: ignore except ImportError:
{"golden_diff": "diff --git a/pydantic/main.py b/pydantic/main.py\n--- a/pydantic/main.py\n+++ b/pydantic/main.py\n@@ -66,6 +66,10 @@\n pass\n \n \n+else:\n+ SchemaExtraCallable = Callable[..., None]\n+\n+\n try:\n import cython # type: ignore\n except ImportError:\n", "issue": "NameError: name 'Sch...
gh_patches_debug_52
rasdani/github-patches
git_diff
e2nIEE__pandapower-2263
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [bug] __format_version__ not increased. ### Issue Description The `__format_version__` in `_version.py` has not been increased eventhough the format got changed! This is an issue in the develop branch *...
diff --git a/pandapower/_version.py b/pandapower/_version.py --- a/pandapower/_version.py +++ b/pandapower/_version.py @@ -1,4 +1,4 @@ import importlib.metadata __version__ = importlib.metadata.version("pandapower") -__format_version__ = "2.14.0" +__format_version__ = "2.15.0"
{"golden_diff": "diff --git a/pandapower/_version.py b/pandapower/_version.py\n--- a/pandapower/_version.py\n+++ b/pandapower/_version.py\n@@ -1,4 +1,4 @@\n import importlib.metadata\n \n __version__ = importlib.metadata.version(\"pandapower\")\n-__format_version__ = \"2.14.0\"\n+__format_version__ = \"2.15.0\"\n", "is...
gh_patches_debug_53
rasdani/github-patches
git_diff
facebookresearch__hydra-2242
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] Colorlog plugin generates `.log` file in cwd instead of output dir # 🐛 Bug I'm using hydra v1.2 with `chdir` set to false. When I don't use colorlog plugin, the `.log` file with python logs gets ge...
diff --git a/plugins/hydra_colorlog/hydra_plugins/hydra_colorlog/__init__.py b/plugins/hydra_colorlog/hydra_plugins/hydra_colorlog/__init__.py --- a/plugins/hydra_colorlog/hydra_plugins/hydra_colorlog/__init__.py +++ b/plugins/hydra_colorlog/hydra_plugins/hydra_colorlog/__init__.py @@ -1,3 +1,3 @@ # Copyright (c) Face...
{"golden_diff": "diff --git a/plugins/hydra_colorlog/hydra_plugins/hydra_colorlog/__init__.py b/plugins/hydra_colorlog/hydra_plugins/hydra_colorlog/__init__.py\n--- a/plugins/hydra_colorlog/hydra_plugins/hydra_colorlog/__init__.py\n+++ b/plugins/hydra_colorlog/hydra_plugins/hydra_colorlog/__init__.py\n@@ -1,3 +1,3 @@\n...
gh_patches_debug_54
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-3557
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Test failure in opentelemetry-sdk on Python 3.12 **Describe your environment** Running in a fresh checkout of `main`, https://github.com/open-telemetry/opentelemetry-python/commit/3f459d3a19fa6c4bbdeb9012c...
diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py --- a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py @@ -428,6 +428,7 @@ ...
{"golden_diff": "diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py\n--- a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py\n+++ b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py\n@...
gh_patches_debug_55
rasdani/github-patches
git_diff
hylang__hy-411
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- problem with comment parsing I was translating some code to Hy from a textbook on Python programming (http://inventwithpython.com/pygame/index.html) and ran into a problem with this direct translation. ``` (...
diff --git a/hy/lex/lexer.py b/hy/lex/lexer.py --- a/hy/lex/lexer.py +++ b/hy/lex/lexer.py @@ -60,7 +60,7 @@ lg.add('IDENTIFIER', r'[^()\[\]{}\'"\s;]+') -lg.ignore(r';.*[\r\n]+') +lg.ignore(r';.*(?=\r|\n|$)') lg.ignore(r'\s+')
{"golden_diff": "diff --git a/hy/lex/lexer.py b/hy/lex/lexer.py\n--- a/hy/lex/lexer.py\n+++ b/hy/lex/lexer.py\n@@ -60,7 +60,7 @@\n lg.add('IDENTIFIER', r'[^()\\[\\]{}\\'\"\\s;]+')\n \n \n-lg.ignore(r';.*[\\r\\n]+')\n+lg.ignore(r';.*(?=\\r|\\n|$)')\n lg.ignore(r'\\s+')\n", "issue": "problem with comment parsing\nI was t...
gh_patches_debug_56
rasdani/github-patches
git_diff
spacetelescope__jwql-678
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Upgrade Django to 3.0 Django 3.0 is out, and since it is a major release, we should consider upgrading to this. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of thes...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ 'codecov', 'crds', 'cryptography', - 'django>=2.0,<3.0', + 'django', 'flake8', 'inflection', 'ipython',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -20,7 +20,7 @@\n 'codecov',\n 'crds',\n 'cryptography',\n- 'django>=2.0,<3.0',\n+ 'django',\n 'flake8',\n 'inflection',\n 'ipython',\n", "issue": "Upgrade Django to 3.0\nDjango 3.0 is out, and since it is...
gh_patches_debug_57
rasdani/github-patches
git_diff
gratipay__gratipay.com-3206
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- move SQL functions out of schema.sql Following on from #2360, and in view of the hack at https://github.com/gratipay/gratipay.com/pull/3154#issuecomment-73041912, what if we moved SQL functions to a separate ...
diff --git a/gratipay/billing/payday.py b/gratipay/billing/payday.py --- a/gratipay/billing/payday.py +++ b/gratipay/billing/payday.py @@ -26,7 +26,7 @@ from psycopg2 import IntegrityError -with open('fake_payday.sql') as f: +with open('sql/fake_payday.sql') as f: FAKE_PAYDAY = f.read()
{"golden_diff": "diff --git a/gratipay/billing/payday.py b/gratipay/billing/payday.py\n--- a/gratipay/billing/payday.py\n+++ b/gratipay/billing/payday.py\n@@ -26,7 +26,7 @@\n from psycopg2 import IntegrityError\n \n \n-with open('fake_payday.sql') as f:\n+with open('sql/fake_payday.sql') as f:\n FAKE_PAYDAY = f.rea...
gh_patches_debug_58
rasdani/github-patches
git_diff
PokemonGoF__PokemonGo-Bot-4931
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Error in Telegram: "AttributeError: 'module' object has no attribute 'now'" ### Expected Behavior <!-- Tell us what you expect to happen --> Bot running with Telegram enabled ### Actual Behavior <!--...
diff --git a/pokemongo_bot/cell_workers/telegram_task.py b/pokemongo_bot/cell_workers/telegram_task.py --- a/pokemongo_bot/cell_workers/telegram_task.py +++ b/pokemongo_bot/cell_workers/telegram_task.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- -import datetime +from datetime import datetime +from datetime import timede...
{"golden_diff": "diff --git a/pokemongo_bot/cell_workers/telegram_task.py b/pokemongo_bot/cell_workers/telegram_task.py\n--- a/pokemongo_bot/cell_workers/telegram_task.py\n+++ b/pokemongo_bot/cell_workers/telegram_task.py\n@@ -1,5 +1,6 @@\n # -*- coding: utf-8 -*-\n-import datetime\n+from datetime import datetime\n+fro...
gh_patches_debug_59
rasdani/github-patches
git_diff
gratipay__gratipay.com-4454
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add a check in deploy.sh for environment variables When deploying #4438, I forgot to add the `CHECK_NPM_SYNC_EVERY` env var, and gratipay.com was down for around 3 minutes until I figured out what was wrong a...
diff --git a/gratipay/wireup.py b/gratipay/wireup.py --- a/gratipay/wireup.py +++ b/gratipay/wireup.py @@ -441,6 +441,6 @@ return env -def __main__(): +if __name__ == '__main__': # deploy.sh uses this to validate production env config env()
{"golden_diff": "diff --git a/gratipay/wireup.py b/gratipay/wireup.py\n--- a/gratipay/wireup.py\n+++ b/gratipay/wireup.py\n@@ -441,6 +441,6 @@\n return env\n \n \n-def __main__():\n+if __name__ == '__main__':\n # deploy.sh uses this to validate production env config\n env()\n", "issue": "Add a check in depl...
gh_patches_debug_60
rasdani/github-patches
git_diff
goauthentik__authentik-8594
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Proxy provider incorrect redirect behaviour **Describe the bug** This bug manifests as a seemingly random-ish redirect after a page refresh when the proxy token has expired and the user is redirected back to...
diff --git a/authentik/events/api/tasks.py b/authentik/events/api/tasks.py --- a/authentik/events/api/tasks.py +++ b/authentik/events/api/tasks.py @@ -60,6 +60,8 @@ "duration", "status", "messages", + "expires", + "expiring", ]
{"golden_diff": "diff --git a/authentik/events/api/tasks.py b/authentik/events/api/tasks.py\n--- a/authentik/events/api/tasks.py\n+++ b/authentik/events/api/tasks.py\n@@ -60,6 +60,8 @@\n \"duration\",\n \"status\",\n \"messages\",\n+ \"expires\",\n+ \"expiring\"...
gh_patches_debug_61
rasdani/github-patches
git_diff
bokeh__bokeh-9310
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Documentation panels empty Hello, I was looking for documentation on Tabs and I went to the page : https://docs.bokeh.org/en/latest/docs/reference/models/widgets.panels.html However it display a ...
diff --git a/bokeh/models/layouts.py b/bokeh/models/layouts.py --- a/bokeh/models/layouts.py +++ b/bokeh/models/layouts.py @@ -46,8 +46,10 @@ 'GridBox', 'HTMLBox', 'LayoutDOM', + 'Panel', 'Row', 'Spacer', + 'Tabs', 'WidgetBox', )
{"golden_diff": "diff --git a/bokeh/models/layouts.py b/bokeh/models/layouts.py\n--- a/bokeh/models/layouts.py\n+++ b/bokeh/models/layouts.py\n@@ -46,8 +46,10 @@\n 'GridBox',\n 'HTMLBox',\n 'LayoutDOM',\n+ 'Panel',\n 'Row',\n 'Spacer',\n+ 'Tabs',\n 'WidgetBox',\n )\n", "issue": "[BUG] Docu...
gh_patches_debug_62
rasdani/github-patches
git_diff
chainer__chainer-2992
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Install bug: Mock required for gradient_check #2972 Install bug Chainer installed with `pip install chainer` `from chainer import gradient_check` fails due to unable to find mock to import Fixed by `cond...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -22,6 +22,7 @@ setup_requires = [] install_requires = [ 'filelock', + 'mock', 'nose', 'numpy>=1.9.0', 'protobuf>=2.6.0',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -22,6 +22,7 @@\n setup_requires = []\n install_requires = [\n 'filelock',\n+ 'mock',\n 'nose',\n 'numpy>=1.9.0',\n 'protobuf>=2.6.0',\n", "issue": "Install bug: Mock required for gradient_check\n#2972 Install bug\r\...
gh_patches_debug_63
rasdani/github-patches
git_diff
microsoft__torchgeo-1646
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Inconsistency in Sentinel 2 band names in transforms tutorial and eurosat dataset ### Issue In the [tutorial](https://torchgeo.readthedocs.io/en/stable/tutorials/transforms.html) they are `B1`, `B2` etc bu...
diff --git a/torchgeo/datasets/eurosat.py b/torchgeo/datasets/eurosat.py --- a/torchgeo/datasets/eurosat.py +++ b/torchgeo/datasets/eurosat.py @@ -95,7 +95,7 @@ "B06", "B07", "B08", - "B08A", + "B8A", "B09", "B10", "B11",
{"golden_diff": "diff --git a/torchgeo/datasets/eurosat.py b/torchgeo/datasets/eurosat.py\n--- a/torchgeo/datasets/eurosat.py\n+++ b/torchgeo/datasets/eurosat.py\n@@ -95,7 +95,7 @@\n \"B06\",\n \"B07\",\n \"B08\",\n- \"B08A\",\n+ \"B8A\",\n \"B09\",\n \"B10\",\n ...
gh_patches_debug_64
rasdani/github-patches
git_diff
streamlit__streamlit-2811
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sliders should show current value [regression] [Baseweb] # Summary (via @tvst: ) Our sliders right now require you to hover in order to see the selected value. This makes it really hard to understand wh...
diff --git a/e2e/scripts/st_columns.py b/e2e/scripts/st_columns.py --- a/e2e/scripts/st_columns.py +++ b/e2e/scripts/st_columns.py @@ -27,5 +27,5 @@ # Variable-width columns -for c in st.beta_columns((1, 2, 4, 8)): +for c in st.beta_columns((1, 2, 3, 4)): c.image(CAT_IMAGE, use_column_width=True)
{"golden_diff": "diff --git a/e2e/scripts/st_columns.py b/e2e/scripts/st_columns.py\n--- a/e2e/scripts/st_columns.py\n+++ b/e2e/scripts/st_columns.py\n@@ -27,5 +27,5 @@\n \n \n # Variable-width columns\n-for c in st.beta_columns((1, 2, 4, 8)):\n+for c in st.beta_columns((1, 2, 3, 4)):\n c.image(CAT_IMAGE, use_colum...
gh_patches_debug_65
rasdani/github-patches
git_diff
fonttools__fonttools-2472
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [feaLib] "fonttools feaLib" should error out, not continue If there's a parse/build error when using the feaLib command line tool, we currently do this: https://github.com/fonttools/fonttools/blob/445108f7...
diff --git a/Lib/fontTools/feaLib/__main__.py b/Lib/fontTools/feaLib/__main__.py --- a/Lib/fontTools/feaLib/__main__.py +++ b/Lib/fontTools/feaLib/__main__.py @@ -70,6 +70,7 @@ if options.traceback: raise log.error(e) + sys.exit(1) font.save(output_font)
{"golden_diff": "diff --git a/Lib/fontTools/feaLib/__main__.py b/Lib/fontTools/feaLib/__main__.py\n--- a/Lib/fontTools/feaLib/__main__.py\n+++ b/Lib/fontTools/feaLib/__main__.py\n@@ -70,6 +70,7 @@\n if options.traceback:\n raise\n log.error(e)\n+ sys.exit(1)\n font.save(output_fon...
gh_patches_debug_66
rasdani/github-patches
git_diff
projectmesa__mesa-561
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update tests to use pytest, not nose Update tests to use pytest, not nose. nose is not maintained anymore. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these fi...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -20,7 +20,8 @@ 'dev': [ 'coverage', 'flake8', - 'nose', + 'pytest', + 'pytest-cov', 'sphinx', ], 'docs': [
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -20,7 +20,8 @@\n 'dev': [\n 'coverage',\n 'flake8',\n- 'nose',\n+ 'pytest',\n+ 'pytest-cov',\n 'sphinx',\n ],\n 'docs': [\n", "issue": "Update tests to use pytest, not nose\nUpd...
gh_patches_debug_67
rasdani/github-patches
git_diff
sbi-dev__sbi-398
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SNPE with NSF fails when sampling with MCMC This occurs in a very particular setting: `SNPE` inference with `NSF` density estimator and `sample_with_mcmc=True` (no matter which type of MCMC. - it works wi...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ "matplotlib", "numpy", "pillow", - "pyknos>=0.12", + "pyknos>=0.14", "pyro-ppl>=1.3.1", "scipy", "tensorboard",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -28,7 +28,7 @@\n \"matplotlib\",\n \"numpy\",\n \"pillow\",\n- \"pyknos>=0.12\",\n+ \"pyknos>=0.14\",\n \"pyro-ppl>=1.3.1\",\n \"scipy\",\n \"tensorboard\",\n", "issue": "SNPE with NSF fails when sampling...
gh_patches_debug_68
rasdani/github-patches
git_diff
dbt-labs__dbt-core-2475
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [0.17.0rc1] Broken Docker image entrypoint ### Describe the bug The entrypoint for the image is invalid ### Steps To Reproduce 1. Pull the image: `docker pull fishtownanalytics/dbt:0.17.0rc1` 2. Run...
diff --git a/scripts/build-dbt.py b/scripts/build-dbt.py --- a/scripts/build-dbt.py +++ b/scripts/build-dbt.py @@ -740,7 +740,7 @@ VOLUME /usr/app USER dbt_user - CMD ['dbt', 'run'] + ENTRYPOINT dbt ''' )
{"golden_diff": "diff --git a/scripts/build-dbt.py b/scripts/build-dbt.py\n--- a/scripts/build-dbt.py\n+++ b/scripts/build-dbt.py\n@@ -740,7 +740,7 @@\n VOLUME /usr/app\n \n USER dbt_user\n- CMD ['dbt', 'run']\n+ ENTRYPOINT dbt\n '''\n )\n", "issue": "[0...
gh_patches_debug_69
rasdani/github-patches
git_diff
agconti__cookiecutter-django-rest-155
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Set versatile image's field to 'create_images_on_demand' to false in production by default. ``` python VERSATILEIMAGEFIELD_SETTINGS['create_images_on_demand'] = False ``` --- END ISSUE --- Below are some c...
diff --git a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/production.py b/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/production.py --- a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/production.py +++ b/{{cookiecutter.github_repository...
{"golden_diff": "diff --git a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/production.py b/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/production.py\n--- a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/config/production.py\n+++ b/{{cookiecutte...
gh_patches_debug_70
rasdani/github-patches
git_diff
geopandas__geopandas-2249
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DOC: Address GeoPandas op deprecation in docs While working on #2211 I noticed instances of the `op` parameter still being used. This `op` parameter was deprecated in pull request #1626 in favour of `predi...
diff --git a/benchmarks/sjoin.py b/benchmarks/sjoin.py --- a/benchmarks/sjoin.py +++ b/benchmarks/sjoin.py @@ -26,5 +26,5 @@ self.df1, self.df2 = df1, df2 - def time_sjoin(self, op): - sjoin(self.df1, self.df2, op=op) + def time_sjoin(self, predicate): + sjoin(self.df1, self.df2, predic...
{"golden_diff": "diff --git a/benchmarks/sjoin.py b/benchmarks/sjoin.py\n--- a/benchmarks/sjoin.py\n+++ b/benchmarks/sjoin.py\n@@ -26,5 +26,5 @@\n \n self.df1, self.df2 = df1, df2\n \n- def time_sjoin(self, op):\n- sjoin(self.df1, self.df2, op=op)\n+ def time_sjoin(self, predicate):\n+ sjoin...
gh_patches_debug_71
rasdani/github-patches
git_diff
typeddjango__django-stubs-640
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "field" and "exclude" arguments of model_to_dict() do not accept sets # Bug report ## What's wrong Our test suite contains code that simplifies to this fragment: ```py from typing import Mapping fr...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ readme = f.read() dependencies = [ - "mypy>=0.790", + "mypy>=0.900", "typing-extensions", "django", "django-stubs-ext",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -21,7 +21,7 @@\n readme = f.read()\n \n dependencies = [\n- \"mypy>=0.790\",\n+ \"mypy>=0.900\",\n \"typing-extensions\",\n \"django\",\n \"django-stubs-ext\",\n", "issue": "\"field\" and \"exclude\" arguments of...
gh_patches_debug_72
rasdani/github-patches
git_diff
sosreport__sos-724
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove hashlib import from sos/utilities.py since With the removal of the hashing functions from sos/utilities.py there is no need to import hashlib. The hashing was removed in the following commit: https:/...
diff --git a/sos/utilities.py b/sos/utilities.py --- a/sos/utilities.py +++ b/sos/utilities.py @@ -18,7 +18,6 @@ import re import inspect from subprocess import Popen, PIPE, STDOUT -import hashlib import logging import fnmatch import errno
{"golden_diff": "diff --git a/sos/utilities.py b/sos/utilities.py\n--- a/sos/utilities.py\n+++ b/sos/utilities.py\n@@ -18,7 +18,6 @@\n import re\n import inspect\n from subprocess import Popen, PIPE, STDOUT\n-import hashlib\n import logging\n import fnmatch\n import errno\n", "issue": "Remove hashlib import from sos/ut...
gh_patches_debug_73
rasdani/github-patches
git_diff
paperless-ngx__paperless-ngx-4158
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Security] saved_views API returns (hashed) user password in response ### Description The response of `GET /api/saved_views/` includes the hashed password of the owner of the saved view. ### Steps to reprod...
diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -476,7 +476,6 @@ class Meta: model = SavedView - depth = 1 fields = [ "id", "name",
{"golden_diff": "diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py\n--- a/src/documents/serialisers.py\n+++ b/src/documents/serialisers.py\n@@ -476,7 +476,6 @@\n \n class Meta:\n model = SavedView\n- depth = 1\n fields = [\n \"id\",\n \"name\",\n...
gh_patches_debug_74
rasdani/github-patches
git_diff
airctic__icevision-441
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add icedata to icevision.all ## 🚀 Feature Currently to train a dataset available with icedata the following two lines are necessary: ```python import icedata from icevision.all import * ``` Because i...
diff --git a/icevision/all.py b/icevision/all.py --- a/icevision/all.py +++ b/icevision/all.py @@ -1,2 +1,9 @@ from icevision.imports import * from icevision import * + +# soft import icedata +try: + import icedata +except ModuleNotFoundError as e: + if str(e) != f"No module named 'icedata'": + raise e
{"golden_diff": "diff --git a/icevision/all.py b/icevision/all.py\n--- a/icevision/all.py\n+++ b/icevision/all.py\n@@ -1,2 +1,9 @@\n from icevision.imports import *\n from icevision import *\n+\n+# soft import icedata\n+try:\n+ import icedata\n+except ModuleNotFoundError as e:\n+ if str(e) != f\"No module named '...
gh_patches_debug_75
rasdani/github-patches
git_diff
pypi__warehouse-2399
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pagination for releases on Project Admin doesn't work The pagination on releases does not appear to be functional in the project admin. It shows the first N releases, but when you click to see all, there is n...
diff --git a/warehouse/admin/views/projects.py b/warehouse/admin/views/projects.py --- a/warehouse/admin/views/projects.py +++ b/warehouse/admin/views/projects.py @@ -149,7 +149,7 @@ ) return { - "releases": list(releases), + "releases": releases, "project": project, "query":...
{"golden_diff": "diff --git a/warehouse/admin/views/projects.py b/warehouse/admin/views/projects.py\n--- a/warehouse/admin/views/projects.py\n+++ b/warehouse/admin/views/projects.py\n@@ -149,7 +149,7 @@\n )\n \n return {\n- \"releases\": list(releases),\n+ \"releases\": releases,\n \"proje...
gh_patches_debug_76
rasdani/github-patches
git_diff
pytorch__TensorRT-196
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 🐛 [Bug] UnicodeDecodeError running setup.py ## Bug Description Trying to run "python setup.py install" fails with a unicode error when reading README.md. ## To Reproduce Steps to reproduce the beha...
diff --git a/py/setup.py b/py/setup.py --- a/py/setup.py +++ b/py/setup.py @@ -190,7 +190,7 @@ ) ] -with open("README.md", "r") as fh: +with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup(
{"golden_diff": "diff --git a/py/setup.py b/py/setup.py\n--- a/py/setup.py\n+++ b/py/setup.py\n@@ -190,7 +190,7 @@\n )\n ]\n \n-with open(\"README.md\", \"r\") as fh:\n+with open(\"README.md\", \"r\", encoding=\"utf-8\") as fh:\n long_description = fh.read()\n \n setup(\n", "issue": "\ud...
gh_patches_debug_77
rasdani/github-patches
git_diff
Lightning-Universe__lightning-flash-1426
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix Flash CI (special examples failing) --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `flash_examples/int...
diff --git a/flash_examples/integrations/learn2learn/image_classification_imagenette_mini.py b/flash_examples/integrations/learn2learn/image_classification_imagenette_mini.py --- a/flash_examples/integrations/learn2learn/image_classification_imagenette_mini.py +++ b/flash_examples/integrations/learn2learn/image_classif...
{"golden_diff": "diff --git a/flash_examples/integrations/learn2learn/image_classification_imagenette_mini.py b/flash_examples/integrations/learn2learn/image_classification_imagenette_mini.py\n--- a/flash_examples/integrations/learn2learn/image_classification_imagenette_mini.py\n+++ b/flash_examples/integrations/learn2...
gh_patches_debug_78
rasdani/github-patches
git_diff
projectmesa__mesa-1860
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mesa.visualization.chartmodule doesn't work As shown in the picture, I run the boltzmann_wealth_model in the mesa example, but the line chart is not displayed normally. Can anyone help me? <img width="788" a...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ "click", "cookiecutter", "matplotlib", - "mesa_viz_tornado", + "mesa_viz_tornado~=0.1.0,>=0.1.2", "networkx", "numpy", "pandas",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -8,7 +8,7 @@\n \"click\",\n \"cookiecutter\",\n \"matplotlib\",\n- \"mesa_viz_tornado\",\n+ \"mesa_viz_tornado~=0.1.0,>=0.1.2\",\n \"networkx\",\n \"numpy\",\n \"pandas\",\n", "issue": "mesa.visualization...
gh_patches_debug_79
rasdani/github-patches
git_diff
getsentry__sentry-45511
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The weekly reports mail is sent repeatedly 16 times, once every minute ### Environment self-hosted (https://develop.sentry.dev/self-hosted/) ### Version 23.1.1 ### Steps to Reproduce 1、Run `Sen...
diff --git a/src/sentry/tasks/weekly_reports.py b/src/sentry/tasks/weekly_reports.py --- a/src/sentry/tasks/weekly_reports.py +++ b/src/sentry/tasks/weekly_reports.py @@ -892,4 +892,4 @@ message.send(to=(email_override,)) else: message.add_users((user.id,)) - message.send() + messag...
{"golden_diff": "diff --git a/src/sentry/tasks/weekly_reports.py b/src/sentry/tasks/weekly_reports.py\n--- a/src/sentry/tasks/weekly_reports.py\n+++ b/src/sentry/tasks/weekly_reports.py\n@@ -892,4 +892,4 @@\n message.send(to=(email_override,))\n else:\n message.add_users((user.id,))\n- messag...
gh_patches_debug_80
rasdani/github-patches
git_diff
pwndbg__pwndbg-495
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wrong context regs display on [remote?] targets that use multiple threads ### Description While I was debugging a 32-bit process on an ARM Android device, I sometimes noticed that atleast one of the regist...
diff --git a/pwndbg/regs.py b/pwndbg/regs.py --- a/pwndbg/regs.py +++ b/pwndbg/regs.py @@ -423,6 +423,7 @@ @pwndbg.events.cont +@pwndbg.events.stop def update_last(): M = sys.modules[__name__] M.last = {k:M[k] for k in M.common}
{"golden_diff": "diff --git a/pwndbg/regs.py b/pwndbg/regs.py\n--- a/pwndbg/regs.py\n+++ b/pwndbg/regs.py\n@@ -423,6 +423,7 @@\n \n \n @pwndbg.events.cont\n+@pwndbg.events.stop\n def update_last():\n M = sys.modules[__name__]\n M.last = {k:M[k] for k in M.common}\n", "issue": "Wrong context regs display on [rem...
gh_patches_debug_81
rasdani/github-patches
git_diff
zulip__zulip-13067
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Clean up `update-locked-requirements` and `requirements.in` files to remove `-e` hackery. It looks like https://github.com/jazzband/pip-tools/pull/807 was included in the latest `pip-tools` release 12 days ag...
diff --git a/version.py b/version.py --- a/version.py +++ b/version.py @@ -26,4 +26,4 @@ # historical commits sharing the same major version, in which case a # minor version bump suffices. -PROVISION_VERSION = '49.1' +PROVISION_VERSION = '49.2'
{"golden_diff": "diff --git a/version.py b/version.py\n--- a/version.py\n+++ b/version.py\n@@ -26,4 +26,4 @@\n # historical commits sharing the same major version, in which case a\n # minor version bump suffices.\n \n-PROVISION_VERSION = '49.1'\n+PROVISION_VERSION = '49.2'\n", "issue": "Clean up `update-locked-requ...
gh_patches_debug_82
rasdani/github-patches
git_diff
spyder-ide__spyder-8896
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- spyder 3.3.3 icon theme Spyder 3 problem with PyQt 5.12 ## Problem Description After updating to Spyder 3.3.3 (on Linux, with Python 3.6.7 64-bit | | Qt 5.12.1 | PyQt5 5.12 ) spyder icon theme "Spyder 3" s...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -232,7 +232,7 @@ 'pycodestyle', 'pylint', 'psutil', - 'qtawesome>=0.4.1', + 'qtawesome>=0.5.7', 'qtpy>=1.5.0', 'pickleshare', 'pyzmq',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -232,7 +232,7 @@\n 'pycodestyle',\n 'pylint',\n 'psutil',\n- 'qtawesome>=0.4.1',\n+ 'qtawesome>=0.5.7',\n 'qtpy>=1.5.0',\n 'pickleshare',\n 'pyzmq',\n", "issue": "spyder 3.3.3 icon theme Spyder 3 problem ...
gh_patches_debug_83
rasdani/github-patches
git_diff
saulpw__visidata-2036
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: cannot read .vds with expression column **Small description** Visidata cannot read back sheet(s) it saved as `.vds` if they contain an expression column. "KeyError: 'ExprColumn'" shows as error, result...
diff --git a/visidata/loaders/vds.py b/visidata/loaders/vds.py --- a/visidata/loaders/vds.py +++ b/visidata/loaders/vds.py @@ -2,7 +2,7 @@ import json -from visidata import VisiData, JsonSheet, Progress, IndexSheet, SettableColumn, ItemColumn +from visidata import VisiData, JsonSheet, Progress, IndexSheet, Settabl...
{"golden_diff": "diff --git a/visidata/loaders/vds.py b/visidata/loaders/vds.py\n--- a/visidata/loaders/vds.py\n+++ b/visidata/loaders/vds.py\n@@ -2,7 +2,7 @@\n \n import json\n \n-from visidata import VisiData, JsonSheet, Progress, IndexSheet, SettableColumn, ItemColumn\n+from visidata import VisiData, JsonSheet, Prog...
gh_patches_debug_84
rasdani/github-patches
git_diff
cupy__cupy-5857
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Drop support for NumPy 1.17 in v10 (NEP 29) CuPy should drop support for these legacy versions, following [NEP 29](https://numpy.org/neps/nep-0029-deprecation_policy.html#support-table). --- END ISSUE --- B...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ 'fastrlock>=0.5', ] install_requires = [ - 'numpy>=1.17,<1.24', # see #4773 + 'numpy>=1.18,<1.24', # see #4773 'fastrlock>=0.5', ] extras_require = {
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -23,7 +23,7 @@\n 'fastrlock>=0.5',\n ]\n install_requires = [\n- 'numpy>=1.17,<1.24', # see #4773\n+ 'numpy>=1.18,<1.24', # see #4773\n 'fastrlock>=0.5',\n ]\n extras_require = {\n", "issue": "Drop support for NumPy 1....
gh_patches_debug_85
rasdani/github-patches
git_diff
saulpw__visidata-2307
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [cmdlog] sheets created with no keypresses show errors **Small description** clicking on `dir_hidden` in the DirSheet guide raises an exception **Actual result with screenshot** ``` File "/home/midiche...
diff --git a/visidata/cmdlog.py b/visidata/cmdlog.py --- a/visidata/cmdlog.py +++ b/visidata/cmdlog.py @@ -414,7 +414,7 @@ pass try: - return self.cmdlog_sheet.rows[0].keystrokes + return self.cmdlog_sheet.rows[0].keystrokes or '' #2293 except Exception: pass
{"golden_diff": "diff --git a/visidata/cmdlog.py b/visidata/cmdlog.py\n--- a/visidata/cmdlog.py\n+++ b/visidata/cmdlog.py\n@@ -414,7 +414,7 @@\n pass\n \n try:\n- return self.cmdlog_sheet.rows[0].keystrokes\n+ return self.cmdlog_sheet.rows[0].keystrokes or '' #2293\n except Exception:\n ...
gh_patches_debug_86
rasdani/github-patches
git_diff
cupy__cupy-2938
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Drop support of older NumPy (<=1.14)? According to [NEP 29](https://numpy.org/neps/nep-0029-deprecation_policy.html), an unusual NumPy Enhancement Proposal that declares a community-wide policy instead of mer...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ 'fastrlock>=0.3', ], 'install': [ - 'numpy>=1.9.0', + 'numpy>=1.15', 'fastrlock>=0.3', ], 'stylecheck': [
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -24,7 +24,7 @@\n 'fastrlock>=0.3',\n ],\n 'install': [\n- 'numpy>=1.9.0',\n+ 'numpy>=1.15',\n 'fastrlock>=0.3',\n ],\n 'stylecheck': [\n", "issue": "Drop support of older NumPy (<=1.14)?\n...
gh_patches_debug_87
rasdani/github-patches
git_diff
flask-admin__flask-admin-1732
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Regression: Batch actions not working On the master branch, batch actions fail with a JS error: `TypeError: undefined is not an object (evaluating 'modelActions.execute')` --- END ISSUE --- Below are some c...
diff --git a/examples/sqla/app.py b/examples/sqla/app.py --- a/examples/sqla/app.py +++ b/examples/sqla/app.py @@ -145,6 +145,7 @@ } class UserAdmin(sqla.ModelView): + action_disallowed_list = ['delete', ] column_display_pk = True column_list = [ 'id',
{"golden_diff": "diff --git a/examples/sqla/app.py b/examples/sqla/app.py\n--- a/examples/sqla/app.py\n+++ b/examples/sqla/app.py\n@@ -145,6 +145,7 @@\n }\n \n class UserAdmin(sqla.ModelView):\n+ action_disallowed_list = ['delete', ]\n column_display_pk = True\n column_list = [\n 'id',\n", "issue": "...
gh_patches_debug_88
rasdani/github-patches
git_diff
spacetelescope__jwql-677
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update Bokeh to latest version I remember there was some reason that we were holding off on upgrading Bokeh from 1.3.4. However, Bokeh is now up to version 2.2.1 I believe. We should look into upgrading the v...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ 'astropy>=3.2.1', 'astroquery>=0.3.9', 'authlib', - 'bokeh>=1.0,<1.4', + 'bokeh', 'codecov', 'crds', 'cryptography',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -16,7 +16,7 @@\n 'astropy>=3.2.1',\n 'astroquery>=0.3.9',\n 'authlib',\n- 'bokeh>=1.0,<1.4',\n+ 'bokeh',\n 'codecov',\n 'crds',\n 'cryptography',\n", "issue": "Update Bokeh to latest version\nI remember t...
gh_patches_debug_89
rasdani/github-patches
git_diff
googleapis__python-spanner-django-652
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Kokoro build is failing for new PRs with no change in code Kokoro build is failing for new PRs with no change in code https://github.com/googleapis/python-spanner-django/pull/652 --- END ISSUE --- Below are...
diff --git a/version.py b/version.py --- a/version.py +++ b/version.py @@ -4,4 +4,4 @@ # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd -__version__ = "2.2.1b1" +__version__ = "2.2.1b2"
{"golden_diff": "diff --git a/version.py b/version.py\n--- a/version.py\n+++ b/version.py\n@@ -4,4 +4,4 @@\n # license that can be found in the LICENSE file or at\n # https://developers.google.com/open-source/licenses/bsd\n \n-__version__ = \"2.2.1b1\"\n+__version__ = \"2.2.1b2\"\n", "issue": "Kokoro build is failing f...
gh_patches_debug_90
rasdani/github-patches
git_diff
microsoft__ptvsd-167
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error reading integer From VS (might not be a ptvsd bug, not sure at this point): Create new python application Add new item, python unit test Set the unit test as startup file F5 Result: ``` -------...
diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py --- a/ptvsd/debugger.py +++ b/ptvsd/debugger.py @@ -32,5 +32,5 @@ try: pydevd.main() except SystemExit as ex: - ptvsd.wrapper.ptvsd_sys_exit_code = ex.code + ptvsd.wrapper.ptvsd_sys_exit_code = int(ex.code) raise
{"golden_diff": "diff --git a/ptvsd/debugger.py b/ptvsd/debugger.py\n--- a/ptvsd/debugger.py\n+++ b/ptvsd/debugger.py\n@@ -32,5 +32,5 @@\n try:\n pydevd.main()\n except SystemExit as ex:\n- ptvsd.wrapper.ptvsd_sys_exit_code = ex.code\n+ ptvsd.wrapper.ptvsd_sys_exit_code = int(ex.code)\n ...
gh_patches_debug_91
rasdani/github-patches
git_diff
Pylons__pyramid-3271
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bump Sphinx to >=1.7.2 Would anyone be opposed to bumping Sphinx to >=1.7.2, != 1.7.3 in `setup.py`? I really want our PDFs to have `emphasize-lines` support, at long last, and bring in support for Unicode ch...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ docs_extras = [ - 'Sphinx >= 1.3.5, != 1.7.3', + 'Sphinx >= 1.7.4', 'docutils', 'repoze.sphinx.autointerface', 'pylons_sphinx_latesturl',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -40,7 +40,7 @@\n \n \n docs_extras = [\n- 'Sphinx >= 1.3.5, != 1.7.3',\n+ 'Sphinx >= 1.7.4',\n 'docutils',\n 'repoze.sphinx.autointerface',\n 'pylons_sphinx_latesturl',\n", "issue": "Bump Sphinx to >=1.7.2\nWould any...
gh_patches_debug_92
rasdani/github-patches
git_diff
Kinto__kinto-797
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- init fails on osx at the backend selection step I followed the instructions given [here](https://kinto.readthedocs.io/en/stable/tutorials/install.html#from-sources), but when asked: ``` $ Select the backend ...
diff --git a/kinto/__main__.py b/kinto/__main__.py --- a/kinto/__main__.py +++ b/kinto/__main__.py @@ -4,6 +4,7 @@ import sys import logging import logging.config +from six.moves import input from kinto.core import scripts from pyramid.scripts import pserve
{"golden_diff": "diff --git a/kinto/__main__.py b/kinto/__main__.py\n--- a/kinto/__main__.py\n+++ b/kinto/__main__.py\n@@ -4,6 +4,7 @@\n import sys\n import logging\n import logging.config\n+from six.moves import input\n \n from kinto.core import scripts\n from pyramid.scripts import pserve\n", "issue": "init fails on ...
gh_patches_debug_93
rasdani/github-patches
git_diff
ManimCommunity__manim-1635
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- numpy not imported in `manim.mobject.probability` ## Description of bug / unexpected behavior <!-- Add a clear and concise description of the problem you encountered. --> When you try to use `BarChart` it r...
diff --git a/manim/mobject/probability.py b/manim/mobject/probability.py --- a/manim/mobject/probability.py +++ b/manim/mobject/probability.py @@ -2,6 +2,7 @@ __all__ = ["SampleSpace", "BarChart"] +import numpy as np from ..constants import * from ..mobject.geometry import Line, Rectangle
{"golden_diff": "diff --git a/manim/mobject/probability.py b/manim/mobject/probability.py\n--- a/manim/mobject/probability.py\n+++ b/manim/mobject/probability.py\n@@ -2,6 +2,7 @@\n \n __all__ = [\"SampleSpace\", \"BarChart\"]\n \n+import numpy as np\n \n from ..constants import *\n from ..mobject.geometry import Line, ...
gh_patches_debug_94
rasdani/github-patches
git_diff
docker__docker-py-1669
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Issue with port option in 2.4.0 version Hi, I update to the 2.4 today and i got issue with docker-compose when i try to add the following line to my configuration file (docker-compose.yml) : `ports: ...
diff --git a/docker/utils/ports.py b/docker/utils/ports.py --- a/docker/utils/ports.py +++ b/docker/utils/ports.py @@ -54,6 +54,7 @@ def split_port(port): + port = str(port) match = PORT_SPEC.match(port) if match is None: _raise_invalid_port(port)
{"golden_diff": "diff --git a/docker/utils/ports.py b/docker/utils/ports.py\n--- a/docker/utils/ports.py\n+++ b/docker/utils/ports.py\n@@ -54,6 +54,7 @@\n \n \n def split_port(port):\n+ port = str(port)\n match = PORT_SPEC.match(port)\n if match is None:\n _raise_invalid_port(port)\n", "issue": "Issu...
gh_patches_debug_95
rasdani/github-patches
git_diff
python-telegram-bot__python-telegram-bot-4130
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: 'Updater' object has no attribute '_Updater__polling_cleanup_cb' and no __dict__ for setting new attributes ### Steps to Reproduce 1. Created the bot and run the code below: ```python impor...
diff --git a/telegram/ext/_updater.py b/telegram/ext/_updater.py --- a/telegram/ext/_updater.py +++ b/telegram/ext/_updater.py @@ -102,6 +102,7 @@ __slots__ = ( "__lock", + "__polling_cleanup_cb", "__polling_task", "_httpd", "_initialized",
{"golden_diff": "diff --git a/telegram/ext/_updater.py b/telegram/ext/_updater.py\n--- a/telegram/ext/_updater.py\n+++ b/telegram/ext/_updater.py\n@@ -102,6 +102,7 @@\n \n __slots__ = (\n \"__lock\",\n+ \"__polling_cleanup_cb\",\n \"__polling_task\",\n \"_httpd\",\n \"_initial...
gh_patches_debug_96
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-599
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add Source grosswangen_ch python3 test_sources.py -s grosswangen_ch -i -l Testing source grosswangen_ch ... found 58 entries for TEST 2023-01-12: Grüngutabfuhr [mdi:leaf] 2023-01-26: Kehricht-A...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/grosswangen_ch.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/grosswangen_ch.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/grosswangen_ch.py +++ b/custom_c...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/grosswangen_ch.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/grosswangen_ch.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/grosswangen_ch...
gh_patches_debug_97
rasdani/github-patches
git_diff
voxel51__fiftyone-2441
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Use same default expansion logic when sidebar groups are defined As of `fiftyone==0.18`, the sidebar has some nice default logic, such as automatically collapsing the `OTHER` group for the dataset below...
diff --git a/fiftyone/server/query.py b/fiftyone/server/query.py --- a/fiftyone/server/query.py +++ b/fiftyone/server/query.py @@ -142,7 +142,7 @@ class SidebarGroup: name: str paths: t.Optional[t.List[str]] - expanded: t.Optional[bool] = True + expanded: t.Optional[bool] = None @gql.type
{"golden_diff": "diff --git a/fiftyone/server/query.py b/fiftyone/server/query.py\n--- a/fiftyone/server/query.py\n+++ b/fiftyone/server/query.py\n@@ -142,7 +142,7 @@\n class SidebarGroup:\n name: str\n paths: t.Optional[t.List[str]]\n- expanded: t.Optional[bool] = True\n+ expanded: t.Optional[bool] = Non...
gh_patches_debug_98
rasdani/github-patches
git_diff
Flexget__Flexget-3491
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plugin medusa authentication issue Good evening. I'm running into an authentication issue using plugin medusa. Expected behavior is seen below, list of show is retreived properly using the api. ``` root@f...
diff --git a/flexget/plugins/input/medusa.py b/flexget/plugins/input/medusa.py --- a/flexget/plugins/input/medusa.py +++ b/flexget/plugins/input/medusa.py @@ -73,7 +73,7 @@ 'token' ] - headers = {'authorization': 'Bearer ' + api_key} + headers = {'x-auth': 'Bearer ' + api_key} ...
{"golden_diff": "diff --git a/flexget/plugins/input/medusa.py b/flexget/plugins/input/medusa.py\n--- a/flexget/plugins/input/medusa.py\n+++ b/flexget/plugins/input/medusa.py\n@@ -73,7 +73,7 @@\n 'token'\n ]\n \n- headers = {'authorization': 'Bearer ' + api_key}\n+ headers = {'x-auth': ...
gh_patches_debug_99
rasdani/github-patches
git_diff
pwr-Solaar__Solaar-907
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- locale.Error: unsupported locale setting exception when glibc locale files are not present **Information** - Solaar version: 1.0.3 - Distribution: Fedora - Kernel version (ex. `uname -srmo`): `Linux 5.7.11...
diff --git a/lib/solaar/i18n.py b/lib/solaar/i18n.py --- a/lib/solaar/i18n.py +++ b/lib/solaar/i18n.py @@ -47,7 +47,11 @@ # del _path -locale.setlocale(locale.LC_ALL, '') +try: + locale.setlocale(locale.LC_ALL, '') +except Exception: + pass + language, encoding = locale.getlocale() del locale
{"golden_diff": "diff --git a/lib/solaar/i18n.py b/lib/solaar/i18n.py\n--- a/lib/solaar/i18n.py\n+++ b/lib/solaar/i18n.py\n@@ -47,7 +47,11 @@\n # del _path\n \n \n-locale.setlocale(locale.LC_ALL, '')\n+try:\n+ locale.setlocale(locale.LC_ALL, '')\n+except Exception:\n+ pass\n+\n language, encoding = locale.get...