problem_id
stringlengths
18
22
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
58
prompt
stringlengths
1.1k
10.2k
golden_diff
stringlengths
151
4.94k
verification_info
stringlengths
582
21k
num_tokens
int64
271
2.05k
num_tokens_diff
int64
47
1.02k
gh_patches_debug_12370
rasdani/github-patches
git_diff
google__openhtf-181
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add ability to pass in dut_serial via command line config Add ability to pass in dut_serial via command line. This would be a useful feature when doing loop test --- END ISSUE --- Below are some code segm...
diff --git a/openhtf/exe/triggers.py b/openhtf/exe/triggers.py --- a/openhtf/exe/triggers.py +++ b/openhtf/exe/triggers.py @@ -38,14 +38,20 @@ import logging import time +import gflags + from openhtf.io import user_input -_LOG = logging.getLogger(__name__) +gflags.DEFINE_string('dut_serial', 'UNKNOWN_DUT_ID', + ...
{"golden_diff": "diff --git a/openhtf/exe/triggers.py b/openhtf/exe/triggers.py\n--- a/openhtf/exe/triggers.py\n+++ b/openhtf/exe/triggers.py\n@@ -38,14 +38,20 @@\n import logging\n import time\n \n+import gflags\n+\n from openhtf.io import user_input\n \n-_LOG = logging.getLogger(__name__)\n+gflags.DEFINE_string('dut_...
1,022
207
gh_patches_debug_12079
rasdani/github-patches
git_diff
pretalx__pretalx-185
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Restructure CSS - [x] Use `$brand_color` - [ ] Break SCSS up into more files --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEG...
diff --git a/src/pretalx/common/tasks.py b/src/pretalx/common/tasks.py --- a/src/pretalx/common/tasks.py +++ b/src/pretalx/common/tasks.py @@ -23,12 +23,12 @@ return for local_app in local_apps: + path = os.path.join(settings.STATIC_ROOT, local_app, 'scss/main.scss') sassrules = [] + ...
{"golden_diff": "diff --git a/src/pretalx/common/tasks.py b/src/pretalx/common/tasks.py\n--- a/src/pretalx/common/tasks.py\n+++ b/src/pretalx/common/tasks.py\n@@ -23,12 +23,12 @@\n return\n \n for local_app in local_apps:\n+ path = os.path.join(settings.STATIC_ROOT, local_app, 'scss/main.scss')\n ...
732
186
gh_patches_debug_35351
rasdani/github-patches
git_diff
microsoft__onnxscript-392
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ghpage: use the Furo theme https://pradyunsg.me/furo/. It’s pretty and more modern. Used by black https://black.readthedocs.io/en/stable/# --- END ISSUE --- Below are some code segments, each from a relevan...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -12,7 +12,7 @@ # -- Project information ----------------------------------------------------- project = "onnx-script" -copyright = "2022, onnx" +copyright = "2023, onnx" author = "onnx" version = onnxscript.__version__ release = ve...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -12,7 +12,7 @@\n # -- Project information -----------------------------------------------------\n \n project = \"onnx-script\"\n-copyright = \"2022, onnx\"\n+copyright = \"2023, onnx\"\n author = \"onnx\"\n version = o...
998
479
gh_patches_debug_49854
rasdani/github-patches
git_diff
urllib3__urllib3-678
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- setup.py extra_require for certifi, pyopenssl, other? Try to setup as many of https://urllib3.readthedocs.org/en/latest/security.html#security's recommended dependencies as possible. Maybe something like `pi...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -54,4 +54,15 @@ 'tornado', ], test_suite='test', + extras_require={ + 'secure;python_version<="2.7"': [ + 'pyOpenSSL', + 'ndg-httpsclient', + 'pyasn1', + 'certifi'...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -54,4 +54,15 @@\n 'tornado',\n ],\n test_suite='test',\n+ extras_require={\n+ 'secure;python_version<=\"2.7\"': [\n+ 'pyOpenSSL',\n+ 'ndg-httpsclient',\n+ 'pya...
831
126
gh_patches_debug_2284
rasdani/github-patches
git_diff
OCA__social-91
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unable to send email on new template module: mail_notification_email_template version: 8.0 **Steps to reproduce** - Install Sales module and activate technical settings -configure and test one outgoing ser...
diff --git a/mail_notification_email_template/models/mail_notification.py b/mail_notification_email_template/models/mail_notification.py --- a/mail_notification_email_template/models/mail_notification.py +++ b/mail_notification_email_template/models/mail_notification.py @@ -65,5 +65,5 @@ }), ...
{"golden_diff": "diff --git a/mail_notification_email_template/models/mail_notification.py b/mail_notification_email_template/models/mail_notification.py\n--- a/mail_notification_email_template/models/mail_notification.py\n+++ b/mail_notification_email_template/models/mail_notification.py\n@@ -65,5 +65,5 @@\n ...
1,274
114
gh_patches_debug_22969
rasdani/github-patches
git_diff
TencentBlueKing__bk-user-935
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 【安全】安全漏洞扫描,生产环境下能访问后台swagger **用文字描述你遇到的问题** 生产环境,swagger未屏蔽可访问 **重现方法** ![image](https://user-images.githubusercontent.com/49228807/221740484-96ab7d07-ba5c-44c6-bc2f-420f9de733ed.png) 对应源码未屏蔽 http...
diff --git a/src/api/bkuser_core/apis/urls.py b/src/api/bkuser_core/apis/urls.py --- a/src/api/bkuser_core/apis/urls.py +++ b/src/api/bkuser_core/apis/urls.py @@ -8,6 +8,7 @@ an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing ...
{"golden_diff": "diff --git a/src/api/bkuser_core/apis/urls.py b/src/api/bkuser_core/apis/urls.py\n--- a/src/api/bkuser_core/apis/urls.py\n+++ b/src/api/bkuser_core/apis/urls.py\n@@ -8,6 +8,7 @@\n an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the\n spec...
1,127
357
gh_patches_debug_40156
rasdani/github-patches
git_diff
learningequality__kolibri-4999
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- MultipleObjectsReturned: get() returned more than one Lesson -- it returned 2! Sentry Issue: [KOLIBRI-BACKEND-7](https://sentry.io/learningequality/kolibri-backend/issues/877453921/?referrer=github_integratio...
diff --git a/kolibri/plugins/learn/serializers.py b/kolibri/plugins/learn/serializers.py --- a/kolibri/plugins/learn/serializers.py +++ b/kolibri/plugins/learn/serializers.py @@ -4,9 +4,12 @@ from rest_framework.serializers import ModelSerializer from rest_framework.serializers import SerializerMethodField +from ko...
{"golden_diff": "diff --git a/kolibri/plugins/learn/serializers.py b/kolibri/plugins/learn/serializers.py\n--- a/kolibri/plugins/learn/serializers.py\n+++ b/kolibri/plugins/learn/serializers.py\n@@ -4,9 +4,12 @@\n from rest_framework.serializers import ModelSerializer\n from rest_framework.serializers import Serializer...
2,017
674
gh_patches_debug_4072
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-3127
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Implement frontend flow: User sharing an entity I've not added a description, since I'll be implementing this. Refer [Product spec](https://wiki.mathesar.org/en/product/specs/publicly-shareable-links) for ...
diff --git a/mathesar/api/ui/permissions/shares.py b/mathesar/api/ui/permissions/shares.py --- a/mathesar/api/ui/permissions/shares.py +++ b/mathesar/api/ui/permissions/shares.py @@ -16,7 +16,7 @@ 'action': ['create', 'destroy', 'update', 'partial_update'], 'principal': 'authenticated', ...
{"golden_diff": "diff --git a/mathesar/api/ui/permissions/shares.py b/mathesar/api/ui/permissions/shares.py\n--- a/mathesar/api/ui/permissions/shares.py\n+++ b/mathesar/api/ui/permissions/shares.py\n@@ -16,7 +16,7 @@\n 'action': ['create', 'destroy', 'update', 'partial_update'],\n 'principal': '...
736
125
gh_patches_debug_24804
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-7262
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NewspowerAUSpider - can this be rewritten as a WPStoreLocator spider? ``` import re from html import unescape from chompjs import parse_js_object from scrapy.spiders import SitemapSpider from locatio...
diff --git a/locations/spiders/newspower_au.py b/locations/spiders/newspower_au.py --- a/locations/spiders/newspower_au.py +++ b/locations/spiders/newspower_au.py @@ -9,6 +9,11 @@ class NewspowerAUSpider(SitemapSpider): + # Whilst WP Store Locator is used for this brand, it is set to + # return at most the 5...
{"golden_diff": "diff --git a/locations/spiders/newspower_au.py b/locations/spiders/newspower_au.py\n--- a/locations/spiders/newspower_au.py\n+++ b/locations/spiders/newspower_au.py\n@@ -9,6 +9,11 @@\n \n \n class NewspowerAUSpider(SitemapSpider):\n+ # Whilst WP Store Locator is used for this brand, it is set to\n+ ...
1,605
388
gh_patches_debug_8250
rasdani/github-patches
git_diff
saleor__saleor-4824
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Users can create the same address multiple times ### Steps to reproduce the problem 1. Start checkout 1. Set a shipping address A 1. Set a billing address B 1. Place the order 1. Go to your account detai...
diff --git a/saleor/account/utils.py b/saleor/account/utils.py --- a/saleor/account/utils.py +++ b/saleor/account/utils.py @@ -14,7 +14,11 @@ def store_user_address(user, address, address_type): """Add address to user address book and set as default one.""" - address, _ = user.addresses.get_or_create(**addre...
{"golden_diff": "diff --git a/saleor/account/utils.py b/saleor/account/utils.py\n--- a/saleor/account/utils.py\n+++ b/saleor/account/utils.py\n@@ -14,7 +14,11 @@\n \n def store_user_address(user, address, address_type):\n \"\"\"Add address to user address book and set as default one.\"\"\"\n- address, _ = user.a...
1,056
155
gh_patches_debug_12244
rasdani/github-patches
git_diff
vega__altair-2106
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Options of `point` argument Documentation of `point` argument in marks isn't very easily discoverable. Recently I tried to create a chart with colored line and points. My first try was with `mark_line(colo...
diff --git a/altair/examples/line_chart_with_points.py b/altair/examples/line_chart_with_points.py --- a/altair/examples/line_chart_with_points.py +++ b/altair/examples/line_chart_with_points.py @@ -1,7 +1,9 @@ """ Line Chart with Points ---------------------- -This chart shows a simple line chart with points markin...
{"golden_diff": "diff --git a/altair/examples/line_chart_with_points.py b/altair/examples/line_chart_with_points.py\n--- a/altair/examples/line_chart_with_points.py\n+++ b/altair/examples/line_chart_with_points.py\n@@ -1,7 +1,9 @@\n \"\"\"\n Line Chart with Points\n ----------------------\n-This chart shows a simple li...
787
210
gh_patches_debug_23834
rasdani/github-patches
git_diff
NVIDIA__NVFlare-380
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Yaml loader should be replaced by safe_loader or other more secure loader To load yaml files from unknown source, we should avoid using yaml's loader. A better way is to use either safe_loader or other mecha...
diff --git a/nvflare/lighter/provision.py b/nvflare/lighter/provision.py --- a/nvflare/lighter/provision.py +++ b/nvflare/lighter/provision.py @@ -21,10 +21,9 @@ import sys import webbrowser -import yaml - from nvflare.fuel.utils.class_utils import instantiate_class from nvflare.lighter.spec import Participant, P...
{"golden_diff": "diff --git a/nvflare/lighter/provision.py b/nvflare/lighter/provision.py\n--- a/nvflare/lighter/provision.py\n+++ b/nvflare/lighter/provision.py\n@@ -21,10 +21,9 @@\n import sys\n import webbrowser\n \n-import yaml\n-\n from nvflare.fuel.utils.class_utils import instantiate_class\n from nvflare.lighter...
1,980
315
gh_patches_debug_16051
rasdani/github-patches
git_diff
docker__docker-py-812
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- requests 2.8.0 re-introduces bug #647 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `docker/unixconn/unix...
diff --git a/docker/unixconn/unixconn.py b/docker/unixconn/unixconn.py --- a/docker/unixconn/unixconn.py +++ b/docker/unixconn/unixconn.py @@ -73,12 +73,20 @@ if pool: return pool - pool = UnixHTTPConnectionPool(url, - self.socket_path,...
{"golden_diff": "diff --git a/docker/unixconn/unixconn.py b/docker/unixconn/unixconn.py\n--- a/docker/unixconn/unixconn.py\n+++ b/docker/unixconn/unixconn.py\n@@ -73,12 +73,20 @@\n if pool:\n return pool\n \n- pool = UnixHTTPConnectionPool(url,\n- ...
1,047
237
gh_patches_debug_13689
rasdani/github-patches
git_diff
conan-io__conan-2592
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- conan search gives AttributeError: 'UserIO' object has no attribute 'warn' Version: 1.1.1 OS: Linux Ubuntu 14.04 conda: v4.2.7 Repro steps: * `conda create -n conan python=2.7` * `source activate cona...
diff --git a/conans/client/cmd/search.py b/conans/client/cmd/search.py --- a/conans/client/cmd/search.py +++ b/conans/client/cmd/search.py @@ -41,7 +41,7 @@ packages properties: "arch=x86 AND os=Windows" """ if remote: - remote = RemoteRegistry(self._clie...
{"golden_diff": "diff --git a/conans/client/cmd/search.py b/conans/client/cmd/search.py\n--- a/conans/client/cmd/search.py\n+++ b/conans/client/cmd/search.py\n@@ -41,7 +41,7 @@\n packages properties: \"arch=x86 AND os=Windows\"\n \"\"\"\n if remote:\n- remot...
1,453
151
gh_patches_debug_38054
rasdani/github-patches
git_diff
translate__pootle-4613
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TP creation email should use BCC Let's BCC by default when Pootle is communicating to lists of people. When you create a TP all relevant people are listed in the To field. --- END ISSUE --- Below are some...
diff --git a/pootle/apps/pootle_translationproject/receivers.py b/pootle/apps/pootle_translationproject/receivers.py --- a/pootle/apps/pootle_translationproject/receivers.py +++ b/pootle/apps/pootle_translationproject/receivers.py @@ -8,12 +8,12 @@ # AUTHORS file for copyright and authorship information. from djang...
{"golden_diff": "diff --git a/pootle/apps/pootle_translationproject/receivers.py b/pootle/apps/pootle_translationproject/receivers.py\n--- a/pootle/apps/pootle_translationproject/receivers.py\n+++ b/pootle/apps/pootle_translationproject/receivers.py\n@@ -8,12 +8,12 @@\n # AUTHORS file for copyright and authorship infor...
1,144
544
gh_patches_debug_8480
rasdani/github-patches
git_diff
elastic__apm-agent-python-580
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DB interactions not traced when using context manager with psycopg2 connections or cursors When using a context manager with psycopg2 connections or cursors, db interactions are not captured in spans. The ...
diff --git a/elasticapm/instrumentation/packages/psycopg2.py b/elasticapm/instrumentation/packages/psycopg2.py --- a/elasticapm/instrumentation/packages/psycopg2.py +++ b/elasticapm/instrumentation/packages/psycopg2.py @@ -51,10 +51,16 @@ def extract_signature(self, sql): return extract_signature(sql) +...
{"golden_diff": "diff --git a/elasticapm/instrumentation/packages/psycopg2.py b/elasticapm/instrumentation/packages/psycopg2.py\n--- a/elasticapm/instrumentation/packages/psycopg2.py\n+++ b/elasticapm/instrumentation/packages/psycopg2.py\n@@ -51,10 +51,16 @@\n def extract_signature(self, sql):\n return extr...
1,549
174
gh_patches_debug_143
rasdani/github-patches
git_diff
ManimCommunity__manim-126
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove argparse from setup.py https://github.com/ManimCommunity/manim/blob/cf8c5b9938abafba9f6c2c1aeff9e15c8edbfdd1/setup.py#L17 Remove `argparse` from setup.py as it is a default library and need not be men...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -14,7 +14,6 @@ ] }, install_requires=[ - "argparse", "colour", "numpy", "Pillow",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -14,7 +14,6 @@\n ]\n },\n install_requires=[\n- \"argparse\",\n \"colour\",\n \"numpy\",\n \"Pillow\",\n", "issue": "Remove argparse from setup.py\nhttps://github.com/ManimCommunity/manim...
569
59
gh_patches_debug_9582
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-596
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error with Service Provider Stadtreinigung Leipzig / stadtreinigung-leipzig.de Hi everyone, Since 03.01.2023 (this is where I noticed it), WCS can no longer retrieve data from Stadtwerke Leipzig. The follow...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/stadtreinigung_leipzig_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/stadtreinigung_leipzig_de.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/stadtreini...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/stadtreinigung_leipzig_de.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/stadtreinigung_leipzig_de.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule...
1,056
219
gh_patches_debug_37670
rasdani/github-patches
git_diff
biolab__orange3-3842
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Replicability in Neural networks and Random forests Follow up from #3715: Neural networks and Random forests should have a checkbox `Replicable training` or something like this, which would decide whether ran...
diff --git a/Orange/widgets/model/owrandomforest.py b/Orange/widgets/model/owrandomforest.py --- a/Orange/widgets/model/owrandomforest.py +++ b/Orange/widgets/model/owrandomforest.py @@ -24,7 +24,6 @@ n_estimators = settings.Setting(10) max_features = settings.Setting(5) use_max_features = settings.Setti...
{"golden_diff": "diff --git a/Orange/widgets/model/owrandomforest.py b/Orange/widgets/model/owrandomforest.py\n--- a/Orange/widgets/model/owrandomforest.py\n+++ b/Orange/widgets/model/owrandomforest.py\n@@ -24,7 +24,6 @@\n n_estimators = settings.Setting(10)\n max_features = settings.Setting(5)\n use_max_fe...
1,556
516
gh_patches_debug_15202
rasdani/github-patches
git_diff
vega__altair-1265
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- line_percent.py does not work offline We need all examples to work offline. Currently ``line_percent.py`` uses ``pd.read_json`` from a URL. The example should probably use a URL plus a filter. --- END ISS...
diff --git a/altair/examples/boxplot_max_min.py b/altair/examples/boxplot_max_min.py --- a/altair/examples/boxplot_max_min.py +++ b/altair/examples/boxplot_max_min.py @@ -7,7 +7,7 @@ import altair as alt from vega_datasets import data -source = data.population() +source = data.population.url base = alt.Chart(sou...
{"golden_diff": "diff --git a/altair/examples/boxplot_max_min.py b/altair/examples/boxplot_max_min.py\n--- a/altair/examples/boxplot_max_min.py\n+++ b/altair/examples/boxplot_max_min.py\n@@ -7,7 +7,7 @@\n import altair as alt\n from vega_datasets import data\n \n-source = data.population()\n+source = data.population.ur...
843
270
gh_patches_debug_12654
rasdani/github-patches
git_diff
ocadotechnology__aimmo-499
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Game Creator RC initialised with wrong game API URL The `REPLACE_ME` change in one of the latest PR's has broken the game on minikube level in `minikube.py`. The URL is incorrect so minikube does not work an...
diff --git a/aimmo_runner/shell_api.py b/aimmo_runner/shell_api.py --- a/aimmo_runner/shell_api.py +++ b/aimmo_runner/shell_api.py @@ -15,6 +15,7 @@ MINIKUBE = os.path.join(TEST_BIN, 'minikube%s' % FILE_SUFFIX) FNULL = open(os.devnull, 'w') + def log(message): sys.stderr.write(message + "\n") diff --git a/s...
{"golden_diff": "diff --git a/aimmo_runner/shell_api.py b/aimmo_runner/shell_api.py\n--- a/aimmo_runner/shell_api.py\n+++ b/aimmo_runner/shell_api.py\n@@ -15,6 +15,7 @@\n MINIKUBE = os.path.join(TEST_BIN, 'minikube%s' % FILE_SUFFIX)\n FNULL = open(os.devnull, 'w')\n \n+\n def log(message):\n sys.stderr.write(messag...
1,197
227
gh_patches_debug_2784
rasdani/github-patches
git_diff
archlinux__archinstall-1954
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [master] awesome (desktops in general?) don't install packages? It appears when choosing awesome, install is called: https://github.com/archlinux/archinstall/blob/7326d51161bf6fd7f1c683cf1d7ce09338efe4b7/arch...
diff --git a/archinstall/default_profiles/desktops/awesome.py b/archinstall/default_profiles/desktops/awesome.py --- a/archinstall/default_profiles/desktops/awesome.py +++ b/archinstall/default_profiles/desktops/awesome.py @@ -14,7 +14,10 @@ @property def packages(self) -> List[str]: - return ['alacritty'] + re...
{"golden_diff": "diff --git a/archinstall/default_profiles/desktops/awesome.py b/archinstall/default_profiles/desktops/awesome.py\n--- a/archinstall/default_profiles/desktops/awesome.py\n+++ b/archinstall/default_profiles/desktops/awesome.py\n@@ -14,7 +14,10 @@\n \n \t@property\n \tdef packages(self) -> List[str]:\n-\t...
984
133
gh_patches_debug_24635
rasdani/github-patches
git_diff
plone__Products.CMFPlone-1438
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plone-upgrade to 5.0.3 shows plain text as result This is caused by https://github.com/plone/plone.app.upgrade/pull/67 by @vangheem, though this change looks fine to me. With the above change, when running `...
diff --git a/Products/CMFPlone/resources/exportimport/bundles.py b/Products/CMFPlone/resources/exportimport/bundles.py --- a/Products/CMFPlone/resources/exportimport/bundles.py +++ b/Products/CMFPlone/resources/exportimport/bundles.py @@ -1,5 +1,6 @@ from plone.registry.interfaces import IRegistry from zope.component...
{"golden_diff": "diff --git a/Products/CMFPlone/resources/exportimport/bundles.py b/Products/CMFPlone/resources/exportimport/bundles.py\n--- a/Products/CMFPlone/resources/exportimport/bundles.py\n+++ b/Products/CMFPlone/resources/exportimport/bundles.py\n@@ -1,5 +1,6 @@\n from plone.registry.interfaces import IRegistry...
672
340
gh_patches_debug_9715
rasdani/github-patches
git_diff
OCA__server-tools-74
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [7.0] [base_optional_quick_create] AttributeError: 'NoneType' object has no attribute 'name_create' Error at starting before a migration if a model has been removed --- END ISSUE --- Below are some code se...
diff --git a/base_optional_quick_create/model.py b/base_optional_quick_create/model.py --- a/base_optional_quick_create/model.py +++ b/base_optional_quick_create/model.py @@ -45,7 +45,7 @@ if model.avoid_quick_create: model_name = model.model model_obj = self.pool.get(mode...
{"golden_diff": "diff --git a/base_optional_quick_create/model.py b/base_optional_quick_create/model.py\n--- a/base_optional_quick_create/model.py\n+++ b/base_optional_quick_create/model.py\n@@ -45,7 +45,7 @@\n if model.avoid_quick_create:\n model_name = model.model\n model_o...
967
124
gh_patches_debug_27735
rasdani/github-patches
git_diff
e-valuation__EvaP-1263
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove ViewTest where possible Right now we have a `class ViewTest`, for which there is one subclass for each view that we have. For views that we have tested properly, it provides no additional value and ...
diff --git a/evap/evaluation/migrations/0002_initial_data.py b/evap/evaluation/migrations/0002_initial_data.py --- a/evap/evaluation/migrations/0002_initial_data.py +++ b/evap/evaluation/migrations/0002_initial_data.py @@ -1,5 +1,4 @@ from django.db import migrations -from django.contrib.auth.models import Group ...
{"golden_diff": "diff --git a/evap/evaluation/migrations/0002_initial_data.py b/evap/evaluation/migrations/0002_initial_data.py\n--- a/evap/evaluation/migrations/0002_initial_data.py\n+++ b/evap/evaluation/migrations/0002_initial_data.py\n@@ -1,5 +1,4 @@\n from django.db import migrations\n-from django.contrib.auth.mod...
929
500
gh_patches_debug_8092
rasdani/github-patches
git_diff
vega__altair-1907
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Interval Selection Example Bug I am having trouble with the the [Interval Selection Example](https://altair-viz.github.io/gallery/interval_selection.html). ![interval-selection](https://user-images.githubus...
diff --git a/altair/examples/interval_selection.py b/altair/examples/interval_selection.py --- a/altair/examples/interval_selection.py +++ b/altair/examples/interval_selection.py @@ -13,15 +13,19 @@ brush = alt.selection(type='interval', encodings=['x']) -upper = alt.Chart(source).mark_area().encode( - alt.X('d...
{"golden_diff": "diff --git a/altair/examples/interval_selection.py b/altair/examples/interval_selection.py\n--- a/altair/examples/interval_selection.py\n+++ b/altair/examples/interval_selection.py\n@@ -13,15 +13,19 @@\n \n brush = alt.selection(type='interval', encodings=['x'])\n \n-upper = alt.Chart(source).mark_area...
687
205
gh_patches_debug_21929
rasdani/github-patches
git_diff
Lightning-Universe__lightning-flash-210
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NLTK being loaded on image classifcation ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> ### To Reproduce ```python from flash.data import labels_from_csv from flash.vision...
diff --git a/flash/text/seq2seq/summarization/metric.py b/flash/text/seq2seq/summarization/metric.py --- a/flash/text/seq2seq/summarization/metric.py +++ b/flash/text/seq2seq/summarization/metric.py @@ -19,7 +19,7 @@ from torch import tensor from torchmetrics import Metric -from flash.text.seq2seq.summarization.uti...
{"golden_diff": "diff --git a/flash/text/seq2seq/summarization/metric.py b/flash/text/seq2seq/summarization/metric.py\n--- a/flash/text/seq2seq/summarization/metric.py\n+++ b/flash/text/seq2seq/summarization/metric.py\n@@ -19,7 +19,7 @@\n from torch import tensor\n from torchmetrics import Metric\n \n-from flash.text.s...
1,885
282
gh_patches_debug_34681
rasdani/github-patches
git_diff
sql-machine-learning__elasticdl-323
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- submit master pod using k8s python client instead of kubectl use k8s python client to submit master pod instead of using the command below `os.system('kubectl run ...')` --- END ISSUE --- Below are some c...
diff --git a/elasticdl/client/client.py b/elasticdl/client/client.py --- a/elasticdl/client/client.py +++ b/elasticdl/client/client.py @@ -5,6 +5,9 @@ import getpass from string import Template import docker +import yaml +from kubernetes.client.apis import core_v1_api +from kubernetes import config def run(mode...
{"golden_diff": "diff --git a/elasticdl/client/client.py b/elasticdl/client/client.py\n--- a/elasticdl/client/client.py\n+++ b/elasticdl/client/client.py\n@@ -5,6 +5,9 @@\n import getpass\n from string import Template\n import docker\n+import yaml\n+from kubernetes.client.apis import core_v1_api\n+from kubernetes impor...
1,317
608
gh_patches_debug_27572
rasdani/github-patches
git_diff
cookiecutter__cookiecutter-1358
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add log message to get_user_config function there should be debug message for cases when default config overwrites user_config. Currently, it is done silently. --- END ISSUE --- Below are some code segmen...
diff --git a/cookiecutter/config.py b/cookiecutter/config.py --- a/cookiecutter/config.py +++ b/cookiecutter/config.py @@ -103,10 +103,12 @@ """ # Do NOT load a config. Return defaults instead. if default_config: + logger.debug("Force ignoring user config with default_config switch.") ret...
{"golden_diff": "diff --git a/cookiecutter/config.py b/cookiecutter/config.py\n--- a/cookiecutter/config.py\n+++ b/cookiecutter/config.py\n@@ -103,10 +103,12 @@\n \"\"\"\n # Do NOT load a config. Return defaults instead.\n if default_config:\n+ logger.debug(\"Force ignoring user config with default_c...
1,469
288
gh_patches_debug_14365
rasdani/github-patches
git_diff
comic__grand-challenge.org-1084
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Create a simple interface for fetching datatypes schemas on grand-challenge **Problem** The grand-challenge datatypes are currently only stored in the [gc-api](https://github.com/DIAGNijmegen/rse-gcapi/tree...
diff --git a/app/grandchallenge/reader_studies/serializers.py b/app/grandchallenge/reader_studies/serializers.py --- a/app/grandchallenge/reader_studies/serializers.py +++ b/app/grandchallenge/reader_studies/serializers.py @@ -8,7 +8,12 @@ from grandchallenge.api.swagger import swagger_schema_fields_for_charfield f...
{"golden_diff": "diff --git a/app/grandchallenge/reader_studies/serializers.py b/app/grandchallenge/reader_studies/serializers.py\n--- a/app/grandchallenge/reader_studies/serializers.py\n+++ b/app/grandchallenge/reader_studies/serializers.py\n@@ -8,7 +8,12 @@\n \n from grandchallenge.api.swagger import swagger_schema_f...
1,497
205
gh_patches_debug_21733
rasdani/github-patches
git_diff
getredash__redash-3619
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support for Presto username and password Currently the Presto query runner supports username only. We should support password as well. This probably requires upgrading the PyHive library. --- END ISSUE --...
diff --git a/redash/query_runner/presto.py b/redash/query_runner/presto.py --- a/redash/query_runner/presto.py +++ b/redash/query_runner/presto.py @@ -56,8 +56,11 @@ 'username': { 'type': 'string' }, + 'password': { + 'type': 'stri...
{"golden_diff": "diff --git a/redash/query_runner/presto.py b/redash/query_runner/presto.py\n--- a/redash/query_runner/presto.py\n+++ b/redash/query_runner/presto.py\n@@ -56,8 +56,11 @@\n 'username': {\n 'type': 'string'\n },\n+ 'password': {\n+ ...
1,471
228
gh_patches_debug_21440
rasdani/github-patches
git_diff
UTNkar__moore-120
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Application drafts in limbo <!-- Do you want to ask a question? Are you looking for support? The system administrator can help you: admin@utn.se --> ### Prerequisites * [x] Put an X between the brackets...
diff --git a/website/involvement/forms.py b/website/involvement/forms.py --- a/website/involvement/forms.py +++ b/website/involvement/forms.py @@ -107,6 +107,8 @@ ) elif self.position.applications.filter( applicant__username=u + ).exclude( + ...
{"golden_diff": "diff --git a/website/involvement/forms.py b/website/involvement/forms.py\n--- a/website/involvement/forms.py\n+++ b/website/involvement/forms.py\n@@ -107,6 +107,8 @@\n )\n elif self.position.applications.filter(\n applicant__username=u\n+ ...
2,019
196
gh_patches_debug_24151
rasdani/github-patches
git_diff
gammapy__gammapy-4924
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove deprecated features This is a reminder issue to remove the features deprecated since 1.1 before the next release --- END ISSUE --- Below are some code segments, each from a relevant file. One or more...
diff --git a/gammapy/utils/table.py b/gammapy/utils/table.py --- a/gammapy/utils/table.py +++ b/gammapy/utils/table.py @@ -3,12 +3,10 @@ import numpy as np from astropy.table import Table from astropy.units import Quantity -from .deprecation import deprecated from .units import standardise_unit __all__ = [ ...
{"golden_diff": "diff --git a/gammapy/utils/table.py b/gammapy/utils/table.py\n--- a/gammapy/utils/table.py\n+++ b/gammapy/utils/table.py\n@@ -3,12 +3,10 @@\n import numpy as np\n from astropy.table import Table\n from astropy.units import Quantity\n-from .deprecation import deprecated\n from .units import standardise_...
1,267
347
gh_patches_debug_476
rasdani/github-patches
git_diff
rlworkgroup__garage-2133
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unpin cloudpickle instead of pinning it to 1.3 Currently, #1879 pins cloudpickle to 1.3 because tensorflow-probability 0.11 does so. When tfp unpins cloudpickle, we should unpin it too. --- END ISSUE --- Be...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ # Please keep alphabetized 'akro', 'click>=2.0', - 'cloudpickle==1.3', + 'cloudpickle', 'cma==2.7.0', 'dowel==0.0.3', 'numpy>=1.14.5',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -11,7 +11,7 @@\n # Please keep alphabetized\n 'akro',\n 'click>=2.0',\n- 'cloudpickle==1.3',\n+ 'cloudpickle',\n 'cma==2.7.0',\n 'dowel==0.0.3',\n 'numpy>=1.14.5',\n", "issue": "Unpin cloudpickle instead ...
1,555
101
gh_patches_debug_26723
rasdani/github-patches
git_diff
OpenCTI-Platform__connectors-51
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [CVE] Download link to variable ## Description Set the download CVE link to variable, because otherwise the tool can hardly be used offline. Offline we can host the CVEs on a link that is not : "https://nv...
diff --git a/cve/src/cve.py b/cve/src/cve.py --- a/cve/src/cve.py +++ b/cve/src/cve.py @@ -29,6 +29,9 @@ self.cve_nvd_data_feed = get_config_variable( "CVE_NVD_DATA_FEED", ["cve", "nvd_data_feed"], config ) + self.cve_history_data_feed = get_config_variable( + "CVE_HISTO...
{"golden_diff": "diff --git a/cve/src/cve.py b/cve/src/cve.py\n--- a/cve/src/cve.py\n+++ b/cve/src/cve.py\n@@ -29,6 +29,9 @@\n self.cve_nvd_data_feed = get_config_variable(\n \"CVE_NVD_DATA_FEED\", [\"cve\", \"nvd_data_feed\"], config\n )\n+ self.cve_history_data_feed = get_config_var...
1,902
313
gh_patches_debug_18827
rasdani/github-patches
git_diff
DataDog__dd-trace-py-1879
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sanic resource names gets grouped incorrectly Hi! The Endpoints gets grouped incorrectly in the UI when using the Sanic integration because the path parameter values are used in the resource name instead o...
diff --git a/ddtrace/contrib/sanic/patch.py b/ddtrace/contrib/sanic/patch.py --- a/ddtrace/contrib/sanic/patch.py +++ b/ddtrace/contrib/sanic/patch.py @@ -52,6 +52,18 @@ return wrap_sync(callback) +def _get_path(request): + """Get path and replace path parameter values with names if route exists.""" + pa...
{"golden_diff": "diff --git a/ddtrace/contrib/sanic/patch.py b/ddtrace/contrib/sanic/patch.py\n--- a/ddtrace/contrib/sanic/patch.py\n+++ b/ddtrace/contrib/sanic/patch.py\n@@ -52,6 +52,18 @@\n return wrap_sync(callback)\n \n \n+def _get_path(request):\n+ \"\"\"Get path and replace path parameter values with names...
1,540
259
gh_patches_debug_28758
rasdani/github-patches
git_diff
microsoft__botbuilder-python-1402
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [PORT] Add EndOfConversationCodes to EndOfConversation activity from Skill > Port this change from botbuilder-dotnet/master branch: https://github.com/microsoft/botbuilder-dotnet/pull/4235 Fixes https://gith...
diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_extensions.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_extensions.py --- a/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_extensions.py +++ b/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_extensions.py @@ -1,22 +1,21 @@...
{"golden_diff": "diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_extensions.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_extensions.py\n--- a/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_extensions.py\n+++ b/libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_extensions.p...
1,566
326
gh_patches_debug_40887
rasdani/github-patches
git_diff
mozilla__pontoon-2853
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pretranslate access keys using the algorithm to extract candidate keys Fluent Rich editor has a special UI for messages with access keys, which lists access key candidates. We should use the same logic whe...
diff --git a/pontoon/pretranslation/transformer.py b/pontoon/pretranslation/transformer.py --- a/pontoon/pretranslation/transformer.py +++ b/pontoon/pretranslation/transformer.py @@ -1,3 +1,5 @@ +import re + from copy import deepcopy from typing import Callable, Optional, cast @@ -93,6 +95,51 @@ node.variants ...
{"golden_diff": "diff --git a/pontoon/pretranslation/transformer.py b/pontoon/pretranslation/transformer.py\n--- a/pontoon/pretranslation/transformer.py\n+++ b/pontoon/pretranslation/transformer.py\n@@ -1,3 +1,5 @@\n+import re\n+\n from copy import deepcopy\n from typing import Callable, Optional, cast\n \n@@ -93,6 +95...
1,969
863
gh_patches_debug_39375
rasdani/github-patches
git_diff
opendatacube__datacube-core-694
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- write_geotiff helper function fails if CRS is string, not object ### Expected behaviour The write_geotiff helper function assumes that you will pass the function a datacube crs object. If you are writing out...
diff --git a/datacube/helpers.py b/datacube/helpers.py --- a/datacube/helpers.py +++ b/datacube/helpers.py @@ -26,12 +26,17 @@ :param profile_override: option dict, overrides rasterio file creation options. :param time_index: DEPRECATED """ - profile_override = profile_override or {} - if time_in...
{"golden_diff": "diff --git a/datacube/helpers.py b/datacube/helpers.py\n--- a/datacube/helpers.py\n+++ b/datacube/helpers.py\n@@ -26,12 +26,17 @@\n :param profile_override: option dict, overrides rasterio file creation options.\n :param time_index: DEPRECATED\n \"\"\"\n- profile_override = profile_overr...
2,037
825
gh_patches_debug_41475
rasdani/github-patches
git_diff
automl__auto-sklearn-1407
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- run_wrapper() got an unexpected keyword argument 'pure' While running a fitting on a classifier (*output[0]* with data *output[1]* to *output[4]*), I get the following error; I think it's packages issue; ...
diff --git a/autosklearn/__version__.py b/autosklearn/__version__.py --- a/autosklearn/__version__.py +++ b/autosklearn/__version__.py @@ -1,4 +1,4 @@ """Version information.""" # The following line *must* be the last in the module, exactly as formatted: -__version__ = "0.14.4" +__version__ = "0.14.6" diff --git a/...
{"golden_diff": "diff --git a/autosklearn/__version__.py b/autosklearn/__version__.py\n--- a/autosklearn/__version__.py\n+++ b/autosklearn/__version__.py\n@@ -1,4 +1,4 @@\n \"\"\"Version information.\"\"\"\n \n # The following line *must* be the last in the module, exactly as formatted:\n-__version__ = \"0.14.4\"\n+__v...
1,634
873
gh_patches_debug_16694
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-2069
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Entering Palette options crashes mitmproxy ##### Steps to reproduce the problem: 1. Press 'O' for options 2. Select 'Palette' 3. mitmproxy will crash ##### Any other comments? What have you tried so...
diff --git a/mitmproxy/tools/console/palettepicker.py b/mitmproxy/tools/console/palettepicker.py --- a/mitmproxy/tools/console/palettepicker.py +++ b/mitmproxy/tools/console/palettepicker.py @@ -43,7 +43,7 @@ i, None, lambda: self.master.options.console_palette == name...
{"golden_diff": "diff --git a/mitmproxy/tools/console/palettepicker.py b/mitmproxy/tools/console/palettepicker.py\n--- a/mitmproxy/tools/console/palettepicker.py\n+++ b/mitmproxy/tools/console/palettepicker.py\n@@ -43,7 +43,7 @@\n i,\n None,\n lambda: self.master.options....
1,974
174
gh_patches_debug_10877
rasdani/github-patches
git_diff
ivy-llc__ivy-20857
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fftshift This subtask is to add the `fftshift` function to the Jax frontend --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN ...
diff --git a/ivy/functional/frontends/jax/numpy/fft.py b/ivy/functional/frontends/jax/numpy/fft.py --- a/ivy/functional/frontends/jax/numpy/fft.py +++ b/ivy/functional/frontends/jax/numpy/fft.py @@ -1,6 +1,25 @@ # local import ivy from ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back +from ivy...
{"golden_diff": "diff --git a/ivy/functional/frontends/jax/numpy/fft.py b/ivy/functional/frontends/jax/numpy/fft.py\n--- a/ivy/functional/frontends/jax/numpy/fft.py\n+++ b/ivy/functional/frontends/jax/numpy/fft.py\n@@ -1,6 +1,25 @@\n # local\n import ivy\n from ivy.functional.frontends.jax.func_wrapper import to_ivy_ar...
377
280
gh_patches_debug_20482
rasdani/github-patches
git_diff
crytic__slither-546
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- function-id not zero-padding function signature ``` ERC20: +---------------------------------------+------------+ | Name | ID | +---------------------------------...
diff --git a/slither/printers/summary/function_ids.py b/slither/printers/summary/function_ids.py --- a/slither/printers/summary/function_ids.py +++ b/slither/printers/summary/function_ids.py @@ -27,11 +27,13 @@ table = MyPrettyTable(['Name', 'ID']) for function in contract.functions: ...
{"golden_diff": "diff --git a/slither/printers/summary/function_ids.py b/slither/printers/summary/function_ids.py\n--- a/slither/printers/summary/function_ids.py\n+++ b/slither/printers/summary/function_ids.py\n@@ -27,11 +27,13 @@\n table = MyPrettyTable(['Name', 'ID'])\n for function in contrac...
1,117
243
gh_patches_debug_34752
rasdani/github-patches
git_diff
litestar-org__litestar-288
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Partial doesn't work with inherited fields ```python from starlite import Partial, get from pydantic import BaseModel class Parent(BaseModel): foo: int class Child(Parent): bar: int @get(...
diff --git a/starlite/types.py b/starlite/types.py --- a/starlite/types.py +++ b/starlite/types.py @@ -11,6 +11,7 @@ TypeVar, Union, cast, + get_type_hints, ) from openapi_schema_pydantic.v3.v3_1_0.header import Header @@ -23,7 +24,7 @@ from starlette.responses import Response as StarletteRespons...
{"golden_diff": "diff --git a/starlite/types.py b/starlite/types.py\n--- a/starlite/types.py\n+++ b/starlite/types.py\n@@ -11,6 +11,7 @@\n TypeVar,\n Union,\n cast,\n+ get_type_hints,\n )\n \n from openapi_schema_pydantic.v3.v3_1_0.header import Header\n@@ -23,7 +24,7 @@\n from starlette.responses import...
1,791
518
gh_patches_debug_64987
rasdani/github-patches
git_diff
googleapis__google-auth-library-python-937
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- new cachetools version (5.0.0+) can't work with google-auth `cachetools` has released a new version (5.0.0) which conflicts with google-auth requirements of it being <5, this prevents updates to the `cachetoo...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ DEPENDENCIES = ( - "cachetools>=2.0.0,<5.0", + "cachetools>=2.0.0,<6.0", "pyasn1-modules>=0.2.1", # rsa==4.5 is the last version to support 2.7 # https://github.com/sybrenstuvel/python-rsa/issues/152#issuecomment-...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -20,7 +20,7 @@\n \n \n DEPENDENCIES = (\n- \"cachetools>=2.0.0,<5.0\",\n+ \"cachetools>=2.0.0,<6.0\",\n \"pyasn1-modules>=0.2.1\",\n # rsa==4.5 is the last version to support 2.7\n # https://github.com/sybrenstuvel/p...
1,500
138
gh_patches_debug_20415
rasdani/github-patches
git_diff
ansible__awx-12803
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Token and Session Expiration never run after the first time ### Please confirm the following - [X] I agree to follow this project's [code of conduct](https://docs.ansible.com/ansible/latest/community/code_of...
diff --git a/awx/main/migrations/_create_system_jobs.py b/awx/main/migrations/_create_system_jobs.py --- a/awx/main/migrations/_create_system_jobs.py +++ b/awx/main/migrations/_create_system_jobs.py @@ -36,7 +36,7 @@ if created: sched = Schedule( name='Cleanup Expired Sessions', - ...
{"golden_diff": "diff --git a/awx/main/migrations/_create_system_jobs.py b/awx/main/migrations/_create_system_jobs.py\n--- a/awx/main/migrations/_create_system_jobs.py\n+++ b/awx/main/migrations/_create_system_jobs.py\n@@ -36,7 +36,7 @@\n if created:\n sched = Schedule(\n name='Cleanup Expired S...
1,380
273
gh_patches_debug_20553
rasdani/github-patches
git_diff
paperless-ngx__paperless-ngx-1605
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] permission error if no consume share is mapped ### Description starting with Paperless-ngx 1.8.0, Paperless on docker does not start when no consume share is mapped: ` SystemCheckError: System ...
diff --git a/src/paperless/checks.py b/src/paperless/checks.py --- a/src/paperless/checks.py +++ b/src/paperless/checks.py @@ -1,4 +1,6 @@ +import grp import os +import pwd import shutil import stat @@ -32,12 +34,15 @@ with open(test_file, "w"): pass except Permis...
{"golden_diff": "diff --git a/src/paperless/checks.py b/src/paperless/checks.py\n--- a/src/paperless/checks.py\n+++ b/src/paperless/checks.py\n@@ -1,4 +1,6 @@\n+import grp\n import os\n+import pwd\n import shutil\n import stat\n \n@@ -32,12 +34,15 @@\n with open(test_file, \"w\"):\n ...
1,837
229
gh_patches_debug_3959
rasdani/github-patches
git_diff
great-expectations__great_expectations-5468
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of th...
diff --git a/contrib/capitalone_dataprofiler_expectations/capitalone_dataprofiler_expectations/expectations/__init__.py b/contrib/capitalone_dataprofiler_expectations/capitalone_dataprofiler_expectations/expectations/__init__.py --- a/contrib/capitalone_dataprofiler_expectations/capitalone_dataprofiler_expectations/exp...
{"golden_diff": "diff --git a/contrib/capitalone_dataprofiler_expectations/capitalone_dataprofiler_expectations/expectations/__init__.py b/contrib/capitalone_dataprofiler_expectations/capitalone_dataprofiler_expectations/expectations/__init__.py\n--- a/contrib/capitalone_dataprofiler_expectations/capitalone_dataprofile...
544
181
gh_patches_debug_5751
rasdani/github-patches
git_diff
ansible__ansible-lint-1128
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [701] No 'galaxy_info' found results in meta/requirements.yml file ### Summary ansible-lint reporting `[701] No 'galaxy_info' found` in my `meta/requirements.yml`, a file that unlike `meta/main.yml` does n...
diff --git a/lib/ansiblelint/rules/MetaMainHasInfoRule.py b/lib/ansiblelint/rules/MetaMainHasInfoRule.py --- a/lib/ansiblelint/rules/MetaMainHasInfoRule.py +++ b/lib/ansiblelint/rules/MetaMainHasInfoRule.py @@ -57,6 +57,11 @@ if file['type'] != 'meta': return False + # since Ansible 2.10 ...
{"golden_diff": "diff --git a/lib/ansiblelint/rules/MetaMainHasInfoRule.py b/lib/ansiblelint/rules/MetaMainHasInfoRule.py\n--- a/lib/ansiblelint/rules/MetaMainHasInfoRule.py\n+++ b/lib/ansiblelint/rules/MetaMainHasInfoRule.py\n@@ -57,6 +57,11 @@\n if file['type'] != 'meta':\n return False\n \n+ ...
1,576
169
gh_patches_debug_32180
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-3459
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Demo mode results in 5XX ## Description <!-- A clear and concise description of what the bug is. --> Mathesar is broken (as of 0.1.4) for Demo Mode. It doesn't load, and just says "Server Error (500)" ins...
diff --git a/demo/management/commands/setup_demo_template_db.py b/demo/management/commands/setup_demo_template_db.py --- a/demo/management/commands/setup_demo_template_db.py +++ b/demo/management/commands/setup_demo_template_db.py @@ -20,7 +20,7 @@ print("Initializing demo template database...") template_db...
{"golden_diff": "diff --git a/demo/management/commands/setup_demo_template_db.py b/demo/management/commands/setup_demo_template_db.py\n--- a/demo/management/commands/setup_demo_template_db.py\n+++ b/demo/management/commands/setup_demo_template_db.py\n@@ -20,7 +20,7 @@\n print(\"Initializing demo template database.....
1,714
481
gh_patches_debug_38209
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-445
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve documentation of cms rules Explain the rules module and how it interacts with our permission management. Add docstrings of the following format: ``` """ [Summary] :param [ParamName]: [ParamDescr...
diff --git a/src/cms/rules.py b/src/cms/rules.py --- a/src/cms/rules.py +++ b/src/cms/rules.py @@ -1,3 +1,22 @@ +""" +We use `django-rules <https://pypi.org/project/rules/>`_ to add custom permissions for specific pages. + +For a given user and page, the following permissions are added: + +* ``cms.edit_page`` if one of...
{"golden_diff": "diff --git a/src/cms/rules.py b/src/cms/rules.py\n--- a/src/cms/rules.py\n+++ b/src/cms/rules.py\n@@ -1,3 +1,22 @@\n+\"\"\"\n+We use `django-rules <https://pypi.org/project/rules/>`_ to add custom permissions for specific pages.\n+\n+For a given user and page, the following permissions are added:\n+\n+...
680
807
gh_patches_debug_10614
rasdani/github-patches
git_diff
getredash__redash-2134
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use can't download dataset before saving query Because the query results url contains the query id, before saving the user can't download the dataset. We need to allow addressing query results without query...
diff --git a/redash/handlers/api.py b/redash/handlers/api.py --- a/redash/handlers/api.py +++ b/redash/handlers/api.py @@ -79,6 +79,7 @@ api.add_org_resource(QueryResultListResource, '/api/query_results', endpoint='query_results') api.add_org_resource(QueryResultResource, + '/api/query_results/<...
{"golden_diff": "diff --git a/redash/handlers/api.py b/redash/handlers/api.py\n--- a/redash/handlers/api.py\n+++ b/redash/handlers/api.py\n@@ -79,6 +79,7 @@\n \n api.add_org_resource(QueryResultListResource, '/api/query_results', endpoint='query_results')\n api.add_org_resource(QueryResultResource,\n+ ...
2,015
138
gh_patches_debug_3675
rasdani/github-patches
git_diff
conan-io__conan-center-index-8132
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [request] perfetto/v21.0 ### Package Details * Package Name/Version: **perfetto/v21.0** * Changelog: **https://github.com/google/perfetto/releases/tag/v21.0** The above mentioned version is newly r...
diff --git a/recipes/perfetto/all/conanfile.py b/recipes/perfetto/all/conanfile.py --- a/recipes/perfetto/all/conanfile.py +++ b/recipes/perfetto/all/conanfile.py @@ -68,7 +68,6 @@ def package_info(self): self.cpp_info.libs = ["perfetto"] - self.cpp_info.names["pkgconfig"] = "perfetto" i...
{"golden_diff": "diff --git a/recipes/perfetto/all/conanfile.py b/recipes/perfetto/all/conanfile.py\n--- a/recipes/perfetto/all/conanfile.py\n+++ b/recipes/perfetto/all/conanfile.py\n@@ -68,7 +68,6 @@\n \n def package_info(self):\n self.cpp_info.libs = [\"perfetto\"]\n- self.cpp_info.names[\"pkgconfi...
1,029
125
gh_patches_debug_15591
rasdani/github-patches
git_diff
plone__Products.CMFPlone-2714
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: `_smtp` is missing at SMTPMailer's __init__ patching what is introduced in zope.sendmail from version 4.1.0 ### What I did: I am working on internal Addon development (adding support for Plone 5.2) , s...
diff --git a/Products/CMFPlone/patches/sendmail.py b/Products/CMFPlone/patches/sendmail.py --- a/Products/CMFPlone/patches/sendmail.py +++ b/Products/CMFPlone/patches/sendmail.py @@ -3,11 +3,13 @@ from Products.CMFPlone.interfaces import IMailSchema from transaction._transaction import Status from zope.component imp...
{"golden_diff": "diff --git a/Products/CMFPlone/patches/sendmail.py b/Products/CMFPlone/patches/sendmail.py\n--- a/Products/CMFPlone/patches/sendmail.py\n+++ b/Products/CMFPlone/patches/sendmail.py\n@@ -3,11 +3,13 @@\n from Products.CMFPlone.interfaces import IMailSchema\n from transaction._transaction import Status\n ...
1,465
197
gh_patches_debug_28476
rasdani/github-patches
git_diff
pantsbuild__pants-13669
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Docker environment not passed to docker publish command **Describe the bug** The configured `[docker].env_vars` are not passed to `docker publish`. **Pants version** 2.9.0.dev1 **OS** Any **Additi...
diff --git a/src/python/pants/backend/docker/goals/publish.py b/src/python/pants/backend/docker/goals/publish.py --- a/src/python/pants/backend/docker/goals/publish.py +++ b/src/python/pants/backend/docker/goals/publish.py @@ -19,8 +19,9 @@ PublishProcesses, PublishRequest, ) +from pants.engine.environment i...
{"golden_diff": "diff --git a/src/python/pants/backend/docker/goals/publish.py b/src/python/pants/backend/docker/goals/publish.py\n--- a/src/python/pants/backend/docker/goals/publish.py\n+++ b/src/python/pants/backend/docker/goals/publish.py\n@@ -19,8 +19,9 @@\n PublishProcesses,\n PublishRequest,\n )\n+from pa...
1,962
391
gh_patches_debug_10806
rasdani/github-patches
git_diff
Kinto__kinto-850
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Return 400 if a group contains system.Everyone or a group URL Unless I'm mistaken: - We don't support groups for anonymous requests - We don't support recursivity in groups definitions So we should reject wi...
diff --git a/kinto/views/groups.py b/kinto/views/groups.py --- a/kinto/views/groups.py +++ b/kinto/views/groups.py @@ -5,9 +5,15 @@ from pyramid.events import subscriber +def validate_member(node, member): + if member.startswith('/buckets/') or member == 'system.Everyone': + raise colander.Invalid(node, ...
{"golden_diff": "diff --git a/kinto/views/groups.py b/kinto/views/groups.py\n--- a/kinto/views/groups.py\n+++ b/kinto/views/groups.py\n@@ -5,9 +5,15 @@\n from pyramid.events import subscriber\n \n \n+def validate_member(node, member):\n+ if member.startswith('/buckets/') or member == 'system.Everyone':\n+ rai...
948
150
gh_patches_debug_16119
rasdani/github-patches
git_diff
conan-io__conan-center-index-549
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] make/4.2.1: not building for Linux Clang 9 The recipe for `make/4.2.1` does not build under Linux Clang 9. After generating all the index packages for Clang 9, the ones for this library failed to...
diff --git a/recipes/make/all/conanfile.py b/recipes/make/all/conanfile.py --- a/recipes/make/all/conanfile.py +++ b/recipes/make/all/conanfile.py @@ -10,6 +10,7 @@ homepage = "https://www.gnu.org/software/make/" license = "GPL-3.0-or-later" settings = "os_build", "arch_build", "compiler" + exports_so...
{"golden_diff": "diff --git a/recipes/make/all/conanfile.py b/recipes/make/all/conanfile.py\n--- a/recipes/make/all/conanfile.py\n+++ b/recipes/make/all/conanfile.py\n@@ -10,6 +10,7 @@\n homepage = \"https://www.gnu.org/software/make/\"\n license = \"GPL-3.0-or-later\"\n settings = \"os_build\", \"arch_buil...
1,042
201
gh_patches_debug_25779
rasdani/github-patches
git_diff
weecology__retriever-1004
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update FIA links It's that time of year again where FIA puts out a new release and moves things around. See https://github.com/weecology/retriever/issues/865#issuecomment-325588307 We need to track down th...
diff --git a/scripts/forest_inventory_analysis.py b/scripts/forest_inventory_analysis.py --- a/scripts/forest_inventory_analysis.py +++ b/scripts/forest_inventory_analysis.py @@ -20,10 +20,10 @@ self.title = "Forest Inventory and Analysis" self.name = "forest-inventory-analysis" self.retrieve...
{"golden_diff": "diff --git a/scripts/forest_inventory_analysis.py b/scripts/forest_inventory_analysis.py\n--- a/scripts/forest_inventory_analysis.py\n+++ b/scripts/forest_inventory_analysis.py\n@@ -20,10 +20,10 @@\n self.title = \"Forest Inventory and Analysis\"\n self.name = \"forest-inventory-analysi...
1,795
320
gh_patches_debug_8852
rasdani/github-patches
git_diff
pwndbg__pwndbg-363
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Broken `entry` command ### Description The `entry` command pass arguments differently then the `run` command. ### Steps to reproduce ``` [dc@dc:pwndbg|dev *$%]$ gdb python Loaded 113 commands. Type...
diff --git a/pwndbg/commands/start.py b/pwndbg/commands/start.py --- a/pwndbg/commands/start.py +++ b/pwndbg/commands/start.py @@ -9,6 +9,8 @@ from __future__ import print_function from __future__ import unicode_literals +import shlex + import gdb import pwndbg.commands @@ -66,5 +68,5 @@ """ global br...
{"golden_diff": "diff --git a/pwndbg/commands/start.py b/pwndbg/commands/start.py\n--- a/pwndbg/commands/start.py\n+++ b/pwndbg/commands/start.py\n@@ -9,6 +9,8 @@\n from __future__ import print_function\n from __future__ import unicode_literals\n \n+import shlex\n+\n import gdb\n \n import pwndbg.commands\n@@ -66,5 +68...
1,351
151
gh_patches_debug_7911
rasdani/github-patches
git_diff
edgedb__edgedb-1946
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ISE when LIMIT/OFFSET correlated with query ``` sully> SELECT Object LIMIT len(<str>.id); ERROR: InternalServerError: argument of LIMIT must not contain variables ``` ``` sully> SELECT Object OFFSET le...
diff --git a/edb/edgeql/compiler/clauses.py b/edb/edgeql/compiler/clauses.py --- a/edb/edgeql/compiler/clauses.py +++ b/edb/edgeql/compiler/clauses.py @@ -125,6 +125,10 @@ ir_set = None else: with ctx.newscope(fenced=True) as subctx: + # Clear out the partial_path_prefix, since we aren...
{"golden_diff": "diff --git a/edb/edgeql/compiler/clauses.py b/edb/edgeql/compiler/clauses.py\n--- a/edb/edgeql/compiler/clauses.py\n+++ b/edb/edgeql/compiler/clauses.py\n@@ -125,6 +125,10 @@\n ir_set = None\n else:\n with ctx.newscope(fenced=True) as subctx:\n+ # Clear out the partial_pa...
1,686
161
gh_patches_debug_34984
rasdani/github-patches
git_diff
DataDog__dd-trace-py-3177
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Psycopg patching doesn't properly handle execute_values The `execute_values` extension in psycopg2 composes and executes the query with b-string, even if you passed the query as a string. Below is the full fu...
diff --git a/ddtrace/internal/encoding.py b/ddtrace/internal/encoding.py --- a/ddtrace/internal/encoding.py +++ b/ddtrace/internal/encoding.py @@ -8,6 +8,9 @@ from ._encoding import ListStringTable from ._encoding import MsgpackEncoderV03 from ._encoding import MsgpackEncoderV05 +from .compat import PY3 +from .compa...
{"golden_diff": "diff --git a/ddtrace/internal/encoding.py b/ddtrace/internal/encoding.py\n--- a/ddtrace/internal/encoding.py\n+++ b/ddtrace/internal/encoding.py\n@@ -8,6 +8,9 @@\n from ._encoding import ListStringTable\n from ._encoding import MsgpackEncoderV03\n from ._encoding import MsgpackEncoderV05\n+from .compat...
1,917
561
gh_patches_debug_30436
rasdani/github-patches
git_diff
uccser__cs-unplugged-463
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add sorting networks lessons - [ ] Lesson 2 (8-10) - needs generated resources - [ ] Lesson 1 (11-14) - [ ] Lesson 2 (11-14) --- END ISSUE --- Below are some code segments, each from a relevant file. One ...
diff --git a/csunplugged/resources/views/sorting_network_cards.py b/csunplugged/resources/views/sorting_network_cards.py --- a/csunplugged/resources/views/sorting_network_cards.py +++ b/csunplugged/resources/views/sorting_network_cards.py @@ -47,25 +47,24 @@ font_size = 900 font_path = "static/fonts/N...
{"golden_diff": "diff --git a/csunplugged/resources/views/sorting_network_cards.py b/csunplugged/resources/views/sorting_network_cards.py\n--- a/csunplugged/resources/views/sorting_network_cards.py\n+++ b/csunplugged/resources/views/sorting_network_cards.py\n@@ -47,25 +47,24 @@\n font_size = 900\n font_...
1,676
676
gh_patches_debug_26005
rasdani/github-patches
git_diff
internetarchive__openlibrary-8350
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Subject tag autocomplete no longer sorts by frequency When I developed autocomplete for subject tags, the results returned were automatically sorted by frequency — the most used subjects that matched were fir...
diff --git a/openlibrary/plugins/worksearch/autocomplete.py b/openlibrary/plugins/worksearch/autocomplete.py --- a/openlibrary/plugins/worksearch/autocomplete.py +++ b/openlibrary/plugins/worksearch/autocomplete.py @@ -24,6 +24,7 @@ fq = ['-type:edition'] fl = 'key,type,name,title,score' olid_suffix: str...
{"golden_diff": "diff --git a/openlibrary/plugins/worksearch/autocomplete.py b/openlibrary/plugins/worksearch/autocomplete.py\n--- a/openlibrary/plugins/worksearch/autocomplete.py\n+++ b/openlibrary/plugins/worksearch/autocomplete.py\n@@ -24,6 +24,7 @@\n fq = ['-type:edition']\n fl = 'key,type,name,title,score'...
1,979
319
gh_patches_debug_11597
rasdani/github-patches
git_diff
fedora-infra__bodhi-4037
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Side tag updates are not automatically pushed to testing When I create a side tag update for a stable Fedora, it sits in pending until I manually click "push to testing". This is inconsistent with regular up...
diff --git a/bodhi/server/consumers/signed.py b/bodhi/server/consumers/signed.py --- a/bodhi/server/consumers/signed.py +++ b/bodhi/server/consumers/signed.py @@ -89,7 +89,9 @@ log.info('Build is not assigned to release, skipping') return - if build.update and build.update...
{"golden_diff": "diff --git a/bodhi/server/consumers/signed.py b/bodhi/server/consumers/signed.py\n--- a/bodhi/server/consumers/signed.py\n+++ b/bodhi/server/consumers/signed.py\n@@ -89,7 +89,9 @@\n log.info('Build is not assigned to release, skipping')\n return\n \n- if build...
1,666
156
gh_patches_debug_22750
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-4761
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot inject websocket with binary or string content. #### Problem Description mitmproxy attempts to parse the injected websocket binary data as text, and replaces the binary data if it cannot be decoded in...
diff --git a/examples/addons/websocket-inject-message.py b/examples/addons/websocket-inject-message.py --- a/examples/addons/websocket-inject-message.py +++ b/examples/addons/websocket-inject-message.py @@ -13,9 +13,9 @@ def websocket_message(flow: http.HTTPFlow): assert flow.websocket is not None # make type ch...
{"golden_diff": "diff --git a/examples/addons/websocket-inject-message.py b/examples/addons/websocket-inject-message.py\n--- a/examples/addons/websocket-inject-message.py\n+++ b/examples/addons/websocket-inject-message.py\n@@ -13,9 +13,9 @@\n def websocket_message(flow: http.HTTPFlow):\n assert flow.websocket is no...
805
280
gh_patches_debug_385
rasdani/github-patches
git_diff
searx__searx-1477
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- New release? Hi, I'm the Debian maintainer of searx and we are still shipping version 0.14.0 of searx because there has not been a more recent release since February. Unfortunately, we see a number of s...
diff --git a/searx/version.py b/searx/version.py --- a/searx/version.py +++ b/searx/version.py @@ -18,7 +18,7 @@ # version of searx VERSION_MAJOR = 0 -VERSION_MINOR = 14 +VERSION_MINOR = 15 VERSION_BUILD = 0 VERSION_STRING = "{0}.{1}.{2}".format(VERSION_MAJOR,
{"golden_diff": "diff --git a/searx/version.py b/searx/version.py\n--- a/searx/version.py\n+++ b/searx/version.py\n@@ -18,7 +18,7 @@\n \n # version of searx\n VERSION_MAJOR = 0\n-VERSION_MINOR = 14\n+VERSION_MINOR = 15\n VERSION_BUILD = 0\n \n VERSION_STRING = \"{0}.{1}.{2}\".format(VERSION_MAJOR,\n", "issue": "New rel...
657
95
gh_patches_debug_2628
rasdani/github-patches
git_diff
praw-dev__praw-1441
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PRAW 6.5.1 and 7.0.0 require Python versions above 3.5.2 **Describe the bug** At https://praw.readthedocs.io/en/latest/getting_started/installation.html, it says: > PRAW supports Python 3.5+ 3.5.2 se...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ name=PACKAGE_NAME, author="Bryce Boe", author_email="bbzbryce@gmail.com", - python_requires=">=3.5", + python_requires=">3.5.3", classifiers=[ "Development Status :: 5 - Production/Stable", "Envi...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -35,7 +35,7 @@\n name=PACKAGE_NAME,\n author=\"Bryce Boe\",\n author_email=\"bbzbryce@gmail.com\",\n- python_requires=\">=3.5\",\n+ python_requires=\">3.5.3\",\n classifiers=[\n \"Development Status :: 5 ...
1,637
101
gh_patches_debug_39983
rasdani/github-patches
git_diff
elastic__apm-agent-python-1613
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove py2 leftovers This is an issue to track all of the py2 stuff we can remove once a sufficient waiting period after 6.0 has passed. - [x] Remove `zerorpc` (py2 only) - [x] Remove `compat.py` - [x] R...
diff --git a/elasticapm/contrib/zerorpc/__init__.py b/elasticapm/contrib/zerorpc/__init__.py deleted file mode 100644 --- a/elasticapm/contrib/zerorpc/__init__.py +++ /dev/null @@ -1,84 +0,0 @@ -# BSD 3-Clause License -# -# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details -# Copyright (c) 2019, Elas...
{"golden_diff": "diff --git a/elasticapm/contrib/zerorpc/__init__.py b/elasticapm/contrib/zerorpc/__init__.py\ndeleted file mode 100644\n--- a/elasticapm/contrib/zerorpc/__init__.py\n+++ /dev/null\n@@ -1,84 +0,0 @@\n-# BSD 3-Clause License\n-#\n-# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n-# ...
1,362
1,006
gh_patches_debug_9845
rasdani/github-patches
git_diff
python-poetry__poetry-1458
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Poetry cant resolve with git dependency I have `werkzeug` installed with git version and then add `flask-jwt-extended` shows error though `werkzeug` is 1.0.0.dev0 ```bash $ poetry --version Poetry 0.12.1...
diff --git a/poetry/repositories/repository.py b/poetry/repositories/repository.py --- a/poetry/repositories/repository.py +++ b/poetry/repositories/repository.py @@ -64,7 +64,13 @@ for package in self.packages: if name == package.name: - if package.is_prerelease() and not allow_p...
{"golden_diff": "diff --git a/poetry/repositories/repository.py b/poetry/repositories/repository.py\n--- a/poetry/repositories/repository.py\n+++ b/poetry/repositories/repository.py\n@@ -64,7 +64,13 @@\n \n for package in self.packages:\n if name == package.name:\n- if package.is_prer...
1,839
158
gh_patches_debug_4266
rasdani/github-patches
git_diff
getredash__redash-732
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Migration Error(0017_add_organization.py) Migration Error with current master branch. ``` $ vagrant@vagrant-ubuntu-trusty-64:/opt/redash/current$ export PYTHONPATH=. && bin/run python migrations/0017_add_org...
diff --git a/migrations/0017_add_organization.py b/migrations/0017_add_organization.py --- a/migrations/0017_add_organization.py +++ b/migrations/0017_add_organization.py @@ -9,7 +9,7 @@ Organization.create_table() default_org = Organization.create(name="Default", slug='default', settings={ - ...
{"golden_diff": "diff --git a/migrations/0017_add_organization.py b/migrations/0017_add_organization.py\n--- a/migrations/0017_add_organization.py\n+++ b/migrations/0017_add_organization.py\n@@ -9,7 +9,7 @@\n Organization.create_table()\n \n default_org = Organization.create(name=\"Default\", slug='defa...
1,979
128
gh_patches_debug_24645
rasdani/github-patches
git_diff
getnikola__nikola-3455
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- reST doc directive: slugs with slashes in no longer work At some point in the previous few versions, slugs with slashes in no longer work - links pointing to them have their slashes removed before the link is...
diff --git a/nikola/plugins/compile/rest/doc.py b/nikola/plugins/compile/rest/doc.py --- a/nikola/plugins/compile/rest/doc.py +++ b/nikola/plugins/compile/rest/doc.py @@ -47,16 +47,8 @@ return super().set_site(site) -def _doc_link(rawtext, text, options={}, content=[]): - """Handle the doc role.""" - ...
{"golden_diff": "diff --git a/nikola/plugins/compile/rest/doc.py b/nikola/plugins/compile/rest/doc.py\n--- a/nikola/plugins/compile/rest/doc.py\n+++ b/nikola/plugins/compile/rest/doc.py\n@@ -47,16 +47,8 @@\n return super().set_site(site)\n \n \n-def _doc_link(rawtext, text, options={}, content=[]):\n- \"\"\"...
1,666
420
gh_patches_debug_4308
rasdani/github-patches
git_diff
tiangolo__fastapi-320
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- eta on pydantic update to 0.28 really need your latest PR it shoud solve recurring issues with sqlalchemy to pydantic mapping thank you ! --- END ISSUE --- Below are some code segments, each from a relev...
diff --git a/fastapi/utils.py b/fastapi/utils.py --- a/fastapi/utils.py +++ b/fastapi/utils.py @@ -28,7 +28,7 @@ if route.response_fields: responses_from_routes.extend(route.response_fields.values()) flat_models = get_flat_models_from_fields( - body_fields_from_routes + respons...
{"golden_diff": "diff --git a/fastapi/utils.py b/fastapi/utils.py\n--- a/fastapi/utils.py\n+++ b/fastapi/utils.py\n@@ -28,7 +28,7 @@\n if route.response_fields:\n responses_from_routes.extend(route.response_fields.values())\n flat_models = get_flat_models_from_fields(\n- body_fiel...
789
99
gh_patches_debug_2391
rasdani/github-patches
git_diff
scrapy__scrapy-2929
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- LinkExtractor is not ignoring .m4v extension (video) by default By chance I found out that LinkExtractor is not ignoring the video extension m4v in the same way it is ignoring other video formats. https://...
diff --git a/scrapy/linkextractors/__init__.py b/scrapy/linkextractors/__init__.py --- a/scrapy/linkextractors/__init__.py +++ b/scrapy/linkextractors/__init__.py @@ -28,7 +28,7 @@ # video '3gp', 'asf', 'asx', 'avi', 'mov', 'mp4', 'mpg', 'qt', 'rm', 'swf', 'wmv', - 'm4a', + 'm4a', 'm4v', # offi...
{"golden_diff": "diff --git a/scrapy/linkextractors/__init__.py b/scrapy/linkextractors/__init__.py\n--- a/scrapy/linkextractors/__init__.py\n+++ b/scrapy/linkextractors/__init__.py\n@@ -28,7 +28,7 @@\n \n # video\n '3gp', 'asf', 'asx', 'avi', 'mov', 'mp4', 'mpg', 'qt', 'rm', 'swf', 'wmv',\n- 'm4a',\n+ 'm...
1,570
166
gh_patches_debug_17330
rasdani/github-patches
git_diff
bornhack__bornhack-website-187
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- include iban/swift/bic info on custominvoice pdfs include iban/swift/bic info on custominvoice pdfs --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files ma...
diff --git a/src/shop/invoiceworker.py b/src/shop/invoiceworker.py --- a/src/shop/invoiceworker.py +++ b/src/shop/invoiceworker.py @@ -1,3 +1,4 @@ +from django.conf import settings from django.core.files import File from utils.pdf import generate_pdf_letter from shop.email import add_invoice_email, add_creditnote_em...
{"golden_diff": "diff --git a/src/shop/invoiceworker.py b/src/shop/invoiceworker.py\n--- a/src/shop/invoiceworker.py\n+++ b/src/shop/invoiceworker.py\n@@ -1,3 +1,4 @@\n+from django.conf import settings\n from django.core.files import File\n from utils.pdf import generate_pdf_letter\n from shop.email import add_invoice_...
1,342
205
gh_patches_debug_10518
rasdani/github-patches
git_diff
Mailu__Mailu-1052
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Regular alpine base-image update To receive current updates for upstream projects, security fixes and new features such as mentioned in #1049 , let’s upgrade the alpine baseimage to latest 3.10 --- END ISSUE...
diff --git a/core/postfix/start.py b/core/postfix/start.py --- a/core/postfix/start.py +++ b/core/postfix/start.py @@ -53,12 +53,7 @@ convert("/conf/sasl_passwd", path) os.system("postmap {}".format(path)) -convert("/conf/rsyslog.conf", "/etc/rsyslog.conf") - # Run Podop and Postfix multiprocessing.Proces...
{"golden_diff": "diff --git a/core/postfix/start.py b/core/postfix/start.py\n--- a/core/postfix/start.py\n+++ b/core/postfix/start.py\n@@ -53,12 +53,7 @@\n convert(\"/conf/sasl_passwd\", path)\n os.system(\"postmap {}\".format(path))\n \n-convert(\"/conf/rsyslog.conf\", \"/etc/rsyslog.conf\")\n-\n # Run Podop a...
1,070
206
gh_patches_debug_967
rasdani/github-patches
git_diff
ivy-llc__ivy-16680
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- rad2deg --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ivy/functional/frontends/paddle/tensor/math.py` Co...
diff --git a/ivy/functional/frontends/paddle/tensor/math.py b/ivy/functional/frontends/paddle/tensor/math.py --- a/ivy/functional/frontends/paddle/tensor/math.py +++ b/ivy/functional/frontends/paddle/tensor/math.py @@ -150,3 +150,9 @@ @to_ivy_arrays_and_back def log1p(x, name=None): return ivy.log1p(x) + + +@wit...
{"golden_diff": "diff --git a/ivy/functional/frontends/paddle/tensor/math.py b/ivy/functional/frontends/paddle/tensor/math.py\n--- a/ivy/functional/frontends/paddle/tensor/math.py\n+++ b/ivy/functional/frontends/paddle/tensor/math.py\n@@ -150,3 +150,9 @@\n @to_ivy_arrays_and_back\n def log1p(x, name=None):\n return...
2,036
163
gh_patches_debug_8478
rasdani/github-patches
git_diff
ocf__ocfweb-535
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- versioned caching is broken On [this line](https://github.com/ocf/ocfweb/blob/e0ca5b9053abf4908fd6dd3ff344724e61c38b53/ocfweb/environment.py#L15) we use a marathon environment variable to determine the cache ...
diff --git a/ocfweb/environment.py b/ocfweb/environment.py --- a/ocfweb/environment.py +++ b/ocfweb/environment.py @@ -8,12 +8,11 @@ """Return string representing ocfweb version. In dev, returns 'dev'. In prod, returns a version - similar to '2015.12.06.02.25-gitb98c8cb6'. + similar to '2019-08-20-T21...
{"golden_diff": "diff --git a/ocfweb/environment.py b/ocfweb/environment.py\n--- a/ocfweb/environment.py\n+++ b/ocfweb/environment.py\n@@ -8,12 +8,11 @@\n \"\"\"Return string representing ocfweb version.\n \n In dev, returns 'dev'. In prod, returns a version\n- similar to '2015.12.06.02.25-gitb98c8cb6'.\n+ ...
561
213
gh_patches_debug_6883
rasdani/github-patches
git_diff
shuup__shuup-1573
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Admin: Fix category name in category edit view Do not show the category with hierarchy on breadcrumbs and title ![image](https://user-images.githubusercontent.com/8770370/46307475-6926a100-c58d-11e8-82cf-c...
diff --git a/shuup/admin/modules/categories/views/edit.py b/shuup/admin/modules/categories/views/edit.py --- a/shuup/admin/modules/categories/views/edit.py +++ b/shuup/admin/modules/categories/views/edit.py @@ -35,6 +35,9 @@ context = super(CategoryEditView, self).get_context_data(**kwargs) context["t...
{"golden_diff": "diff --git a/shuup/admin/modules/categories/views/edit.py b/shuup/admin/modules/categories/views/edit.py\n--- a/shuup/admin/modules/categories/views/edit.py\n+++ b/shuup/admin/modules/categories/views/edit.py\n@@ -35,6 +35,9 @@\n context = super(CategoryEditView, self).get_context_data(**kwargs...
863
136
gh_patches_debug_34446
rasdani/github-patches
git_diff
litestar-org__litestar-1255
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: Issue with reload **Describe the bug** When I start my app using starlite run -r I get the following error INFO: Will watch for changes in these directories: ['/Users/alc/starlite-apps/starlite_t...
diff --git a/starlite/cli/commands/core.py b/starlite/cli/commands/core.py --- a/starlite/cli/commands/core.py +++ b/starlite/cli/commands/core.py @@ -2,17 +2,31 @@ import inspect import multiprocessing +import subprocess +from typing import Any import click from click import command, option from rich.tree imp...
{"golden_diff": "diff --git a/starlite/cli/commands/core.py b/starlite/cli/commands/core.py\n--- a/starlite/cli/commands/core.py\n+++ b/starlite/cli/commands/core.py\n@@ -2,17 +2,31 @@\n \n import inspect\n import multiprocessing\n+import subprocess\n+from typing import Any\n \n import click\n from click import command...
1,562
588
gh_patches_debug_38540
rasdani/github-patches
git_diff
adap__flower-458
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve docstring for `start_keras_client` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `src/py/flwr/com...
diff --git a/src/py/flwr/client/app.py b/src/py/flwr/client/app.py --- a/src/py/flwr/client/app.py +++ b/src/py/flwr/client/app.py @@ -32,7 +32,25 @@ client: Client, grpc_max_message_length: int = GRPC_MAX_MESSAGE_LENGTH, ) -> None: - """Start a Flower Client which connects to a gRPC server.""" + """St...
{"golden_diff": "diff --git a/src/py/flwr/client/app.py b/src/py/flwr/client/app.py\n--- a/src/py/flwr/client/app.py\n+++ b/src/py/flwr/client/app.py\n@@ -32,7 +32,25 @@\n client: Client,\n grpc_max_message_length: int = GRPC_MAX_MESSAGE_LENGTH,\n ) -> None:\n- \"\"\"Start a Flower Client which connects to a...
1,429
923
gh_patches_debug_6417
rasdani/github-patches
git_diff
kornia__kornia-694
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Broken link "InvDepthSmoothnessLoss" ## 📚 Documentation In the documentation of this function https://kornia.readthedocs.io/en/latest/losses.html#kornia.losses.inverse_depth_smoothness_loss, the link is b...
diff --git a/kornia/losses/depth_smooth.py b/kornia/losses/depth_smooth.py --- a/kornia/losses/depth_smooth.py +++ b/kornia/losses/depth_smooth.py @@ -21,7 +21,7 @@ image: torch.Tensor) -> torch.Tensor: r"""Computes image-aware inverse depth smoothness loss. - See :class:`~kornia.losses.InvDepthSmoot...
{"golden_diff": "diff --git a/kornia/losses/depth_smooth.py b/kornia/losses/depth_smooth.py\n--- a/kornia/losses/depth_smooth.py\n+++ b/kornia/losses/depth_smooth.py\n@@ -21,7 +21,7 @@\n image: torch.Tensor) -> torch.Tensor:\n r\"\"\"Computes image-aware inverse depth smoothness loss.\n \n- See :class:`~...
1,503
158
gh_patches_debug_2038
rasdani/github-patches
git_diff
RedHatInsights__insights-core-1112
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- hostname parser doesn't handle sos_commands/general/hostname sos_commands/general/hostname contains the hostname with a newline at the end, which results in a file with two lines. The hostname parser specific...
diff --git a/insights/parsers/hostname.py b/insights/parsers/hostname.py --- a/insights/parsers/hostname.py +++ b/insights/parsers/hostname.py @@ -34,6 +34,7 @@ domain: The domain get from the fqdn. """ def parse_content(self, content): + content = filter(None, content) raw = None ...
{"golden_diff": "diff --git a/insights/parsers/hostname.py b/insights/parsers/hostname.py\n--- a/insights/parsers/hostname.py\n+++ b/insights/parsers/hostname.py\n@@ -34,6 +34,7 @@\n domain: The domain get from the fqdn.\n \"\"\"\n def parse_content(self, content):\n+ content = filter(None, conte...
740
109
gh_patches_debug_411
rasdani/github-patches
git_diff
ocf__ocfweb-48
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Have next 7 days in hours sidebar This means all our normal hours are visible on a normal week. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may con...
diff --git a/ocfweb/main/home.py b/ocfweb/main/home.py --- a/ocfweb/main/home.py +++ b/ocfweb/main/home.py @@ -13,7 +13,7 @@ def home(request): hours = [ - get_hours(date.today() + timedelta(days=i)) for i in range(7) + get_hours(date.today() + timedelta(days=i)) for i in range(5) ] bl...
{"golden_diff": "diff --git a/ocfweb/main/home.py b/ocfweb/main/home.py\n--- a/ocfweb/main/home.py\n+++ b/ocfweb/main/home.py\n@@ -13,7 +13,7 @@\n \n def home(request):\n hours = [\n- get_hours(date.today() + timedelta(days=i)) for i in range(7)\n+ get_hours(date.today() + timedelta(days=i)) for i in ...
633
107
gh_patches_debug_34747
rasdani/github-patches
git_diff
Cloud-CV__EvalAI-1035
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add serializers for creating challenge using zip file. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `app...
diff --git a/apps/challenges/serializers.py b/apps/challenges/serializers.py --- a/apps/challenges/serializers.py +++ b/apps/challenges/serializers.py @@ -2,11 +2,12 @@ from hosts.serializers import ChallengeHostTeamSerializer -from .models import ( - Challenge, +from .models import (Challenge,...
{"golden_diff": "diff --git a/apps/challenges/serializers.py b/apps/challenges/serializers.py\n--- a/apps/challenges/serializers.py\n+++ b/apps/challenges/serializers.py\n@@ -2,11 +2,12 @@\n \n from hosts.serializers import ChallengeHostTeamSerializer\n \n-from .models import (\n- Challenge,\n+from ...
924
525
gh_patches_debug_9413
rasdani/github-patches
git_diff
cisagov__manage.get.gov-908
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update Domain management permissions ### Issue Description Domain management, specifically that of DNS specific information, should be reserved for approved domain requests. Currently, if an item is in th...
diff --git a/src/registrar/views/index.py b/src/registrar/views/index.py --- a/src/registrar/views/index.py +++ b/src/registrar/views/index.py @@ -9,7 +9,10 @@ context = {} if request.user.is_authenticated: applications = DomainApplication.objects.filter(creator=request.user) - context["domain...
{"golden_diff": "diff --git a/src/registrar/views/index.py b/src/registrar/views/index.py\n--- a/src/registrar/views/index.py\n+++ b/src/registrar/views/index.py\n@@ -9,7 +9,10 @@\n context = {}\n if request.user.is_authenticated:\n applications = DomainApplication.objects.filter(creator=request.user)\n...
644
142
gh_patches_debug_2812
rasdani/github-patches
git_diff
comic__grand-challenge.org-827
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update to Django 2.2 - [ ] Check that all Django apps support 2.2 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- ...
diff --git a/app/grandchallenge/serving/views.py b/app/grandchallenge/serving/views.py --- a/app/grandchallenge/serving/views.py +++ b/app/grandchallenge/serving/views.py @@ -101,7 +101,7 @@ def serve_images(request, *, pk, path): - document_root = safe_join(f"/{settings.IMAGE_FILES_SUBDIRECTORY}", pk) + doc...
{"golden_diff": "diff --git a/app/grandchallenge/serving/views.py b/app/grandchallenge/serving/views.py\n--- a/app/grandchallenge/serving/views.py\n+++ b/app/grandchallenge/serving/views.py\n@@ -101,7 +101,7 @@\n \n \n def serve_images(request, *, pk, path):\n- document_root = safe_join(f\"/{settings.IMAGE_FILES_SUB...
1,495
128
gh_patches_debug_13393
rasdani/github-patches
git_diff
pulp__pulpcore-4310
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Import-check may return error saying "director does not exist" when it actually just lack permissions Endpoint /pulp/api/v3/importers/core/pulp/import-check/ returns error saying "Directory does not exist" wh...
diff --git a/pulpcore/app/views/importer.py b/pulpcore/app/views/importer.py --- a/pulpcore/app/views/importer.py +++ b/pulpcore/app/views/importer.py @@ -40,11 +40,14 @@ return rc, [msg] # check directory-sanity, leave if failed + # use os.stat to ensure directory exists and pulp has read-access + ...
{"golden_diff": "diff --git a/pulpcore/app/views/importer.py b/pulpcore/app/views/importer.py\n--- a/pulpcore/app/views/importer.py\n+++ b/pulpcore/app/views/importer.py\n@@ -40,11 +40,14 @@\n return rc, [msg]\n \n # check directory-sanity, leave if failed\n+ # use os.stat to ensure directory exists and ...
1,824
237
gh_patches_debug_11032
rasdani/github-patches
git_diff
spesmilo__electrum-1608
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- allow non-root installation on Linux I want to install Electrum on my Ubuntu machine in my user's `$HOME` directory, i.e., not via `sudo`. If I run the command ``` pip install https://download.electrum.org/...
diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 --- a/setup.py +++ b/setup.py @@ -17,6 +17,11 @@ if platform.system() in ['Linux', 'FreeBSD', 'DragonFly']: usr_share = os.path.join(sys.prefix, "share") + if not os.access(usr_share, os.W_OK): + if 'XDG_DATA_HOME' in os.environ.keys(): ...
{"golden_diff": "diff --git a/setup.py b/setup.py\nold mode 100644\nnew mode 100755\n--- a/setup.py\n+++ b/setup.py\n@@ -17,6 +17,11 @@\n \n if platform.system() in ['Linux', 'FreeBSD', 'DragonFly']:\n usr_share = os.path.join(sys.prefix, \"share\")\n+ if not os.access(usr_share, os.W_OK):\n+ if 'XDG_DATA...
1,117
187
gh_patches_debug_21674
rasdani/github-patches
git_diff
fedora-infra__bodhi-2007
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bodhi-dequqe-stable dies if any update in the queue is no longer eligible to go stable QuLogic from Freenode reported today that batched updates didn't go stable at 03:00 UTC like they should have. I confirme...
diff --git a/bodhi/server/scripts/dequeue_stable.py b/bodhi/server/scripts/dequeue_stable.py --- a/bodhi/server/scripts/dequeue_stable.py +++ b/bodhi/server/scripts/dequeue_stable.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright © 2017 Caleigh Runge-Hottman +# Copyright © 2017 Caleigh Runge-Hottman and Red Hat,...
{"golden_diff": "diff --git a/bodhi/server/scripts/dequeue_stable.py b/bodhi/server/scripts/dequeue_stable.py\n--- a/bodhi/server/scripts/dequeue_stable.py\n+++ b/bodhi/server/scripts/dequeue_stable.py\n@@ -1,5 +1,5 @@\n # -*- coding: utf-8 -*-\n-# Copyright \u00a9 2017 Caleigh Runge-Hottman\n+# Copyright \u00a9 2017 C...
1,057
319
gh_patches_debug_57022
rasdani/github-patches
git_diff
astronomer__astro-sdk-1401
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Doc: Cross link to API reference page from Operators page Currently there is no way to jump to Func/Operator definition from https://astro-sdk-python.readthedocs.io/en/stable/astro/sql/operators/get_value_lis...
diff --git a/python-sdk/src/astro/sql/__init__.py b/python-sdk/src/astro/sql/__init__.py --- a/python-sdk/src/astro/sql/__init__.py +++ b/python-sdk/src/astro/sql/__init__.py @@ -24,6 +24,7 @@ "drop_table", "ExportFileOperator", "export_file", + "get_value_list", "LoadFileOperator", "load_fi...
{"golden_diff": "diff --git a/python-sdk/src/astro/sql/__init__.py b/python-sdk/src/astro/sql/__init__.py\n--- a/python-sdk/src/astro/sql/__init__.py\n+++ b/python-sdk/src/astro/sql/__init__.py\n@@ -24,6 +24,7 @@\n \"drop_table\",\n \"ExportFileOperator\",\n \"export_file\",\n+ \"get_value_list\",\n ...
1,109
103
gh_patches_debug_5063
rasdani/github-patches
git_diff
cltk__cltk-371
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Inconsistent case of data directory [The latin module](https://github.com/cltk/cltk/blob/36b6fe7aa23a8c4f41ef694ddb64b4b02534146c/cltk/corpus/latin/__init__.py#L20) tries to load the latin library from "~/CLT...
diff --git a/cltk/corpus/latin/__init__.py b/cltk/corpus/latin/__init__.py --- a/cltk/corpus/latin/__init__.py +++ b/cltk/corpus/latin/__init__.py @@ -17,7 +17,7 @@ # Would like to have this search through a CLTK_DATA environment variable # Better to use something like make_cltk_path in cltk.utils.file_operations? h...
{"golden_diff": "diff --git a/cltk/corpus/latin/__init__.py b/cltk/corpus/latin/__init__.py\n--- a/cltk/corpus/latin/__init__.py\n+++ b/cltk/corpus/latin/__init__.py\n@@ -17,7 +17,7 @@\n # Would like to have this search through a CLTK_DATA environment variable\n # Better to use something like make_cltk_path in cltk.uti...
1,058
147
gh_patches_debug_35230
rasdani/github-patches
git_diff
ocadotechnology__aimmo-191
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove "staff required" for aimmo pages when URL viewing restrictions are merged Will require https://github.com/ocadotechnology/codeforlife-deploy-appengine/pull/35 --- END ISSUE --- Below are some code se...
diff --git a/example_project/example_project/settings.py b/example_project/example_project/settings.py --- a/example_project/example_project/settings.py +++ b/example_project/example_project/settings.py @@ -62,6 +62,8 @@ INSTALLED_APPS = ( 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib...
{"golden_diff": "diff --git a/example_project/example_project/settings.py b/example_project/example_project/settings.py\n--- a/example_project/example_project/settings.py\n+++ b/example_project/example_project/settings.py\n@@ -62,6 +62,8 @@\n \n INSTALLED_APPS = (\n 'django.contrib.admin',\n+ 'django.contrib.aut...
1,657
612
gh_patches_debug_18386
rasdani/github-patches
git_diff
liqd__a4-meinberlin-1168
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- On creating a plan, "Berlin" may be selected as district "Berlin" is part of the dropdown in the vorhaben create and update form @MagdaN should i add this issue to the whiteboard or taiga, too? --- END IS...
diff --git a/meinberlin/apps/plans/models.py b/meinberlin/apps/plans/models.py --- a/meinberlin/apps/plans/models.py +++ b/meinberlin/apps/plans/models.py @@ -2,6 +2,7 @@ from django.conf import settings from django.core.urlresolvers import reverse from django.db import models +from django.db.models import Q from d...
{"golden_diff": "diff --git a/meinberlin/apps/plans/models.py b/meinberlin/apps/plans/models.py\n--- a/meinberlin/apps/plans/models.py\n+++ b/meinberlin/apps/plans/models.py\n@@ -2,6 +2,7 @@\n from django.conf import settings\n from django.core.urlresolvers import reverse\n from django.db import models\n+from django.db...
1,124
199
gh_patches_debug_29253
rasdani/github-patches
git_diff
mars-project__mars-2957
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Submit query condition to remote node instead of fetch to local then query <!-- Thank you for your contribution! Please review https://github.com/mars-project/mars/blob/master/CONTRIBUTING.rst before open...
diff --git a/mars/services/task/execution/ray/fetcher.py b/mars/services/task/execution/ray/fetcher.py --- a/mars/services/task/execution/ray/fetcher.py +++ b/mars/services/task/execution/ray/fetcher.py @@ -15,9 +15,10 @@ import asyncio from collections import namedtuple from typing import Dict, List +from .....util...
{"golden_diff": "diff --git a/mars/services/task/execution/ray/fetcher.py b/mars/services/task/execution/ray/fetcher.py\n--- a/mars/services/task/execution/ray/fetcher.py\n+++ b/mars/services/task/execution/ray/fetcher.py\n@@ -15,9 +15,10 @@\n import asyncio\n from collections import namedtuple\n from typing import Dic...
918
432
gh_patches_debug_1383
rasdani/github-patches
git_diff
vega__altair-150
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- to_dict() not in Chart.__dir__ All in title. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `altair/schema...
diff --git a/altair/schema/baseobject.py b/altair/schema/baseobject.py --- a/altair/schema/baseobject.py +++ b/altair/schema/baseobject.py @@ -115,7 +115,7 @@ def __dir__(self): """Customize tab completed attributes.""" - return list(self.traits()) + return list(self.traits())+['to_dict', ...
{"golden_diff": "diff --git a/altair/schema/baseobject.py b/altair/schema/baseobject.py\n--- a/altair/schema/baseobject.py\n+++ b/altair/schema/baseobject.py\n@@ -115,7 +115,7 @@\n \n def __dir__(self):\n \"\"\"Customize tab completed attributes.\"\"\"\n- return list(self.traits())\n+ return l...
1,650
108
gh_patches_debug_20770
rasdani/github-patches
git_diff
hartwork__jawanndenn-45
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error 500 when pasting JSON with single surrogate characters Example: ```json { "equal_width": false, "title": "Which fruit do *you* like?", "options": [ "Apple", "Banana", "Orange",...
diff --git a/jawanndenn/views.py b/jawanndenn/views.py --- a/jawanndenn/views.py +++ b/jawanndenn/views.py @@ -1,10 +1,9 @@ # Copyright (C) 2019 Sebastian Pipping <sebastian@pipping.org> # Licensed under GNU Affero GPL v3 or later -import json # lgtm [py/import-and-import-from] from functools import wraps -from j...
{"golden_diff": "diff --git a/jawanndenn/views.py b/jawanndenn/views.py\n--- a/jawanndenn/views.py\n+++ b/jawanndenn/views.py\n@@ -1,10 +1,9 @@\n # Copyright (C) 2019 Sebastian Pipping <sebastian@pipping.org>\n # Licensed under GNU Affero GPL v3 or later\n \n-import json # lgtm [py/import-and-import-from]\n from funct...
1,865
229
gh_patches_debug_435
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-1864
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Missing documentation about unit testing inline scripts At the company I work on we are developing some inline scripts to use internally. We are struggling to create test for our scripts because the only cod...
diff --git a/mitmproxy/events.py b/mitmproxy/events.py --- a/mitmproxy/events.py +++ b/mitmproxy/events.py @@ -21,9 +21,6 @@ "responseheaders", "error", - "intercept", - "resume", - "websocket_handshake", "websocket_start", "websocket_message",
{"golden_diff": "diff --git a/mitmproxy/events.py b/mitmproxy/events.py\n--- a/mitmproxy/events.py\n+++ b/mitmproxy/events.py\n@@ -21,9 +21,6 @@\n \"responseheaders\",\n \"error\",\n \n- \"intercept\",\n- \"resume\",\n-\n \"websocket_handshake\",\n \"websocket_start\",\n \"websocket_message\",...
933
82
gh_patches_debug_34341
rasdani/github-patches
git_diff
PrefectHQ__prefect-1729
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- When a flow has no storage attached, the agent should mark the run as failed It appears that if the Agent picks up a run with no storage, it will mark it as submitted. This run will then exist in limbo fore...
diff --git a/src/prefect/agent/local/agent.py b/src/prefect/agent/local/agent.py --- a/src/prefect/agent/local/agent.py +++ b/src/prefect/agent/local/agent.py @@ -5,6 +5,7 @@ from prefect import config, context from prefect.agent import Agent +from prefect.engine.state import Failed from prefect.environments.stora...
{"golden_diff": "diff --git a/src/prefect/agent/local/agent.py b/src/prefect/agent/local/agent.py\n--- a/src/prefect/agent/local/agent.py\n+++ b/src/prefect/agent/local/agent.py\n@@ -5,6 +5,7 @@\n \n from prefect import config, context\n from prefect.agent import Agent\n+from prefect.engine.state import Failed\n from p...
1,799
428
gh_patches_debug_4680
rasdani/github-patches
git_diff
zestedesavoir__zds-site-5936
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Espaces insécables dans le titre de mise en Une **Description du bug** Espace non insécable dans l'aperçu de mis en Une. Ce problème n'a pas pu être par #5292 car l'aperçu est généré par du JavaScript. ...
diff --git a/zds/utils/templatetags/french_typography.py b/zds/utils/templatetags/french_typography.py --- a/zds/utils/templatetags/french_typography.py +++ b/zds/utils/templatetags/french_typography.py @@ -13,6 +13,9 @@ before or after some symbols, according to French typography. This filter is naive and ...
{"golden_diff": "diff --git a/zds/utils/templatetags/french_typography.py b/zds/utils/templatetags/french_typography.py\n--- a/zds/utils/templatetags/french_typography.py\n+++ b/zds/utils/templatetags/french_typography.py\n@@ -13,6 +13,9 @@\n before or after some symbols, according to French typography.\n \n Th...
697
143
gh_patches_debug_22737
rasdani/github-patches
git_diff
aio-libs__aiohttp-6144
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Switch http_parser to llhttp Nodejs decide to move from their hard-coded C parser to this one. https://github.com/nodejs/http-parser/pull/285#issuecomment-456025694 *Upd:* proposed parser is https://l...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ NO_EXTENSIONS = True -if IS_GIT_REPO and not (HERE / "vendor/http-parser/README.md").exists(): +if IS_GIT_REPO and not (HERE / "vendor/llhttp/README.md").exists(): print("Install submodules when building from git clone", file...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -18,7 +18,7 @@\n NO_EXTENSIONS = True\n \n \n-if IS_GIT_REPO and not (HERE / \"vendor/http-parser/README.md\").exists():\n+if IS_GIT_REPO and not (HERE / \"vendor/llhttp/README.md\").exists():\n print(\"Install submodules when...
1,729
293