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_28357
rasdani/github-patches
git_diff
pyca__cryptography-4200
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Some OpenSSL bignum arithmetic operations are not in constant time ### What's wrong: 1. Some arithmetic operations exposed in the [OpenSSL bignum binding](https://github.com/pyca/cryptography/blob/master/src...
diff --git a/src/_cffi_src/openssl/bignum.py b/src/_cffi_src/openssl/bignum.py --- a/src/_cffi_src/openssl/bignum.py +++ b/src/_cffi_src/openssl/bignum.py @@ -10,11 +10,17 @@ TYPES = """ typedef ... BN_CTX; +typedef ... BN_MONT_CTX; typedef ... BIGNUM; typedef int... BN_ULONG; """ FUNCTIONS = """ +#define BN_...
{"golden_diff": "diff --git a/src/_cffi_src/openssl/bignum.py b/src/_cffi_src/openssl/bignum.py\n--- a/src/_cffi_src/openssl/bignum.py\n+++ b/src/_cffi_src/openssl/bignum.py\n@@ -10,11 +10,17 @@\n \n TYPES = \"\"\"\n typedef ... BN_CTX;\n+typedef ... BN_MONT_CTX;\n typedef ... BIGNUM;\n typedef int... BN_ULONG;\n \"\"\...
1,531
443
gh_patches_debug_19759
rasdani/github-patches
git_diff
sql-machine-learning__elasticdl-761
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Provide default gpu resource name and validation Currently users can only pass "gpu" as part of the resource name. However, k8s requires it to be either `"nvidia.com/gpu"` or `"amd.com/gpu"` if AMD plugin is ...
diff --git a/elasticdl/python/elasticdl/common/k8s_utils.py b/elasticdl/python/elasticdl/common/k8s_utils.py --- a/elasticdl/python/elasticdl/common/k8s_utils.py +++ b/elasticdl/python/elasticdl/common/k8s_utils.py @@ -2,6 +2,10 @@ _ALLOWED_RESOURCE_TYPES = ["memory", "disk", "ephemeral-storage", "cpu", "gpu"] +# ...
{"golden_diff": "diff --git a/elasticdl/python/elasticdl/common/k8s_utils.py b/elasticdl/python/elasticdl/common/k8s_utils.py\n--- a/elasticdl/python/elasticdl/common/k8s_utils.py\n+++ b/elasticdl/python/elasticdl/common/k8s_utils.py\n@@ -2,6 +2,10 @@\n \n \n _ALLOWED_RESOURCE_TYPES = [\"memory\", \"disk\", \"ephemeral...
1,033
318
gh_patches_debug_12859
rasdani/github-patches
git_diff
secdev__scapy-2556
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plain_str not consistent between Py2 and Py3 **Python 2 (expected result)** ```python >>> plain_str(b'\x3e\xb4\xef\x2c\x11') '>\xb4\xef,\x11' ``` **Python 3 (unexpected result)** ```python >>> plain_...
diff --git a/scapy/compat.py b/scapy/compat.py --- a/scapy/compat.py +++ b/scapy/compat.py @@ -59,11 +59,19 @@ return x.encode() return bytes(x) - def plain_str(x): - """Convert basic byte objects to str""" - if isinstance(x, bytes): - return x.decode(errors="ignore")...
{"golden_diff": "diff --git a/scapy/compat.py b/scapy/compat.py\n--- a/scapy/compat.py\n+++ b/scapy/compat.py\n@@ -59,11 +59,19 @@\n return x.encode()\n return bytes(x)\n \n- def plain_str(x):\n- \"\"\"Convert basic byte objects to str\"\"\"\n- if isinstance(x, bytes):\n- ...
1,792
219
gh_patches_debug_8552
rasdani/github-patches
git_diff
Gallopsled__pwntools-323
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Importing shellcraft submodules doesn't work ``` $ python >>> import pwnlib.shellcraft.arm Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named arm ``` --- E...
diff --git a/pwnlib/shellcraft/__init__.py b/pwnlib/shellcraft/__init__.py --- a/pwnlib/shellcraft/__init__.py +++ b/pwnlib/shellcraft/__init__.py @@ -102,4 +102,22 @@ tether = sys.modules[__name__] # Create the module structure -module(__name__, '') +shellcraft = module(__name__, '') + +class LazyImporter: + de...
{"golden_diff": "diff --git a/pwnlib/shellcraft/__init__.py b/pwnlib/shellcraft/__init__.py\n--- a/pwnlib/shellcraft/__init__.py\n+++ b/pwnlib/shellcraft/__init__.py\n@@ -102,4 +102,22 @@\n tether = sys.modules[__name__]\n \n # Create the module structure\n-module(__name__, '')\n+shellcraft = module(__name__, '')\n+\n+...
1,349
215
gh_patches_debug_26773
rasdani/github-patches
git_diff
optuna__optuna-4940
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix `Test` warnings from `BoTorch` ### Motivation Resolve following warnings from test: ``` tests/terminator_tests/improvement_tests/gp_tests/test_botorch.py: 4 warnings tests/visualization_tests/test_ter...
diff --git a/optuna/terminator/improvement/gp/botorch.py b/optuna/terminator/improvement/gp/botorch.py --- a/optuna/terminator/improvement/gp/botorch.py +++ b/optuna/terminator/improvement/gp/botorch.py @@ -3,6 +3,7 @@ from typing import Optional import numpy as np +from packaging import version from optuna._imp...
{"golden_diff": "diff --git a/optuna/terminator/improvement/gp/botorch.py b/optuna/terminator/improvement/gp/botorch.py\n--- a/optuna/terminator/improvement/gp/botorch.py\n+++ b/optuna/terminator/improvement/gp/botorch.py\n@@ -3,6 +3,7 @@\n from typing import Optional\n \n import numpy as np\n+from packaging import ver...
1,523
373
gh_patches_debug_8875
rasdani/github-patches
git_diff
microsoft__botbuilder-python-1401
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add tests for SkillHttpClient see dotnet and javascript imp [enhancement] --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEG...
diff --git a/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/skills/skill_http_client.py b/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/skills/skill_http_client.py --- a/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/skills/skill_http_client.py...
{"golden_diff": "diff --git a/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/skills/skill_http_client.py b/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/skills/skill_http_client.py\n--- a/libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/skills/sk...
894
189
gh_patches_debug_803
rasdani/github-patches
git_diff
googleapis__google-api-python-client-871
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: module 'googleapiclient' has no attribute '__version__' When importing new version of google-api-python-client `from apiclient import discovery` i'm getting the error `AttributeError: modul...
diff --git a/apiclient/__init__.py b/apiclient/__init__.py --- a/apiclient/__init__.py +++ b/apiclient/__init__.py @@ -19,8 +19,6 @@ sample_tools = None from googleapiclient import schema -__version__ = googleapiclient.__version__ - _SUBMODULES = { "channel": channel, "discovery": discovery,
{"golden_diff": "diff --git a/apiclient/__init__.py b/apiclient/__init__.py\n--- a/apiclient/__init__.py\n+++ b/apiclient/__init__.py\n@@ -19,8 +19,6 @@\n sample_tools = None\n from googleapiclient import schema\n \n-__version__ = googleapiclient.__version__\n-\n _SUBMODULES = {\n \"channel\": channel,\n \"...
904
98
gh_patches_debug_19691
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-2967
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Invalid Aliases when using SSM dynamic references ### CloudFormation Lint Version 0.83.0 ### What operating system are you using? Mac ### Describe the bug When using a dynamic reference to reso...
diff --git a/src/cfnlint/rules/resources/cloudfront/Aliases.py b/src/cfnlint/rules/resources/cloudfront/Aliases.py --- a/src/cfnlint/rules/resources/cloudfront/Aliases.py +++ b/src/cfnlint/rules/resources/cloudfront/Aliases.py @@ -4,7 +4,7 @@ """ import regex as re -from cfnlint.helpers import FUNCTIONS +from cfnli...
{"golden_diff": "diff --git a/src/cfnlint/rules/resources/cloudfront/Aliases.py b/src/cfnlint/rules/resources/cloudfront/Aliases.py\n--- a/src/cfnlint/rules/resources/cloudfront/Aliases.py\n+++ b/src/cfnlint/rules/resources/cloudfront/Aliases.py\n@@ -4,7 +4,7 @@\n \"\"\"\n import regex as re\n \n-from cfnlint.helpers i...
1,033
213
gh_patches_debug_13562
rasdani/github-patches
git_diff
projectmesa__mesa-1984
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- JupyterViz space view limits **What's the problem this feature will solve?** At the moment, when drawing spaces with JupyterViz, the axes limits are left to be automatically determined by Matplotlib. Would i...
diff --git a/mesa/experimental/components/matplotlib.py b/mesa/experimental/components/matplotlib.py --- a/mesa/experimental/components/matplotlib.py +++ b/mesa/experimental/components/matplotlib.py @@ -55,6 +55,8 @@ out["c"] = c return out + space_ax.set_xlim(-1, space.width) + space_ax.s...
{"golden_diff": "diff --git a/mesa/experimental/components/matplotlib.py b/mesa/experimental/components/matplotlib.py\n--- a/mesa/experimental/components/matplotlib.py\n+++ b/mesa/experimental/components/matplotlib.py\n@@ -55,6 +55,8 @@\n out[\"c\"] = c\n return out\n \n+ space_ax.set_xlim(-1, sp...
1,507
233
gh_patches_debug_27391
rasdani/github-patches
git_diff
jupyterhub__jupyterhub-250
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Admin panel - Add ability to import multiple users at once It would be nice to add a list of users as a bulk list of newline delimited users. --- END ISSUE --- Below are some code segments, each from a rel...
diff --git a/jupyterhub/apihandlers/users.py b/jupyterhub/apihandlers/users.py --- a/jupyterhub/apihandlers/users.py +++ b/jupyterhub/apihandlers/users.py @@ -18,6 +18,49 @@ users = self.db.query(orm.User) data = [ self.user_model(u) for u in users ] self.write(json.dumps(data)) + + @a...
{"golden_diff": "diff --git a/jupyterhub/apihandlers/users.py b/jupyterhub/apihandlers/users.py\n--- a/jupyterhub/apihandlers/users.py\n+++ b/jupyterhub/apihandlers/users.py\n@@ -18,6 +18,49 @@\n users = self.db.query(orm.User)\n data = [ self.user_model(u) for u in users ]\n self.write(json.dum...
1,914
475
gh_patches_debug_26616
rasdani/github-patches
git_diff
kivy__kivy-3859
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Button behavior has a property MIN_STATE_TIME This property can't be used in kv cause of the uppercase. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files...
diff --git a/kivy/uix/behaviors/button.py b/kivy/uix/behaviors/button.py --- a/kivy/uix/behaviors/button.py +++ b/kivy/uix/behaviors/button.py @@ -4,8 +4,10 @@ __all__ = ('ButtonBehavior', ) from kivy.clock import Clock -from kivy.properties import OptionProperty, ObjectProperty, BooleanProperty +from kivy.properti...
{"golden_diff": "diff --git a/kivy/uix/behaviors/button.py b/kivy/uix/behaviors/button.py\n--- a/kivy/uix/behaviors/button.py\n+++ b/kivy/uix/behaviors/button.py\n@@ -4,8 +4,10 @@\n __all__ = ('ButtonBehavior', )\n \n from kivy.clock import Clock\n-from kivy.properties import OptionProperty, ObjectProperty, BooleanProp...
1,702
401
gh_patches_debug_14403
rasdani/github-patches
git_diff
dbt-labs__dbt-core-4359
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ensure that all dbt invocations have an invocation_id This is a sub-issue of #4260. In order to make sure we can distinguish logs from different runs we should always have an invocation_id. If tracking is o...
diff --git a/core/dbt/lib.py b/core/dbt/lib.py --- a/core/dbt/lib.py +++ b/core/dbt/lib.py @@ -12,6 +12,7 @@ def get_dbt_config(project_dir, single_threaded=False): from dbt.config.runtime import RuntimeConfig import dbt.adapters.factory + import dbt.events.functions if os.getenv('DBT_PROFILES_DIR'...
{"golden_diff": "diff --git a/core/dbt/lib.py b/core/dbt/lib.py\n--- a/core/dbt/lib.py\n+++ b/core/dbt/lib.py\n@@ -12,6 +12,7 @@\n def get_dbt_config(project_dir, single_threaded=False):\n from dbt.config.runtime import RuntimeConfig\n import dbt.adapters.factory\n+ import dbt.events.functions\n \n if os...
1,531
166
gh_patches_debug_5450
rasdani/github-patches
git_diff
mozilla__bugbug-1713
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Set up Sentry for bugbug Adding it will help investigate issues (like the Mercurial woes). --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain b...
diff --git a/http_service/bugbug_http/worker.py b/http_service/bugbug_http/worker.py --- a/http_service/bugbug_http/worker.py +++ b/http_service/bugbug_http/worker.py @@ -7,10 +7,20 @@ import os import sys +import sentry_sdk from redis import Redis from rq import Connection, Worker +from sentry_sdk.integrations.r...
{"golden_diff": "diff --git a/http_service/bugbug_http/worker.py b/http_service/bugbug_http/worker.py\n--- a/http_service/bugbug_http/worker.py\n+++ b/http_service/bugbug_http/worker.py\n@@ -7,10 +7,20 @@\n import os\n import sys\n \n+import sentry_sdk\n from redis import Redis\n from rq import Connection, Worker\n+fro...
552
169
gh_patches_debug_58376
rasdani/github-patches
git_diff
deis__deis-323
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `deis run` generates ugly error if app code not yet pushed I ran `deis run ls -la` after I had created the app, but before I had pushed the code with `git push deis master`. Here is the error I received: ```...
diff --git a/api/tasks.py b/api/tasks.py --- a/api/tasks.py +++ b/api/tasks.py @@ -53,6 +53,8 @@ @task def run_node(node, command): output, rc = CM.run_node(node.flat(), command) + if rc != 0 and 'failed to setup the container' in output: + output = '\033[35mPlease run `git push deis master` first.\033...
{"golden_diff": "diff --git a/api/tasks.py b/api/tasks.py\n--- a/api/tasks.py\n+++ b/api/tasks.py\n@@ -53,6 +53,8 @@\n @task\n def run_node(node, command):\n output, rc = CM.run_node(node.flat(), command)\n+ if rc != 0 and 'failed to setup the container' in output:\n+ output = '\\033[35mPlease run `git pu...
1,356
117
gh_patches_debug_15911
rasdani/github-patches
git_diff
pallets__click-2599
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- deprecate `__version__` attribute The `__version__` attribute is an old pattern from early in Python packaging. Setuptools eventually made it easier to use the pattern by allowing reading the value from the ...
diff --git a/src/click/__init__.py b/src/click/__init__.py --- a/src/click/__init__.py +++ b/src/click/__init__.py @@ -69,8 +69,6 @@ from .utils import get_text_stream as get_text_stream from .utils import open_file as open_file -__version__ = "8.2.0.dev0" - def __getattr__(name: str) -> object: import warn...
{"golden_diff": "diff --git a/src/click/__init__.py b/src/click/__init__.py\n--- a/src/click/__init__.py\n+++ b/src/click/__init__.py\n@@ -69,8 +69,6 @@\n from .utils import get_text_stream as get_text_stream\n from .utils import open_file as open_file\n \n-__version__ = \"8.2.0.dev0\"\n-\n \n def __getattr__(name: str...
1,518
232
gh_patches_debug_1752
rasdani/github-patches
git_diff
spack__spack-4809
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- problem with xproto the xproto could be compile properly but while installing, i come across the following problem ``` ==> 'make' '-j8' /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recurs...
diff --git a/var/spack/repos/builtin/packages/xproto/package.py b/var/spack/repos/builtin/packages/xproto/package.py --- a/var/spack/repos/builtin/packages/xproto/package.py +++ b/var/spack/repos/builtin/packages/xproto/package.py @@ -43,3 +43,8 @@ depends_on('pkg-config@0.9.0:', type='build') depends_on('u...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/xproto/package.py b/var/spack/repos/builtin/packages/xproto/package.py\n--- a/var/spack/repos/builtin/packages/xproto/package.py\n+++ b/var/spack/repos/builtin/packages/xproto/package.py\n@@ -43,3 +43,8 @@\n \n depends_on('pkg-config@0.9.0:', type='buil...
1,522
147
gh_patches_debug_932
rasdani/github-patches
git_diff
praw-dev__praw-1304
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sphinx stops emitting warnings if it encounters only one **Describe the bug** <!-- A clear and concise description of what the bug is. --> When running pre_push, if Sphinx runs into an warning, it does does ...
diff --git a/pre_push.py b/pre_push.py --- a/pre_push.py +++ b/pre_push.py @@ -53,7 +53,9 @@ tmp_dir = mkdtemp() try: - success &= do_process(["sphinx-build", "-W", "docs", tmp_dir]) + success &= do_process( + ["sphinx-build", "-W", "--keep-going", "docs", tmp_dir] + ) f...
{"golden_diff": "diff --git a/pre_push.py b/pre_push.py\n--- a/pre_push.py\n+++ b/pre_push.py\n@@ -53,7 +53,9 @@\n \n tmp_dir = mkdtemp()\n try:\n- success &= do_process([\"sphinx-build\", \"-W\", \"docs\", tmp_dir])\n+ success &= do_process(\n+ [\"sphinx-build\", \"-W\", \"--keep-going...
1,372
107
gh_patches_debug_314
rasdani/github-patches
git_diff
zulip__zulip-20788
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "Pan and zoom" cuts off images instead of using the available space If you have a tall image and a wide monitor (and wide browser viewport), and you try to zoom… the image stays trapped inside the same box it...
diff --git a/version.py b/version.py --- a/version.py +++ b/version.py @@ -48,4 +48,4 @@ # historical commits sharing the same major version, in which case a # minor version bump suffices. -PROVISION_VERSION = "173.3" +PROVISION_VERSION = "173.4"
{"golden_diff": "diff --git a/version.py b/version.py\n--- a/version.py\n+++ b/version.py\n@@ -48,4 +48,4 @@\n # historical commits sharing the same major version, in which case a\n # minor version bump suffices.\n \n-PROVISION_VERSION = \"173.3\"\n+PROVISION_VERSION = \"173.4\"\n", "issue": "\"Pan and zoom\" cuts ...
1,224
80
gh_patches_debug_11329
rasdani/github-patches
git_diff
conan-io__conan-center-index-4675
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [package] odbc/2.3.7: sysconfdir is in Conan local cache <!-- Please don't forget to update the issue title. Include all applicable information to help us reproduce your problem. --> ### Package an...
diff --git a/recipes/odbc/all/conanfile.py b/recipes/odbc/all/conanfile.py --- a/recipes/odbc/all/conanfile.py +++ b/recipes/odbc/all/conanfile.py @@ -57,7 +57,8 @@ args = ["--enable-static=%s" % static_flag, "--enable-shared=%s" % shared_flag, "--enable-ltdl-install", - ...
{"golden_diff": "diff --git a/recipes/odbc/all/conanfile.py b/recipes/odbc/all/conanfile.py\n--- a/recipes/odbc/all/conanfile.py\n+++ b/recipes/odbc/all/conanfile.py\n@@ -57,7 +57,8 @@\n args = [\"--enable-static=%s\" % static_flag,\n \"--enable-shared=%s\" % shared_flag,\n \"--e...
1,859
182
gh_patches_debug_10406
rasdani/github-patches
git_diff
iterative__dvc-9925
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- unnecessary remote repository fetches DVC has started cloning external repositories even on cases where it's not strictly required. Anything that uses `outs_graph` has started cloning external repositories....
diff --git a/dvc/repo/graph.py b/dvc/repo/graph.py --- a/dvc/repo/graph.py +++ b/dvc/repo/graph.py @@ -158,10 +158,9 @@ outs_graph.add_nodes_from(outs_trie.values()) for stage in graph.nodes(): + if stage.is_repo_import: + continue for dep in stage.deps: - if dep.fs_pat...
{"golden_diff": "diff --git a/dvc/repo/graph.py b/dvc/repo/graph.py\n--- a/dvc/repo/graph.py\n+++ b/dvc/repo/graph.py\n@@ -158,10 +158,9 @@\n \n outs_graph.add_nodes_from(outs_trie.values())\n for stage in graph.nodes():\n+ if stage.is_repo_import:\n+ continue\n for dep in stage.deps:\...
1,973
155
gh_patches_debug_7854
rasdani/github-patches
git_diff
coala__coala-4969
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add docstring for coala_modes.py mode_normal This function should have a proper docstring, and indicate that `log_printer` is unused & deprecated. --- END ISSUE --- Below are some code segments, each from a...
diff --git a/coalib/coala_modes.py b/coalib/coala_modes.py --- a/coalib/coala_modes.py +++ b/coalib/coala_modes.py @@ -1,4 +1,13 @@ def mode_normal(console_printer, log_printer, args, debug=False): + """ + This is the default coala mode. User interaction is allowed in this mode. + + :param console_printer: Ob...
{"golden_diff": "diff --git a/coalib/coala_modes.py b/coalib/coala_modes.py\n--- a/coalib/coala_modes.py\n+++ b/coalib/coala_modes.py\n@@ -1,4 +1,13 @@\n def mode_normal(console_printer, log_printer, args, debug=False):\n+ \"\"\"\n+ This is the default coala mode. User interaction is allowed in this mode.\n+\n+ ...
1,043
169
gh_patches_debug_26041
rasdani/github-patches
git_diff
comic__grand-challenge.org-2410
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add a time column to challenge requests table **Is your feature request related to a problem? Please describe.** Its not clear right away when each challenge request was submitted. **Describe the soluti...
diff --git a/app/grandchallenge/challenges/admin.py b/app/grandchallenge/challenges/admin.py --- a/app/grandchallenge/challenges/admin.py +++ b/app/grandchallenge/challenges/admin.py @@ -27,8 +27,22 @@ class ChallengeRequestAdmin(ModelAdmin): readonly_fields = ("creator",) ordering = ("-created",) - list_...
{"golden_diff": "diff --git a/app/grandchallenge/challenges/admin.py b/app/grandchallenge/challenges/admin.py\n--- a/app/grandchallenge/challenges/admin.py\n+++ b/app/grandchallenge/challenges/admin.py\n@@ -27,8 +27,22 @@\n class ChallengeRequestAdmin(ModelAdmin):\n readonly_fields = (\"creator\",)\n ordering =...
1,084
394
gh_patches_debug_32324
rasdani/github-patches
git_diff
modal-labs__modal-examples-695
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- remove duplicate webscraper example once #669 is merged --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `10...
diff --git a/10_integrations/webscraper.py b/10_integrations/webscraper.py --- a/10_integrations/webscraper.py +++ b/10_integrations/webscraper.py @@ -15,7 +15,7 @@ "apt-get install -y software-properties-common", "apt-add-repository non-free", "apt-add-repository contrib", - "pip install playwright==...
{"golden_diff": "diff --git a/10_integrations/webscraper.py b/10_integrations/webscraper.py\n--- a/10_integrations/webscraper.py\n+++ b/10_integrations/webscraper.py\n@@ -15,7 +15,7 @@\n \"apt-get install -y software-properties-common\",\n \"apt-add-repository non-free\",\n \"apt-add-repository contrib\",\n...
1,426
665
gh_patches_debug_14271
rasdani/github-patches
git_diff
getsentry__snuba-3697
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- About the sessions-subscription-results subscription issue ### Environment - sentry | snuba version :23.1.1 https://github.com/getsentry/snuba/pull/2737 ,@lynnagara Hello, I have a question about this p...
diff --git a/snuba/cli/subscriptions_scheduler_executor.py b/snuba/cli/subscriptions_scheduler_executor.py --- a/snuba/cli/subscriptions_scheduler_executor.py +++ b/snuba/cli/subscriptions_scheduler_executor.py @@ -24,7 +24,7 @@ "--dataset", "dataset_name", required=True, - type=click.Choice(["events"...
{"golden_diff": "diff --git a/snuba/cli/subscriptions_scheduler_executor.py b/snuba/cli/subscriptions_scheduler_executor.py\n--- a/snuba/cli/subscriptions_scheduler_executor.py\n+++ b/snuba/cli/subscriptions_scheduler_executor.py\n@@ -24,7 +24,7 @@\n \"--dataset\",\n \"dataset_name\",\n required=True,\n- ...
1,973
206
gh_patches_debug_13891
rasdani/github-patches
git_diff
Mailu__Mailu-1862
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Radicale password check fails (length limited?) So far, the webdav radicale is protected with basic auth (apparently htaccess or similar). If user password > 8 then it fails to connect. we should remove th...
diff --git a/core/admin/mailu/internal/views/auth.py b/core/admin/mailu/internal/views/auth.py --- a/core/admin/mailu/internal/views/auth.py +++ b/core/admin/mailu/internal/views/auth.py @@ -63,7 +63,7 @@ authorization = flask.request.headers.get("Authorization") if authorization and authorization.startswith(...
{"golden_diff": "diff --git a/core/admin/mailu/internal/views/auth.py b/core/admin/mailu/internal/views/auth.py\n--- a/core/admin/mailu/internal/views/auth.py\n+++ b/core/admin/mailu/internal/views/auth.py\n@@ -63,7 +63,7 @@\n authorization = flask.request.headers.get(\"Authorization\")\n if authorization and a...
1,168
170
gh_patches_debug_11556
rasdani/github-patches
git_diff
zestedesavoir__zds-site-6174
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Doublon pour les logs en couleur dans l'env de dev Sur mon environnement de dev, les logs en couleur apparaissent en double : dans leur version couleur et puis dans leur version standard. ![image](https://...
diff --git a/zds/settings/dev.py b/zds/settings/dev.py --- a/zds/settings/dev.py +++ b/zds/settings/dev.py @@ -55,10 +55,12 @@ "formatter": "django.server", }, }, + "root": { + "handlers": ["console"], + }, "loggers": { "django": { "level": "INFO", - ...
{"golden_diff": "diff --git a/zds/settings/dev.py b/zds/settings/dev.py\n--- a/zds/settings/dev.py\n+++ b/zds/settings/dev.py\n@@ -55,10 +55,12 @@\n \"formatter\": \"django.server\",\n },\n },\n+ \"root\": {\n+ \"handlers\": [\"console\"],\n+ },\n \"loggers\": {\n \"djan...
1,123
156
gh_patches_debug_242
rasdani/github-patches
git_diff
sanic-org__sanic-1559
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 2 failed tests when tox is not used (missing fixture "benchmark") `pytest-benchmark` is not present in `tests_require`, so there are 2 failed tests in `tests/benchmark/test_route_resolution_benchmark.py` when...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -96,6 +96,7 @@ ujson, "pytest-sanic", "pytest-sugar", + "pytest-benchmark", ] if strtobool(os.environ.get("SANIC_NO_UJSON", "no")):
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -96,6 +96,7 @@\n ujson,\n \"pytest-sanic\",\n \"pytest-sugar\",\n+ \"pytest-benchmark\",\n ]\n \n if strtobool(os.environ.get(\"SANIC_NO_UJSON\", \"no\")):\n", "issue": "2 failed tests when tox is not used (missing fixt...
1,535
75
gh_patches_debug_40285
rasdani/github-patches
git_diff
optuna__optuna-3115
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [RFC] Show progress bar based on `timeout` <!-- Please write a clear and concise description of the feature proposal. --> ## Motivation The current [`study.optimize`](https://optuna.readthedocs.io/en/st...
diff --git a/optuna/progress_bar.py b/optuna/progress_bar.py --- a/optuna/progress_bar.py +++ b/optuna/progress_bar.py @@ -39,9 +39,11 @@ def __init__( self, is_valid: bool, n_trials: Optional[int] = None, timeout: Optional[float] = None ) -> None: - self._is_valid = is_valid + + self._...
{"golden_diff": "diff --git a/optuna/progress_bar.py b/optuna/progress_bar.py\n--- a/optuna/progress_bar.py\n+++ b/optuna/progress_bar.py\n@@ -39,9 +39,11 @@\n def __init__(\n self, is_valid: bool, n_trials: Optional[int] = None, timeout: Optional[float] = None\n ) -> None:\n- self._is_valid = is...
1,363
768
gh_patches_debug_27844
rasdani/github-patches
git_diff
Zeroto521__my-data-toolkit-713
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ENH: New geoaccessor for GeoSeries to return tuple of coordinates `(x, y)` <!-- Thanks for contributing a pull request! Please follow these standard acronyms to start the commit message: - ENH: enhance...
diff --git a/dtoolkit/geoaccessor/geoseries/xy.py b/dtoolkit/geoaccessor/geoseries/xy.py --- a/dtoolkit/geoaccessor/geoseries/xy.py +++ b/dtoolkit/geoaccessor/geoseries/xy.py @@ -5,14 +5,19 @@ @register_geoseries_method -def xy(s: gpd.GeoSeries, /) -> pd.Series: +def xy(s: gpd.GeoSeries, /, reverse: bool = False) ...
{"golden_diff": "diff --git a/dtoolkit/geoaccessor/geoseries/xy.py b/dtoolkit/geoaccessor/geoseries/xy.py\n--- a/dtoolkit/geoaccessor/geoseries/xy.py\n+++ b/dtoolkit/geoaccessor/geoseries/xy.py\n@@ -5,14 +5,19 @@\n \n \n @register_geoseries_method\n-def xy(s: gpd.GeoSeries, /) -> pd.Series:\n+def xy(s: gpd.GeoSeries, /...
995
696
gh_patches_debug_18990
rasdani/github-patches
git_diff
qutebrowser__qutebrowser-5916
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Port completion.models.listcategory to QRegularExpression In `qutebrowser/completion/models/listcategory.py`, we use `QRegExp`, which is going to be removed in Qt 6: ```python rx = QRegExp(val, Qt...
diff --git a/qutebrowser/completion/models/listcategory.py b/qutebrowser/completion/models/listcategory.py --- a/qutebrowser/completion/models/listcategory.py +++ b/qutebrowser/completion/models/listcategory.py @@ -22,7 +22,7 @@ import re from typing import Iterable, Tuple -from PyQt5.QtCore import Qt, QSortFilterP...
{"golden_diff": "diff --git a/qutebrowser/completion/models/listcategory.py b/qutebrowser/completion/models/listcategory.py\n--- a/qutebrowser/completion/models/listcategory.py\n+++ b/qutebrowser/completion/models/listcategory.py\n@@ -22,7 +22,7 @@\n import re\n from typing import Iterable, Tuple\n \n-from PyQt5.QtCore...
1,507
245
gh_patches_debug_1842
rasdani/github-patches
git_diff
DistrictDataLabs__yellowbrick-1162
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pytest-runner is deprecated pytest-runner is deprecated: https://github.com/pytest-dev/pytest-runner/#deprecation-notice If I find time, then I can make a PR, but I thought I'd let you know in the meantime...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -163,9 +163,7 @@ "zip_safe": False, "entry_points": {"console_scripts": []}, "install_requires": list(get_requires()), - "python_requires": ">=3.4, <4", - "setup_requires": ["pytest-runner"], - "tests_require": ["pytest"], + "p...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -163,9 +163,7 @@\n \"zip_safe\": False,\n \"entry_points\": {\"console_scripts\": []},\n \"install_requires\": list(get_requires()),\n- \"python_requires\": \">=3.4, <4\",\n- \"setup_requires\": [\"pytest-runner\"],\...
1,983
111
gh_patches_debug_36242
rasdani/github-patches
git_diff
pytorch__ignite-1756
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve `ignite.contirb.metrics` implementation For these metrics in `ignite.contrib.metrics` : - [Average Precision](https://github.com/pytorch/ignite/blob/master/ignite/contrib/metrics/average_precision.p...
diff --git a/ignite/contrib/metrics/average_precision.py b/ignite/contrib/metrics/average_precision.py --- a/ignite/contrib/metrics/average_precision.py +++ b/ignite/contrib/metrics/average_precision.py @@ -1,4 +1,4 @@ -from typing import Callable +from typing import Callable, Optional, Union import torch @@ -6,13...
{"golden_diff": "diff --git a/ignite/contrib/metrics/average_precision.py b/ignite/contrib/metrics/average_precision.py\n--- a/ignite/contrib/metrics/average_precision.py\n+++ b/ignite/contrib/metrics/average_precision.py\n@@ -1,4 +1,4 @@\n-from typing import Callable\n+from typing import Callable, Optional, Union\n \n...
1,021
533
gh_patches_debug_37409
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-2875
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider tacocabana is broken During the global build at 2021-05-26-14-42-23, spider **tacocabana** failed with **0 features** and **1 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-05-26-1...
diff --git a/locations/spiders/tacocabana.py b/locations/spiders/tacocabana.py --- a/locations/spiders/tacocabana.py +++ b/locations/spiders/tacocabana.py @@ -1,37 +1,55 @@ # -*- coding: utf-8 -*- import scrapy -import json -import re from locations.items import GeojsonPointItem + class TacocabanaSpider(scrapy....
{"golden_diff": "diff --git a/locations/spiders/tacocabana.py b/locations/spiders/tacocabana.py\n--- a/locations/spiders/tacocabana.py\n+++ b/locations/spiders/tacocabana.py\n@@ -1,37 +1,55 @@\n # -*- coding: utf-8 -*-\n import scrapy\n-import json\n-import re\n \n from locations.items import GeojsonPointItem\n \n+\n c...
832
839
gh_patches_debug_2630
rasdani/github-patches
git_diff
joke2k__faker-826
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pt_BR email not returning valid email addresses When creating a fake Factory with the pt_BR it is not returning valid email addresses. Example: ``` melocauã@bol.com.br joão-gabrielferreira@ig.com.br laví...
diff --git a/faker/providers/internet/pt_BR/__init__.py b/faker/providers/internet/pt_BR/__init__.py --- a/faker/providers/internet/pt_BR/__init__.py +++ b/faker/providers/internet/pt_BR/__init__.py @@ -13,3 +13,11 @@ 'bol.com.br', 'ig.com.br') tlds = ('com', 'com', 'com', 'net', 'org', 'br', 'br...
{"golden_diff": "diff --git a/faker/providers/internet/pt_BR/__init__.py b/faker/providers/internet/pt_BR/__init__.py\n--- a/faker/providers/internet/pt_BR/__init__.py\n+++ b/faker/providers/internet/pt_BR/__init__.py\n@@ -13,3 +13,11 @@\n 'bol.com.br',\n 'ig.com.br')\n tlds = ('com', 'com', 'com', ...
477
199
gh_patches_debug_8784
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-632
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- get_last_root_page template tag not working ### Describe the Bug <!-- A clear and concise description of what the bug is. --> The `get_last_root_page` template tag is not working: https://github.com/Integr...
diff --git a/src/cms/templatetags/page_filters.py b/src/cms/templatetags/page_filters.py --- a/src/cms/templatetags/page_filters.py +++ b/src/cms/templatetags/page_filters.py @@ -12,9 +12,9 @@ This tag returns the last page on the root level. :param pages: The requested page tree - :type pages: ~mptt.que...
{"golden_diff": "diff --git a/src/cms/templatetags/page_filters.py b/src/cms/templatetags/page_filters.py\n--- a/src/cms/templatetags/page_filters.py\n+++ b/src/cms/templatetags/page_filters.py\n@@ -12,9 +12,9 @@\n This tag returns the last page on the root level.\n \n :param pages: The requested page tree\n- ...
760
203
gh_patches_debug_21667
rasdani/github-patches
git_diff
fedora-infra__bodhi-2005
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bodhi-dequqe-stable dies if any update in the queue is no longer eligible to go stable QuLogic from Freenode reported today that batched updates didn't go stable at 03:00 UTC like they should have. I confirme...
diff --git a/bodhi/server/scripts/dequeue_stable.py b/bodhi/server/scripts/dequeue_stable.py --- a/bodhi/server/scripts/dequeue_stable.py +++ b/bodhi/server/scripts/dequeue_stable.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright © 2017 Caleigh Runge-Hottman +# Copyright © 2017 Caleigh Runge-Hottman and Red Hat,...
{"golden_diff": "diff --git a/bodhi/server/scripts/dequeue_stable.py b/bodhi/server/scripts/dequeue_stable.py\n--- a/bodhi/server/scripts/dequeue_stable.py\n+++ b/bodhi/server/scripts/dequeue_stable.py\n@@ -1,5 +1,5 @@\n # -*- coding: utf-8 -*-\n-# Copyright \u00a9 2017 Caleigh Runge-Hottman\n+# Copyright \u00a9 2017 C...
1,057
319
gh_patches_debug_4008
rasdani/github-patches
git_diff
zestedesavoir__zds-site-2705
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Derniers sujets sur la Home : la date sur mobile n'est pas optimisée Sur mobile on à en général pas beaucoup de place. Et il faudrait éviter d'afficher la date literralle pour optimiser la place. Cf screen (...
diff --git a/zds/featured/forms.py b/zds/featured/forms.py --- a/zds/featured/forms.py +++ b/zds/featured/forms.py @@ -52,7 +52,7 @@ max_length=FeaturedResource._meta.get_field('image_url').max_length, widget=forms.TextInput( attrs={ - 'placeholder': _(u'Lien vers l\'url de...
{"golden_diff": "diff --git a/zds/featured/forms.py b/zds/featured/forms.py\n--- a/zds/featured/forms.py\n+++ b/zds/featured/forms.py\n@@ -52,7 +52,7 @@\n max_length=FeaturedResource._meta.get_field('image_url').max_length,\n widget=forms.TextInput(\n attrs={\n- 'placeholder':...
1,495
133
gh_patches_debug_7194
rasdani/github-patches
git_diff
instadeepai__Mava-1041
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG]: Flasbax bug on LBF (type issue) ### Describe the bug In the AgentID wrapper, the new_agents_view type is not enforced to be consistent, so for LBF with flashbax a dtype error emerges. ### To Reprod...
diff --git a/mava/wrappers/observation.py b/mava/wrappers/observation.py --- a/mava/wrappers/observation.py +++ b/mava/wrappers/observation.py @@ -38,7 +38,11 @@ """Adds agent IDs to the observation.""" obs = timestep.observation agent_ids = jnp.eye(num_agents) - agents_view = jnp.conc...
{"golden_diff": "diff --git a/mava/wrappers/observation.py b/mava/wrappers/observation.py\n--- a/mava/wrappers/observation.py\n+++ b/mava/wrappers/observation.py\n@@ -38,7 +38,11 @@\n \"\"\"Adds agent IDs to the observation.\"\"\"\n obs = timestep.observation\n agent_ids = jnp.eye(num_agents)\n-...
1,739
162
gh_patches_debug_62030
rasdani/github-patches
git_diff
fonttools__fonttools-2472
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [feaLib] "fonttools feaLib" should error out, not continue If there's a parse/build error when using the feaLib command line tool, we currently do this: https://github.com/fonttools/fonttools/blob/445108f7...
diff --git a/Lib/fontTools/feaLib/__main__.py b/Lib/fontTools/feaLib/__main__.py --- a/Lib/fontTools/feaLib/__main__.py +++ b/Lib/fontTools/feaLib/__main__.py @@ -70,6 +70,7 @@ if options.traceback: raise log.error(e) + sys.exit(1) font.save(output_font)
{"golden_diff": "diff --git a/Lib/fontTools/feaLib/__main__.py b/Lib/fontTools/feaLib/__main__.py\n--- a/Lib/fontTools/feaLib/__main__.py\n+++ b/Lib/fontTools/feaLib/__main__.py\n@@ -70,6 +70,7 @@\n if options.traceback:\n raise\n log.error(e)\n+ sys.exit(1)\n font.save(output_fon...
1,065
95
gh_patches_debug_43633
rasdani/github-patches
git_diff
bids-standard__pybids-17
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add get_fieldmap() method Option 1 (simple): ``` >> layout = BIDSLayout("/data/ds") >> layout.get_fieldmap("sub-01/func/sub-01_task-rest_bold.nii.gz") [ "/data/ds/sub-01/fmap/sub-01_magnitude1.nii.gz", "/...
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 @@ -18,7 +18,7 @@ if config is None: root = dirname(realpath(__file__)) config = pathjoin(root, 'config', 'bids.json') - super(BIDSLayo...
{"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@@ -18,7 +18,7 @@\n if config is None:\n root = dirname(realpath(__file__))\n config = pathjoin(root, 'config', 'bids.json')\...
1,904
995
gh_patches_debug_51
rasdani/github-patches
git_diff
magenta__magenta-1254
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pip installation fails due to librosa dependency Hi, I'm trying to install the magenta-gpu but when I did a pip install magenta-gpu: **librosa 0.6.2 has requirement joblib>=0.12, but you'll have joblib ...
diff --git a/magenta/version.py b/magenta/version.py --- a/magenta/version.py +++ b/magenta/version.py @@ -17,4 +17,4 @@ pulling in all the dependencies in __init__.py. """ -__version__ = '0.3.10' +__version__ = '0.3.11'
{"golden_diff": "diff --git a/magenta/version.py b/magenta/version.py\n--- a/magenta/version.py\n+++ b/magenta/version.py\n@@ -17,4 +17,4 @@\n pulling in all the dependencies in __init__.py.\n \"\"\"\n \n-__version__ = '0.3.10'\n+__version__ = '0.3.11'\n", "issue": "Pip installation fails due to librosa dependency\nHi,...
552
79
gh_patches_debug_2350
rasdani/github-patches
git_diff
mirumee__ariadne-184
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update setup.py to include html and py.typed files in published package Ariadne now includes `graphql_playground.html` django template and `py.typed` file for enabling typing. We should make sure those two ge...
diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ version="0.4.0", url="https://github.com/mirumee/ariadne", packages=["ariadne"], - package_data={"ariadne": ["py.typed"]}, + include_package_data=True, install_requires=[ "...
{"golden_diff": "diff --git a/setup.py b/setup.py\nold mode 100644\nnew mode 100755\n--- a/setup.py\n+++ b/setup.py\n@@ -28,7 +28,7 @@\n version=\"0.4.0\",\n url=\"https://github.com/mirumee/ariadne\",\n packages=[\"ariadne\"],\n- package_data={\"ariadne\": [\"py.typed\"]},\n+ include_package_data=Tru...
692
132
gh_patches_debug_36798
rasdani/github-patches
git_diff
Mailu__Mailu-3025
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [SUGG] Little verification in Mailu setup Hi thanks for Mailu it is a good project. I submit this suggestion because i made the error and take many time to find it. In step 4 of Mailu Setup for Docker compo...
diff --git a/setup/server.py b/setup/server.py --- a/setup/server.py +++ b/setup/server.py @@ -10,12 +10,16 @@ import ipaddress import hashlib import time - +import secrets +from flask_bootstrap import StaticCDN version = os.getenv("this_version", "master") static_url_path = "/" + version + "/static" app = flas...
{"golden_diff": "diff --git a/setup/server.py b/setup/server.py\n--- a/setup/server.py\n+++ b/setup/server.py\n@@ -10,12 +10,16 @@\n import ipaddress\n import hashlib\n import time\n-\n+import secrets\n+from flask_bootstrap import StaticCDN\n \n version = os.getenv(\"this_version\", \"master\")\n static_url_path = \"/\...
1,712
656
gh_patches_debug_10910
rasdani/github-patches
git_diff
learningequality__kolibri-4096
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The new learners and coachs account, can't view the kolibri 0.11.0a3 at first login <!-- Instructions: * Fill out the sections below, replace …'s with information about your issue * Use the 'preview' fun...
diff --git a/kolibri/core/views.py b/kolibri/core/views.py --- a/kolibri/core/views.py +++ b/kolibri/core/views.py @@ -59,6 +59,13 @@ def get_url_by_role(role, first_login): obj = next((hook for hook in RoleBasedRedirectHook().registered_hooks if hook.role == role and hook.first_login == first_lo...
{"golden_diff": "diff --git a/kolibri/core/views.py b/kolibri/core/views.py\n--- a/kolibri/core/views.py\n+++ b/kolibri/core/views.py\n@@ -59,6 +59,13 @@\n def get_url_by_role(role, first_login):\n obj = next((hook for hook in RoleBasedRedirectHook().registered_hooks\n if hook.role == role and hook....
1,753
177
gh_patches_debug_35237
rasdani/github-patches
git_diff
scikit-hep__pyhf-1435
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Correlated background simplemodel something like ```python def simplemodel2(s,b_up,b_nom,b_dn): spec = { 'channels': [ { 'name': 'singlechannel', ...
diff --git a/src/pyhf/simplemodels.py b/src/pyhf/simplemodels.py --- a/src/pyhf/simplemodels.py +++ b/src/pyhf/simplemodels.py @@ -1,12 +1,81 @@ from . import Model -__all__ = ["hepdata_like"] +__all__ = ["correlated_background", "hepdata_like"] def __dir__(): return __all__ +def correlated_background(...
{"golden_diff": "diff --git a/src/pyhf/simplemodels.py b/src/pyhf/simplemodels.py\n--- a/src/pyhf/simplemodels.py\n+++ b/src/pyhf/simplemodels.py\n@@ -1,12 +1,81 @@\n from . import Model\n \n-__all__ = [\"hepdata_like\"]\n+__all__ = [\"correlated_background\", \"hepdata_like\"]\n \n \n def __dir__():\n return __all...
1,117
746
gh_patches_debug_432
rasdani/github-patches
git_diff
HybirdCorp__creme_crm-431
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [WIP] fix python3.9.12 3.9.13 ci issue --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `creme/__init__.py` ...
diff --git a/creme/__init__.py b/creme/__init__.py --- a/creme/__init__.py +++ b/creme/__init__.py @@ -1,5 +1,10 @@ __version__ = '2.4-alpha1' + +def get_version(): + return __version__ + + # App registry hooking --------------------------------------------------------- try:
{"golden_diff": "diff --git a/creme/__init__.py b/creme/__init__.py\n--- a/creme/__init__.py\n+++ b/creme/__init__.py\n@@ -1,5 +1,10 @@\n __version__ = '2.4-alpha1'\n \n+\n+def get_version():\n+ return __version__\n+\n+\n # App registry hooking ---------------------------------------------------------\n \n try:\n", ...
573
87
gh_patches_debug_4679
rasdani/github-patches
git_diff
pyg-team__pytorch_geometric-8343
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Problem with torch_geometric.transforms ### 🐛 Describe the bug --------------------------------------------------------------------------- AttributeError Traceback (most recent ...
diff --git a/torch_geometric/warnings.py b/torch_geometric/warnings.py --- a/torch_geometric/warnings.py +++ b/torch_geometric/warnings.py @@ -1,13 +1,14 @@ import warnings +import torch + import torch_geometric -if torch_geometric.typing.WITH_PT20: # pragma: no cover - from torch._dynamo import is_compiling ...
{"golden_diff": "diff --git a/torch_geometric/warnings.py b/torch_geometric/warnings.py\n--- a/torch_geometric/warnings.py\n+++ b/torch_geometric/warnings.py\n@@ -1,13 +1,14 @@\n import warnings\n \n+import torch\n+\n import torch_geometric\n \n-if torch_geometric.typing.WITH_PT20: # pragma: no cover\n- from torch....
1,061
182
gh_patches_debug_18838
rasdani/github-patches
git_diff
ytdl-org__youtube-dl-13606
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SITE REQUEST: www.5-tv.ru Dear coders, I just visited this 5-tv.ru site, and I wanted to get news video from it, got no success. Please, add this 5-tv.ru into YDL supported sources list. Thanks in advance! ...
diff --git a/youtube_dl/extractor/fivetv.py b/youtube_dl/extractor/fivetv.py --- a/youtube_dl/extractor/fivetv.py +++ b/youtube_dl/extractor/fivetv.py @@ -43,7 +43,7 @@ 'info_dict': { 'id': 'glavnoe', 'ext': 'mp4', - 'title': 'Итоги недели с 8 по 14 июня 2015 года', + ...
{"golden_diff": "diff --git a/youtube_dl/extractor/fivetv.py b/youtube_dl/extractor/fivetv.py\n--- a/youtube_dl/extractor/fivetv.py\n+++ b/youtube_dl/extractor/fivetv.py\n@@ -43,7 +43,7 @@\n 'info_dict': {\n 'id': 'glavnoe',\n 'ext': 'mp4',\n- 'title': '\u0418\u0442\u043e\u043...
1,933
310
gh_patches_debug_47839
rasdani/github-patches
git_diff
holoviz__panel-3157
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add files to `__init__` for autocomplete in VS Code When writing in vs code the autocomplete only works for modules imported in an `__init__.py` file, e.g. `pn.widgets.IntSlider` work but `pn.viewable.Viewer`...
diff --git a/panel/__init__.py b/panel/__init__.py --- a/panel/__init__.py +++ b/panel/__init__.py @@ -3,6 +3,8 @@ from . import pane # noqa from . import param # noqa from . import pipeline # noqa +from . import reactive # noqa +from . import viewable # noqa from . import widgets # noqa from .config import conf...
{"golden_diff": "diff --git a/panel/__init__.py b/panel/__init__.py\n--- a/panel/__init__.py\n+++ b/panel/__init__.py\n@@ -3,6 +3,8 @@\n from . import pane # noqa\n from . import param # noqa\n from . import pipeline # noqa\n+from . import reactive # noqa\n+from . import viewable # noqa\n from . import widgets # noqa\n...
694
108
gh_patches_debug_15842
rasdani/github-patches
git_diff
falconry__falcon-174
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update to_query_str to intelligently handle lists --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `falcon/u...
diff --git a/falcon/util.py b/falcon/util.py --- a/falcon/util.py +++ b/falcon/util.py @@ -63,7 +63,8 @@ Args: params: dict of simple key-value types, where key is a string and value is a string or something that can be converted into a - string. + string. If value is a ...
{"golden_diff": "diff --git a/falcon/util.py b/falcon/util.py\n--- a/falcon/util.py\n+++ b/falcon/util.py\n@@ -63,7 +63,8 @@\n Args:\n params: dict of simple key-value types, where key is a string and\n value is a string or something that can be converted into a\n- string.\n+ ...
1,301
194
gh_patches_debug_6563
rasdani/github-patches
git_diff
cornellius-gp__gpytorch-1195
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] Cannot serialize/deserialize SmoothedBoxPrior when some args are broadcast # 🐛 Bug It seems like `SmoothedBoxPrior` for >1d doesn't work with serialization/deserialization when only some args are br...
diff --git a/gpytorch/priors/smoothed_box_prior.py b/gpytorch/priors/smoothed_box_prior.py --- a/gpytorch/priors/smoothed_box_prior.py +++ b/gpytorch/priors/smoothed_box_prior.py @@ -47,7 +47,7 @@ del self.a, self.b, self.sigma self.register_buffer("a", _a) self.register_buffer("b", _b) - ...
{"golden_diff": "diff --git a/gpytorch/priors/smoothed_box_prior.py b/gpytorch/priors/smoothed_box_prior.py\n--- a/gpytorch/priors/smoothed_box_prior.py\n+++ b/gpytorch/priors/smoothed_box_prior.py\n@@ -47,7 +47,7 @@\n del self.a, self.b, self.sigma\n self.register_buffer(\"a\", _a)\n self.regis...
1,586
151
gh_patches_debug_4473
rasdani/github-patches
git_diff
facebookresearch__hydra-1685
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CI fails with UserWarning raised from importing nevergrad example failure here https://app.circleci.com/pipelines/github/facebookresearch/hydra/10584/workflows/d4c57363-bb31-42f4-a7ee-29c28a577f67/jobs/95695 ...
diff --git a/plugins/hydra_nevergrad_sweeper/setup.py b/plugins/hydra_nevergrad_sweeper/setup.py --- a/plugins/hydra_nevergrad_sweeper/setup.py +++ b/plugins/hydra_nevergrad_sweeper/setup.py @@ -27,6 +27,7 @@ install_requires=[ "hydra-core>=1.1.0.dev7", "nevergrad>=0.4.3.post2", + "cma==3....
{"golden_diff": "diff --git a/plugins/hydra_nevergrad_sweeper/setup.py b/plugins/hydra_nevergrad_sweeper/setup.py\n--- a/plugins/hydra_nevergrad_sweeper/setup.py\n+++ b/plugins/hydra_nevergrad_sweeper/setup.py\n@@ -27,6 +27,7 @@\n install_requires=[\n \"hydra-core>=1.1.0.dev7\",\n \"nevergrad>=0.4.3...
855
169
gh_patches_debug_2196
rasdani/github-patches
git_diff
getredash__redash-1119
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- User should be able to delete an Alert Can't remove Alert with UI. Directly run sql as below. ``` sql delete from alerts where id = 〜 ``` --- END ISSUE --- Below are some code segments, each from a relev...
diff --git a/redash/handlers/alerts.py b/redash/handlers/alerts.py --- a/redash/handlers/alerts.py +++ b/redash/handlers/alerts.py @@ -34,6 +34,11 @@ return alert.to_dict() + def delete(self, alert_id): + alert = get_object_or_404(models.Alert.get_by_id_and_org, alert_id, self.current_org) + ...
{"golden_diff": "diff --git a/redash/handlers/alerts.py b/redash/handlers/alerts.py\n--- a/redash/handlers/alerts.py\n+++ b/redash/handlers/alerts.py\n@@ -34,6 +34,11 @@\n \n return alert.to_dict()\n \n+ def delete(self, alert_id):\n+ alert = get_object_or_404(models.Alert.get_by_id_and_org, alert_id,...
1,315
133
gh_patches_debug_4407
rasdani/github-patches
git_diff
pwndbg__pwndbg-1222
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ipi doesn't work with multiline inputs TL;DR: <img width="550" alt="image" src="https://user-images.githubusercontent.com/10009354/193942063-af410d4d-3cdd-4bcb-a102-9bb87d101656.png"> ``` pwndbg> ipi ...
diff --git a/pwndbg/commands/ipython_interactive.py b/pwndbg/commands/ipython_interactive.py --- a/pwndbg/commands/ipython_interactive.py +++ b/pwndbg/commands/ipython_interactive.py @@ -43,6 +43,6 @@ code4ipython = """import jedi import pwn jedi.Interpreter._allow_descriptor_getattr_default = False -IPython...
{"golden_diff": "diff --git a/pwndbg/commands/ipython_interactive.py b/pwndbg/commands/ipython_interactive.py\n--- a/pwndbg/commands/ipython_interactive.py\n+++ b/pwndbg/commands/ipython_interactive.py\n@@ -43,6 +43,6 @@\n code4ipython = \"\"\"import jedi\n import pwn\n jedi.Interpreter._allow_descriptor_getatt...
1,168
153
gh_patches_debug_8385
rasdani/github-patches
git_diff
explosion__spaCy-2274
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Typo in docs? multi-label text classification The docs give an example of text classification on IMDB [here](https://spacy.io/usage/training#example-textcat). It says it's "multi-label", but this dataset is b...
diff --git a/examples/training/train_textcat.py b/examples/training/train_textcat.py --- a/examples/training/train_textcat.py +++ b/examples/training/train_textcat.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # coding: utf8 -"""Train a multi-label convolutional neural network text classifier on the +"""Train a convolutio...
{"golden_diff": "diff --git a/examples/training/train_textcat.py b/examples/training/train_textcat.py\n--- a/examples/training/train_textcat.py\n+++ b/examples/training/train_textcat.py\n@@ -1,6 +1,6 @@\n #!/usr/bin/env python\n # coding: utf8\n-\"\"\"Train a multi-label convolutional neural network text classifier on ...
1,986
143
gh_patches_debug_11995
rasdani/github-patches
git_diff
encode__starlette-1574
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Denying WebSocket connection in WebSocketEndpoint.on_connect leads to Exception ### Discussed in https://github.com/encode/starlette/discussions/1555 <div type='discussions-op-text'> <sup>Originally pos...
diff --git a/starlette/endpoints.py b/starlette/endpoints.py --- a/starlette/endpoints.py +++ b/starlette/endpoints.py @@ -80,7 +80,9 @@ data = await self.decode(websocket, message) await self.on_receive(websocket, data) elif message["type"] == "websocket.disco...
{"golden_diff": "diff --git a/starlette/endpoints.py b/starlette/endpoints.py\n--- a/starlette/endpoints.py\n+++ b/starlette/endpoints.py\n@@ -80,7 +80,9 @@\n data = await self.decode(websocket, message)\n await self.on_receive(websocket, data)\n elif message[\"ty...
1,902
155
gh_patches_debug_38768
rasdani/github-patches
git_diff
sublimelsp__LSP-717
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Formatting adding trailing newline clears last line * OS and language server Linux + Gopls * How you installed LSP (Package Control or from git?) Package Control * Minimal reproduction steps ```go packa...
diff --git a/plugin/core/edit.py b/plugin/core/edit.py --- a/plugin/core/edit.py +++ b/plugin/core/edit.py @@ -1,4 +1,5 @@ from .url import uri_to_filename +import operator try: from typing import List, Dict, Optional, Any, Iterable, Tuple TextEdit = Tuple[Tuple[int, int], Tuple[int, int], str] @@ -32,11 +3...
{"golden_diff": "diff --git a/plugin/core/edit.py b/plugin/core/edit.py\n--- a/plugin/core/edit.py\n+++ b/plugin/core/edit.py\n@@ -1,4 +1,5 @@\n from .url import uri_to_filename\n+import operator\n try:\n from typing import List, Dict, Optional, Any, Iterable, Tuple\n TextEdit = Tuple[Tuple[int, int], Tuple[int...
1,642
635
gh_patches_debug_1674
rasdani/github-patches
git_diff
conan-io__conan-4324
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- tools.environment_append raises if tries to unset variable which was never set after #4224, I may use the following code, for instance, to ensure variable is not set: ``` with environment_append({'CONAN_BAS...
diff --git a/conans/client/tools/env.py b/conans/client/tools/env.py --- a/conans/client/tools/env.py +++ b/conans/client/tools/env.py @@ -54,7 +54,7 @@ old_env = dict(os.environ) os.environ.update(env_vars) for var in unset_vars: - os.environ.pop(var) + os.environ.pop(v...
{"golden_diff": "diff --git a/conans/client/tools/env.py b/conans/client/tools/env.py\n--- a/conans/client/tools/env.py\n+++ b/conans/client/tools/env.py\n@@ -54,7 +54,7 @@\n old_env = dict(os.environ)\n os.environ.update(env_vars)\n for var in unset_vars:\n- os.environ.pop(var)\n+ ...
1,576
95
gh_patches_debug_3685
rasdani/github-patches
git_diff
praw-dev__praw-888
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ListingGenerator gets stuck in loop when 'before' parameter is supplied. ## Issue Description When retrieving submissions and supplying the 'before' parameter, the ListingGenerator gets stuck in a loop whe...
diff --git a/praw/models/listing/generator.py b/praw/models/listing/generator.py --- a/praw/models/listing/generator.py +++ b/praw/models/listing/generator.py @@ -69,7 +69,8 @@ if not self._listing: raise StopIteration() - if self._listing.after: + if (self._listing.after and + ...
{"golden_diff": "diff --git a/praw/models/listing/generator.py b/praw/models/listing/generator.py\n--- a/praw/models/listing/generator.py\n+++ b/praw/models/listing/generator.py\n@@ -69,7 +69,8 @@\n if not self._listing:\n raise StopIteration()\n \n- if self._listing.after:\n+ if (self...
1,205
124
gh_patches_debug_17194
rasdani/github-patches
git_diff
vacanza__python-holidays-1592
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Regression in holidays in the Netherlands I noticed the change Update Netherlands holidays: add holiday categories #1552 broke my unit tests as it no longer considers Liberation day as a holiday on the 5yr in...
diff --git a/holidays/countries/netherlands.py b/holidays/countries/netherlands.py --- a/holidays/countries/netherlands.py +++ b/holidays/countries/netherlands.py @@ -67,6 +67,10 @@ dt += td(days=-1) if self._year >= 1980 else td(days=+1) self._add_holiday(name, dt) + if self._yea...
{"golden_diff": "diff --git a/holidays/countries/netherlands.py b/holidays/countries/netherlands.py\n--- a/holidays/countries/netherlands.py\n+++ b/holidays/countries/netherlands.py\n@@ -67,6 +67,10 @@\n dt += td(days=-1) if self._year >= 1980 else td(days=+1)\n self._add_holiday(name, dt)\n...
1,539
266
gh_patches_debug_6755
rasdani/github-patches
git_diff
wagtail__wagtail-3277
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Elasticsearch backend indexes draft updates of existing pages ### Issue Summary When saving a draft version of an existing live page the Elasticsearch backend reindexes the page with the draft content. The...
diff --git a/wagtail/wagtailsearch/signal_handlers.py b/wagtail/wagtailsearch/signal_handlers.py --- a/wagtail/wagtailsearch/signal_handlers.py +++ b/wagtail/wagtailsearch/signal_handlers.py @@ -5,7 +5,13 @@ from wagtail.wagtailsearch import index -def post_save_signal_handler(instance, **kwargs): +def post_save_s...
{"golden_diff": "diff --git a/wagtail/wagtailsearch/signal_handlers.py b/wagtail/wagtailsearch/signal_handlers.py\n--- a/wagtail/wagtailsearch/signal_handlers.py\n+++ b/wagtail/wagtailsearch/signal_handlers.py\n@@ -5,7 +5,13 @@\n from wagtail.wagtailsearch import index\n \n \n-def post_save_signal_handler(instance, **k...
664
180
gh_patches_debug_23357
rasdani/github-patches
git_diff
iterative__dvc-1076
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: dvc remote remove leads to Initialization error / config file error. **Setup** - dvc version 0.18.9, installed with pip, python Anaconda 3.6.4, Ubuntu 16.04 **Repro** ```bash set -e set -x rm...
diff --git a/dvc/command/remote.py b/dvc/command/remote.py --- a/dvc/command/remote.py +++ b/dvc/command/remote.py @@ -1,4 +1,6 @@ +import os import re +import configobj from dvc.config import Config from dvc.command.config import CmdConfig @@ -23,9 +25,35 @@ class CmdRemoteRemove(CmdConfig): + def _remove...
{"golden_diff": "diff --git a/dvc/command/remote.py b/dvc/command/remote.py\n--- a/dvc/command/remote.py\n+++ b/dvc/command/remote.py\n@@ -1,4 +1,6 @@\n+import os\n import re\n+import configobj\n \n from dvc.config import Config\n from dvc.command.config import CmdConfig\n@@ -23,9 +25,35 @@\n \n \n class CmdRemoteRemov...
1,023
342
gh_patches_debug_12525
rasdani/github-patches
git_diff
ethereum__web3.py-306
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Transform Markdown on PyPi release ### What was wrong? README is not readable on PyPI: https://pypi.python.org/pypi/web3/1.4.0 `setuptools-markdown` allows to publish README.md on PyPi - https://pypi.python...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -32,12 +32,13 @@ name='web3', version='3.13.5', description="""Web3.py""", - long_description=readme, + long_description_markdown_filename='README.md', author='Piper Merriam', author_email='pipermerriam@gmail.com', url...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -32,12 +32,13 @@\n name='web3',\n version='3.13.5',\n description=\"\"\"Web3.py\"\"\",\n- long_description=readme,\n+ long_description_markdown_filename='README.md',\n author='Piper Merriam',\n author_email='...
920
160
gh_patches_debug_6493
rasdani/github-patches
git_diff
pwr-Solaar__Solaar-2305
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Extend Makefile with installation and test targets **Information** - Solaar version: 1.1.11rc4 **Is your feature request related to a problem? Please describe.** The Solaar installation with all its depe...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -87,7 +87,7 @@ 'report-descriptor': ['hid-parser'], 'desktop-notifications': ['Notify (>= 0.7)'], 'git-commit': ['python-git-info'], - 'test': ['pytest'], + 'test': ['pytest', 'pytest-cov'], }, package_d...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -87,7 +87,7 @@\n 'report-descriptor': ['hid-parser'],\n 'desktop-notifications': ['Notify (>= 0.7)'],\n 'git-commit': ['python-git-info'],\n- 'test': ['pytest'],\n+ 'test': ['pytest', 'pytest-cov'...
1,547
130
gh_patches_debug_21755
rasdani/github-patches
git_diff
deepchecks__deepchecks-613
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [DOCS] Simple Model Comparison example improvement Currently, the Simple Model Comparison notebook lacks some explanations. Please follow the guidelines from this issue: #543 to improve it --- END ISSUE --...
diff --git a/deepchecks/utils/validation.py b/deepchecks/utils/validation.py --- a/deepchecks/utils/validation.py +++ b/deepchecks/utils/validation.py @@ -56,12 +56,8 @@ if isinstance(data, base.Dataset): features = data.features_columns - features_names = set(data.features) else: f...
{"golden_diff": "diff --git a/deepchecks/utils/validation.py b/deepchecks/utils/validation.py\n--- a/deepchecks/utils/validation.py\n+++ b/deepchecks/utils/validation.py\n@@ -56,12 +56,8 @@\n \n if isinstance(data, base.Dataset):\n features = data.features_columns\n- features_names = set(data.feature...
1,555
254
gh_patches_debug_15150
rasdani/github-patches
git_diff
huggingface__dataset-viewer-410
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error with RGBA images https://huggingface.co/datasets/huggan/few-shot-skulls ``` Status code: 500 Exception: Status500Error Message: cannot write mode RGBA as JPEG ``` reported by @Niel...
diff --git a/services/worker/src/worker/models/column/image.py b/services/worker/src/worker/models/column/image.py --- a/services/worker/src/worker/models/column/image.py +++ b/services/worker/src/worker/models/column/image.py @@ -41,5 +41,15 @@ if value is None: return None check_value(v...
{"golden_diff": "diff --git a/services/worker/src/worker/models/column/image.py b/services/worker/src/worker/models/column/image.py\n--- a/services/worker/src/worker/models/column/image.py\n+++ b/services/worker/src/worker/models/column/image.py\n@@ -41,5 +41,15 @@\n if value is None:\n return None\...
740
269
gh_patches_debug_32029
rasdani/github-patches
git_diff
PrefectHQ__prefect-3465
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Set flow labels through the CLI register command ## Current behavior Right now there is no way to add a label to a **flow** when registering it using the CLI. You only can set the label from inside the flow'...
diff --git a/src/prefect/cli/register.py b/src/prefect/cli/register.py --- a/src/prefect/cli/register.py +++ b/src/prefect/cli/register.py @@ -54,7 +54,14 @@ hidden=True, default=None, ) -def flow(file, name, project): +@click.option( + "--label", + "-l", + required=False, + hidden=True, + mul...
{"golden_diff": "diff --git a/src/prefect/cli/register.py b/src/prefect/cli/register.py\n--- a/src/prefect/cli/register.py\n+++ b/src/prefect/cli/register.py\n@@ -54,7 +54,14 @@\n hidden=True,\n default=None,\n )\n-def flow(file, name, project):\n+@click.option(\n+ \"--label\",\n+ \"-l\",\n+ required=F...
1,075
490
gh_patches_debug_17801
rasdani/github-patches
git_diff
apache__airflow-9759
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Replace flask_oauthlib with Authlib **Description** flask_oauthlib has been deprecated in favour of Authlib. It would be good if airflow starts using Authlib **Use case / motivation** FlaskAppBuild...
diff --git a/airflow/config_templates/default_webserver_config.py b/airflow/config_templates/default_webserver_config.py --- a/airflow/config_templates/default_webserver_config.py +++ b/airflow/config_templates/default_webserver_config.py @@ -70,15 +70,15 @@ # 'token_key':'access_token', # 'icon':'fa-google',...
{"golden_diff": "diff --git a/airflow/config_templates/default_webserver_config.py b/airflow/config_templates/default_webserver_config.py\n--- a/airflow/config_templates/default_webserver_config.py\n+++ b/airflow/config_templates/default_webserver_config.py\n@@ -70,15 +70,15 @@\n # 'token_key':'access_token',\n # ...
1,682
239
gh_patches_debug_4985
rasdani/github-patches
git_diff
spack__spack-2022
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `spack checksum` finds wrong URLs I was having some problems getting spack to find the correct URL for files. With these settings ``` python homepage = "http://fishshell.com/" url = "http://fis...
diff --git a/var/spack/repos/builtin/packages/fish/package.py b/var/spack/repos/builtin/packages/fish/package.py --- a/var/spack/repos/builtin/packages/fish/package.py +++ b/var/spack/repos/builtin/packages/fish/package.py @@ -32,8 +32,7 @@ homepage = "http://fishshell.com/" url = "http://fishshell.com...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/fish/package.py b/var/spack/repos/builtin/packages/fish/package.py\n--- a/var/spack/repos/builtin/packages/fish/package.py\n+++ b/var/spack/repos/builtin/packages/fish/package.py\n@@ -32,8 +32,7 @@\n \n homepage = \"http://fishshell.com/\"\n url ...
1,151
207
gh_patches_debug_29840
rasdani/github-patches
git_diff
onnx__sklearn-onnx-459
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix discrepencies introduced by sciki-learn 0.23 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `skl2onnx/...
diff --git a/skl2onnx/operator_converters/gaussian_process.py b/skl2onnx/operator_converters/gaussian_process.py --- a/skl2onnx/operator_converters/gaussian_process.py +++ b/skl2onnx/operator_converters/gaussian_process.py @@ -90,9 +90,22 @@ mean_y = op._y_train_mean.astype(dtype) if len(mean_y.shape)...
{"golden_diff": "diff --git a/skl2onnx/operator_converters/gaussian_process.py b/skl2onnx/operator_converters/gaussian_process.py\n--- a/skl2onnx/operator_converters/gaussian_process.py\n+++ b/skl2onnx/operator_converters/gaussian_process.py\n@@ -90,9 +90,22 @@\n mean_y = op._y_train_mean.astype(dtype)\n ...
1,902
532
gh_patches_debug_19106
rasdani/github-patches
git_diff
bridgecrewio__checkov-2319
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_AWS_40: failure even when not setting users **Describe the issue** The check fails when executing checkov on Terraform plan's JSON output. **Examples** ``` resource "aws_iam_policy_attachment" "atta...
diff --git a/checkov/terraform/checks/resource/base_resource_negative_value_check.py b/checkov/terraform/checks/resource/base_resource_negative_value_check.py --- a/checkov/terraform/checks/resource/base_resource_negative_value_check.py +++ b/checkov/terraform/checks/resource/base_resource_negative_value_check.py @@ -4...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/base_resource_negative_value_check.py b/checkov/terraform/checks/resource/base_resource_negative_value_check.py\n--- a/checkov/terraform/checks/resource/base_resource_negative_value_check.py\n+++ b/checkov/terraform/checks/resource/base_resource_negative_v...
1,450
218
gh_patches_debug_30698
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-602
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Show latest feedback in dashboard Show admins and content creators the latest feedback from app users in dashboard. This should be a list of the last ~5 messages. In some cases, the feedback only contains a t...
diff --git a/src/cms/views/dashboard/admin_dashboard_view.py b/src/cms/views/dashboard/admin_dashboard_view.py --- a/src/cms/views/dashboard/admin_dashboard_view.py +++ b/src/cms/views/dashboard/admin_dashboard_view.py @@ -4,6 +4,7 @@ from django.views.generic import TemplateView from ...decorators import staff_req...
{"golden_diff": "diff --git a/src/cms/views/dashboard/admin_dashboard_view.py b/src/cms/views/dashboard/admin_dashboard_view.py\n--- a/src/cms/views/dashboard/admin_dashboard_view.py\n+++ b/src/cms/views/dashboard/admin_dashboard_view.py\n@@ -4,6 +4,7 @@\n from django.views.generic import TemplateView\n \n from ...deco...
1,328
380
gh_patches_debug_25733
rasdani/github-patches
git_diff
Mailu__Mailu-731
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Increase attachment size limit Hello, How can web change the max file limit of attachment in Roundcube ? Version 1.5 --- END ISSUE --- Below are some code segments, each from a relevant file. One or ...
diff --git a/webmails/rainloop/start.py b/webmails/rainloop/start.py --- a/webmails/rainloop/start.py +++ b/webmails/rainloop/start.py @@ -10,6 +10,8 @@ os.environ["FRONT_ADDRESS"] = os.environ.get("FRONT_ADDRESS", "front") os.environ["IMAP_ADDRESS"] = os.environ.get("IMAP_ADDRESS", "imap") +os.environ["MAX_FILESIZ...
{"golden_diff": "diff --git a/webmails/rainloop/start.py b/webmails/rainloop/start.py\n--- a/webmails/rainloop/start.py\n+++ b/webmails/rainloop/start.py\n@@ -10,6 +10,8 @@\n os.environ[\"FRONT_ADDRESS\"] = os.environ.get(\"FRONT_ADDRESS\", \"front\")\n os.environ[\"IMAP_ADDRESS\"] = os.environ.get(\"IMAP_ADDRESS\", \"...
635
417
gh_patches_debug_9841
rasdani/github-patches
git_diff
bridgecrewio__checkov-993
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Checkov logs to stdout making the json un-parseable **Describe the bug** When you run checkov with the `-o json` and `LOG_LEVEL=WARNING` the logs are printed to `stdout` together with the json object. This w...
diff --git a/checkov/logging_init.py b/checkov/logging_init.py --- a/checkov/logging_init.py +++ b/checkov/logging_init.py @@ -9,7 +9,7 @@ logging.basicConfig(level=LOG_LEVEL) logFormatter = logging.Formatter("%(asctime)s [%(threadName)-12.12s] [%(levelname)-5.5s] %(message)s") rootLogger = logging.getL...
{"golden_diff": "diff --git a/checkov/logging_init.py b/checkov/logging_init.py\n--- a/checkov/logging_init.py\n+++ b/checkov/logging_init.py\n@@ -9,7 +9,7 @@\n logging.basicConfig(level=LOG_LEVEL)\n logFormatter = logging.Formatter(\"%(asctime)s [%(threadName)-12.12s] [%(levelname)-5.5s] %(message)s\")\n ...
568
137
gh_patches_debug_3547
rasdani/github-patches
git_diff
cisagov__manage.get.gov-199
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reconfigure OIDC logout to send client_id Login.gov recently changed their logout method to take `client_id` instead of the previous parameter `id_token_hint`. We need to change our code to match. ![Screen...
diff --git a/src/djangooidc/views.py b/src/djangooidc/views.py --- a/src/djangooidc/views.py +++ b/src/djangooidc/views.py @@ -84,8 +84,7 @@ try: username = request.user.username request_args = { - # it is perfectly fine to send the token, even if it is expired - "id_token_h...
{"golden_diff": "diff --git a/src/djangooidc/views.py b/src/djangooidc/views.py\n--- a/src/djangooidc/views.py\n+++ b/src/djangooidc/views.py\n@@ -84,8 +84,7 @@\n try:\n username = request.user.username\n request_args = {\n- # it is perfectly fine to send the token, even if it is expired\...
1,480
123
gh_patches_debug_709
rasdani/github-patches
git_diff
GeotrekCE__Geotrek-admin-4021
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Problème de thumbnail avec les SVG Bug détecté à partir de la version 2.101.4 de Geotrek Admin. Celui est déclenché par l'ajout d'un SVG comme pictogramme sur un lieu de renseignement. Explication : ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -72,6 +72,7 @@ # prod, 'gunicorn', 'sentry-sdk', + 'easy-thumbnails[svg]', ], cmdclass={"build": BuildCommand}, include_package_data=True,
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -72,6 +72,7 @@\n # prod,\n 'gunicorn',\n 'sentry-sdk',\n+ 'easy-thumbnails[svg]',\n ],\n cmdclass={\"build\": BuildCommand},\n include_package_data=True,\n", "issue": "Probl\u00e8me de thumbn...
1,104
72
gh_patches_debug_9365
rasdani/github-patches
git_diff
systemd__mkosi-1906
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Is it possible to create system extensions based on Arch Linux I have followed the documentation to the best of my abilities, however it seems not to be possible. When using `BaseTrees=…` and `Overlay=true`, ...
diff --git a/mkosi/state.py b/mkosi/state.py --- a/mkosi/state.py +++ b/mkosi/state.py @@ -16,7 +16,13 @@ self.workspace = workspace with umask(~0o755): - make_tree(self.config, self.root) + # Using a btrfs subvolume as the upperdir in an overlayfs results in EXDEV so make sure...
{"golden_diff": "diff --git a/mkosi/state.py b/mkosi/state.py\n--- a/mkosi/state.py\n+++ b/mkosi/state.py\n@@ -16,7 +16,13 @@\n self.workspace = workspace\n \n with umask(~0o755):\n- make_tree(self.config, self.root)\n+ # Using a btrfs subvolume as the upperdir in an overlayfs resu...
1,518
167
gh_patches_debug_27335
rasdani/github-patches
git_diff
geopandas__geopandas-1105
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Lat Long order is wrong in WKT example In regards to documentation of converting WKT format to geopandas GeoDataFrame, the order of LAT LONG is wrong. See #690 In the WKT POINT, you put the Lat first, amd ...
diff --git a/examples/create_geopandas_from_pandas.py b/examples/create_geopandas_from_pandas.py --- a/examples/create_geopandas_from_pandas.py +++ b/examples/create_geopandas_from_pandas.py @@ -51,7 +51,7 @@ ax = world[world.continent == 'South America'].plot( color='white', edgecolor='black') -# We can now pl...
{"golden_diff": "diff --git a/examples/create_geopandas_from_pandas.py b/examples/create_geopandas_from_pandas.py\n--- a/examples/create_geopandas_from_pandas.py\n+++ b/examples/create_geopandas_from_pandas.py\n@@ -51,7 +51,7 @@\n ax = world[world.continent == 'South America'].plot(\n color='white', edgecolor='blac...
1,317
445
gh_patches_debug_39786
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-3457
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider statefarm is broken During the global build at 2021-09-22-14-42-27, spider **statefarm** failed with **0 features** and **6575 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-09-22-...
diff --git a/locations/spiders/statefarm.py b/locations/spiders/statefarm.py --- a/locations/spiders/statefarm.py +++ b/locations/spiders/statefarm.py @@ -9,7 +9,7 @@ name = "statefarm" item_attributes = { 'brand': "State Farm" } allowed_domains = ["statefarm.com"] - download_delay = 0.2 + download...
{"golden_diff": "diff --git a/locations/spiders/statefarm.py b/locations/spiders/statefarm.py\n--- a/locations/spiders/statefarm.py\n+++ b/locations/spiders/statefarm.py\n@@ -9,7 +9,7 @@\n name = \"statefarm\"\n item_attributes = { 'brand': \"State Farm\" }\n allowed_domains = [\"statefarm.com\"]\n- down...
1,134
793
gh_patches_debug_17114
rasdani/github-patches
git_diff
safe-global__safe-config-service-15
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve admin page - [x] Add custom Admin models with `list_display`, `display_filter` (for example, by network), `ordering` and `search_fields`: https://docs.djangoproject.com/en/3.2/ref/contrib/admin/ - [x...
diff --git a/src/safe_apps/admin.py b/src/safe_apps/admin.py --- a/src/safe_apps/admin.py +++ b/src/safe_apps/admin.py @@ -2,5 +2,34 @@ from .models import SafeApp, Provider -models = [SafeApp, Provider] -admin.site.register(models) + +class NetworksFilter(admin.SimpleListFilter): + title = 'Networks' + para...
{"golden_diff": "diff --git a/src/safe_apps/admin.py b/src/safe_apps/admin.py\n--- a/src/safe_apps/admin.py\n+++ b/src/safe_apps/admin.py\n@@ -2,5 +2,34 @@\n \n from .models import SafeApp, Provider\n \n-models = [SafeApp, Provider]\n-admin.site.register(models)\n+\n+class NetworksFilter(admin.SimpleListFilter):\n+ ...
377
317
gh_patches_debug_32669
rasdani/github-patches
git_diff
OpenEnergyPlatform__oeplatform-1191
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve reading of version file in Welcome View * use caching because file is read every time user requests main page * wrap in try-except (missing release notice should not break the main page) FYI: @j...
diff --git a/base/views.py b/base/views.py --- a/base/views.py +++ b/base/views.py @@ -1,6 +1,7 @@ import json import os import re +from functools import lru_cache import markdown2 from django.core.mail import send_mail @@ -21,11 +22,24 @@ SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) -class Welco...
{"golden_diff": "diff --git a/base/views.py b/base/views.py\n--- a/base/views.py\n+++ b/base/views.py\n@@ -1,6 +1,7 @@\n import json\n import os\n import re\n+from functools import lru_cache\n \n import markdown2\n from django.core.mail import send_mail\n@@ -21,11 +22,24 @@\n SITE_ROOT = os.path.dirname(os.path.realpat...
1,976
542
gh_patches_debug_8670
rasdani/github-patches
git_diff
xonsh__xonsh-1566
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: 'BaseShell' object has no attribute 'cmdloop' My installed xonsh (from [AUR](https://aur.archlinux.org/packages/xonsh/)) suddenly broke? ``` console $ xonsh The most exciting phrase to hear i...
diff --git a/xonsh/shell.py b/xonsh/shell.py --- a/xonsh/shell.py +++ b/xonsh/shell.py @@ -48,6 +48,10 @@ # shell type is pulled from env if shell_type is None: shell_type = env.get('SHELL_TYPE') + if shell_type == 'none': + # This bricks interactive xonsh + ...
{"golden_diff": "diff --git a/xonsh/shell.py b/xonsh/shell.py\n--- a/xonsh/shell.py\n+++ b/xonsh/shell.py\n@@ -48,6 +48,10 @@\n # shell type is pulled from env\n if shell_type is None:\n shell_type = env.get('SHELL_TYPE')\n+ if shell_type == 'none':\n+ # This bricks...
1,705
153
gh_patches_debug_31353
rasdani/github-patches
git_diff
CTFd__CTFd-1832
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Don't require teams for viewing challenges if challenges are public Looks like if challenges are set to be public but teams are required then challenges can't be seen. This requirement needs to be relaxed a b...
diff --git a/CTFd/challenges.py b/CTFd/challenges.py --- a/CTFd/challenges.py +++ b/CTFd/challenges.py @@ -1,14 +1,12 @@ -from flask import Blueprint, render_template +from flask import Blueprint, redirect, render_template, request, url_for -from CTFd.utils import config +from CTFd.constants.config import ChallengeVi...
{"golden_diff": "diff --git a/CTFd/challenges.py b/CTFd/challenges.py\n--- a/CTFd/challenges.py\n+++ b/CTFd/challenges.py\n@@ -1,14 +1,12 @@\n-from flask import Blueprint, render_template\n+from flask import Blueprint, redirect, render_template, request, url_for\n \n-from CTFd.utils import config\n+from CTFd.constants....
603
485
gh_patches_debug_369
rasdani/github-patches
git_diff
kserve__kserve-2478
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update ModelMesh version to `v0.10.0` #### Proposed Changes Update to the latest ModelMesh version (`v0.10.0`) > If your changes should also be in the most recent release, add the corresponding "cherryp...
diff --git a/python/kserve/setup.py b/python/kserve/setup.py --- a/python/kserve/setup.py +++ b/python/kserve/setup.py @@ -21,7 +21,8 @@ 'pytest-cov', 'pytest-asyncio', 'pytest-tornasync', - 'mypy' + 'mypy', + 'portforward', ] with open('requirements.txt') as f:
{"golden_diff": "diff --git a/python/kserve/setup.py b/python/kserve/setup.py\n--- a/python/kserve/setup.py\n+++ b/python/kserve/setup.py\n@@ -21,7 +21,8 @@\n 'pytest-cov',\n 'pytest-asyncio',\n 'pytest-tornasync',\n- 'mypy'\n+ 'mypy',\n+ 'portforward',\n ]\n \n with open('requirements.txt') as f:\...
1,335
93
gh_patches_debug_21948
rasdani/github-patches
git_diff
urllib3__urllib3-817
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Honor PYTHONWARNINGS for SNIMissingWarning .local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indicatio...
diff --git a/urllib3/__init__.py b/urllib3/__init__.py --- a/urllib3/__init__.py +++ b/urllib3/__init__.py @@ -74,15 +74,18 @@ del NullHandler +# All warning filters *must* be appended unless you're really certain that they +# shouldn't be: otherwise, it's very hard for users to use most Python +# mechanisms to si...
{"golden_diff": "diff --git a/urllib3/__init__.py b/urllib3/__init__.py\n--- a/urllib3/__init__.py\n+++ b/urllib3/__init__.py\n@@ -74,15 +74,18 @@\n del NullHandler\n \n \n+# All warning filters *must* be appended unless you're really certain that they\n+# shouldn't be: otherwise, it's very hard for users to use most P...
1,376
255
gh_patches_debug_277
rasdani/github-patches
git_diff
sanic-org__sanic-1045
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 0.6.1 release to PyPi Hey folks, There's been a bunch of substantive changes in the past few months; I think it warrants a release of 0.6.1 (or 0.7, considering there may be large changes in PRs like #939)...
diff --git a/sanic/__init__.py b/sanic/__init__.py --- a/sanic/__init__.py +++ b/sanic/__init__.py @@ -1,6 +1,6 @@ from sanic.app import Sanic from sanic.blueprints import Blueprint -__version__ = '0.6.0' +__version__ = '0.7.0' __all__ = ['Sanic', 'Blueprint']
{"golden_diff": "diff --git a/sanic/__init__.py b/sanic/__init__.py\n--- a/sanic/__init__.py\n+++ b/sanic/__init__.py\n@@ -1,6 +1,6 @@\n from sanic.app import Sanic\n from sanic.blueprints import Blueprint\n \n-__version__ = '0.6.0'\n+__version__ = '0.7.0'\n \n __all__ = ['Sanic', 'Blueprint']\n", "issue": "0.6.1 relea...
400
98
gh_patches_debug_18265
rasdani/github-patches
git_diff
python-poetry__poetry-4110
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Exported requirements.txt contains spurious error message, making it unparseable - [X] I am on the [latest](https://github.com/python-poetry/poetry/releases/latest) Poetry version. - [X] I have searched the ...
diff --git a/poetry/console/commands/export.py b/poetry/console/commands/export.py --- a/poetry/console/commands/export.py +++ b/poetry/console/commands/export.py @@ -41,7 +41,7 @@ locker = self.poetry.locker if not locker.is_locked(): - self.line("<comment>The lock file does not exist. L...
{"golden_diff": "diff --git a/poetry/console/commands/export.py b/poetry/console/commands/export.py\n--- a/poetry/console/commands/export.py\n+++ b/poetry/console/commands/export.py\n@@ -41,7 +41,7 @@\n \n locker = self.poetry.locker\n if not locker.is_locked():\n- self.line(\"<comment>The lo...
1,369
204
gh_patches_debug_24595
rasdani/github-patches
git_diff
conan-io__conan-552
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Scope variables do not accept a value containing a ':' Hi, I modified the Boost package recipe so that I can specify an alternate url for downloading the source zip file. I used a scope variable for this purp...
diff --git a/conans/model/scope.py b/conans/model/scope.py --- a/conans/model/scope.py +++ b/conans/model/scope.py @@ -54,17 +54,8 @@ def from_list(items): result = Scopes() for item in items: - chunks = item.split(":") - if len(chunks) == 2: - root = chunks[0...
{"golden_diff": "diff --git a/conans/model/scope.py b/conans/model/scope.py\n--- a/conans/model/scope.py\n+++ b/conans/model/scope.py\n@@ -54,17 +54,8 @@\n def from_list(items):\n result = Scopes()\n for item in items:\n- chunks = item.split(\":\")\n- if len(chunks) == 2:\n- ...
1,412
334
gh_patches_debug_1371
rasdani/github-patches
git_diff
dotkom__onlineweb4-1902
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot view inventory ## What kind of an issue is this? - [x] Bug report ## What is the expected behaviour? To be able to view the inventory ## What is the current behaviour? A 500 error, wit...
diff --git a/apps/inventory/models.py b/apps/inventory/models.py --- a/apps/inventory/models.py +++ b/apps/inventory/models.py @@ -55,7 +55,7 @@ @property def has_expired_batch(self): - if timezone.now().date() >= self.oldest_expiration_date: + if self.oldest_expiration_date and timezone.now()...
{"golden_diff": "diff --git a/apps/inventory/models.py b/apps/inventory/models.py\n--- a/apps/inventory/models.py\n+++ b/apps/inventory/models.py\n@@ -55,7 +55,7 @@\n \n @property\n def has_expired_batch(self):\n- if timezone.now().date() >= self.oldest_expiration_date:\n+ if self.oldest_expiratio...
1,422
103
gh_patches_debug_4626
rasdani/github-patches
git_diff
sopel-irc__sopel-1677
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- etymology: Empty argument not handled Doing `.ety` with no or an empty argument doesn't behave properly. On Python 2 (my old personal instance), it causes `TypeError: None object cannot be quoted (file "/u...
diff --git a/sopel/modules/etymology.py b/sopel/modules/etymology.py --- a/sopel/modules/etymology.py +++ b/sopel/modules/etymology.py @@ -40,6 +40,9 @@ # @@ <nsh> sbp, would it be possible to have a flag for .ety to get 2nd/etc # entries? - http://swhack.com/logs/2006-07-19#T15-05-29 + if not word: + ...
{"golden_diff": "diff --git a/sopel/modules/etymology.py b/sopel/modules/etymology.py\n--- a/sopel/modules/etymology.py\n+++ b/sopel/modules/etymology.py\n@@ -40,6 +40,9 @@\n # @@ <nsh> sbp, would it be possible to have a flag for .ety to get 2nd/etc\n # entries? - http://swhack.com/logs/2006-07-19#T15-05-29\n ...
1,305
164
gh_patches_debug_16778
rasdani/github-patches
git_diff
sanic-org__sanic-2373
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Websocket logger uses sanic.log.error_logger Hey there, Why do we see: sanic.error - INFO - connection open via stderr when getting new websocket connections. Shouldn't this go to stdout? Also...
diff --git a/sanic/server/protocols/websocket_protocol.py b/sanic/server/protocols/websocket_protocol.py --- a/sanic/server/protocols/websocket_protocol.py +++ b/sanic/server/protocols/websocket_protocol.py @@ -5,7 +5,7 @@ from websockets.typing import Subprotocol from sanic.exceptions import ServerError -from sani...
{"golden_diff": "diff --git a/sanic/server/protocols/websocket_protocol.py b/sanic/server/protocols/websocket_protocol.py\n--- a/sanic/server/protocols/websocket_protocol.py\n+++ b/sanic/server/protocols/websocket_protocol.py\n@@ -5,7 +5,7 @@\n from websockets.typing import Subprotocol\n \n from sanic.exceptions import...
1,723
177
gh_patches_debug_3912
rasdani/github-patches
git_diff
saulpw__visidata-1338
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix documentation on website Not sure if this belongs here, but I believe to have found a small issue on the website. Paragraph # 7 in [10 Ways to Use VisiData](https://www.visidata.org/blog/2020/ten/) say...
diff --git a/visidata/vdobj.py b/visidata/vdobj.py --- a/visidata/vdobj.py +++ b/visidata/vdobj.py @@ -32,6 +32,7 @@ 'Make global func() and identical vd.func()' def _vdfunc(*args, **kwargs): return func(visidata.vd, *args, **kwargs) + visidata.vd.addGlobals({func.__name__: func}) ...
{"golden_diff": "diff --git a/visidata/vdobj.py b/visidata/vdobj.py\n--- a/visidata/vdobj.py\n+++ b/visidata/vdobj.py\n@@ -32,6 +32,7 @@\n 'Make global func() and identical vd.func()'\n def _vdfunc(*args, **kwargs):\n return func(visidata.vd, *args, **kwargs)\n+ visidata.vd.addGlobals...
1,882
122
gh_patches_debug_25651
rasdani/github-patches
git_diff
comic__grand-challenge.org-1136
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve annotation admin pages The graders have asked me to delete all annotations for one user for a specific image. There is currently no easy way to do this in the admin pages. I will need to find a way to...
diff --git a/app/grandchallenge/annotations/admin.py b/app/grandchallenge/annotations/admin.py --- a/app/grandchallenge/annotations/admin.py +++ b/app/grandchallenge/annotations/admin.py @@ -19,23 +19,33 @@ class SinglePolygonAnnotationInline(admin.StackedInline): model = SinglePolygonAnnotation extra = 0 + ...
{"golden_diff": "diff --git a/app/grandchallenge/annotations/admin.py b/app/grandchallenge/annotations/admin.py\n--- a/app/grandchallenge/annotations/admin.py\n+++ b/app/grandchallenge/annotations/admin.py\n@@ -19,23 +19,33 @@\n class SinglePolygonAnnotationInline(admin.StackedInline):\n model = SinglePolygonAnnota...
918
320
gh_patches_debug_14177
rasdani/github-patches
git_diff
spacetelescope__jwql-280
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update install_requires in setup.py After some research on StackOverflow and discussion with @SaOgaz and @laurenmarietta on the subject of `setup.py` dependencies and `requirements.txt`/`environment.yml` depe...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -7,8 +7,22 @@ AUTHORS = 'Matthew Bourque, Sara Ogaz, Joe Filippazzo, Bryan Hilbert, Misty Cracraft, ' AUTHORS += 'Graham Kanarek, Johannes Sahlmann, Lauren Chambers, Catherine Martlin' -REQUIRES = ['astroquery', 'bokeh==1.0.1', 'django==2.1.2', 'matp...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -7,8 +7,22 @@\n AUTHORS = 'Matthew Bourque, Sara Ogaz, Joe Filippazzo, Bryan Hilbert, Misty Cracraft, '\n AUTHORS += 'Graham Kanarek, Johannes Sahlmann, Lauren Chambers, Catherine Martlin'\n \n-REQUIRES = ['astroquery', 'bokeh==1.0.1'...
682
260
gh_patches_debug_38504
rasdani/github-patches
git_diff
wright-group__WrightTools-789
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- from_Cary handle duplicate named data Currently it will fail to read in data that has the same column header --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these f...
diff --git a/WrightTools/collection/_cary.py b/WrightTools/collection/_cary.py --- a/WrightTools/collection/_cary.py +++ b/WrightTools/collection/_cary.py @@ -4,7 +4,7 @@ # --- import -------------------------------------------------------------------------------------- -import os +import pathlib import re imp...
{"golden_diff": "diff --git a/WrightTools/collection/_cary.py b/WrightTools/collection/_cary.py\n--- a/WrightTools/collection/_cary.py\n+++ b/WrightTools/collection/_cary.py\n@@ -4,7 +4,7 @@\n # --- import --------------------------------------------------------------------------------------\n \n \n-import os\n+import ...
1,595
685
gh_patches_debug_35632
rasdani/github-patches
git_diff
chainer__chainer-1343
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support basic indexing in Variable class Currently `Variable` partially supports `__getitem__`. I need full support of basic indexing. - [x] int index #1343 - [x] slices #1154 - [x] new axis #1257 - [x] eli...
diff --git a/chainer/functions/array/get_item.py b/chainer/functions/array/get_item.py --- a/chainer/functions/array/get_item.py +++ b/chainer/functions/array/get_item.py @@ -1,7 +1,11 @@ import collections +import numpy + +import chainer from chainer import cuda from chainer import function +from chainer import u...
{"golden_diff": "diff --git a/chainer/functions/array/get_item.py b/chainer/functions/array/get_item.py\n--- a/chainer/functions/array/get_item.py\n+++ b/chainer/functions/array/get_item.py\n@@ -1,7 +1,11 @@\n import collections\n \n+import numpy\n+\n+import chainer\n from chainer import cuda\n from chainer import func...
782
566
gh_patches_debug_33281
rasdani/github-patches
git_diff
bridgecrewio__checkov-277
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- GCP: GoogleCloudSqlDatabasePublicallyAccessible raises AttributeError # Description A SQL database instance declared like this crashes the check for publically-accessible instances: ```hcl resource "go...
diff --git a/checkov/kubernetes/parser/parser.py b/checkov/kubernetes/parser/parser.py --- a/checkov/kubernetes/parser/parser.py +++ b/checkov/kubernetes/parser/parser.py @@ -20,10 +20,10 @@ if filename.endswith(".json"): (template, template_lines) = k8_json.load(filename) if template: - ...
{"golden_diff": "diff --git a/checkov/kubernetes/parser/parser.py b/checkov/kubernetes/parser/parser.py\n--- a/checkov/kubernetes/parser/parser.py\n+++ b/checkov/kubernetes/parser/parser.py\n@@ -20,10 +20,10 @@\n if filename.endswith(\".json\"):\n (template, template_lines) = k8_json.load(filename)\...
1,992
422
gh_patches_debug_30158
rasdani/github-patches
git_diff
saleor__saleor-1480
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Custom 404 page Right now in demo store we display generic 404 page https://demo.getsaleor.com/i-do-not-exist/ Could implement something more interesting, with a nice design. What should be included: ...
diff --git a/saleor/core/urls.py b/saleor/core/urls.py --- a/saleor/core/urls.py +++ b/saleor/core/urls.py @@ -8,6 +8,7 @@ urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^style-guide/', views.styleguide, name='styleguide'), + url(r'^404', views.handle_404, name='404'), url(r'^impersonate/...
{"golden_diff": "diff --git a/saleor/core/urls.py b/saleor/core/urls.py\n--- a/saleor/core/urls.py\n+++ b/saleor/core/urls.py\n@@ -8,6 +8,7 @@\n urlpatterns = [\n url(r'^$', views.home, name='home'),\n url(r'^style-guide/', views.styleguide, name='styleguide'),\n+ url(r'^404', views.handle_404, name='404'),\...
1,386
432
gh_patches_debug_26413
rasdani/github-patches
git_diff
svthalia__concrexit-2105
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add support for multiple local partners ### Is your feature request related to a problem? Please describe. We really want to be able to have multiple local partners at Thalia. And the website current does no...
diff --git a/website/newsletters/emails.py b/website/newsletters/emails.py --- a/website/newsletters/emails.py +++ b/website/newsletters/emails.py @@ -40,7 +40,7 @@ text_template = get_template("newsletters/email.txt") main_partner = Partner.objects.filter(is_main_partner=True).first() - local_partner = ...
{"golden_diff": "diff --git a/website/newsletters/emails.py b/website/newsletters/emails.py\n--- a/website/newsletters/emails.py\n+++ b/website/newsletters/emails.py\n@@ -40,7 +40,7 @@\n text_template = get_template(\"newsletters/email.txt\")\n \n main_partner = Partner.objects.filter(is_main_partner=True).firs...
1,745
311
gh_patches_debug_32206
rasdani/github-patches
git_diff
learningequality__kolibri-5236
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- reminder: remove debug logging code before final release ### Observed behavior #5223 introduced some verbose logging code ### Expected behavior remove before release ### User-facing consequences...
diff --git a/kolibri/core/notifications/tasks.py b/kolibri/core/notifications/tasks.py --- a/kolibri/core/notifications/tasks.py +++ b/kolibri/core/notifications/tasks.py @@ -54,20 +54,15 @@ with transaction.atomic(): for fn in self.running: try: - ...
{"golden_diff": "diff --git a/kolibri/core/notifications/tasks.py b/kolibri/core/notifications/tasks.py\n--- a/kolibri/core/notifications/tasks.py\n+++ b/kolibri/core/notifications/tasks.py\n@@ -54,20 +54,15 @@\n with transaction.atomic():\n for fn in self.running:\n try:...
1,262
349