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_1100
rasdani/github-patches
git_diff
ultrabug__py3status-2023
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Importing module from entry_point doesn't work the same as importing from .i3/py3status/ I've written a small http monitoring module that I want to call multiple times. This works if I put the module in `~/.i...
diff --git a/py3status/core.py b/py3status/core.py --- a/py3status/core.py +++ b/py3status/core.py @@ -505,7 +505,7 @@ continue try: instance = None - payload = user_modules.get(module) + payload = user_modules.get(module.split(" ")[0]) ...
{"golden_diff": "diff --git a/py3status/core.py b/py3status/core.py\n--- a/py3status/core.py\n+++ b/py3status/core.py\n@@ -505,7 +505,7 @@\n continue\n try:\n instance = None\n- payload = user_modules.get(module)\n+ payload = user_modules.get(mod...
gh_patches_debug_1101
rasdani/github-patches
git_diff
streamlink__streamlink-4763
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plugins.huya: As of today, Huya plugin has been broken ### Checklist - [X] This is a plugin issue and not a different kind of issue - [X] [I have read the contribution guidelines](https://github.com/streamli...
diff --git a/src/streamlink/plugins/huya.py b/src/streamlink/plugins/huya.py --- a/src/streamlink/plugins/huya.py +++ b/src/streamlink/plugins/huya.py @@ -54,7 +54,7 @@ { "data": [{ "gameLiveInfo": { - "liveId": int, + ...
{"golden_diff": "diff --git a/src/streamlink/plugins/huya.py b/src/streamlink/plugins/huya.py\n--- a/src/streamlink/plugins/huya.py\n+++ b/src/streamlink/plugins/huya.py\n@@ -54,7 +54,7 @@\n {\n \"data\": [{\n \"gameLiveInfo\": {\n- ...
gh_patches_debug_1102
rasdani/github-patches
git_diff
wagtail__wagtail-997
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Password reset request generates email with URL "example.com" Received: ``` Please follow the link below to reset your password http://example.com/admin/password_reset/confirm/NA/3x7-cfc1f37209f0c04d1ee1/ ``...
diff --git a/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py b/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py --- a/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py +++ b/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py @@ -134,6 +134,11 @@ return getattr(settings, 'WAGTAIL_USAGE_COUNT_E...
{"golden_diff": "diff --git a/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py b/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py\n--- a/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py\n+++ b/wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py\n@@ -134,6 +134,11 @@\n return getattr(settings, '...
gh_patches_debug_1103
rasdani/github-patches
git_diff
scverse__scanpy-2893
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Inconsistent array types from sc.get.aggregate ### 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 ...
diff --git a/scanpy/get/_aggregated.py b/scanpy/get/_aggregated.py --- a/scanpy/get/_aggregated.py +++ b/scanpy/get/_aggregated.py @@ -71,7 +71,7 @@ """ # pattern = self.data._with_data(np.broadcast_to(1, len(self.data.data))) # return self.indicator_matrix @ pattern - return self.indi...
{"golden_diff": "diff --git a/scanpy/get/_aggregated.py b/scanpy/get/_aggregated.py\n--- a/scanpy/get/_aggregated.py\n+++ b/scanpy/get/_aggregated.py\n@@ -71,7 +71,7 @@\n \"\"\"\n # pattern = self.data._with_data(np.broadcast_to(1, len(self.data.data)))\n # return self.indicator_matrix @ pattern...
gh_patches_debug_1104
rasdani/github-patches
git_diff
fossasia__open-event-server-4284
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Set attendees as required relationship to Orders API --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `app/a...
diff --git a/app/api/orders.py b/app/api/orders.py --- a/app/api/orders.py +++ b/app/api/orders.py @@ -113,7 +113,7 @@ class OrdersListPost(ResourceList): def before_post(self, args, kwargs, data=None): - require_relationship(['event'], data) + require_relationship(['event', 'attendees'], data) ...
{"golden_diff": "diff --git a/app/api/orders.py b/app/api/orders.py\n--- a/app/api/orders.py\n+++ b/app/api/orders.py\n@@ -113,7 +113,7 @@\n \n class OrdersListPost(ResourceList):\n def before_post(self, args, kwargs, data=None):\n- require_relationship(['event'], data)\n+ require_relationship(['event...
gh_patches_debug_1105
rasdani/github-patches
git_diff
wright-group__WrightTools-512
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- save method of collection throws ValueError I have a collection. I am attempting to save it, `col.save(filepath=p, overwrite=True)`. The following error is thrown: ``` File "<ipython-input-12-664d233e48...
diff --git a/WrightTools/_group.py b/WrightTools/_group.py --- a/WrightTools/_group.py +++ b/WrightTools/_group.py @@ -264,9 +264,6 @@ else: # copy self.file.copy(self.name, parent, name=name) - if 'item_names' in parent.attrs.keys(): - new = parent.item_name...
{"golden_diff": "diff --git a/WrightTools/_group.py b/WrightTools/_group.py\n--- a/WrightTools/_group.py\n+++ b/WrightTools/_group.py\n@@ -264,9 +264,6 @@\n else:\n # copy\n self.file.copy(self.name, parent, name=name)\n- if 'item_names' in parent.attrs.keys():\n- ...
gh_patches_debug_1106
rasdani/github-patches
git_diff
Textualize__textual-1837
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [CSS] Descendant type selectors can't have a numeric in their name Consider the following code: ```python from textual.app import App, ComposeResult from textual.containers import Vertical from t...
diff --git a/src/textual/css/tokenize.py b/src/textual/css/tokenize.py --- a/src/textual/css/tokenize.py +++ b/src/textual/css/tokenize.py @@ -75,7 +75,7 @@ selector_id=r"\#[a-zA-Z_\-][a-zA-Z0-9_\-]*", selector_class=r"\.[a-zA-Z_\-][a-zA-Z0-9_\-]*", selector_universal=r"\*", - selector=r"[a-zA-Z_\-]+"...
{"golden_diff": "diff --git a/src/textual/css/tokenize.py b/src/textual/css/tokenize.py\n--- a/src/textual/css/tokenize.py\n+++ b/src/textual/css/tokenize.py\n@@ -75,7 +75,7 @@\n selector_id=r\"\\#[a-zA-Z_\\-][a-zA-Z0-9_\\-]*\",\n selector_class=r\"\\.[a-zA-Z_\\-][a-zA-Z0-9_\\-]*\",\n selector_universal=r\"...
gh_patches_debug_1107
rasdani/github-patches
git_diff
obspy__obspy-2734
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "obspy.clients.seedlink.basic_client.Client" raises AttributeError when debug option is True I run the following code to get waveform data from my SeedLink server: ```python from obspy import UTCDateTime ...
diff --git a/obspy/clients/seedlink/basic_client.py b/obspy/clients/seedlink/basic_client.py --- a/obspy/clients/seedlink/basic_client.py +++ b/obspy/clients/seedlink/basic_client.py @@ -340,7 +340,8 @@ return False elif type_ == SLPacket.TYPE_SLINFT: if self.debug: - p...
{"golden_diff": "diff --git a/obspy/clients/seedlink/basic_client.py b/obspy/clients/seedlink/basic_client.py\n--- a/obspy/clients/seedlink/basic_client.py\n+++ b/obspy/clients/seedlink/basic_client.py\n@@ -340,7 +340,8 @@\n return False\n elif type_ == SLPacket.TYPE_SLINFT:\n if self.de...
gh_patches_debug_1108
rasdani/github-patches
git_diff
python-poetry__poetry-4733
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incorrect requirements.txt formatting in poetry export The `requirements.txt` format needs to put a space in front of the semicolon that specifies the package and the pyversion and platform constraints. Rig...
diff --git a/poetry/utils/exporter.py b/poetry/utils/exporter.py --- a/poetry/utils/exporter.py +++ b/poetry/utils/exporter.py @@ -89,7 +89,7 @@ if ";" in requirement: markers = requirement.split(";", 1)[1].strip() if markers: - line += f...
{"golden_diff": "diff --git a/poetry/utils/exporter.py b/poetry/utils/exporter.py\n--- a/poetry/utils/exporter.py\n+++ b/poetry/utils/exporter.py\n@@ -89,7 +89,7 @@\n if \";\" in requirement:\n markers = requirement.split(\";\", 1)[1].strip()\n if markers:\n- ...
gh_patches_debug_1109
rasdani/github-patches
git_diff
lk-geimfari__mimesis-433
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix mypy issues There are several things to consider: 1. Fixing bugs like this one: https://travis-ci.org/lk-geimfari/mimesis/jobs/361128185#L600 2. Adding new options to `mypy` to make it stricter: https...
diff --git a/mimesis/providers/payment.py b/mimesis/providers/payment.py --- a/mimesis/providers/payment.py +++ b/mimesis/providers/payment.py @@ -119,7 +119,9 @@ while len(str_num) < length - 1: str_num += self.random.choice(string.digits) - groups = regex.search(str_num + luhn_checksum(...
{"golden_diff": "diff --git a/mimesis/providers/payment.py b/mimesis/providers/payment.py\n--- a/mimesis/providers/payment.py\n+++ b/mimesis/providers/payment.py\n@@ -119,7 +119,9 @@\n while len(str_num) < length - 1:\n str_num += self.random.choice(string.digits)\n \n- groups = regex.search(...
gh_patches_debug_1110
rasdani/github-patches
git_diff
scikit-image__scikit-image-6692
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- RAG does not correctly merge weights ## Description Hi there, I have a question about the example of merging RAG 1. I just wondering how does the parameters are passed to the identified function max_edge....
diff --git a/skimage/graph/_rag.py b/skimage/graph/_rag.py --- a/skimage/graph/_rag.py +++ b/skimage/graph/_rag.py @@ -207,7 +207,7 @@ self.add_node(new) for neighbor in neighbors: - data = weight_func(self, src, new, neighbor, *extra_arguments, + data = weight_func(self, s...
{"golden_diff": "diff --git a/skimage/graph/_rag.py b/skimage/graph/_rag.py\n--- a/skimage/graph/_rag.py\n+++ b/skimage/graph/_rag.py\n@@ -207,7 +207,7 @@\n self.add_node(new)\n \n for neighbor in neighbors:\n- data = weight_func(self, src, new, neighbor, *extra_arguments,\n+ d...
gh_patches_debug_1111
rasdani/github-patches
git_diff
gratipay__gratipay.com-4197
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 403 clicking "fix credit card" in email when not logged in My credit card expired and I got the email reminding me to fix payment info. I clicked the "fix credit card" button in the email and was taken to a 4...
diff --git a/gratipay/utils/__init__.py b/gratipay/utils/__init__.py --- a/gratipay/utils/__init__.py +++ b/gratipay/utils/__init__.py @@ -69,7 +69,7 @@ if restrict: if user.ANON: - raise Response(403, _("You need to log in to access this page.")) + raise Response(401, _("You need ...
{"golden_diff": "diff --git a/gratipay/utils/__init__.py b/gratipay/utils/__init__.py\n--- a/gratipay/utils/__init__.py\n+++ b/gratipay/utils/__init__.py\n@@ -69,7 +69,7 @@\n \n if restrict:\n if user.ANON:\n- raise Response(403, _(\"You need to log in to access this page.\"))\n+ raise...
gh_patches_debug_1112
rasdani/github-patches
git_diff
vyperlang__vyper-2526
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- vyper.exceptions.TypeCheckFailure: pack_arguments did not return a value ### Version Information * vyper Version (output of `vyper --version`): 0.2.16 * OS: osx * Python Version (output of `python --vers...
diff --git a/vyper/old_codegen/external_call.py b/vyper/old_codegen/external_call.py --- a/vyper/old_codegen/external_call.py +++ b/vyper/old_codegen/external_call.py @@ -121,7 +121,7 @@ gas = "gas" # sanity check - assert len(contract_sig.args) == len(args_lll) + assert len(contract_sig.base_args...
{"golden_diff": "diff --git a/vyper/old_codegen/external_call.py b/vyper/old_codegen/external_call.py\n--- a/vyper/old_codegen/external_call.py\n+++ b/vyper/old_codegen/external_call.py\n@@ -121,7 +121,7 @@\n gas = \"gas\"\n \n # sanity check\n- assert len(contract_sig.args) == len(args_lll)\n+ assert...
gh_patches_debug_1113
rasdani/github-patches
git_diff
pulp__pulpcore-2248
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PulpImporter assumes tempfiles can always go to /tmp This issue is a copy of https://pulp.plan.io/issues/8610 , to allow us to backport the fix from core/3.17 into 14/15/16 correctly. **Version** core/3.1...
diff --git a/pulpcore/app/tasks/importer.py b/pulpcore/app/tasks/importer.py --- a/pulpcore/app/tasks/importer.py +++ b/pulpcore/app/tasks/importer.py @@ -378,7 +378,7 @@ current_task.refresh_from_db() CreatedResource.objects.create(content_object=task_group) - with tempfile.TemporaryDirectory() as temp_...
{"golden_diff": "diff --git a/pulpcore/app/tasks/importer.py b/pulpcore/app/tasks/importer.py\n--- a/pulpcore/app/tasks/importer.py\n+++ b/pulpcore/app/tasks/importer.py\n@@ -378,7 +378,7 @@\n current_task.refresh_from_db()\n CreatedResource.objects.create(content_object=task_group)\n \n- with tempfile.Tempo...
gh_patches_debug_1114
rasdani/github-patches
git_diff
numpy__numpy-8801
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- np.hstack([ ]) throws IndexError instead of ValueError Calling `np.hstack([ ])` throws an `IndexError`. It takes a bit more work to find out the root cause of the error, ie: the empty list. ``` >>> import n...
diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py --- a/numpy/core/shape_base.py +++ b/numpy/core/shape_base.py @@ -283,7 +283,7 @@ """ arrs = [atleast_1d(_m) for _m in tup] # As a special case, dimension 0 of 1-dimensional arrays is "horizontal" - if arrs[0].ndim == 1: + if arrs and...
{"golden_diff": "diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py\n--- a/numpy/core/shape_base.py\n+++ b/numpy/core/shape_base.py\n@@ -283,7 +283,7 @@\n \"\"\"\n arrs = [atleast_1d(_m) for _m in tup]\n # As a special case, dimension 0 of 1-dimensional arrays is \"horizontal\"\n- if arrs[0...
gh_patches_debug_1115
rasdani/github-patches
git_diff
scikit-hep__awkward-1822
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add statistics tracker to the new website ### Which documentation? Tutorials site ### What needs to be documented? Stefan gave us a `data-domain` for Plausible; we should add this text ```html <script ...
diff --git a/docs-sphinx/conf.py b/docs-sphinx/conf.py --- a/docs-sphinx/conf.py +++ b/docs-sphinx/conf.py @@ -89,6 +89,10 @@ "url": "https://github.com/scikit-hep/awkward/releases", }, ], + "analytics": { + "plausible_analytics_domain": "awkward-array.org", + "plausible_anal...
{"golden_diff": "diff --git a/docs-sphinx/conf.py b/docs-sphinx/conf.py\n--- a/docs-sphinx/conf.py\n+++ b/docs-sphinx/conf.py\n@@ -89,6 +89,10 @@\n \"url\": \"https://github.com/scikit-hep/awkward/releases\",\n },\n ],\n+ \"analytics\": {\n+ \"plausible_analytics_domain\": \"awkward-ar...
gh_patches_debug_1116
rasdani/github-patches
git_diff
horovod__horovod-2121
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error in computing gradients when using allgather **Environment:** 1. Framework: TensorFlow 2. Framework version: 2.0 3. Horovod version: 0.18.2 I am trying to get the median of a tensor computed acros...
diff --git a/horovod/tensorflow/mpi_ops.py b/horovod/tensorflow/mpi_ops.py --- a/horovod/tensorflow/mpi_ops.py +++ b/horovod/tensorflow/mpi_ops.py @@ -152,8 +152,8 @@ with tf.device('/cpu:0'): # Keep the tensor of split sizes on CPU. x = op.inputs[0] - d0 = x.get_shape().as_list()[0] - ...
{"golden_diff": "diff --git a/horovod/tensorflow/mpi_ops.py b/horovod/tensorflow/mpi_ops.py\n--- a/horovod/tensorflow/mpi_ops.py\n+++ b/horovod/tensorflow/mpi_ops.py\n@@ -152,8 +152,8 @@\n with tf.device('/cpu:0'):\n # Keep the tensor of split sizes on CPU.\n x = op.inputs[0]\n- d0 = x.get_sh...
gh_patches_debug_1117
rasdani/github-patches
git_diff
Rapptz__discord.py-9380
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Piped Audio Input Ends Prematurely ### Summary Piped video/audio input from sources like `youtube-dl` does not terminate the pipe stream correctly, often cutting off the last bit of the stream. ### Repr...
diff --git a/discord/player.py b/discord/player.py --- a/discord/player.py +++ b/discord/player.py @@ -210,7 +210,8 @@ # arbitrarily large read size data = source.read(8192) if not data: - self._process.terminate() + if self._stdin is not None: + ...
{"golden_diff": "diff --git a/discord/player.py b/discord/player.py\n--- a/discord/player.py\n+++ b/discord/player.py\n@@ -210,7 +210,8 @@\n # arbitrarily large read size\n data = source.read(8192)\n if not data:\n- self._process.terminate()\n+ if self._...
gh_patches_debug_1118
rasdani/github-patches
git_diff
librosa__librosa-1493
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Numpy array truthiness error during effects.split When loading a file and trying to run librosa.effects.split() on it, I get this error: ``` File "/usr/local/opt/python@3.8/Frameworks/Python.framework/V...
diff --git a/librosa/effects.py b/librosa/effects.py --- a/librosa/effects.py +++ b/librosa/effects.py @@ -445,6 +445,9 @@ # Aggregate everything but the time dimension if db.ndim > 1: db = np.apply_over_axes(aggregate, db, range(db.ndim - 1)) + # Squeeze out leading singleton dimensions here ...
{"golden_diff": "diff --git a/librosa/effects.py b/librosa/effects.py\n--- a/librosa/effects.py\n+++ b/librosa/effects.py\n@@ -445,6 +445,9 @@\n # Aggregate everything but the time dimension\n if db.ndim > 1:\n db = np.apply_over_axes(aggregate, db, range(db.ndim - 1))\n+ # Squeeze out leading si...
gh_patches_debug_1119
rasdani/github-patches
git_diff
pyca__cryptography-3995
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove docutils.conf - enable smart quotes for builders Blocked on: - [x] https://github.com/sphinx-doc/sphinx/pull/4110 - [x] Sphinx release - [x] https://github.com/sphinx-contrib/spelling/pull/2 ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -288,9 +288,9 @@ "doc8", "pyenchant >= 1.6.11", "readme_renderer >= 16.0", - "sphinx", + "sphinx >= 1.6.5", "sphinx_rtd_theme", - "sphinxcontrib-spelling", + ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -288,9 +288,9 @@\n \"doc8\",\n \"pyenchant >= 1.6.11\",\n \"readme_renderer >= 16.0\",\n- \"sphinx\",\n+ \"sphinx >= 1.6.5\",\n \"sphinx_rtd_theme\",\n- ...
gh_patches_debug_1120
rasdani/github-patches
git_diff
vaexio__vaex-2039
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG-REPORT] Cannot pass dictionaries into registered functions Thank you for reaching out and helping us improve Vaex! Before you submit a new Issue, please read through the [documentation](https://docs.v...
diff --git a/packages/vaex-core/vaex/expresso.py b/packages/vaex-core/vaex/expresso.py --- a/packages/vaex-core/vaex/expresso.py +++ b/packages/vaex-core/vaex/expresso.py @@ -366,7 +366,7 @@ key = self.visit(key) value = self.visit(value) parts.append(f'{key}: {value}') - r...
{"golden_diff": "diff --git a/packages/vaex-core/vaex/expresso.py b/packages/vaex-core/vaex/expresso.py\n--- a/packages/vaex-core/vaex/expresso.py\n+++ b/packages/vaex-core/vaex/expresso.py\n@@ -366,7 +366,7 @@\n key = self.visit(key)\n value = self.visit(value)\n parts.append(f'{key...
gh_patches_debug_1121
rasdani/github-patches
git_diff
chainer__chainer-4497
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Feature request: Variable.xp to get the array module of its data array I often need to call `chainer.cuda.get_array_module` for `Variable` objects. Like `Link.xp`, `Variable.xp` would be a useful property. -...
diff --git a/chainer/variable.py b/chainer/variable.py --- a/chainer/variable.py +++ b/chainer/variable.py @@ -487,6 +487,16 @@ def __str__(self): return variable_str(self) + @property + def xp(self): + """Array module for this variable. + + Depending on which of CPU/GPU this variabl...
{"golden_diff": "diff --git a/chainer/variable.py b/chainer/variable.py\n--- a/chainer/variable.py\n+++ b/chainer/variable.py\n@@ -487,6 +487,16 @@\n def __str__(self):\n return variable_str(self)\n \n+ @property\n+ def xp(self):\n+ \"\"\"Array module for this variable.\n+\n+ Depending o...
gh_patches_debug_1122
rasdani/github-patches
git_diff
SeldonIO__MLServer-945
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- MLServer is incompatible with latest release of FastAPI MLServer is incompatible with [latest release of FastAPI](https://github.com/tiangolo/fastapi/releases/tag/0.89.0), and installing any version of MLServ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -41,7 +41,8 @@ packages=find_packages(exclude=["tests", "tests.*"]), install_requires=[ "click", - "fastapi<=0.88.0", + # 0.89.0: https://github.com/tiangolo/fastapi/issues/5861 + "fastapi<=0.89.1, !=0.89.0", ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -41,7 +41,8 @@\n packages=find_packages(exclude=[\"tests\", \"tests.*\"]),\n install_requires=[\n \"click\",\n- \"fastapi<=0.88.0\",\n+ # 0.89.0: https://github.com/tiangolo/fastapi/issues/5861\n+ ...
gh_patches_debug_1123
rasdani/github-patches
git_diff
pytorch__text-193
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Side effect in Vocab __init__ The constructor of Vocab accumulates input data in its `specials` argument/variable and pollute the input argument `counter`. The constructed object is also wrong because of thi...
diff --git a/torchtext/vocab.py b/torchtext/vocab.py --- a/torchtext/vocab.py +++ b/torchtext/vocab.py @@ -45,7 +45,8 @@ or custom pretrained vectors (see Vocab.load_vectors); or a list of aforementioned vectors """ - self.freqs = counter.copy() + self.freqs = co...
{"golden_diff": "diff --git a/torchtext/vocab.py b/torchtext/vocab.py\n--- a/torchtext/vocab.py\n+++ b/torchtext/vocab.py\n@@ -45,7 +45,8 @@\n or custom pretrained vectors (see Vocab.load_vectors);\n or a list of aforementioned vectors\n \"\"\"\n- self.freqs = counter.copy...
gh_patches_debug_1124
rasdani/github-patches
git_diff
ManimCommunity__manim-3599
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sector.get_arc_center() return a reference but not a copy, cause rotate unexpected behavior. - ## Description of bug / unexpected behavior manim version: `0.18.0` ```python class SectorArcCenterRotate...
diff --git a/manim/mobject/geometry/arc.py b/manim/mobject/geometry/arc.py --- a/manim/mobject/geometry/arc.py +++ b/manim/mobject/geometry/arc.py @@ -389,7 +389,7 @@ # For a1 and a2 to lie at the same point arc radius # must be zero. Thus arc_center will also lie at # that point....
{"golden_diff": "diff --git a/manim/mobject/geometry/arc.py b/manim/mobject/geometry/arc.py\n--- a/manim/mobject/geometry/arc.py\n+++ b/manim/mobject/geometry/arc.py\n@@ -389,7 +389,7 @@\n # For a1 and a2 to lie at the same point arc radius\n # must be zero. Thus arc_center will also lie at\n ...
gh_patches_debug_1125
rasdani/github-patches
git_diff
keras-team__keras-core-474
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `weighted_metrics` not showing up next to training progress bar Tried porting this example (https://keras.io/examples/generative/gpt2_text_generation_with_kerasnlp/) to Keras Core. `accuracy` (passed as a `we...
diff --git a/keras_core/trainers/trainer.py b/keras_core/trainers/trainer.py --- a/keras_core/trainers/trainer.py +++ b/keras_core/trainers/trainer.py @@ -44,7 +44,7 @@ ) else: self._compile_loss = None - if metrics is not None: + if metrics is not None or weighted_metri...
{"golden_diff": "diff --git a/keras_core/trainers/trainer.py b/keras_core/trainers/trainer.py\n--- a/keras_core/trainers/trainer.py\n+++ b/keras_core/trainers/trainer.py\n@@ -44,7 +44,7 @@\n )\n else:\n self._compile_loss = None\n- if metrics is not None:\n+ if metrics is n...
gh_patches_debug_1126
rasdani/github-patches
git_diff
Netflix__lemur-61
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot edit owner with no associated role ``` 2015-08-26 20:33:36,751 ERROR: 'NoneType' object has no attribute 'name' [in /apps/lemur/lemur/common/utils.py:60] Traceback (most recent call last): File "/app...
diff --git a/lemur/certificates/views.py b/lemur/certificates/views.py --- a/lemur/certificates/views.py +++ b/lemur/certificates/views.py @@ -572,7 +572,8 @@ cert = service.get(certificate_id) role = role_service.get_by_name(cert.owner) - permission = UpdateCertificatePermission(certificate_...
{"golden_diff": "diff --git a/lemur/certificates/views.py b/lemur/certificates/views.py\n--- a/lemur/certificates/views.py\n+++ b/lemur/certificates/views.py\n@@ -572,7 +572,8 @@\n \n cert = service.get(certificate_id)\n role = role_service.get_by_name(cert.owner)\n- permission = UpdateCertificat...
gh_patches_debug_1127
rasdani/github-patches
git_diff
conda__conda-6784
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Conda DAND Udacity yaml file error snadar@ubuntu-desktop:~$ conda env create -f dand-env-linux.yaml Using Anaconda API: https://api.anaconda.org Fetching package metadata ........... Solving package specif...
diff --git a/conda_env/installers/pip.py b/conda_env/installers/pip.py --- a/conda_env/installers/pip.py +++ b/conda_env/installers/pip.py @@ -38,6 +38,8 @@ requirements.close() # pip command line... args, pip_version = pip_args(prefix) + if args is None: + return p...
{"golden_diff": "diff --git a/conda_env/installers/pip.py b/conda_env/installers/pip.py\n--- a/conda_env/installers/pip.py\n+++ b/conda_env/installers/pip.py\n@@ -38,6 +38,8 @@\n requirements.close()\n # pip command line...\n args, pip_version = pip_args(prefix)\n+ if args is None:\n+ ...
gh_patches_debug_1128
rasdani/github-patches
git_diff
sanic-org__sanic-1654
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The response.content_type is not add to headers in ASGI Perhaps the response.content_type is add to headers here. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of th...
diff --git a/sanic/asgi.py b/sanic/asgi.py --- a/sanic/asgi.py +++ b/sanic/asgi.py @@ -328,6 +328,11 @@ (b"content-length", str(len(response.body)).encode("latin-1")) ] + if "content-type" not in response.headers: + headers += [ + (b"content-type", str(re...
{"golden_diff": "diff --git a/sanic/asgi.py b/sanic/asgi.py\n--- a/sanic/asgi.py\n+++ b/sanic/asgi.py\n@@ -328,6 +328,11 @@\n (b\"content-length\", str(len(response.body)).encode(\"latin-1\"))\n ]\n \n+ if \"content-type\" not in response.headers:\n+ headers += [\n+ ...
gh_patches_debug_1129
rasdani/github-patches
git_diff
wright-group__WrightTools-576
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- remove_variable doesn't work if implied is False https://github.com/wright-group/WrightTools/blob/7803e4ae618b670c4f4d5811eddac9746fa045dd/WrightTools/data/_data.py#L938-L948 --- END ISSUE --- Below are som...
diff --git a/WrightTools/data/_data.py b/WrightTools/data/_data.py --- a/WrightTools/data/_data.py +++ b/WrightTools/data/_data.py @@ -940,6 +940,8 @@ for n in self.variable_names: if n.startswith(variable): removed.append(n) + else: + removed = [vari...
{"golden_diff": "diff --git a/WrightTools/data/_data.py b/WrightTools/data/_data.py\n--- a/WrightTools/data/_data.py\n+++ b/WrightTools/data/_data.py\n@@ -940,6 +940,8 @@\n for n in self.variable_names:\n if n.startswith(variable):\n removed.append(n)\n+ else:\n+ ...
gh_patches_debug_1130
rasdani/github-patches
git_diff
encode__starlette-88
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CORSMiddleware is sending an extra 'http.response.body' It seems that even with all tests passing and cors being successfully applied, CORSMiddleware still raises a runtime error. Code being tested: ```py...
diff --git a/starlette/middleware/cors.py b/starlette/middleware/cors.py --- a/starlette/middleware/cors.py +++ b/starlette/middleware/cors.py @@ -118,6 +118,7 @@ async def send(self, message, send=None, origin=None): if message["type"] != "http.response.start": await send(message) + ...
{"golden_diff": "diff --git a/starlette/middleware/cors.py b/starlette/middleware/cors.py\n--- a/starlette/middleware/cors.py\n+++ b/starlette/middleware/cors.py\n@@ -118,6 +118,7 @@\n async def send(self, message, send=None, origin=None):\n if message[\"type\"] != \"http.response.start\":\n awa...
gh_patches_debug_1131
rasdani/github-patches
git_diff
kserve__kserve-2835
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- No matches for kind \"HorizontalPodAutoscaler\" in version \"autoscaling/v2beta2\ /kind bug **What steps did you take and what happened:** Deploy kserve in raw mode on kubernetes 1.26 where autoscaling/v2...
diff --git a/hack/python-sdk/update_release_version_helper.py b/hack/python-sdk/update_release_version_helper.py --- a/hack/python-sdk/update_release_version_helper.py +++ b/hack/python-sdk/update_release_version_helper.py @@ -24,7 +24,6 @@ toml_files = [ "python/kserve/pyproject.toml", "python/aiffairness/p...
{"golden_diff": "diff --git a/hack/python-sdk/update_release_version_helper.py b/hack/python-sdk/update_release_version_helper.py\n--- a/hack/python-sdk/update_release_version_helper.py\n+++ b/hack/python-sdk/update_release_version_helper.py\n@@ -24,7 +24,6 @@\n toml_files = [\n \"python/kserve/pyproject.toml\",\n ...
gh_patches_debug_1132
rasdani/github-patches
git_diff
ckan__ckan-3962
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Package resources not included when installing from source in non-editable mode. Known affects: - CKAN 2.7.2; Python 2.7.14; Ubuntu 16.04 & 17.10; ``` $ virtualenv --version 15.1.0 $ virtua...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -216,6 +216,7 @@ keywords='data packaging component tool server', long_description=__long_description__, zip_safe=False, + include_package_data=True, packages=find_packages(exclude=['ez_setup']), namespace_packages=['ckanext',...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -216,6 +216,7 @@\n keywords='data packaging component tool server',\n long_description=__long_description__,\n zip_safe=False,\n+ include_package_data=True,\n packages=find_packages(exclude=['ez_setup']),\n name...
gh_patches_debug_1133
rasdani/github-patches
git_diff
librosa__librosa-1673
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Confused by example in mel_to_stft doc In the example for [mel_to_stft](https://librosa.org/doc/main/generated/librosa.feature.inverse.mel_to_stft.html) we have the following code: ``` y, sr = librosa.load(...
diff --git a/librosa/feature/inverse.py b/librosa/feature/inverse.py --- a/librosa/feature/inverse.py +++ b/librosa/feature/inverse.py @@ -75,7 +75,7 @@ Examples -------- >>> y, sr = librosa.load(librosa.ex('trumpet')) - >>> S = np.abs(librosa.stft(y)) + >>> S = librosa.util.abs2(librosa.stft(y)) ...
{"golden_diff": "diff --git a/librosa/feature/inverse.py b/librosa/feature/inverse.py\n--- a/librosa/feature/inverse.py\n+++ b/librosa/feature/inverse.py\n@@ -75,7 +75,7 @@\n Examples\n --------\n >>> y, sr = librosa.load(librosa.ex('trumpet'))\n- >>> S = np.abs(librosa.stft(y))\n+ >>> S = librosa.uti...
gh_patches_debug_1134
rasdani/github-patches
git_diff
docarray__docarray-60
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fix: fix tags type after pydantic model --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `docarray/document/...
diff --git a/docarray/document/pydantic_model.py b/docarray/document/pydantic_model.py --- a/docarray/document/pydantic_model.py +++ b/docarray/document/pydantic_model.py @@ -7,7 +7,8 @@ if TYPE_CHECKING: from ..types import ArrayType -_ProtoValueType = Optional[Union[str, bool, float]] +# this order must be pr...
{"golden_diff": "diff --git a/docarray/document/pydantic_model.py b/docarray/document/pydantic_model.py\n--- a/docarray/document/pydantic_model.py\n+++ b/docarray/document/pydantic_model.py\n@@ -7,7 +7,8 @@\n if TYPE_CHECKING:\n from ..types import ArrayType\n \n-_ProtoValueType = Optional[Union[str, bool, float]]\...
gh_patches_debug_1135
rasdani/github-patches
git_diff
Cog-Creators__Red-DiscordBot-2754
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [3.1.2][Core] Conflicting commands empty error message # Command bugs #### Command name `[p]load` #### What cog is this command from? Core #### What were you expecting to happen? When a cog ...
diff --git a/redbot/core/bot.py b/redbot/core/bot.py --- a/redbot/core/bot.py +++ b/redbot/core/bot.py @@ -262,7 +262,7 @@ except Exception as e: self._remove_module_references(lib.__name__) self._call_module_finalizers(lib, name) - raise errors.CogLoadError() from e + ...
{"golden_diff": "diff --git a/redbot/core/bot.py b/redbot/core/bot.py\n--- a/redbot/core/bot.py\n+++ b/redbot/core/bot.py\n@@ -262,7 +262,7 @@\n except Exception as e:\n self._remove_module_references(lib.__name__)\n self._call_module_finalizers(lib, name)\n- raise errors.CogL...
gh_patches_debug_1136
rasdani/github-patches
git_diff
googleapis__python-bigquery-587
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- loosen opentelemetry dependencies See Spanner PR: https://github.com/googleapis/python-spanner/pull/298 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -53,9 +53,9 @@ "bignumeric_type": ["pyarrow >= 3.0.0, < 4.0dev"], "tqdm": ["tqdm >= 4.7.4, <5.0.0dev"], "opentelemetry": [ - "opentelemetry-api==0.11b0", - "opentelemetry-sdk==0.11b0", - "opentelemetry-instrumentation=...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -53,9 +53,9 @@\n \"bignumeric_type\": [\"pyarrow >= 3.0.0, < 4.0dev\"],\n \"tqdm\": [\"tqdm >= 4.7.4, <5.0.0dev\"],\n \"opentelemetry\": [\n- \"opentelemetry-api==0.11b0\",\n- \"opentelemetry-sdk==0.11b0\",\n...
gh_patches_debug_1137
rasdani/github-patches
git_diff
django-cms__django-cms-3171
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug in plugin_rendering.py I'm currently facing an extremely weird problem where the publish button and content/structure mode switch is not shown in the toolbar - effectively rendering the whole CMS useless....
diff --git a/cms/plugin_rendering.py b/cms/plugin_rendering.py --- a/cms/plugin_rendering.py +++ b/cms/plugin_rendering.py @@ -97,7 +97,7 @@ context = context_to_copy context.push() request = context['request'] - if not hasattr(request, 'placeholder'): + if not hasattr(request, 'placeholders'): ...
{"golden_diff": "diff --git a/cms/plugin_rendering.py b/cms/plugin_rendering.py\n--- a/cms/plugin_rendering.py\n+++ b/cms/plugin_rendering.py\n@@ -97,7 +97,7 @@\n context = context_to_copy\n context.push()\n request = context['request']\n- if not hasattr(request, 'placeholder'):\n+ if not hasattr(requ...
gh_patches_debug_1138
rasdani/github-patches
git_diff
e-valuation__EvaP-1531
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Access denied on manager login Currently, after logging in, a manager is redirected to /staff/, but staff mode will not be active, so they will get a 403 access denied. @janno42 what behavior do we want he...
diff --git a/evap/evaluation/views.py b/evap/evaluation/views.py --- a/evap/evaluation/views.py +++ b/evap/evaluation/views.py @@ -74,6 +74,7 @@ # clean up our test cookie if request.session.test_cookie_worked(): request.session.delete_test_cookie() + return redirec...
{"golden_diff": "diff --git a/evap/evaluation/views.py b/evap/evaluation/views.py\n--- a/evap/evaluation/views.py\n+++ b/evap/evaluation/views.py\n@@ -74,6 +74,7 @@\n # clean up our test cookie\n if request.session.test_cookie_worked():\n request.session.delete_test_cookie()\n+ ...
gh_patches_debug_1139
rasdani/github-patches
git_diff
boto__boto-2521
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- glacier: tree_hash returned as bytes by compute_hashes_from_fileobj When uploading a file to glacier, `compute_hashes_from_fileobj` uses `bytes_to_hex` from `glacier.utils`. `bytes_to_hex`, in turn, uses `bi...
diff --git a/boto/auth.py b/boto/auth.py --- a/boto/auth.py +++ b/boto/auth.py @@ -317,6 +317,8 @@ for name, value in http_request.headers.items(): lname = name.lower() if lname.startswith('x-amz'): + if isinstance(value, bytes): + value = value.decod...
{"golden_diff": "diff --git a/boto/auth.py b/boto/auth.py\n--- a/boto/auth.py\n+++ b/boto/auth.py\n@@ -317,6 +317,8 @@\n for name, value in http_request.headers.items():\n lname = name.lower()\n if lname.startswith('x-amz'):\n+ if isinstance(value, bytes):\n+ ...
gh_patches_debug_1140
rasdani/github-patches
git_diff
litestar-org__litestar-1000
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: Viewing default schema then swagger schema results in error **Describe the bug** Viewing the standard `/schema` route and then viewing `/schema/swagger` results in an empty page. The console log on the ...
diff --git a/starlite/openapi/controller.py b/starlite/openapi/controller.py --- a/starlite/openapi/controller.py +++ b/starlite/openapi/controller.py @@ -303,7 +303,7 @@ """ schema = self.get_schema_from_request(request) # Note: Fix for Swagger rejection OpenAPI >=3.1 - if not self._d...
{"golden_diff": "diff --git a/starlite/openapi/controller.py b/starlite/openapi/controller.py\n--- a/starlite/openapi/controller.py\n+++ b/starlite/openapi/controller.py\n@@ -303,7 +303,7 @@\n \"\"\"\n schema = self.get_schema_from_request(request)\n # Note: Fix for Swagger rejection OpenAPI >=3...
gh_patches_debug_1141
rasdani/github-patches
git_diff
aio-libs__aiohttp-5780
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix missing references in docs **:wave: THIS IS A GOOD FIRST ISSUE** 🐞 **Describe the bug** <!-- A clear and concise description of what the bug is, on the next line. --> I noticed that the docs have s...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -351,7 +351,7 @@ # ------------------------------------------------------------------------- -# nitpicky = True +nitpicky = True nitpick_ignore = [ ("py:mod", "aiohttp"), # undocumented, no `.. currentmodule:: aiohttp` in docs...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -351,7 +351,7 @@\n \n \n # -------------------------------------------------------------------------\n-# nitpicky = True\n+nitpicky = True\n nitpick_ignore = [\n (\"py:mod\", \"aiohttp\"), # undocumented, no `.. c...
gh_patches_debug_1142
rasdani/github-patches
git_diff
Qiskit__qiskit-7972
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- qasm3 exporter wrong placement of `input` declaration ### Environment - **Qiskit Terra version**: 0.20.0 - **Python version**: 3.8.13 - **Operating system**: macOS Monterey 12.3.1 ### What is happen...
diff --git a/qiskit/qasm3/exporter.py b/qiskit/qasm3/exporter.py --- a/qiskit/qasm3/exporter.py +++ b/qiskit/qasm3/exporter.py @@ -532,9 +532,9 @@ return [ statement for source in ( - definitions, inputs, outputs, + defin...
{"golden_diff": "diff --git a/qiskit/qasm3/exporter.py b/qiskit/qasm3/exporter.py\n--- a/qiskit/qasm3/exporter.py\n+++ b/qiskit/qasm3/exporter.py\n@@ -532,9 +532,9 @@\n return [\n statement\n for source in (\n- definitions,\n inputs,\n outpu...
gh_patches_debug_1143
rasdani/github-patches
git_diff
celery__celery-6103
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Document and code are inconsistent about task_reject_on_worker_lost config <!-- Please fill this template entirely and do not erase parts of it. We reserve the right to close without a response bug reports...
diff --git a/celery/worker/request.py b/celery/worker/request.py --- a/celery/worker/request.py +++ b/celery/worker/request.py @@ -505,7 +505,7 @@ ) ack = self.task.acks_on_failure_or_timeout if reject: - requeue = not self.delivery_info.get('redelivered') + ...
{"golden_diff": "diff --git a/celery/worker/request.py b/celery/worker/request.py\n--- a/celery/worker/request.py\n+++ b/celery/worker/request.py\n@@ -505,7 +505,7 @@\n )\n ack = self.task.acks_on_failure_or_timeout\n if reject:\n- requeue = not self.delivery_info.get(...
gh_patches_debug_1144
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-4754
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve unexpected error message Many users are reporting / filling an issue in our issue tracker when this message is shown to them, which is logic because it's what the message says. > There was a proble...
diff --git a/readthedocs/doc_builder/exceptions.py b/readthedocs/doc_builder/exceptions.py --- a/readthedocs/doc_builder/exceptions.py +++ b/readthedocs/doc_builder/exceptions.py @@ -24,7 +24,9 @@ GENERIC_WITH_BUILD_ID = ugettext_noop( 'There was a problem with Read the Docs while building your document...
{"golden_diff": "diff --git a/readthedocs/doc_builder/exceptions.py b/readthedocs/doc_builder/exceptions.py\n--- a/readthedocs/doc_builder/exceptions.py\n+++ b/readthedocs/doc_builder/exceptions.py\n@@ -24,7 +24,9 @@\n \n GENERIC_WITH_BUILD_ID = ugettext_noop(\n 'There was a problem with Read the Docs while...
gh_patches_debug_1145
rasdani/github-patches
git_diff
pypa__pip-2227
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pip fails to install packages with local versions. `pip install apache_libcloud-0.16.0+clusterhq.0-py2.py3-none-any.whl` gives ``` python-traceback Exception: Traceback (most recent call last): File "/User...
diff --git a/pip/index.py b/pip/index.py --- a/pip/index.py +++ b/pip/index.py @@ -1098,6 +1098,7 @@ def filename(self): _, netloc, path, _, _ = urllib_parse.urlsplit(self.url) name = posixpath.basename(path.rstrip('/')) or netloc + name = urllib_parse.unquote(name) assert name, (...
{"golden_diff": "diff --git a/pip/index.py b/pip/index.py\n--- a/pip/index.py\n+++ b/pip/index.py\n@@ -1098,6 +1098,7 @@\n def filename(self):\n _, netloc, path, _, _ = urllib_parse.urlsplit(self.url)\n name = posixpath.basename(path.rstrip('/')) or netloc\n+ name = urllib_parse.unquote(name)...
gh_patches_debug_1146
rasdani/github-patches
git_diff
chainer__chainer-7561
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support ellipsis in `Array::At` and `__getitem__` Depends on #7559 because `py::ellipsis` is supported from v2.3.0. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of ...
diff --git a/chainerx/_fallback_workarounds.py b/chainerx/_fallback_workarounds.py --- a/chainerx/_fallback_workarounds.py +++ b/chainerx/_fallback_workarounds.py @@ -118,10 +118,8 @@ old_getitem = ndarray.__getitem__ def __getitem__(arr, key): - try: + if not isinstance(key, chainerx.ndarray)...
{"golden_diff": "diff --git a/chainerx/_fallback_workarounds.py b/chainerx/_fallback_workarounds.py\n--- a/chainerx/_fallback_workarounds.py\n+++ b/chainerx/_fallback_workarounds.py\n@@ -118,10 +118,8 @@\n old_getitem = ndarray.__getitem__\n \n def __getitem__(arr, key):\n- try:\n+ if not isinstan...
gh_patches_debug_1147
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-1711
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pathoc does not accept `:pa,f` to pause forever at end of message ##### Steps to reproduce the problem: `pathoc www.example.com 'get:/:pa,f'` ##### What is the expected behavior? Send request, but pause for...
diff --git a/pathod/language/writer.py b/pathod/language/writer.py --- a/pathod/language/writer.py +++ b/pathod/language/writer.py @@ -57,7 +57,9 @@ while actions: a = actions.pop() if a[1] == "pause": - time.sleep(a[2]) + time.sleep( + ...
{"golden_diff": "diff --git a/pathod/language/writer.py b/pathod/language/writer.py\n--- a/pathod/language/writer.py\n+++ b/pathod/language/writer.py\n@@ -57,7 +57,9 @@\n while actions:\n a = actions.pop()\n if a[1] == \"pause\":\n- time.sleep(a[2])\n+ time....
gh_patches_debug_1148
rasdani/github-patches
git_diff
pypa__pipenv-3431
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- --skip-lock throws validation error ### Issue description `--skip-lock` flag throws a validation error ### Expected result That I get the same successful behaviour as in 2018.11.26 . ### Actual re...
diff --git a/pipenv/project.py b/pipenv/project.py --- a/pipenv/project.py +++ b/pipenv/project.py @@ -780,7 +780,7 @@ return { "hash": {"sha256": self.calculate_pipfile_hash()}, "pipfile-spec": PIPFILE_SPEC_CURRENT, - "sources": sources, + "sources": [self.popul...
{"golden_diff": "diff --git a/pipenv/project.py b/pipenv/project.py\n--- a/pipenv/project.py\n+++ b/pipenv/project.py\n@@ -780,7 +780,7 @@\n return {\n \"hash\": {\"sha256\": self.calculate_pipfile_hash()},\n \"pipfile-spec\": PIPFILE_SPEC_CURRENT,\n- \"sources\": sources,\n+ ...
gh_patches_debug_1149
rasdani/github-patches
git_diff
hi-primus__optimus-872
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Json file exploration/profiling Unstructured data as JSON can not be explored as regular tabular data. I have been exploring using tree depth and count to highlight the user in which nodes could have importan...
diff --git a/optimus/engines/pandas/io/json.py b/optimus/engines/pandas/io/json.py --- a/optimus/engines/pandas/io/json.py +++ b/optimus/engines/pandas/io/json.py @@ -121,7 +121,7 @@ result.append((_flatten_json(i))) elif is_dict(value): for i, j in value.items(): - ...
{"golden_diff": "diff --git a/optimus/engines/pandas/io/json.py b/optimus/engines/pandas/io/json.py\n--- a/optimus/engines/pandas/io/json.py\n+++ b/optimus/engines/pandas/io/json.py\n@@ -121,7 +121,7 @@\n result.append((_flatten_json(i)))\n elif is_dict(value):\n for i, j in value.it...
gh_patches_debug_1150
rasdani/github-patches
git_diff
keras-team__keras-11960
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Suggesting keras.utils.*_utils packages should not be part of the official API In general, all `keras.utils.*_utils.*` functions and classes that are documented on keras.io are available directly in `keras.ut...
diff --git a/keras/utils/__init__.py b/keras/utils/__init__.py --- a/keras/utils/__init__.py +++ b/keras/utils/__init__.py @@ -21,6 +21,7 @@ from .layer_utils import convert_all_kernels_in_model from .layer_utils import get_source_inputs from .layer_utils import print_summary +from .vis_utils import model_to_dot fr...
{"golden_diff": "diff --git a/keras/utils/__init__.py b/keras/utils/__init__.py\n--- a/keras/utils/__init__.py\n+++ b/keras/utils/__init__.py\n@@ -21,6 +21,7 @@\n from .layer_utils import convert_all_kernels_in_model\n from .layer_utils import get_source_inputs\n from .layer_utils import print_summary\n+from .vis_utils...
gh_patches_debug_1151
rasdani/github-patches
git_diff
pyjanitor-devs__pyjanitor-1191
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [INF/CI] Add `--cov-append` for `pytest` <!-- Thank you for your PR! BEFORE YOU CONTINUE! Please add the appropriate three-letter abbreviation to your title. The abbreviations can be: - [DOC]: Document...
diff --git a/janitor/accessors/__init__.py b/janitor/accessors/__init__.py --- a/janitor/accessors/__init__.py +++ b/janitor/accessors/__init__.py @@ -1,17 +1,3 @@ -"""Miscellaneous mathematical operators. +"""Miscellaneous mathematical operators.""" -Lazy loading used here to speed up imports. -""" - -import warning...
{"golden_diff": "diff --git a/janitor/accessors/__init__.py b/janitor/accessors/__init__.py\n--- a/janitor/accessors/__init__.py\n+++ b/janitor/accessors/__init__.py\n@@ -1,17 +1,3 @@\n-\"\"\"Miscellaneous mathematical operators.\n+\"\"\"Miscellaneous mathematical operators.\"\"\"\n \n-Lazy loading used here to speed u...
gh_patches_debug_1152
rasdani/github-patches
git_diff
benoitc__gunicorn-960
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reloading sometimes gives a TypeError: 'NoneType' object is not callable I'm running a custom app (subclass of `BaseApplication`) with reload set to True. In some situations, changing a file causes the follow...
diff --git a/gunicorn/workers/base.py b/gunicorn/workers/base.py --- a/gunicorn/workers/base.py +++ b/gunicorn/workers/base.py @@ -87,7 +87,6 @@ def changed(fname): self.log.info("Worker reloading: %s modified", fname) os.kill(self.pid, signal.SIGQUIT) - rai...
{"golden_diff": "diff --git a/gunicorn/workers/base.py b/gunicorn/workers/base.py\n--- a/gunicorn/workers/base.py\n+++ b/gunicorn/workers/base.py\n@@ -87,7 +87,6 @@\n def changed(fname):\n self.log.info(\"Worker reloading: %s modified\", fname)\n os.kill(self.pid, signal.SIGQ...
gh_patches_debug_1153
rasdani/github-patches
git_diff
openmc-dev__openmc-1724
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Typo in `RectangularParallelepiped.__pos__` method. A user [reported a problem](https://openmc.discourse.group/t/openmc-model-rectangularparallelepiped-usage/858) in the region output when using the positive ...
diff --git a/openmc/model/surface_composite.py b/openmc/model/surface_composite.py --- a/openmc/model/surface_composite.py +++ b/openmc/model/surface_composite.py @@ -163,7 +163,7 @@ return +self.xmin & -self.xmax & +self.ymin & -self.ymax & +self.zmin & -self.zmax def __pos__(self): - return -se...
{"golden_diff": "diff --git a/openmc/model/surface_composite.py b/openmc/model/surface_composite.py\n--- a/openmc/model/surface_composite.py\n+++ b/openmc/model/surface_composite.py\n@@ -163,7 +163,7 @@\n return +self.xmin & -self.xmax & +self.ymin & -self.ymax & +self.zmin & -self.zmax\n \n def __pos__(sel...
gh_patches_debug_1154
rasdani/github-patches
git_diff
jupyterhub__jupyterhub-3837
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Maybe a bug about module checking ### Bug description <!-- Use this section to clearly and concisely describe the bug. --> If I use conda to install only jupyterhub and python (conda install -c conda-forge ...
diff --git a/jupyterhub/singleuser/app.py b/jupyterhub/singleuser/app.py --- a/jupyterhub/singleuser/app.py +++ b/jupyterhub/singleuser/app.py @@ -29,9 +29,9 @@ try: App = import_item(JUPYTERHUB_SINGLEUSER_APP) except ImportError as e: - continue if _import_error i...
{"golden_diff": "diff --git a/jupyterhub/singleuser/app.py b/jupyterhub/singleuser/app.py\n--- a/jupyterhub/singleuser/app.py\n+++ b/jupyterhub/singleuser/app.py\n@@ -29,9 +29,9 @@\n try:\n App = import_item(JUPYTERHUB_SINGLEUSER_APP)\n except ImportError as e:\n- continue\n ...
gh_patches_debug_1155
rasdani/github-patches
git_diff
espnet__espnet-3073
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Question on chunk shift in ChunkIterFactory.build_iter() In the code, shift width is calculated as a ratio of utterance length as follows: S = int(L * self.chunk_shift_ratio) Shouldn't shift width be calc...
diff --git a/espnet2/iterators/chunk_iter_factory.py b/espnet2/iterators/chunk_iter_factory.py --- a/espnet2/iterators/chunk_iter_factory.py +++ b/espnet2/iterators/chunk_iter_factory.py @@ -145,7 +145,7 @@ cache_chunks = cache_chunks_dict.setdefault(W, {}) # Shift width to the next chunk - ...
{"golden_diff": "diff --git a/espnet2/iterators/chunk_iter_factory.py b/espnet2/iterators/chunk_iter_factory.py\n--- a/espnet2/iterators/chunk_iter_factory.py\n+++ b/espnet2/iterators/chunk_iter_factory.py\n@@ -145,7 +145,7 @@\n cache_chunks = cache_chunks_dict.setdefault(W, {})\n \n # Shift wid...
gh_patches_debug_1156
rasdani/github-patches
git_diff
getsentry__sentry-python-1852
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Empty DSN crashes Otel integration ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.12.0 ### Steps to Reproduce Do not give a DSN when initializing the SDK with the Otel integration. ...
diff --git a/sentry_sdk/integrations/opentelemetry/span_processor.py b/sentry_sdk/integrations/opentelemetry/span_processor.py --- a/sentry_sdk/integrations/opentelemetry/span_processor.py +++ b/sentry_sdk/integrations/opentelemetry/span_processor.py @@ -98,6 +98,14 @@ if not hub: return + ...
{"golden_diff": "diff --git a/sentry_sdk/integrations/opentelemetry/span_processor.py b/sentry_sdk/integrations/opentelemetry/span_processor.py\n--- a/sentry_sdk/integrations/opentelemetry/span_processor.py\n+++ b/sentry_sdk/integrations/opentelemetry/span_processor.py\n@@ -98,6 +98,14 @@\n if not hub:\n ...
gh_patches_debug_1157
rasdani/github-patches
git_diff
DDMAL__CantusDB-819
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Source Edit Page: sidebar: source navigation links not displayed breaking this issue out from #483. OldCantus - https://cantus.uwaterloo.ca/node/711311/edit: ![Screen Shot 2022-12-16 at 2 23 09 PM](https...
diff --git a/django/cantusdb_project/main_app/views/source.py b/django/cantusdb_project/main_app/views/source.py --- a/django/cantusdb_project/main_app/views/source.py +++ b/django/cantusdb_project/main_app/views/source.py @@ -211,7 +211,9 @@ return HttpResponseRedirect(self.get_success_url()) -class Sourc...
{"golden_diff": "diff --git a/django/cantusdb_project/main_app/views/source.py b/django/cantusdb_project/main_app/views/source.py\n--- a/django/cantusdb_project/main_app/views/source.py\n+++ b/django/cantusdb_project/main_app/views/source.py\n@@ -211,7 +211,9 @@\n return HttpResponseRedirect(self.get_success_ur...
gh_patches_debug_1158
rasdani/github-patches
git_diff
buildbot__buildbot-6121
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Git poller state exceeds database field size after some time When the Git poller covers all branches, it can happen that eventually the `lastRev` state gets too large so that it cannot be stored in the DB any...
diff --git a/master/buildbot/changes/gitpoller.py b/master/buildbot/changes/gitpoller.py --- a/master/buildbot/changes/gitpoller.py +++ b/master/buildbot/changes/gitpoller.py @@ -236,7 +236,7 @@ log.err(_why="trying to poll branch {} of {}".format( branch, self.repourl)) - ...
{"golden_diff": "diff --git a/master/buildbot/changes/gitpoller.py b/master/buildbot/changes/gitpoller.py\n--- a/master/buildbot/changes/gitpoller.py\n+++ b/master/buildbot/changes/gitpoller.py\n@@ -236,7 +236,7 @@\n log.err(_why=\"trying to poll branch {} of {}\".format(\n branc...
gh_patches_debug_1159
rasdani/github-patches
git_diff
pwr-Solaar__Solaar-1301
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support for m500s mouse **Information** <!-- Please update to Solaar from this repository before asking for a new feature. --> - Solaar version 1.0.7 - Distribution: Fedora 34 - Kernel version: Linux 5.14...
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 @@ -580,6 +580,7 @@ _D('G903 Lightspeed Gaming Mouse', codename='G903', usbid=0xc086) _D('G903 Hero Gaming Mouse', codename='G903 Hero', usbid=...
{"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@@ -580,6 +580,7 @@\n _D('G903 Lightspeed Gaming Mouse', codename='G903', usbid=0xc086)\n _D('G903 Hero Gaming Mouse', codena...
gh_patches_debug_1160
rasdani/github-patches
git_diff
uclapi__uclapi-128
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] Search People should return HTTP status 400 when query is missing Currently, the `/search/people` returns a HTTP 200 code when even for an incorrect API request. For example, if you leave out the `query...
diff --git a/backend/uclapi/search/views.py b/backend/uclapi/search/views.py --- a/backend/uclapi/search/views.py +++ b/backend/uclapi/search/views.py @@ -13,10 +13,12 @@ @log_api_call def people(request): if "query" not in request.GET: - return JsonResponse({ + response = JsonResponse({ ...
{"golden_diff": "diff --git a/backend/uclapi/search/views.py b/backend/uclapi/search/views.py\n--- a/backend/uclapi/search/views.py\n+++ b/backend/uclapi/search/views.py\n@@ -13,10 +13,12 @@\n @log_api_call\n def people(request):\n if \"query\" not in request.GET:\n- return JsonResponse({\n+ response ...
gh_patches_debug_1161
rasdani/github-patches
git_diff
jupyterhub__jupyterhub-1749
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Jupyterhub remote host issue Hi, I'm trying to use jupyterhub from a docker. I was able to get it to run properly on my local using this dockerfile but it doesn't work on the remote host. ``` FROM jupyterh...
diff --git a/jupyterhub/auth.py b/jupyterhub/auth.py --- a/jupyterhub/auth.py +++ b/jupyterhub/auth.py @@ -225,7 +225,7 @@ .. versionchanged:: 0.8 return dict instead of username """ - authenticated = await self.authenticate(handler, data) + authenticated = await maybe_futur...
{"golden_diff": "diff --git a/jupyterhub/auth.py b/jupyterhub/auth.py\n--- a/jupyterhub/auth.py\n+++ b/jupyterhub/auth.py\n@@ -225,7 +225,7 @@\n .. versionchanged:: 0.8\n return dict instead of username\n \"\"\"\n- authenticated = await self.authenticate(handler, data)\n+ authe...
gh_patches_debug_1162
rasdani/github-patches
git_diff
napari__napari-1293
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- UnboundLocalError in create_worker ## 🐛 Bug When creating a local worker with multiple yield connections, I get an unboundlocalerror: ```pytb ----------------------------------------------------------...
diff --git a/napari/_qt/threading.py b/napari/_qt/threading.py --- a/napari/_qt/threading.py +++ b/napari/_qt/threading.py @@ -502,8 +502,7 @@ _start_thread = True for key, val in _connect.items(): - if not isinstance(val, (tuple, list)): - _val = [val] + _va...
{"golden_diff": "diff --git a/napari/_qt/threading.py b/napari/_qt/threading.py\n--- a/napari/_qt/threading.py\n+++ b/napari/_qt/threading.py\n@@ -502,8 +502,7 @@\n _start_thread = True\n \n for key, val in _connect.items():\n- if not isinstance(val, (tuple, list)):\n- _val...
gh_patches_debug_1163
rasdani/github-patches
git_diff
translate__pootle-5588
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Forever loading after captcha At the first loading of poolte, i mean after this ``` 2016-07-22 11:38:22,805 INFO Loading custom settings from '/var/www/translate.tamrielunlimited.it/pootle.conf'... 2016-07-2...
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 @@ -597,7 +597,8 @@ similarity=form.cleaned_data['similarity'], mt_similarity=form.cleaned_data['mt_similarity']) - ...
{"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@@ -597,7 +597,8 @@\n similarity=form.cleaned_data['similarity'],\n mt_similarity=form.cleaned_data['mt_s...
gh_patches_debug_1164
rasdani/github-patches
git_diff
microsoft__ptvsd-1376
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Warning in ptvsd on python 3.8 ## Environment data - PTVSD version: 4.2.8 - OS and version: win10 - Python version (& distribution if applicable, e.g. Anaconda): cpython 3.8.0a3 32-bit - Using VS Code o...
diff --git a/src/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py b/src/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py --- a/src/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py +++ b/src/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py @@ -155,7 +155,7 @@ try: d ...
{"golden_diff": "diff --git a/src/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py b/src/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py\n--- a/src/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py\n+++ b/src/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py\n@@ -155,7 +155,7 @@\n ...
gh_patches_debug_1165
rasdani/github-patches
git_diff
inventree__InvenTree-2666
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Unable to create build output <!--- Everything inside these brackets is hidden - please remove them where you fill out information. ---> **Describe the bug** On a fully allocated Build Order, I'...
diff --git a/InvenTree/build/serializers.py b/InvenTree/build/serializers.py --- a/InvenTree/build/serializers.py +++ b/InvenTree/build/serializers.py @@ -236,6 +236,7 @@ auto_allocate = serializers.BooleanField( required=False, default=False, + allow_null=True, label=_('Auto Allo...
{"golden_diff": "diff --git a/InvenTree/build/serializers.py b/InvenTree/build/serializers.py\n--- a/InvenTree/build/serializers.py\n+++ b/InvenTree/build/serializers.py\n@@ -236,6 +236,7 @@\n auto_allocate = serializers.BooleanField(\n required=False,\n default=False,\n+ allow_null=True,\n ...
gh_patches_debug_1166
rasdani/github-patches
git_diff
svthalia__concrexit-3558
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Separate promotion permissions in eventadmin inline from the main promotion perms ### What? Currently, people need add/change_promotionrequest permission to make promotionrequests for their events. But with ...
diff --git a/website/events/admin/inlines.py b/website/events/admin/inlines.py --- a/website/events/admin/inlines.py +++ b/website/events/admin/inlines.py @@ -39,5 +39,19 @@ "assigned_to", "status", "drive_folder", + "status_updated", ) + + def has_add_permission(self, request,...
{"golden_diff": "diff --git a/website/events/admin/inlines.py b/website/events/admin/inlines.py\n--- a/website/events/admin/inlines.py\n+++ b/website/events/admin/inlines.py\n@@ -39,5 +39,19 @@\n \"assigned_to\",\n \"status\",\n \"drive_folder\",\n+ \"status_updated\",\n )\n+\n+ de...
gh_patches_debug_1167
rasdani/github-patches
git_diff
saleor__saleor-2909
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- OrderCancel mutation throws error when asked not to restock inventory ### What I'm trying to achieve Cancel order without doing restock. ### Steps to reproduce the problem 1. Execute query ``` mutation...
diff --git a/saleor/graphql/order/mutations/orders.py b/saleor/graphql/order/mutations/orders.py --- a/saleor/graphql/order/mutations/orders.py +++ b/saleor/graphql/order/mutations/orders.py @@ -247,8 +247,7 @@ parameters={'quantity': order.get_total_quantity()}) else: order.event...
{"golden_diff": "diff --git a/saleor/graphql/order/mutations/orders.py b/saleor/graphql/order/mutations/orders.py\n--- a/saleor/graphql/order/mutations/orders.py\n+++ b/saleor/graphql/order/mutations/orders.py\n@@ -247,8 +247,7 @@\n parameters={'quantity': order.get_total_quantity()})\n else:\n ...
gh_patches_debug_1168
rasdani/github-patches
git_diff
pymeasure__pymeasure-433
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pyvisa no longer support ask, replace with query In resources.py `idn = res.ask('*idn?')[:-1]` Should be: `idn = res.query('*idn?')[:-1]` --- END ISSUE --- Below are some code segments, each from a relev...
diff --git a/pymeasure/instruments/resources.py b/pymeasure/instruments/resources.py --- a/pymeasure/instruments/resources.py +++ b/pymeasure/instruments/resources.py @@ -47,7 +47,7 @@ # try to avoid errors from *idn? try: # noinspection PyUnresolvedReferences - ...
{"golden_diff": "diff --git a/pymeasure/instruments/resources.py b/pymeasure/instruments/resources.py\n--- a/pymeasure/instruments/resources.py\n+++ b/pymeasure/instruments/resources.py\n@@ -47,7 +47,7 @@\n # try to avoid errors from *idn?\n try:\n # noinspection PyUnresolvedRefe...
gh_patches_debug_1169
rasdani/github-patches
git_diff
pypa__pip-12281
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TypeError when installing from git and git version contains a letter ### Description I am trying to install a dependency from a git source and get an exception because the git version cannot be parsed Goi...
diff --git a/src/pip/_internal/vcs/git.py b/src/pip/_internal/vcs/git.py --- a/src/pip/_internal/vcs/git.py +++ b/src/pip/_internal/vcs/git.py @@ -101,7 +101,7 @@ if not match: logger.warning("Can't parse git version: %s", version) return () - return tuple(int(c) for c in match...
{"golden_diff": "diff --git a/src/pip/_internal/vcs/git.py b/src/pip/_internal/vcs/git.py\n--- a/src/pip/_internal/vcs/git.py\n+++ b/src/pip/_internal/vcs/git.py\n@@ -101,7 +101,7 @@\n if not match:\n logger.warning(\"Can't parse git version: %s\", version)\n return ()\n- return t...
gh_patches_debug_1170
rasdani/github-patches
git_diff
facebookresearch__ParlAI-3393
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- HuggingFace model only works with transformers <4.0.0 **Bug description** With transfomers 4.0 or greater: ``` $ parlai dm -t convai2 -m hugging_face/gpt2 -bs 1 ``` ```python-traceback Traceback (most...
diff --git a/parlai/agents/hugging_face/gpt2.py b/parlai/agents/hugging_face/gpt2.py --- a/parlai/agents/hugging_face/gpt2.py +++ b/parlai/agents/hugging_face/gpt2.py @@ -115,7 +115,7 @@ model_input = model_input.clamp_(min=0) transformer_outputs = self.transformer( model_input, - ...
{"golden_diff": "diff --git a/parlai/agents/hugging_face/gpt2.py b/parlai/agents/hugging_face/gpt2.py\n--- a/parlai/agents/hugging_face/gpt2.py\n+++ b/parlai/agents/hugging_face/gpt2.py\n@@ -115,7 +115,7 @@\n model_input = model_input.clamp_(min=0)\n transformer_outputs = self.transformer(\n ...
gh_patches_debug_1171
rasdani/github-patches
git_diff
Lightning-AI__pytorch-lightning-2510
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- example_input_array dtype Currently assumed that example_input_array dtype to be equal to model dtype. This is not necessarily correct - e.g. if input is a vector of INT. https://github.com/PyTorchLightnin...
diff --git a/pytorch_lightning/core/memory.py b/pytorch_lightning/core/memory.py --- a/pytorch_lightning/core/memory.py +++ b/pytorch_lightning/core/memory.py @@ -208,7 +208,6 @@ input_ = model.example_input_array input_ = model.transfer_batch_to_device(input_, model.device) - input_ = apply_...
{"golden_diff": "diff --git a/pytorch_lightning/core/memory.py b/pytorch_lightning/core/memory.py\n--- a/pytorch_lightning/core/memory.py\n+++ b/pytorch_lightning/core/memory.py\n@@ -208,7 +208,6 @@\n \n input_ = model.example_input_array\n input_ = model.transfer_batch_to_device(input_, model.device)\n...
gh_patches_debug_1172
rasdani/github-patches
git_diff
cookiecutter__cookiecutter-django-4028
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Docker Django 4.1 template reload behavior Using Django 4.1 under Docker gives trouble in development with the changed default behavior of the template loading. Templates are cached until restart since the ca...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", - "Framework :: Django :: 4.0", + "Framework :: Django :: 4.1", "Intended Audience :: Developers", "Natural La...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -27,7 +27,7 @@\n classifiers=[\n \"Development Status :: 4 - Beta\",\n \"Environment :: Console\",\n- \"Framework :: Django :: 4.0\",\n+ \"Framework :: Django :: 4.1\",\n \"Intended Audience :...
gh_patches_debug_1173
rasdani/github-patches
git_diff
python-pillow__Pillow-3478
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Using seek to skip more than one frame with FliImageFile only shows the pixels changed that frame ### What did you do? I opened a FLI file and used .seek(50) on the image before creating a PhotoImage to disp...
diff --git a/src/PIL/FliImagePlugin.py b/src/PIL/FliImagePlugin.py --- a/src/PIL/FliImagePlugin.py +++ b/src/PIL/FliImagePlugin.py @@ -131,6 +131,9 @@ self.__frame = -1 self.__fp.seek(self.__rewind) self.__offset = 128 + else: + # ensure that the previous frame w...
{"golden_diff": "diff --git a/src/PIL/FliImagePlugin.py b/src/PIL/FliImagePlugin.py\n--- a/src/PIL/FliImagePlugin.py\n+++ b/src/PIL/FliImagePlugin.py\n@@ -131,6 +131,9 @@\n self.__frame = -1\n self.__fp.seek(self.__rewind)\n self.__offset = 128\n+ else:\n+ # ensure ...
gh_patches_debug_1174
rasdani/github-patches
git_diff
ray-project__ray-8886
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [CLI] version option ### Describe your feature request `ray --version` should output the version. Judging from the output of `ray --help`, it looks like Click is used. Version flags should be easy in click...
diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -60,6 +60,7 @@ default=ray_constants.LOGGER_FORMAT, type=str, help=ray_constants.LOGGER_FORMAT_HELP) +@click.version_option() def cli(logging_level, loggi...
{"golden_diff": "diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py\n--- a/python/ray/scripts/scripts.py\n+++ b/python/ray/scripts/scripts.py\n@@ -60,6 +60,7 @@\n default=ray_constants.LOGGER_FORMAT,\n type=str,\n help=ray_constants.LOGGER_FORMAT_HELP)\n+@click.version_option()\n def...
gh_patches_debug_1175
rasdani/github-patches
git_diff
privacyidea__privacyidea-1978
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Missing requirement in setup.py The `flask-versioned` package is missing in `setup.py`s `install_requires` list. When installing privacyIDEA via `setup.py` or `pip` this will break. --- END ISSUE --- Belo...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -60,7 +60,8 @@ "flask-babel>=0.9", "croniter>=0.3.8", "oauth2client>=2.0.1", - "configobj>=5.0.6" + "configobj>=5.0.6", + "flask-versi...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -60,7 +60,8 @@\n \"flask-babel>=0.9\",\n \"croniter>=0.3.8\",\n \"oauth2client>=2.0.1\",\n- \"configobj>=5.0.6\"\n+ \"configobj>=5.0.6\"...
gh_patches_debug_1176
rasdani/github-patches
git_diff
python-poetry__poetry-235
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "poetry remove" case-sensitivity (qol) ```bash $ poetry add pyyaml Using version ^3.12 for PyYAML Updating dependencies Resolving dependencies... Package operations: 1 install, 0 updates, 0 removal...
diff --git a/poetry/console/commands/remove.py b/poetry/console/commands/remove.py --- a/poetry/console/commands/remove.py +++ b/poetry/console/commands/remove.py @@ -39,7 +39,7 @@ for key in poetry_content[section]: if key.lower() == name.lower(): found = True - ...
{"golden_diff": "diff --git a/poetry/console/commands/remove.py b/poetry/console/commands/remove.py\n--- a/poetry/console/commands/remove.py\n+++ b/poetry/console/commands/remove.py\n@@ -39,7 +39,7 @@\n for key in poetry_content[section]:\n if key.lower() == name.lower():\n ...
gh_patches_debug_1177
rasdani/github-patches
git_diff
openvinotoolkit__datumaro-426
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: concatenation for the different types in COCO format https://github.com/openvinotoolkit/datumaro/blob/935fb0ede3c70a68582c7d13b5f5450e51f81235/datumaro/plugins/coco_format/converter.py#L232-L234 masks ...
diff --git a/datumaro/plugins/coco_format/converter.py b/datumaro/plugins/coco_format/converter.py --- a/datumaro/plugins/coco_format/converter.py +++ b/datumaro/plugins/coco_format/converter.py @@ -231,7 +231,7 @@ if masks: masks = (m.image for m in masks) if mask is not ...
{"golden_diff": "diff --git a/datumaro/plugins/coco_format/converter.py b/datumaro/plugins/coco_format/converter.py\n--- a/datumaro/plugins/coco_format/converter.py\n+++ b/datumaro/plugins/coco_format/converter.py\n@@ -231,7 +231,7 @@\n if masks:\n masks = (m.image for m in masks)\n ...
gh_patches_debug_1178
rasdani/github-patches
git_diff
jazzband__django-simple-history-1329
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- m2m historical records are saved even when SIMPLE_HISTORY_ENABLED = False **Describe the bug** m2m relationships ignores the SIMPLE_HISTORY_ENABLED = False, even when disabled the library is still saving the...
diff --git a/simple_history/models.py b/simple_history/models.py --- a/simple_history/models.py +++ b/simple_history/models.py @@ -673,6 +673,8 @@ return utils.get_change_reason_from_object(instance) def m2m_changed(self, instance, action, attr, pk_set, reverse, **_): + if not getattr(settings, "...
{"golden_diff": "diff --git a/simple_history/models.py b/simple_history/models.py\n--- a/simple_history/models.py\n+++ b/simple_history/models.py\n@@ -673,6 +673,8 @@\n return utils.get_change_reason_from_object(instance)\n \n def m2m_changed(self, instance, action, attr, pk_set, reverse, **_):\n+ if...
gh_patches_debug_1179
rasdani/github-patches
git_diff
vispy__vispy-1784
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix simple typo: withour -> without There is a small typo in vispy/app/backends/_ipynb_vnc.py. Should read without rather than withour. --- END ISSUE --- Below are some code segments, each from a relevant...
diff --git a/vispy/app/backends/_ipynb_vnc.py b/vispy/app/backends/_ipynb_vnc.py --- a/vispy/app/backends/_ipynb_vnc.py +++ b/vispy/app/backends/_ipynb_vnc.py @@ -52,7 +52,7 @@ _app.backend_module._set_config(c) -# Init dummy objects needed to import this module withour errors. +# Init dummy objects needed to ...
{"golden_diff": "diff --git a/vispy/app/backends/_ipynb_vnc.py b/vispy/app/backends/_ipynb_vnc.py\n--- a/vispy/app/backends/_ipynb_vnc.py\n+++ b/vispy/app/backends/_ipynb_vnc.py\n@@ -52,7 +52,7 @@\n _app.backend_module._set_config(c)\n \n \n-# Init dummy objects needed to import this module withour errors.\n+# Init...
gh_patches_debug_1180
rasdani/github-patches
git_diff
oppia__oppia-10093
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Get rid of unnecessary optional properties There are a lot of `?` in the types that are not required. They should be removed. Get rid of unnecessary optional properties There are a lot of `?` in the types tha...
diff --git a/core/controllers/creator_dashboard.py b/core/controllers/creator_dashboard.py --- a/core/controllers/creator_dashboard.py +++ b/core/controllers/creator_dashboard.py @@ -324,6 +324,11 @@ self.values.update({ 'topic_summary_dicts': topic_summary_dicts }) + e...
{"golden_diff": "diff --git a/core/controllers/creator_dashboard.py b/core/controllers/creator_dashboard.py\n--- a/core/controllers/creator_dashboard.py\n+++ b/core/controllers/creator_dashboard.py\n@@ -324,6 +324,11 @@\n self.values.update({\n 'topic_summary_dicts': topic_summary_dicts\n ...
gh_patches_debug_1181
rasdani/github-patches
git_diff
agconti__cookiecutter-django-rest-177
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update `IsOwnerOrReadOnly` permission docstring to be more clear --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- ...
diff --git a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/users/permissions.py b/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/users/permissions.py --- a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/users/permissions.py +++ b/{{cookiecutter.github_repository...
{"golden_diff": "diff --git a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/users/permissions.py b/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/users/permissions.py\n--- a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/users/permissions.py\n+++ b/{{cookiecutte...
gh_patches_debug_1182
rasdani/github-patches
git_diff
adamchainz__django-mysql-502
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Officially support Django 2.1 Testing is passing with 2.1, document and release if any changes required. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -50,6 +50,7 @@ 'Framework :: Django :: 1.10', 'Framework :: Django :: 1.11', 'Framework :: Django :: 2.0', + 'Framework :: Django :: 2.1', 'Intended Audience :: Developers', 'License :: OSI Approved :: ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -50,6 +50,7 @@\n 'Framework :: Django :: 1.10',\n 'Framework :: Django :: 1.11',\n 'Framework :: Django :: 2.0',\n+ 'Framework :: Django :: 2.1',\n 'Intended Audience :: Developers',\n 'L...
gh_patches_debug_1183
rasdani/github-patches
git_diff
searx__searx-2256
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make secret_key default one that will fail if not set to a custom value Currently, the `secret_key` default value is `ultrasecretkey` which is a valid value. Would it not be better to let the default value of...
diff --git a/searx/__init__.py b/searx/__init__.py --- a/searx/__init__.py +++ b/searx/__init__.py @@ -85,3 +85,7 @@ settings['server']['secret_key'] = environ['SEARX_SECRET'] if 'SEARX_BIND_ADDRESS' in environ: settings['server']['bind_address'] = environ['SEARX_BIND_ADDRESS'] + +if not searx_debug and sett...
{"golden_diff": "diff --git a/searx/__init__.py b/searx/__init__.py\n--- a/searx/__init__.py\n+++ b/searx/__init__.py\n@@ -85,3 +85,7 @@\n settings['server']['secret_key'] = environ['SEARX_SECRET']\n if 'SEARX_BIND_ADDRESS' in environ:\n settings['server']['bind_address'] = environ['SEARX_BIND_ADDRESS']\n+\n+if...
gh_patches_debug_1184
rasdani/github-patches
git_diff
aws__aws-cli-577
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- typo in s3api list-objects documentation The documentation for the s3api list-objects --max-items parameter says that a `NextMarker` will be provided, while the --starting-token parameter refers to this as `N...
diff --git a/awscli/customizations/paginate.py b/awscli/customizations/paginate.py --- a/awscli/customizations/paginate.py +++ b/awscli/customizations/paginate.py @@ -36,7 +36,7 @@ MAX_ITEMS_HELP = """ <p>The total number of items to return. If the total number of items available is more than the value specified in...
{"golden_diff": "diff --git a/awscli/customizations/paginate.py b/awscli/customizations/paginate.py\n--- a/awscli/customizations/paginate.py\n+++ b/awscli/customizations/paginate.py\n@@ -36,7 +36,7 @@\n MAX_ITEMS_HELP = \"\"\"\n <p>The total number of items to return. If the total number\n of items available is more t...
gh_patches_debug_1185
rasdani/github-patches
git_diff
dmlc__dgl-413
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fixing random seeds does not yield deterministic results - [Related discussion thread](https://discuss.dgl.ai/t/how-to-fix-random-seeds-in-dgl-in-training/65/3) It has been observed by Erutan-pku, @hbsun21...
diff --git a/python/dgl/data/citation_graph.py b/python/dgl/data/citation_graph.py --- a/python/dgl/data/citation_graph.py +++ b/python/dgl/data/citation_graph.py @@ -389,7 +389,7 @@ return mx def _encode_onehot(labels): - classes = set(labels) + classes = list(sorted(set(labels))) classes_dict = {c:...
{"golden_diff": "diff --git a/python/dgl/data/citation_graph.py b/python/dgl/data/citation_graph.py\n--- a/python/dgl/data/citation_graph.py\n+++ b/python/dgl/data/citation_graph.py\n@@ -389,7 +389,7 @@\n return mx\n \n def _encode_onehot(labels):\n- classes = set(labels)\n+ classes = list(sorted(set(labels))...
gh_patches_debug_1186
rasdani/github-patches
git_diff
freqtrade__freqtrade-1642
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unable to Perform Sell in dry mode, broken persistance.py Hi, Since two days I'm trying to figure out why my fresh installed bot can't perform sell operations on Dry run mode. Even If I perform a force sell ...
diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -298,7 +298,7 @@ 'amount': amount, "cost": amount * rate, 'type': ordertype, - 'side': 'buy', + 'side': s...
{"golden_diff": "diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py\n--- a/freqtrade/exchange/exchange.py\n+++ b/freqtrade/exchange/exchange.py\n@@ -298,7 +298,7 @@\n 'amount': amount,\n \"cost\": amount * rate,\n 'type': ordertype,\n- 'side': 'bu...
gh_patches_debug_1187
rasdani/github-patches
git_diff
MongoEngine__mongoengine-2519
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- the second argument type is wrong when invoking isinstance() code file: /mongoengine/queryset/base.py line num: 328 argument: self._document the self ._document is an object NOT a TYPE, i guess, you want...
diff --git a/mongoengine/document.py b/mongoengine/document.py --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -574,7 +574,7 @@ def _qs(self): """Return the default queryset corresponding to this document.""" if not hasattr(self, "__objects"): - self.__objects = QuerySet...
{"golden_diff": "diff --git a/mongoengine/document.py b/mongoengine/document.py\n--- a/mongoengine/document.py\n+++ b/mongoengine/document.py\n@@ -574,7 +574,7 @@\n def _qs(self):\n \"\"\"Return the default queryset corresponding to this document.\"\"\"\n if not hasattr(self, \"__objects\"):\n- ...
gh_patches_debug_1188
rasdani/github-patches
git_diff
liqd__a4-opin-1835
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sort by section changes automatically to "most recent" on productive --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES ...
diff --git a/euth/ideas/templatetags/idea_tags.py b/euth/ideas/templatetags/idea_tags.py --- a/euth/ideas/templatetags/idea_tags.py +++ b/euth/ideas/templatetags/idea_tags.py @@ -18,3 +18,12 @@ @register.simple_tag def is_idea_list(module): return Idea.objects.filter(module=module).count() > 0 + + +@register.sim...
{"golden_diff": "diff --git a/euth/ideas/templatetags/idea_tags.py b/euth/ideas/templatetags/idea_tags.py\n--- a/euth/ideas/templatetags/idea_tags.py\n+++ b/euth/ideas/templatetags/idea_tags.py\n@@ -18,3 +18,12 @@\n @register.simple_tag\n def is_idea_list(module):\n return Idea.objects.filter(module=module).count()...
gh_patches_debug_1189
rasdani/github-patches
git_diff
biolab__orange3-5469
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PCA widget not adding the last component **What's wrong?** PCA widget does not return the last component even though selected in the widget. More specifically it doesn't work for drag and dropping the vertic...
diff --git a/Orange/widgets/unsupervised/owpca.py b/Orange/widgets/unsupervised/owpca.py --- a/Orange/widgets/unsupervised/owpca.py +++ b/Orange/widgets/unsupervised/owpca.py @@ -203,9 +203,7 @@ def _on_cut_changed(self, components): if components == self.ncomponents \ - or self.ncomponen...
{"golden_diff": "diff --git a/Orange/widgets/unsupervised/owpca.py b/Orange/widgets/unsupervised/owpca.py\n--- a/Orange/widgets/unsupervised/owpca.py\n+++ b/Orange/widgets/unsupervised/owpca.py\n@@ -203,9 +203,7 @@\n \n def _on_cut_changed(self, components):\n if components == self.ncomponents \\\n- ...
gh_patches_debug_1190
rasdani/github-patches
git_diff
CiviWiki__OpenCiviWiki-980
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Restore SessionAuthenticationMiddleware We aim to move away from having a heavy JavaScript front-end, preferring instead to use Django templates (and sprinkles of JS where needed). This means we can use Sessi...
diff --git a/project/core/settings.py b/project/core/settings.py --- a/project/core/settings.py +++ b/project/core/settings.py @@ -148,7 +148,7 @@ # Django REST API Settings DEFAULT_RENDERER_CLASSES = ("rest_framework.renderers.JSONRenderer",) -DEFAULT_AUTHENTICATION_CLASSES = ("rest_framework.authentication.BasicA...
{"golden_diff": "diff --git a/project/core/settings.py b/project/core/settings.py\n--- a/project/core/settings.py\n+++ b/project/core/settings.py\n@@ -148,7 +148,7 @@\n # Django REST API Settings\n DEFAULT_RENDERER_CLASSES = (\"rest_framework.renderers.JSONRenderer\",)\n \n-DEFAULT_AUTHENTICATION_CLASSES = (\"rest_fram...
gh_patches_debug_1191
rasdani/github-patches
git_diff
facebookresearch__xformers-175
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Dropout uses the *memory address* of seeds instead of reading seeds from memory # 🐛 Bug From reading the code for `k_dropout_fw` and `k_dropout_bw`, it seems to me that the seeds are never read from memor...
diff --git a/xformers/triton/k_dropout.py b/xformers/triton/k_dropout.py --- a/xformers/triton/k_dropout.py +++ b/xformers/triton/k_dropout.py @@ -21,7 +21,8 @@ @triton.jit def _get_4_bin_masks(seed, rand_offsets, p): - rand1, rand2, rand3, rand4 = tl.randint4x(seed.to(tl.int32), rand_offsets) + seed = tl.loa...
{"golden_diff": "diff --git a/xformers/triton/k_dropout.py b/xformers/triton/k_dropout.py\n--- a/xformers/triton/k_dropout.py\n+++ b/xformers/triton/k_dropout.py\n@@ -21,7 +21,8 @@\n \n @triton.jit\n def _get_4_bin_masks(seed, rand_offsets, p):\n- rand1, rand2, rand3, rand4 = tl.randint4x(seed.to(tl.int32), rand_off...
gh_patches_debug_1192
rasdani/github-patches
git_diff
googleapis__google-cloud-python-6134
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PubSub protobuf dependency requirements incorrect I think the minimum version for the `protobuf` package dependency is not correct. google-cloud-python has the version requirements as protobuf>=3.0.0, but it...
diff --git a/pubsub/setup.py b/pubsub/setup.py --- a/pubsub/setup.py +++ b/pubsub/setup.py @@ -29,7 +29,7 @@ # 'Development Status :: 5 - Production/Stable' release_status = 'Development Status :: 4 - Beta' dependencies = [ - 'google-api-core[grpc] >= 1.1.0, < 2.0.0dev', + 'google-api-core[grpc] >= 1.4.1, < 2....
{"golden_diff": "diff --git a/pubsub/setup.py b/pubsub/setup.py\n--- a/pubsub/setup.py\n+++ b/pubsub/setup.py\n@@ -29,7 +29,7 @@\n # 'Development Status :: 5 - Production/Stable'\n release_status = 'Development Status :: 4 - Beta'\n dependencies = [\n- 'google-api-core[grpc] >= 1.1.0, < 2.0.0dev',\n+ 'google-api-...
gh_patches_debug_1193
rasdani/github-patches
git_diff
Miserlou__Zappa-918
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug using slim_handler when project name begins with an 's' <!--- Provide a general summary of the issue in the Title above --> ## Context <!--- Provide a more detailed introduction to the issue itself, and...
diff --git a/zappa/handler.py b/zappa/handler.py --- a/zappa/handler.py +++ b/zappa/handler.py @@ -158,7 +158,7 @@ boto_session = self.session # Download the zip - remote_bucket, remote_file = project_zip_path.lstrip('s3://').split('/', 1) + remote_bucket, remote_fi...
{"golden_diff": "diff --git a/zappa/handler.py b/zappa/handler.py\n--- a/zappa/handler.py\n+++ b/zappa/handler.py\n@@ -158,7 +158,7 @@\n boto_session = self.session\n \n # Download the zip\n- remote_bucket, remote_file = project_zip_path.lstrip('s3://').split('/', 1)\n+ ...
gh_patches_debug_1194
rasdani/github-patches
git_diff
conda__conda-3335
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- URLs with :: are OK and should not raise assertion errors For conda-build's perl skeleton generator, we can end up with URLs like: http://api.metacpan.org/v0/module/Test::More Unfortunately, conda prevents ...
diff --git a/conda/fetch.py b/conda/fetch.py --- a/conda/fetch.py +++ b/conda/fetch.py @@ -351,7 +351,6 @@ def download(url, dst_path, session=None, md5=None, urlstxt=False, retries=None): - assert "::" not in str(url), url assert "::" not in str(dst_path), str(dst_path) if not offline_keep(url): ...
{"golden_diff": "diff --git a/conda/fetch.py b/conda/fetch.py\n--- a/conda/fetch.py\n+++ b/conda/fetch.py\n@@ -351,7 +351,6 @@\n \n \n def download(url, dst_path, session=None, md5=None, urlstxt=False, retries=None):\n- assert \"::\" not in str(url), url\n assert \"::\" not in str(dst_path), str(dst_path)\n ...
gh_patches_debug_1195
rasdani/github-patches
git_diff
kivy__kivy-2855
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Please distribute pxd files, expose c apis. I'm writing some kivy extension code, and i want to cimport kivy's extension types, which is more efficient than python api, but kivy don't distribute pxd files to ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -780,6 +780,14 @@ 'kivy.uix', ], package_dir={'kivy': 'kivy'}, package_data={'kivy': [ + '*.pxd', + '*.pxi', + 'core/text/*.pxd', + 'core/text/*.pxi', + 'graphics/*.pxd', + 'graphics/*.pxi', + ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -780,6 +780,14 @@\n 'kivy.uix', ],\n package_dir={'kivy': 'kivy'},\n package_data={'kivy': [\n+ '*.pxd',\n+ '*.pxi',\n+ 'core/text/*.pxd',\n+ 'core/text/*.pxi',\n+ 'graphics/*.pxd',\n...
gh_patches_debug_1196
rasdani/github-patches
git_diff
lutris__lutris-4948
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Feature Request] Make Locale dropdown list searchable On Fedora and OpenSUSE, all locales are enabled by default. There are at least 100 of them, probably more. If you want to play some games in a certain lo...
diff --git a/lutris/sysoptions.py b/lutris/sysoptions.py --- a/lutris/sysoptions.py +++ b/lutris/sysoptions.py @@ -495,10 +495,10 @@ { "section": "Game execution", "option": "locale", - "type": "choice", + "type": "choice_with_search", "label": _("Locale"), "choice...
{"golden_diff": "diff --git a/lutris/sysoptions.py b/lutris/sysoptions.py\n--- a/lutris/sysoptions.py\n+++ b/lutris/sysoptions.py\n@@ -495,10 +495,10 @@\n {\n \"section\": \"Game execution\",\n \"option\": \"locale\",\n- \"type\": \"choice\",\n+ \"type\": \"choice_with_search\",\n ...
gh_patches_debug_1197
rasdani/github-patches
git_diff
Lightning-AI__pytorch-lightning-1425
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Not auto add DistributedSampler for DDP training ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> in 0.72, even if we don't set sampler, pytorch_lightning will not add DistributedSa...
diff --git a/pytorch_lightning/trainer/data_loading.py b/pytorch_lightning/trainer/data_loading.py --- a/pytorch_lightning/trainer/data_loading.py +++ b/pytorch_lightning/trainer/data_loading.py @@ -87,9 +87,8 @@ return dataloader need_dist_sampler = self.use_ddp or self.use_ddp2 or self.use_tpu...
{"golden_diff": "diff --git a/pytorch_lightning/trainer/data_loading.py b/pytorch_lightning/trainer/data_loading.py\n--- a/pytorch_lightning/trainer/data_loading.py\n+++ b/pytorch_lightning/trainer/data_loading.py\n@@ -87,9 +87,8 @@\n return dataloader\n \n need_dist_sampler = self.use_ddp or self.u...
gh_patches_debug_1198
rasdani/github-patches
git_diff
numpy__numpy-15425
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- dir(numpy) returns duplicate "testing" <!-- Please describe the issue in detail here, and fill in the fields below --> ### Reproducing code example: <!-- A short code example that reproduces the problem...
diff --git a/numpy/__init__.py b/numpy/__init__.py --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -218,7 +218,7 @@ "{!r}".format(__name__, attr)) def __dir__(): - return list(globals().keys()) + ['Tester', 'testing'] + return list(globals().keys...
{"golden_diff": "diff --git a/numpy/__init__.py b/numpy/__init__.py\n--- a/numpy/__init__.py\n+++ b/numpy/__init__.py\n@@ -218,7 +218,7 @@\n \"{!r}\".format(__name__, attr))\n \n def __dir__():\n- return list(globals().keys()) + ['Tester', 'testing']\n+ ...
gh_patches_debug_1199
rasdani/github-patches
git_diff
instadeepai__Mava-595
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [TEST] Jax Trainer Init ### What do you want to test? Jax trainer init components ### Outline of test structure * Unit tests * Test components and hooks ### Definition of done Passing checks, cover ...
diff --git a/mava/components/jax/training/trainer.py b/mava/components/jax/training/trainer.py --- a/mava/components/jax/training/trainer.py +++ b/mava/components/jax/training/trainer.py @@ -233,7 +233,7 @@ # Setup trainer_networks if not isinstance(trainer_networks, dict) or trainer_networks == {}: ...
{"golden_diff": "diff --git a/mava/components/jax/training/trainer.py b/mava/components/jax/training/trainer.py\n--- a/mava/components/jax/training/trainer.py\n+++ b/mava/components/jax/training/trainer.py\n@@ -233,7 +233,7 @@\n # Setup trainer_networks\n if not isinstance(trainer_networks, dict) or tra...