problem_id
stringlengths
18
21
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
54
prompt
stringlengths
1.28k
64.2k
golden_diff
stringlengths
166
811
verification_info
stringlengths
604
118k
gh_patches_debug_1300
rasdani/github-patches
git_diff
sopel-irc__sopel-1339
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- raw logging defaults to true...necessary? sopel [by default](https://github.com/sopel-irc/sopel/blob/master/sopel/config/core_section.py#L134) does raw logging. You would need to manually add log_raw = Fal...
diff --git a/sopel/config/core_section.py b/sopel/config/core_section.py --- a/sopel/config/core_section.py +++ b/sopel/config/core_section.py @@ -131,7 +131,7 @@ Regular expression syntax is used""" - log_raw = ValidatedAttribute('log_raw', bool, default=True) + log_raw = ValidatedAttribute('log_raw', b...
{"golden_diff": "diff --git a/sopel/config/core_section.py b/sopel/config/core_section.py\n--- a/sopel/config/core_section.py\n+++ b/sopel/config/core_section.py\n@@ -131,7 +131,7 @@\n \n Regular expression syntax is used\"\"\"\n \n- log_raw = ValidatedAttribute('log_raw', bool, default=True)\n+ log_raw = Val...
gh_patches_debug_1301
rasdani/github-patches
git_diff
Nitrate__Nitrate-1040
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CSRF error when add cases to test runs Reproduce steps: * Go to a plan page * Select a few cases * Click "Add cases to runs" * Select at least one test run and click Update button * Confirm yes, then e...
diff --git a/src/tcms/testplans/views.py b/src/tcms/testplans/views.py --- a/src/tcms/testplans/views.py +++ b/src/tcms/testplans/views.py @@ -339,8 +339,8 @@ ) def post(self, request, plan_id): - choosed_testrun_ids = request.POST.getlist("testrun_ids") - to_be_added_cases = TestCase.obje...
{"golden_diff": "diff --git a/src/tcms/testplans/views.py b/src/tcms/testplans/views.py\n--- a/src/tcms/testplans/views.py\n+++ b/src/tcms/testplans/views.py\n@@ -339,8 +339,8 @@\n )\n \n def post(self, request, plan_id):\n- choosed_testrun_ids = request.POST.getlist(\"testrun_ids\")\n- to_be_...
gh_patches_debug_1302
rasdani/github-patches
git_diff
catalyst-team__catalyst-855
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- EarlyStoppingCallback considers first epoch as bad ## 🐛 Bug Report EarlyStoppingCallback considers first epoch as bad. This can lead for example to always stopping after first epoch if patience=1. ### ...
diff --git a/catalyst/core/callbacks/early_stop.py b/catalyst/core/callbacks/early_stop.py --- a/catalyst/core/callbacks/early_stop.py +++ b/catalyst/core/callbacks/early_stop.py @@ -51,9 +51,7 @@ return score = runner.valid_metrics[self.metric] - if self.best_score is None: - ...
{"golden_diff": "diff --git a/catalyst/core/callbacks/early_stop.py b/catalyst/core/callbacks/early_stop.py\n--- a/catalyst/core/callbacks/early_stop.py\n+++ b/catalyst/core/callbacks/early_stop.py\n@@ -51,9 +51,7 @@\n return\n \n score = runner.valid_metrics[self.metric]\n- if self.best_scor...
gh_patches_debug_1303
rasdani/github-patches
git_diff
benoitc__gunicorn-3030
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Odd crash in gthread after page served I just started to see this after rebuilding an older app after making some small changes. ``` Traceback (most recent call last): File "/usr/local/lib/python3.8/...
diff --git a/gunicorn/workers/gthread.py b/gunicorn/workers/gthread.py --- a/gunicorn/workers/gthread.py +++ b/gunicorn/workers/gthread.py @@ -180,6 +180,9 @@ except KeyError: # already removed by the system, continue pass + excep...
{"golden_diff": "diff --git a/gunicorn/workers/gthread.py b/gunicorn/workers/gthread.py\n--- a/gunicorn/workers/gthread.py\n+++ b/gunicorn/workers/gthread.py\n@@ -180,6 +180,9 @@\n except KeyError:\n # already removed by the system, continue\n pass\n+ ...
gh_patches_debug_1304
rasdani/github-patches
git_diff
NVIDIA__NVFlare-920
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Tenseal necessary, makes installation impossible on Apple Silicon. As discussed in #130 tenseal remains unavailable for Apple Silicon. The current NVFlare version (2.2.0) has no optional features and ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -85,10 +85,10 @@ "psutil==5.9.1", "PyYAML==6.0", "six>=1.15.0", - "tenseal==0.3.0", "msgpack==1.0.3", "docker>=6.0", ], + extras_require={"HE": ["tenseal==0.3.0"]}, entry_points={ ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -85,10 +85,10 @@\n \"psutil==5.9.1\",\n \"PyYAML==6.0\",\n \"six>=1.15.0\",\n- \"tenseal==0.3.0\",\n \"msgpack==1.0.3\",\n \"docker>=6.0\",\n ],\n+ extras_require={\"HE\": [\"tense...
gh_patches_debug_1305
rasdani/github-patches
git_diff
kartoza__prj.app-342
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Order sponsors in their groups From @andreasneumann: ```For the sponsors listing - is there a clear order within the same level at http://changelog.qgis.org/en/qgis/version/2.16.0/ ? In my opinion, it shou...
diff --git a/django_project/changes/models/version.py b/django_project/changes/models/version.py --- a/django_project/changes/models/version.py +++ b/django_project/changes/models/version.py @@ -202,7 +202,7 @@ start_date__lte=self.release_date).filter( project=self.project).order_by( ...
{"golden_diff": "diff --git a/django_project/changes/models/version.py b/django_project/changes/models/version.py\n--- a/django_project/changes/models/version.py\n+++ b/django_project/changes/models/version.py\n@@ -202,7 +202,7 @@\n start_date__lte=self.release_date).filter(\n project=se...
gh_patches_debug_1306
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-1538
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wrong error in Metric.__iter__ ## 🐛 Bug In the class `Metric`, the `__iter__` method is defined as follows: ```python def __iter__(self): """Iteration over metrics are not allowed. Use metric collect...
diff --git a/src/torchmetrics/metric.py b/src/torchmetrics/metric.py --- a/src/torchmetrics/metric.py +++ b/src/torchmetrics/metric.py @@ -920,9 +920,7 @@ """Needede method for construction of new metrics __new__ method.""" return (Metric.__str__(self),) - def __iter__(self): - """Iteratio...
{"golden_diff": "diff --git a/src/torchmetrics/metric.py b/src/torchmetrics/metric.py\n--- a/src/torchmetrics/metric.py\n+++ b/src/torchmetrics/metric.py\n@@ -920,9 +920,7 @@\n \"\"\"Needede method for construction of new metrics __new__ method.\"\"\"\n return (Metric.__str__(self),)\n \n- def __iter...
gh_patches_debug_1307
rasdani/github-patches
git_diff
nltk__nltk-2572
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Method2 of smoothing function in nltk.translate.bleu_score needs to ignore unigram precision score According to [Lin & Och, 2004](http://acl2014.org/acl2014/W14-33/pdf/W14-3346.pdf), second smoothing function...
diff --git a/nltk/translate/bleu_score.py b/nltk/translate/bleu_score.py --- a/nltk/translate/bleu_score.py +++ b/nltk/translate/bleu_score.py @@ -541,8 +541,9 @@ skip-bigram statistics. In ACL04. """ return [ - Fraction(p_i.numerator + 1, p_i.denominator + 1, _normalize=False) - ...
{"golden_diff": "diff --git a/nltk/translate/bleu_score.py b/nltk/translate/bleu_score.py\n--- a/nltk/translate/bleu_score.py\n+++ b/nltk/translate/bleu_score.py\n@@ -541,8 +541,9 @@\n skip-bigram statistics. In ACL04.\n \"\"\"\n return [\n- Fraction(p_i.numerator + 1, p_i.denominator...
gh_patches_debug_1308
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-1806
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- OTLP gRPC exporter silently fails if scheme is not specified in endpoint Issue arising from implementing https://github.com/open-telemetry/opentelemetry-python/pull/1771 **Steps to reproduce** Supplying a...
diff --git a/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py --- a/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/ex...
{"golden_diff": "diff --git a/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py\n--- a/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/...
gh_patches_debug_1309
rasdani/github-patches
git_diff
nautobot__nautobot-1120
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- GraphQL single-object endpoints broken <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need assistance wit...
diff --git a/nautobot/core/graphql/generators.py b/nautobot/core/graphql/generators.py --- a/nautobot/core/graphql/generators.py +++ b/nautobot/core/graphql/generators.py @@ -235,7 +235,9 @@ obj_id = kwargs.get("id", None) if obj_id: - return gql_optimizer.query(model.objects.restrict(inf...
{"golden_diff": "diff --git a/nautobot/core/graphql/generators.py b/nautobot/core/graphql/generators.py\n--- a/nautobot/core/graphql/generators.py\n+++ b/nautobot/core/graphql/generators.py\n@@ -235,7 +235,9 @@\n \n obj_id = kwargs.get(\"id\", None)\n if obj_id:\n- return gql_optimizer.query(...
gh_patches_debug_1310
rasdani/github-patches
git_diff
chainer__chainer-1178
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- HuberLoss's backward() should not ignore gy `HuberLoss`'s `backward()` ignores `gy`, so any computation after `HuberLoss` has no effect for gradients backpropagated by `HuberLoss`. I think such a behavior is ...
diff --git a/chainer/functions/loss/huber_loss.py b/chainer/functions/loss/huber_loss.py --- a/chainer/functions/loss/huber_loss.py +++ b/chainer/functions/loss/huber_loss.py @@ -31,7 +31,8 @@ def backward(self, inputs, gy): xp = cuda.get_array_module(*inputs) mask = xp.abs(self.diff) <= self.del...
{"golden_diff": "diff --git a/chainer/functions/loss/huber_loss.py b/chainer/functions/loss/huber_loss.py\n--- a/chainer/functions/loss/huber_loss.py\n+++ b/chainer/functions/loss/huber_loss.py\n@@ -31,7 +31,8 @@\n def backward(self, inputs, gy):\n xp = cuda.get_array_module(*inputs)\n mask = xp.abs...
gh_patches_debug_1311
rasdani/github-patches
git_diff
aio-libs__aiohttp-4193
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Implement ClientSession.timeout property It is a bare method that returns `self._timeout`. Documentation and a simple test are required --- END ISSUE --- Below are some code segments, each from a relevan...
diff --git a/aiohttp/client.py b/aiohttp/client.py --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -913,6 +913,11 @@ """Do URL requoting on redirection handling.""" return self._requote_redirect_url + @property + def timeout(self) -> Union[object, ClientTimeout]: + """Timeout for the...
{"golden_diff": "diff --git a/aiohttp/client.py b/aiohttp/client.py\n--- a/aiohttp/client.py\n+++ b/aiohttp/client.py\n@@ -913,6 +913,11 @@\n \"\"\"Do URL requoting on redirection handling.\"\"\"\n return self._requote_redirect_url\n \n+ @property\n+ def timeout(self) -> Union[object, ClientTimeou...
gh_patches_debug_1312
rasdani/github-patches
git_diff
holoviz__panel-1716
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BytesIO/StringIO break pn.pane.image if called second time #### ALL software version info Panel: 0.10.0.post7+gb5cf6928 #### Description of expected behavior and the observed behavior When having a Bytes...
diff --git a/panel/pane/image.py b/panel/pane/image.py --- a/panel/pane/image.py +++ b/panel/pane/image.py @@ -78,6 +78,8 @@ with open(self.object, 'rb') as f: return f.read() if hasattr(self.object, 'read'): + if hasattr(self.object, 'seek'): + s...
{"golden_diff": "diff --git a/panel/pane/image.py b/panel/pane/image.py\n--- a/panel/pane/image.py\n+++ b/panel/pane/image.py\n@@ -78,6 +78,8 @@\n with open(self.object, 'rb') as f:\n return f.read()\n if hasattr(self.object, 'read'):\n+ if hasattr(self.object, 'se...
gh_patches_debug_1313
rasdani/github-patches
git_diff
pwr-Solaar__Solaar-1272
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot unpair logitech mouse from logitech nano receiver **Information** - solaar: 1.0.6 (pip3) - Distribution: ubuntu 21.10 - Kernel version: Linux 5.13.0-16-generic x86_64 GNU/Linux ``` Nano Receiver...
diff --git a/lib/logitech_receiver/base_usb.py b/lib/logitech_receiver/base_usb.py --- a/lib/logitech_receiver/base_usb.py +++ b/lib/logitech_receiver/base_usb.py @@ -126,7 +126,7 @@ UNIFYING_RECEIVER_C532 = _unifying_receiver(0xc532) # Nano receviers that support the Unifying protocol -NANO_RECEIVER_ADVANCED = _na...
{"golden_diff": "diff --git a/lib/logitech_receiver/base_usb.py b/lib/logitech_receiver/base_usb.py\n--- a/lib/logitech_receiver/base_usb.py\n+++ b/lib/logitech_receiver/base_usb.py\n@@ -126,7 +126,7 @@\n UNIFYING_RECEIVER_C532 = _unifying_receiver(0xc532)\n \n # Nano receviers that support the Unifying protocol\n-NANO...
gh_patches_debug_1314
rasdani/github-patches
git_diff
netbox-community__netbox-9819
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Circuit termination on interface not working when accesssed from interface table ### NetBox version v3.3-beta1 ### Python version 3.9 ### Steps to Reproduce 1. Create device with interfaces 2. Create ci...
diff --git a/netbox/dcim/forms/connections.py b/netbox/dcim/forms/connections.py --- a/netbox/dcim/forms/connections.py +++ b/netbox/dcim/forms/connections.py @@ -138,7 +138,7 @@ label='Side', disabled_indicator='_occupied', query_params={ - ...
{"golden_diff": "diff --git a/netbox/dcim/forms/connections.py b/netbox/dcim/forms/connections.py\n--- a/netbox/dcim/forms/connections.py\n+++ b/netbox/dcim/forms/connections.py\n@@ -138,7 +138,7 @@\n label='Side',\n disabled_indicator='_occupied',\n ...
gh_patches_debug_1315
rasdani/github-patches
git_diff
Theano__Theano-6539
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CUDA headers not included in compilation of GpuMagmaMatrixInverse node I'm using theano with magma (enabled in theano config) to invert a matrix on the GPU: ``` import theano import theano.tensor as T A =...
diff --git a/theano/gpuarray/linalg.py b/theano/gpuarray/linalg.py --- a/theano/gpuarray/linalg.py +++ b/theano/gpuarray/linalg.py @@ -498,7 +498,7 @@ 'gpuarray_helper.h', 'magma.h'] def c_header_dirs(self): - dirs = [gpuarray_helper_inc_dir(), pygpu.get_include()] + dirs = [gpuarr...
{"golden_diff": "diff --git a/theano/gpuarray/linalg.py b/theano/gpuarray/linalg.py\n--- a/theano/gpuarray/linalg.py\n+++ b/theano/gpuarray/linalg.py\n@@ -498,7 +498,7 @@\n 'gpuarray_helper.h', 'magma.h']\n \n def c_header_dirs(self):\n- dirs = [gpuarray_helper_inc_dir(), pygpu.get_include()]...
gh_patches_debug_1316
rasdani/github-patches
git_diff
numba__numba-1397
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CUDA local array should be allocated at entry block https://github.com/numba/numba/issues/1341#issuecomment-134612689 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more ...
diff --git a/numba/cuda/cudaimpl.py b/numba/cuda/cudaimpl.py --- a/numba/cuda/cudaimpl.py +++ b/numba/cuda/cudaimpl.py @@ -351,7 +351,7 @@ # Special case local addrespace allocation to use alloca # NVVM is smart enough to only use local memory if no register is # available - dataptr = ...
{"golden_diff": "diff --git a/numba/cuda/cudaimpl.py b/numba/cuda/cudaimpl.py\n--- a/numba/cuda/cudaimpl.py\n+++ b/numba/cuda/cudaimpl.py\n@@ -351,7 +351,7 @@\n # Special case local addrespace allocation to use alloca\n # NVVM is smart enough to only use local memory if no register is\n # availa...
gh_patches_debug_1317
rasdani/github-patches
git_diff
SCons__scons-3556
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ['SUBSTFILEPREFIX', 'TEXTFILESUFFIX'] **Describe the bug** From git head, just now. File: src/engine/SCons/Tool/textfile.py Line 165: _text_varlist = _common_varlist + ['TEXTFILEPREFIX', 'TEXTFILESUFF...
diff --git a/src/engine/SCons/Tool/textfile.py b/src/engine/SCons/Tool/textfile.py --- a/src/engine/SCons/Tool/textfile.py +++ b/src/engine/SCons/Tool/textfile.py @@ -171,7 +171,7 @@ suffix='$TEXTFILESUFFIX', ) -_subst_varlist = _common_varlist + ['SUBSTFILEPREFIX', 'TEXTFILESUFFIX'] +_subst_varlist = _common_v...
{"golden_diff": "diff --git a/src/engine/SCons/Tool/textfile.py b/src/engine/SCons/Tool/textfile.py\n--- a/src/engine/SCons/Tool/textfile.py\n+++ b/src/engine/SCons/Tool/textfile.py\n@@ -171,7 +171,7 @@\n suffix='$TEXTFILESUFFIX',\n )\n \n-_subst_varlist = _common_varlist + ['SUBSTFILEPREFIX', 'TEXTFILESUFFIX']\n+_...
gh_patches_debug_1318
rasdani/github-patches
git_diff
mindsdb__mindsdb-1845
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Selecting from files is not work selecting from files like this: ``` select * from file.file_name ``` is not working --- END ISSUE --- Below are some code segments, each from a relevant file. One...
diff --git a/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py b/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py --- a/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py +++ b/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py @@ -322,8 +322,8 @@ return integrations_names = self.datahub.get_...
{"golden_diff": "diff --git a/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py b/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py\n--- a/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py\n+++ b/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py\n@@ -322,8 +322,8 @@\n return\n \n integrations_na...
gh_patches_debug_1319
rasdani/github-patches
git_diff
plotly__dash-333
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The README is in markdown and doesn't render properly on pypi.io See: https://pypi.org/project/dash/ --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files m...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -14,6 +14,7 @@ description=('A Python framework for building reactive web-apps. ' 'Developed by Plotly.'), long_description=io.open('README.md', encoding='utf-8').read(), + long_description_content_type='text/markdown', ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -14,6 +14,7 @@\n description=('A Python framework for building reactive web-apps. '\n 'Developed by Plotly.'),\n long_description=io.open('README.md', encoding='utf-8').read(),\n+ long_description_content_t...
gh_patches_debug_1320
rasdani/github-patches
git_diff
AUTOMATIC1111__stable-diffusion-webui-6772
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug]: New SHA256 hash takes extremely long time up to a point of of model load being unusable ### Is there an existing issue for this? - [X] I have searched the existing issues and checked the recent buil...
diff --git a/modules/hashes.py b/modules/hashes.py --- a/modules/hashes.py +++ b/modules/hashes.py @@ -34,9 +34,10 @@ def calculate_sha256(filename): hash_sha256 = hashlib.sha256() + blksize = 1024 * 1024 with open(filename, "rb") as f: - for chunk in iter(lambda: f.read(4096), b""): + ...
{"golden_diff": "diff --git a/modules/hashes.py b/modules/hashes.py\n--- a/modules/hashes.py\n+++ b/modules/hashes.py\n@@ -34,9 +34,10 @@\n \r\n def calculate_sha256(filename):\r\n hash_sha256 = hashlib.sha256()\r\n+ blksize = 1024 * 1024\r\n \r\n with open(filename, \"rb\") as f:\r\n- for chunk in it...
gh_patches_debug_1321
rasdani/github-patches
git_diff
kivy__kivy-7301
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- postproc does not invert on_touch_up events and therefore does not properly dispatch on_release **Software Versions** * Python: 3.7 * OS: Raspberry Pi OS * Kivy: v2.0.0rc3, git-Unknown, 20200723 * Kivy in...
diff --git a/kivy/input/providers/mtdev.py b/kivy/input/providers/mtdev.py --- a/kivy/input/providers/mtdev.py +++ b/kivy/input/providers/mtdev.py @@ -34,6 +34,12 @@ * min_touch_minor : width shape minimum * max_touch_minor : height shape maximum * rotation : 0,90,180 or 270 to rotate + +An inverted display configur...
{"golden_diff": "diff --git a/kivy/input/providers/mtdev.py b/kivy/input/providers/mtdev.py\n--- a/kivy/input/providers/mtdev.py\n+++ b/kivy/input/providers/mtdev.py\n@@ -34,6 +34,12 @@\n * min_touch_minor : width shape minimum\n * max_touch_minor : height shape maximum\n * rotation : 0,90,180 or 270 to rotate\n+\n+An ...
gh_patches_debug_1322
rasdani/github-patches
git_diff
pyca__cryptography-4619
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Building against openssl-1.1.1 configured with no-psk results broken .so If openssl 1.1.1 is detected, the TLSv1.3 psk stuff is enabled unconditionally. However, it can be disabled via `no-psk` configuration....
diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py --- a/src/_cffi_src/openssl/ssl.py +++ b/src/_cffi_src/openssl/ssl.py @@ -756,7 +756,7 @@ static const long Cryptography_HAS_SIGALGS = 1; #endif -#if CRYPTOGRAPHY_IS_LIBRESSL +#if CRYPTOGRAPHY_IS_LIBRESSL || defined(OPENSSL_NO_PSK) static con...
{"golden_diff": "diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py\n--- a/src/_cffi_src/openssl/ssl.py\n+++ b/src/_cffi_src/openssl/ssl.py\n@@ -756,7 +756,7 @@\n static const long Cryptography_HAS_SIGALGS = 1;\n #endif\n \n-#if CRYPTOGRAPHY_IS_LIBRESSL\n+#if CRYPTOGRAPHY_IS_LIBRESSL || defined(OP...
gh_patches_debug_1323
rasdani/github-patches
git_diff
google__jax-4847
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add Python 3.9 wheels for jaxlib Sorry for the bother, but I'm having some problems with installing jaxlib in Python 3.9: ``` > pip install jaxlib==0.1.55 ERROR: Could not find a version that satisfies the...
diff --git a/build/build.py b/build/build.py --- a/build/build.py +++ b/build/build.py @@ -179,6 +179,7 @@ common --experimental_repo_remote_exec build --repo_env PYTHON_BIN_PATH="{python_bin_path}" +build --action_env=PYENV_ROOT build --python_path="{python_bin_path}" build --repo_env TF_NEED_CUDA="{tf_need_cuda...
{"golden_diff": "diff --git a/build/build.py b/build/build.py\n--- a/build/build.py\n+++ b/build/build.py\n@@ -179,6 +179,7 @@\n common --experimental_repo_remote_exec\n \n build --repo_env PYTHON_BIN_PATH=\"{python_bin_path}\"\n+build --action_env=PYENV_ROOT\n build --python_path=\"{python_bin_path}\"\n build --repo_e...
gh_patches_debug_1324
rasdani/github-patches
git_diff
freqtrade__freqtrade-3719
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- cross_above problem with shift <!-- Have you searched for similar issues before posting it? Did you have a VERY good look at the [documentation](https://www.freqtrade.io/en/latest/) and are sure that the q...
diff --git a/freqtrade/vendor/qtpylib/indicators.py b/freqtrade/vendor/qtpylib/indicators.py --- a/freqtrade/vendor/qtpylib/indicators.py +++ b/freqtrade/vendor/qtpylib/indicators.py @@ -222,7 +222,7 @@ if isinstance(series1, np.ndarray): series1 = pd.Series(series1) - if isinstance(series2, (float, ...
{"golden_diff": "diff --git a/freqtrade/vendor/qtpylib/indicators.py b/freqtrade/vendor/qtpylib/indicators.py\n--- a/freqtrade/vendor/qtpylib/indicators.py\n+++ b/freqtrade/vendor/qtpylib/indicators.py\n@@ -222,7 +222,7 @@\n if isinstance(series1, np.ndarray):\n series1 = pd.Series(series1)\n \n- if isin...
gh_patches_debug_1325
rasdani/github-patches
git_diff
mozmeao__basket-184
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use MySQL Strict Mode I noticed the following warning during DB migrations in a Jenkins deployment: > WARNINGS: > > ?: (mysql.W002) MySQL Strict Mode is not set for database connection 'default' > ...
diff --git a/basket/settings.py b/basket/settings.py --- a/basket/settings.py +++ b/basket/settings.py @@ -55,7 +55,10 @@ cast=dj_database_url.parse), } if DATABASES['default']['ENGINE'] == 'django.db.backends.mysql': - DATABASES['default']['OPTIONS'] = {'init_command': 'SET storage_engine=I...
{"golden_diff": "diff --git a/basket/settings.py b/basket/settings.py\n--- a/basket/settings.py\n+++ b/basket/settings.py\n@@ -55,7 +55,10 @@\n cast=dj_database_url.parse),\n }\n if DATABASES['default']['ENGINE'] == 'django.db.backends.mysql':\n- DATABASES['default']['OPTIONS'] = {'init_command...
gh_patches_debug_1326
rasdani/github-patches
git_diff
microsoft__torchgeo-309
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Open in Colab URL broken in 0.1.1 The latest 0.1.1 release broke the "Open in Colab" URL in our tutorials. Still trying to fix this. --- END ISSUE --- Below are some code segments, each from a relevant file...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -118,7 +118,11 @@ nbsphinx_prolog = """ {% set colab = "https://colab.research.google.com" %} {% set repo = "microsoft/torchgeo" %} -{% set branch = "main" %} +{% if "dev" in env.config.release %} + {% set branch = "main" %} +{% els...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -118,7 +118,11 @@\n nbsphinx_prolog = \"\"\"\n {% set colab = \"https://colab.research.google.com\" %}\n {% set repo = \"microsoft/torchgeo\" %}\n-{% set branch = \"main\" %}\n+{% if \"dev\" in env.config.release %}\n+...
gh_patches_debug_1327
rasdani/github-patches
git_diff
psychopy__psychopy-4905
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DotStim size parameter does not correspond to displayed size The size attribute of a DotStim does not correspond to its actual displayed size. For example, below are two polygons each set to have a size of (2...
diff --git a/psychopy/visual/dot.py b/psychopy/visual/dot.py --- a/psychopy/visual/dot.py +++ b/psychopy/visual/dot.py @@ -660,7 +660,7 @@ if nOutOfBounds: self._verticesBase[outofbounds, :] = self._newDotsXY(nOutOfBounds) - self.vertices = self._verticesBase + self.vertices = self...
{"golden_diff": "diff --git a/psychopy/visual/dot.py b/psychopy/visual/dot.py\n--- a/psychopy/visual/dot.py\n+++ b/psychopy/visual/dot.py\n@@ -660,7 +660,7 @@\n if nOutOfBounds:\n self._verticesBase[outofbounds, :] = self._newDotsXY(nOutOfBounds)\n \n- self.vertices = self._verticesBase\n+ ...
gh_patches_debug_1328
rasdani/github-patches
git_diff
obspy__obspy-3178
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Seg2 read error for NOTE keyword ### Avoid duplicates - [X] I searched existing issues ### Bug Summary Hi, I am having problems reading seg2 files if the keyword 'NOTE' exists but has no contents behind : ...
diff --git a/obspy/io/seg2/seg2.py b/obspy/io/seg2/seg2.py --- a/obspy/io/seg2/seg2.py +++ b/obspy/io/seg2/seg2.py @@ -323,7 +323,7 @@ try: value = string[1] except IndexError: - value = '' + value = b'' if key == 'NOTE': ...
{"golden_diff": "diff --git a/obspy/io/seg2/seg2.py b/obspy/io/seg2/seg2.py\n--- a/obspy/io/seg2/seg2.py\n+++ b/obspy/io/seg2/seg2.py\n@@ -323,7 +323,7 @@\n try:\n value = string[1]\n except IndexError:\n- value = ''\n+ value = b''\n if k...
gh_patches_debug_1329
rasdani/github-patches
git_diff
ivy-llc__ivy-27836
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- No value for argument `shape` in `reshape()` function call In the following function call, the `shape` argument is not passed. https://github.com/unifyai/ivy/blob/ef2c6d04e7c6c76535ff159011dbfd8b1f7f3704/iv...
diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py --- a/ivy/functional/frontends/paddle/tensor/tensor.py +++ b/ivy/functional/frontends/paddle/tensor/tensor.py @@ -301,9 +301,8 @@ self._ivy_array, args ).ivy_array ...
{"golden_diff": "diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py\n--- a/ivy/functional/frontends/paddle/tensor/tensor.py\n+++ b/ivy/functional/frontends/paddle/tensor/tensor.py\n@@ -301,9 +301,8 @@\n self._ivy_array, args\n ...
gh_patches_debug_1330
rasdani/github-patches
git_diff
twisted__twisted-1650
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- MaildirMessage cannot work with a file in text mode nor in binary mode |[<img alt="vmario's avatar" src="https://avatars.githubusercontent.com/u/62034?s=50" width="50" height="50">](https://github.com/vmario)...
diff --git a/src/twisted/mail/maildir.py b/src/twisted/mail/maildir.py --- a/src/twisted/mail/maildir.py +++ b/src/twisted/mail/maildir.py @@ -126,7 +126,7 @@ @type kw: L{dict} @param kw: Keyword arguments for L{FileMessage.__init__}. """ - header = "Delivered-To: %s\n" % address + ...
{"golden_diff": "diff --git a/src/twisted/mail/maildir.py b/src/twisted/mail/maildir.py\n--- a/src/twisted/mail/maildir.py\n+++ b/src/twisted/mail/maildir.py\n@@ -126,7 +126,7 @@\n @type kw: L{dict}\n @param kw: Keyword arguments for L{FileMessage.__init__}.\n \"\"\"\n- header = \"Deliver...
gh_patches_debug_1331
rasdani/github-patches
git_diff
openstates__openstates-scrapers-2345
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- OR failing since at least 2018-05-19 OR has been failing since 2018-05-19 Based on automated runs it appears that OR has not run successfully in 6 days (2018-05-19). ``` 08:02:19 INFO billy: Save person ...
diff --git a/billy_metadata/or.py b/billy_metadata/or.py --- a/billy_metadata/or.py +++ b/billy_metadata/or.py @@ -37,7 +37,8 @@ 'start_year': 2015, 'end_year': 2016}, {'name': '2017-2018', 'sessions': ['2017 Regular Session', - '2018 Regular Session'], + ...
{"golden_diff": "diff --git a/billy_metadata/or.py b/billy_metadata/or.py\n--- a/billy_metadata/or.py\n+++ b/billy_metadata/or.py\n@@ -37,7 +37,8 @@\n 'start_year': 2015, 'end_year': 2016},\n {'name': '2017-2018',\n 'sessions': ['2017 Regular Session',\n- '2018 Regular Ses...
gh_patches_debug_1332
rasdani/github-patches
git_diff
translate__pootle-6486
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- No critical checks are displayed after sending translation If you send a translation that has critical checks the editor correctly keeps you in the unit and displays a red background, but the critical errors ...
diff --git a/pootle/apps/pootle_store/views.py b/pootle/apps/pootle_store/views.py --- a/pootle/apps/pootle_store/views.py +++ b/pootle/apps/pootle_store/views.py @@ -146,6 +146,8 @@ ctx = { 'canreview': can_review, 'unit': unit, + 'critical_checks': list(unit.get_critical_qualitychecks())...
{"golden_diff": "diff --git a/pootle/apps/pootle_store/views.py b/pootle/apps/pootle_store/views.py\n--- a/pootle/apps/pootle_store/views.py\n+++ b/pootle/apps/pootle_store/views.py\n@@ -146,6 +146,8 @@\n ctx = {\n 'canreview': can_review,\n 'unit': unit,\n+ 'critical_checks': list(unit.get_c...
gh_patches_debug_1333
rasdani/github-patches
git_diff
elastic__apm-agent-python-1590
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Crash with wrong URL **Describe the bug**: Crash due to someone sending the wrong URL format: ``` ValueError: Port could not be cast to integer value as '${port}' File "elasticapm/contrib/django/...
diff --git a/elasticapm/contrib/django/client.py b/elasticapm/contrib/django/client.py --- a/elasticapm/contrib/django/client.py +++ b/elasticapm/contrib/django/client.py @@ -152,7 +152,10 @@ result["body"] = data url = get_raw_uri(request) - result["url"] = get_url_dict(url) + ...
{"golden_diff": "diff --git a/elasticapm/contrib/django/client.py b/elasticapm/contrib/django/client.py\n--- a/elasticapm/contrib/django/client.py\n+++ b/elasticapm/contrib/django/client.py\n@@ -152,7 +152,10 @@\n result[\"body\"] = data\n \n url = get_raw_uri(request)\n- result[\"url...
gh_patches_debug_1334
rasdani/github-patches
git_diff
jazzband__django-oauth-toolkit-812
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: get_full_path when running any rest_framework.test.APITestCase **Describe the bug** After upgrading from django-oauth-toolkit==1.2.0 to django-oauth-toolkit==1.3.0 every single test using `fr...
diff --git a/oauth2_provider/oauth2_validators.py b/oauth2_provider/oauth2_validators.py --- a/oauth2_provider/oauth2_validators.py +++ b/oauth2_provider/oauth2_validators.py @@ -608,7 +608,7 @@ """ Check username and password correspond to a valid and active User """ - u = authenticat...
{"golden_diff": "diff --git a/oauth2_provider/oauth2_validators.py b/oauth2_provider/oauth2_validators.py\n--- a/oauth2_provider/oauth2_validators.py\n+++ b/oauth2_provider/oauth2_validators.py\n@@ -608,7 +608,7 @@\n \"\"\"\n Check username and password correspond to a valid and active User\n \"...
gh_patches_debug_1335
rasdani/github-patches
git_diff
uclapi__uclapi-3514
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Requests of Undefined when Creating a New App **Describe the bug** When creating a new app on the staging.ninja dashboard the redirect page fails to render. **To Reproduce** Steps to reproduce the ...
diff --git a/backend/uclapi/dashboard/api_applications.py b/backend/uclapi/dashboard/api_applications.py --- a/backend/uclapi/dashboard/api_applications.py +++ b/backend/uclapi/dashboard/api_applications.py @@ -65,6 +65,12 @@ }, "webhook": { "verification_secret": new_app.webh...
{"golden_diff": "diff --git a/backend/uclapi/dashboard/api_applications.py b/backend/uclapi/dashboard/api_applications.py\n--- a/backend/uclapi/dashboard/api_applications.py\n+++ b/backend/uclapi/dashboard/api_applications.py\n@@ -65,6 +65,12 @@\n },\n \"webhook\": {\n \"verifica...
gh_patches_debug_1336
rasdani/github-patches
git_diff
getredash__redash-716
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Deleting and re-adding widgets to a dashboard breaks it There's a specific set of steps that has messed up some of our users' dashboards: 1. Create a new dashboard 2. Add multiple widgets to it. 3. Remove all...
diff --git a/redash/handlers/widgets.py b/redash/handlers/widgets.py --- a/redash/handlers/widgets.py +++ b/redash/handlers/widgets.py @@ -46,5 +46,7 @@ widget = models.Widget.get(models.Widget.id == widget_id) widget.delete_instance() + return {'layout': widget.dashboard.layout } + api.add_...
{"golden_diff": "diff --git a/redash/handlers/widgets.py b/redash/handlers/widgets.py\n--- a/redash/handlers/widgets.py\n+++ b/redash/handlers/widgets.py\n@@ -46,5 +46,7 @@\n widget = models.Widget.get(models.Widget.id == widget_id)\n widget.delete_instance()\n \n+ return {'layout': widget.dashbo...
gh_patches_debug_1337
rasdani/github-patches
git_diff
streamlink__streamlink-5622
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plugins.dlive: Failed to fetch segment | 403 Client Error ### Checklist - [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue](https://github.com/stream...
diff --git a/src/streamlink/plugins/dlive.py b/src/streamlink/plugins/dlive.py --- a/src/streamlink/plugins/dlive.py +++ b/src/streamlink/plugins/dlive.py @@ -86,7 +86,7 @@ self.author = channel self.title = livestream["title"] - return HLSStream.parse_variant_playlist(self.session, self.URL_...
{"golden_diff": "diff --git a/src/streamlink/plugins/dlive.py b/src/streamlink/plugins/dlive.py\n--- a/src/streamlink/plugins/dlive.py\n+++ b/src/streamlink/plugins/dlive.py\n@@ -86,7 +86,7 @@\n self.author = channel\n self.title = livestream[\"title\"]\n \n- return HLSStream.parse_variant_playli...
gh_patches_debug_1338
rasdani/github-patches
git_diff
pwndbg__pwndbg-1908
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- crash in command start after running sstart ### Description crash when running start after sstart ### Steps to reproduce Gdb session history: ``` sstart start set exception-verbose on start bug...
diff --git a/pwndbg/gdblib/symbol.py b/pwndbg/gdblib/symbol.py --- a/pwndbg/gdblib/symbol.py +++ b/pwndbg/gdblib/symbol.py @@ -136,6 +136,9 @@ # this case before calling `gdb.lookup_symbol` skipped_exceptions.append("Cannot find thread-local") + # This reproduced on GDB 12.1 and caused #1878 ...
{"golden_diff": "diff --git a/pwndbg/gdblib/symbol.py b/pwndbg/gdblib/symbol.py\n--- a/pwndbg/gdblib/symbol.py\n+++ b/pwndbg/gdblib/symbol.py\n@@ -136,6 +136,9 @@\n # this case before calling `gdb.lookup_symbol`\n skipped_exceptions.append(\"Cannot find thread-local\")\n \n+ # This reproduced on ...
gh_patches_debug_1339
rasdani/github-patches
git_diff
encode__uvicorn-978
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- improve user experience by complaining when reload_dirs is given a string instead of a list Passing a string to reload_dirs as in the following, causes reload to silently not work : ``` uvicorn.run(...
diff --git a/uvicorn/config.py b/uvicorn/config.py --- a/uvicorn/config.py +++ b/uvicorn/config.py @@ -200,7 +200,10 @@ if reload_dirs is None: self.reload_dirs = [os.getcwd()] else: - self.reload_dirs = reload_dirs + if isinstance(reload_dirs, str): + ...
{"golden_diff": "diff --git a/uvicorn/config.py b/uvicorn/config.py\n--- a/uvicorn/config.py\n+++ b/uvicorn/config.py\n@@ -200,7 +200,10 @@\n if reload_dirs is None:\n self.reload_dirs = [os.getcwd()]\n else:\n- self.reload_dirs = reload_dirs\n+ if isinstance(reload_dir...
gh_patches_debug_1340
rasdani/github-patches
git_diff
ckan__ckan-5502
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix line breaks in translatable strings I've got reports of confusing strings from translators, eg: ![Screenshot_2020-07-16 CKAN Transifex Editor](https://user-images.githubusercontent.com/200230/87644994-...
diff --git a/ckan/logic/validators.py b/ckan/logic/validators.py --- a/ckan/logic/validators.py +++ b/ckan/logic/validators.py @@ -937,9 +937,8 @@ return raise Invalid( - _('The email address \'{email}\' \ - belongs to a registered user.'). - ...
{"golden_diff": "diff --git a/ckan/logic/validators.py b/ckan/logic/validators.py\n--- a/ckan/logic/validators.py\n+++ b/ckan/logic/validators.py\n@@ -937,9 +937,8 @@\n return\n \n raise Invalid(\n- _('The email address \\'{email}\\' \\\n- belongs to a registered us...
gh_patches_debug_1341
rasdani/github-patches
git_diff
urllib3__urllib3-526
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- assert_hostname=False seems to be ignored in 1.10 I have some code that is relying on assert_hostname=False to work. I upgrade urllib3 to version 1.10 and the code fails with SSLError: hostname 'remote-host' ...
diff --git a/urllib3/util/ssl_.py b/urllib3/util/ssl_.py --- a/urllib3/util/ssl_.py +++ b/urllib3/util/ssl_.py @@ -211,7 +211,9 @@ context.verify_mode = cert_reqs if getattr(context, 'check_hostname', None) is not None: # Platform-specific: Python 3.2 - context.check_hostname = (context.verify_mode ...
{"golden_diff": "diff --git a/urllib3/util/ssl_.py b/urllib3/util/ssl_.py\n--- a/urllib3/util/ssl_.py\n+++ b/urllib3/util/ssl_.py\n@@ -211,7 +211,9 @@\n \n context.verify_mode = cert_reqs\n if getattr(context, 'check_hostname', None) is not None: # Platform-specific: Python 3.2\n- context.check_hostname...
gh_patches_debug_1342
rasdani/github-patches
git_diff
vyperlang__vyper-2805
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TypeError: from_annotation() takes 2 positional arguments but 6 were given ### Version Information * vyper Version (output of `vyper --version`): 0.3.2 ### What's your issue about? I think you'll see...
diff --git a/vyper/semantics/types/bases.py b/vyper/semantics/types/bases.py --- a/vyper/semantics/types/bases.py +++ b/vyper/semantics/types/bases.py @@ -285,7 +285,7 @@ """ return self.abi_type.selector_name() - def from_annotation(self, node: vy_ast.VyperNode, **kwargs: Any) -> None: + def ...
{"golden_diff": "diff --git a/vyper/semantics/types/bases.py b/vyper/semantics/types/bases.py\n--- a/vyper/semantics/types/bases.py\n+++ b/vyper/semantics/types/bases.py\n@@ -285,7 +285,7 @@\n \"\"\"\n return self.abi_type.selector_name()\n \n- def from_annotation(self, node: vy_ast.VyperNode, **kwar...
gh_patches_debug_1343
rasdani/github-patches
git_diff
docker__docker-py-1880
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Invalid symlinks now break utils.create_archive(), previously were skipped, skipped by docker CLI Version 2.7.0 seems to die if you try to include a symlink that points to something that doesn't exist. This ...
diff --git a/docker/utils/utils.py b/docker/utils/utils.py --- a/docker/utils/utils.py +++ b/docker/utils/utils.py @@ -98,7 +98,8 @@ files = build_file_list(root) for path in files: full_path = os.path.join(root, path) - if not os.access(full_path, os.R_OK): + + if os.lstat(full_pat...
{"golden_diff": "diff --git a/docker/utils/utils.py b/docker/utils/utils.py\n--- a/docker/utils/utils.py\n+++ b/docker/utils/utils.py\n@@ -98,7 +98,8 @@\n files = build_file_list(root)\n for path in files:\n full_path = os.path.join(root, path)\n- if not os.access(full_path, os.R_OK):\n+\n+ ...
gh_patches_debug_1344
rasdani/github-patches
git_diff
kivy__kivy-1926
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SoundLoader can't determine file types for URL's with URL parameters in them. Kivy currently can't load audio files from URL's that have URL parameters in them (For example `https://audio.example.com/get/test...
diff --git a/kivy/core/audio/__init__.py b/kivy/core/audio/__init__.py --- a/kivy/core/audio/__init__.py +++ b/kivy/core/audio/__init__.py @@ -59,6 +59,8 @@ if rfn is not None: filename = rfn ext = filename.split('.')[-1].lower() + if '?' in ext: + ext = ext.split('?')[0...
{"golden_diff": "diff --git a/kivy/core/audio/__init__.py b/kivy/core/audio/__init__.py\n--- a/kivy/core/audio/__init__.py\n+++ b/kivy/core/audio/__init__.py\n@@ -59,6 +59,8 @@\n if rfn is not None:\n filename = rfn\n ext = filename.split('.')[-1].lower()\n+ if '?' in ext:\n+ ...
gh_patches_debug_1345
rasdani/github-patches
git_diff
mozilla__pontoon-3117
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Hitting a server error when accessing a Tag page of a Tag without any resoures associated to it This is a regression from https://github.com/mozilla/pontoon/commit/1dcd7382221f7b943b9b743ee32322f7233f6a86. -...
diff --git a/pontoon/tags/utils.py b/pontoon/tags/utils.py --- a/pontoon/tags/utils.py +++ b/pontoon/tags/utils.py @@ -13,7 +13,9 @@ self.project = kwargs.get("project") self.locale = kwargs.get("locale") self.slug = kwargs.get("slug") - self.tag = Tag.objects.filter(project=self.proje...
{"golden_diff": "diff --git a/pontoon/tags/utils.py b/pontoon/tags/utils.py\n--- a/pontoon/tags/utils.py\n+++ b/pontoon/tags/utils.py\n@@ -13,7 +13,9 @@\n self.project = kwargs.get(\"project\")\n self.locale = kwargs.get(\"locale\")\n self.slug = kwargs.get(\"slug\")\n- self.tag = Tag.obj...
gh_patches_debug_1346
rasdani/github-patches
git_diff
borgbackup__borg-3837
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- add a hint to setup.py that py37 requires llfuse >= 1.3.4 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -69,6 +69,9 @@ # llfuse 0.41.1, 1.1 are ok extras_require['fuse'] = ['llfuse <2.0, !=0.42.*, !=0.43, !=1.0', ] +if my_python >= (3, 7): + extras_require['fuse'][0] += ', >=1.3.4' + from setuptools import setup, find_packages, Extension f...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -69,6 +69,9 @@\n # llfuse 0.41.1, 1.1 are ok\n extras_require['fuse'] = ['llfuse <2.0, !=0.42.*, !=0.43, !=1.0', ]\n \n+if my_python >= (3, 7):\n+ extras_require['fuse'][0] += ', >=1.3.4'\n+\n from setuptools import setup, ...
gh_patches_debug_1347
rasdani/github-patches
git_diff
cisagov__manage.get.gov-1071
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Show simplified domain statuses to the registrant ### Story As a domain manager I want to know the status of my domain in simple language so that I know if any action is needed or if any functions are li...
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 @@ -19,7 +19,7 @@ pk=F("domain__id"), name=F("domain__name"), created_time=F("domain__created_at"), - application_status=F("dom...
{"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@@ -19,7 +19,7 @@\n pk=F(\"domain__id\"),\n name=F(\"domain__name\"),\n created_time=F(\"domain__created_at\"),\n- ...
gh_patches_debug_1348
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-11429
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Document serve failed today ## Details * Read the Docs project URL: https://readthedocs.org/projects/{your_project_slug}/ * Build URL (if applicable): https://readthedocs.org/projects/{your_project_slug}/...
diff --git a/readthedocs/projects/constants.py b/readthedocs/projects/constants.py --- a/readthedocs/projects/constants.py +++ b/readthedocs/projects/constants.py @@ -310,6 +310,11 @@ re.escape(code) for code in LANGUAGE_CODES + list(OLD_LANGUAGES_CODE_MAPPING.values()) ] + # Add "zh" here to ...
{"golden_diff": "diff --git a/readthedocs/projects/constants.py b/readthedocs/projects/constants.py\n--- a/readthedocs/projects/constants.py\n+++ b/readthedocs/projects/constants.py\n@@ -310,6 +310,11 @@\n re.escape(code)\n for code in LANGUAGE_CODES + list(OLD_LANGUAGES_CODE_MAPPING.values())\n ]\n...
gh_patches_debug_1349
rasdani/github-patches
git_diff
biopython__biopython-3922
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- KEGG.Compound.parse not returning mass ### Setup I am reporting a problem with Biopython version, Python version, and operating system as follows: 1.78 3.9.12 Windows 10 Pro ### Expected behaviou...
diff --git a/Bio/KEGG/Compound/__init__.py b/Bio/KEGG/Compound/__init__.py --- a/Bio/KEGG/Compound/__init__.py +++ b/Bio/KEGG/Compound/__init__.py @@ -153,7 +153,7 @@ record.pathway.append(pathway) elif keyword == "FORMULA ": record.formula = data - elif keyword == "MASS ...
{"golden_diff": "diff --git a/Bio/KEGG/Compound/__init__.py b/Bio/KEGG/Compound/__init__.py\n--- a/Bio/KEGG/Compound/__init__.py\n+++ b/Bio/KEGG/Compound/__init__.py\n@@ -153,7 +153,7 @@\n record.pathway.append(pathway)\n elif keyword == \"FORMULA \":\n record.formula = data\n- ...
gh_patches_debug_1350
rasdani/github-patches
git_diff
pfnet__pytorch-pfn-extras-52
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug in when we use ProcessWriter with extensions. ## problem statement I run a code that includes the below fragment. Then, the prompt throws the below error. ``` writer = writing.ProcessWriter(...
diff --git a/pytorch_pfn_extras/writing.py b/pytorch_pfn_extras/writing.py --- a/pytorch_pfn_extras/writing.py +++ b/pytorch_pfn_extras/writing.py @@ -305,7 +305,7 @@ self._started = False self._filename = filename self._worker = self.create_worker(filename, out_dir, target, - ...
{"golden_diff": "diff --git a/pytorch_pfn_extras/writing.py b/pytorch_pfn_extras/writing.py\n--- a/pytorch_pfn_extras/writing.py\n+++ b/pytorch_pfn_extras/writing.py\n@@ -305,7 +305,7 @@\n self._started = False\n self._filename = filename\n self._worker = self.create_worker(filename, out_dir...
gh_patches_debug_1351
rasdani/github-patches
git_diff
facebookresearch__Mephisto-489
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Probably getting null Worker ID in the frontend Hi, Thank you for the great crowdsourcing platform. We are using Mephisto for a chat-style data collection. When the task was live on AMT, many of the wor...
diff --git a/mephisto/data_model/unit.py b/mephisto/data_model/unit.py --- a/mephisto/data_model/unit.py +++ b/mephisto/data_model/unit.py @@ -258,6 +258,11 @@ from mephisto.abstractions.blueprint import AgentState db_status = self.db_status + + # Expiration is a terminal state, and shouldn't...
{"golden_diff": "diff --git a/mephisto/data_model/unit.py b/mephisto/data_model/unit.py\n--- a/mephisto/data_model/unit.py\n+++ b/mephisto/data_model/unit.py\n@@ -258,6 +258,11 @@\n from mephisto.abstractions.blueprint import AgentState\n \n db_status = self.db_status\n+\n+ # Expiration is a term...
gh_patches_debug_1352
rasdani/github-patches
git_diff
liqd__a4-meinberlin-2388
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- same module displayed twice in project view 1 module is displayed twice (see picture) while another one (schönen text kommentieren) is not displayed at all. have a look at this [project](https://meinberli...
diff --git a/meinberlin/apps/projects/views.py b/meinberlin/apps/projects/views.py --- a/meinberlin/apps/projects/views.py +++ b/meinberlin/apps/projects/views.py @@ -392,7 +392,7 @@ .annotate(start_date=Min('phase__start_date'))\ .annotate(end_date=Max('phase__end_date'))\ .exclu...
{"golden_diff": "diff --git a/meinberlin/apps/projects/views.py b/meinberlin/apps/projects/views.py\n--- a/meinberlin/apps/projects/views.py\n+++ b/meinberlin/apps/projects/views.py\n@@ -392,7 +392,7 @@\n .annotate(start_date=Min('phase__start_date'))\\\n .annotate(end_date=Max('phase__end_date'...
gh_patches_debug_1353
rasdani/github-patches
git_diff
numpy__numpy-6851
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ENH: use linux fallocate to reserve diskspace in array.tofile fallocate allows the filesystem to make smarter decisions about space allocation and gives a fast failure path for insufficient space. This is ver...
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py --- a/numpy/core/setup_common.py +++ b/numpy/core/setup_common.py @@ -104,7 +104,7 @@ OPTIONAL_STDFUNCS = ["expm1", "log1p", "acosh", "asinh", "atanh", "rint", "trunc", "exp2", "log2", "hypot", "atan2", "pow", "copysign", "nextafter...
{"golden_diff": "diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py\n--- a/numpy/core/setup_common.py\n+++ b/numpy/core/setup_common.py\n@@ -104,7 +104,7 @@\n OPTIONAL_STDFUNCS = [\"expm1\", \"log1p\", \"acosh\", \"asinh\", \"atanh\",\n \"rint\", \"trunc\", \"exp2\", \"log2\", \"hypot\", \"ata...
gh_patches_debug_1354
rasdani/github-patches
git_diff
GeotrekCE__Geotrek-admin-3774
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug : Export des interventions filtrées dans la table n'est pas filtré dans le csv exporté **Contexte :** Bug dans le module intervention **Résultat attendu :** Lorsque je filtre la table qui liste...
diff --git a/geotrek/maintenance/views.py b/geotrek/maintenance/views.py --- a/geotrek/maintenance/views.py +++ b/geotrek/maintenance/views.py @@ -49,7 +49,7 @@ def get_queryset(self): """Returns all interventions joined with a new column for each job, to record the total cost of each job in each interven...
{"golden_diff": "diff --git a/geotrek/maintenance/views.py b/geotrek/maintenance/views.py\n--- a/geotrek/maintenance/views.py\n+++ b/geotrek/maintenance/views.py\n@@ -49,7 +49,7 @@\n def get_queryset(self):\n \"\"\"Returns all interventions joined with a new column for each job, to record the total cost of ...
gh_patches_debug_1355
rasdani/github-patches
git_diff
meltano__meltano-6694
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bug: Regression in `meltano remove` ### Meltano Version 2.3.0 ### Python Version NA ### Bug scope CLI (options, error messages, logging, etc.) ### Operating System NA ### Description ...
diff --git a/src/meltano/core/plugin/settings_service.py b/src/meltano/core/plugin/settings_service.py --- a/src/meltano/core/plugin/settings_service.py +++ b/src/meltano/core/plugin/settings_service.py @@ -62,7 +62,7 @@ environment_env = {} if self.project.active_environment: - with self...
{"golden_diff": "diff --git a/src/meltano/core/plugin/settings_service.py b/src/meltano/core/plugin/settings_service.py\n--- a/src/meltano/core/plugin/settings_service.py\n+++ b/src/meltano/core/plugin/settings_service.py\n@@ -62,7 +62,7 @@\n \n environment_env = {}\n if self.project.active_environment:...
gh_patches_debug_1356
rasdani/github-patches
git_diff
voicepaw__so-vits-svc-fork-1155
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ensure proper sorting by name for output files ### Is your feature request related to a problem? Please describe. To enhance readability and ensure proper sorting by name, the numeric part of output file nam...
diff --git a/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py b/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py --- a/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py +++ b/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py @@ -52,7 +52,7 @@...
{"golden_diff": "diff --git a/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py b/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py\n--- a/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.py\n+++ b/src/so_vits_svc_fork/preprocessing/preprocess_speaker_diarization.p...
gh_patches_debug_1357
rasdani/github-patches
git_diff
aws__aws-cli-276
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- aws ec2 modify-instance-attribute seems to fail with --source-dest-check parameter Hi, I need to call modify-instance-attribute from within my own instance, in order to automate the bootstrap process of my N...
diff --git a/awscli/argprocess.py b/awscli/argprocess.py --- a/awscli/argprocess.py +++ b/awscli/argprocess.py @@ -333,7 +333,8 @@ if value.lstrip()[0] == '{': d = json.loads(value) else: - msg = 'Structure option value must be JSON or path to file.' + msg = 'The val...
{"golden_diff": "diff --git a/awscli/argprocess.py b/awscli/argprocess.py\n--- a/awscli/argprocess.py\n+++ b/awscli/argprocess.py\n@@ -333,7 +333,8 @@\n if value.lstrip()[0] == '{':\n d = json.loads(value)\n else:\n- msg = 'Structure option value must be JSON or path to file.'\n+ ...
gh_patches_debug_1358
rasdani/github-patches
git_diff
pennersr__django-allauth-3084
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add python 3.10 support Would maintainers be willing to add python 3.10 to tox tests and official support? You can add this with the `py310` tag according the tox's [changelog](https://tox.wiki/en/latest/chan...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -157,6 +157,7 @@ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Framework :: Django", ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -157,6 +157,7 @@\n \"Programming Language :: Python :: 3.7\",\n \"Programming Language :: Python :: 3.8\",\n \"Programming Language :: Python :: 3.9\",\n+ \"Programming Language :: Python :: 3.10\",\n ...
gh_patches_debug_1359
rasdani/github-patches
git_diff
ESMCI__cime-699
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- code_checker return code is wrong Needs to return non-zero error code if files had problems. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contai...
diff --git a/utils/python/CIME/case.py b/utils/python/CIME/case.py --- a/utils/python/CIME/case.py +++ b/utils/python/CIME/case.py @@ -335,8 +335,6 @@ """ Update or create a valid_values entry for item and populate it """ - if item == "CASEROOT": - self._caseroot = value ...
{"golden_diff": "diff --git a/utils/python/CIME/case.py b/utils/python/CIME/case.py\n--- a/utils/python/CIME/case.py\n+++ b/utils/python/CIME/case.py\n@@ -335,8 +335,6 @@\n \"\"\"\n Update or create a valid_values entry for item and populate it\n \"\"\"\n- if item == \"CASEROOT\":\n- ...
gh_patches_debug_1360
rasdani/github-patches
git_diff
netbox-community__netbox-10296
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ChangeLog false positive for wwn ### NetBox version v3.3.2 ### Python version 3.8 ### Steps to Reproduce 1. Update a Interface 2. Display the generated change log. ### Expected Behavior Only change...
diff --git a/netbox/dcim/forms/models.py b/netbox/dcim/forms/models.py --- a/netbox/dcim/forms/models.py +++ b/netbox/dcim/forms/models.py @@ -1331,6 +1331,12 @@ label='VRF' ) + wwn = forms.CharField( + empty_value=None, + required=False, + label='WWN' + ) + fieldsets = (...
{"golden_diff": "diff --git a/netbox/dcim/forms/models.py b/netbox/dcim/forms/models.py\n--- a/netbox/dcim/forms/models.py\n+++ b/netbox/dcim/forms/models.py\n@@ -1331,6 +1331,12 @@\n label='VRF'\n )\n \n+ wwn = forms.CharField(\n+ empty_value=None,\n+ required=False,\n+ label='WWN'\...
gh_patches_debug_1361
rasdani/github-patches
git_diff
python-telegram-bot__python-telegram-bot-2017
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pickle Persistence Not Saving Bot_data[BUG] <!-- Thanks for reporting issues of python-telegram-bot! Use this template to notify us if you found a bug. To make it easier for us to help you please enter...
diff --git a/telegram/ext/picklepersistence.py b/telegram/ext/picklepersistence.py --- a/telegram/ext/picklepersistence.py +++ b/telegram/ext/picklepersistence.py @@ -277,7 +277,7 @@ """ Will save all data in memory to pickle file(s). """ if self.single_file: - if self.user_data or...
{"golden_diff": "diff --git a/telegram/ext/picklepersistence.py b/telegram/ext/picklepersistence.py\n--- a/telegram/ext/picklepersistence.py\n+++ b/telegram/ext/picklepersistence.py\n@@ -277,7 +277,7 @@\n \"\"\" Will save all data in memory to pickle file(s).\n \"\"\"\n if self.single_file:\n- ...
gh_patches_debug_1362
rasdani/github-patches
git_diff
scverse__scanpy-2913
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- scale max value only cuts high values ### Please make sure these conditions are met - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest ve...
diff --git a/scanpy/preprocessing/_simple.py b/scanpy/preprocessing/_simple.py --- a/scanpy/preprocessing/_simple.py +++ b/scanpy/preprocessing/_simple.py @@ -871,7 +871,10 @@ # do the clipping if max_value is not None: logg.debug(f"... clipping at max_value {max_value}") - X[X > max_value] = ...
{"golden_diff": "diff --git a/scanpy/preprocessing/_simple.py b/scanpy/preprocessing/_simple.py\n--- a/scanpy/preprocessing/_simple.py\n+++ b/scanpy/preprocessing/_simple.py\n@@ -871,7 +871,10 @@\n # do the clipping\n if max_value is not None:\n logg.debug(f\"... clipping at max_value {max_value}\")\n- ...
gh_patches_debug_1363
rasdani/github-patches
git_diff
DataBiosphere__toil-2777
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Problem with --batchSystem Slurm option I'm trying to run a CWL workflow on a Slurm queueing system. I am able to succesfully run a CWL workflow on a local machine (batchSystem singlemachine): ``` $ toil-cwl...
diff --git a/src/toil/batchSystems/slurm.py b/src/toil/batchSystems/slurm.py --- a/src/toil/batchSystems/slurm.py +++ b/src/toil/batchSystems/slurm.py @@ -170,7 +170,7 @@ def prepareSbatch(self, cpu, mem, jobID): # Returns the sbatch command line before the script to run - sbatch_lin...
{"golden_diff": "diff --git a/src/toil/batchSystems/slurm.py b/src/toil/batchSystems/slurm.py\n--- a/src/toil/batchSystems/slurm.py\n+++ b/src/toil/batchSystems/slurm.py\n@@ -170,7 +170,7 @@\n \n def prepareSbatch(self, cpu, mem, jobID):\n # Returns the sbatch command line before the script to run\...
gh_patches_debug_1364
rasdani/github-patches
git_diff
rucio__rucio-2761
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Dark Reaper rse_id crash Motivation ---------- The dark reaper raises an error in 1.20.3 Modification ------------ Fix the query in core/quarantined_replica.py -> list_rses() --- END ISSUE --- ...
diff --git a/lib/rucio/core/quarantined_replica.py b/lib/rucio/core/quarantined_replica.py --- a/lib/rucio/core/quarantined_replica.py +++ b/lib/rucio/core/quarantined_replica.py @@ -161,7 +161,7 @@ :returns: a list of RSEs. """ - query = session.query(models.RSE.rse_id).distinct(models.RSE.rse_id).\ + ...
{"golden_diff": "diff --git a/lib/rucio/core/quarantined_replica.py b/lib/rucio/core/quarantined_replica.py\n--- a/lib/rucio/core/quarantined_replica.py\n+++ b/lib/rucio/core/quarantined_replica.py\n@@ -161,7 +161,7 @@\n \n :returns: a list of RSEs.\n \"\"\"\n- query = session.query(models.RSE.rse_id).distin...
gh_patches_debug_1365
rasdani/github-patches
git_diff
carltongibson__django-filter-402
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve docs on common pitfalls Referencing this [discussion](https://github.com/carltongibson/django-filter/issues/394#issuecomment-202942471), docs could better explain some common misunderstandings about f...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -240,3 +240,15 @@ # How to display URL addresses: 'footnote', 'no', or 'inline'. #texinfo_show_urls = 'footnote' + + +# see: +# https://github.com/snide/sphinx_rtd_theme#using-this-theme-locally-then-building-on-read-the-docs +on_rtd ...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -240,3 +240,15 @@\n \n # How to display URL addresses: 'footnote', 'no', or 'inline'.\n #texinfo_show_urls = 'footnote'\n+\n+\n+# see:\n+# https://github.com/snide/sphinx_rtd_theme#using-this-theme-locally-then-buildin...
gh_patches_debug_1366
rasdani/github-patches
git_diff
SeldonIO__MLServer-1171
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add OS constraint in PyPI Mention MLServer's OS constraints as metadata in `setup.py`, so that it becomes visible in pypi.org. ``` setup(..., classifiers=[ 'Operating System :: POSIX', ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -37,6 +37,7 @@ url="https://github.com/SeldonIO/MLServer.git", author="Seldon Technologies Ltd.", author_email="hello@seldon.io", + classifiers=["Operating System :: POSIX", "Operating System :: MacOS"], description="ML server", ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -37,6 +37,7 @@\n url=\"https://github.com/SeldonIO/MLServer.git\",\n author=\"Seldon Technologies Ltd.\",\n author_email=\"hello@seldon.io\",\n+ classifiers=[\"Operating System :: POSIX\", \"Operating System :: MacOS\"]...
gh_patches_debug_1367
rasdani/github-patches
git_diff
pymodbus-dev__pymodbus-2023
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Async client not working when sync client is. ### Versions - Python: 3.9.2 - OS: Raspbian 11 (Bullseye) - Pymodbus: 3.6.4 - Modbus Hardware (if used): Raspberry Pi 4B GPIO Pins 14,15 (using UART port) ...
diff --git a/pymodbus/framer/rtu_framer.py b/pymodbus/framer/rtu_framer.py --- a/pymodbus/framer/rtu_framer.py +++ b/pymodbus/framer/rtu_framer.py @@ -238,7 +238,8 @@ ) packet += struct.pack(">H", computeCRC(packet)) # Ensure that transaction is actually the slave id for serial comms - ...
{"golden_diff": "diff --git a/pymodbus/framer/rtu_framer.py b/pymodbus/framer/rtu_framer.py\n--- a/pymodbus/framer/rtu_framer.py\n+++ b/pymodbus/framer/rtu_framer.py\n@@ -238,7 +238,8 @@\n )\n packet += struct.pack(\">H\", computeCRC(packet))\n # Ensure that transaction is actually the slave id ...
gh_patches_debug_1368
rasdani/github-patches
git_diff
chainer__chainer-781
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support numpy 1.10 numpy 1.10.0 is released on 2015/10/07 https://pypi.python.org/pypi/numpy/1.10.0 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files ma...
diff --git a/cupy/creation/ranges.py b/cupy/creation/ranges.py --- a/cupy/creation/ranges.py +++ b/cupy/creation/ranges.py @@ -85,9 +85,10 @@ if step == 0.0: # for underflow - _linspace_ufunc_underflow(start, stop - start, div, ret) + _linspace_ufunc_underflow(start, stop -...
{"golden_diff": "diff --git a/cupy/creation/ranges.py b/cupy/creation/ranges.py\n--- a/cupy/creation/ranges.py\n+++ b/cupy/creation/ranges.py\n@@ -85,9 +85,10 @@\n \n if step == 0.0:\n # for underflow\n- _linspace_ufunc_underflow(start, stop - start, div, ret)\n+ _linspace_ufun...
gh_patches_debug_1369
rasdani/github-patches
git_diff
redis__redis-py-1780
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Module installation fails due to missing dependency https://github.com/redis/redis-py/blob/039488d97ec545b37e903d1b791a88bac8f77973/redis/connection.py#L1 the deprecated distutils was replaced with the packa...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -26,9 +26,12 @@ author="Redis Inc.", author_email="oss@redis.com", python_requires=">=3.6", + setup_requires=[ + "packaging>=21.3", + ], install_requires=[ - "deprecated==1.2.3", - "packaging==21.3", + ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -26,9 +26,12 @@\n author=\"Redis Inc.\",\n author_email=\"oss@redis.com\",\n python_requires=\">=3.6\",\n+ setup_requires=[\n+ \"packaging>=21.3\",\n+ ],\n install_requires=[\n- \"deprecated==1.2.3\...
gh_patches_debug_1370
rasdani/github-patches
git_diff
encode__uvicorn-279
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Multipart form handling weird behavior ### Background Hey everyone! I'm writing an app that processes multipart form with file upload. When I serve it with `uvicorn` and run cURL against the endpoint I ...
diff --git a/uvicorn/protocols/http/httptools_impl.py b/uvicorn/protocols/http/httptools_impl.py --- a/uvicorn/protocols/http/httptools_impl.py +++ b/uvicorn/protocols/http/httptools_impl.py @@ -514,7 +514,7 @@ async def receive(self): if self.waiting_for_100_continue and not self.transport.is_closing()...
{"golden_diff": "diff --git a/uvicorn/protocols/http/httptools_impl.py b/uvicorn/protocols/http/httptools_impl.py\n--- a/uvicorn/protocols/http/httptools_impl.py\n+++ b/uvicorn/protocols/http/httptools_impl.py\n@@ -514,7 +514,7 @@\n \n async def receive(self):\n if self.waiting_for_100_continue and not self...
gh_patches_debug_1371
rasdani/github-patches
git_diff
getnikola__nikola-2770
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Get rid of "stories" everywhere The "stories" term is a remnant of my own config before I even started writing Nikola. In fact, the term comes from PyDS, a blogging software so old it doesn't even have a webs...
diff --git a/nikola/plugins/command/init.py b/nikola/plugins/command/init.py --- a/nikola/plugins/command/init.py +++ b/nikola/plugins/command/init.py @@ -78,9 +78,9 @@ ("posts/*.html", "posts", "post.tmpl"), )""", 'PAGES': """( - ("pages/*.rst", "pages", "story.tmpl"), - ("pages/*.txt", "pages", "stor...
{"golden_diff": "diff --git a/nikola/plugins/command/init.py b/nikola/plugins/command/init.py\n--- a/nikola/plugins/command/init.py\n+++ b/nikola/plugins/command/init.py\n@@ -78,9 +78,9 @@\n (\"posts/*.html\", \"posts\", \"post.tmpl\"),\n )\"\"\",\n 'PAGES': \"\"\"(\n- (\"pages/*.rst\", \"pages\", \"story.tm...
gh_patches_debug_1372
rasdani/github-patches
git_diff
sanic-org__sanic-1232
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Possible memory leak in websocket_handler function Hey! It seems that I found a possible memory leak in `websocket_handler` function inside `Sanic.websocket` https://github.com/channelcat/sanic/blob/master/sa...
diff --git a/sanic/app.py b/sanic/app.py --- a/sanic/app.py +++ b/sanic/app.py @@ -303,7 +303,8 @@ await fut except (CancelledError, ConnectionClosed): pass - self.websocket_tasks.remove(fut) + finally: + self.we...
{"golden_diff": "diff --git a/sanic/app.py b/sanic/app.py\n--- a/sanic/app.py\n+++ b/sanic/app.py\n@@ -303,7 +303,8 @@\n await fut\n except (CancelledError, ConnectionClosed):\n pass\n- self.websocket_tasks.remove(fut)\n+ finally:\n+ ...
gh_patches_debug_1373
rasdani/github-patches
git_diff
django-cms__django-filer-1079
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- django-mptt<0.9 Is there any good reason to limit django-mptt to `<0.9`? --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FIL...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ install_requires=( 'Django>=1.8,<1.11.999', # Django is known to use rc versions 'easy-thumbnails>=2,<3.0', - 'django-mptt>=0.6,<0.9', # the exact version depends on Django + 'django-mptt>=0.6,<0.10',...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -28,7 +28,7 @@\n install_requires=(\n 'Django>=1.8,<1.11.999', # Django is known to use rc versions\n 'easy-thumbnails>=2,<3.0',\n- 'django-mptt>=0.6,<0.9', # the exact version depends on Django\n+ ...
gh_patches_debug_1374
rasdani/github-patches
git_diff
bentoml__BentoML-822
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add support for Alpine based docker image **Is your feature request related to a problem? Please describe.** Allow users to use `bentoml/model-server:0.7.8-alpine` as the base image, which is currently def...
diff --git a/bentoml/saved_bundle/bundler.py b/bentoml/saved_bundle/bundler.py --- a/bentoml/saved_bundle/bundler.py +++ b/bentoml/saved_bundle/bundler.py @@ -135,6 +135,7 @@ f.write(MANIFEST_IN_TEMPLATE.format(service_name=bento_service.name)) # write Dockerfile + logger.debug("Using Docker Base Ima...
{"golden_diff": "diff --git a/bentoml/saved_bundle/bundler.py b/bentoml/saved_bundle/bundler.py\n--- a/bentoml/saved_bundle/bundler.py\n+++ b/bentoml/saved_bundle/bundler.py\n@@ -135,6 +135,7 @@\n f.write(MANIFEST_IN_TEMPLATE.format(service_name=bento_service.name))\n \n # write Dockerfile\n+ logger.debu...
gh_patches_debug_1375
rasdani/github-patches
git_diff
pypa__pip-1855
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pip fail after upgrade to 1.5.5 ``` $ pip install --upgrade pip Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-1.5.5-py2.py3-none-any.whl#md5=03a932d6f82a3887d8de1cdb837c87e...
diff --git a/pip/wheel.py b/pip/wheel.py --- a/pip/wheel.py +++ b/pip/wheel.py @@ -242,6 +242,10 @@ maker = ScriptMaker(None, scheme['scripts']) + # Ensure old scripts are overwritten. + # See https://github.com/pypa/pip/issues/1800 + maker.clobber = True + # Ensure we don't generate any variants...
{"golden_diff": "diff --git a/pip/wheel.py b/pip/wheel.py\n--- a/pip/wheel.py\n+++ b/pip/wheel.py\n@@ -242,6 +242,10 @@\n \n maker = ScriptMaker(None, scheme['scripts'])\n \n+ # Ensure old scripts are overwritten.\n+ # See https://github.com/pypa/pip/issues/1800\n+ maker.clobber = True\n+\n # Ensure we...
gh_patches_debug_1376
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-3312
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider upsstore is broken During the global build at 2021-10-13-14-42-23, spider **upsstore** failed with **5176 features** and **5 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-10-13-14...
diff --git a/locations/spiders/upsstore.py b/locations/spiders/upsstore.py --- a/locations/spiders/upsstore.py +++ b/locations/spiders/upsstore.py @@ -43,6 +43,9 @@ return o.as_opening_hours() def parse_store(self, response): + if "Permanently Closed" in response.text: + return + ...
{"golden_diff": "diff --git a/locations/spiders/upsstore.py b/locations/spiders/upsstore.py\n--- a/locations/spiders/upsstore.py\n+++ b/locations/spiders/upsstore.py\n@@ -43,6 +43,9 @@\n return o.as_opening_hours()\n \n def parse_store(self, response):\n+ if \"Permanently Closed\" in response.text:\n...
gh_patches_debug_1377
rasdani/github-patches
git_diff
saulpw__visidata-509
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [html saver] Saving typed columns as html (int/vlen/bool) causes exception I tried to copy (yank) a couple of rows from the frequency sheet and it provided me the following error. I believe this is due to the...
diff --git a/visidata/loaders/html.py b/visidata/loaders/html.py --- a/visidata/loaders/html.py +++ b/visidata/loaders/html.py @@ -121,7 +121,7 @@ fp.write('<tr>') for col, val in typedvals.items(): fp.write('<td>') - fp.write(htm...
{"golden_diff": "diff --git a/visidata/loaders/html.py b/visidata/loaders/html.py\n--- a/visidata/loaders/html.py\n+++ b/visidata/loaders/html.py\n@@ -121,7 +121,7 @@\n fp.write('<tr>')\n for col, val in typedvals.items():\n fp.write('<td>')\n- ...
gh_patches_debug_1378
rasdani/github-patches
git_diff
great-expectations__great_expectations-3469
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of th...
diff --git a/great_expectations/expectations/metrics/multicolumn_map_metrics/select_column_values_unique_within_record.py b/great_expectations/expectations/metrics/multicolumn_map_metrics/select_column_values_unique_within_record.py --- a/great_expectations/expectations/metrics/multicolumn_map_metrics/select_column_val...
{"golden_diff": "diff --git a/great_expectations/expectations/metrics/multicolumn_map_metrics/select_column_values_unique_within_record.py b/great_expectations/expectations/metrics/multicolumn_map_metrics/select_column_values_unique_within_record.py\n--- a/great_expectations/expectations/metrics/multicolumn_map_metrics...
gh_patches_debug_1379
rasdani/github-patches
git_diff
docker__docker-py-1819
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Log message not replacing string format placeholder [This line](https://github.com/docker/docker-py/blob/e9fab1432b974ceaa888b371e382dfcf2f6556e4/docker/auth.py#L205) in the `parse_auth` function in `auth.py`...
diff --git a/docker/auth.py b/docker/auth.py --- a/docker/auth.py +++ b/docker/auth.py @@ -203,7 +203,7 @@ # https://github.com/docker/compose/issues/3265 log.debug( 'Auth data for {0} is absent. Client might be using a ' - 'credentials store instead.' + ...
{"golden_diff": "diff --git a/docker/auth.py b/docker/auth.py\n--- a/docker/auth.py\n+++ b/docker/auth.py\n@@ -203,7 +203,7 @@\n # https://github.com/docker/compose/issues/3265\n log.debug(\n 'Auth data for {0} is absent. Client might be using a '\n- 'credentials s...
gh_patches_debug_1380
rasdani/github-patches
git_diff
LMFDB__lmfdb-1751
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- alpha / a mixup in q-expansions As reported via the bug tracker: "Not at all a serious problem, but a curious issue: When looking at Fourier expansions of modular forms with coefficients in a number field, ...
diff --git a/lmfdb/modular_forms/elliptic_modular_forms/views/emf_main.py b/lmfdb/modular_forms/elliptic_modular_forms/views/emf_main.py --- a/lmfdb/modular_forms/elliptic_modular_forms/views/emf_main.py +++ b/lmfdb/modular_forms/elliptic_modular_forms/views/emf_main.py @@ -220,7 +220,7 @@ if not latex: ...
{"golden_diff": "diff --git a/lmfdb/modular_forms/elliptic_modular_forms/views/emf_main.py b/lmfdb/modular_forms/elliptic_modular_forms/views/emf_main.py\n--- a/lmfdb/modular_forms/elliptic_modular_forms/views/emf_main.py\n+++ b/lmfdb/modular_forms/elliptic_modular_forms/views/emf_main.py\n@@ -220,7 +220,7 @@\n ...
gh_patches_debug_1381
rasdani/github-patches
git_diff
getsentry__sentry-17425
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Event migration 9.1.2 -> 10 <!-- Do you want to ask a question? Are you looking for support? The Sentry message board is the best place for getting support: https://forum.sentry.io --> ## Important De...
diff --git a/src/sentry/migrations/0024_auto_20191230_2052.py b/src/sentry/migrations/0024_auto_20191230_2052.py --- a/src/sentry/migrations/0024_auto_20191230_2052.py +++ b/src/sentry/migrations/0024_auto_20191230_2052.py @@ -86,6 +86,8 @@ is_regression=False, is_new_group_environment...
{"golden_diff": "diff --git a/src/sentry/migrations/0024_auto_20191230_2052.py b/src/sentry/migrations/0024_auto_20191230_2052.py\n--- a/src/sentry/migrations/0024_auto_20191230_2052.py\n+++ b/src/sentry/migrations/0024_auto_20191230_2052.py\n@@ -86,6 +86,8 @@\n is_regression=False,\n is...
gh_patches_debug_1382
rasdani/github-patches
git_diff
Lightning-Universe__lightning-flash-1509
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Semantic Segmentation target masks broken >0.7.5 ## 🐛 Bug The switch to albumentation in newer releases of lightning-flash seem to have broken transformation of segmentation targets. This is what I exp...
diff --git a/src/flash/image/segmentation/input.py b/src/flash/image/segmentation/input.py --- a/src/flash/image/segmentation/input.py +++ b/src/flash/image/segmentation/input.py @@ -94,7 +94,7 @@ def load_sample(self, sample: Dict[str, Any]) -> Dict[str, Any]: if DataKeys.TARGET in sample: - ...
{"golden_diff": "diff --git a/src/flash/image/segmentation/input.py b/src/flash/image/segmentation/input.py\n--- a/src/flash/image/segmentation/input.py\n+++ b/src/flash/image/segmentation/input.py\n@@ -94,7 +94,7 @@\n \n def load_sample(self, sample: Dict[str, Any]) -> Dict[str, Any]:\n if DataKeys.TARGET ...
gh_patches_debug_1383
rasdani/github-patches
git_diff
conan-io__conan-center-index-5412
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] all: "Access is denied" in os.rename() on Windows ### Package and Environment Details (include every applicable attribute) * Package Name/Version: **almost all packages affected** * Operating ...
diff --git a/recipes/bzip2/all/conanfile.py b/recipes/bzip2/all/conanfile.py --- a/recipes/bzip2/all/conanfile.py +++ b/recipes/bzip2/all/conanfile.py @@ -45,9 +45,7 @@ del self.settings.compiler.cppstd def source(self): - tools.get(**self.conan_data["sources"][self.version]) - folder_name...
{"golden_diff": "diff --git a/recipes/bzip2/all/conanfile.py b/recipes/bzip2/all/conanfile.py\n--- a/recipes/bzip2/all/conanfile.py\n+++ b/recipes/bzip2/all/conanfile.py\n@@ -45,9 +45,7 @@\n del self.settings.compiler.cppstd\n \n def source(self):\n- tools.get(**self.conan_data[\"sources\"][self.vers...
gh_patches_debug_1384
rasdani/github-patches
git_diff
gammapy__gammapy-3911
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- string representation of various Maker classes may cause a TypeError This was tested against Gammapy 0.19 and the development version. In some cases, printing (or using the string representation in another...
diff --git a/gammapy/makers/core.py b/gammapy/makers/core.py --- a/gammapy/makers/core.py +++ b/gammapy/makers/core.py @@ -26,9 +26,9 @@ max_len = np.max([len(_) for _ in names]) + 1 for name in names: - value = getattr(self, name, "not available") + value = getattr(self, name,...
{"golden_diff": "diff --git a/gammapy/makers/core.py b/gammapy/makers/core.py\n--- a/gammapy/makers/core.py\n+++ b/gammapy/makers/core.py\n@@ -26,9 +26,9 @@\n max_len = np.max([len(_) for _ in names]) + 1\n \n for name in names:\n- value = getattr(self, name, \"not available\")\n+ ...
gh_patches_debug_1385
rasdani/github-patches
git_diff
zulip__zulip-8805
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Errors when running `manage.py makemessages` I get these errors in my local development environment: ``` (zulip-py3-venv) tabbott@zaset:~/zulip$ ./manage.py makemessages UnicodeDecodeError: skipped file ...
diff --git a/zerver/management/commands/makemessages.py b/zerver/management/commands/makemessages.py --- a/zerver/management/commands/makemessages.py +++ b/zerver/management/commands/makemessages.py @@ -133,6 +133,7 @@ try: ignore_patterns = options.get('ignore_patterns', []) ignore_p...
{"golden_diff": "diff --git a/zerver/management/commands/makemessages.py b/zerver/management/commands/makemessages.py\n--- a/zerver/management/commands/makemessages.py\n+++ b/zerver/management/commands/makemessages.py\n@@ -133,6 +133,7 @@\n try:\n ignore_patterns = options.get('ignore_patterns', [])...
gh_patches_debug_1386
rasdani/github-patches
git_diff
internetarchive__openlibrary-5752
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Open Library login issue after visiting google <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> If http referer, Logging in erroneously redirects away ...
diff --git a/openlibrary/plugins/upstream/account.py b/openlibrary/plugins/upstream/account.py --- a/openlibrary/plugins/upstream/account.py +++ b/openlibrary/plugins/upstream/account.py @@ -318,8 +318,8 @@ def GET(self): referer = web.ctx.env.get('HTTP_REFERER', '/') - # Don't set referer on use...
{"golden_diff": "diff --git a/openlibrary/plugins/upstream/account.py b/openlibrary/plugins/upstream/account.py\n--- a/openlibrary/plugins/upstream/account.py\n+++ b/openlibrary/plugins/upstream/account.py\n@@ -318,8 +318,8 @@\n \n def GET(self):\n referer = web.ctx.env.get('HTTP_REFERER', '/')\n- # ...
gh_patches_debug_1387
rasdani/github-patches
git_diff
holoviz__panel-5564
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Extensions with no `cdn_url` cause `pn.extension` to fail #### ALL software version info ``` panel==1.2.3 bokeh==3.2.2 jupyterlab==4.0.6 jupyterlab-pygments==0.2.2 jupyterlab-widgets==3.0.3 jupyterla...
diff --git a/panel/io/resources.py b/panel/io/resources.py --- a/panel/io/resources.py +++ b/panel/io/resources.py @@ -372,7 +372,7 @@ extensions = _bundle_extensions(None, js_resources) if reloading: extensions = [ - ext for ext in extensions if not ext.cdn_url.startswith('https://unpkg.c...
{"golden_diff": "diff --git a/panel/io/resources.py b/panel/io/resources.py\n--- a/panel/io/resources.py\n+++ b/panel/io/resources.py\n@@ -372,7 +372,7 @@\n extensions = _bundle_extensions(None, js_resources)\n if reloading:\n extensions = [\n- ext for ext in extensions if not ext.cdn_url.sta...
gh_patches_debug_1388
rasdani/github-patches
git_diff
saleor__saleor-3981
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Catch all exceptions when decoding JWT token in TokenVerify mutation Currently, `TokenVerify` mutation returns an error if the token is malformed or is created with the different secret key. Instead, it shoul...
diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.py --- a/saleor/graphql/core/mutations.py +++ b/saleor/graphql/core/mutations.py @@ -496,3 +496,10 @@ username_field = get_user_model().USERNAME_FIELD kwargs = {username_field: self.payload.get(username_field)} retu...
{"golden_diff": "diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.py\n--- a/saleor/graphql/core/mutations.py\n+++ b/saleor/graphql/core/mutations.py\n@@ -496,3 +496,10 @@\n username_field = get_user_model().USERNAME_FIELD\n kwargs = {username_field: self.payload.get(username...
gh_patches_debug_1389
rasdani/github-patches
git_diff
Project-MONAI__MONAI-828
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bug in GeneralizedWassersteinDiceLoss in **GeneralizedWassersteinDiceLoss** the forward() is missing : if not(target.type() in [torch.LongTensor, torch.cuda.LongTensor]): target = target.long...
diff --git a/monai/losses/dice.py b/monai/losses/dice.py --- a/monai/losses/dice.py +++ b/monai/losses/dice.py @@ -402,7 +402,7 @@ """ # Aggregate spatial dimensions flat_input = input.view(input.size(0), input.size(1), -1) - flat_target = target.view(target.size(0), -1) + flat_...
{"golden_diff": "diff --git a/monai/losses/dice.py b/monai/losses/dice.py\n--- a/monai/losses/dice.py\n+++ b/monai/losses/dice.py\n@@ -402,7 +402,7 @@\n \"\"\"\n # Aggregate spatial dimensions\n flat_input = input.view(input.size(0), input.size(1), -1)\n- flat_target = target.view(target....
gh_patches_debug_1390
rasdani/github-patches
git_diff
pypa__pipenv-5529
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Should `pipenv lock` be generating a marker of `null` when `extras` used? ### Issue description A `Pipfile.lock` is being generated with a `marker` of `null`. When being passed to other tools to parse that...
diff --git a/pipenv/utils/dependencies.py b/pipenv/utils/dependencies.py --- a/pipenv/utils/dependencies.py +++ b/pipenv/utils/dependencies.py @@ -234,7 +234,8 @@ else: try: pipfile_entry = translate_markers(pipfile_entry) - lockfile["markers"] = pipfile_entry.get("...
{"golden_diff": "diff --git a/pipenv/utils/dependencies.py b/pipenv/utils/dependencies.py\n--- a/pipenv/utils/dependencies.py\n+++ b/pipenv/utils/dependencies.py\n@@ -234,7 +234,8 @@\n else:\n try:\n pipfile_entry = translate_markers(pipfile_entry)\n- lockfile[\"marker...
gh_patches_debug_1391
rasdani/github-patches
git_diff
pypi__warehouse-434
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Redirect a slash-less URL to the slashed variant We have urls like `/project/foobar/`, if someone enters `/project/foobar` we should redirect that to `/project/foobar/`. --- END ISSUE --- Below are some co...
diff --git a/warehouse/config.py b/warehouse/config.py --- a/warehouse/config.py +++ b/warehouse/config.py @@ -124,6 +124,10 @@ }) config.add_tween("warehouse.config.content_security_policy_tween_factory") + # If a route matches with a slash appended to it, redirect to that route + # instead of return...
{"golden_diff": "diff --git a/warehouse/config.py b/warehouse/config.py\n--- a/warehouse/config.py\n+++ b/warehouse/config.py\n@@ -124,6 +124,10 @@\n })\n config.add_tween(\"warehouse.config.content_security_policy_tween_factory\")\n \n+ # If a route matches with a slash appended to it, redirect to that rout...
gh_patches_debug_1392
rasdani/github-patches
git_diff
scipy__scipy-5935
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- unicode vs. string comparison in scipy.stats.binned_statistic_dd I'm getting an error where `scipy.stats.binned_statistic_dd` isn't recognizing that the `statistic` parameter I'm passing is 'count' [when it d...
diff --git a/scipy/stats/_binned_statistic.py b/scipy/stats/_binned_statistic.py --- a/scipy/stats/_binned_statistic.py +++ b/scipy/stats/_binned_statistic.py @@ -466,7 +466,7 @@ Vdim, Vlen = values.shape # Make sure `values` match `sample` - if(statistic is not 'count' and Vlen != Dlen): + if(statist...
{"golden_diff": "diff --git a/scipy/stats/_binned_statistic.py b/scipy/stats/_binned_statistic.py\n--- a/scipy/stats/_binned_statistic.py\n+++ b/scipy/stats/_binned_statistic.py\n@@ -466,7 +466,7 @@\n Vdim, Vlen = values.shape\n \n # Make sure `values` match `sample`\n- if(statistic is not 'count' and Vlen !...
gh_patches_debug_1393
rasdani/github-patches
git_diff
pwr-Solaar__Solaar-629
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- K800 keyboard battery status unavailable. I am using the newest Manjaro x64. This is the `solaar show` command output: ``` [xxx@xxx-pc ~]$ solaar show Unifying Receiver Device path : /dev/hidraw0 ...
diff --git a/lib/logitech_receiver/descriptors.py b/lib/logitech_receiver/descriptors.py --- a/lib/logitech_receiver/descriptors.py +++ b/lib/logitech_receiver/descriptors.py @@ -215,6 +215,11 @@ _RS.hand_detection(), ], ) +_D('Wireless Illuminated Keyboard K800 new', codename='K800 new', protocol=4...
{"golden_diff": "diff --git a/lib/logitech_receiver/descriptors.py b/lib/logitech_receiver/descriptors.py\n--- a/lib/logitech_receiver/descriptors.py\n+++ b/lib/logitech_receiver/descriptors.py\n@@ -215,6 +215,11 @@\n \t\t\t\t\t\t\t_RS.hand_detection(),\n \t\t\t\t\t\t],\n \t\t\t\t)\n+_D('Wireless Illuminated Keyboard K...
gh_patches_debug_1394
rasdani/github-patches
git_diff
Textualize__textual-2654
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Docs for `ProgressBar.percentage` talk about a `ProgressBar.Started` message that doesn't exist Likely a docstring hangover from the evolution of `ProgressBar`? Ping @rodrigogiraoserrao for obvious reasons...
diff --git a/src/textual/widgets/_progress_bar.py b/src/textual/widgets/_progress_bar.py --- a/src/textual/widgets/_progress_bar.py +++ b/src/textual/widgets/_progress_bar.py @@ -281,9 +281,6 @@ The percentage is a value between 0 and 1 and the returned value is only `None` if the total progress of the bar ...
{"golden_diff": "diff --git a/src/textual/widgets/_progress_bar.py b/src/textual/widgets/_progress_bar.py\n--- a/src/textual/widgets/_progress_bar.py\n+++ b/src/textual/widgets/_progress_bar.py\n@@ -281,9 +281,6 @@\n \n The percentage is a value between 0 and 1 and the returned value is only\n `None` if the tot...
gh_patches_debug_1395
rasdani/github-patches
git_diff
voxel51__fiftyone-1063
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] APP non-JavaScript MIME type of "text/plain" ### System information - **OS Platform and Distribution**: Windows 10 Pro 10.0.18362.239 - **FiftyOne installed from (pip or source)**: pip - **F...
diff --git a/fiftyone/server/main.py b/fiftyone/server/main.py --- a/fiftyone/server/main.py +++ b/fiftyone/server/main.py @@ -1398,6 +1398,12 @@ self.set_header("content-length", self.get_content_size()) self.set_header("x-colab-notebook-cache-control", "no-cache") + def get_content_type(self): ...
{"golden_diff": "diff --git a/fiftyone/server/main.py b/fiftyone/server/main.py\n--- a/fiftyone/server/main.py\n+++ b/fiftyone/server/main.py\n@@ -1398,6 +1398,12 @@\n self.set_header(\"content-length\", self.get_content_size())\n self.set_header(\"x-colab-notebook-cache-control\", \"no-cache\")\n \n+ ...
gh_patches_debug_1396
rasdani/github-patches
git_diff
holoviz__panel-5608
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve error on invalid serve URL The following simple app: ```python import panel as pn pn.extension() pn.serve({"/spam/alot/": "Spam!"}) ``` fails like this: ``` Launching server at http://loca...
diff --git a/panel/io/server.py b/panel/io/server.py --- a/panel/io/server.py +++ b/panel/io/server.py @@ -1080,6 +1080,8 @@ if isinstance(panel, dict): apps = {} for slug, app in panel.items(): + if slug.endswith('/') and not slug == '/': + raise ValueError(f"Invalid UR...
{"golden_diff": "diff --git a/panel/io/server.py b/panel/io/server.py\n--- a/panel/io/server.py\n+++ b/panel/io/server.py\n@@ -1080,6 +1080,8 @@\n if isinstance(panel, dict):\n apps = {}\n for slug, app in panel.items():\n+ if slug.endswith('/') and not slug == '/':\n+ rais...
gh_patches_debug_1397
rasdani/github-patches
git_diff
wagtail__wagtail-11226
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- When WAGTAILIMAGES_FEATURE_DETECTION_ENABLED = True, upload of svg files gives an error Uploading svg-images fails when WAGTAILIMAGES_FEATURE_DETECTION_ENABLED = True. We get an AttributeError at /admin/i...
diff --git a/wagtail/images/models.py b/wagtail/images/models.py --- a/wagtail/images/models.py +++ b/wagtail/images/models.py @@ -377,6 +377,11 @@ self.focal_point_height = None def get_suggested_focal_point(self): + if self.is_svg(): + # We can't run feature detection on SVGs, an...
{"golden_diff": "diff --git a/wagtail/images/models.py b/wagtail/images/models.py\n--- a/wagtail/images/models.py\n+++ b/wagtail/images/models.py\n@@ -377,6 +377,11 @@\n self.focal_point_height = None\n \n def get_suggested_focal_point(self):\n+ if self.is_svg():\n+ # We can't run feat...
gh_patches_debug_1398
rasdani/github-patches
git_diff
Textualize__textual-2690
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Setting `Select.value` in `on_mount` for a `Select` in a container raises an exception Initially stemming from [a question on Discord](https://discord.com/channels/1026214085173461072/1033754296224841768/1111...
diff --git a/src/textual/widgets/_select.py b/src/textual/widgets/_select.py --- a/src/textual/widgets/_select.py +++ b/src/textual/widgets/_select.py @@ -273,6 +273,7 @@ self.prompt = prompt self._initial_options = list(options) self._value: SelectType | None = value + self._options =...
{"golden_diff": "diff --git a/src/textual/widgets/_select.py b/src/textual/widgets/_select.py\n--- a/src/textual/widgets/_select.py\n+++ b/src/textual/widgets/_select.py\n@@ -273,6 +273,7 @@\n self.prompt = prompt\n self._initial_options = list(options)\n self._value: SelectType | None = value\n...
gh_patches_debug_1399
rasdani/github-patches
git_diff
cookiecutter__cookiecutter-django-4995
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add `compose` to the names of docker compose files ## Description `local.yml`, `production.yml`, and `docs.yml` should be renamed something with "compose" in it: I propose `docker-compose.*` ## Rational...
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -78,7 +78,11 @@ shutil.rmtree(".devcontainer") shutil.rmtree("compose") - file_names = ["local.yml", "production.yml", ".dockerignore"] + file_names = [ + "docke...
{"golden_diff": "diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py\n--- a/hooks/post_gen_project.py\n+++ b/hooks/post_gen_project.py\n@@ -78,7 +78,11 @@\n shutil.rmtree(\".devcontainer\")\n shutil.rmtree(\"compose\")\n \n- file_names = [\"local.yml\", \"production.yml\", \".dockerignore\"]\n...