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_7002
rasdani/github-patches
git_diff
streamlit__streamlit-7050
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove number_input -/+ step toggles option Is there an option to remove the -/+ number_input step toggles? If not, I would suggest that for a future release. Thank you! Also, is it possible to increase t...
diff --git a/e2e/scripts/st_number_input.py b/e2e/scripts/st_number_input.py --- a/e2e/scripts/st_number_input.py +++ b/e2e/scripts/st_number_input.py @@ -47,3 +47,9 @@ st.number_input("number input 9", key="number_input9", on_change=on_change) st.write('value 9: "', st.session_state.number_input9, '"') ...
{"golden_diff": "diff --git a/e2e/scripts/st_number_input.py b/e2e/scripts/st_number_input.py\n--- a/e2e/scripts/st_number_input.py\n+++ b/e2e/scripts/st_number_input.py\n@@ -47,3 +47,9 @@\n st.number_input(\"number input 9\", key=\"number_input9\", on_change=on_change)\n st.write('value 9: \"', st.session_stat...
966
185
gh_patches_debug_29309
rasdani/github-patches
git_diff
deepchecks__deepchecks-1131
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [FEAT] add tests for more model types we should test any model with predict and predict_proba functions, including the common ones: Scikitlearn (also pipelines) CatBoost LGBM XGBoost Custom binary clas...
diff --git a/deepchecks/tabular/checks/overview/model_info.py b/deepchecks/tabular/checks/overview/model_info.py --- a/deepchecks/tabular/checks/overview/model_info.py +++ b/deepchecks/tabular/checks/overview/model_info.py @@ -35,8 +35,12 @@ model = context.model estimator = get_model_of_pipeline(mode...
{"golden_diff": "diff --git a/deepchecks/tabular/checks/overview/model_info.py b/deepchecks/tabular/checks/overview/model_info.py\n--- a/deepchecks/tabular/checks/overview/model_info.py\n+++ b/deepchecks/tabular/checks/overview/model_info.py\n@@ -35,8 +35,12 @@\n model = context.model\n estimator = get_...
1,532
391
gh_patches_debug_5115
rasdani/github-patches
git_diff
magenta__magenta-1347
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] Melody_rnn Create Dataset get_pipeline missing arg `melody_rnn_create_dataset --config=basic_rnn --input=notesequences.tfrecord --output_dir=sequence_examples` fails with this error: ``` File "/Users/...
diff --git a/magenta/models/melody_rnn/melody_rnn_create_dataset.py b/magenta/models/melody_rnn/melody_rnn_create_dataset.py --- a/magenta/models/melody_rnn/melody_rnn_create_dataset.py +++ b/magenta/models/melody_rnn/melody_rnn_create_dataset.py @@ -49,7 +49,7 @@ config = melody_rnn_config_flags.config_from_flags...
{"golden_diff": "diff --git a/magenta/models/melody_rnn/melody_rnn_create_dataset.py b/magenta/models/melody_rnn/melody_rnn_create_dataset.py\n--- a/magenta/models/melody_rnn/melody_rnn_create_dataset.py\n+++ b/magenta/models/melody_rnn/melody_rnn_create_dataset.py\n@@ -49,7 +49,7 @@\n \n config = melody_rnn_config_f...
1,127
146
gh_patches_debug_22874
rasdani/github-patches
git_diff
chainer__chainer-719
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unreadable error message appears when `nvcc` command is not found Only "No suche file or directory" is shown in such case. related to #698 --- END ISSUE --- Below are some code segments, each from a relev...
diff --git a/cupy/cuda/compiler.py b/cupy/cuda/compiler.py --- a/cupy/cuda/compiler.py +++ b/cupy/cuda/compiler.py @@ -32,6 +32,15 @@ os.rmdir(self.path) +def _run_nvcc(cmd, cwd): + try: + return subprocess.check_output(cmd, cwd=cwd) + except OSError as e: + trace = sys.exc_info()[2] + ...
{"golden_diff": "diff --git a/cupy/cuda/compiler.py b/cupy/cuda/compiler.py\n--- a/cupy/cuda/compiler.py\n+++ b/cupy/cuda/compiler.py\n@@ -32,6 +32,15 @@\n os.rmdir(self.path)\n \n \n+def _run_nvcc(cmd, cwd):\n+ try:\n+ return subprocess.check_output(cmd, cwd=cwd)\n+ except OSError as e:\n+ ...
1,510
304
gh_patches_debug_27343
rasdani/github-patches
git_diff
bridgecrewio__checkov-5115
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- update-locale triggers CKV_DOCKER_5 **Describe the issue** CKV_DOCKER_5 (Ensure update instructions are not use alone in the Dockerfile) fails in anything that has `update` in it. From reading the source, it...
diff --git a/checkov/dockerfile/checks/UpdateNotAlone.py b/checkov/dockerfile/checks/UpdateNotAlone.py --- a/checkov/dockerfile/checks/UpdateNotAlone.py +++ b/checkov/dockerfile/checks/UpdateNotAlone.py @@ -1,5 +1,6 @@ from __future__ import annotations +import re from typing import TYPE_CHECKING from checkov.co...
{"golden_diff": "diff --git a/checkov/dockerfile/checks/UpdateNotAlone.py b/checkov/dockerfile/checks/UpdateNotAlone.py\n--- a/checkov/dockerfile/checks/UpdateNotAlone.py\n+++ b/checkov/dockerfile/checks/UpdateNotAlone.py\n@@ -1,5 +1,6 @@\n from __future__ import annotations\n \n+import re\n from typing import TYPE_CHE...
984
296
gh_patches_debug_57147
rasdani/github-patches
git_diff
pymeasure__pymeasure-433
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pyvisa no longer support ask, replace with query In resources.py `idn = res.ask('*idn?')[:-1]` Should be: `idn = res.query('*idn?')[:-1]` --- END ISSUE --- Below are some code segments, each from a relev...
diff --git a/pymeasure/instruments/resources.py b/pymeasure/instruments/resources.py --- a/pymeasure/instruments/resources.py +++ b/pymeasure/instruments/resources.py @@ -47,7 +47,7 @@ # try to avoid errors from *idn? try: # noinspection PyUnresolvedReferences - ...
{"golden_diff": "diff --git a/pymeasure/instruments/resources.py b/pymeasure/instruments/resources.py\n--- a/pymeasure/instruments/resources.py\n+++ b/pymeasure/instruments/resources.py\n@@ -47,7 +47,7 @@\n # try to avoid errors from *idn?\n try:\n # noinspection PyUnresolvedRefe...
960
122
gh_patches_debug_56463
rasdani/github-patches
git_diff
acl-org__acl-anthology-3109
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reingestion Request: ROCLING (10-20-2023) ### General information about this request - [X] I confirm that I have read the [Information for Submitters](https://aclanthology.org/info/contrib/). - [ ] I am subm...
diff --git a/bin/volumes_from_diff.py b/bin/volumes_from_diff.py --- a/bin/volumes_from_diff.py +++ b/bin/volumes_from_diff.py @@ -20,6 +20,7 @@ volumes = [] for filepath in sys.stdin: + filepath = filepath.rstrip() if filepath.startswith("python/") or not filepath.endswith(".xml"): continue
{"golden_diff": "diff --git a/bin/volumes_from_diff.py b/bin/volumes_from_diff.py\n--- a/bin/volumes_from_diff.py\n+++ b/bin/volumes_from_diff.py\n@@ -20,6 +20,7 @@\n \n volumes = []\n for filepath in sys.stdin:\n+ filepath = filepath.rstrip()\n if filepath.startswith(\"python/\") or not filepath.endswith(\".xml...
1,007
82
gh_patches_debug_2740
rasdani/github-patches
git_diff
mozilla__bugbug-200
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use 'product' and 'component' features in the models b7369ea8bf282941ce4b378ad5ad3c832db20668 introduced the features, but we are still not using them. --- END ISSUE --- Below are some code segments, each f...
diff --git a/bugbug/models/bug.py b/bugbug/models/bug.py --- a/bugbug/models/bug.py +++ b/bugbug/models/bug.py @@ -39,6 +39,8 @@ bug_features.blocked_bugs_number(), bug_features.ever_affected(), bug_features.affected_then_unaffected(), + bug_features.product(), + ...
{"golden_diff": "diff --git a/bugbug/models/bug.py b/bugbug/models/bug.py\n--- a/bugbug/models/bug.py\n+++ b/bugbug/models/bug.py\n@@ -39,6 +39,8 @@\n bug_features.blocked_bugs_number(),\n bug_features.ever_affected(),\n bug_features.affected_then_unaffected(),\n+ bug_feat...
2,013
98
gh_patches_debug_50396
rasdani/github-patches
git_diff
freqtrade__freqtrade-2467
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow simple loading of "dummy" configuration A simple method to load a minimal configuration should be added. This can be handy for some data-analysis tasks in notebooks, where no full configuration is ne...
diff --git a/freqtrade/configuration/check_exchange.py b/freqtrade/configuration/check_exchange.py --- a/freqtrade/configuration/check_exchange.py +++ b/freqtrade/configuration/check_exchange.py @@ -21,7 +21,7 @@ and thus is not known for the Freqtrade at all. """ - if (config['runmode'] in [Run...
{"golden_diff": "diff --git a/freqtrade/configuration/check_exchange.py b/freqtrade/configuration/check_exchange.py\n--- a/freqtrade/configuration/check_exchange.py\n+++ b/freqtrade/configuration/check_exchange.py\n@@ -21,7 +21,7 @@\n and thus is not known for the Freqtrade at all.\n \"\"\"\n \n- if...
1,034
154
gh_patches_debug_34359
rasdani/github-patches
git_diff
bridgecrewio__checkov-975
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_AWS_103 should not trigger for TCP NLB's Hi! CKV_AWS_103 throws an error when using an NLB with TCP protocol. However, setting an `ssl_policy` only make sense for ELB's with protocol HTTPS or TLS. ...
diff --git a/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py b/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py --- a/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py +++ b/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py @@ -6,28 +6,35 @@ def __init__(self): ...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py b/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py\n--- a/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py\n+++ b/checkov/terraform/checks/resource/aws/AppLoadBalancerTLS12.py\n@@ -6,28 +6,35 @@\n d...
932
577
gh_patches_debug_29263
rasdani/github-patches
git_diff
joke2k__faker-266
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- use environment markers and reactivate universal wheels + distribute wheels right now pip install is broken due to the released package claiming to be universal wheel but not using environment markers so pi...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -3,7 +3,6 @@ import os import io -import sys from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) @@ -13,11 +12,6 @@ version = '0.5.3' -install_requires = [] -if ((sys.version_info[0] == 2 and sys.ver...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -3,7 +3,6 @@\n \n import os\n import io\n-import sys\n from setuptools import setup, find_packages\n \n here = os.path.abspath(os.path.dirname(__file__))\n@@ -13,11 +12,6 @@\n \n version = '0.5.3'\n \n-install_requires = []\n-if ((sys...
984
372
gh_patches_debug_8279
rasdani/github-patches
git_diff
microsoft__ptvsd-759
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Create release version of ptvsd Create a release version of ptvsd version 4.1.1 - [x] Change development status to production from alpha - [x] Set version to 4.1.1 --- END ISSUE --- Below are some co...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -59,7 +59,7 @@ url='https://aka.ms/ptvs', python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", classifiers=[ - 'Development Status :: 3 - Alpha', + 'Development Status :: 5 - Production/Stable', ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -59,7 +59,7 @@\n url='https://aka.ms/ptvs',\n python_requires=\">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*\",\n classifiers=[\n- 'Development Status :: 3 - Alpha',\n+ 'Development Status :: 5 -...
1,098
136
gh_patches_debug_24618
rasdani/github-patches
git_diff
airctic__icevision-660
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fastai efficientdet fails on learn.validate() with AttributeError: 'NoneType' object has no attribute 'shape' ## 🐛 Bug when trying to simply validate metrics for an efficientdet model with fastai ```pytho...
diff --git a/icevision/models/ross/efficientdet/fastai/learner.py b/icevision/models/ross/efficientdet/fastai/learner.py --- a/icevision/models/ross/efficientdet/fastai/learner.py +++ b/icevision/models/ross/efficientdet/fastai/learner.py @@ -34,14 +34,14 @@ **learner_kwargs, ) - # HACK: patch AvgLos...
{"golden_diff": "diff --git a/icevision/models/ross/efficientdet/fastai/learner.py b/icevision/models/ross/efficientdet/fastai/learner.py\n--- a/icevision/models/ross/efficientdet/fastai/learner.py\n+++ b/icevision/models/ross/efficientdet/fastai/learner.py\n@@ -34,14 +34,14 @@\n **learner_kwargs,\n )\n \n-...
1,483
428
gh_patches_debug_24853
rasdani/github-patches
git_diff
getnikola__nikola-2188
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use a FS cache for Jinja to speed it up a bit http://jinja.pocoo.org/docs/dev/api/#bytecode-cache --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may c...
diff --git a/nikola/plugins/template/jinja.py b/nikola/plugins/template/jinja.py --- a/nikola/plugins/template/jinja.py +++ b/nikola/plugins/template/jinja.py @@ -52,18 +52,21 @@ """Initialize Jinja2 environment with extended set of filters.""" if jinja2 is None: return - self.look...
{"golden_diff": "diff --git a/nikola/plugins/template/jinja.py b/nikola/plugins/template/jinja.py\n--- a/nikola/plugins/template/jinja.py\n+++ b/nikola/plugins/template/jinja.py\n@@ -52,18 +52,21 @@\n \"\"\"Initialize Jinja2 environment with extended set of filters.\"\"\"\n if jinja2 is None:\n ...
1,551
316
gh_patches_debug_9404
rasdani/github-patches
git_diff
pyca__cryptography-3130
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- scrypt bounds checking ``` [11:23:58] <Alex_Gaynor> reaperhulk: what happens if you pass a non-even n? [11:24:10] <Alex_Gaynor> Or a negative value for any of the params? ``` Presumably it will fail wi...
diff --git a/src/cryptography/hazmat/primitives/kdf/scrypt.py b/src/cryptography/hazmat/primitives/kdf/scrypt.py --- a/src/cryptography/hazmat/primitives/kdf/scrypt.py +++ b/src/cryptography/hazmat/primitives/kdf/scrypt.py @@ -25,6 +25,16 @@ self._length = length if not isinstance(salt, bytes): ...
{"golden_diff": "diff --git a/src/cryptography/hazmat/primitives/kdf/scrypt.py b/src/cryptography/hazmat/primitives/kdf/scrypt.py\n--- a/src/cryptography/hazmat/primitives/kdf/scrypt.py\n+++ b/src/cryptography/hazmat/primitives/kdf/scrypt.py\n@@ -25,6 +25,16 @@\n self._length = length\n if not isinstanc...
869
216
gh_patches_debug_32814
rasdani/github-patches
git_diff
MycroftAI__mycroft-core-645
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- skill container is broken When the intent skill became the intent class the skill container wasn't updated to match the new structure and is currently not working. --- END ISSUE --- Below are some code segm...
diff --git a/mycroft/skills/container.py b/mycroft/skills/container.py --- a/mycroft/skills/container.py +++ b/mycroft/skills/container.py @@ -23,7 +23,7 @@ from mycroft.configuration import ConfigurationManager from mycroft.messagebus.client.ws import WebsocketClient from mycroft.skills.core import create_skill_des...
{"golden_diff": "diff --git a/mycroft/skills/container.py b/mycroft/skills/container.py\n--- a/mycroft/skills/container.py\n+++ b/mycroft/skills/container.py\n@@ -23,7 +23,7 @@\n from mycroft.configuration import ConfigurationManager\n from mycroft.messagebus.client.ws import WebsocketClient\n from mycroft.skills.core ...
1,256
362
gh_patches_debug_25137
rasdani/github-patches
git_diff
pyqtgraph__pyqtgraph-1072
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- HDF5Exporter: throws error when curves aren't the same length When trying to save data from a graph as an hdf5 file, the HDF5Exporter throws and error when you have multiple curves with differing lengths. Thi...
diff --git a/pyqtgraph/exporters/HDF5Exporter.py b/pyqtgraph/exporters/HDF5Exporter.py --- a/pyqtgraph/exporters/HDF5Exporter.py +++ b/pyqtgraph/exporters/HDF5Exporter.py @@ -44,20 +44,27 @@ data = [] appendAllX = self.params['columnMode'] == '(x,y) per plot' - #print dir(self.item.curves[0])...
{"golden_diff": "diff --git a/pyqtgraph/exporters/HDF5Exporter.py b/pyqtgraph/exporters/HDF5Exporter.py\n--- a/pyqtgraph/exporters/HDF5Exporter.py\n+++ b/pyqtgraph/exporters/HDF5Exporter.py\n@@ -44,20 +44,27 @@\n data = []\n \n appendAllX = self.params['columnMode'] == '(x,y) per plot'\n- #print ...
1,120
480
gh_patches_debug_25737
rasdani/github-patches
git_diff
pytorch__vision-1301
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- allow utils.save_image to write to a file object Currently, the `torchvision.utils.save_image` function only allows to save to a file on disk. https://github.com/pytorch/vision/blob/26c9630bc7add88685400e544...
diff --git a/torchvision/utils.py b/torchvision/utils.py --- a/torchvision/utils.py +++ b/torchvision/utils.py @@ -87,13 +87,16 @@ return grid -def save_image(tensor, filename, nrow=8, padding=2, - normalize=False, range=None, scale_each=False, pad_value=0): +def save_image(tensor, fp, nrow=8, pa...
{"golden_diff": "diff --git a/torchvision/utils.py b/torchvision/utils.py\n--- a/torchvision/utils.py\n+++ b/torchvision/utils.py\n@@ -87,13 +87,16 @@\n return grid\n \n \n-def save_image(tensor, filename, nrow=8, padding=2,\n- normalize=False, range=None, scale_each=False, pad_value=0):\n+def save_im...
1,814
357
gh_patches_debug_7270
rasdani/github-patches
git_diff
pantsbuild__pants-18551
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `Failed to write to remote cache` when running `ruff` **Describe the bug** When running `pants lint --only=ruff ::` I see many `WARN` logs like: ``` 14:18:48.60 [WARN] Failed to write to remote cache (1 ...
diff --git a/src/python/pants/backend/python/lint/ruff/rules.py b/src/python/pants/backend/python/lint/ruff/rules.py --- a/src/python/pants/backend/python/lint/ruff/rules.py +++ b/src/python/pants/backend/python/lint/ruff/rules.py @@ -45,7 +45,7 @@ ruff_pex, argv=("--fix", *conf_args, *ruff.ar...
{"golden_diff": "diff --git a/src/python/pants/backend/python/lint/ruff/rules.py b/src/python/pants/backend/python/lint/ruff/rules.py\n--- a/src/python/pants/backend/python/lint/ruff/rules.py\n+++ b/src/python/pants/backend/python/lint/ruff/rules.py\n@@ -45,7 +45,7 @@\n ruff_pex,\n argv=(\"--fix...
1,130
146
gh_patches_debug_3369
rasdani/github-patches
git_diff
svthalia__concrexit-1925
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Annual documents does not show drop-down menu for year ### Describe the bug When I try to add an annual document to the site, I am not able to select a year, the dropdown menu does not contain any entries....
diff --git a/website/documents/forms.py b/website/documents/forms.py --- a/website/documents/forms.py +++ b/website/documents/forms.py @@ -64,6 +64,10 @@ for year in range(current + 1, 1989, -1) ] + year = forms.TypedChoiceField( + coerce=int, choices=_year_choices.__func__, initial=_c...
{"golden_diff": "diff --git a/website/documents/forms.py b/website/documents/forms.py\n--- a/website/documents/forms.py\n+++ b/website/documents/forms.py\n@@ -64,6 +64,10 @@\n for year in range(current + 1, 1989, -1)\n ]\n \n+ year = forms.TypedChoiceField(\n+ coerce=int, choices=_year_cho...
1,250
118
gh_patches_debug_28224
rasdani/github-patches
git_diff
Parsl__parsl-435
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- confusing error message with simple configs Using this config: ``` config = Config(executors=[ThreadPoolExecutor()]) ``` parsl startup logs this message to the logger: ``` $ ./c.py 2018-07-11 08...
diff --git a/parsl/config.py b/parsl/config.py --- a/parsl/config.py +++ b/parsl/config.py @@ -48,7 +48,7 @@ app_cache=True, checkpoint_files=None, checkpoint_mode=None, - checkpoint_period="00:30:00", + checkpoint_period=None, ...
{"golden_diff": "diff --git a/parsl/config.py b/parsl/config.py\n--- a/parsl/config.py\n+++ b/parsl/config.py\n@@ -48,7 +48,7 @@\n app_cache=True,\n checkpoint_files=None,\n checkpoint_mode=None,\n- checkpoint_period=\"00:30:00\",\n+ che...
1,374
326
gh_patches_debug_576
rasdani/github-patches
git_diff
pex-tool__pex-975
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.10 On the docket: + [x] Improve Pex packaging. (#961) + [x] Make the interpreter cache deterministic. (#960) + [x] Fix deprecation warning for `rU` mode (#956) + [x] Fix runtime resolve error ...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = '2.1.9' +__version__ = '2.1.10'
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = '2.1.9'\n+__version__ = '2.1.10'\n", "issue...
501
95
gh_patches_debug_2746
rasdani/github-patches
git_diff
facebookresearch__ParlAI-3351
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BERT classifier doesn't work under distributed_train The default tokenization is re, I think it's building the dictionary along the way... **Logs** Please paste the command line output: ``` ValueError...
diff --git a/parlai/agents/bert_ranker/bert_dictionary.py b/parlai/agents/bert_ranker/bert_dictionary.py --- a/parlai/agents/bert_ranker/bert_dictionary.py +++ b/parlai/agents/bert_ranker/bert_dictionary.py @@ -24,6 +24,9 @@ Allow to use the Torch Agent with the wordpiece dictionary of Hugging Face. """ + ...
{"golden_diff": "diff --git a/parlai/agents/bert_ranker/bert_dictionary.py b/parlai/agents/bert_ranker/bert_dictionary.py\n--- a/parlai/agents/bert_ranker/bert_dictionary.py\n+++ b/parlai/agents/bert_ranker/bert_dictionary.py\n@@ -24,6 +24,9 @@\n Allow to use the Torch Agent with the wordpiece dictionary of Hugging...
1,079
138
gh_patches_debug_17982
rasdani/github-patches
git_diff
apluslms__a-plus-820
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add separate button for Aalto login (aside Haka login) In a recent change (pull request #804 ) Aalto (or other local organization) login button was replaced by general Haka login, that directs user to organiz...
diff --git a/aplus/urls.py b/aplus/urls.py --- a/aplus/urls.py +++ b/aplus/urls.py @@ -31,7 +31,7 @@ # Pay attention to the order the URL patterns will be matched! urlpatterns = [ url(r'^admin/', admin.site.urls), - url(r'^shibboleth/', include(shibboleth_login.urls)), + url(r'^', include(shibboleth_login...
{"golden_diff": "diff --git a/aplus/urls.py b/aplus/urls.py\n--- a/aplus/urls.py\n+++ b/aplus/urls.py\n@@ -31,7 +31,7 @@\n # Pay attention to the order the URL patterns will be matched!\n urlpatterns = [\n url(r'^admin/', admin.site.urls),\n- url(r'^shibboleth/', include(shibboleth_login.urls)),\n+ url(r'^',...
1,059
288
gh_patches_debug_2281
rasdani/github-patches
git_diff
rasterio__rasterio-438
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- polygonize method no longer in use / use shapes instead? Hi, just going through the examples folders. If I ran the python interpreter on `poligonize.py` it complains about a missing attribute: ``` (venv)[]...
diff --git a/examples/polygonize.py b/examples/polygonize.py --- a/examples/polygonize.py +++ b/examples/polygonize.py @@ -1,10 +1,12 @@ import pprint import rasterio -import rasterio._features as ftrz +from rasterio.features import shapes -with rasterio.open('box.png') as src: - image = src.read_band(1) +with...
{"golden_diff": "diff --git a/examples/polygonize.py b/examples/polygonize.py\n--- a/examples/polygonize.py\n+++ b/examples/polygonize.py\n@@ -1,10 +1,12 @@\n import pprint\n \n import rasterio\n-import rasterio._features as ftrz\n+from rasterio.features import shapes\n \n-with rasterio.open('box.png') as src:\n- im...
540
149
gh_patches_debug_6609
rasdani/github-patches
git_diff
strawberry-graphql__strawberry-1249
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Undefined variable issue in 0.77.6 With the latest release of #1213, this [line](https://github.com/strawberry-graphql/strawberry/blob/main/strawberry/types/nodes.py#L40) raises a KeyError when a variable is ...
diff --git a/strawberry/types/nodes.py b/strawberry/types/nodes.py --- a/strawberry/types/nodes.py +++ b/strawberry/types/nodes.py @@ -37,7 +37,7 @@ if isinstance(node, GQLVariableNode): # Look up variable name = node.name.value - return info.variable_values[name] + return info.vari...
{"golden_diff": "diff --git a/strawberry/types/nodes.py b/strawberry/types/nodes.py\n--- a/strawberry/types/nodes.py\n+++ b/strawberry/types/nodes.py\n@@ -37,7 +37,7 @@\n if isinstance(node, GQLVariableNode):\n # Look up variable\n name = node.name.value\n- return info.variable_values[name]\n...
1,781
133
gh_patches_debug_2475
rasdani/github-patches
git_diff
Gallopsled__pwntools-597
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- A little bug in Buffer class There is a litttle bug in pwnlib.tubes.Buffer class.The class method unget has a type error in line 117.add a buffer and a list ``` Traceback (most recent call last): File "<i...
diff --git a/pwnlib/tubes/buffer.py b/pwnlib/tubes/buffer.py --- a/pwnlib/tubes/buffer.py +++ b/pwnlib/tubes/buffer.py @@ -114,7 +114,7 @@ 'goodbyeworld' """ if isinstance(data, Buffer): - self.data = data + self.data + self.data = data.data + self.data ...
{"golden_diff": "diff --git a/pwnlib/tubes/buffer.py b/pwnlib/tubes/buffer.py\n--- a/pwnlib/tubes/buffer.py\n+++ b/pwnlib/tubes/buffer.py\n@@ -114,7 +114,7 @@\n 'goodbyeworld'\n \"\"\"\n if isinstance(data, Buffer):\n- self.data = data + self.data\n+ self.data = data.da...
1,739
113
gh_patches_debug_11967
rasdani/github-patches
git_diff
translate__pootle-6574
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Configurable logo url and favicon It would be nice to have a configurable logo in the config file like you did for the name of pootle site (`POOTLE_TITLE`) instead of creating a custom template or editing the...
diff --git a/pootle/apps/pootle_misc/context_processors.py b/pootle/apps/pootle_misc/context_processors.py --- a/pootle/apps/pootle_misc/context_processors.py +++ b/pootle/apps/pootle_misc/context_processors.py @@ -43,6 +43,7 @@ 'settings': { 'POOTLE_CUSTOM_LOGO': getattr(settings, "POOTLE_CUSTOM_...
{"golden_diff": "diff --git a/pootle/apps/pootle_misc/context_processors.py b/pootle/apps/pootle_misc/context_processors.py\n--- a/pootle/apps/pootle_misc/context_processors.py\n+++ b/pootle/apps/pootle_misc/context_processors.py\n@@ -43,6 +43,7 @@\n 'settings': {\n 'POOTLE_CUSTOM_LOGO': getattr(set...
928
169
gh_patches_debug_6623
rasdani/github-patches
git_diff
netbox-community__netbox-14901
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Changing event rule action type messes up Conditions field ### Deployment Type Self-hosted ### NetBox Version v3.7.1 ### Python Version 3.11 ### Steps to Reproduce 1. Go to **Operations -...
diff --git a/netbox/utilities/forms/fields/fields.py b/netbox/utilities/forms/fields/fields.py --- a/netbox/utilities/forms/fields/fields.py +++ b/netbox/utilities/forms/fields/fields.py @@ -105,7 +105,12 @@ return value if value in ('', None): return '' - return json.dumps(val...
{"golden_diff": "diff --git a/netbox/utilities/forms/fields/fields.py b/netbox/utilities/forms/fields/fields.py\n--- a/netbox/utilities/forms/fields/fields.py\n+++ b/netbox/utilities/forms/fields/fields.py\n@@ -105,7 +105,12 @@\n return value\n if value in ('', None):\n return ''\n- ...
1,685
167
gh_patches_debug_23338
rasdani/github-patches
git_diff
python-pillow__Pillow-3950
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ImageGrab fails with multiple monitors When calling ImageGrab.grab() passing in a bounding box that is outside the area of my primary monitor, I just get black. For example, my primary monitor is 1920x1200, ...
diff --git a/src/PIL/ImageGrab.py b/src/PIL/ImageGrab.py --- a/src/PIL/ImageGrab.py +++ b/src/PIL/ImageGrab.py @@ -29,7 +29,7 @@ raise ImportError("ImageGrab is macOS and Windows only") -def grab(bbox=None, include_layered_windows=False): +def grab(bbox=None, include_layered_windows=False, all_screens=False): ...
{"golden_diff": "diff --git a/src/PIL/ImageGrab.py b/src/PIL/ImageGrab.py\n--- a/src/PIL/ImageGrab.py\n+++ b/src/PIL/ImageGrab.py\n@@ -29,7 +29,7 @@\n raise ImportError(\"ImageGrab is macOS and Windows only\")\n \n \n-def grab(bbox=None, include_layered_windows=False):\n+def grab(bbox=None, include_layered_windows=...
1,706
312
gh_patches_debug_20985
rasdani/github-patches
git_diff
facebookresearch__fairscale-295
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [bug] pip package 0.1.3 fails to install Both `python3.8 -m pip install fairscale --verbose` and `python3.8 -m pip install fairscale --no-build-isolation --verbose` trigger ``` ninja: error: '/tmp/pip-ins...
diff --git a/fairscale/__init__.py b/fairscale/__init__.py --- a/fairscale/__init__.py +++ b/fairscale/__init__.py @@ -3,7 +3,7 @@ # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. -__version__ = "0.1.3" +__version__ = "0.1.4" ############...
{"golden_diff": "diff --git a/fairscale/__init__.py b/fairscale/__init__.py\n--- a/fairscale/__init__.py\n+++ b/fairscale/__init__.py\n@@ -3,7 +3,7 @@\n # This source code is licensed under the BSD license found in the\n # LICENSE file in the root directory of this source tree.\n \n-__version__ = \"0.1.3\"\n+__version_...
1,323
249
gh_patches_debug_26947
rasdani/github-patches
git_diff
opensearch-project__opensearch-build-4194
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Detecting and alerting of duplication keys/components/entries in YAML file ### Is your feature request related to a problem? Please describe it was found in release 1.3.11 , a PR to update [manifest](https...
diff --git a/src/ci_workflow/ci_manifests.py b/src/ci_workflow/ci_manifests.py --- a/src/ci_workflow/ci_manifests.py +++ b/src/ci_workflow/ci_manifests.py @@ -26,25 +26,16 @@ else: return CiInputManifest - @staticmethod - def __get_duplicate_component_names(count_component_names: Counter) ...
{"golden_diff": "diff --git a/src/ci_workflow/ci_manifests.py b/src/ci_workflow/ci_manifests.py\n--- a/src/ci_workflow/ci_manifests.py\n+++ b/src/ci_workflow/ci_manifests.py\n@@ -26,25 +26,16 @@\n else:\n return CiInputManifest\n \n- @staticmethod\n- def __get_duplicate_component_names(count_c...
1,018
332
gh_patches_debug_62586
rasdani/github-patches
git_diff
pwr-Solaar__Solaar-907
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- locale.Error: unsupported locale setting exception when glibc locale files are not present **Information** - Solaar version: 1.0.3 - Distribution: Fedora - Kernel version (ex. `uname -srmo`): `Linux 5.7.11...
diff --git a/lib/solaar/i18n.py b/lib/solaar/i18n.py --- a/lib/solaar/i18n.py +++ b/lib/solaar/i18n.py @@ -47,7 +47,11 @@ # del _path -locale.setlocale(locale.LC_ALL, '') +try: + locale.setlocale(locale.LC_ALL, '') +except Exception: + pass + language, encoding = locale.getlocale() del locale
{"golden_diff": "diff --git a/lib/solaar/i18n.py b/lib/solaar/i18n.py\n--- a/lib/solaar/i18n.py\n+++ b/lib/solaar/i18n.py\n@@ -47,7 +47,11 @@\n # del _path\n \n \n-locale.setlocale(locale.LC_ALL, '')\n+try:\n+ locale.setlocale(locale.LC_ALL, '')\n+except Exception:\n+ pass\n+\n language, encoding = locale.get...
1,303
112
gh_patches_debug_32615
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-446
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve documentation of view decorators Explain what our view decorators are doing and add docstrings of the following format: ``` """ [Summary] :param [ParamName]: [ParamDescription], defaults to [Def...
diff --git a/src/cms/decorators.py b/src/cms/decorators.py --- a/src/cms/decorators.py +++ b/src/cms/decorators.py @@ -1,3 +1,8 @@ +""" +Django view decorators can be used to restrict the execution of a view function on certain conditions. + +For more information, see :doc:`topics/http/decorators`. +""" import time f...
{"golden_diff": "diff --git a/src/cms/decorators.py b/src/cms/decorators.py\n--- a/src/cms/decorators.py\n+++ b/src/cms/decorators.py\n@@ -1,3 +1,8 @@\n+\"\"\"\n+Django view decorators can be used to restrict the execution of a view function on certain conditions.\n+\n+For more information, see :doc:`topics/http/decora...
810
502
gh_patches_debug_15148
rasdani/github-patches
git_diff
strawberry-graphql__strawberry-1977
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- FIX #565 (Import for apollo tracing extension requires telemetry) ## Description FIX #565 ## Types of Changes <!--- What types of changes does your pull request introduce? Put an `x` in all the boxe...
diff --git a/strawberry/extensions/tracing/__init__.py b/strawberry/extensions/tracing/__init__.py --- a/strawberry/extensions/tracing/__init__.py +++ b/strawberry/extensions/tracing/__init__.py @@ -1,2 +1,27 @@ -from .apollo import ApolloTracingExtension, ApolloTracingExtensionSync # noqa -from .opentelemetry import ...
{"golden_diff": "diff --git a/strawberry/extensions/tracing/__init__.py b/strawberry/extensions/tracing/__init__.py\n--- a/strawberry/extensions/tracing/__init__.py\n+++ b/strawberry/extensions/tracing/__init__.py\n@@ -1,2 +1,27 @@\n-from .apollo import ApolloTracingExtension, ApolloTracingExtensionSync # noqa\n-from ...
544
327
gh_patches_debug_35676
rasdani/github-patches
git_diff
pytorch__examples-228
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- VAE loss According to the expression in line 95, the KL-divergence term is calculated from `0.5 * sum(1 + log(sigma^2) - mu^2 - sigma^2)` but I think the code in line 96-97 represents `0.5 * sum(1 + log(si...
diff --git a/vae/main.py b/vae/main.py --- a/vae/main.py +++ b/vae/main.py @@ -4,6 +4,7 @@ import torch.utils.data from torch import nn, optim from torch.autograd import Variable +from torch.nn import functional as F from torchvision import datasets, transforms from torchvision.utils import save_image @@ -77,18 ...
{"golden_diff": "diff --git a/vae/main.py b/vae/main.py\n--- a/vae/main.py\n+++ b/vae/main.py\n@@ -4,6 +4,7 @@\n import torch.utils.data\n from torch import nn, optim\n from torch.autograd import Variable\n+from torch.nn import functional as F\n from torchvision import datasets, transforms\n from torchvision.utils impo...
2,044
652
gh_patches_debug_523
rasdani/github-patches
git_diff
streamlit__streamlit-2217
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Streamlit fails to start without Git executable # Summary Streamlit version `0.69.1` fails to start when run inside a Docker container that doesn't have Git installed. # Steps to reproduce 1. Create ...
diff --git a/lib/setup.py b/lib/setup.py --- a/lib/setup.py +++ b/lib/setup.py @@ -8,7 +8,7 @@ from pipenv.utils import convert_deps_to_pip from setuptools.command.install import install -VERSION = "0.69.1" # PEP-440 +VERSION = "0.69.2" # PEP-440 NAME = "streamlit"
{"golden_diff": "diff --git a/lib/setup.py b/lib/setup.py\n--- a/lib/setup.py\n+++ b/lib/setup.py\n@@ -8,7 +8,7 @@\n from pipenv.utils import convert_deps_to_pip\n from setuptools.command.install import install\n \n-VERSION = \"0.69.1\" # PEP-440\n+VERSION = \"0.69.2\" # PEP-440\n \n NAME = \"streamlit\"\n", "issue":...
1,507
98
gh_patches_debug_34311
rasdani/github-patches
git_diff
bridgecrewio__checkov-2084
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- False positive for CKV_AZURE_43: check storage account name I'm building my Storage Account names like this ``` name = "${local.saname_prefix}diagnostics${module.tf-var-project.random_id} ``...
diff --git a/checkov/terraform/checks/resource/azure/StorageAccountName.py b/checkov/terraform/checks/resource/azure/StorageAccountName.py --- a/checkov/terraform/checks/resource/azure/StorageAccountName.py +++ b/checkov/terraform/checks/resource/azure/StorageAccountName.py @@ -1,31 +1,41 @@ +import re +from typing imp...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/azure/StorageAccountName.py b/checkov/terraform/checks/resource/azure/StorageAccountName.py\n--- a/checkov/terraform/checks/resource/azure/StorageAccountName.py\n+++ b/checkov/terraform/checks/resource/azure/StorageAccountName.py\n@@ -1,31 +1,41 @@\n+impor...
792
571
gh_patches_debug_23360
rasdani/github-patches
git_diff
allegro__ralph-3159
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Doc fixes Some minor doc fixes with a bit of style change --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `...
diff --git a/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py b/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py --- a/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py +++ b/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py @@ -10,8 +10,6 @@ from ralph...
{"golden_diff": "diff --git a/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py b/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py\n--- a/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py\n+++ b/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py\n@@ -10,8 ...
594
313
gh_patches_debug_23048
rasdani/github-patches
git_diff
cupy__cupy-5759
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `cupy.concatenate()` misses arguments `dtype` and `casting` Refs: - NumPy: https://numpy.org/doc/stable/reference/generated/numpy.concatenate.html - CuPy: https://docs.cupy.dev/en/stable/reference/generated...
diff --git a/cupy/_manipulation/join.py b/cupy/_manipulation/join.py --- a/cupy/_manipulation/join.py +++ b/cupy/_manipulation/join.py @@ -32,7 +32,7 @@ return concatenate(lst, axis=1) -def concatenate(tup, axis=0, out=None): +def concatenate(tup, axis=0, out=None, *, dtype=None, casting='same_kind'): """...
{"golden_diff": "diff --git a/cupy/_manipulation/join.py b/cupy/_manipulation/join.py\n--- a/cupy/_manipulation/join.py\n+++ b/cupy/_manipulation/join.py\n@@ -32,7 +32,7 @@\n return concatenate(lst, axis=1)\n \n \n-def concatenate(tup, axis=0, out=None):\n+def concatenate(tup, axis=0, out=None, *, dtype=None, casti...
1,538
322
gh_patches_debug_25497
rasdani/github-patches
git_diff
tensorflow__addons-2048
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Deprecate GELU Per https://github.com/tensorflow/community/pull/252, oonce https://github.com/tensorflow/tensorflow/pull/41178 merges we'll need to deprecate our GELU for versions of TensorFlow that include...
diff --git a/tensorflow_addons/activations/gelu.py b/tensorflow_addons/activations/gelu.py --- a/tensorflow_addons/activations/gelu.py +++ b/tensorflow_addons/activations/gelu.py @@ -43,6 +43,12 @@ Returns: A `Tensor`. Has the same type as `x`. """ + warnings.warn( + "gelu activation has be...
{"golden_diff": "diff --git a/tensorflow_addons/activations/gelu.py b/tensorflow_addons/activations/gelu.py\n--- a/tensorflow_addons/activations/gelu.py\n+++ b/tensorflow_addons/activations/gelu.py\n@@ -43,6 +43,12 @@\n Returns:\n A `Tensor`. Has the same type as `x`.\n \"\"\"\n+ warnings.warn(\n+ ...
1,870
364
gh_patches_debug_7541
rasdani/github-patches
git_diff
twisted__twisted-12106
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 24.1.0 to unbreak users who use the latest PyPy #12084 is breaking CI for Tahoe-LAFS, so probably is breaking real-world usage for someone somewhere too. So it'd be good to have a release sooner rathe...
diff --git a/src/twisted/_version.py b/src/twisted/_version.py --- a/src/twisted/_version.py +++ b/src/twisted/_version.py @@ -7,5 +7,5 @@ from incremental import Version -__version__ = Version("Twisted", 23, 10, 0, post=0) +__version__ = Version("Twisted", 24, 3, 0, post=0) __all__ = ["__version__"] diff --git a...
{"golden_diff": "diff --git a/src/twisted/_version.py b/src/twisted/_version.py\n--- a/src/twisted/_version.py\n+++ b/src/twisted/_version.py\n@@ -7,5 +7,5 @@\n \n from incremental import Version\n \n-__version__ = Version(\"Twisted\", 23, 10, 0, post=0)\n+__version__ = Version(\"Twisted\", 24, 3, 0, post=0)\n __all__ ...
838
228
gh_patches_debug_6887
rasdani/github-patches
git_diff
sherlock-project__sherlock-911
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [site_list.py] change numbering to reduce commit size letting the markdown renderer do the counting lets us reduce commit size and avoide possible merge conflicts. --- ``` 1. 1. 1. ``` renders to: ...
diff --git a/site_list.py b/site_list.py --- a/site_list.py +++ b/site_list.py @@ -18,11 +18,8 @@ url_main = data.get(social_network).get("urlMain") pool.append((social_network, url_main)) - index = 1 for social_network, url_main in pool: - site_file.write(f'{index}. [{social_network}...
{"golden_diff": "diff --git a/site_list.py b/site_list.py\n--- a/site_list.py\n+++ b/site_list.py\n@@ -18,11 +18,8 @@\n url_main = data.get(social_network).get(\"urlMain\")\n pool.append((social_network, url_main))\n \n- index = 1\n for social_network, url_main in pool:\n- site_file.write(...
616
147
gh_patches_debug_10290
rasdani/github-patches
git_diff
goauthentik__authentik-8139
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 2023.10.6 - "Please select a username" after Azure AD login **Describe your question/** Is it now a expected behavior in 2023.10.6 version to ask every user for username input after logging in with azure a...
diff --git a/authentik/sources/oauth/types/azure_ad.py b/authentik/sources/oauth/types/azure_ad.py --- a/authentik/sources/oauth/types/azure_ad.py +++ b/authentik/sources/oauth/types/azure_ad.py @@ -50,7 +50,7 @@ authorization_url = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize" access_tok...
{"golden_diff": "diff --git a/authentik/sources/oauth/types/azure_ad.py b/authentik/sources/oauth/types/azure_ad.py\n--- a/authentik/sources/oauth/types/azure_ad.py\n+++ b/authentik/sources/oauth/types/azure_ad.py\n@@ -50,7 +50,7 @@\n \n authorization_url = \"https://login.microsoftonline.com/common/oauth2/v2.0/aut...
1,132
175
gh_patches_debug_15565
rasdani/github-patches
git_diff
deepset-ai__haystack-7796
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [V2.2.0] ChatPromptBuilder is not export **Describe the bug** v2.2.0 => ChatPromptBuilder is not export **Error message** <img width="1102" alt="image" src="https://github.com/deepset-ai/haystack/assets/...
diff --git a/haystack/components/builders/__init__.py b/haystack/components/builders/__init__.py --- a/haystack/components/builders/__init__.py +++ b/haystack/components/builders/__init__.py @@ -3,8 +3,9 @@ # SPDX-License-Identifier: Apache-2.0 from haystack.components.builders.answer_builder import AnswerBuilder +...
{"golden_diff": "diff --git a/haystack/components/builders/__init__.py b/haystack/components/builders/__init__.py\n--- a/haystack/components/builders/__init__.py\n+++ b/haystack/components/builders/__init__.py\n@@ -3,8 +3,9 @@\n # SPDX-License-Identifier: Apache-2.0\n \n from haystack.components.builders.answer_builder...
491
185
gh_patches_debug_36530
rasdani/github-patches
git_diff
getsentry__sentry-python-541
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 0.12.0 breaks Django function-based middleware Similar to #504, but a different stack trace: AttributeError: 'method-wrapper' object has no attribute '__module__' File "django/core/handlers/exce...
diff --git a/sentry_sdk/integrations/django/middleware.py b/sentry_sdk/integrations/django/middleware.py --- a/sentry_sdk/integrations/django/middleware.py +++ b/sentry_sdk/integrations/django/middleware.py @@ -7,7 +7,11 @@ from django import VERSION as DJANGO_VERSION from sentry_sdk import Hub -from sentry_sdk.uti...
{"golden_diff": "diff --git a/sentry_sdk/integrations/django/middleware.py b/sentry_sdk/integrations/django/middleware.py\n--- a/sentry_sdk/integrations/django/middleware.py\n+++ b/sentry_sdk/integrations/django/middleware.py\n@@ -7,7 +7,11 @@\n from django import VERSION as DJANGO_VERSION\n \n from sentry_sdk import H...
1,616
672
gh_patches_debug_28409
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-182
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- recycleapp_be not working for some addresses when I enter my address into the configuration.yaml I receive this error on restart: ``` fetch failed for source Recycle!: Traceback (most recent call last): Fil...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/recycleapp_be.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/recycleapp_be.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/recycleapp_be.py +++ b/custom_comp...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/recycleapp_be.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/recycleapp_be.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/recycleapp_be.py...
1,434
466
gh_patches_debug_27458
rasdani/github-patches
git_diff
pyinstaller__pyinstaller-4889
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Py3.6: Unable to find .../site-packages/importlib_resources/version.txt" Hello, On latest version of pyinstaller, the hook for importlib_resource seems to look for a non existing version.txt file. It is no...
diff --git a/PyInstaller/hooks/hook-importlib_resources.py b/PyInstaller/hooks/hook-importlib_resources.py --- a/PyInstaller/hooks/hook-importlib_resources.py +++ b/PyInstaller/hooks/hook-importlib_resources.py @@ -9,26 +9,25 @@ # SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exception) #----------------...
{"golden_diff": "diff --git a/PyInstaller/hooks/hook-importlib_resources.py b/PyInstaller/hooks/hook-importlib_resources.py\n--- a/PyInstaller/hooks/hook-importlib_resources.py\n+++ b/PyInstaller/hooks/hook-importlib_resources.py\n@@ -9,26 +9,25 @@\n # SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exceptio...
676
491
gh_patches_debug_27546
rasdani/github-patches
git_diff
TheAlgorithms__Python-10822
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve our test coverage ### Feature description Many of our existing algorithm files have little to no unit testing. This is problematic because this can easily let bugs slip through. We want some assura...
diff --git a/maths/binomial_coefficient.py b/maths/binomial_coefficient.py --- a/maths/binomial_coefficient.py +++ b/maths/binomial_coefficient.py @@ -1,10 +1,48 @@ def binomial_coefficient(n: int, r: int) -> int: """ - Find binomial coefficient using pascals triangle. + Find binomial coefficient using Pasc...
{"golden_diff": "diff --git a/maths/binomial_coefficient.py b/maths/binomial_coefficient.py\n--- a/maths/binomial_coefficient.py\n+++ b/maths/binomial_coefficient.py\n@@ -1,10 +1,48 @@\n def binomial_coefficient(n: int, r: int) -> int:\n \"\"\"\n- Find binomial coefficient using pascals triangle.\n+ Find bino...
1,293
595
gh_patches_debug_16578
rasdani/github-patches
git_diff
doccano__doccano-1668
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pagination of the project list When fetching projects in the project list page, is it intentional that all projects are fetched at once even though there is pagination? Endpoint of project list fetching: `...
diff --git a/backend/api/views/project.py b/backend/api/views/project.py --- a/backend/api/views/project.py +++ b/backend/api/views/project.py @@ -1,5 +1,6 @@ from django.conf import settings -from rest_framework import generics, status +from django_filters.rest_framework import DjangoFilterBackend +from rest_framewor...
{"golden_diff": "diff --git a/backend/api/views/project.py b/backend/api/views/project.py\n--- a/backend/api/views/project.py\n+++ b/backend/api/views/project.py\n@@ -1,5 +1,6 @@\n from django.conf import settings\n-from rest_framework import generics, status\n+from django_filters.rest_framework import DjangoFilterBack...
792
185
gh_patches_debug_20614
rasdani/github-patches
git_diff
pytorch__examples-1189
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add `save_model` arg to `mnist_hogwild` example Currently the example doesn't support the `--save_model` argument like the other examples --- END ISSUE --- Below are some code segments, each from a releva...
diff --git a/mnist_hogwild/main.py b/mnist_hogwild/main.py --- a/mnist_hogwild/main.py +++ b/mnist_hogwild/main.py @@ -30,7 +30,9 @@ parser.add_argument('--cuda', action='store_true', default=False, help='enables CUDA training') parser.add_argument('--mps', action='store_true', default=False, - ...
{"golden_diff": "diff --git a/mnist_hogwild/main.py b/mnist_hogwild/main.py\n--- a/mnist_hogwild/main.py\n+++ b/mnist_hogwild/main.py\n@@ -30,7 +30,9 @@\n parser.add_argument('--cuda', action='store_true', default=False,\n help='enables CUDA training')\n parser.add_argument('--mps', action='store_tr...
1,460
235
gh_patches_debug_5067
rasdani/github-patches
git_diff
jupyterhub__jupyterhub-1111
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Passwords beginning or ending with a whitespace are not supported Due to POST argument stripping, passwords with a beginning or ending whitespace are not allowed. **How to reproduce the issue** Set up a u...
diff --git a/jupyterhub/handlers/login.py b/jupyterhub/handlers/login.py --- a/jupyterhub/handlers/login.py +++ b/jupyterhub/handlers/login.py @@ -78,7 +78,7 @@ # parse the arguments dict data = {} for arg in self.request.arguments: - data[arg] = self.get_argument(arg) + ...
{"golden_diff": "diff --git a/jupyterhub/handlers/login.py b/jupyterhub/handlers/login.py\n--- a/jupyterhub/handlers/login.py\n+++ b/jupyterhub/handlers/login.py\n@@ -78,7 +78,7 @@\n # parse the arguments dict\n data = {}\n for arg in self.request.arguments:\n- data[arg] = self.get_ar...
1,622
123
gh_patches_debug_34606
rasdani/github-patches
git_diff
ansible__awx-8016
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add insignts_credential paramter to tower_inventory <!-- Issues are for **concrete, actionable bugs and feature requests** only - if you're just asking for debugging help or technical support, please use: ...
diff --git a/awx_collection/plugins/modules/tower_inventory.py b/awx_collection/plugins/modules/tower_inventory.py --- a/awx_collection/plugins/modules/tower_inventory.py +++ b/awx_collection/plugins/modules/tower_inventory.py @@ -48,7 +48,11 @@ type: str host_filter: description: - - The hos...
{"golden_diff": "diff --git a/awx_collection/plugins/modules/tower_inventory.py b/awx_collection/plugins/modules/tower_inventory.py\n--- a/awx_collection/plugins/modules/tower_inventory.py\n+++ b/awx_collection/plugins/modules/tower_inventory.py\n@@ -48,7 +48,11 @@\n type: str\n host_filter:\n descripti...
1,692
433
gh_patches_debug_12719
rasdani/github-patches
git_diff
microsoft__playwright-python-593
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Async API - asyncio error After updating to the 1.9.2 version, for **Async API** I get the following error: Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x0000000002E1E9D0> Traceback...
diff --git a/playwright/_impl/_transport.py b/playwright/_impl/_transport.py --- a/playwright/_impl/_transport.py +++ b/playwright/_impl/_transport.py @@ -48,12 +48,13 @@ async def wait_until_stopped(self) -> None: await self._stopped_future + await self._proc.wait() async def run(self) ->...
{"golden_diff": "diff --git a/playwright/_impl/_transport.py b/playwright/_impl/_transport.py\n--- a/playwright/_impl/_transport.py\n+++ b/playwright/_impl/_transport.py\n@@ -48,12 +48,13 @@\n \n async def wait_until_stopped(self) -> None:\n await self._stopped_future\n+ await self._proc.wait()\n \n ...
1,873
163
gh_patches_debug_47861
rasdani/github-patches
git_diff
saleor__saleor-4008
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Duplicate choices in shipping address ### What I'm trying to achieve I'm trying to set shipping user for Russian user and there are duplicate values in "Oblast" selector. ### Steps to reproduce the proble...
diff --git a/saleor/account/forms.py b/saleor/account/forms.py --- a/saleor/account/forms.py +++ b/saleor/account/forms.py @@ -46,6 +46,11 @@ not preview and data or None, initial=initial_address, **kwargs) + + if hasattr(address_form.fields['country_area'], 'choices'): + ...
{"golden_diff": "diff --git a/saleor/account/forms.py b/saleor/account/forms.py\n--- a/saleor/account/forms.py\n+++ b/saleor/account/forms.py\n@@ -46,6 +46,11 @@\n not preview and data or None,\n initial=initial_address,\n **kwargs)\n+\n+ if hasattr(address_form.fields['country_ar...
1,929
133
gh_patches_debug_8100
rasdani/github-patches
git_diff
WeblateOrg__weblate-11568
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Time to use `build` from `setuptools` instead of `distutils`? ### Describe the problem The following feature in setuptools has been deprecated for almost 2 years and is about to be removed: https://github...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -6,12 +6,12 @@ import os from distutils import log -from distutils.command.build import build from distutils.core import Command from glob import glob from itertools import chain from setuptools import setup +from setuptools.command.build impor...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -6,12 +6,12 @@\n \n import os\n from distutils import log\n-from distutils.command.build import build\n from distutils.core import Command\n from glob import glob\n from itertools import chain\n \n from setuptools import setup\n+from ...
1,470
105
gh_patches_debug_8391
rasdani/github-patches
git_diff
scrapy__scrapy-3377
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- scrapy check exit code on exception When I run `scrapy check` and a contract raises unhandled exception, the command exits with successful code `0`. ``` $ scrapy check $SPIDER_NAME ... some stuff ... Ra...
diff --git a/scrapy/contracts/__init__.py b/scrapy/contracts/__init__.py --- a/scrapy/contracts/__init__.py +++ b/scrapy/contracts/__init__.py @@ -42,7 +42,11 @@ requests = [] for method in self.tested_methods_from_spidercls(type(spider)): bound_method = spider.__getattribute__(method) - ...
{"golden_diff": "diff --git a/scrapy/contracts/__init__.py b/scrapy/contracts/__init__.py\n--- a/scrapy/contracts/__init__.py\n+++ b/scrapy/contracts/__init__.py\n@@ -42,7 +42,11 @@\n requests = []\n for method in self.tested_methods_from_spidercls(type(spider)):\n bound_method = spider.__ge...
1,876
154
gh_patches_debug_5037
rasdani/github-patches
git_diff
facebookresearch__hydra-793
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] MISSING for Object Conf cls argument # 🐛 Bug OmegaConf cls argument should not be a mandatory value if target is defined. Can we change this to be an optional value with None being the default? ...
diff --git a/hydra/types.py b/hydra/types.py --- a/hydra/types.py +++ b/hydra/types.py @@ -18,13 +18,6 @@ # parameters to pass to cls when calling it params: Any = field(default_factory=dict) - # cls is deprecated, use target, cls will be removed in Hydra 1.1 - cls: str = MISSING - - # class is dep...
{"golden_diff": "diff --git a/hydra/types.py b/hydra/types.py\n--- a/hydra/types.py\n+++ b/hydra/types.py\n@@ -18,13 +18,6 @@\n # parameters to pass to cls when calling it\n params: Any = field(default_factory=dict)\n \n- # cls is deprecated, use target, cls will be removed in Hydra 1.1\n- cls: str = MISS...
678
156
gh_patches_debug_9165
rasdani/github-patches
git_diff
microsoft__DeepSpeed-1921
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] No module named 'fcntl' while importing the package Hey, Working on windows 11, Python 3.7 and tried importing the package. Got the error in the title, is there a way around it since it's exclusive to...
diff --git a/deepspeed/utils/debug.py b/deepspeed/utils/debug.py --- a/deepspeed/utils/debug.py +++ b/deepspeed/utils/debug.py @@ -1,6 +1,7 @@ """ debug utils """ -import fcntl +# For lazy import with printflock() +fcntl = None # for debug purposes map module and param objects to their fully qualified names modu...
{"golden_diff": "diff --git a/deepspeed/utils/debug.py b/deepspeed/utils/debug.py\n--- a/deepspeed/utils/debug.py\n+++ b/deepspeed/utils/debug.py\n@@ -1,6 +1,7 @@\n \"\"\" debug utils \"\"\"\n \n-import fcntl\n+# For lazy import with printflock()\n+fcntl = None\n \n # for debug purposes map module and param objects to ...
1,753
152
gh_patches_debug_31923
rasdani/github-patches
git_diff
alpa-projects__alpa-511
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Adding the `pjit` in the comparison Some people are more familiar with using model parallel via [`pjit`](https://github.com/google/jax/blob/main/jax/experimental/pjit.py). What about adding one more rows [her...
diff --git a/docs/gallery/tutorials/alpa_vs_pmap.py b/docs/gallery/tutorials/alpa_vs_pmap.py --- a/docs/gallery/tutorials/alpa_vs_pmap.py +++ b/docs/gallery/tutorials/alpa_vs_pmap.py @@ -34,14 +34,15 @@ # TODO ################################################################################ -# Comparing ``alpa.paral...
{"golden_diff": "diff --git a/docs/gallery/tutorials/alpa_vs_pmap.py b/docs/gallery/tutorials/alpa_vs_pmap.py\n--- a/docs/gallery/tutorials/alpa_vs_pmap.py\n+++ b/docs/gallery/tutorials/alpa_vs_pmap.py\n@@ -34,14 +34,15 @@\n # TODO\n \n ################################################################################\n-...
1,017
424
gh_patches_debug_19670
rasdani/github-patches
git_diff
google__flax-2842
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- lm1b sampler update is out of bound? Hi, _Disclaimer: I'm not confident if this is some intended behavior._ I think in the lm1b example, the prediction sampler could write to indices out of bound of the...
diff --git a/examples/lm1b/temperature_sampler.py b/examples/lm1b/temperature_sampler.py --- a/examples/lm1b/temperature_sampler.py +++ b/examples/lm1b/temperature_sampler.py @@ -57,7 +57,7 @@ # initial loop PRNGKey rng0 = prng_key # loop position counter. - i0 = jnp.array(0) + i0 = jnp.array(-1) # per ba...
{"golden_diff": "diff --git a/examples/lm1b/temperature_sampler.py b/examples/lm1b/temperature_sampler.py\n--- a/examples/lm1b/temperature_sampler.py\n+++ b/examples/lm1b/temperature_sampler.py\n@@ -57,7 +57,7 @@\n # initial loop PRNGKey\n rng0 = prng_key\n # loop position counter.\n- i0 = jnp.array(0)\n+ i0 = ...
1,892
254
gh_patches_debug_4479
rasdani/github-patches
git_diff
freedomofpress__securedrop-3709
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [functional testing] Fix staging CI job on tbb-0.9.0 We removed the application/functional test run from the staging environment in #3697. We should also update the testinfra test references and remove the ap...
diff --git a/securedrop/create-dev-data.py b/securedrop/create-dev-data.py --- a/securedrop/create-dev-data.py +++ b/securedrop/create-dev-data.py @@ -78,7 +78,7 @@ parser = argparse.ArgumentParser() parser.add_argument("--staging", help="Adding user for staging tests.", - action="store_t...
{"golden_diff": "diff --git a/securedrop/create-dev-data.py b/securedrop/create-dev-data.py\n--- a/securedrop/create-dev-data.py\n+++ b/securedrop/create-dev-data.py\n@@ -78,7 +78,7 @@\n \n parser = argparse.ArgumentParser()\n parser.add_argument(\"--staging\", help=\"Adding user for staging tests.\",\n- ...
1,458
108
gh_patches_debug_57973
rasdani/github-patches
git_diff
pyjanitor-devs__pyjanitor-1191
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [INF/CI] Add `--cov-append` for `pytest` <!-- Thank you for your PR! BEFORE YOU CONTINUE! Please add the appropriate three-letter abbreviation to your title. The abbreviations can be: - [DOC]: Document...
diff --git a/janitor/accessors/__init__.py b/janitor/accessors/__init__.py --- a/janitor/accessors/__init__.py +++ b/janitor/accessors/__init__.py @@ -1,17 +1,3 @@ -"""Miscellaneous mathematical operators. +"""Miscellaneous mathematical operators.""" -Lazy loading used here to speed up imports. -""" - -import warning...
{"golden_diff": "diff --git a/janitor/accessors/__init__.py b/janitor/accessors/__init__.py\n--- a/janitor/accessors/__init__.py\n+++ b/janitor/accessors/__init__.py\n@@ -1,17 +1,3 @@\n-\"\"\"Miscellaneous mathematical operators.\n+\"\"\"Miscellaneous mathematical operators.\"\"\"\n \n-Lazy loading used here to speed u...
972
185
gh_patches_debug_6944
rasdani/github-patches
git_diff
OpenNMT__OpenNMT-py-1805
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Logger is not passed to translator When building the translator, there is a logger created but not passed to the translator: https://github.com/OpenNMT/OpenNMT-py/blob/35cf4f0ae774a4aa500318879a1a4d53408ac12...
diff --git a/onmt/bin/translate.py b/onmt/bin/translate.py --- a/onmt/bin/translate.py +++ b/onmt/bin/translate.py @@ -15,7 +15,7 @@ ArgumentParser.validate_translate_opts(opt) logger = init_logger(opt.log_file) - translator = build_translator(opt, report_score=True) + translator = build_translator(op...
{"golden_diff": "diff --git a/onmt/bin/translate.py b/onmt/bin/translate.py\n--- a/onmt/bin/translate.py\n+++ b/onmt/bin/translate.py\n@@ -15,7 +15,7 @@\n ArgumentParser.validate_translate_opts(opt)\n logger = init_logger(opt.log_file)\n \n- translator = build_translator(opt, report_score=True)\n+ transla...
833
140
gh_patches_debug_17769
rasdani/github-patches
git_diff
kivy__python-for-android-2340
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Webview app crashes when trying to request permissions ### Checklist - [X] the issue is indeed a bug and not a support request - [X] issue doesn't already exist: https://github.com/kivy/python-for-android...
diff --git a/pythonforandroid/recipes/android/__init__.py b/pythonforandroid/recipes/android/__init__.py --- a/pythonforandroid/recipes/android/__init__.py +++ b/pythonforandroid/recipes/android/__init__.py @@ -77,6 +77,11 @@ fh.write( '#define SDL_ANDROID_GetJNIEnv SDL_AndroidGetJ...
{"golden_diff": "diff --git a/pythonforandroid/recipes/android/__init__.py b/pythonforandroid/recipes/android/__init__.py\n--- a/pythonforandroid/recipes/android/__init__.py\n+++ b/pythonforandroid/recipes/android/__init__.py\n@@ -77,6 +77,11 @@\n fh.write(\n '#define SDL_ANDROID_Get...
1,800
283
gh_patches_debug_19727
rasdani/github-patches
git_diff
facebookresearch__hydra-1424
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Upgrade to OmegaConf 2.1 OmegaConf 2.1 is adding many important new features. For example: * Powerful interpolation grammar supporting nested interpolations * Relative interpolations * And many many bug f...
diff --git a/plugins/hydra_ax_sweeper/setup.py b/plugins/hydra_ax_sweeper/setup.py --- a/plugins/hydra_ax_sweeper/setup.py +++ b/plugins/hydra_ax_sweeper/setup.py @@ -25,8 +25,7 @@ ], install_requires=[ "hydra-core>=1.0.0", - "ax-platform>=0.1.13", - "numpy<1.20.0", ...
{"golden_diff": "diff --git a/plugins/hydra_ax_sweeper/setup.py b/plugins/hydra_ax_sweeper/setup.py\n--- a/plugins/hydra_ax_sweeper/setup.py\n+++ b/plugins/hydra_ax_sweeper/setup.py\n@@ -25,8 +25,7 @@\n ],\n install_requires=[\n \"hydra-core>=1.0.0\",\n- \"ax-platform>=0.1.13\",\n...
1,471
342
gh_patches_debug_31077
rasdani/github-patches
git_diff
sopel-irc__sopel-1441
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- imdb module not working anymore I just noticed that anytime you make a call to imdb now the bot responds: > [MOVIE] No API key provided. I know it used to work, not sure how recently. Maybe it can be s...
diff --git a/conftest.py b/conftest.py --- a/conftest.py +++ b/conftest.py @@ -1,2 +1,2 @@ # This file lists files which should be ignored by pytest -collect_ignore = ["setup.py", "sopel.py", "sopel/modules/ipython.py", "sopel/modules/movie.py"] +collect_ignore = ["setup.py", "sopel.py", "sopel/modules/ipython.py"] di...
{"golden_diff": "diff --git a/conftest.py b/conftest.py\n--- a/conftest.py\n+++ b/conftest.py\n@@ -1,2 +1,2 @@\n # This file lists files which should be ignored by pytest\n-collect_ignore = [\"setup.py\", \"sopel.py\", \"sopel/modules/ipython.py\", \"sopel/modules/movie.py\"]\n+collect_ignore = [\"setup.py\", \"sopel.p...
975
695
gh_patches_debug_19487
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-1011
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Compatibility with future PT 1.12 ## 🐛 Bug ``` > distance = x @ y.T E RuntimeError: "addmm_impl_cpu_" not implemented for 'Half' ``` ### To Reproduce https://github.com/PyTorchLightni...
diff --git a/torchmetrics/functional/pairwise/cosine.py b/torchmetrics/functional/pairwise/cosine.py --- a/torchmetrics/functional/pairwise/cosine.py +++ b/torchmetrics/functional/pairwise/cosine.py @@ -20,6 +20,16 @@ from torchmetrics.functional.pairwise.helpers import _check_input, _reduce_distance_matrix +def _...
{"golden_diff": "diff --git a/torchmetrics/functional/pairwise/cosine.py b/torchmetrics/functional/pairwise/cosine.py\n--- a/torchmetrics/functional/pairwise/cosine.py\n+++ b/torchmetrics/functional/pairwise/cosine.py\n@@ -20,6 +20,16 @@\n from torchmetrics.functional.pairwise.helpers import _check_input, _reduce_dista...
1,811
298
gh_patches_debug_37251
rasdani/github-patches
git_diff
databricks__koalas-189
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Document all the methods in Metadata There are a bunch of methods like index_info, index_fields. It's pretty difficult to figure out what they do. We should just add some basic docstring comments. @ueshin ...
diff --git a/databricks/koalas/metadata.py b/databricks/koalas/metadata.py --- a/databricks/koalas/metadata.py +++ b/databricks/koalas/metadata.py @@ -24,7 +24,11 @@ class Metadata(object): """ - Manages column names and index information + Manages column names and index information. + + :ivar _column_...
{"golden_diff": "diff --git a/databricks/koalas/metadata.py b/databricks/koalas/metadata.py\n--- a/databricks/koalas/metadata.py\n+++ b/databricks/koalas/metadata.py\n@@ -24,7 +24,11 @@\n \n class Metadata(object):\n \"\"\"\n- Manages column names and index information\n+ Manages column names and index inform...
1,192
557
gh_patches_debug_5870
rasdani/github-patches
git_diff
mitmproxy__mitmproxy-1513
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wait for new cryptography release For the next mitmproxy release, we want to recommend Python 3.5 by default. This requires a cryptography release which includes https://github.com/pyca/cryptography/pull/3063...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -66,7 +66,7 @@ "certifi>=2015.11.20.1", # no semver here - this should always be on the last release! "configargparse>=0.10, <0.11", "construct>=2.5.2, <2.6", - "cryptography>=1.3, <1.5", + "cryptography>=1.3, <1...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -66,7 +66,7 @@\n \"certifi>=2015.11.20.1\", # no semver here - this should always be on the last release!\n \"configargparse>=0.10, <0.11\",\n \"construct>=2.5.2, <2.6\",\n- \"cryptography>=1.3, <1.5\",...
1,990
176
gh_patches_debug_63301
rasdani/github-patches
git_diff
scikit-hep__pyhf-372
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update tensorflow-probability to the next release that includes continuous approximations # Description This is a follow up to #302. As the bug is fixed in upstream tensorflow-probability, we just need to ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -12,8 +12,8 @@ extras_require = { 'tensorflow': [ - 'tensorflow<1.12.0,>=1.10.0', - 'tensorflow-probability==0.3.0', + 'tensorflow>=1.12.0', + 'tensorflow-probability>=0.5.0', 'numpy<=1.14.5,>=1.14.0', # Lowe...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -12,8 +12,8 @@\n \n extras_require = {\n 'tensorflow': [\n- 'tensorflow<1.12.0,>=1.10.0',\n- 'tensorflow-probability==0.3.0',\n+ 'tensorflow>=1.12.0',\n+ 'tensorflow-probability>=0.5.0',\n 'nump...
1,587
161
gh_patches_debug_14775
rasdani/github-patches
git_diff
hylang__hy-1122
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Hy sets are really broken. ``` Hy (env-hy) C:\Users\ME\Code>hy hy 0.11.0 using CPython(v3.4.3:9b73f1c3e601) 3.4.3 on Windows => #{:a 'a} Traceback (most recent call last): File "C:\Python34\Scripts\env-hy\S...
diff --git a/hy/models/set.py b/hy/models/set.py --- a/hy/models/set.py +++ b/hy/models/set.py @@ -18,19 +18,16 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. +from hy.models import _wrappers, wrap_value from hy.models.list import HyList -from functools import ...
{"golden_diff": "diff --git a/hy/models/set.py b/hy/models/set.py\n--- a/hy/models/set.py\n+++ b/hy/models/set.py\n@@ -18,19 +18,16 @@\n # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n # DEALINGS IN THE SOFTWARE.\n \n+from hy.models import _wrappers, wrap_value\n from hy.models.list import HyLis...
1,352
242
gh_patches_debug_1429
rasdani/github-patches
git_diff
google__turbinia-785
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- import TurbiniaException to partitions.py ``` Traceback (most recent call last): File "PATH/v2/lib/python3.8/site-packages/turbinia/workers/__init__.py", line 916, in run_wrapper self.result = self.r...
diff --git a/turbinia/processors/partitions.py b/turbinia/processors/partitions.py --- a/turbinia/processors/partitions.py +++ b/turbinia/processors/partitions.py @@ -21,6 +21,7 @@ from dfvfs.lib import errors as dfvfs_errors from turbinia.lib.dfvfs_classes import UnattendedVolumeScannerMediator +from turbinia impo...
{"golden_diff": "diff --git a/turbinia/processors/partitions.py b/turbinia/processors/partitions.py\n--- a/turbinia/processors/partitions.py\n+++ b/turbinia/processors/partitions.py\n@@ -21,6 +21,7 @@\n from dfvfs.lib import errors as dfvfs_errors\n \n from turbinia.lib.dfvfs_classes import UnattendedVolumeScannerMedia...
1,357
108
gh_patches_debug_25484
rasdani/github-patches
git_diff
dj-stripe__dj-stripe-1259
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DJStripeSubscriptionPermission issue returning bool This permission is not returning properly the bool. **Current behaviour** ```python class DJStripeSubscriptionPermission(BasePermission): """ ...
diff --git a/djstripe/contrib/rest_framework/permissions.py b/djstripe/contrib/rest_framework/permissions.py --- a/djstripe/contrib/rest_framework/permissions.py +++ b/djstripe/contrib/rest_framework/permissions.py @@ -17,7 +17,7 @@ A permission to be used when wanting to permit users with active subscriptions. ...
{"golden_diff": "diff --git a/djstripe/contrib/rest_framework/permissions.py b/djstripe/contrib/rest_framework/permissions.py\n--- a/djstripe/contrib/rest_framework/permissions.py\n+++ b/djstripe/contrib/rest_framework/permissions.py\n@@ -17,7 +17,7 @@\n A permission to be used when wanting to permit users with act...
1,099
334
gh_patches_debug_35132
rasdani/github-patches
git_diff
CTFd__CTFd-1352
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Submission search Search submissions akin to how users are searched --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --...
diff --git a/CTFd/admin/submissions.py b/CTFd/admin/submissions.py --- a/CTFd/admin/submissions.py +++ b/CTFd/admin/submissions.py @@ -1,4 +1,4 @@ -from flask import render_template, request +from flask import render_template, request, url_for from CTFd.admin import admin from CTFd.models import Challenges, Submiss...
{"golden_diff": "diff --git a/CTFd/admin/submissions.py b/CTFd/admin/submissions.py\n--- a/CTFd/admin/submissions.py\n+++ b/CTFd/admin/submissions.py\n@@ -1,4 +1,4 @@\n-from flask import render_template, request\n+from flask import render_template, request, url_for\n \n from CTFd.admin import admin\n from CTFd.models i...
728
615
gh_patches_debug_51710
rasdani/github-patches
git_diff
getsentry__sentry-python-2069
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot import appengine ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.18.0 ### Steps to Reproduce Install the SDK within any project that is not pinning urllib3 < 2.0.0 ### Expected R...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -41,6 +41,7 @@ 'urllib3>=1.25.7; python_version<="3.4"', 'urllib3>=1.26.9; python_version=="3.5"', 'urllib3>=1.26.11; python_version >="3.6"', + 'urllib3<2.0.0', "certifi", ], extras_require={
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -41,6 +41,7 @@\n 'urllib3>=1.25.7; python_version<=\"3.4\"',\n 'urllib3>=1.26.9; python_version==\"3.5\"',\n 'urllib3>=1.26.11; python_version >=\"3.6\"',\n+ 'urllib3<2.0.0',\n \"certifi\",\n ...
1,514
119
gh_patches_debug_51406
rasdani/github-patches
git_diff
pytorch__ignite-1016
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PyTorch dependency is lacking version constraint ## 🐛 Bug description <!-- A clear and concise description of what the bug is. --> PyTorch is a dependency of Ignite and, thus, is specified in `setup.py` ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ VERSION = find_version("ignite", "__init__.py") requirements = [ - "torch", + "torch>=1.0,<2", ] setup(
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -22,7 +22,7 @@\n VERSION = find_version(\"ignite\", \"__init__.py\")\n \n requirements = [\n- \"torch\",\n+ \"torch>=1.0,<2\",\n ]\n \n setup(\n", "issue": "PyTorch dependency is lacking version constraint\n## \ud83d\udc1b Bug d...
1,012
68
gh_patches_debug_64103
rasdani/github-patches
git_diff
strawberry-graphql__strawberry-2411
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- App breaking when using Enum as field for Generic <!-- Provide a general summary of the bug in the title above. --> When using an Enum as a field on a Generic, the app breaks, throwing a `NotImplementedError...
diff --git a/strawberry/enum.py b/strawberry/enum.py --- a/strawberry/enum.py +++ b/strawberry/enum.py @@ -41,7 +41,8 @@ def copy_with( self, type_var_map: Mapping[TypeVar, Union[StrawberryType, type]] ) -> Union[StrawberryType, type]: - return super().copy_with(type_var_map) # type: ignore[s...
{"golden_diff": "diff --git a/strawberry/enum.py b/strawberry/enum.py\n--- a/strawberry/enum.py\n+++ b/strawberry/enum.py\n@@ -41,7 +41,8 @@\n def copy_with(\n self, type_var_map: Mapping[TypeVar, Union[StrawberryType, type]]\n ) -> Union[StrawberryType, type]:\n- return super().copy_with(type_va...
2,021
146
gh_patches_debug_27460
rasdani/github-patches
git_diff
googleapis__python-bigquery-442
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Too noise logging about telemetry Hello, In the Apache Airflow project, we use the BigQuery library, but recently we've started to see annoying log message when the library is loaded. It is enough that the...
diff --git a/google/cloud/bigquery/opentelemetry_tracing.py b/google/cloud/bigquery/opentelemetry_tracing.py --- a/google/cloud/bigquery/opentelemetry_tracing.py +++ b/google/cloud/bigquery/opentelemetry_tracing.py @@ -23,16 +23,11 @@ from opentelemetry.trace.status import Status HAS_OPENTELEMETRY = True + ...
{"golden_diff": "diff --git a/google/cloud/bigquery/opentelemetry_tracing.py b/google/cloud/bigquery/opentelemetry_tracing.py\n--- a/google/cloud/bigquery/opentelemetry_tracing.py\n+++ b/google/cloud/bigquery/opentelemetry_tracing.py\n@@ -23,16 +23,11 @@\n from opentelemetry.trace.status import Status\n \n HAS_...
1,662
377
gh_patches_debug_9151
rasdani/github-patches
git_diff
python-discord__bot-1199
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Race condition in wait_for_deletion between a manual delete and reacting Sentry Issue: [BOT-86](https://sentry.io/organizations/python-discord/issues/1861537034/?referrer=github_integration) The message ma...
diff --git a/bot/utils/messages.py b/bot/utils/messages.py --- a/bot/utils/messages.py +++ b/bot/utils/messages.py @@ -34,7 +34,11 @@ if attach_emojis: for emoji in deletion_emojis: - await message.add_reaction(emoji) + try: + await message.add_reaction(emoji) + ...
{"golden_diff": "diff --git a/bot/utils/messages.py b/bot/utils/messages.py\n--- a/bot/utils/messages.py\n+++ b/bot/utils/messages.py\n@@ -34,7 +34,11 @@\n \n if attach_emojis:\n for emoji in deletion_emojis:\n- await message.add_reaction(emoji)\n+ try:\n+ await message....
1,989
147
gh_patches_debug_35
rasdani/github-patches
git_diff
StackStorm__st2-5104
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add version string to st2tests to make it installable Prior to this change, this will fail: cd st2tests/st2tests pip install . After this change that command successfully installs the `st2tests...
diff --git a/st2tests/st2tests/__init__.py b/st2tests/st2tests/__init__.py --- a/st2tests/st2tests/__init__.py +++ b/st2tests/st2tests/__init__.py @@ -29,3 +29,5 @@ 'DbModelTestCase', 'WorkflowTestCase' ] + +__version__ = '3.3dev'
{"golden_diff": "diff --git a/st2tests/st2tests/__init__.py b/st2tests/st2tests/__init__.py\n--- a/st2tests/st2tests/__init__.py\n+++ b/st2tests/st2tests/__init__.py\n@@ -29,3 +29,5 @@\n 'DbModelTestCase',\n 'WorkflowTestCase'\n ]\n+\n+__version__ = '3.3dev'\n", "issue": "Add version string to st2tests to make ...
696
88
gh_patches_debug_29289
rasdani/github-patches
git_diff
google__openhtf-186
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Attaching binary file using test.attach raises UnicodeDecodeError If I attach a png or avi I see the following in OutputTestRecord Python2.7/site-packages/openhtf/**init**.py", line 185, in OutputTestRecord ...
diff --git a/openhtf/io/output/json_factory.py b/openhtf/io/output/json_factory.py --- a/openhtf/io/output/json_factory.py +++ b/openhtf/io/output/json_factory.py @@ -1,5 +1,6 @@ """Module for outputting test record to JSON-formatted files.""" +import base64 from json import JSONEncoder from openhtf import util ...
{"golden_diff": "diff --git a/openhtf/io/output/json_factory.py b/openhtf/io/output/json_factory.py\n--- a/openhtf/io/output/json_factory.py\n+++ b/openhtf/io/output/json_factory.py\n@@ -1,5 +1,6 @@\n \"\"\"Module for outputting test record to JSON-formatted files.\"\"\"\n \n+import base64\n from json import JSONEncode...
1,093
344
gh_patches_debug_24992
rasdani/github-patches
git_diff
fedora-infra__bodhi-2733
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Staging is currently returning HTML to bodhi CLI requests I am not sure why this is happening, but it seems that staging Bodhi is currently returning HTML to CLI requests. This also happens to requests with `...
diff --git a/bodhi/server/webapp.py b/bodhi/server/webapp.py --- a/bodhi/server/webapp.py +++ b/bodhi/server/webapp.py @@ -50,13 +50,25 @@ @subscriber(NewRequest) def _prepare_request(event): """ - Add callbacks onto every new request. + Prepare each incoming request to Bodhi. - This function adds a c...
{"golden_diff": "diff --git a/bodhi/server/webapp.py b/bodhi/server/webapp.py\n--- a/bodhi/server/webapp.py\n+++ b/bodhi/server/webapp.py\n@@ -50,13 +50,25 @@\n @subscriber(NewRequest)\n def _prepare_request(event):\n \"\"\"\n- Add callbacks onto every new request.\n+ Prepare each incoming request to Bodhi.\n...
1,138
372
gh_patches_debug_53973
rasdani/github-patches
git_diff
Mailu__Mailu-2563
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- postfix throttling afer a hard shutdown After a hard shutdown, I noticed that postfix would not restart because of master.pid is found in /queue/pid/master.pid We should check and remove this file during con...
diff --git a/core/postfix/start.py b/core/postfix/start.py --- a/core/postfix/start.py +++ b/core/postfix/start.py @@ -14,6 +14,8 @@ log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING")) +os.system("flock -n /queue/pid/master.pid rm /queue/pid/master.pid") + def start_podop(): os.s...
{"golden_diff": "diff --git a/core/postfix/start.py b/core/postfix/start.py\n--- a/core/postfix/start.py\n+++ b/core/postfix/start.py\n@@ -14,6 +14,8 @@\n \n log.basicConfig(stream=sys.stderr, level=os.environ.get(\"LOG_LEVEL\", \"WARNING\"))\n \n+os.system(\"flock -n /queue/pid/master.pid rm /queue/pid/master.pid\")\n...
1,830
128
gh_patches_debug_10941
rasdani/github-patches
git_diff
mesonbuild__meson-8978
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- get_variable with a file object as default value: Argument of type File is not held by an ObjectHolder **Describe the bug** After updating Meson, I see this error in a previously working build: ``` build...
diff --git a/mesonbuild/interpreterbase/_unholder.py b/mesonbuild/interpreterbase/_unholder.py --- a/mesonbuild/interpreterbase/_unholder.py +++ b/mesonbuild/interpreterbase/_unholder.py @@ -22,9 +22,9 @@ if isinstance(obj, (int, bool, str)): return obj elif isinstance(obj, list): - return [_u...
{"golden_diff": "diff --git a/mesonbuild/interpreterbase/_unholder.py b/mesonbuild/interpreterbase/_unholder.py\n--- a/mesonbuild/interpreterbase/_unholder.py\n+++ b/mesonbuild/interpreterbase/_unholder.py\n@@ -22,9 +22,9 @@\n if isinstance(obj, (int, bool, str)):\n return obj\n elif isinstance(obj, lis...
1,160
196
gh_patches_debug_1316
rasdani/github-patches
git_diff
mozilla__bugbug-3334
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use information on how a bug is filed as a feature This could be especially useful for the Spam model. https://bugzilla.mozilla.org/show_bug.cgi?id=1565403 --- END ISSUE --- Below are some code segments,...
diff --git a/bugbug/models/spambug.py b/bugbug/models/spambug.py --- a/bugbug/models/spambug.py +++ b/bugbug/models/spambug.py @@ -41,6 +41,7 @@ bug_features.has_attachment(), bug_features.platform(), bug_features.op_sys(), + bug_features.filed_via(), ] ...
{"golden_diff": "diff --git a/bugbug/models/spambug.py b/bugbug/models/spambug.py\n--- a/bugbug/models/spambug.py\n+++ b/bugbug/models/spambug.py\n@@ -41,6 +41,7 @@\n bug_features.has_attachment(),\n bug_features.platform(),\n bug_features.op_sys(),\n+ bug_features.filed_v...
1,587
89
gh_patches_debug_22536
rasdani/github-patches
git_diff
opsdroid__opsdroid-1860
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- User configurable connection for mongo-based databases So the pymongo client has a multitude of ways for connecting to different mongo services So for MongoDB Atlas users the connection string is given as ...
diff --git a/opsdroid/database/mongo/__init__.py b/opsdroid/database/mongo/__init__.py --- a/opsdroid/database/mongo/__init__.py +++ b/opsdroid/database/mongo/__init__.py @@ -44,17 +44,18 @@ async def connect(self): """Connect to the database.""" host = self.config.get("host", "localhost") + ...
{"golden_diff": "diff --git a/opsdroid/database/mongo/__init__.py b/opsdroid/database/mongo/__init__.py\n--- a/opsdroid/database/mongo/__init__.py\n+++ b/opsdroid/database/mongo/__init__.py\n@@ -44,17 +44,18 @@\n async def connect(self):\n \"\"\"Connect to the database.\"\"\"\n host = self.config.ge...
1,550
325
gh_patches_debug_38160
rasdani/github-patches
git_diff
archlinux__archinstall-238
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Look in to enabling SMART for drives that support it Something like `smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda` where `archinstall.hardware.detectSmart()` finds drives that support it (to ex...
diff --git a/profiles/awesome.py b/profiles/awesome.py --- a/profiles/awesome.py +++ b/profiles/awesome.py @@ -6,7 +6,7 @@ # New way of defining packages for a profile, which is iterable and can be used out side # of the profile to get a list of "what packages will be installed". -__packages__ = ['nano', 'nemo', 'g...
{"golden_diff": "diff --git a/profiles/awesome.py b/profiles/awesome.py\n--- a/profiles/awesome.py\n+++ b/profiles/awesome.py\n@@ -6,7 +6,7 @@\n \n # New way of defining packages for a profile, which is iterable and can be used out side\n # of the profile to get a list of \"what packages will be installed\".\n-__packag...
1,599
640
gh_patches_debug_3276
rasdani/github-patches
git_diff
scikit-hep__pyhf-362
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Lock Tensorflow to 1.11.0 release until TensorFlow probability has caught up # Description [TensorFlow 1.12.0 has been released](https://github.com/tensorflow/tensorflow/releases/tag/v1.12.0) and it has br...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ extras_require = { 'tensorflow': [ - 'tensorflow>=1.10.0', + 'tensorflow<1.12.0,>=1.10.0', 'tensorflow-probability==0.3.0', 'numpy<=1.14.5,>=1.14.0', # Lower of 1.14.0 instead of 1.13.3 to ensure do...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -12,7 +12,7 @@\n \n extras_require = {\n 'tensorflow': [\n- 'tensorflow>=1.10.0',\n+ 'tensorflow<1.12.0,>=1.10.0',\n 'tensorflow-probability==0.3.0',\n 'numpy<=1.14.5,>=1.14.0', # Lower of 1.14.0 ins...
1,913
144
gh_patches_debug_6465
rasdani/github-patches
git_diff
feast-dev__feast-3766
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Feast ui cannot parse url path ## Expected Behavior One of example cases: When user navigate localhost:8888/p/order_count_project/feature-view/user_3_and_7_days_order_count should see related feature-vie...
diff --git a/sdk/python/feast/ui_server.py b/sdk/python/feast/ui_server.py --- a/sdk/python/feast/ui_server.py +++ b/sdk/python/feast/ui_server.py @@ -77,7 +77,7 @@ # For all other paths (such as paths that would otherwise be handled by react router), pass to React @app.api_route("/p/{path_name:path}", method...
{"golden_diff": "diff --git a/sdk/python/feast/ui_server.py b/sdk/python/feast/ui_server.py\n--- a/sdk/python/feast/ui_server.py\n+++ b/sdk/python/feast/ui_server.py\n@@ -77,7 +77,7 @@\n # For all other paths (such as paths that would otherwise be handled by react router), pass to React\n @app.api_route(\"/p/{p...
1,390
138
gh_patches_debug_37912
rasdani/github-patches
git_diff
tournesol-app__tournesol-155
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Count ratings appropriately If a contributor rates A versus B on 9 quality criteria, this should count as 9 ratings. The home page statistics should reflect this, on not the number of times a contributor rat...
diff --git a/backend/backend/api_v2/statistics.py b/backend/backend/api_v2/statistics.py --- a/backend/backend/api_v2/statistics.py +++ b/backend/backend/api_v2/statistics.py @@ -12,24 +12,35 @@ from django.utils.timezone import make_aware -class StatisticsSerializerV2(serializers.Serializer): - """Serializ...
{"golden_diff": "diff --git a/backend/backend/api_v2/statistics.py b/backend/backend/api_v2/statistics.py\n--- a/backend/backend/api_v2/statistics.py\n+++ b/backend/backend/api_v2/statistics.py\n@@ -12,24 +12,35 @@\n from django.utils.timezone import make_aware\r\n \r\n \r\n-class StatisticsSerializerV2(serializers.Ser...
1,236
705
gh_patches_debug_22007
rasdani/github-patches
git_diff
CTFd__CTFd-2074
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cascading Hints Hints should have a sense of unlocking where one hint cannot be used until a previous one or others are used. --- END ISSUE --- Below are some code segments, each from a relevant file. One o...
diff --git a/CTFd/api/v1/hints.py b/CTFd/api/v1/hints.py --- a/CTFd/api/v1/hints.py +++ b/CTFd/api/v1/hints.py @@ -120,6 +120,33 @@ user = get_current_user() hint = Hints.query.filter_by(id=hint_id).first_or_404() + if hint.requirements: + requirements = hint.requirements.get("prer...
{"golden_diff": "diff --git a/CTFd/api/v1/hints.py b/CTFd/api/v1/hints.py\n--- a/CTFd/api/v1/hints.py\n+++ b/CTFd/api/v1/hints.py\n@@ -120,6 +120,33 @@\n user = get_current_user()\n hint = Hints.query.filter_by(id=hint_id).first_or_404()\n \n+ if hint.requirements:\n+ requirements = hi...
2,009
330
gh_patches_debug_41799
rasdani/github-patches
git_diff
mindee__doctr-369
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [demo] Improve UI for OCR result display For very dense documents, since the predicted text value is plotted statically, there can be some readability issues. We should try to improve this --- END ISSUE --- ...
diff --git a/demo/app.py b/demo/app.py --- a/demo/app.py +++ b/demo/app.py @@ -33,10 +33,14 @@ st.title("DocTR: Document Text Recognition") # For newline st.write('\n') + # Instructions + st.markdown("*Hint: click on the top-right corner of an image to enlarge it!*") # Set the columns - col...
{"golden_diff": "diff --git a/demo/app.py b/demo/app.py\n--- a/demo/app.py\n+++ b/demo/app.py\n@@ -33,10 +33,14 @@\n st.title(\"DocTR: Document Text Recognition\")\n # For newline\n st.write('\\n')\n+ # Instructions\n+ st.markdown(\"*Hint: click on the top-right corner of an image to enlarge it!*\")\n...
1,336
863
gh_patches_debug_27227
rasdani/github-patches
git_diff
searx__searx-2066
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mymemory_translated engine: unexpected crash 'str' object has no attribute 'decode' mymemory engine does not work. You can see it in the search engine statistics: https://searx.space/#. Either: "unexpect...
diff --git a/searx/engines/translated.py b/searx/engines/translated.py --- a/searx/engines/translated.py +++ b/searx/engines/translated.py @@ -9,23 +9,19 @@ @parse url, title, content """ import re -from sys import version_info from searx.utils import is_valid_lang -if version_info[0] == 3: - unicode = ...
{"golden_diff": "diff --git a/searx/engines/translated.py b/searx/engines/translated.py\n--- a/searx/engines/translated.py\n+++ b/searx/engines/translated.py\n@@ -9,23 +9,19 @@\n @parse url, title, content\n \"\"\"\n import re\n-from sys import version_info\n from searx.utils import is_valid_lang\n \n-if version...
991
429
gh_patches_debug_9958
rasdani/github-patches
git_diff
ethereum__web3.py-3187
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- web3 import errors in Python 3.12 * Version: 6.13.0 * Python: 3.12, inside a venv * OS: linux (but is probably applicable to other platforms as well) * `pip freeze` output: ``` aiohttp==3.9.1 aiosigna...
diff --git a/web3/__init__.py b/web3/__init__.py --- a/web3/__init__.py +++ b/web3/__init__.py @@ -1,5 +1,15 @@ -from eth_account import Account # noqa: E402, -import pkg_resources +from eth_account import Account # noqa: E402 +import sys + +if sys.version_info.major == 3 and sys.version_info.minor < 8: + import p...
{"golden_diff": "diff --git a/web3/__init__.py b/web3/__init__.py\n--- a/web3/__init__.py\n+++ b/web3/__init__.py\n@@ -1,5 +1,15 @@\n-from eth_account import Account # noqa: E402,\n-import pkg_resources\n+from eth_account import Account # noqa: E402\n+import sys\n+\n+if sys.version_info.major == 3 and sys.version_inf...
1,397
210
gh_patches_debug_27086
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-8283
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Enable intersphinx support for hoverxref in our documentation While writing #8283, I realized that we still do not enable intersphinx support in our sphinx-hoverxref documentation. More info here: https://...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -53,7 +53,23 @@ 'django': ('https://docs.djangoproject.com/en/1.11/', 'https://docs.djangoproject.com/en/1.11/_objects/'), 'sphinx': ('https://www.sphinx-doc.org/en/master/', None), 'pip': ('https://pip.pypa.io/en/stable/',...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -53,7 +53,23 @@\n 'django': ('https://docs.djangoproject.com/en/1.11/', 'https://docs.djangoproject.com/en/1.11/_objects/'),\n 'sphinx': ('https://www.sphinx-doc.org/en/master/', None),\n 'pip': ('https://p...
1,685
452
gh_patches_debug_428
rasdani/github-patches
git_diff
python__python-docs-es-1762
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Translate 'library/os.po' This needs to reach 100% translated. The rendered version of this file will be available at https://docs.python.org/es/3.10/library/os.html once translated. Meanwhile, the English v...
diff --git a/scripts/translate.py b/scripts/translate.py --- a/scripts/translate.py +++ b/scripts/translate.py @@ -44,6 +44,8 @@ ":RFC:`[^`]+`", ":rfc:`[^`]+`", ":doc:`[^`]+`", + ":manpage:`[^`]+`", + ":sup:`[^`]+`", "``[^`]+``", "`[^`]+`__", "`[^`]+`_",
{"golden_diff": "diff --git a/scripts/translate.py b/scripts/translate.py\n--- a/scripts/translate.py\n+++ b/scripts/translate.py\n@@ -44,6 +44,8 @@\n \":RFC:`[^`]+`\",\n \":rfc:`[^`]+`\",\n \":doc:`[^`]+`\",\n+ \":manpage:`[^`]+`\",\n+ \":sup:`[^`]+`\",\n \"``[^`]+``\",\n \"`[^`]+`__\",\n ...
1,587
113
gh_patches_debug_7956
rasdani/github-patches
git_diff
open-mmlab__mmpose-783
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- resource limit bug **Describe the feature** **Motivation** It is inconvenient when we run mmpose on slurm clustre which may has larger file-open's soft limit than 4096. The resource limit adjust here [...
diff --git a/mmpose/datasets/builder.py b/mmpose/datasets/builder.py --- a/mmpose/datasets/builder.py +++ b/mmpose/datasets/builder.py @@ -14,8 +14,9 @@ # https://github.com/pytorch/pytorch/issues/973 import resource rlimit = resource.getrlimit(resource.RLIMIT_NOFILE) + base_soft_limit = rlimit[0] ...
{"golden_diff": "diff --git a/mmpose/datasets/builder.py b/mmpose/datasets/builder.py\n--- a/mmpose/datasets/builder.py\n+++ b/mmpose/datasets/builder.py\n@@ -14,8 +14,9 @@\n # https://github.com/pytorch/pytorch/issues/973\n import resource\n rlimit = resource.getrlimit(resource.RLIMIT_NOFILE)\n+ base_so...
1,623
172
gh_patches_debug_30975
rasdani/github-patches
git_diff
liqd__a4-product-608
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Mandatory mB topic selection on bet.in ( US #1775) All projects need a topic on bet.in now, even existing ones. Can we remove that requirement? We haven't yet thought about how to implement topics on bet.in a...
diff --git a/liqd_product/apps/projects/dashboard.py b/liqd_product/apps/projects/dashboard.py --- a/liqd_product/apps/projects/dashboard.py +++ b/liqd_product/apps/projects/dashboard.py @@ -2,10 +2,8 @@ from django.utils.translation import ugettext_lazy as _ from adhocracy4.dashboard import DashboardComponent -fro...
{"golden_diff": "diff --git a/liqd_product/apps/projects/dashboard.py b/liqd_product/apps/projects/dashboard.py\n--- a/liqd_product/apps/projects/dashboard.py\n+++ b/liqd_product/apps/projects/dashboard.py\n@@ -2,10 +2,8 @@\n from django.utils.translation import ugettext_lazy as _\n \n from adhocracy4.dashboard import ...
1,525
387
gh_patches_debug_13265
rasdani/github-patches
git_diff
opensearch-project__opensearch-build-569
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove `integtest.sh` from all plugin repos The [integtest.sh](https://github.com/opensearch-project/opensearch-build/blob/main/bundle-workflow/scripts/default/integtest.sh) tool contains the logic to run int...
diff --git a/bundle-workflow/src/paths/script_finder.py b/bundle-workflow/src/paths/script_finder.py --- a/bundle-workflow/src/paths/script_finder.py +++ b/bundle-workflow/src/paths/script_finder.py @@ -64,9 +64,8 @@ @classmethod def find_integ_test_script(cls, component_name, git_dir): paths = [ - ...
{"golden_diff": "diff --git a/bundle-workflow/src/paths/script_finder.py b/bundle-workflow/src/paths/script_finder.py\n--- a/bundle-workflow/src/paths/script_finder.py\n+++ b/bundle-workflow/src/paths/script_finder.py\n@@ -64,9 +64,8 @@\n @classmethod\n def find_integ_test_script(cls, component_name, git_dir):\...
1,586
214