problem_id
stringlengths
18
22
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
58
prompt
stringlengths
1.1k
10.2k
golden_diff
stringlengths
151
4.94k
verification_info
stringlengths
582
21k
num_tokens
int64
271
2.05k
num_tokens_diff
int64
47
1.02k
gh_patches_debug_51262
rasdani/github-patches
git_diff
conda__conda-5426
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Launching navigator via prompt warnings appear _From @RidaZubair on May 24, 2017 9:47_ **OS:** Windows **Anaconda: 4.4.0** **Actual:** On launching navigator via prompt following warning appears on prom...
diff --git a/conda/common/platform.py b/conda/common/platform.py --- a/conda/common/platform.py +++ b/conda/common/platform.py @@ -19,12 +19,12 @@ return False try: from ctypes import windll - return windll.shell32.IsUserAnAdmin()() != 0 + return windll.shell32.IsUserAnAdmin() != 0 ...
{"golden_diff": "diff --git a/conda/common/platform.py b/conda/common/platform.py\n--- a/conda/common/platform.py\n+++ b/conda/common/platform.py\n@@ -19,12 +19,12 @@\n return False\n try:\n from ctypes import windll\n- return windll.shell32.IsUserAnAdmin()() != 0\n+ return windll.shel...
1,295
143
gh_patches_debug_24678
rasdani/github-patches
git_diff
cloudtools__troposphere-1693
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- implement AWS::DMS changes from May 14, 2020 update --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `tropos...
diff --git a/troposphere/dms.py b/troposphere/dms.py --- a/troposphere/dms.py +++ b/troposphere/dms.py @@ -80,6 +80,18 @@ } +class NeptuneSettings(AWSProperty): + props = { + 'ErrorRetryDuration': (integer, False), + 'IamAuthEnabled': (boolean, False), + 'MaxFileSize': (integer, False),...
{"golden_diff": "diff --git a/troposphere/dms.py b/troposphere/dms.py\n--- a/troposphere/dms.py\n+++ b/troposphere/dms.py\n@@ -80,6 +80,18 @@\n }\n \n \n+class NeptuneSettings(AWSProperty):\n+ props = {\n+ 'ErrorRetryDuration': (integer, False),\n+ 'IamAuthEnabled': (boolean, False),\n+ 'Max...
2,047
337
gh_patches_debug_2668
rasdani/github-patches
git_diff
facebookresearch__ParlAI-1821
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Obselete download link for CLEVR Dataset Apparently, the current link to CLEVR in the source code is "https://s3-us-west-1.amazonaws.com/clevr/CLEVR_v1.0.zip" that returns the message "All access to this obje...
diff --git a/parlai/tasks/clevr/build.py b/parlai/tasks/clevr/build.py --- a/parlai/tasks/clevr/build.py +++ b/parlai/tasks/clevr/build.py @@ -22,7 +22,7 @@ # Download the data. fname = 'CLEVR_v1.0.zip' - url = 'https://s3-us-west-1.amazonaws.com/clevr/' + url = 'https://dl.fbaipublicf...
{"golden_diff": "diff --git a/parlai/tasks/clevr/build.py b/parlai/tasks/clevr/build.py\n--- a/parlai/tasks/clevr/build.py\n+++ b/parlai/tasks/clevr/build.py\n@@ -22,7 +22,7 @@\n \n # Download the data.\n fname = 'CLEVR_v1.0.zip'\n- url = 'https://s3-us-west-1.amazonaws.com/clevr/'\n+ url ...
1,429
145
gh_patches_debug_33339
rasdani/github-patches
git_diff
pyinstaller__pyinstaller-2111
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- New numpy hook for intel mkl libraries Hello - anaconda and winpython build numpy against Intel's mkl libraries. Building someone that uses numpy will need to have those libraries. Here is a winpython hook: ...
diff --git a/PyInstaller/hooks/hook-numpy.core.py b/PyInstaller/hooks/hook-numpy.core.py --- a/PyInstaller/hooks/hook-numpy.core.py +++ b/PyInstaller/hooks/hook-numpy.core.py @@ -6,22 +6,41 @@ # # The full license is in the file COPYING.txt, distributed with this software. #------------------------------------------...
{"golden_diff": "diff --git a/PyInstaller/hooks/hook-numpy.core.py b/PyInstaller/hooks/hook-numpy.core.py\n--- a/PyInstaller/hooks/hook-numpy.core.py\n+++ b/PyInstaller/hooks/hook-numpy.core.py\n@@ -6,22 +6,41 @@\n #\n # The full license is in the file COPYING.txt, distributed with this software.\n #-------------------...
666
679
gh_patches_debug_40264
rasdani/github-patches
git_diff
tensorflow__addons-2381
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ideally the bins in histogram equalization is variable rather than limited to 256 https://github.com/tensorflow/addons/blob/d26e2ed5f68092aed57016a7005ce534b1be3dce/tensorflow_addons/image/color_ops.py#L36 ...
diff --git a/tensorflow_addons/image/color_ops.py b/tensorflow_addons/image/color_ops.py --- a/tensorflow_addons/image/color_ops.py +++ b/tensorflow_addons/image/color_ops.py @@ -27,17 +27,17 @@ from functools import partial -def _scale_channel(image: TensorLike, channel: int) -> tf.Tensor: +def _scale_channel(ima...
{"golden_diff": "diff --git a/tensorflow_addons/image/color_ops.py b/tensorflow_addons/image/color_ops.py\n--- a/tensorflow_addons/image/color_ops.py\n+++ b/tensorflow_addons/image/color_ops.py\n@@ -27,17 +27,17 @@\n from functools import partial\n \n \n-def _scale_channel(image: TensorLike, channel: int) -> tf.Tensor:...
1,935
801
gh_patches_debug_9770
rasdani/github-patches
git_diff
spyder-ide__spyder-14543
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DeprecationWarning: implicit conversion to integers in spyder/widgets/colors.py:78 When running the test suite, I received the following warning: ```python <<<PACKAGEDIR>>>/spyder/widgets/colors.py:78: ...
diff --git a/spyder/widgets/colors.py b/spyder/widgets/colors.py --- a/spyder/widgets/colors.py +++ b/spyder/widgets/colors.py @@ -75,7 +75,7 @@ assert isinstance(color, QColor) self.lineedit = QLineEdit(color.name(), parent) fm = self.lineedit.fontMetrics() - self.lineedit.setMinim...
{"golden_diff": "diff --git a/spyder/widgets/colors.py b/spyder/widgets/colors.py\n--- a/spyder/widgets/colors.py\n+++ b/spyder/widgets/colors.py\n@@ -75,7 +75,7 @@\n assert isinstance(color, QColor)\r\n self.lineedit = QLineEdit(color.name(), parent)\r\n fm = self.lineedit.fontMetrics()\r\n- ...
1,234
139
gh_patches_debug_123
rasdani/github-patches
git_diff
ResonantGeoData__ResonantGeoData-455
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve VTK.js 3D Viewer After #406 is merged, we should improve the 3D viewer. Basically, use [this example](https://kitware.github.io/vtk-js/examples/GeometryViewer.html) Things we should have: - [x] ...
diff --git a/example_project/rgd_example/settings.py b/example_project/rgd_example/settings.py --- a/example_project/rgd_example/settings.py +++ b/example_project/rgd_example/settings.py @@ -19,3 +19,5 @@ REFETCH_SCHEMA_ON_LOGOUT = True OPERATIONS_SORTER = 'alpha' DEEP_LINKING = True + +STATIC_URL = '/static/'
{"golden_diff": "diff --git a/example_project/rgd_example/settings.py b/example_project/rgd_example/settings.py\n--- a/example_project/rgd_example/settings.py\n+++ b/example_project/rgd_example/settings.py\n@@ -19,3 +19,5 @@\n REFETCH_SCHEMA_ON_LOGOUT = True\n OPERATIONS_SORTER = 'alpha'\n DEEP_LINKING = True\n+\n+STAT...
535
88
gh_patches_debug_6251
rasdani/github-patches
git_diff
searxng__searxng-83
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: engine "archive is" reports HTTP 404 / Not found **Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG** 1970d28a **Technical report** Error ...
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py --- a/searx/engines/xpath.py +++ b/searx/engines/xpath.py @@ -14,6 +14,7 @@ results_xpath = '' cached_xpath = '' cached_url = '' +soft_max_redirects = 0 # parameters for engines with paging support # @@ -33,6 +34,7 @@ params['url'] = search_url....
{"golden_diff": "diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py\n--- a/searx/engines/xpath.py\n+++ b/searx/engines/xpath.py\n@@ -14,6 +14,7 @@\n results_xpath = ''\n cached_xpath = ''\n cached_url = ''\n+soft_max_redirects = 0\n \n # parameters for engines with paging support\n #\n@@ -33,6 +34,7 @@\n \n ...
1,349
142
gh_patches_debug_40813
rasdani/github-patches
git_diff
sublimelsp__LSP-1982
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- side_by_side should preview files in a side view **Describe the bug** When using `side_by_side: true` option for commands that support it, if the command opens a quick panel with multiple items, the items op...
diff --git a/plugin/locationpicker.py b/plugin/locationpicker.py --- a/plugin/locationpicker.py +++ b/plugin/locationpicker.py @@ -29,11 +29,11 @@ position: Position, flags: int = 0, group: Optional[int] = None -) -> None: +) -> sublime.View: filename = session.config.map_server_uri_to_client_path(u...
{"golden_diff": "diff --git a/plugin/locationpicker.py b/plugin/locationpicker.py\n--- a/plugin/locationpicker.py\n+++ b/plugin/locationpicker.py\n@@ -29,11 +29,11 @@\n position: Position,\n flags: int = 0,\n group: Optional[int] = None\n-) -> None:\n+) -> sublime.View:\n filename = session.config.map_s...
1,534
701
gh_patches_debug_18206
rasdani/github-patches
git_diff
mindsdb__lightwood-698
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make `column_importances` optional If the column importance module gets automatically disabled (see #681) an issue may arise where the information required for a `ModelAnalysis` object is not available. Examp...
diff --git a/lightwood/analysis/analyze.py b/lightwood/analysis/analyze.py --- a/lightwood/analysis/analyze.py +++ b/lightwood/analysis/analyze.py @@ -84,13 +84,13 @@ # Populate ModelAnalysis object # ------------------------- # model_analysis = ModelAnalysis( - accuracies=runtime_analyzer['score_...
{"golden_diff": "diff --git a/lightwood/analysis/analyze.py b/lightwood/analysis/analyze.py\n--- a/lightwood/analysis/analyze.py\n+++ b/lightwood/analysis/analyze.py\n@@ -84,13 +84,13 @@\n # Populate ModelAnalysis object\n # ------------------------- #\n model_analysis = ModelAnalysis(\n- accuracies=...
1,685
226
gh_patches_debug_14927
rasdani/github-patches
git_diff
googleapis__python-bigquery-30
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Refactor logic in synth.py for excluding noxfile As explained in a [comment](https://github.com/googleapis/python-bigquery/pull/1#discussion_r375560206), preventing the synthtool for overriding the customized...
diff --git a/synth.py b/synth.py --- a/synth.py +++ b/synth.py @@ -14,8 +14,6 @@ """This script is used to synthesize generated parts of this library.""" -import os - import synthtool as s from synthtool import gcp @@ -63,8 +61,6 @@ # Add templated files # ----------------------------------------------------...
{"golden_diff": "diff --git a/synth.py b/synth.py\n--- a/synth.py\n+++ b/synth.py\n@@ -14,8 +14,6 @@\n \n \"\"\"This script is used to synthesize generated parts of this library.\"\"\"\n \n-import os\n-\n import synthtool as s\n from synthtool import gcp\n \n@@ -63,8 +61,6 @@\n # Add templated files\n # ---------------...
1,011
175
gh_patches_debug_17991
rasdani/github-patches
git_diff
searx__searx-1464
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Seems that startpage and ixquick enignes are not working anymore on Searx Hello and thanks for the works. I tried on my searx and on other instance like searx.me... but It's not working. How could we f...
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -32,8 +32,9 @@ # specific xpath variables # ads xpath //div[@id="results"]/div[@id="sponsored"]//div[@class="result"] # not ads: div[@class="result"] are the direct childs of div[...
{"golden_diff": "diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py\n--- a/searx/engines/startpage.py\n+++ b/searx/engines/startpage.py\n@@ -32,8 +32,9 @@\n # specific xpath variables\n # ads xpath //div[@id=\"results\"]/div[@id=\"sponsored\"]//div[@class=\"result\"]\n # not ads: div[@class=\"result\"...
1,498
253
gh_patches_debug_19196
rasdani/github-patches
git_diff
pymedusa__Medusa-6867
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Free Mobile SMS notification failed Hi, I recently update Medusa, and since then, I didn't receive any SMS for started/finished downloads On the error log file I have this: ``` 2019-06-22 15:42:51 ERRO...
diff --git a/medusa/notifiers/freemobile.py b/medusa/notifiers/freemobile.py --- a/medusa/notifiers/freemobile.py +++ b/medusa/notifiers/freemobile.py @@ -3,7 +3,6 @@ from __future__ import unicode_literals import logging -from builtins import object from medusa import app from medusa.common import ( @@ -47,9 +...
{"golden_diff": "diff --git a/medusa/notifiers/freemobile.py b/medusa/notifiers/freemobile.py\n--- a/medusa/notifiers/freemobile.py\n+++ b/medusa/notifiers/freemobile.py\n@@ -3,7 +3,6 @@\n from __future__ import unicode_literals\n \n import logging\n-from builtins import object\n \n from medusa import app\n from medusa...
1,917
299
gh_patches_debug_22529
rasdani/github-patches
git_diff
lutris__lutris-1227
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Vulkan check will not work on certain distributions Note that this probably won't work on certain distributions, where this file, for instance, is actually called `/usr/lib/x86_64-linux-gnu/libvulkan.so.1` or...
diff --git a/lutris/util/vulkan.py b/lutris/util/vulkan.py --- a/lutris/util/vulkan.py +++ b/lutris/util/vulkan.py @@ -1,5 +1,6 @@ """Vulkan helper module""" import os +import re from enum import Enum class vulkan_available(Enum): @@ -8,11 +9,20 @@ SIXTY_FOUR = 2 ALL = 3 +def search_for_file(directory...
{"golden_diff": "diff --git a/lutris/util/vulkan.py b/lutris/util/vulkan.py\n--- a/lutris/util/vulkan.py\n+++ b/lutris/util/vulkan.py\n@@ -1,5 +1,6 @@\n \"\"\"Vulkan helper module\"\"\"\n import os\n+import re\n from enum import Enum\n \n class vulkan_available(Enum):\n@@ -8,11 +9,20 @@\n SIXTY_FOUR = 2\n ALL =...
656
401
gh_patches_debug_16786
rasdani/github-patches
git_diff
blaze__blaze-431
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Individual columns should be able to repr if not passed in CSV This issue title is possibly the worst ever, so here's an example: ``` python import tempfile import pandas as pd from blaze import * ``` This ...
diff --git a/blaze/api/table.py b/blaze/api/table.py --- a/blaze/api/table.py +++ b/blaze/api/table.py @@ -4,9 +4,7 @@ from ..expr.core import Expr from ..expr.table import TableSymbol, TableExpr -from ..data.python import Python from ..dispatch import dispatch -from ..data.core import DataDescriptor, discover fr...
{"golden_diff": "diff --git a/blaze/api/table.py b/blaze/api/table.py\n--- a/blaze/api/table.py\n+++ b/blaze/api/table.py\n@@ -4,9 +4,7 @@\n \n from ..expr.core import Expr\n from ..expr.table import TableSymbol, TableExpr\n-from ..data.python import Python\n from ..dispatch import dispatch\n-from ..data.core import Da...
1,565
204
gh_patches_debug_28013
rasdani/github-patches
git_diff
CTFd__CTFd-2344
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Challenge Preview Improvements Challenge Preview should probably preview in the context of a full page. Primarily because it's easier to theme this. --- END ISSUE --- Below are some code segments, each fro...
diff --git a/CTFd/admin/challenges.py b/CTFd/admin/challenges.py --- a/CTFd/admin/challenges.py +++ b/CTFd/admin/challenges.py @@ -3,7 +3,10 @@ from CTFd.admin import admin from CTFd.models import Challenges, Flags, Solves from CTFd.plugins.challenges import CHALLENGE_CLASSES, get_chal_class +from CTFd.schemas.tags ...
{"golden_diff": "diff --git a/CTFd/admin/challenges.py b/CTFd/admin/challenges.py\n--- a/CTFd/admin/challenges.py\n+++ b/CTFd/admin/challenges.py\n@@ -3,7 +3,10 @@\n from CTFd.admin import admin\n from CTFd.models import Challenges, Flags, Solves\n from CTFd.plugins.challenges import CHALLENGE_CLASSES, get_chal_class\n...
968
472
gh_patches_debug_19819
rasdani/github-patches
git_diff
chainer__chainer-3327
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Document about initializers Criteria for initializer arguments of links is complicated (https://github.com/chainer/chainer/pull/3259#issuecomment-325562538). We should write some dedicated documentation about...
diff --git a/chainer/links/connection/linear.py b/chainer/links/connection/linear.py --- a/chainer/links/connection/linear.py +++ b/chainer/links/connection/linear.py @@ -24,14 +24,11 @@ data pass at which time the size will be determined. out_size (int): Dimension of output vectors. nobi...
{"golden_diff": "diff --git a/chainer/links/connection/linear.py b/chainer/links/connection/linear.py\n--- a/chainer/links/connection/linear.py\n+++ b/chainer/links/connection/linear.py\n@@ -24,14 +24,11 @@\n data pass at which time the size will be determined.\n out_size (int): Dimension of output ...
1,690
285
gh_patches_debug_8039
rasdani/github-patches
git_diff
docker__docker-py-1399
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- docker-py installation breaks docker-compose im not quite sure if this is correct, but trying to install `docker-py` through pip after i've installed `docker-compose` breaks `docker-compose` with ``` Trac...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,10 +1,20 @@ #!/usr/bin/env python +from __future__ import print_function + import codecs import os import sys +import pip + from setuptools import setup, find_packages +if 'docker-py' in [x.project_name for x in pip.get_installed_distribution...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,10 +1,20 @@\n #!/usr/bin/env python\n+from __future__ import print_function\n+\n import codecs\n import os\n import sys\n \n+import pip\n+\n from setuptools import setup, find_packages\n \n+if 'docker-py' in [x.project_name for x i...
1,366
161
gh_patches_debug_54050
rasdani/github-patches
git_diff
python-discord__bot-1404
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add an `attachments` rule # Abstract We should have an antispam rule filtering small burst of images. # Rationale Currently, when a user posts 4 images in less than 10 seconds without any comment, ...
diff --git a/bot/rules/duplicates.py b/bot/rules/duplicates.py --- a/bot/rules/duplicates.py +++ b/bot/rules/duplicates.py @@ -13,6 +13,7 @@ if ( msg.author == last_message.author and msg.content == last_message.content + and msg.content ) )
{"golden_diff": "diff --git a/bot/rules/duplicates.py b/bot/rules/duplicates.py\n--- a/bot/rules/duplicates.py\n+++ b/bot/rules/duplicates.py\n@@ -13,6 +13,7 @@\n if (\n msg.author == last_message.author\n and msg.content == last_message.content\n+ and msg.content\n )\...
675
78
gh_patches_debug_21398
rasdani/github-patches
git_diff
vispy__vispy-751
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- vispy.plot.image fails on float64 textures --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `vispy/visuals/i...
diff --git a/vispy/visuals/image.py b/vispy/visuals/image.py --- a/vispy/visuals/image.py +++ b/vispy/visuals/image.py @@ -28,8 +28,8 @@ * 'subdivide': ImageVisual is represented as a grid of triangles with texture coordinates linearly mapped. - * 'impostor': ImageVisual is repr...
{"golden_diff": "diff --git a/vispy/visuals/image.py b/vispy/visuals/image.py\n--- a/vispy/visuals/image.py\n+++ b/vispy/visuals/image.py\n@@ -28,8 +28,8 @@\n \n * 'subdivide': ImageVisual is represented as a grid of triangles\n with texture coordinates linearly mapped.\n- * 'impost...
2,010
252
gh_patches_debug_39491
rasdani/github-patches
git_diff
akvo__akvo-rsr-3403
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- IATI export error when result has no quantitative indicators When running the IATI export, a result that has only qualitative indicators is reported as an error. This seems to be a bug introduced when we s...
diff --git a/akvo/iati/checks/fields/results.py b/akvo/iati/checks/fields/results.py --- a/akvo/iati/checks/fields/results.py +++ b/akvo/iati/checks/fields/results.py @@ -4,7 +4,7 @@ # See more details in the license.txt file located at the root folder of the Akvo RSR module. # For additional details on the GNU licen...
{"golden_diff": "diff --git a/akvo/iati/checks/fields/results.py b/akvo/iati/checks/fields/results.py\n--- a/akvo/iati/checks/fields/results.py\n+++ b/akvo/iati/checks/fields/results.py\n@@ -4,7 +4,7 @@\n # See more details in the license.txt file located at the root folder of the Akvo RSR module.\n # For additional de...
1,970
591
gh_patches_debug_14027
rasdani/github-patches
git_diff
cal-itp__benefits-451
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove all paragraph content from the viewmodel in `core:index` From https://github.com/cal-itp/benefits/issues/366 <img width="832" alt="image" src="https://user-images.githubusercontent.com/3673236/1632991...
diff --git a/benefits/core/views.py b/benefits/core/views.py --- a/benefits/core/views.py +++ b/benefits/core/views.py @@ -20,11 +20,6 @@ return _("core.pages.index.content_title") -def _index_paragraphs(): - """Helper returns the content paragraphs for the common index page.""" - return [_("core.pages.i...
{"golden_diff": "diff --git a/benefits/core/views.py b/benefits/core/views.py\n--- a/benefits/core/views.py\n+++ b/benefits/core/views.py\n@@ -20,11 +20,6 @@\n return _(\"core.pages.index.content_title\")\n \n \n-def _index_paragraphs():\n- \"\"\"Helper returns the content paragraphs for the common index page.\"...
1,866
180
gh_patches_debug_7083
rasdani/github-patches
git_diff
bridgecrewio__checkov-5222
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_GIT_4 always fail with terraform_plan **Describe the issue** Once a GitHub org/repo secret is created and stored in the terraform state, the check CKV_GIT_4 will always fail when scanning terraform plans...
diff --git a/checkov/terraform/checks/resource/github/SecretsEncrypted.py b/checkov/terraform/checks/resource/github/SecretsEncrypted.py --- a/checkov/terraform/checks/resource/github/SecretsEncrypted.py +++ b/checkov/terraform/checks/resource/github/SecretsEncrypted.py @@ -25,6 +25,10 @@ if plaintext and self...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/github/SecretsEncrypted.py b/checkov/terraform/checks/resource/github/SecretsEncrypted.py\n--- a/checkov/terraform/checks/resource/github/SecretsEncrypted.py\n+++ b/checkov/terraform/checks/resource/github/SecretsEncrypted.py\n@@ -25,6 +25,10 @@\n ...
1,030
168
gh_patches_debug_2251
rasdani/github-patches
git_diff
mirumee__ariadne-232
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update GraphQL Core Next & Starlette Issue for me to remember to update our core dependencies to latest versions before release. --- END ISSUE --- Below are some code segments, each from a relevant file. On...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ packages=["ariadne"], include_package_data=True, install_requires=[ - "graphql-core-next>=1.0.4", + "graphql-core-next<3.0.0", "python-multipart>=0.0.5", "starlette<0.13", "typing_ext...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -30,7 +30,7 @@\n packages=[\"ariadne\"],\n include_package_data=True,\n install_requires=[\n- \"graphql-core-next>=1.0.4\",\n+ \"graphql-core-next<3.0.0\",\n \"python-multipart>=0.0.5\",\n \"s...
668
108
gh_patches_debug_56857
rasdani/github-patches
git_diff
spesmilo__electrum-1112
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Hardcoded icon path in launcher for GNU/Linux systems Hi, currently the icon path specified in the created _.desktop_ launcher file is set to: _Icon=/usr/share/app-install/icons/electrum.png_ (see https:/...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ usr_share = os.path.join(sys.prefix, "share") data_files += [ (os.path.join(usr_share, 'applications/'), ['electrum.desktop']), - (os.path.join(usr_share, 'app-install', 'icons/'), ['icons/electrum.png']) + ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -21,7 +21,7 @@\n usr_share = os.path.join(sys.prefix, \"share\")\n data_files += [\n (os.path.join(usr_share, 'applications/'), ['electrum.desktop']),\n- (os.path.join(usr_share, 'app-install', 'icons/'), ['icon...
1,196
117
gh_patches_debug_2600
rasdani/github-patches
git_diff
dmlc__dgl-2505
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- jtnn example error NOCUDA=1 python3 vaetrain_dgl.py it shows NameError: name 'tensor' is not defined in dgl/examples/pytorch/jtnn/jtnn/nnutils.py", line 11, in cuda return tensor env: dgl 0.5.3 to...
diff --git a/examples/pytorch/jtnn/jtnn/nnutils.py b/examples/pytorch/jtnn/jtnn/nnutils.py --- a/examples/pytorch/jtnn/jtnn/nnutils.py +++ b/examples/pytorch/jtnn/jtnn/nnutils.py @@ -8,7 +8,7 @@ if torch.cuda.is_available() and not os.getenv('NOCUDA', None): return x.to(torch.device('cuda')) # works for...
{"golden_diff": "diff --git a/examples/pytorch/jtnn/jtnn/nnutils.py b/examples/pytorch/jtnn/jtnn/nnutils.py\n--- a/examples/pytorch/jtnn/jtnn/nnutils.py\n+++ b/examples/pytorch/jtnn/jtnn/nnutils.py\n@@ -8,7 +8,7 @@\n if torch.cuda.is_available() and not os.getenv('NOCUDA', None):\n return x.to(torch.device(...
875
133
gh_patches_debug_178
rasdani/github-patches
git_diff
napalm-automation__napalm-904
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `get_lldp_neighbors_detail()` fails on Arista 7150S ```python In [1]: from napalm.eos import EOSDriver In [2]: from getpass import getpass In [3]: with EOSDriver("arista", "bewing", getpass()) as d: ...
diff --git a/napalm/eos/constants.py b/napalm/eos/constants.py --- a/napalm/eos/constants.py +++ b/napalm/eos/constants.py @@ -9,4 +9,5 @@ "telephone": "telephone", "docsis": "docsis-cable-device", "station": "station", + "stationonly": "station", }
{"golden_diff": "diff --git a/napalm/eos/constants.py b/napalm/eos/constants.py\n--- a/napalm/eos/constants.py\n+++ b/napalm/eos/constants.py\n@@ -9,4 +9,5 @@\n \"telephone\": \"telephone\",\n \"docsis\": \"docsis-cable-device\",\n \"station\": \"station\",\n+ \"stationonly\": \"station\",\n }\n", "issue...
931
86
gh_patches_debug_34642
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-1571
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tracer and Meter provider lack environment variables Now that `Configuration` has been removed, both providers should use consistent environment variables. --- END ISSUE --- Below are some code segments, ea...
diff --git a/opentelemetry-api/src/opentelemetry/environment_variables/__init__.py b/opentelemetry-api/src/opentelemetry/environment_variables/__init__.py --- a/opentelemetry-api/src/opentelemetry/environment_variables/__init__.py +++ b/opentelemetry-api/src/opentelemetry/environment_variables/__init__.py @@ -19,3 +19,...
{"golden_diff": "diff --git a/opentelemetry-api/src/opentelemetry/environment_variables/__init__.py b/opentelemetry-api/src/opentelemetry/environment_variables/__init__.py\n--- a/opentelemetry-api/src/opentelemetry/environment_variables/__init__.py\n+++ b/opentelemetry-api/src/opentelemetry/environment_variables/__init...
1,159
566
gh_patches_debug_3448
rasdani/github-patches
git_diff
SciTools__cartopy-1245
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SlippyImageArtist cannot be composited For example, take the WMTS example and add a second layer. Then attempt to save as a PDF. ``` python import cartopy.crs as ccrs import matplotlib.pyplot as plt url = '...
diff --git a/lib/cartopy/mpl/slippy_image_artist.py b/lib/cartopy/mpl/slippy_image_artist.py --- a/lib/cartopy/mpl/slippy_image_artist.py +++ b/lib/cartopy/mpl/slippy_image_artist.py @@ -74,3 +74,8 @@ with ax.hold_limits(): self.set_extent(extent) super(SlippyImageArtist, self...
{"golden_diff": "diff --git a/lib/cartopy/mpl/slippy_image_artist.py b/lib/cartopy/mpl/slippy_image_artist.py\n--- a/lib/cartopy/mpl/slippy_image_artist.py\n+++ b/lib/cartopy/mpl/slippy_image_artist.py\n@@ -74,3 +74,8 @@\n with ax.hold_limits():\n self.set_extent(extent)\n super(...
1,762
143
gh_patches_debug_19761
rasdani/github-patches
git_diff
sopel-irc__sopel-1381
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ctrl-C doesn't run shutdown routines When pressing <kbd>Ctrl</kbd>-<kbd>C</kbd> to interrupt a Sopel instance running in the foreground of an active shell, it simply prints `KeyboardInterrupt` and exits seemi...
diff --git a/sopel/__init__.py b/sopel/__init__.py --- a/sopel/__init__.py +++ b/sopel/__init__.py @@ -68,7 +68,7 @@ 'work properly.') def signal_handler(sig, frame): - if sig == signal.SIGUSR1 or sig == signal.SIGTERM: + if sig == signal.SIGUSR1 or sig == signal.SIGTERM or sig == s...
{"golden_diff": "diff --git a/sopel/__init__.py b/sopel/__init__.py\n--- a/sopel/__init__.py\n+++ b/sopel/__init__.py\n@@ -68,7 +68,7 @@\n 'work properly.')\n \n def signal_handler(sig, frame):\n- if sig == signal.SIGUSR1 or sig == signal.SIGTERM:\n+ if sig == signal.SIGUSR1 or sig == s...
1,448
211
gh_patches_debug_40194
rasdani/github-patches
git_diff
getsentry__sentry-python-2033
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Do not add redis SET data in span description when `set_default_pii=False` ### Problem Statement Currently the redis integration records a span for all redis commands. This is good. But when `send_default_...
diff --git a/sentry_sdk/integrations/redis.py b/sentry_sdk/integrations/redis.py --- a/sentry_sdk/integrations/redis.py +++ b/sentry_sdk/integrations/redis.py @@ -2,7 +2,12 @@ from sentry_sdk import Hub from sentry_sdk.consts import OP -from sentry_sdk.utils import capture_internal_exceptions, logger +from sentry_s...
{"golden_diff": "diff --git a/sentry_sdk/integrations/redis.py b/sentry_sdk/integrations/redis.py\n--- a/sentry_sdk/integrations/redis.py\n+++ b/sentry_sdk/integrations/redis.py\n@@ -2,7 +2,12 @@\n \n from sentry_sdk import Hub\n from sentry_sdk.consts import OP\n-from sentry_sdk.utils import capture_internal_exception...
2,041
729
gh_patches_debug_6195
rasdani/github-patches
git_diff
pystiche__pystiche-132
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Create encoding preprocessors not until runtime Right now the preprocessors are created at import https://github.com/pmeier/pystiche/blob/cad5ab6e9485680f2543cf4397d0d21e72a88b9e/pystiche/enc/preprocessing...
diff --git a/pystiche/enc/preprocessing.py b/pystiche/enc/preprocessing.py --- a/pystiche/enc/preprocessing.py +++ b/pystiche/enc/preprocessing.py @@ -1,10 +1,10 @@ from torch import nn from pystiche.image import TorchPreprocessing, CaffePreprocessing -PREPROCESSORS = {"torch": TorchPreprocessing(), "caffe": CaffeP...
{"golden_diff": "diff --git a/pystiche/enc/preprocessing.py b/pystiche/enc/preprocessing.py\n--- a/pystiche/enc/preprocessing.py\n+++ b/pystiche/enc/preprocessing.py\n@@ -1,10 +1,10 @@\n from torch import nn\n from pystiche.image import TorchPreprocessing, CaffePreprocessing\n \n-PREPROCESSORS = {\"torch\": TorchPrepro...
443
158
gh_patches_debug_1042
rasdani/github-patches
git_diff
fossasia__open-event-server-395
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- list_events url is inconsistent in API v2 The url is `/events/` whereas it should be `/events` to be consistent with other urls. --- END ISSUE --- Below are some code segments, each from a relevant file. ...
diff --git a/open_event/api/events.py b/open_event/api/events.py --- a/open_event/api/events.py +++ b/open_event/api/events.py @@ -32,7 +32,7 @@ return get_object_or_404(EventModel, event_id) -@api.route('/') +@api.route('') class EventList(Resource): @api.doc('list_events') @api.marshal_list_wi...
{"golden_diff": "diff --git a/open_event/api/events.py b/open_event/api/events.py\n--- a/open_event/api/events.py\n+++ b/open_event/api/events.py\n@@ -32,7 +32,7 @@\n return get_object_or_404(EventModel, event_id)\n \n \n-@api.route('/')\n+@api.route('')\n class EventList(Resource):\n @api.doc('list_events'...
647
92
gh_patches_debug_6894
rasdani/github-patches
git_diff
ray-project__ray-1662
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [DataFrame] Error checking on Pandas version We need better reporting for issues with the Pandas version on a user's system. --- END ISSUE --- Below are some code segments, each from a relevant file. One o...
diff --git a/python/ray/dataframe/__init__.py b/python/ray/dataframe/__init__.py --- a/python/ray/dataframe/__init__.py +++ b/python/ray/dataframe/__init__.py @@ -1,8 +1,18 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function + +import pandas as pd import t...
{"golden_diff": "diff --git a/python/ray/dataframe/__init__.py b/python/ray/dataframe/__init__.py\n--- a/python/ray/dataframe/__init__.py\n+++ b/python/ray/dataframe/__init__.py\n@@ -1,8 +1,18 @@\n from __future__ import absolute_import\n from __future__ import division\n from __future__ import print_function\n+\n+impo...
597
181
gh_patches_debug_10727
rasdani/github-patches
git_diff
akvo__akvo-rsr-2712
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- react-clickoutside doesn't close the date-picker on clicking outside Created via Reamaze: Link: https://akvoo.reamaze.com/admin/conversations/bug-10 Assignee: Anthony Gonzalez React-clickoutside needs ...
diff --git a/akvo/rsr/context_processors.py b/akvo/rsr/context_processors.py --- a/akvo/rsr/context_processors.py +++ b/akvo/rsr/context_processors.py @@ -58,7 +58,7 @@ 'organisation': page.organisation, 'return_url': page.return_url, 'return_url_text': page.custom_return_url_text...
{"golden_diff": "diff --git a/akvo/rsr/context_processors.py b/akvo/rsr/context_processors.py\n--- a/akvo/rsr/context_processors.py\n+++ b/akvo/rsr/context_processors.py\n@@ -58,7 +58,7 @@\n 'organisation': page.organisation,\n 'return_url': page.return_url,\n 'return_url_text': page...
958
145
gh_patches_debug_9837
rasdani/github-patches
git_diff
StackStorm__st2-2489
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- action alias regex fails to evaluate null optional arguments when type is not string For example, something like: `update {{hostname}}( {{count}} times)?` Works for `!update myhost 2 times` Fails for `!upda...
diff --git a/st2common/st2common/models/utils/action_alias_utils.py b/st2common/st2common/models/utils/action_alias_utils.py --- a/st2common/st2common/models/utils/action_alias_utils.py +++ b/st2common/st2common/models/utils/action_alias_utils.py @@ -82,7 +82,9 @@ values = matched_stream.groupdict() ...
{"golden_diff": "diff --git a/st2common/st2common/models/utils/action_alias_utils.py b/st2common/st2common/models/utils/action_alias_utils.py\n--- a/st2common/st2common/models/utils/action_alias_utils.py\n+++ b/st2common/st2common/models/utils/action_alias_utils.py\n@@ -82,7 +82,9 @@\n values = matched_stre...
1,608
170
gh_patches_debug_31347
rasdani/github-patches
git_diff
pre-commit__pre-commit-2641
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- dotnet install fails for prefixed packages ### search you tried in the issue tracker dotnet tool ### describe your issue A bit of an oversight when constructing `tool_name` here: https://github.com/pre-...
diff --git a/pre_commit/languages/dotnet.py b/pre_commit/languages/dotnet.py --- a/pre_commit/languages/dotnet.py +++ b/pre_commit/languages/dotnet.py @@ -2,6 +2,9 @@ import contextlib import os.path +import re +import xml.etree.ElementTree +import zipfile from typing import Generator from typing import Sequence ...
{"golden_diff": "diff --git a/pre_commit/languages/dotnet.py b/pre_commit/languages/dotnet.py\n--- a/pre_commit/languages/dotnet.py\n+++ b/pre_commit/languages/dotnet.py\n@@ -2,6 +2,9 @@\n \n import contextlib\n import os.path\n+import re\n+import xml.etree.ElementTree\n+import zipfile\n from typing import Generator\n ...
1,689
491
gh_patches_debug_15047
rasdani/github-patches
git_diff
freedomofpress__securedrop-2694
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tor2Web warning does not display well # Bug ## Description The &lt;strong> tags are incorrectly set. ## Steps to Reproduce firefox https://zdf4nikyuswdzbt6.onion.to/ ## Expected Behavior Spa...
diff --git a/securedrop/source_app/__init__.py b/securedrop/source_app/__init__.py --- a/securedrop/source_app/__init__.py +++ b/securedrop/source_app/__init__.py @@ -71,8 +71,10 @@ # about Tor2Web, corresponding to the initial page load. if 'X-tor2web' in request.headers: flash(Markup(ge...
{"golden_diff": "diff --git a/securedrop/source_app/__init__.py b/securedrop/source_app/__init__.py\n--- a/securedrop/source_app/__init__.py\n+++ b/securedrop/source_app/__init__.py\n@@ -71,8 +71,10 @@\n # about Tor2Web, corresponding to the initial page load.\n if 'X-tor2web' in request.headers:\n ...
1,871
214
gh_patches_debug_32731
rasdani/github-patches
git_diff
microsoft__ptvsd-1454
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Stop on entry hangs the debugger ## Environment data - PTVSD version: master - OS and version: windows - Python version (& distribution if applicable, e.g. Anaconda): 3.6 - Using VS Code or Visual Studi...
diff --git a/src/ptvsd/debugger.py b/src/ptvsd/debugger.py --- a/src/ptvsd/debugger.py +++ b/src/ptvsd/debugger.py @@ -2,50 +2,38 @@ # Licensed under the MIT License. See LICENSE in the project root # for license information. -import sys - import ptvsd.log -from ptvsd._local import run_module, run_file, run_main -...
{"golden_diff": "diff --git a/src/ptvsd/debugger.py b/src/ptvsd/debugger.py\n--- a/src/ptvsd/debugger.py\n+++ b/src/ptvsd/debugger.py\n@@ -2,50 +2,38 @@\n # Licensed under the MIT License. See LICENSE in the project root\n # for license information.\n \n-import sys\n-\n import ptvsd.log\n-from ptvsd._local import run_m...
911
706
gh_patches_debug_32318
rasdani/github-patches
git_diff
opsdroid__opsdroid-210
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add case-insensitive kwarg to the regex matcher It would be nice to specify case insensitive matching in the regex matcher. e.g ```python @match_regex(r'myregex', case_sensitive=False) async def myskill...
diff --git a/opsdroid/matchers.py b/opsdroid/matchers.py --- a/opsdroid/matchers.py +++ b/opsdroid/matchers.py @@ -9,12 +9,14 @@ _LOGGER = logging.getLogger(__name__) -def match_regex(regex): +def match_regex(regex, case_sensitive=True): """Return regex match decorator.""" def matcher(func): """...
{"golden_diff": "diff --git a/opsdroid/matchers.py b/opsdroid/matchers.py\n--- a/opsdroid/matchers.py\n+++ b/opsdroid/matchers.py\n@@ -9,12 +9,14 @@\n _LOGGER = logging.getLogger(__name__)\n \n \n-def match_regex(regex):\n+def match_regex(regex, case_sensitive=True):\n \"\"\"Return regex match decorator.\"\"\"\n ...
1,420
404
gh_patches_debug_16469
rasdani/github-patches
git_diff
google-deepmind__optax-465
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Better tests for utils. Optax tests did not catch a problem with one of the type annotations in #367. This is due to `utils` not having good test coverage. I'm marking this as "good first issue". Any test...
diff --git a/optax/_src/utils.py b/optax/_src/utils.py --- a/optax/_src/utils.py +++ b/optax/_src/utils.py @@ -59,8 +59,22 @@ NxDxD tensor, with the same contents as `a` but with the diagonal changed to `new_diags`. """ + a_dim, new_diags_dim = len(a.shape), len(new_diags.shape) + if a_dim != 3: + r...
{"golden_diff": "diff --git a/optax/_src/utils.py b/optax/_src/utils.py\n--- a/optax/_src/utils.py\n+++ b/optax/_src/utils.py\n@@ -59,8 +59,22 @@\n NxDxD tensor, with the same contents as `a` but with the diagonal\n changed to `new_diags`.\n \"\"\"\n+ a_dim, new_diags_dim = len(a.shape), len(new_diags.shap...
1,978
348
gh_patches_debug_14244
rasdani/github-patches
git_diff
scrapy__scrapy-1188
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Change the scrapy short description The Scrapy short description says: > Scrapy, a fast high-level screen scraping and web crawling framework. I think would be better: > Scrapy, a fast high-level web crawl...
diff --git a/scrapy/__init__.py b/scrapy/__init__.py --- a/scrapy/__init__.py +++ b/scrapy/__init__.py @@ -1,5 +1,5 @@ """ -Scrapy - a web crawling and screen scraping framework written for Python +Scrapy - a web crawling and web scraping framework written for Python """ __all__ = ['__version__', 'version_info', '...
{"golden_diff": "diff --git a/scrapy/__init__.py b/scrapy/__init__.py\n--- a/scrapy/__init__.py\n+++ b/scrapy/__init__.py\n@@ -1,5 +1,5 @@\n \"\"\"\n-Scrapy - a web crawling and screen scraping framework written for Python\n+Scrapy - a web crawling and web scraping framework written for Python\n \"\"\"\n \n __all__ = [...
1,364
210
gh_patches_debug_59247
rasdani/github-patches
git_diff
projectmesa__mesa-1860
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mesa.visualization.chartmodule doesn't work As shown in the picture, I run the boltzmann_wealth_model in the mesa example, but the line chart is not displayed normally. Can anyone help me? <img width="788" a...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ "click", "cookiecutter", "matplotlib", - "mesa_viz_tornado", + "mesa_viz_tornado~=0.1.0,>=0.1.2", "networkx", "numpy", "pandas",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -8,7 +8,7 @@\n \"click\",\n \"cookiecutter\",\n \"matplotlib\",\n- \"mesa_viz_tornado\",\n+ \"mesa_viz_tornado~=0.1.0,>=0.1.2\",\n \"networkx\",\n \"numpy\",\n \"pandas\",\n", "issue": "mesa.visualization...
1,177
91
gh_patches_debug_11847
rasdani/github-patches
git_diff
CTFd__CTFd-2030
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SubmissionSchema needs more nested fields I'm having trouble accessing a user's name from a SubmissionSchema dump. This is probably because we need more Nested Fields on the Schema in addition to just the nes...
diff --git a/CTFd/schemas/submissions.py b/CTFd/schemas/submissions.py --- a/CTFd/schemas/submissions.py +++ b/CTFd/schemas/submissions.py @@ -2,11 +2,15 @@ from CTFd.models import Submissions, ma from CTFd.schemas.challenges import ChallengeSchema +from CTFd.schemas.teams import TeamSchema +from CTFd.schemas.users...
{"golden_diff": "diff --git a/CTFd/schemas/submissions.py b/CTFd/schemas/submissions.py\n--- a/CTFd/schemas/submissions.py\n+++ b/CTFd/schemas/submissions.py\n@@ -2,11 +2,15 @@\n \n from CTFd.models import Submissions, ma\n from CTFd.schemas.challenges import ChallengeSchema\n+from CTFd.schemas.teams import TeamSchema\...
616
214
gh_patches_debug_24458
rasdani/github-patches
git_diff
chainer__chainer-4108
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support optimization for rsqrt CUDA provides `rsqrt` function, which is faster than doing `1.0 / sqrt(x)`. It is better to provide custom kernel in Chainer or directly support in CuPy. (Note that NumPy does...
diff --git a/chainer/functions/math/sqrt.py b/chainer/functions/math/sqrt.py --- a/chainer/functions/math/sqrt.py +++ b/chainer/functions/math/sqrt.py @@ -1,3 +1,5 @@ +import numpy + from chainer.backends import cuda from chainer import function_node from chainer import utils @@ -27,6 +29,36 @@ return gy / ...
{"golden_diff": "diff --git a/chainer/functions/math/sqrt.py b/chainer/functions/math/sqrt.py\n--- a/chainer/functions/math/sqrt.py\n+++ b/chainer/functions/math/sqrt.py\n@@ -1,3 +1,5 @@\n+import numpy\n+\n from chainer.backends import cuda\n from chainer import function_node\n from chainer import utils\n@@ -27,6 +29,3...
817
411
gh_patches_debug_34864
rasdani/github-patches
git_diff
RedHatInsights__insights-core-1741
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SMDA* is not business SAP instances ~~~ # cat insights_commands/usr.sap.hostctrl.exe.saphostctrl_-function_GetCIMObject_-enuminstances_SAPInstance ********************************************************* ...
diff --git a/insights/combiners/sap.py b/insights/combiners/sap.py --- a/insights/combiners/sap.py +++ b/insights/combiners/sap.py @@ -52,6 +52,8 @@ 'lu0417' >>> 'D22' in saps.local_instances False + >>> len(saps.business_instances) + 2 >>> saps.is_hana True ...
{"golden_diff": "diff --git a/insights/combiners/sap.py b/insights/combiners/sap.py\n--- a/insights/combiners/sap.py\n+++ b/insights/combiners/sap.py\n@@ -52,6 +52,8 @@\n 'lu0417'\n >>> 'D22' in saps.local_instances\n False\n+ >>> len(saps.business_instances)\n+ 2\n >>> sap...
1,809
525
gh_patches_debug_16856
rasdani/github-patches
git_diff
googleapis__google-cloud-python-3348
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error reporting system tests needed Follow up to #3263. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `err...
diff --git a/error_reporting/nox.py b/error_reporting/nox.py --- a/error_reporting/nox.py +++ b/error_reporting/nox.py @@ -64,6 +64,28 @@ 'python', 'setup.py', 'check', '--restructuredtext', '--strict') +@nox.session +@nox.parametrize('python_version', ['2.7', '3.6']) +def system_tests(session, python_vers...
{"golden_diff": "diff --git a/error_reporting/nox.py b/error_reporting/nox.py\n--- a/error_reporting/nox.py\n+++ b/error_reporting/nox.py\n@@ -64,6 +64,28 @@\n 'python', 'setup.py', 'check', '--restructuredtext', '--strict')\n \n \n+@nox.session\n+@nox.parametrize('python_version', ['2.7', '3.6'])\n+def system_...
1,025
278
gh_patches_debug_12060
rasdani/github-patches
git_diff
ivy-llc__ivy-21310
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- adaptive_avg_pool2d Close #20804 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ivy/functional/frontends/m...
diff --git a/ivy/functional/frontends/mindspore/ops/function/nn_func.py b/ivy/functional/frontends/mindspore/ops/function/nn_func.py --- a/ivy/functional/frontends/mindspore/ops/function/nn_func.py +++ b/ivy/functional/frontends/mindspore/ops/function/nn_func.py @@ -40,4 +40,10 @@ @with_supported_dtypes({"2.0 and belo...
{"golden_diff": "diff --git a/ivy/functional/frontends/mindspore/ops/function/nn_func.py b/ivy/functional/frontends/mindspore/ops/function/nn_func.py\n--- a/ivy/functional/frontends/mindspore/ops/function/nn_func.py\n+++ b/ivy/functional/frontends/mindspore/ops/function/nn_func.py\n@@ -40,4 +40,10 @@\n @with_supported_...
759
294
gh_patches_debug_10346
rasdani/github-patches
git_diff
liberapay__liberapay.com-180
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix connecting a GitHub org I tried connecting the GitHub liberapay org to the [LiberapayOrg](https://liberapay.com/LiberapayOrg/) account but I ended up on the take-over confirmation page asking me to transf...
diff --git a/liberapay/elsewhere/github.py b/liberapay/elsewhere/github.py --- a/liberapay/elsewhere/github.py +++ b/liberapay/elsewhere/github.py @@ -39,8 +39,7 @@ x_avatar_url = key('avatar_url') x_is_team = key('type', clean=lambda t: t.lower() == 'organization') - def is_team_admin(self, team_name, s...
{"golden_diff": "diff --git a/liberapay/elsewhere/github.py b/liberapay/elsewhere/github.py\n--- a/liberapay/elsewhere/github.py\n+++ b/liberapay/elsewhere/github.py\n@@ -39,8 +39,7 @@\n x_avatar_url = key('avatar_url')\n x_is_team = key('type', clean=lambda t: t.lower() == 'organization')\n \n- def is_team_...
830
224
gh_patches_debug_9374
rasdani/github-patches
git_diff
pyca__cryptography-1422
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Key versioning/key rotation support (wishlist) It would be nice if Fernet had built-in support for key versioning. I don't know exactly what the API would look like, but the idea would be to allow encrypting...
diff --git a/cryptography/fernet.py b/cryptography/fernet.py --- a/cryptography/fernet.py +++ b/cryptography/fernet.py @@ -127,3 +127,24 @@ except ValueError: raise InvalidToken return unpadded + + +class MultiFernet(object): + def __init__(self, fernets): + fernets = list(ferne...
{"golden_diff": "diff --git a/cryptography/fernet.py b/cryptography/fernet.py\n--- a/cryptography/fernet.py\n+++ b/cryptography/fernet.py\n@@ -127,3 +127,24 @@\n except ValueError:\n raise InvalidToken\n return unpadded\n+\n+\n+class MultiFernet(object):\n+ def __init__(self, fernets):\n+...
1,639
207
gh_patches_debug_24010
rasdani/github-patches
git_diff
jazzband__pip-tools-798
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- --cert option for pip-sync pip-sync is missing the `--cert` and `--client-cert` options, that are (somehow, see #712) implemented for pip-compile. --- END ISSUE --- Below are some code segments, each from a...
diff --git a/piptools/scripts/sync.py b/piptools/scripts/sync.py --- a/piptools/scripts/sync.py +++ b/piptools/scripts/sync.py @@ -55,6 +55,12 @@ @click.option( "--user", "user_only", is_flag=True, help="Restrict attention to user directory" ) +@click.option("--cert", help="Path to alternate CA bundle.") +@click...
{"golden_diff": "diff --git a/piptools/scripts/sync.py b/piptools/scripts/sync.py\n--- a/piptools/scripts/sync.py\n+++ b/piptools/scripts/sync.py\n@@ -55,6 +55,12 @@\n @click.option(\n \"--user\", \"user_only\", is_flag=True, help=\"Restrict attention to user directory\"\n )\n+@click.option(\"--cert\", help=\"Path ...
1,439
293
gh_patches_debug_11925
rasdani/github-patches
git_diff
elastic__apm-agent-python-1155
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- RemovedInDjango41Warning **Describe the bug**: ... ```shell ../../../../.pyenv/versions/3.8.2/lib/python3.8/site-packages/django/apps/registry.py:91 /Users/mingyu.wu/.pyenv/versions/3.8.2/lib/python3.8...
diff --git a/elasticapm/contrib/django/__init__.py b/elasticapm/contrib/django/__init__.py --- a/elasticapm/contrib/django/__init__.py +++ b/elasticapm/contrib/django/__init__.py @@ -27,7 +27,9 @@ # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHE...
{"golden_diff": "diff --git a/elasticapm/contrib/django/__init__.py b/elasticapm/contrib/django/__init__.py\n--- a/elasticapm/contrib/django/__init__.py\n+++ b/elasticapm/contrib/django/__init__.py\n@@ -27,7 +27,9 @@\n # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n # OR TORT (INCLUD...
933
202
gh_patches_debug_11882
rasdani/github-patches
git_diff
translate__pootle-6471
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: 'QuerySet' object has no attribute 'keys' The following appears when you first go to `/` and Pootle tries to redirect you to your language based on your Accept-Lang headers. Note this will se...
diff --git a/pootle/apps/pootle_app/views/index/index.py b/pootle/apps/pootle_app/views/index/index.py --- a/pootle/apps/pootle_app/views/index/index.py +++ b/pootle/apps/pootle_app/views/index/index.py @@ -89,9 +89,9 @@ if lang is None: lang = get_lang_from_http_header( request, ...
{"golden_diff": "diff --git a/pootle/apps/pootle_app/views/index/index.py b/pootle/apps/pootle_app/views/index/index.py\n--- a/pootle/apps/pootle_app/views/index/index.py\n+++ b/pootle/apps/pootle_app/views/index/index.py\n@@ -89,9 +89,9 @@\n if lang is None:\n lang = get_lang_from_http_header(\n ...
1,465
183
gh_patches_debug_10221
rasdani/github-patches
git_diff
data-for-change__anyway-164
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Move to postgres That's the database of choice hasadna uses <!--- @huboard:{"order":125.5,"milestone_order":81,"custom_state":""} --> --- END ISSUE --- Below are some code segments, each from a relevant f...
diff --git a/config.py b/config.py --- a/config.py +++ b/config.py @@ -8,7 +8,7 @@ # -SQLALCHEMY_DATABASE_URI = os.environ.get('CLEARDB_DATABASE_URL') +SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') SQLALCHEMY_POOL_RECYCLE = 60 diff --git a/mysqlshell.py b/mysqlshell.py deleted file mode 100755 --- ...
{"golden_diff": "diff --git a/config.py b/config.py\n--- a/config.py\n+++ b/config.py\n@@ -8,7 +8,7 @@\n #\n \n \n-SQLALCHEMY_DATABASE_URI = os.environ.get('CLEARDB_DATABASE_URL')\n+SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL')\n SQLALCHEMY_POOL_RECYCLE = 60\n \n \ndiff --git a/mysqlshell.py b/mysqlshell.py\...
634
242
gh_patches_debug_38347
rasdani/github-patches
git_diff
NVIDIA-Merlin__NVTabular-568
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fill Missing Op option to create a new binary column indicating the value was replaced. Fill Missing Op should have the option to create a new binary column indicating whether the column was filled or not for...
diff --git a/nvtabular/ops/fill.py b/nvtabular/ops/fill.py --- a/nvtabular/ops/fill.py +++ b/nvtabular/ops/fill.py @@ -36,18 +36,34 @@ ----------- fill_val : float, default 0 The constant value to replace missing values with. + add_binary_cols : boolean, default False + When True, adds bina...
{"golden_diff": "diff --git a/nvtabular/ops/fill.py b/nvtabular/ops/fill.py\n--- a/nvtabular/ops/fill.py\n+++ b/nvtabular/ops/fill.py\n@@ -36,18 +36,34 @@\n -----------\n fill_val : float, default 0\n The constant value to replace missing values with.\n+ add_binary_cols : boolean, default False\n+ ...
1,280
682
gh_patches_debug_10704
rasdani/github-patches
git_diff
facebookresearch__fairseq-4805
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [fairseq] Guard call to `shape_as_tensor` with `is_in_onnx_export()` This is a no-op in eager and in ONNX export, but it's better for other tracers if this is preserved as shapes directly instead of converted...
diff --git a/fairseq/modules/sinusoidal_positional_embedding.py b/fairseq/modules/sinusoidal_positional_embedding.py --- a/fairseq/modules/sinusoidal_positional_embedding.py +++ b/fairseq/modules/sinusoidal_positional_embedding.py @@ -97,7 +97,7 @@ if self.onnx_trace: flat_embeddings = self.weight...
{"golden_diff": "diff --git a/fairseq/modules/sinusoidal_positional_embedding.py b/fairseq/modules/sinusoidal_positional_embedding.py\n--- a/fairseq/modules/sinusoidal_positional_embedding.py\n+++ b/fairseq/modules/sinusoidal_positional_embedding.py\n@@ -97,7 +97,7 @@\n if self.onnx_trace:\n flat_em...
1,543
164
gh_patches_debug_8031
rasdani/github-patches
git_diff
ansible__ansible-22664
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- syslog_json callback doesn't cast SYSLOG_PORT value from environment as integer ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Bug Report ##### COMPONENT NAME <!--- Name of the module...
diff --git a/lib/ansible/plugins/callback/syslog_json.py b/lib/ansible/plugins/callback/syslog_json.py --- a/lib/ansible/plugins/callback/syslog_json.py +++ b/lib/ansible/plugins/callback/syslog_json.py @@ -38,7 +38,7 @@ self.handler = logging.handlers.SysLogHandler( address = (os.getenv('SYSLOG...
{"golden_diff": "diff --git a/lib/ansible/plugins/callback/syslog_json.py b/lib/ansible/plugins/callback/syslog_json.py\n--- a/lib/ansible/plugins/callback/syslog_json.py\n+++ b/lib/ansible/plugins/callback/syslog_json.py\n@@ -38,7 +38,7 @@\n \n self.handler = logging.handlers.SysLogHandler(\n addre...
1,511
140
gh_patches_debug_26977
rasdani/github-patches
git_diff
dotkom__onlineweb4-781
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Registration form needs help text To be a valid online user the user must register with their student emails. This is not indicated in the registration form. --- END ISSUE --- Below are some code segments,...
diff --git a/apps/authentication/forms.py b/apps/authentication/forms.py --- a/apps/authentication/forms.py +++ b/apps/authentication/forms.py @@ -40,14 +40,14 @@ return False class RegisterForm(forms.Form): - username = forms.CharField(label=_("Brukernavn"), max_length=20) - first_name = forms.CharFi...
{"golden_diff": "diff --git a/apps/authentication/forms.py b/apps/authentication/forms.py\n--- a/apps/authentication/forms.py\n+++ b/apps/authentication/forms.py\n@@ -40,14 +40,14 @@\n return False\n \n class RegisterForm(forms.Form):\n- username = forms.CharField(label=_(\"Brukernavn\"), max_length=20)\n- ...
1,469
402
gh_patches_debug_32213
rasdani/github-patches
git_diff
mesonbuild__meson-840
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- setup.py: Install scripts without extensions on UNIX-like platforms Because of issue #394 , meson install scripts as `xxx.py` , but in linux, install script with a extension name is no a good practice. And ch...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -14,7 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +import os import sys +from os import path if sys.version_info[0] < 3: print('Tried to install with Python 2, Meson only su...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -14,7 +14,9 @@\n # See the License for the specific language governing permissions and\n # limitations under the License.\n \n+import os\n import sys\n+from os import path\n \n if sys.version_info[0] < 3:\n print('Tried to install...
1,048
436
gh_patches_debug_16211
rasdani/github-patches
git_diff
google__jax-326
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- jax missing scipy.special.expit Would be possible to add gradients for `expit` and `logit`? --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain ...
diff --git a/jax/scipy/special.py b/jax/scipy/special.py --- a/jax/scipy/special.py +++ b/jax/scipy/special.py @@ -19,7 +19,7 @@ import scipy.special as osp_special from .. import lax -from ..numpy.lax_numpy import _wraps +from ..numpy.lax_numpy import _wraps, asarray # need to create new functions because _wr...
{"golden_diff": "diff --git a/jax/scipy/special.py b/jax/scipy/special.py\n--- a/jax/scipy/special.py\n+++ b/jax/scipy/special.py\n@@ -19,7 +19,7 @@\n import scipy.special as osp_special\n \n from .. import lax\n-from ..numpy.lax_numpy import _wraps\n+from ..numpy.lax_numpy import _wraps, asarray\n \n \n # need to crea...
642
290
gh_patches_debug_516
rasdani/github-patches
git_diff
meltano__meltano-7210
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- feature: Python 3.11 support ### Feature scope Other ### Description Python 3.11.0 is planned to be officially released as of 2022-10-24. We should add it to our test matrix, and build Docker images for it...
diff --git a/noxfile.py b/noxfile.py --- a/noxfile.py +++ b/noxfile.py @@ -20,7 +20,7 @@ package = "meltano" -python_versions = ["3.10", "3.9", "3.8", "3.7"] +python_versions = ["3.11", "3.10", "3.9", "3.8", "3.7"] main_python_version = "3.9" locations = "src", "tests", "noxfile.py"
{"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -20,7 +20,7 @@\n \n \n package = \"meltano\"\n-python_versions = [\"3.10\", \"3.9\", \"3.8\", \"3.7\"]\n+python_versions = [\"3.11\", \"3.10\", \"3.9\", \"3.8\", \"3.7\"]\n main_python_version = \"3.9\"\n locations = \"src\", ...
1,193
125
gh_patches_debug_11609
rasdani/github-patches
git_diff
google-research__text-to-text-transfer-transformer-39
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Do we support GPU distributed training? Hi, thanks for the awesome project! Does the code base support distributed training? If not, is it possible to support it after some code modifications? By the wa...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setuptools.setup( name='t5', - version='0.1.7', + version='0.1.8', description='Text-to-text transfer transformer', long_description=_LONG_DESCRIPTION, long_description_content_type='text/markdown', @@ -41,7 +4...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -22,7 +22,7 @@\n \n setuptools.setup(\n name='t5',\n- version='0.1.7',\n+ version='0.1.8',\n description='Text-to-text transfer transformer',\n long_description=_LONG_DESCRIPTION,\n long_description_content_type=...
1,029
161
gh_patches_debug_43005
rasdani/github-patches
git_diff
deepset-ai__haystack-6304
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `HTMLToDocument` to add `ByteStream` metadata to Document `HTMLToDocument` converter, when receiving a `ByteStream` from the `LinkContentFetcher` does not add the url to the metadata of the Document. The URL...
diff --git a/haystack/preview/components/file_converters/html.py b/haystack/preview/components/file_converters/html.py --- a/haystack/preview/components/file_converters/html.py +++ b/haystack/preview/components/file_converters/html.py @@ -1,6 +1,6 @@ import logging -from typing import List, Union from pathlib import ...
{"golden_diff": "diff --git a/haystack/preview/components/file_converters/html.py b/haystack/preview/components/file_converters/html.py\n--- a/haystack/preview/components/file_converters/html.py\n+++ b/haystack/preview/components/file_converters/html.py\n@@ -1,6 +1,6 @@\n import logging\n-from typing import List, Union...
910
849
gh_patches_debug_23254
rasdani/github-patches
git_diff
facebookresearch__ParlAI-1939
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: 'dict' object has no attribute 'force_set' **Bug description** When I try the pretrained model of Self-feeding Chatbot, by `python projects/self_feeding/interactive.py --model-file zoo:self_f...
diff --git a/parlai/agents/local_human/local_human.py b/parlai/agents/local_human/local_human.py --- a/parlai/agents/local_human/local_human.py +++ b/parlai/agents/local_human/local_human.py @@ -8,6 +8,7 @@ """ from parlai.core.agents import Agent +from parlai.core.message import Message from parlai.core.utils imp...
{"golden_diff": "diff --git a/parlai/agents/local_human/local_human.py b/parlai/agents/local_human/local_human.py\n--- a/parlai/agents/local_human/local_human.py\n+++ b/parlai/agents/local_human/local_human.py\n@@ -8,6 +8,7 @@\n \"\"\"\n \n from parlai.core.agents import Agent\n+from parlai.core.message import Message\...
1,180
256
gh_patches_debug_16688
rasdani/github-patches
git_diff
bids-standard__pybids-21
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- get_fieldmaps not compatible with multiple 'intendedfor' currently `if path.endswith(metadata["IntendedFor"]):` assumes string, but current specs allow list as well get_fieldmaps not compatible with multiple...
diff --git a/bids/grabbids/bids_layout.py b/bids/grabbids/bids_layout.py --- a/bids/grabbids/bids_layout.py +++ b/bids/grabbids/bids_layout.py @@ -67,7 +67,11 @@ extensions=['nii.gz', 'nii']): metadata = self.get_metadata(file.filename) if metadata and "IntendedFo...
{"golden_diff": "diff --git a/bids/grabbids/bids_layout.py b/bids/grabbids/bids_layout.py\n--- a/bids/grabbids/bids_layout.py\n+++ b/bids/grabbids/bids_layout.py\n@@ -67,7 +67,11 @@\n extensions=['nii.gz', 'nii']):\n metadata = self.get_metadata(file.filename)\n if m...
1,966
192
gh_patches_debug_628
rasdani/github-patches
git_diff
litestar-org__litestar-1633
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- StaticFilesConfig and virtual directories I'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/usin...
diff --git a/tools/build_docs.py b/tools/build_docs.py --- a/tools/build_docs.py +++ b/tools/build_docs.py @@ -90,7 +90,7 @@ build( output_dir=args.output, version=args.version, - ignore_missing_output=args.ignore_missing_output, + ignore_missing_output=args.ignore_missing_examples_...
{"golden_diff": "diff --git a/tools/build_docs.py b/tools/build_docs.py\n--- a/tools/build_docs.py\n+++ b/tools/build_docs.py\n@@ -90,7 +90,7 @@\n build(\n output_dir=args.output,\n version=args.version,\n- ignore_missing_output=args.ignore_missing_output,\n+ ignore_missing_output=args...
1,344
77
gh_patches_debug_22748
rasdani/github-patches
git_diff
dotkom__onlineweb4-2246
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Membership application uses email object instead of email-address Same as #2219 https://sentry.io/organizations/dotkom/issues/890887549/?project=204971&referrer=github_plugin ``` TypeError: object of type '...
diff --git a/apps/approval/signals.py b/apps/approval/signals.py --- a/apps/approval/signals.py +++ b/apps/approval/signals.py @@ -55,4 +55,4 @@ if created: send_committee_application_notification(instance, [settings.EMAIL_OPPTAK], link_to_admin=True) if settings.APPROVAL_SETTINGS.get('SEND_COMMI...
{"golden_diff": "diff --git a/apps/approval/signals.py b/apps/approval/signals.py\n--- a/apps/approval/signals.py\n+++ b/apps/approval/signals.py\n@@ -55,4 +55,4 @@\n if created:\n send_committee_application_notification(instance, [settings.EMAIL_OPPTAK], link_to_admin=True)\n if settings.APPROVAL_S...
1,849
264
gh_patches_debug_32292
rasdani/github-patches
git_diff
CiviWiki__OpenCiviWiki-1088
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Migrate threads urls to path in `threads` app, we need to change `url()` function with `path()` function as discussed in #1066 https://github.com/CiviWiki/OpenCiviWiki/blob/d7f24fad7c0a2565da3bf2cd54e89a8...
diff --git a/project/threads/urls.py b/project/threads/urls.py --- a/project/threads/urls.py +++ b/project/threads/urls.py @@ -1,4 +1,5 @@ -from django.conf.urls import include, url +from django.conf.urls import include +from django.urls import path from rest_framework.routers import DefaultRouter from .api im...
{"golden_diff": "diff --git a/project/threads/urls.py b/project/threads/urls.py\n--- a/project/threads/urls.py\n+++ b/project/threads/urls.py\n@@ -1,4 +1,5 @@\n-from django.conf.urls import include, url\r\n+from django.conf.urls import include\r\n+from django.urls import path\r\n from rest_framework.routers import Defa...
1,245
660
gh_patches_debug_19561
rasdani/github-patches
git_diff
networkx__networkx-6503
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Join operation in trees---not handling label_attribute <!-- If you have a general question about NetworkX, please use the discussions tab to create a new discussion --> <!--- Provide a general summary of t...
diff --git a/networkx/algorithms/tree/operations.py b/networkx/algorithms/tree/operations.py --- a/networkx/algorithms/tree/operations.py +++ b/networkx/algorithms/tree/operations.py @@ -78,25 +78,13 @@ # Get the relabeled roots. roots = [ - next(v for v, d in tree.nodes(data=True) if d.get("_old") =...
{"golden_diff": "diff --git a/networkx/algorithms/tree/operations.py b/networkx/algorithms/tree/operations.py\n--- a/networkx/algorithms/tree/operations.py\n+++ b/networkx/algorithms/tree/operations.py\n@@ -78,25 +78,13 @@\n \n # Get the relabeled roots.\n roots = [\n- next(v for v, d in tree.nodes(data=...
2,009
319
gh_patches_debug_26658
rasdani/github-patches
git_diff
pulp__pulpcore-2779
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Append of chunked upload processes raw data **Version** Please provide the versions of the pulpcore and plugin packages in use, and how they are installed. If you are using Pulp via Katello, please provide ...
diff --git a/pulpcore/app/models/upload.py b/pulpcore/app/models/upload.py --- a/pulpcore/app/models/upload.py +++ b/pulpcore/app/models/upload.py @@ -1,6 +1,8 @@ import hashlib import os +from gettext import gettext as _ + from django.core.files.base import ContentFile from django.db import models from django.d...
{"golden_diff": "diff --git a/pulpcore/app/models/upload.py b/pulpcore/app/models/upload.py\n--- a/pulpcore/app/models/upload.py\n+++ b/pulpcore/app/models/upload.py\n@@ -1,6 +1,8 @@\n import hashlib\n import os\n \n+from gettext import gettext as _\n+\n from django.core.files.base import ContentFile\n from django.db i...
1,029
338
gh_patches_debug_16493
rasdani/github-patches
git_diff
svthalia__concrexit-2808
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Invited from queue email missing some stuff ### Describe the bug ![image](https://user-images.githubusercontent.com/41264528/217180789-a1478ad4-56b2-43af-b6f0-52ee272e2bc6.jpeg) ### How to reproduce Steps t...
diff --git a/website/events/emails.py b/website/events/emails.py --- a/website/events/emails.py +++ b/website/events/emails.py @@ -25,12 +25,19 @@ subject = _("[THALIA] Notification about your registration for '{}'").format( event.title ) + + organiser_emails = [ + organ...
{"golden_diff": "diff --git a/website/events/emails.py b/website/events/emails.py\n--- a/website/events/emails.py\n+++ b/website/events/emails.py\n@@ -25,12 +25,19 @@\n subject = _(\"[THALIA] Notification about your registration for '{}'\").format(\n event.title\n )\n+\n+ organiser_em...
1,035
174
gh_patches_debug_7108
rasdani/github-patches
git_diff
vas3k__vas3k.club-858
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: возможность замьютить самого себя ## Чеклист - [x] Я поискал поиском по трекеру похожие проблемы, в том числе в закрытых Issues - [x] Баг стабильно воспроизводится и я знаю как это сделать ## Опис...
diff --git a/users/views/muted.py b/users/views/muted.py --- a/users/views/muted.py +++ b/users/views/muted.py @@ -15,6 +15,10 @@ if user_to.is_curator or user_to.is_moderator: raise AccessDenied(title="У этого юзера иммунитет от мьюта") + if user_to == request.me: + raise AccessDenied(title='...
{"golden_diff": "diff --git a/users/views/muted.py b/users/views/muted.py\n--- a/users/views/muted.py\n+++ b/users/views/muted.py\n@@ -15,6 +15,10 @@\n if user_to.is_curator or user_to.is_moderator:\n raise AccessDenied(title=\"\u0423 \u044d\u0442\u043e\u0433\u043e \u044e\u0437\u0435\u0440\u0430 \u0438\u043...
1,369
157
gh_patches_debug_15840
rasdani/github-patches
git_diff
napari__napari-1494
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CTRL-C should exit napari gracefully ## 🐛 Bug After #1476 napari just prints `KeyboardInterrupt` when CTRL-C is pressed in the system terminal window that used to launch napari. Prior to 1476 it exited w...
diff --git a/napari/_qt/exceptions.py b/napari/_qt/exceptions.py --- a/napari/_qt/exceptions.py +++ b/napari/_qt/exceptions.py @@ -1,5 +1,6 @@ import logging import os +import sys import traceback from types import TracebackType from typing import Optional, Type @@ -62,6 +63,12 @@ tb : TracebackType ...
{"golden_diff": "diff --git a/napari/_qt/exceptions.py b/napari/_qt/exceptions.py\n--- a/napari/_qt/exceptions.py\n+++ b/napari/_qt/exceptions.py\n@@ -1,5 +1,6 @@\n import logging\n import os\n+import sys\n import traceback\n from types import TracebackType\n from typing import Optional, Type\n@@ -62,6 +63,12 @@\n ...
1,470
192
gh_patches_debug_10139
rasdani/github-patches
git_diff
zestedesavoir__zds-site-3807
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [beta][v20] L'api des notifications renvoie que les notifs non lues Serveur : Beta Version : v20/6bb2f75 Système : Mac OS X Navigateur : 52.0.2743.116 (64-bit) --- 1. Récupérez vos notifications depuis l'API...
diff --git a/zds/notification/api/views.py b/zds/notification/api/views.py --- a/zds/notification/api/views.py +++ b/zds/notification/api/views.py @@ -79,7 +79,7 @@ return self.list(request, *args, **kwargs) def get_queryset(self): - queryset = Notification.objects.get_unread_notifications_of(sel...
{"golden_diff": "diff --git a/zds/notification/api/views.py b/zds/notification/api/views.py\n--- a/zds/notification/api/views.py\n+++ b/zds/notification/api/views.py\n@@ -79,7 +79,7 @@\n return self.list(request, *args, **kwargs)\n \n def get_queryset(self):\n- queryset = Notification.objects.get_unr...
1,213
131
gh_patches_debug_20469
rasdani/github-patches
git_diff
privacyidea__privacyidea-3091
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bad error handling in /ttype/<type> endpoint We observed a bad error handling when requesting the `/ttype/<type>` endpoint. In specific, we faced the following error: ``` [ERROR][privacyidea.app:1892] Ex...
diff --git a/privacyidea/api/ttype.py b/privacyidea/api/ttype.py --- a/privacyidea/api/ttype.py +++ b/privacyidea/api/ttype.py @@ -38,6 +38,7 @@ from flask import g, jsonify, current_app import logging from privacyidea.api.lib.utils import get_all_params +from privacyidea.lib.error import ParameterError from privac...
{"golden_diff": "diff --git a/privacyidea/api/ttype.py b/privacyidea/api/ttype.py\n--- a/privacyidea/api/ttype.py\n+++ b/privacyidea/api/ttype.py\n@@ -38,6 +38,7 @@\n from flask import g, jsonify, current_app\n import logging\n from privacyidea.api.lib.utils import get_all_params\n+from privacyidea.lib.error import Par...
1,729
237
gh_patches_debug_790
rasdani/github-patches
git_diff
ibis-project__ibis-8364
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bug: `Scalar.isin(Column)` returns a Column, not a Scalar ### What happened? ```python import ibis needle = ibis.literal(2) haystack = ibis.memtable({"x": [1, 2, 3]}).x type(needle.isin(haystack)) # i...
diff --git a/ibis/expr/operations/subqueries.py b/ibis/expr/operations/subqueries.py --- a/ibis/expr/operations/subqueries.py +++ b/ibis/expr/operations/subqueries.py @@ -53,7 +53,7 @@ needle: Value dtype = dt.boolean - shape = ds.columnar + shape = rlz.shape_like("needle") def __init__(self, r...
{"golden_diff": "diff --git a/ibis/expr/operations/subqueries.py b/ibis/expr/operations/subqueries.py\n--- a/ibis/expr/operations/subqueries.py\n+++ b/ibis/expr/operations/subqueries.py\n@@ -53,7 +53,7 @@\n needle: Value\n \n dtype = dt.boolean\n- shape = ds.columnar\n+ shape = rlz.shape_like(\"needle\")\...
981
116
gh_patches_debug_22414
rasdani/github-patches
git_diff
translate__pootle-6485
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Languages in languages drop down menu are messed Hi, the languages in the languages drop down menu are in a pretty mess now. It seems that they are not sorted anymore now, neither by language name nor by l...
diff --git a/pootle/core/views/base.py b/pootle/core/views/base.py --- a/pootle/core/views/base.py +++ b/pootle/core/views/base.py @@ -6,6 +6,8 @@ # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. +from collections import OrderedDict ...
{"golden_diff": "diff --git a/pootle/core/views/base.py b/pootle/core/views/base.py\n--- a/pootle/core/views/base.py\n+++ b/pootle/core/views/base.py\n@@ -6,6 +6,8 @@\n # or later license. See the LICENSE file for a copy of the license and the\n # AUTHORS file for copyright and authorship information.\n \n+from collect...
1,521
233
gh_patches_debug_27678
rasdani/github-patches
git_diff
mozilla__bugbug-854
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add an option to the bug_classifier script to download the model when it doesn't exist --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs...
diff --git a/scripts/bug_classifier.py b/scripts/bug_classifier.py --- a/scripts/bug_classifier.py +++ b/scripts/bug_classifier.py @@ -2,14 +2,20 @@ import argparse import os +from logging import INFO, basicConfig, getLogger import numpy as np +import requests from bugbug import bugzilla from bugbug.models i...
{"golden_diff": "diff --git a/scripts/bug_classifier.py b/scripts/bug_classifier.py\n--- a/scripts/bug_classifier.py\n+++ b/scripts/bug_classifier.py\n@@ -2,14 +2,20 @@\n \n import argparse\n import os\n+from logging import INFO, basicConfig, getLogger\n \n import numpy as np\n+import requests\n \n from bugbug import b...
869
396
gh_patches_debug_8135
rasdani/github-patches
git_diff
GeotrekCE__Geotrek-admin-1047
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Show land module in left menus As we said it would be interesting to move it to its own menu, we should take opportunity to rename some elements : Module name : "Gestion foncière" TO "Gestionnaires" AND AL...
diff --git a/geotrek/land/urls.py b/geotrek/land/urls.py --- a/geotrek/land/urls.py +++ b/geotrek/land/urls.py @@ -4,7 +4,7 @@ urlpatterns = registry.register(models.PhysicalEdge, menu=False) -urlpatterns += registry.register(models.LandEdge, menu=False) +urlpatterns += registry.register(models.LandEdge) urlpatte...
{"golden_diff": "diff --git a/geotrek/land/urls.py b/geotrek/land/urls.py\n--- a/geotrek/land/urls.py\n+++ b/geotrek/land/urls.py\n@@ -4,7 +4,7 @@\n \n \n urlpatterns = registry.register(models.PhysicalEdge, menu=False)\n-urlpatterns += registry.register(models.LandEdge, menu=False)\n+urlpatterns += registry.register(m...
417
128
gh_patches_debug_23375
rasdani/github-patches
git_diff
pypa__setuptools-2863
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [FR] Add integration tests to catch breaking changes in the API ### What's the problem this feature will solve? It would be nice to have integration tests focusing on the usage of setuptools "public API" by ...
diff --git a/conftest.py b/conftest.py --- a/conftest.py +++ b/conftest.py @@ -1,5 +1,7 @@ import sys +import pytest + pytest_plugins = 'setuptools.tests.fixtures' @@ -9,6 +11,14 @@ "--package_name", action="append", default=[], help="list of package_name to pass to test functions", ) + ...
{"golden_diff": "diff --git a/conftest.py b/conftest.py\n--- a/conftest.py\n+++ b/conftest.py\n@@ -1,5 +1,7 @@\n import sys\n \n+import pytest\n+\n \n pytest_plugins = 'setuptools.tests.fixtures'\n \n@@ -9,6 +11,14 @@\n \"--package_name\", action=\"append\", default=[],\n help=\"list of package_name to ...
684
299
gh_patches_debug_26462
rasdani/github-patches
git_diff
litestar-org__litestar-2269
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- StaticFilesConfig and virtual directories I'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/usin...
diff --git a/litestar/contrib/sqlalchemy/plugins/__init__.py b/litestar/contrib/sqlalchemy/plugins/__init__.py --- a/litestar/contrib/sqlalchemy/plugins/__init__.py +++ b/litestar/contrib/sqlalchemy/plugins/__init__.py @@ -1,5 +1,10 @@ from __future__ import annotations +from typing import TYPE_CHECKING + +from lite...
{"golden_diff": "diff --git a/litestar/contrib/sqlalchemy/plugins/__init__.py b/litestar/contrib/sqlalchemy/plugins/__init__.py\n--- a/litestar/contrib/sqlalchemy/plugins/__init__.py\n+++ b/litestar/contrib/sqlalchemy/plugins/__init__.py\n@@ -1,5 +1,10 @@\n from __future__ import annotations\n \n+from typing import TYP...
694
373
gh_patches_debug_3229
rasdani/github-patches
git_diff
CTFd__CTFd-2371
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Test Translations & Support Spanish We need to test translations before release and make sure we support Spanish --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of the...
diff --git a/CTFd/constants/languages.py b/CTFd/constants/languages.py --- a/CTFd/constants/languages.py +++ b/CTFd/constants/languages.py @@ -5,12 +5,16 @@ ENGLISH = "en" GERMAN = "de" POLISH = "pl" + SPANISH = "es" + CHINESE = "zh" LANGUAGE_NAMES = { "en": "English", "de": "Deutsch...
{"golden_diff": "diff --git a/CTFd/constants/languages.py b/CTFd/constants/languages.py\n--- a/CTFd/constants/languages.py\n+++ b/CTFd/constants/languages.py\n@@ -5,12 +5,16 @@\n ENGLISH = \"en\"\n GERMAN = \"de\"\n POLISH = \"pl\"\n+ SPANISH = \"es\"\n+ CHINESE = \"zh\"\n \n \n LANGUAGE_NAMES = {\n ...
408
150
gh_patches_debug_15602
rasdani/github-patches
git_diff
yt-dlp__yt-dlp-7108
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- cc.com ### Checklist - [X] I'm reporting a broken site - [X] I've verified that I'm running yt-dlp version **2021.12.01**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) - [X] I've checked ...
diff --git a/yt_dlp/extractor/comedycentral.py b/yt_dlp/extractor/comedycentral.py --- a/yt_dlp/extractor/comedycentral.py +++ b/yt_dlp/extractor/comedycentral.py @@ -2,7 +2,7 @@ class ComedyCentralIE(MTVServicesInfoExtractor): - _VALID_URL = r'https?://(?:www\.)?cc\.com/(?:episodes|video(?:-clips)?|collection-...
{"golden_diff": "diff --git a/yt_dlp/extractor/comedycentral.py b/yt_dlp/extractor/comedycentral.py\n--- a/yt_dlp/extractor/comedycentral.py\n+++ b/yt_dlp/extractor/comedycentral.py\n@@ -2,7 +2,7 @@\n \n \n class ComedyCentralIE(MTVServicesInfoExtractor):\n- _VALID_URL = r'https?://(?:www\\.)?cc\\.com/(?:episodes|vi...
2,021
292
gh_patches_debug_38746
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-3627
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider teavana is broken During the global build at 2021-05-26-14-42-23, spider **teavana** failed with **0 features** and **2 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-05-26-14-42-2...
diff --git a/locations/spiders/teavana.py b/locations/spiders/teavana.py deleted file mode 100644 --- a/locations/spiders/teavana.py +++ /dev/null @@ -1,89 +0,0 @@ -import scrapy -import re -from locations.items import GeojsonPointItem - - -class ExpressSpider(scrapy.Spider): - - name = "teavana" - item_attribute...
{"golden_diff": "diff --git a/locations/spiders/teavana.py b/locations/spiders/teavana.py\ndeleted file mode 100644\n--- a/locations/spiders/teavana.py\n+++ /dev/null\n@@ -1,89 +0,0 @@\n-import scrapy\n-import re\n-from locations.items import GeojsonPointItem\n-\n-\n-class ExpressSpider(scrapy.Spider):\n-\n- name = ...
1,370
893
gh_patches_debug_2128
rasdani/github-patches
git_diff
projectmesa__mesa-891
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cookiecutter doesn't work on 0.8.7 release **Describe the bug** `mesa startproject` fails after `pipenv install mesa` ``` A valid repository for "/home/neil/.local/share/virtualenvs/baseline-economy-6fg_ik...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ requires = ["click", "cookiecutter", "networkx", "numpy", "pandas", "tornado", "tqdm"] extras_require = { - "dev": ["coverage", "flake8", "pytest >= 3.6", "pytest-cov", "sphinx"], + "dev": ["coverage", "flake8", "pytest >= 4.6", "p...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -8,7 +8,7 @@\n requires = [\"click\", \"cookiecutter\", \"networkx\", \"numpy\", \"pandas\", \"tornado\", \"tqdm\"]\n \n extras_require = {\n- \"dev\": [\"coverage\", \"flake8\", \"pytest >= 3.6\", \"pytest-cov\", \"sphinx\"],\n+ ...
1,016
132
gh_patches_debug_1092
rasdani/github-patches
git_diff
psychopy__psychopy-2333
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Demos -> Hardware -> testSoundLatency.py not working in v3.0.6 Running Demo -> Hardware -> testSoundLatency.py results in the following error message: ``` ##### Running: C:\Program Files (x86)\PsychoPy3\lib...
diff --git a/psychopy/demos/coder/hardware/labjack_u3.py b/psychopy/demos/coder/hardware/labjack_u3.py --- a/psychopy/demos/coder/hardware/labjack_u3.py +++ b/psychopy/demos/coder/hardware/labjack_u3.py @@ -15,7 +15,10 @@ from builtins import range from psychopy import visual, core, event, sound -from labjack impor...
{"golden_diff": "diff --git a/psychopy/demos/coder/hardware/labjack_u3.py b/psychopy/demos/coder/hardware/labjack_u3.py\n--- a/psychopy/demos/coder/hardware/labjack_u3.py\n+++ b/psychopy/demos/coder/hardware/labjack_u3.py\n@@ -15,7 +15,10 @@\n \n from builtins import range\n from psychopy import visual, core, event, so...
982
138
gh_patches_debug_33778
rasdani/github-patches
git_diff
praw-dev__praw-1957
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Docs: Font color of method names is unreasonably white on a white background when using dark theme ### Describe the Documentation Issue Hey Praw maintainers, thanks for the great work. I'm about to use this...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,3 @@ -import os import sys from datetime import datetime @@ -13,12 +12,8 @@ extensions = [ "sphinx.ext.autodoc", "sphinx.ext.intersphinx", - "sphinx_rtd_dark_mode", - "sphinx_rtd_theme", ] -html_static_path =...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -1,4 +1,3 @@\n-import os\n import sys\n from datetime import datetime\n \n@@ -13,12 +12,8 @@\n extensions = [\n \"sphinx.ext.autodoc\",\n \"sphinx.ext.intersphinx\",\n- \"sphinx_rtd_dark_mode\",\n- \"sphi...
1,939
533
gh_patches_debug_7880
rasdani/github-patches
git_diff
locustio__locust-841
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Don't rely on obsolete msgpack-python msgpack-python looks obsolete -> https://pypi.org/project/msgpack-python/ "This package is deprecated. Install msgpack instead." but msgpack doesn't provide pythone...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=False, - install_requires=["gevent>=1.2.2", "flask>=0.10.1", "requests>=2.9.1", "msgpack-python>=0.4.2", "six>=1.10.0"...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -40,7 +40,7 @@\n packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),\n include_package_data=True,\n zip_safe=False,\n- install_requires=[\"gevent>=1.2.2\", \"flask>=0.10.1\", \"requests>=2.9.1\", \"msgpac...
894
210
gh_patches_debug_28502
rasdani/github-patches
git_diff
CTFd__CTFd-1560
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Colon in CTF name breaks emails This is because of: https://tools.ietf.org/html/rfc5322#section-2.2 This can probably be fixed with `"HE:tech" <tech@example.com>`. --- END ISSUE --- Below are some cod...
diff --git a/CTFd/utils/email/mailgun.py b/CTFd/utils/email/mailgun.py --- a/CTFd/utils/email/mailgun.py +++ b/CTFd/utils/email/mailgun.py @@ -1,3 +1,5 @@ +from email.utils import formataddr + import requests from CTFd.utils import get_app_config, get_config @@ -6,7 +8,7 @@ def sendmail(addr, text, subject): ...
{"golden_diff": "diff --git a/CTFd/utils/email/mailgun.py b/CTFd/utils/email/mailgun.py\n--- a/CTFd/utils/email/mailgun.py\n+++ b/CTFd/utils/email/mailgun.py\n@@ -1,3 +1,5 @@\n+from email.utils import formataddr\n+\n import requests\n \n from CTFd.utils import get_app_config, get_config\n@@ -6,7 +8,7 @@\n def sendmail(...
1,293
399
gh_patches_debug_29426
rasdani/github-patches
git_diff
jupyterhub__jupyterhub-1820
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Running jupyterhub upgrade-db with PostgreSQL database fails **How to reproduce the issue** Run `jupyterhub upgrade-db` with a PostgreSQL database to upgrade to 99a28a4418e1. **What you expected to happ...
diff --git a/jupyterhub/alembic/versions/56cc5a70207e_token_tracking.py b/jupyterhub/alembic/versions/56cc5a70207e_token_tracking.py --- a/jupyterhub/alembic/versions/56cc5a70207e_token_tracking.py +++ b/jupyterhub/alembic/versions/56cc5a70207e_token_tracking.py @@ -15,6 +15,9 @@ from alembic import op import sqlalch...
{"golden_diff": "diff --git a/jupyterhub/alembic/versions/56cc5a70207e_token_tracking.py b/jupyterhub/alembic/versions/56cc5a70207e_token_tracking.py\n--- a/jupyterhub/alembic/versions/56cc5a70207e_token_tracking.py\n+++ b/jupyterhub/alembic/versions/56cc5a70207e_token_tracking.py\n@@ -15,6 +15,9 @@\n from alembic impo...
1,376
547
gh_patches_debug_10663
rasdani/github-patches
git_diff
shuup__shuup-2095
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Xtheme: there is no warning for usaved changes when switching between plugins To reproduce: 1. Edit some content in Xtheme editor 2. Select another plugin without saving 3. See your changes to disappear ...
diff --git a/shuup/campaigns/admin_module/forms/_basket.py b/shuup/campaigns/admin_module/forms/_basket.py --- a/shuup/campaigns/admin_module/forms/_basket.py +++ b/shuup/campaigns/admin_module/forms/_basket.py @@ -30,7 +30,7 @@ if supplier: coupons = coupons.filter(supplier=supplier) - c...
{"golden_diff": "diff --git a/shuup/campaigns/admin_module/forms/_basket.py b/shuup/campaigns/admin_module/forms/_basket.py\n--- a/shuup/campaigns/admin_module/forms/_basket.py\n+++ b/shuup/campaigns/admin_module/forms/_basket.py\n@@ -30,7 +30,7 @@\n if supplier:\n coupons = coupons.filter(supplier=...
893
175
gh_patches_debug_30949
rasdani/github-patches
git_diff
apache__airflow-24496
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- db+ string in result backend but not metadata secret ### Official Helm Chart version 1.1.0 (latest released) ### Apache Airflow version 2.1.3 (latest released) ### Kubernetes Version 1.21 ### Helm Chart...
diff --git a/airflow/config_templates/default_celery.py b/airflow/config_templates/default_celery.py --- a/airflow/config_templates/default_celery.py +++ b/airflow/config_templates/default_celery.py @@ -36,6 +36,12 @@ if _broker_supports_visibility_timeout(broker_url): broker_transport_options['visibility...
{"golden_diff": "diff --git a/airflow/config_templates/default_celery.py b/airflow/config_templates/default_celery.py\n--- a/airflow/config_templates/default_celery.py\n+++ b/airflow/config_templates/default_celery.py\n@@ -36,6 +36,12 @@\n if _broker_supports_visibility_timeout(broker_url):\n broker_transpo...
1,758
393
gh_patches_debug_18040
rasdani/github-patches
git_diff
liqd__a4-meinberlin-1652
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- make it possible to detach plan from project now that a connection of a project with a plan is no longer obligatory, initiators need to be able to undo a connection. Once I click on a plan I can no longer NOT...
diff --git a/meinberlin/apps/plans/forms.py b/meinberlin/apps/plans/forms.py --- a/meinberlin/apps/plans/forms.py +++ b/meinberlin/apps/plans/forms.py @@ -55,10 +55,10 @@ class CustomMultipleChoiceField(forms.ModelMultipleChoiceField): - widget = forms.RadioSelect + widget = forms.Select def clean(sel...
{"golden_diff": "diff --git a/meinberlin/apps/plans/forms.py b/meinberlin/apps/plans/forms.py\n--- a/meinberlin/apps/plans/forms.py\n+++ b/meinberlin/apps/plans/forms.py\n@@ -55,10 +55,10 @@\n \n class CustomMultipleChoiceField(forms.ModelMultipleChoiceField):\n \n- widget = forms.RadioSelect\n+ widget = forms.Se...
1,038
240
gh_patches_debug_1022
rasdani/github-patches
git_diff
searxng__searxng-437
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: microsoft academic engine **Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG** Repository: https://github.com/tiekoetter/searxng Branch: master V...
diff --git a/searx/engines/microsoft_academic.py b/searx/engines/microsoft_academic.py --- a/searx/engines/microsoft_academic.py +++ b/searx/engines/microsoft_academic.py @@ -47,7 +47,7 @@ if not response_data: return results - for result in response_data['pr']: + for result in response_data.get('...
{"golden_diff": "diff --git a/searx/engines/microsoft_academic.py b/searx/engines/microsoft_academic.py\n--- a/searx/engines/microsoft_academic.py\n+++ b/searx/engines/microsoft_academic.py\n@@ -47,7 +47,7 @@\n if not response_data:\n return results\n \n- for result in response_data['pr']:\n+ for resu...
1,175
115
gh_patches_debug_552
rasdani/github-patches
git_diff
pex-tool__pex-880
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.1 On the docket: + [x] PEX 2.1.0 regression: pex file won't build inside a running docker image as user #850 + [x] Fully pin vendored requirements. #853 + [x] Fix `tox -epackage` to create pex ...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = '2.1.0' +__version__ = '2.1.1'
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = '2.1.0'\n+__version__ = '2.1.1'\n", "issue"...
515
94
gh_patches_debug_11105
rasdani/github-patches
git_diff
pwndbg__pwndbg-130
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error in the `search` command The `search` command appears to have some issues while searching signed integer data For example while debugging a x86 program: ``` pwndbg> search -4 0xf7eebf83 Traceback (mos...
diff --git a/pwndbg/commands/search.py b/pwndbg/commands/search.py --- a/pwndbg/commands/search.py +++ b/pwndbg/commands/search.py @@ -12,6 +12,7 @@ import gdb +import pwndbg.arch import pwndbg.color.memory as M import pwndbg.commands import pwndbg.config @@ -99,6 +100,7 @@ # Convert to an integer if neede...
{"golden_diff": "diff --git a/pwndbg/commands/search.py b/pwndbg/commands/search.py\n--- a/pwndbg/commands/search.py\n+++ b/pwndbg/commands/search.py\n@@ -12,6 +12,7 @@\n \n import gdb\n \n+import pwndbg.arch\n import pwndbg.color.memory as M\n import pwndbg.commands\n import pwndbg.config\n@@ -99,6 +100,7 @@\n # C...
2,037
160
gh_patches_debug_24
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-2007
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG]: ModuleNotFoundError: No module named 'colossalai.nn.optimizer.zero_optimizer' ### 🐛 Describe the bug I install colossalAI with the command `pip install colossalai==0.1.11rc3+torch1.12cu11.3 -f http...
diff --git a/colossalai/__init__.py b/colossalai/__init__.py --- a/colossalai/__init__.py +++ b/colossalai/__init__.py @@ -7,4 +7,4 @@ launch_from_torch, ) -__version__ = '0.1.11rc2' +__version__ = '0.1.11rc4'
{"golden_diff": "diff --git a/colossalai/__init__.py b/colossalai/__init__.py\n--- a/colossalai/__init__.py\n+++ b/colossalai/__init__.py\n@@ -7,4 +7,4 @@\n launch_from_torch,\n )\n \n-__version__ = '0.1.11rc2'\n+__version__ = '0.1.11rc4'\n", "issue": "[BUG]: ModuleNotFoundError: No module named 'colossalai.nn.opti...
690
92
gh_patches_debug_2151
rasdani/github-patches
git_diff
WeblateOrg__weblate-4665
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- migrations fail for database name containing "-" **Describe the bug** Applying memory.0007_use_trigram...Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/django/db/backends/util...
diff --git a/weblate/memory/migrations/0008_adjust_similarity.py b/weblate/memory/migrations/0008_adjust_similarity.py --- a/weblate/memory/migrations/0008_adjust_similarity.py +++ b/weblate/memory/migrations/0008_adjust_similarity.py @@ -15,7 +15,7 @@ schema_editor.execute( "ALTER ROLE {} SET pg_trgm.s...
{"golden_diff": "diff --git a/weblate/memory/migrations/0008_adjust_similarity.py b/weblate/memory/migrations/0008_adjust_similarity.py\n--- a/weblate/memory/migrations/0008_adjust_similarity.py\n+++ b/weblate/memory/migrations/0008_adjust_similarity.py\n@@ -15,7 +15,7 @@\n \n schema_editor.execute(\n \"ALT...
758
134
gh_patches_debug_2298
rasdani/github-patches
git_diff
iterative__dvc-1436
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- repro: --all-pipelines doesn't do anything. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `dvc/command/re...
diff --git a/dvc/command/repro.py b/dvc/command/repro.py --- a/dvc/command/repro.py +++ b/dvc/command/repro.py @@ -12,6 +12,10 @@ if self.args.cwd: os.chdir(self.args.cwd) + # Dirty hack so the for loop below can at least enter once + if self.args.all_pipelines: + self.a...
{"golden_diff": "diff --git a/dvc/command/repro.py b/dvc/command/repro.py\n--- a/dvc/command/repro.py\n+++ b/dvc/command/repro.py\n@@ -12,6 +12,10 @@\n if self.args.cwd:\n os.chdir(self.args.cwd)\n \n+ # Dirty hack so the for loop below can at least enter once\n+ if self.args.all_pipel...
594
115
gh_patches_debug_3798
rasdani/github-patches
git_diff
Parsl__parsl-618
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error building docs with new env ``` Running Sphinx v1.8.1 loading pickled environment... failed: build environment version not current Theme error: sphinx_rtd_theme is no longer a hard dependency sin...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ 'aws' : ['boto3'], 'jetstream' : ['python-novaclient'], 'extreme_scale' : ['mpi4py'], - 'docs' : ['nbsphinx'], + 'docs' : ['nbsphinx', 'sphinx_rtd_theme'], 'google_cloud' : ['google-auth', ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -26,7 +26,7 @@\n 'aws' : ['boto3'],\n 'jetstream' : ['python-novaclient'],\n 'extreme_scale' : ['mpi4py'],\n- 'docs' : ['nbsphinx'],\n+ 'docs' : ['nbsphinx', 'sphinx_rtd_theme'],\n 'google...
786
117