in_source_id stringlengths 13 58 | issue stringlengths 3 241k | before_files listlengths 0 3 | after_files listlengths 0 3 | pr_diff stringlengths 109 107M ⌀ |
|---|---|---|---|---|
ibis-project__ibis-6061 | refactor(common): use an enum as a sentinel value instead of NoMatch class
This pattern plays better with type checkers, and makes it clearer that `NoMatch` is a singleton *value* rather than a singleton type (i.e. consumers should check for `is NoMatch` rather than `isinstance(x, NoMatch)`).
```python
class NoMat... | [
{
"content": "from __future__ import annotations\n\nimport inspect\nimport math\nimport numbers\nfrom abc import ABC, abstractmethod\nfrom collections.abc import Callable, Hashable, Mapping, Sequence\nfrom enum import Enum\nfrom inspect import Parameter\nfrom itertools import chain, zip_longest\nfrom typing imp... | [
{
"content": "from __future__ import annotations\n\nimport enum\nimport inspect\nimport math\nimport numbers\nfrom abc import ABC, abstractmethod\nfrom collections.abc import Callable, Hashable, Mapping, Sequence\nfrom enum import Enum\nfrom inspect import Parameter\nfrom itertools import chain, zip_longest\nfr... | diff --git a/ibis/common/patterns.py b/ibis/common/patterns.py
index 4c183794cd0a..6b3b3b767354 100644
--- a/ibis/common/patterns.py
+++ b/ibis/common/patterns.py
@@ -1,5 +1,6 @@
from __future__ import annotations
+import enum
import inspect
import math
import numbers
@@ -70,8 +71,11 @@ class MatchError(Exception... |
bornhack__bornhack-website-158 | Make event details available as part of .ics feed

Make **event details** available as
1. a _description_ for .ics feed subscribers, **or**
2. a _direct link_ to the event details on the bornhack website... | [
{
"content": "import uuid\nimport os\nimport icalendar\nimport CommonMark\nimport logging\n\nfrom datetime import timedelta\n\nfrom django.contrib.postgres.fields import DateTimeRangeField\nfrom django.contrib import messages\nfrom django.db import models\nfrom django.core.exceptions import ObjectDoesNotExist, ... | [
{
"content": "import uuid\nimport os\nimport icalendar\nimport CommonMark\nimport logging\n\nfrom datetime import timedelta\n\nfrom django.contrib.postgres.fields import DateTimeRangeField\nfrom django.contrib import messages\nfrom django.db import models\nfrom django.core.exceptions import ObjectDoesNotExist, ... | diff --git a/src/program/models.py b/src/program/models.py
index 7e7c65b36..b34bed8a2 100644
--- a/src/program/models.py
+++ b/src/program/models.py
@@ -518,6 +518,7 @@ def timeslots(self):
def get_ics_event(self):
ievent = icalendar.Event()
ievent['summary'] = self.event.title
+ ievent['d... |
archlinux__archinstall-1153 | Cyrillic problems (?)
I decided to test new translation and got this

| [
{
"content": "\"\"\"Arch Linux installer - guided, templates etc.\"\"\"\nimport urllib.error\nimport urllib.parse\nimport urllib.request\nfrom argparse import ArgumentParser\n\nfrom .lib.disk import *\nfrom .lib.exceptions import *\nfrom .lib.general import *\nfrom .lib.hardware import *\nfrom .lib.installer im... | [
{
"content": "\"\"\"Arch Linux installer - guided, templates etc.\"\"\"\nimport urllib.error\nimport urllib.parse\nimport urllib.request\nfrom argparse import ArgumentParser\n\nfrom .lib.disk import *\nfrom .lib.exceptions import *\nfrom .lib.general import *\nfrom .lib.hardware import *\nfrom .lib.installer im... | diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index f362064853..c3e67a05fc 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -55,6 +55,10 @@
DeferredTranslation.install()
+def set_unicode_font():
+ SysCommand('setfont UniCyr_8x16')
+
+
def define_arguments():
"""
Define wh... |
Project-MONAI__MONAI-5486 | `NetAdapter` now does not support torchscript
When I tried to update `pathology_tumor_detection` bundle to use monai 1.0.1, it raised torchscript error like:
```
RuntimeError:
Unknown type name 'dict':
File "/home/venn/Desktop/monai-code/test_model_zoo/lib/python3.8/site-packages/monai/networks/nets/netadapter.py... | [
{
"content": "# Copyright (c) MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable la... | [
{
"content": "# Copyright (c) MONAI Consortium\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable la... | diff --git a/monai/networks/nets/netadapter.py b/monai/networks/nets/netadapter.py
index b1c96e8d4c..39112e4d54 100644
--- a/monai/networks/nets/netadapter.py
+++ b/monai/networks/nets/netadapter.py
@@ -107,7 +107,7 @@ def forward(self, x):
x = self.features(x)
if isinstance(x, tuple):
x ... |
Flexget__Flexget-665 | Tvmaze error finding show
Hi I recently upgradet to flexget with enabled tvMaze by default.
running the Series Tasks returns some errors from tvmaze like:
> 2015-11-26 18:36 WARNING est_series_tvmaze SERIES Could not found show on TVMaze: u'Orange%20is%20the%20new%20Black not found'
A quick lookup on their webpage s... | [
{
"content": "\"\"\"\nFlexGet build and development utilities - unfortunately this file is somewhat messy\n\"\"\"\nfrom __future__ import print_function\nimport os\nimport subprocess\nimport shutil\nimport sys\nfrom paver.easy import *\nimport paver.virtual\nimport paver.setuputils\nfrom paver.shell import sh\n... | [
{
"content": "\"\"\"\nFlexGet build and development utilities - unfortunately this file is somewhat messy\n\"\"\"\nfrom __future__ import print_function\nimport os\nimport subprocess\nimport shutil\nimport sys\nfrom paver.easy import *\nimport paver.virtual\nimport paver.setuputils\nfrom paver.shell import sh\n... | diff --git a/pavement.py b/pavement.py
index 32eb68e22e..95a59ec1f8 100644
--- a/pavement.py
+++ b/pavement.py
@@ -33,7 +33,7 @@
'tmdb3', 'path.py', 'guessit>=0.9.3, <0.10.4', 'apscheduler',
'flask>=0.7', 'flask-restful>=0.3.3', 'ordereddict>=1.1', 'flask-restplus==0.7.2', 'cherrypy>=3.7.0',
'flask-asset... |
fedora-infra__bodhi-2788 | The captcha does not work under Python 3
@morxa [reported](https://github.com/fedora-infra/bodhi/issues/2700#issuecomment-441245759) that the captcha was not working in Fedora's Bodhi deployment:
:
"""
settings = request.registry.settings
plainkey, value = math_generator(plainkey=Non... |
vacanza__python-holidays-806 | Swaziland deprecation warning
Resolves #793.
| [
{
"content": "# python-holidays\n# ---------------\n# A fast, efficient Python library for generating country, province and state\n# specific sets of holidays on the fly. It aims to make determining whether a\n# specific date is a holiday as fast and flexible as possible.\n#\n# Authors: dr-prodigy <mauriz... | [
{
"content": "# python-holidays\n# ---------------\n# A fast, efficient Python library for generating country, province and state\n# specific sets of holidays on the fly. It aims to make determining whether a\n# specific date is a holiday as fast and flexible as possible.\n#\n# Authors: dr-prodigy <mauriz... | diff --git a/CHANGES b/CHANGES
index 5f26b851a..7f6bf8e84 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,10 @@
-Version 0.17
-============
+Version 0.17.1
+==============
+
+Released November 23, 2022
+- Swaziland deprecation warning fix #794 (arkid15r)
-Released November 13, 2022
+First release (0.17) November 13, 20... |
DataBiosphere__toil-2784 | --default-container option not available in toil-cwl-runner
Hello,
It would useful to have a --default-container when using toil-cwl-runner, as we do in cwltool.
┆Issue is synchronized with this [Jira Task](https://ucsc-cgl.atlassian.net/browse/TOIL-415)
┆Issue Number: TOIL-415
| [
{
"content": "\"\"\" Implement support for Common Workflow Language (CWL) for Toil.\"\"\"\n#\n# Copyright (C) 2015 Curoverse, Inc\n# Copyright (C) 2016 UCSC Computational Genomics Lab\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with t... | [
{
"content": "\"\"\" Implement support for Common Workflow Language (CWL) for Toil.\"\"\"\n#\n# Copyright (C) 2015 Curoverse, Inc\n# Copyright (C) 2016 UCSC Computational Genomics Lab\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with t... | diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py
index 93b21c3e15..317a265d94 100755
--- a/src/toil/cwl/cwltoil.py
+++ b/src/toil/cwl/cwltoil.py
@@ -1080,7 +1080,9 @@ def main(args=None, stdout=sys.stdout):
"--relax-path-checks", action="store_true",
default=False, help="Relax requiremen... |
biolab__orange3-3633 | Widget Data table shows colours in header
##### Orange version

##### Expected behavior
1. If feature color changed in Color widget, it will not influence data in Data tabl... | [
{
"content": "import sys\nimport threading\nimport io\nimport csv\nimport itertools\nimport concurrent.futures\n\nfrom collections import OrderedDict, namedtuple\nfrom typing import List, Tuple, Iterable\n\nfrom math import isnan\n\nimport numpy\nfrom scipy.sparse import issparse\n\nfrom AnyQt.QtWidgets import ... | [
{
"content": "import sys\nimport threading\nimport io\nimport csv\nimport itertools\nimport concurrent.futures\n\nfrom collections import OrderedDict, namedtuple\nfrom typing import List, Tuple, Iterable\n\nfrom math import isnan\n\nimport numpy\nfrom scipy.sparse import issparse\n\nfrom AnyQt.QtWidgets import ... | diff --git a/Orange/widgets/data/owtable.py b/Orange/widgets/data/owtable.py
index 25d17f832e4..8f3828f3280 100644
--- a/Orange/widgets/data/owtable.py
+++ b/Orange/widgets/data/owtable.py
@@ -689,7 +689,8 @@ def _update_variable_labels(self, view):
RichTableModel.Labels | RichTableModel.Name)
... |
zigpy__zha-device-handlers-2136 | [Device Support Request] _TZ3210_e5t9bfdv TS0501B
This is a single channel LED controller that erroneously reports color support. I think it would need the same fix as _TZ3000_4whigl8i TS0501B.
<details>
<summary>Device signature - this can be acquired by clicking on the "Zigbee Device Signature" button in the dev... | [
{
"content": "\"\"\"Tuya dimmable led controller single channel.\"\"\"\nfrom zigpy.profiles import zha\nfrom zigpy.quirks import CustomDevice\nfrom zigpy.zcl.clusters.general import (\n Basic,\n GreenPowerProxy,\n Groups,\n Identify,\n LevelControl,\n OnOff,\n Ota,\n Scenes,\n Time,\n... | [
{
"content": "\"\"\"Tuya dimmable led controller single channel.\"\"\"\nfrom zigpy.profiles import zha\nfrom zigpy.quirks import CustomDevice\nfrom zigpy.zcl.clusters.general import (\n Basic,\n GreenPowerProxy,\n Groups,\n Identify,\n LevelControl,\n OnOff,\n Ota,\n Scenes,\n Time,\n... | diff --git a/zhaquirks/tuya/ts0501bs.py b/zhaquirks/tuya/ts0501bs.py
index 8fdaaf1613..48b946ea6d 100644
--- a/zhaquirks/tuya/ts0501bs.py
+++ b/zhaquirks/tuya/ts0501bs.py
@@ -30,7 +30,11 @@ class DimmableLedController(CustomDevice):
"""Tuya dimmable led controller single channel."""
signature = {
- M... |
spack__spack-22300 | hwloc: added missing ncurses dependency
| [
{
"content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\nimport sys\n\n\nclass Hwloc(AutotoolsPackage):\n \"\"\"The Hardware Locality (hwloc) software ... | [
{
"content": "# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\nimport sys\n\n\nclass Hwloc(AutotoolsPackage):\n \"\"\"The Hardware Locality (hwloc) software ... | diff --git a/var/spack/repos/builtin/packages/hwloc/package.py b/var/spack/repos/builtin/packages/hwloc/package.py
index 4b6e998c423071..fcfb3ac64cfde6 100644
--- a/var/spack/repos/builtin/packages/hwloc/package.py
+++ b/var/spack/repos/builtin/packages/hwloc/package.py
@@ -91,6 +91,10 @@ class Hwloc(AutotoolsPackage):... |
speechbrain__speechbrain-71 | Learning rate printing
Now it will only print 0.00. Maybe we should print it with scientific notation.
| [
{
"content": "import logging\nfrom speechbrain.utils.edit_distance import wer_summary\n\nlogger = logging.getLogger(__name__)\n\n\nclass TrainLogger:\n \"\"\"Abstract class defining an interface for training loggers.\"\"\"\n\n def log_stats(\n self,\n stats_meta,\n train_stats=None,\n... | [
{
"content": "import logging\nfrom speechbrain.utils.edit_distance import wer_summary\n\nlogger = logging.getLogger(__name__)\n\n\nclass TrainLogger:\n \"\"\"Abstract class defining an interface for training loggers.\"\"\"\n\n def log_stats(\n self,\n stats_meta,\n train_stats=None,\n... | diff --git a/speechbrain/utils/train_logger.py b/speechbrain/utils/train_logger.py
index 3fc20559ea..46c97c432e 100644
--- a/speechbrain/utils/train_logger.py
+++ b/speechbrain/utils/train_logger.py
@@ -54,8 +54,10 @@ def __init__(self, save_file, summary_fns):
def _item_to_string(self, key, value, dataset=None)... |
LMFDB__lmfdb-4650 | Some bianch modular forms are generating server errors
Here is the traceback for https://beta.lmfdb.org/ModularForm/GL2/ImaginaryQuadratic/2.0.163.1/900.1/a/
```
Exception on /ModularForm/GL2/ImaginaryQuadratic/2.0.163.1/900.1/a/ [GET]
Traceback (most recent call last):
File "/home/sage/sage-9.3/local/lib/python3... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom lmfdb import db\nfrom lmfdb.logger import make_logger\nfrom lmfdb.number_fields.web_number_field import nf_display_knowl, field_pretty\nfrom lmfdb.elliptic_curves.web_ec import split_lmfdb_label\nfrom lmfdb.nfutils.psort import primes_iter, ideal_from_label, ideal_lab... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom lmfdb import db\nfrom lmfdb.logger import make_logger\nfrom lmfdb.number_fields.web_number_field import nf_display_knowl, field_pretty\nfrom lmfdb.elliptic_curves.web_ec import split_lmfdb_label\nfrom lmfdb.nfutils.psort import primes_iter, ideal_from_label, ideal_lab... | diff --git a/lmfdb/bianchi_modular_forms/web_BMF.py b/lmfdb/bianchi_modular_forms/web_BMF.py
index c12bf4ae2e..871e492ec1 100644
--- a/lmfdb/bianchi_modular_forms/web_BMF.py
+++ b/lmfdb/bianchi_modular_forms/web_BMF.py
@@ -228,6 +228,7 @@ def conv(ap):
curve_bc = db.ec_nfcurves.lucky({'class_label':self.labe... |
PokemonGoF__PokemonGo-Bot-4146 | Client stops when [move_to_map_pokemon_teleport_to]
<!--
STOP ! ! !
Read the following before creating anything (or you will have your issue/feature request closed without notice)
1. Please only create an ISSUE or a FEATURE REQUEST - don't mix the two together in one item
2. For a Feature Request please only fill ou... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nMoves a trainer to a Pokemon.\n\nEvents:\n move_to_map_pokemon_fail\n When the worker fails.\n Returns:\n message: Failure message.\n\n move_to_map_pokemon_updated_map\n When worker updates the PokemonGo-Map.\n Returns:\... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nMoves a trainer to a Pokemon.\n\nEvents:\n move_to_map_pokemon_fail\n When the worker fails.\n Returns:\n message: Failure message.\n\n move_to_map_pokemon_updated_map\n When worker updates the PokemonGo-Map.\n Returns:\... | diff --git a/pokemongo_bot/cell_workers/move_to_map_pokemon.py b/pokemongo_bot/cell_workers/move_to_map_pokemon.py
index efd058ca96..bbe139523d 100644
--- a/pokemongo_bot/cell_workers/move_to_map_pokemon.py
+++ b/pokemongo_bot/cell_workers/move_to_map_pokemon.py
@@ -212,7 +212,7 @@ def snipe(self, pokemon):
la... |
flask-admin__flask-admin-1040 | form_extra_fields not considered in an inline form
[flask_admin.form.upload](http://flask-admin.readthedocs.org/en/latest/api/mod_form_upload/#module-flask_admin.form.upload) related fields are not rendered correctly in an inline form.
Looks like the _extra_fields_ kwarg is not set when invoking _get_form_ from the ... | [
{
"content": "import warnings\n\nfrom wtforms import fields, validators\nfrom sqlalchemy import Boolean, Column\n\nfrom flask_admin import form\nfrom flask_admin.model.form import (converts, ModelConverterBase,\n InlineModelConverterBase, FieldPlaceholder)\nfrom flask_admi... | [
{
"content": "import warnings\n\nfrom wtforms import fields, validators\nfrom sqlalchemy import Boolean, Column\n\nfrom flask_admin import form\nfrom flask_admin.model.form import (converts, ModelConverterBase,\n InlineModelConverterBase, FieldPlaceholder)\nfrom flask_admi... | diff --git a/flask_admin/contrib/sqla/form.py b/flask_admin/contrib/sqla/form.py
index f47af3547..ba5d818e9 100644
--- a/flask_admin/contrib/sqla/form.py
+++ b/flask_admin/contrib/sqla/form.py
@@ -612,7 +612,8 @@ def contribute(self, model, form_class, inline_model):
only=info.form_co... |
twisted__twisted-12079 | logging regression
As @om26er reports in https://github.com/twisted/twisted/pull/12040#issuecomment-1888181534 , the addition of parsing parens to match the documentation broke the subscripting part of the log-format protocol
| [
{
"content": "# -*- test-case-name: twisted.logger.test.test_format -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nTools for formatting logging events.\n\"\"\"\n\nfrom __future__ import annotations\n\nfrom datetime import datetime as DateTime\nfrom typing import Any, Ca... | [
{
"content": "# -*- test-case-name: twisted.logger.test.test_format -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nTools for formatting logging events.\n\"\"\"\n\nfrom __future__ import annotations\n\nfrom datetime import datetime as DateTime\nfrom typing import Any, Ca... | diff --git a/src/twisted/logger/_format.py b/src/twisted/logger/_format.py
index 959f4867ad4..673ac977b2c 100644
--- a/src/twisted/logger/_format.py
+++ b/src/twisted/logger/_format.py
@@ -201,6 +201,12 @@ def __init__(self, wrapped: object) -> None:
def __getattr__(self, name: str) -> object:
return keyc... |
sbi-dev__sbi-1051 | Default params of `check_sbc` produce torch UserWarning
**Describe the bug**
The default parameters of `check_sbc` produce a torch UserWarning with torch 2.2.1.
```
/home/steinb95/development/sbi-dev/repo/sbi/diagnostics/sbc.py:363: UserWarning: std(): degrees of freedom is <= 0. Correction should be strictly less... | [
{
"content": "import warnings\nfrom typing import Callable, Dict, List, Sequence, Tuple, Union\n\nimport torch\nfrom joblib import Parallel, delayed\nfrom scipy.stats import kstest, uniform\nfrom torch import Tensor, ones, zeros\nfrom torch.distributions import Uniform\nfrom tqdm.auto import tqdm\n\nfrom sbi.in... | [
{
"content": "import warnings\nfrom typing import Callable, Dict, List, Sequence, Tuple, Union\n\nimport torch\nfrom joblib import Parallel, delayed\nfrom scipy.stats import kstest, uniform\nfrom torch import Tensor, ones, zeros\nfrom torch.distributions import Uniform\nfrom tqdm.auto import tqdm\n\nfrom sbi.in... | diff --git a/sbi/diagnostics/sbc.py b/sbi/diagnostics/sbc.py
index 91bfa587c..740894fae 100644
--- a/sbi/diagnostics/sbc.py
+++ b/sbi/diagnostics/sbc.py
@@ -361,7 +361,8 @@ def check_uniformity_c2st(
])
# Use variance over repetitions to estimate robustness of c2st.
- if (c2st_scores.std(0) > 0.05).any()... |
getredash__redash-445 | Query execution fails with Google Apps accounts having non-ASCII characters in name
If the account used for Google Apps authentication has non-ASCII characters (ä in this case), execution of queries fails against Amazon Redshift datasource.
[2015-06-05 11:36:13,520][PID:7502][INFO][root] [Manager] Metadata: [{'Usernam... | [
{
"content": "import time\nimport datetime\nimport logging\nimport redis\nfrom celery import Task\nfrom celery.result import AsyncResult\nfrom celery.utils.log import get_task_logger\nfrom redash import redis_connection, models, statsd_client, settings\nfrom redash.utils import gen_query_hash\nfrom redash.worke... | [
{
"content": "import time\nimport datetime\nimport logging\nimport redis\nfrom celery import Task\nfrom celery.result import AsyncResult\nfrom celery.utils.log import get_task_logger\nfrom redash import redis_connection, models, statsd_client, settings\nfrom redash.utils import gen_query_hash\nfrom redash.worke... | diff --git a/redash/tasks.py b/redash/tasks.py
index 21ff6433ac..698835f1e1 100644
--- a/redash/tasks.py
+++ b/redash/tasks.py
@@ -252,9 +252,9 @@ def execute_query(self, query, data_source_id, metadata):
metadata['Query Hash'] = query_hash
metadata['Queue'] = self.request.delivery_info['routing_key']... |
cloud-custodian__cloud-custodian-3852 | Azure - c7n-Mailer Errors
About 50% of the time mailer runs, the following error results and messages aren't picked up, delivered:
```
Traceback (most recent call last):
File "/usr/local/bin/c7n-mailer", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/c7n_mailer/cli.py", ... | [
{
"content": "# Copyright 2018 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b... | [
{
"content": "# Copyright 2018 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required b... | diff --git a/tools/c7n_mailer/c7n_mailer/azure/sendgrid_delivery.py b/tools/c7n_mailer/c7n_mailer/azure/sendgrid_delivery.py
index f6fb9776d85..b5a7fdb7121 100644
--- a/tools/c7n_mailer/c7n_mailer/azure/sendgrid_delivery.py
+++ b/tools/c7n_mailer/c7n_mailer/azure/sendgrid_delivery.py
@@ -26,7 +26,7 @@ def __init__(self... |
ansible-collections__community.general-2080 | document what "archive" does when "dest" exists
Recreating from ansible/ansible#41973.
SUMMARY
"archive" documentation does not state what will be done when "dest" already exists.
ISSUE TYPE
Documentation Report
COMPONENT NAME
archive
ANSIBLE VERSION
2.5
STEPS TO REPRODUCE
Look at https://... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016, Ben Doherty <bendohmv@gmail.com>\n# Sponsored by Oomph, Inc. http://www.oomphinc.com\n# Copyright: (c) 2017, Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016, Ben Doherty <bendohmv@gmail.com>\n# Sponsored by Oomph, Inc. http://www.oomphinc.com\n# Copyright: (c) 2017, Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __... | diff --git a/plugins/modules/files/archive.py b/plugins/modules/files/archive.py
index 2872b5ac019..8b4a1c868bf 100644
--- a/plugins/modules/files/archive.py
+++ b/plugins/modules/files/archive.py
@@ -36,6 +36,7 @@
description:
- The file name of the destination archive. The parent directory must exists on ... |
apache__tvm-5150 | [BUG][TUTORIAL] Tutorial for quantization need update
Dear community,
I've noticed that the [stock tutorial for quantization](https://github.com/apache/incubator-tvm/blob/master/tutorials/frontend/deploy_quantized.py) fails if the following call is changed from local scales to global scales:
```
...
mod = quanti... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | diff --git a/tutorials/frontend/deploy_quantized.py b/tutorials/frontend/deploy_quantized.py
index 5af9fc950bc2..2586318321e2 100644
--- a/tutorials/frontend/deploy_quantized.py
+++ b/tutorials/frontend/deploy_quantized.py
@@ -132,7 +132,7 @@ def quantize(mod, params, data_aware):
with relay.quantize.qconfig(c... |
pymedusa__Medusa-1035 | FINDSUBTITLES :: [3824246] Failed to refine video Traceback (most recent call last)
### Before submitting your issue:
Enable debug logging in SickRage settings, reproduce the error (be sure to disable after the bug is fixed)
Branch/Commit: develop/3824246
OS: Linux
What you did: nothing
What happened: ~~rato appeared... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"TVEpisode refiner.\"\"\"\nfrom __future__ import unicode_literals\n\nimport logging\nimport re\n\nfrom subliminal.video import Episode\n\nfrom ..common import Quality\n\nlogger = logging.getLogger(__name__)\n\nSHOW_MAPPING = {\n 'series_tvdb_id': 'tvdb_id',\n '... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"TVEpisode refiner.\"\"\"\nfrom __future__ import unicode_literals\n\nimport logging\nimport re\n\nfrom subliminal.video import Episode\n\nfrom ..common import Quality\n\nlogger = logging.getLogger(__name__)\n\nSHOW_MAPPING = {\n 'series_tvdb_id': 'tvdb_id',\n '... | diff --git a/sickbeard/refiners/tvepisode.py b/sickbeard/refiners/tvepisode.py
index 0ed98b7f2d..d5c937b7df 100644
--- a/sickbeard/refiners/tvepisode.py
+++ b/sickbeard/refiners/tvepisode.py
@@ -59,7 +59,7 @@ def refine(video, tv_episode=None, **kwargs):
enrich(EPISODE_MAPPING, video, tv_episode)
enrich({'rel... |
facebookresearch__ParlAI-371 | Slow loading of image features during training
For VQA tasks, it takes massive amount of time to load the image features for training. The overhead is so much that for the same model it increases the training time by a factor of 50.
| [
{
"content": "# All rights reserved.\n# This source code is licensed under the BSD-style license found in the\n# LICENSE file in the root directory of this source tree. An additional grant\n# of patent rights can be found in the PATENTS file in the same directory.\n\nimport parlai.core.build_data as build_data\... | [
{
"content": "# All rights reserved.\n# This source code is licensed under the BSD-style license found in the\n# LICENSE file in the root directory of this source tree. An additional grant\n# of patent rights can be found in the PATENTS file in the same directory.\n\nimport parlai.core.build_data as build_data\... | diff --git a/parlai/core/image_featurizers.py b/parlai/core/image_featurizers.py
index 39fd5f250bf..ddb123d597a 100644
--- a/parlai/core/image_featurizers.py
+++ b/parlai/core/image_featurizers.py
@@ -9,6 +9,7 @@
import copy
import numpy as np
from PIL import Image
+from functools import lru_cache
_greyscale = ' ... |
interlegis__sapl-1787 | Protocolo Geral
Acrescentar em tipo de protocolo, o protocolo INTERNO, além dos existentes: Recebido, Enviado ...
| [
{
"content": "\nimport django_filters\nfrom crispy_forms.bootstrap import InlineRadios\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import HTML, Button, Fieldset, Layout\nfrom django import forms\nfrom django.core.exceptions import (MultipleObjectsReturned,\n ... | [
{
"content": "\nimport django_filters\nfrom crispy_forms.bootstrap import InlineRadios\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import HTML, Button, Fieldset, Layout\nfrom django import forms\nfrom django.core.exceptions import (MultipleObjectsReturned,\n ... | diff --git a/sapl/protocoloadm/forms.py b/sapl/protocoloadm/forms.py
index bd26feb81..8f240ff69 100644
--- a/sapl/protocoloadm/forms.py
+++ b/sapl/protocoloadm/forms.py
@@ -22,8 +22,8 @@
Protocolo, TipoDocumentoAdministrativo,
TramitacaoAdministrativo)
-TIPOS_PROTOCOLO = [(... |
boto__boto-3682 | Circular Import Error with boto.vendored.regions.regions
as part of using boto with CircleCI in context of deployment (using CodeDeploy) seeing the following error:
```
File "/usr/local/lib/python2.7/dist-packages/boto/__init__.py", line 28, in <module>
from boto.storage_uri import BucketStorageUri, FileStor... | [
{
"content": "#!/usr/bin/env python\n\n# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2010, Eucalyptus Systems, Inc.\n# All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (th... | [
{
"content": "#!/usr/bin/env python\n\n# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2010, Eucalyptus Systems, Inc.\n# All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (th... | diff --git a/setup.py b/setup.py
index 5879240e1e..49dc3c81bd 100644
--- a/setup.py
+++ b/setup.py
@@ -82,7 +82,7 @@ def readme():
"boto.cloudsearchdomain", "boto.kms",
"boto.awslambda", "boto.codedeploy", "boto.configservice",
"boto.cloudhsm", "boto.ec2container... |
ansible-collections__community.general-2081 | document what "archive" does when "dest" exists
Recreating from ansible/ansible#41973.
SUMMARY
"archive" documentation does not state what will be done when "dest" already exists.
ISSUE TYPE
Documentation Report
COMPONENT NAME
archive
ANSIBLE VERSION
2.5
STEPS TO REPRODUCE
Look at https://... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016, Ben Doherty <bendohmv@gmail.com>\n# Sponsored by Oomph, Inc. http://www.oomphinc.com\n# Copyright: (c) 2017, Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016, Ben Doherty <bendohmv@gmail.com>\n# Sponsored by Oomph, Inc. http://www.oomphinc.com\n# Copyright: (c) 2017, Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __... | diff --git a/plugins/modules/files/archive.py b/plugins/modules/files/archive.py
index 98bcbf36052..ce007fefbd5 100644
--- a/plugins/modules/files/archive.py
+++ b/plugins/modules/files/archive.py
@@ -36,6 +36,7 @@
description:
- The file name of the destination archive. The parent directory must exists on ... |
yt-project__yt-3847 | DOC: private methods used in cookbook recipe
### Bug report
**Bug summary**
in #2567, `doc/source/cookbook/render_two_fields_tf.py` was added to the cookbook
On the two following lines, the private method `_get_field_info` is used
https://github.com/yt-project/yt/blob/ef08989d8222e7172751d17009959102db05dd20/do... | [
{
"content": "import numpy as np\n\nimport yt\nfrom yt.visualization.volume_rendering.api import Scene, create_volume_source\n\nds = yt.load(\"IsolatedGalaxy/galaxy0030/galaxy0030\")\n\n# create a scene and add volume sources to it\n\nsc = Scene()\n\n# Add density\n\nfield = \"density\"\nds._get_field_info(fiel... | [
{
"content": "import numpy as np\n\nimport yt\nfrom yt.visualization.volume_rendering.api import Scene, create_volume_source\n\nds = yt.load(\"IsolatedGalaxy/galaxy0030/galaxy0030\")\n\n# create a scene and add volume sources to it\n\nsc = Scene()\n\n# Add density\n\nfield = \"density\"\n\nvol = create_volume_s... | diff --git a/doc/source/cookbook/render_two_fields_tf.py b/doc/source/cookbook/render_two_fields_tf.py
index 7cc2c8b7a45..c8931c2e87e 100644
--- a/doc/source/cookbook/render_two_fields_tf.py
+++ b/doc/source/cookbook/render_two_fields_tf.py
@@ -12,7 +12,6 @@
# Add density
field = "density"
-ds._get_field_info(field... |
open-telemetry__opentelemetry-python-2644 | I re-read the specification. I think the requirement is to json encode the non-string attribute values not just the sequence type. For example `_check_value(True)` returns `'True'` which should actually be `'true'`.
I re-read the specification. I think the requirement is to json encode the non-string attribute values n... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | diff --git a/exporter/opentelemetry-exporter-prometheus/src/opentelemetry/exporter/prometheus/__init__.py b/exporter/opentelemetry-exporter-prometheus/src/opentelemetry/exporter/prometheus/__init__.py
index 59b5a424eb5..6e71395da50 100644
--- a/exporter/opentelemetry-exporter-prometheus/src/opentelemetry/exporter/prome... |
microsoft__knossos-ksc-629 | Calls to "main"
In merging #550 I find I need ``ks::main``.
Looking at this comment in
https://github.com/microsoft/knossos-ksc/blob/18f654086f349cceb59c30dcbc8de2c534dcb5ec/src/ksc/Cgen.hs#L801
I wonder is it time to look at removing that?
| [
{
"content": "from dataclasses import dataclass\nfrom typing import Tuple, Union\nfrom collections import namedtuple\nimport itertools\n\nimport importlib.util\nimport os\nimport numpy as np\nimport subprocess\nimport sysconfig\nimport sys\nfrom tempfile import NamedTemporaryFile\n\nfrom ksc.type import Type, t... | [
{
"content": "from dataclasses import dataclass\nfrom typing import Tuple, Union\nfrom collections import namedtuple\nimport itertools\n\nimport importlib.util\nimport os\nimport numpy as np\nimport subprocess\nimport sysconfig\nimport sys\nfrom tempfile import NamedTemporaryFile\n\nfrom ksc.type import Type, t... | diff --git a/src/ksc/Cgen.hs b/src/ksc/Cgen.hs
index 7b0a1b542..d7022876f 100644
--- a/src/ksc/Cgen.hs
+++ b/src/ksc/Cgen.hs
@@ -798,22 +798,22 @@ cppGen defs =
tail =
[ "}"
, "#include \"knossos.cpp\""
- , "// cppGen automatically generates a call to ks::main()."
- , "// Some of ... |
ansible__ansible-modules-core-5067 | junos_command: ValueError: need more than 1 value to unpack
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
junos_command
##### ANSIBLE VERSION
```
ansible 2.2.0 (devel eb33ed4219) last updated 2016/09/27 09:18:44 (GMT +100)
lib/ansible/modules/core: (devel c03697c81e) last updated 2016/09/27 09:18:49 (GMT +100)... | [
{
"content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers... | [
{
"content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers... | diff --git a/network/junos/junos_command.py b/network/junos/junos_command.py
index fb80f0acad2..f370ace3d8a 100644
--- a/network/junos/junos_command.py
+++ b/network/junos/junos_command.py
@@ -263,8 +263,12 @@ def main():
exc = get_exception()
warnings.append('duplicate command detecte... |
meltano__meltano-6819 | bug: `meltano config meltano set ...` fails
### Meltano Version
2.6.0
### Python Version
3.8
### Bug scope
CLI (options, error messages, logging, etc.)
### Operating System
Ubuntu
### Description
Tried to set my buffer size via `meltano config` and received this error
### Code
```python
ubuntu@ip-172-31-19-2... | [
{
"content": "\"\"\"Interactive configuration handler.\"\"\"\n\nfrom __future__ import annotations\n\nimport contextlib\nimport json\n\nimport click\nfrom jinja2 import BaseLoader, Environment\nfrom rich.console import Console, Group\nfrom rich.markdown import Markdown\nfrom rich.panel import Panel\nfrom rich.t... | [
{
"content": "\"\"\"Interactive configuration handler.\"\"\"\n\nfrom __future__ import annotations\n\nimport contextlib\nimport json\n\nimport click\nfrom jinja2 import BaseLoader, Environment\nfrom rich.console import Console, Group\nfrom rich.markdown import Markdown\nfrom rich.panel import Panel\nfrom rich.t... | diff --git a/src/meltano/cli/interactive/config.py b/src/meltano/cli/interactive/config.py
index ad67209046..6e393df40f 100644
--- a/src/meltano/cli/interactive/config.py
+++ b/src/meltano/cli/interactive/config.py
@@ -63,7 +63,6 @@ def __init__(self, ctx, store, extras=False, max_width=None):
self.project = s... |
pytest-dev__pytest-django-426 | Tests are failing for Django master
I'd like to make a release but we should fix this first.
Output from the failing test:
https://travis-ci.org/pytest-dev/pytest-django/jobs/173636497
| [
{
"content": "# code snippet copied from https://gist.github.com/NotSqrt/5f3c76cd15e40ef62d09\nclass DisableMigrations(object):\n\n def __contains__(self, item):\n return True\n\n def __getitem__(self, item):\n return \"notmigrations\"\n",
"path": "pytest_django/migrations.py"
}
] | [
{
"content": "# code snippet copied from https://gist.github.com/NotSqrt/5f3c76cd15e40ef62d09\nfrom pytest_django.lazy_django import get_django_version\n\n\nclass DisableMigrations(object):\n\n def __init__(self):\n self._django_version = get_django_version()\n\n def __contains__(self, item):\n ... | diff --git a/pytest_django/migrations.py b/pytest_django/migrations.py
index 6c4d72648..ce80bbe1e 100644
--- a/pytest_django/migrations.py
+++ b/pytest_django/migrations.py
@@ -1,8 +1,17 @@
# code snippet copied from https://gist.github.com/NotSqrt/5f3c76cd15e40ef62d09
+from pytest_django.lazy_django import get_django... |
beeware__toga-585 | Add Canvas Dashed Line Support for Gtk+
Hey PyCon AU 2018 sprinters, and other new contributors - here is a great way to contribute for someone who runs Linux:
Recently @bryall implemented dashed line support for Canvas in the Cocoa backend in #578. It would be great to implement support for dashed lines in Gtk+ as ... | [
{
"content": "import gi\n\ngi.require_version(\"Gtk\", \"3.0\")\nfrom gi.repository import Gtk\n\ntry:\n import cairo\nexcept ImportError:\n cairo = None\ntry:\n gi.require_version(\"Pango\", \"1.0\")\n from gi.repository import Pango\n\n SCALE = Pango.SCALE\nexcept ImportError:\n SCALE = 1024... | [
{
"content": "import gi\n\ngi.require_version(\"Gtk\", \"3.0\")\nfrom gi.repository import Gtk\n\ntry:\n import cairo\nexcept ImportError:\n cairo = None\ntry:\n gi.require_version(\"Pango\", \"1.0\")\n from gi.repository import Pango\n\n SCALE = Pango.SCALE\nexcept ImportError:\n SCALE = 1024... | diff --git a/src/gtk/toga_gtk/widgets/canvas.py b/src/gtk/toga_gtk/widgets/canvas.py
index 319e96c338..e77d15951f 100644
--- a/src/gtk/toga_gtk/widgets/canvas.py
+++ b/src/gtk/toga_gtk/widgets/canvas.py
@@ -134,10 +134,13 @@ def fill(self, color, fill_rule, preserve, draw_context, *args, **kwargs):
else:
... |
localstack__localstack-7373 | bug: java.lang.IllegalArgumentException: argument type mismatch with RequestHandler
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
The following request handler:
```java
public class LegalDocPublisher implements RequestHandler<SQSEvent, Void> {
... | [
{
"content": "import os\nimport platform\nimport stat\nfrom typing import List\n\nfrom localstack.packages import DownloadInstaller, InstallTarget, Package, PackageInstaller\nfrom localstack.packages.core import ArchiveDownloadAndExtractInstaller, SystemNotSupportedException\nfrom localstack.utils.platform impo... | [
{
"content": "import os\nimport platform\nimport stat\nfrom typing import List\n\nfrom localstack.packages import DownloadInstaller, InstallTarget, Package, PackageInstaller\nfrom localstack.packages.core import ArchiveDownloadAndExtractInstaller, SystemNotSupportedException\nfrom localstack.utils.platform impo... | diff --git a/localstack/services/awslambda/packages.py b/localstack/services/awslambda/packages.py
index d569bd2443d85..814e27b6b800d 100644
--- a/localstack/services/awslambda/packages.py
+++ b/localstack/services/awslambda/packages.py
@@ -101,10 +101,10 @@ def _install(self, target: InstallTarget) -> None:
class A... |
googleapis__google-api-python-client-522 | Discovery checks for removed oauth2client dependency
In 9eb303e10cc9d6aa09137d1d68a0673e5aa5b4b0, 3 days ago, the dependency on `oauth2client` was dropped (yay!), but it seems that the Discovery API client is still checking for oauth2client in [apiclient/\_\_init\_\_.py](https://github.com/google/google-api-python-cli... | [
{
"content": "\"\"\"Retain apiclient as an alias for googleapiclient.\"\"\"\n\nfrom six import iteritems\n\nimport googleapiclient\n\ntry:\n import oauth2client\nexcept ImportError:\n raise RuntimeError(\n 'Previous version of google-api-python-client detected; due to a '\n 'packaging issue, we cann... | [
{
"content": "\"\"\"Retain apiclient as an alias for googleapiclient.\"\"\"\n\nfrom six import iteritems\n\nimport googleapiclient\n\nfrom googleapiclient import channel\nfrom googleapiclient import discovery\nfrom googleapiclient import errors\nfrom googleapiclient import http\nfrom googleapiclient import mime... | diff --git a/apiclient/__init__.py b/apiclient/__init__.py
index d75e7a1311f..62800d61407 100644
--- a/apiclient/__init__.py
+++ b/apiclient/__init__.py
@@ -4,17 +4,6 @@
import googleapiclient
-try:
- import oauth2client
-except ImportError:
- raise RuntimeError(
- 'Previous version of google-api-python-cli... |
networkx__networkx-3378 | 2.3rc1 drops python 2.7 support in a minor version
People using `NetworkX~=2.2` as their version specifier to pip, but still on Python 2.7 will get this message now that 2.3rc1 is out:
```
NetworkX requires Python 3.5 or later (2.7 detected).
```
This happens with no changes to their code.
Would dropping ... | [
{
"content": "\"\"\"Release data for NetworkX.\n\nWhen NetworkX is imported a number of steps are followed to determine\nthe version information.\n\n 1) If the release is not a development release (dev=False), then version\n information is read from version.py, a file containing statically\n defined... | [
{
"content": "\"\"\"Release data for NetworkX.\n\nWhen NetworkX is imported a number of steps are followed to determine\nthe version information.\n\n 1) If the release is not a development release (dev=False), then version\n information is read from version.py, a file containing statically\n defined... | diff --git a/doc/release/index.rst b/doc/release/index.rst
index 692c4470f5f..27105c2a591 100644
--- a/doc/release/index.rst
+++ b/doc/release/index.rst
@@ -4,10 +4,21 @@
API changes
***********
+We don't use semantic versioning. The first number indicates that we have
+made a major API break (e.g., 1.x to 2.x), w... |
aws-cloudformation__cfn-lint-870 | Don't hardcode all for AvailabilityZones not relevant for AWS::ElasticLoadBalancingV2::TargetGroup
Hello,
*cfn-lint version: 0.19.1*
*Description of issue.*
The following snippet :
```
Resources:
DefaultTargetGroup:
Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
Properties:
VpcId: h... | [
{
"content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w... | [
{
"content": "\"\"\"\n Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w... | diff --git a/src/cfnlint/rules/resources/properties/AvailabilityZone.py b/src/cfnlint/rules/resources/properties/AvailabilityZone.py
index eb21a860b1..11ca2ef71d 100644
--- a/src/cfnlint/rules/resources/properties/AvailabilityZone.py
+++ b/src/cfnlint/rules/resources/properties/AvailabilityZone.py
@@ -63,9 +63,11 @@ de... |
conda__conda-build-700 | "--perl" option mis-parses multi-digit versions
The `--perl` option for `conda build` separates each digit in a version string with a ".", instead of keeping multi-digit numbers together:
``` bash
$ conda build --perl 5.22.0 perl-try-tiny
Removing old build environment
Removing old work directory
BUILD START: perl-try... | [
{
"content": "# (c) Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport ... | [
{
"content": "# (c) Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport ... | diff --git a/conda_build/main_build.py b/conda_build/main_build.py
index c401d9e198..2d590831ab 100644
--- a/conda_build/main_build.py
+++ b/conda_build/main_build.py
@@ -299,7 +299,9 @@ def execute(args, parser):
setattr(args, lang, versions)
return
else:
- version = i... |
feast-dev__feast-1968 | Redis Cluster materialization error
## Expected Behavior
Materialization for Redis Cluster works
## Current Behavior
During materialization Feast use Redis client instead of RedisCluster client
## Steps to reproduce
configure redis cluster
```
project: my_feature_repo
registry: data/registry.db
provider... | [
{
"content": "# Copyright 2021 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | [
{
"content": "# Copyright 2021 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | diff --git a/sdk/python/feast/infra/online_stores/redis.py b/sdk/python/feast/infra/online_stores/redis.py
index dfdba081ecb..b1ff2d0880c 100644
--- a/sdk/python/feast/infra/online_stores/redis.py
+++ b/sdk/python/feast/infra/online_stores/redis.py
@@ -142,7 +142,7 @@ def _get_client(self, online_store_config: RedisOnl... |
numpy__numpy-16356 | numpy.deprecate indentation question
This code has two functions marked as deprecated with `numpy.deprecate`:
```
import numpy as np
@np.deprecate(message="foo() is no longer supported.")
def foo():
"""This is foo.
It doesn't do anything.
"""
return
@np.deprecate(message="bar() is n... | [
{
"content": "import os\nimport sys\nimport types\nimport re\nimport warnings\n\nfrom numpy.core.numerictypes import issubclass_, issubsctype, issubdtype\nfrom numpy.core.overrides import set_module\nfrom numpy.core import ndarray, ufunc, asarray\nimport numpy as np\n\n# getargspec and formatargspec were remove... | [
{
"content": "import os\nimport sys\nimport textwrap\nimport types\nimport re\nimport warnings\n\nfrom numpy.core.numerictypes import issubclass_, issubsctype, issubdtype\nfrom numpy.core.overrides import set_module\nfrom numpy.core import ndarray, ufunc, asarray\nimport numpy as np\n\n# getargspec and formatar... | diff --git a/numpy/lib/tests/test_utils.py b/numpy/lib/tests/test_utils.py
index c96bf795a22e..261cfef5d680 100644
--- a/numpy/lib/tests/test_utils.py
+++ b/numpy/lib/tests/test_utils.py
@@ -49,7 +49,7 @@ def old_func5(self, x):
Bizarre indentation.
"""
return x
-new_func5 = deprecate(old_func5)
+new... |
freqtrade__freqtrade-3200 | Docker image making logfiles in user_data
docker image places error logfiles in user_data by default. (apparently it should not be doing that)
Maybe cud have it put them in a log dir?
docker-compose.yml
command: >
trade
--logfile /freqtrade/user_data/freqtrade.log
can maybe be changed to
... | [
{
"content": "import logging\nimport shutil\nfrom pathlib import Path\nfrom typing import Any, Dict, Optional\n\nfrom freqtrade.exceptions import OperationalException\nfrom freqtrade.constants import USER_DATA_FILES\n\nlogger = logging.getLogger(__name__)\n\n\ndef create_datadir(config: Dict[str, Any], datadir:... | [
{
"content": "import logging\nimport shutil\nfrom pathlib import Path\nfrom typing import Any, Dict, Optional\n\nfrom freqtrade.exceptions import OperationalException\nfrom freqtrade.constants import USER_DATA_FILES\n\nlogger = logging.getLogger(__name__)\n\n\ndef create_datadir(config: Dict[str, Any], datadir:... | diff --git a/docker-compose.yml b/docker-compose.yml
index 3a4c4c2db3b..49d83aa5e81 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -3,6 +3,7 @@ version: '3'
services:
freqtrade:
image: freqtradeorg/freqtrade:master
+ # image: freqtradeorg/freqtrade:develop
# Build step - only needed when a... |
pypa__pip-2133 | FTP download install failed
``` bash
(venv)ubuntu@box31:~/bex$ pip install ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.9.tar.gz
```
``` bash
Downloading/unpacking ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.9.tar.gz
Cleaning up...
Exception:
Traceback (most recent call last):
File "/home/ubuntu/bex/v... | [
{
"content": "\"\"\"Routines related to PyPI, indexes\"\"\"\nfrom __future__ import absolute_import\n\nimport logging\nimport sys\nimport os\nimport re\nimport mimetypes\nimport posixpath\nimport warnings\n\nfrom pip._vendor.six.moves.urllib import parse as urllib_parse\nfrom pip._vendor.six.moves.urllib import... | [
{
"content": "\"\"\"Routines related to PyPI, indexes\"\"\"\nfrom __future__ import absolute_import\n\nimport logging\nimport sys\nimport os\nimport re\nimport mimetypes\nimport posixpath\nimport warnings\n\nfrom pip._vendor.six.moves.urllib import parse as urllib_parse\nfrom pip._vendor.six.moves.urllib import... | diff --git a/CHANGES.txt b/CHANGES.txt
index e631080242c..f3f6e1f32bf 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -12,6 +12,10 @@
rooted at the location reported by show, rather than one (unstated)
directory lower. (:pull:`1933`)
+* **BACKWARD INCOMPATIBLE** The ability to install files over the FTP protocol
... |
numpy__numpy-16349 | numpy.deprecate indentation question
This code has two functions marked as deprecated with `numpy.deprecate`:
```
import numpy as np
@np.deprecate(message="foo() is no longer supported.")
def foo():
"""This is foo.
It doesn't do anything.
"""
return
@np.deprecate(message="bar() is n... | [
{
"content": "import os\nimport sys\nimport types\nimport re\nimport warnings\n\nfrom numpy.core.numerictypes import issubclass_, issubsctype, issubdtype\nfrom numpy.core.overrides import set_module\nfrom numpy.core import ndarray, ufunc, asarray\nimport numpy as np\n\n# getargspec and formatargspec were remove... | [
{
"content": "import os\nimport sys\nimport textwrap\nimport types\nimport re\nimport warnings\n\nfrom numpy.core.numerictypes import issubclass_, issubsctype, issubdtype\nfrom numpy.core.overrides import set_module\nfrom numpy.core import ndarray, ufunc, asarray\nimport numpy as np\n\n# getargspec and formatar... | diff --git a/numpy/lib/tests/test_utils.py b/numpy/lib/tests/test_utils.py
index c96bf795a22e..261cfef5d680 100644
--- a/numpy/lib/tests/test_utils.py
+++ b/numpy/lib/tests/test_utils.py
@@ -49,7 +49,7 @@ def old_func5(self, x):
Bizarre indentation.
"""
return x
-new_func5 = deprecate(old_func5)
+new... |
buildbot__buildbot-222 | minor fix for influxdb
- fix documenation for CaptureBuildDurationAllBuilders
- fix when influxdb python is not installed.
```
2016-03-16 11:08:01+0100 [-] error while parsing config file:
Traceback (most recent call last):
File "/home/xdelannoy/Projects/prototype/env/local/lib/python2.7/site-packages/Twist... | [
{
"content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n... | [
{
"content": "# This file is part of Buildbot. Buildbot is free software: you can\n# redistribute it and/or modify it under the terms of the GNU General Public\n# License as published by the Free Software Foundation, version 2.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n... | diff --git a/master/buildbot/steps/python.py b/master/buildbot/steps/python.py
index da1ef1826d02..417aaa984f9d 100644
--- a/master/buildbot/steps/python.py
+++ b/master/buildbot/steps/python.py
@@ -166,8 +166,8 @@ class PyLint(ShellCommand):
_re_groupname = 'errtype'
_msgtypes_re_str = '(?P<%s>[%s])' % (_r... |
sbi-dev__sbi-1129 | PyMC samplers failing on simple Gaussian example.
**Describe the bug**
We are using a simple Gaussian posterior example to test the MCMC methods. The new PyMC samplers are failing for this example, producing c2st around 0.85.
**To Reproduce**
Please add a minimal code example that reproduces the problem:
```bash... | [
{
"content": "from typing import Any, Callable, Optional\n\nimport numpy as np\nimport pymc\nimport pytensor.tensor as pt\nimport torch\nfrom arviz.data import InferenceData\n\nfrom sbi.utils import tensor2numpy\n\n\nclass PyMCPotential(pt.Op): # type: ignore\n \"\"\"PyTensor Op wrapping a callable potentia... | [
{
"content": "from typing import Any, Callable, Optional\n\nimport numpy as np\nimport pymc\nimport pytensor.tensor as pt\nimport torch\nfrom arviz.data import InferenceData\n\nfrom sbi.utils import tensor2numpy\n\n\nclass PyMCPotential(pt.Op): # type: ignore\n \"\"\"PyTensor Op wrapping a callable potentia... | diff --git a/sbi/samplers/mcmc/pymc_wrapper.py b/sbi/samplers/mcmc/pymc_wrapper.py
index 86043199e..6e00da67e 100644
--- a/sbi/samplers/mcmc/pymc_wrapper.py
+++ b/sbi/samplers/mcmc/pymc_wrapper.py
@@ -144,10 +144,9 @@ def __init__(
potential_fn, track_gradients=track_gradients, device=device
)
... |
scikit-image__scikit-image-4174 | Regression in threshold_multiotsu
## Description
During my exploration for fixing #3980 I observed that `threshold_multiotsu` gives a different result on the `astronaut` image thanks to @sciunto https://github.com/scikit-image/scikit-image/issues/3980#issuecomment-521624136_
In fact, after refactoring, the new v... | [
{
"content": "import itertools\nimport math\nimport numpy as np\nfrom scipy import ndimage as ndi\nfrom collections import OrderedDict\nfrom collections.abc import Iterable\nfrom ..exposure import histogram\nfrom .._shared.utils import check_nD, warn\nfrom ..transform import integral_image\nfrom ..util import c... | [
{
"content": "import itertools\nimport math\nimport numpy as np\nfrom scipy import ndimage as ndi\nfrom collections import OrderedDict\nfrom collections.abc import Iterable\nfrom ..exposure import histogram\nfrom .._shared.utils import check_nD, warn\nfrom ..transform import integral_image\nfrom ..util import c... | diff --git a/skimage/filters/tests/test_thresholding.py b/skimage/filters/tests/test_thresholding.py
index ecc3b0a3545..b85348b014c 100644
--- a/skimage/filters/tests/test_thresholding.py
+++ b/skimage/filters/tests/test_thresholding.py
@@ -4,6 +4,7 @@
from skimage import util
from skimage import data
+from skimage... |
geopandas__geopandas-1306 | DOC: missing changelog in documentation
Our changelog is available only as a .md file in the root folder. It should be part of the documentation online as well as @StevenLi-DS correctly pointed out in https://github.com/geopandas/geopandas/issues/1076#issuecomment-590126250.
| [
{
"content": "# -*- coding: utf-8 -*-\n#\n# GeoPandas documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 15 08:08:14 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in thi... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# GeoPandas documentation build configuration file, created by\n# sphinx-quickstart on Tue Oct 15 08:08:14 2013.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in thi... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6cd721c537..eabe5d5eed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,5 @@
-Changes
-=======
+Changelog
+=========
Version 0.7.0 (February 16, 2020)
---------------------------------
diff --git a/doc/environment.yml b/doc/environment.yml
index ce9ad040e5..9061... |
interlegis__sapl-3186 | Ao colocar o parlamentar como inativo, automaticamente deixar seu usuário inativo também.
<!--- Forneça um resumo geral da _issue_ no título acima -->
Hoje quando deixo um parlamentar inativo, isso não reflete no usuário associado a ele.
## Comportamento Esperado
<!--- Se você está descrevendo um _bug_, conte-nos ... | [
{
"content": "from datetime import timedelta\nimport logging\n\nfrom sapl.crispy_layout_mixin import SaplFormHelper\nfrom crispy_forms.layout import Fieldset, Layout\nfrom django import forms\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.models import Group, User\nfrom django.contrib... | [
{
"content": "from datetime import timedelta\nimport logging\n\nfrom sapl.crispy_layout_mixin import SaplFormHelper\nfrom crispy_forms.layout import Fieldset, Layout\nfrom django import forms\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.models import Group, User\nfrom django.contrib... | diff --git a/sapl/parlamentares/forms.py b/sapl/parlamentares/forms.py
index 448535d40..2f2cd49c3 100755
--- a/sapl/parlamentares/forms.py
+++ b/sapl/parlamentares/forms.py
@@ -216,6 +216,17 @@ class Meta:
'biografia': forms.Textarea(
attrs={'id': 'texto-rico'})}
+ def save(self, comm... |
akvo__akvo-rsr-1945 | Public projects filter in REST API not working correctly
## Test plan
All projects (and other objects) should be displayed in the REST API.
## Issue description
As a quick fix, just display all projects (public and private) in the API.
| [
{
"content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom rest_... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom rest_... | diff --git a/akvo/rest/viewsets.py b/akvo/rest/viewsets.py
index 80cb18e73c..9040acbb72 100644
--- a/akvo/rest/viewsets.py
+++ b/akvo/rest/viewsets.py
@@ -23,11 +23,3 @@ class BaseRSRViewSet(viewsets.ModelViewSet):
permission_classes = (DjangoObjectPermissions, )
filter_backends = (filters.DjangoFilterBackend... |
vispy__vispy-1595 | Load STL files into vispy
Hi there, I think I found a bug in vispy/vispy/io/mesh.py in col 42:
mesh = load_stl(fname)
when I try to import a *.stl file by read_mesh(fname), an error occured like this:
File "D:\Python3.5\lib\site-packages\vispy\io\mesh.py", line 43, in read_mesh
mesh = load_stl(fname)
Fi... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\n\"\"\" Reading and writing of data like images and meshes.\n\"\"\"\n\nfrom os import path as op\n\nfrom .wavefront import WavefrontRea... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\n\"\"\" Reading and writing of data like images and meshes.\n\"\"\"\n\nfrom os import path as op\n\nfrom .wavefront import WavefrontRea... | diff --git a/vispy/io/mesh.py b/vispy/io/mesh.py
index 2885f0d8c4..c940820c23 100644
--- a/vispy/io/mesh.py
+++ b/vispy/io/mesh.py
@@ -39,10 +39,11 @@ def read_mesh(fname):
if fmt in ('.obj'):
return WavefrontReader.read(fname)
elif fmt in ('.stl'):
- mesh = load_stl(fname)
- vertices =... |
python-discord__bot-1364 | ZeroDivisionError: division by zero
Sentry Issue: [BOT-KQ](https://sentry.io/organizations/python-discord/issues/2158550250/?referrer=github_integration)
```
ZeroDivisionError: division by zero
(3 additional frame(s) were not displayed)
...
File "bot/exts/info/tags.py", line 223, in display_tag
temp_founds = sel... | [
{
"content": "import contextlib\nimport difflib\nimport logging\nimport typing as t\n\nfrom discord import Embed\nfrom discord.ext.commands import Cog, Context, errors\nfrom sentry_sdk import push_scope\n\nfrom bot.api import ResponseCodeError\nfrom bot.bot import Bot\nfrom bot.constants import Colours, Icons, ... | [
{
"content": "import contextlib\nimport difflib\nimport logging\nimport typing as t\n\nfrom discord import Embed\nfrom discord.ext.commands import Cog, Context, errors\nfrom sentry_sdk import push_scope\n\nfrom bot.api import ResponseCodeError\nfrom bot.bot import Bot\nfrom bot.constants import Colours, Icons, ... | diff --git a/bot/exts/backend/error_handler.py b/bot/exts/backend/error_handler.py
index da264ce2ff..2f02fdee31 100644
--- a/bot/exts/backend/error_handler.py
+++ b/bot/exts/backend/error_handler.py
@@ -159,12 +159,7 @@ async def try_get_tag(self, ctx: Context) -> None:
return
if not any... |
goauthentik__authentik-5414 | Stacktrace when attempting to save an invalid blueprint to internal storage
**Describe the bug**
`POST /api/v3/managed/blueprints/` results in a stacktrace when attempting to upload an invalid blueprint
**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'Customization / Blueprints'
2. Click on Create
3.... | [
{
"content": "\"\"\"Serializer mixin for managed models\"\"\"\nfrom django.utils.translation import gettext_lazy as _\nfrom drf_spectacular.utils import extend_schema, inline_serializer\nfrom rest_framework.decorators import action\nfrom rest_framework.exceptions import ValidationError\nfrom rest_framework.fiel... | [
{
"content": "\"\"\"Serializer mixin for managed models\"\"\"\nfrom django.utils.translation import gettext_lazy as _\nfrom drf_spectacular.utils import extend_schema, inline_serializer\nfrom rest_framework.decorators import action\nfrom rest_framework.exceptions import ValidationError\nfrom rest_framework.fiel... | diff --git a/authentik/blueprints/api.py b/authentik/blueprints/api.py
index 2e2f0266355b..8f8b7f06b904 100644
--- a/authentik/blueprints/api.py
+++ b/authentik/blueprints/api.py
@@ -49,7 +49,8 @@ def validate_content(self, content: str) -> str:
context = self.instance.context if self.instance else {}
... |
python__typeshed-10160 | Remove emoji stubs (not before May 2023)
With https://github.com/carpedm20/emoji/pull/166 merged using the stubs previously contributed to typeshed, the ~~latest release now~~ next release should include type hints. Seems 2.1.0 was tagged directly before type hints being merged.
| [
{
"content": "#!/usr/bin/env python3\nfrom __future__ import annotations\n\nimport argparse\nimport asyncio\nimport contextlib\nimport datetime\nimport enum\nimport functools\nimport io\nimport os\nimport re\nimport subprocess\nimport sys\nimport tarfile\nimport textwrap\nimport urllib.parse\nimport zipfile\nfr... | [
{
"content": "#!/usr/bin/env python3\nfrom __future__ import annotations\n\nimport argparse\nimport asyncio\nimport contextlib\nimport datetime\nimport enum\nimport functools\nimport io\nimport os\nimport re\nimport subprocess\nimport sys\nimport tarfile\nimport textwrap\nimport urllib.parse\nimport zipfile\nfr... | diff --git a/scripts/stubsabot.py b/scripts/stubsabot.py
index 93b439e740d4..1c99aa60c85e 100644
--- a/scripts/stubsabot.py
+++ b/scripts/stubsabot.py
@@ -280,7 +280,7 @@ async def get_diff_info(
versions_to_tags: dict[packaging.version.Version, str] = {}
for tag in github_info.tags:
tag_name = tag["... |
pre-commit__pre-commit-1448 | Unhandled yaml.scanner.ScannerError when trying autoupdate with a malformed pre-commit config
In migrate_config.py we catch `yaml.YAMLError` on [lines 31-36](https://github.com/pre-commit/pre-commit/blob/master/pre_commit/commands/migrate_config.py#L31-L36) (of which `yaml.scanner.ScannerError` is a subclass), but when... | [
{
"content": "import re\n\nimport yaml\n\nfrom pre_commit.util import yaml_load\n\n\ndef _indent(s: str) -> str:\n lines = s.splitlines(True)\n return ''.join(' ' * 4 + line if line.strip() else line for line in lines)\n\n\ndef _is_header_line(line: str) -> bool:\n return line.startswith(('#', '---')) ... | [
{
"content": "import re\n\nimport yaml\n\nfrom pre_commit.clientlib import load_config\nfrom pre_commit.util import yaml_load\n\n\ndef _indent(s: str) -> str:\n lines = s.splitlines(True)\n return ''.join(' ' * 4 + line if line.strip() else line for line in lines)\n\n\ndef _is_header_line(line: str) -> bo... | diff --git a/pre_commit/commands/migrate_config.py b/pre_commit/commands/migrate_config.py
index d83b8e9cf..d580ff178 100644
--- a/pre_commit/commands/migrate_config.py
+++ b/pre_commit/commands/migrate_config.py
@@ -2,6 +2,7 @@
import yaml
+from pre_commit.clientlib import load_config
from pre_commit.util import... |
xorbitsai__inference-784 | BUG: Unable to stream response on GPT-2
### Describe the bug
An error occurs when I stream response using the GPT-2 model.
### To Reproduce
Versions:
Python 3.11.4
Latest Github commit of Xinference
Minimal Code:
```python
from xinference.client import Client
# Get model
client = Client("http://localhos... | [
{
"content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | [
{
"content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | diff --git a/xinference/types.py b/xinference/types.py
index 691ebdc3db..ef44b91094 100644
--- a/xinference/types.py
+++ b/xinference/types.py
@@ -355,7 +355,10 @@ class CreateCompletionTorch(BaseModel):
CreateCompletionCTransformers = get_pydantic_model_from_method(
LLM.generate,
exclude_fields=... |
cowrie__cowrie-802 | adding root:x:!password to userdb.txt doesn't exclude root/password as valid credentials
Fresh install.
I tried to exclude 'password' or 'abc123' from valid passwords for the user root
Now file looks like
```
root:x:!root
root:x:!123456
root:x:!password
root:x:*
```
Retarted cowrie, but no way to deny l... | [
{
"content": "# Copyright (c) 2009-2014 Upi Tamminen <desaster@gmail.com>\n# See the COPYRIGHT file for more information\n\n\"\"\"\nThis module contains ...\n\"\"\"\n\nfrom __future__ import division, absolute_import\n\nimport re\nimport json\nfrom os import path\nfrom random import randint\n\nfrom twisted.pyth... | [
{
"content": "# Copyright (c) 2009-2014 Upi Tamminen <desaster@gmail.com>\n# See the COPYRIGHT file for more information\n\n\"\"\"\nThis module contains ...\n\"\"\"\n\nfrom __future__ import division, absolute_import\n\nimport re\nimport json\nfrom os import path\nfrom random import randint\nfrom collections im... | diff --git a/cowrie/core/auth.py b/cowrie/core/auth.py
index 1533b546f2..323e3ef1b7 100644
--- a/cowrie/core/auth.py
+++ b/cowrie/core/auth.py
@@ -11,6 +11,7 @@
import json
from os import path
from random import randint
+from collections import OrderedDict
from twisted.python import log
@@ -22,7 +23,7 @@ class ... |
pyinstaller__pyinstaller-3746 | UAC not working in onefile again, migrate old UAC test
I am not able to create one file executable with UAC.
Here is the project I am trying to add the UAC window - https://github.com/pywinauto/SWAPY
`python27 latest-pyinstaller\pyinstaller.py --uac-admin -F swapy-ob.py`
Single exe file does not ask for Admin rights.
... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2019, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING.... | [
{
"content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2018, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING.... | diff --git a/PyInstaller/building/api.py b/PyInstaller/building/api.py
index 5bc3790bd7..2feae83c75 100644
--- a/PyInstaller/building/api.py
+++ b/PyInstaller/building/api.py
@@ -568,6 +568,8 @@ def assemble(self):
logger.error("Error while updating resource %s %s in %s"
... |
Textualize__rich-3006 | [BUG] Class of default value may change behavior of repr auto generation
- [x] I've checked [docs](https://rich.readthedocs.io/en/latest/introduction.html) and [closed issues](https://github.com/Textualize/rich/issues?q=is%3Aissue+is%3Aclosed) for possible solutions.
- [x] I can't find my issue in the [FAQ](https://gi... | [
{
"content": "import inspect\nfrom functools import partial\nfrom typing import (\n Any,\n Callable,\n Iterable,\n List,\n Optional,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\n\nT = TypeVar(\"T\")\n\n\nResult = Iterable[Union[Any, Tuple[Any], Tuple[str, Any], Tuple[str, A... | [
{
"content": "import inspect\nfrom functools import partial\nfrom typing import (\n Any,\n Callable,\n Iterable,\n List,\n Optional,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\n\nT = TypeVar(\"T\")\n\n\nResult = Iterable[Union[Any, Tuple[Any], Tuple[str, Any], Tuple[str, A... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index bbbfecf89..60267c5ee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix for escaping strings with a trailing backslash https://github.com/Textualize/rich/issues/2987
- Fixe... |
modin-project__modin-6526 | Interchange `Column.null_count` is a NumPy scalar, not a builtin `int`
A `PandasProtocolColumn` returns a `null_count` as a 0d integer array (specifically a NumPy scalar), as opposed to [`int` as specified in the interchange protocol](https://github.com/data-apis/dataframe-api/blob/4f7c1e0c425643d57120c5b73434d992b3e83... | [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | [
{
"content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ... | diff --git a/modin/core/dataframe/pandas/interchange/dataframe_protocol/column.py b/modin/core/dataframe/pandas/interchange/dataframe_protocol/column.py
index 01471ad45f3..08185f38485 100644
--- a/modin/core/dataframe/pandas/interchange/dataframe_protocol/column.py
+++ b/modin/core/dataframe/pandas/interchange/datafram... |
openstates__openstates-scrapers-2389 | PA failing since at least 2018-06-20
PA has been failing since 2018-06-20
Based on automated runs it appears that PA has not run successfully in 2 days (2018-06-20).
```
loaded Open States pupa settings...
pa (scrape, import)
/opt/openstates/venv-pupa/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarni... | [
{
"content": "from pupa.scrape import Jurisdiction, Organization\n\nfrom openstates.utils import url_xpath\n\nfrom .bills import PABillScraper\n# from .events import PAEventScraper\nfrom .people import PALegislatorScraper\nfrom .committees import PACommitteeScraper\n\nsettings = {'SCRAPELIB_RPM': 30}\n\n\nclass... | [
{
"content": "from pupa.scrape import Jurisdiction, Organization\n\nfrom openstates.utils import url_xpath\n\nfrom .bills import PABillScraper\n# from .events import PAEventScraper\nfrom .people import PALegislatorScraper\nfrom .committees import PACommitteeScraper\n\nsettings = {'SCRAPELIB_RPM': 30}\n\n\nclass... | diff --git a/openstates/pa/__init__.py b/openstates/pa/__init__.py
index 1adaacbd18..36c422ab15 100644
--- a/openstates/pa/__init__.py
+++ b/openstates/pa/__init__.py
@@ -224,5 +224,10 @@ def get_organizations(self):
yield lower
def get_session_list(self):
+ # PA keeps slowly adding backdata, so ... |
open-mmlab__mmaction2-624 | ValueError: FastRCNN is not registered in LOCALIZERS, RECOGNIZERS or DETECTORS
Hello
when I train AVA dataset find a error
ValueError: FastRCNN is not registered in LOCALIZERS, RECOGNIZERS or DETECTORS
how to solve it
think you very much
| [
{
"content": "import torch.nn as nn\nfrom mmcv.utils import Registry, build_from_cfg\n\nfrom mmaction.utils import import_module_error_func\nfrom .registry import BACKBONES, HEADS, LOCALIZERS, LOSSES, NECKS, RECOGNIZERS\n\ntry:\n from mmdet.models.builder import DETECTORS, build_detector\nexcept (ImportError... | [
{
"content": "import torch.nn as nn\nfrom mmcv.utils import Registry, build_from_cfg\n\nfrom mmaction.utils import import_module_error_func\nfrom .registry import BACKBONES, HEADS, LOCALIZERS, LOSSES, NECKS, RECOGNIZERS\n\ntry:\n from mmdet.models.builder import DETECTORS, build_detector\nexcept (ImportError... | diff --git a/README.md b/README.md
index 31a5821422..9c8eb4cbc0 100644
--- a/README.md
+++ b/README.md
@@ -47,6 +47,8 @@ The master branch works with **PyTorch 1.3+**.
- For temporal action localization, we implement BSN, BMN, SSN.
+ - For spatial temporal detection, we implement SlowOnly, SlowFast.
+
- **Well... |
hpcaitech__ColossalAI-5422 | [BUG]: ColossalEval/AGIEvalDataset loader causing IndexError when few shot is disabled
### 🐛 Describe the bug
## Describe the bug
AGIEvalDataset loader in ColossalEval incorrectly set `few_shot_data` to `[]` when `few_shot` is disabled, causing IndexError at https://github.com/hpcaitech/ColossalAI/blob/main/applic... | [
{
"content": "# Adapted from https://github.com/ruixiangcui/AGIEval/blob/main/src/dataset_loader.py.\n\nimport ast\nimport glob\nimport os\nfrom copy import deepcopy\nfrom typing import Dict, List\n\nimport pandas as pd\nfrom colossal_eval.utils import get_json_list\n\nfrom colossalai.logging import Distributed... | [
{
"content": "# Adapted from https://github.com/ruixiangcui/AGIEval/blob/main/src/dataset_loader.py.\n\nimport ast\nimport glob\nimport os\nfrom copy import deepcopy\nfrom typing import Dict, List\n\nimport pandas as pd\nfrom colossal_eval.utils import get_json_list\n\nfrom colossalai.logging import Distributed... | diff --git a/applications/ColossalEval/colossal_eval/dataset/agieval.py b/applications/ColossalEval/colossal_eval/dataset/agieval.py
index d018a2ba5652..32f8544e93df 100644
--- a/applications/ColossalEval/colossal_eval/dataset/agieval.py
+++ b/applications/ColossalEval/colossal_eval/dataset/agieval.py
@@ -201,7 +201,7 ... |
open-telemetry__opentelemetry-python-2762 | AttributeError: 'NonRecordingSpan' object has no attribute 'parent'
[Environment]
------------------------------------------
python==3.7.1
opentelemetry-api==1.7.1
opentelemetry-exporter-jaeger==1.7.1
opentelemetry-propagator-jaeger==1.7.1
opentelemetry-sdk==1.7.1
OTEL_TRACES_SAMPLER=traceidratio
OTEL_TRACES_... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | [
{
"content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index cfc30d5886a..6f387f22f9b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -37,6 +37,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
([#2705](https://github.com/open-telemetry/opentelemetry-python/pull/2705))
- Add entrypoint for met... |
dotkom__onlineweb4-653 | When "venteliste" is enabled you can attend an event before registration opens
Can currently be testet on moonshine using this event: http://moonshine.online.ntnu.no/events/4/test/
| [
{
"content": "#-*- coding: utf-8 -*-\n\nfrom datetime import datetime, timedelta\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.core.urlresolvers import reverse\nfrom django.db import models\nfrom django.template.defaultfilters import slugify\nfrom django.utils im... | [
{
"content": "#-*- coding: utf-8 -*-\n\nfrom datetime import datetime, timedelta\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.core.urlresolvers import reverse\nfrom django.db import models\nfrom django.template.defaultfilters import slugify\nfrom django.utils im... | diff --git a/apps/events/models.py b/apps/events/models.py
index feee62c48..89a1a7a6a 100644
--- a/apps/events/models.py
+++ b/apps/events/models.py
@@ -118,6 +118,11 @@ def is_eligible_for_signup(self, user):
response['message'] = _(u'Påmeldingen er ikke lenger åpen.')
response['status_code']... |
boto__boto-3153 | S3 generate signed downloading url is not using response headers
I'm trying to generate a download url for an S3 file/key and want to change the filename when the downloaded file is saved locally (using the Content-Disposition header).
``` python
disposition = "attachment; filename=\"{}\"".format(file_name)
response_h... | [
{
"content": "# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.\n# Copyright (c) 2010, Eucalyptus Systems, Inc.\n# All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and a... | [
{
"content": "# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.\n# Copyright (c) 2010, Eucalyptus Systems, Inc.\n# All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and a... | diff --git a/boto/s3/connection.py b/boto/s3/connection.py
index 0fcc1f5957..39e2f2d7f7 100644
--- a/boto/s3/connection.py
+++ b/boto/s3/connection.py
@@ -366,6 +366,9 @@ def generate_url_sigv4(self, expires_in, method, bucket='', key='',
if version_id is not None:
params['VersionId'] = version_id... |
gratipay__gratipay.com-3047 | Cannot close (delete) my account
I works for a while but then I see an "Application Error" page from Heroku. Ostensibly the operation takes too long and Heroku kills the request.
Cannot close (delete) my account
I works for a while but then I see an "Application Error" page from Heroku. Ostensibly the operation takes ... | [
{
"content": "\"\"\"Teams on Gratipay are plural participants with members.\n\"\"\"\nfrom collections import OrderedDict\nfrom decimal import Decimal\n\nfrom aspen.utils import typecheck\n\n\nclass MemberLimitReached(Exception): pass\n\nclass StubParticipantAdded(Exception): pass\n\nclass MixinTeam(object):\n ... | [
{
"content": "\"\"\"Teams on Gratipay are plural participants with members.\n\"\"\"\nfrom collections import OrderedDict\nfrom decimal import Decimal\n\nfrom aspen.utils import typecheck\n\n\nclass MemberLimitReached(Exception): pass\n\nclass StubParticipantAdded(Exception): pass\n\nclass MixinTeam(object):\n ... | diff --git a/gratipay/models/_mixin_team.py b/gratipay/models/_mixin_team.py
index 45851c5997..1bd0e40b93 100644
--- a/gratipay/models/_mixin_team.py
+++ b/gratipay/models/_mixin_team.py
@@ -172,7 +172,7 @@ def update_taking(self, old_takes, new_takes, cursor=None, member=None):
new = new_takes.get(usernam... |
ansible__ansible-modules-extras-1303 | FirewallD Module Fails with backtrace when firewalld cannot be contacted
**Issue Type:** Bug Report
**Ansible Version**:
```
ansible 2.0.0 (devel 6b419db9fa) last updated 2015/10/21 13:15:31 (GMT +200)
lib/ansible/modules/core: (detached HEAD dc51e1ae41) last updated 2015/10/21 13:15:36 (GMT +200)
lib/ansible/mod... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Adam Miller (maxamillion@fedoraproject.org)\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwar... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2013, Adam Miller (maxamillion@fedoraproject.org)\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softwar... | diff --git a/system/firewalld.py b/system/firewalld.py
index 4a2e7644bf1..49c4ad5f99a 100644
--- a/system/firewalld.py
+++ b/system/firewalld.py
@@ -282,14 +282,6 @@ def main():
immediate = module.params['immediate']
timeout = module.params['timeout']
- ## Check for firewalld running
- try:
- i... |
googleapis__google-auth-library-python-1413 | utcnow is deprecated in python 3.12
#### Environment details
- OS: Linux
- Python version: 3.12.0
- pip version: 23.2.1
- `google-auth` version: 2.9.1
#### Issue
Here is the related code
https://github.com/googleapis/google-auth-library-python/blob/d2ab3afdb567850121fec7de1d86fb5fb0fa80ed/google/... | [
{
"content": "# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | [
{
"content": "# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applica... | diff --git a/google/auth/_helpers.py b/google/auth/_helpers.py
index f321bc834..e7e5d97cf 100644
--- a/google/auth/_helpers.py
+++ b/google/auth/_helpers.py
@@ -92,7 +92,14 @@ def utcnow():
Returns:
datetime: The current time in UTC.
"""
- return datetime.datetime.utcnow()
+ # We used datetime.... |
bridgecrewio__checkov-3600 | Guidelines not displayed when check fails
I am crafting some custom rules and am unable to get the guidelines section to print out when the rule fails.
When I run the out-of-the box rules, guidelines prints. How do I get my custom rules to generate the guideline so that my users can access url?
```
metadata:
... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Dict, Any, List, Optional, Type, TYPE_CHECKING\n\nfrom checkov.common.checks_infra.solvers import (\n EqualsAttributeSolver,\n NotEqualsAttributeSolver,\n RegexMatchAttributeSolver,\n NotRegexMatchAttributeSolver,\n ExistsAttr... | [
{
"content": "from __future__ import annotations\n\nfrom typing import Dict, Any, List, Optional, Type, TYPE_CHECKING\n\nfrom checkov.common.checks_infra.solvers import (\n EqualsAttributeSolver,\n NotEqualsAttributeSolver,\n RegexMatchAttributeSolver,\n NotRegexMatchAttributeSolver,\n ExistsAttr... | diff --git a/checkov/common/checks_infra/checks_parser.py b/checkov/common/checks_infra/checks_parser.py
index 7327d43a68..0dca7ddaf8 100644
--- a/checkov/common/checks_infra/checks_parser.py
+++ b/checkov/common/checks_infra/checks_parser.py
@@ -134,6 +134,7 @@ def parse_raw_check(self, raw_check: Dict[str, Dict[str, ... |
mne-tools__mne-bids-1028 | complete `.zenodo.json` metadata
Our `.zenodo.json` file controls which contributors get listed in the [Zenodo code archive](https://zenodo.org/record/6359371):
https://github.com/mne-tools/mne-bids/blob/13d2b975393f5ba55f4b3a7a8bee4a164c08fa1a/.zenodo.json#L1-L4
I feel like adding the contributors that are curre... | [
{
"content": "\"\"\"Setup MNE-BIDS.\"\"\"\nimport sys\n\nfrom setuptools import setup\n\n# Give setuptools a hint to complain if it's too old a version\nSETUP_REQUIRES = [\"setuptools >= 46.4.0\"]\n# This enables setuptools to install wheel on-the-fly\nSETUP_REQUIRES += [\"wheel\"] if \"bdist_wheel\" in sys.arg... | [
{
"content": "\"\"\"Setup MNE-BIDS.\"\"\"\nimport os\nimport sys\n\nfrom setuptools import setup\n\n# Give setuptools a hint to complain if it's too old a version\nSETUP_REQUIRES = [\"setuptools >= 46.4.0\"]\n# This enables setuptools to install wheel on-the-fly\nSETUP_REQUIRES += [\"wheel\"] if \"bdist_wheel\"... | diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index ce19eafb1..8cea0f744 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,19 +1,24 @@
-Thanks for contributing. If this is your first time,
-make sure to read [contributing.md](https://github.com... |
google__jax-13884 | pip install failed and got UnicodeDecodeError for jax>=0.3.15 on Windows, Python 3.9.13
### Description
I got `UnicodeDecodeError` when running pip install for jax `0.3.15` on Windows 10:
```cmd
PS C:\tensorflow> pip install --no-cache-dir jax==0.3.15
Collecting jax==0.3.15
Downloading jax-0.3.15.tar.gz (1.0 MB)... | [
{
"content": "# Copyright 2018 The JAX Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | [
{
"content": "# Copyright 2018 The JAX Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | diff --git a/setup.py b/setup.py
index c3f40cf29b1d..a84527b9bddb 100644
--- a/setup.py
+++ b/setup.py
@@ -29,12 +29,12 @@
_libtpu_version = '0.1.dev20221212'
_dct = {}
-with open('jax/version.py') as f:
+with open('jax/version.py', encoding='utf-8') as f:
exec(f.read(), _dct)
__version__ = _dct['__version__']
... |
keras-team__keras-11147 | Sync naming convention and style in NLP datasets
Also fixes a possible bug with np.load()/f.close() pair not being exception-safe.
| [
{
"content": "\"\"\"Boston housing price regression dataset.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nfrom ..utils.data_utils import get_file\nimport numpy as np\n\n\ndef load_data(path='boston_housing.npz', test_split=0.2, seed=1... | [
{
"content": "\"\"\"Boston housing price regression dataset.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nfrom ..utils.data_utils import get_file\nimport numpy as np\n\n\ndef load_data(path='boston_housing.npz', test_split=0.2, seed=1... | diff --git a/keras/datasets/boston_housing.py b/keras/datasets/boston_housing.py
index e7d23810d26f..2b17482d326c 100644
--- a/keras/datasets/boston_housing.py
+++ b/keras/datasets/boston_housing.py
@@ -25,10 +25,9 @@ def load_data(path='boston_housing.npz', test_split=0.2, seed=113):
path = get_file(path,
... |
ourownstory__neural_prophet-1300 | Unclear error when doing auto-regression with too small dataset
### Discussed in https://github.com/ourownstory/neural_prophet/discussions/1257
<div type='discussions-op-text'>
<sup>Originally posted by **pzaika** April 11, 2023</sup>
When using auto-regression with a dataset that is smaller than the requested n... | [
{
"content": "import logging\nfrom typing import List, Optional\n\nimport numpy as np\nimport pandas as pd\n\nfrom neuralprophet import df_utils, time_dataset\nfrom neuralprophet.configure import (\n ConfigCountryHolidays,\n ConfigEvents,\n ConfigFutureRegressors,\n ConfigLaggedRegressors,\n Conf... | [
{
"content": "import logging\nfrom typing import List, Optional\n\nimport numpy as np\nimport pandas as pd\n\nfrom neuralprophet import df_utils, time_dataset\nfrom neuralprophet.configure import (\n ConfigCountryHolidays,\n ConfigEvents,\n ConfigFutureRegressors,\n ConfigLaggedRegressors,\n Conf... | diff --git a/neuralprophet/data/process.py b/neuralprophet/data/process.py
index 2d5a53d11..d1607c74f 100644
--- a/neuralprophet/data/process.py
+++ b/neuralprophet/data/process.py
@@ -397,6 +397,11 @@ def _check_dataframe(
pd.DataFrame
checked dataframe
"""
+ if len(df) < (model.n_forecas... |
arviz-devs__arviz-1370 | InferenceData conversion does not work with multivariate observation that contains missing value
**To Reproduce**
```python
import numpy as np
import pymc3 as pm
data = np.ma.masked_values([[1, 2], [-1, 4], [2, -1], [-1, -1]], value=-1)
with pm.Model():
mu = pm.Normal('mu', 0, 1, shape=2)
sd_dist = p... | [
{
"content": "\"\"\"PyMC3-specific conversion code.\"\"\"\nimport logging\nimport warnings\nfrom types import ModuleType\nfrom typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Tuple, Union\n\nimport numpy as np\nimport xarray as xr\n\nfrom .. import utils\nfrom ..rcparams import rcParams\nfrom ... | [
{
"content": "\"\"\"PyMC3-specific conversion code.\"\"\"\nimport logging\nimport warnings\nfrom types import ModuleType\nfrom typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Tuple, Union\n\nimport numpy as np\nimport xarray as xr\n\nfrom .. import utils\nfrom ..rcparams import rcParams\nfrom ... | diff --git a/arviz/data/io_pymc3.py b/arviz/data/io_pymc3.py
index 147c6f9db9..616fc0d85d 100644
--- a/arviz/data/io_pymc3.py
+++ b/arviz/data/io_pymc3.py
@@ -198,7 +198,10 @@ def log_likelihood_vals_point(self, point, var, log_like_fun):
"""Compute log likelihood for each observed point."""
log_like_... |
litestar-org__litestar-3280 | Bug: default not generated for query parameter in openapi spec.
### Description
Hi,
The default of a query parameter is not properly generated when creating the openapi specification. See MVCE down below.
The generated specification looks like this:
```json
...
"paths": {
"/query_default": {
"... | [
{
"content": "from __future__ import annotations\n\nfrom collections import deque\nfrom copy import copy\nfrom datetime import date, datetime, time, timedelta\nfrom decimal import Decimal\nfrom enum import Enum, EnumMeta\nfrom ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6Address, IPv6Interface,... | [
{
"content": "from __future__ import annotations\n\nfrom collections import deque\nfrom copy import copy\nfrom datetime import date, datetime, time, timedelta\nfrom decimal import Decimal\nfrom enum import Enum, EnumMeta\nfrom ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6Address, IPv6Interface,... | diff --git a/litestar/_openapi/schema_generation/schema.py b/litestar/_openapi/schema_generation/schema.py
index 0b7d6c6fbf..cfdad8d52c 100644
--- a/litestar/_openapi/schema_generation/schema.py
+++ b/litestar/_openapi/schema_generation/schema.py
@@ -569,6 +569,9 @@ def process_schema_result(self, field: FieldDefinitio... |
scverse__scanpy-1691 | importlib_metadata >= 2.0 breaks scanpy.logging.print_versions()
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of scanpy.
- [x] (optional) I have confirmed this bug exists on the master branch of scanpy.
---
When scanpy gets inst... | [
{
"content": "\"\"\"Logging and Profiling\n\"\"\"\nimport io\nimport logging\nimport sys\nfrom functools import update_wrapper, partial\nfrom logging import CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET\nfrom datetime import datetime, timedelta, timezone\nfrom typing import Optional\n\nimport anndata.logging\nf... | [
{
"content": "\"\"\"Logging and Profiling\n\"\"\"\nimport io\nimport logging\nimport sys\nfrom functools import update_wrapper, partial\nfrom logging import CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET\nfrom datetime import datetime, timedelta, timezone\nfrom typing import Optional\n\nimport anndata.logging\nf... | diff --git a/docs/release-notes/1.7.2.rst b/docs/release-notes/1.7.2.rst
new file mode 100644
index 0000000000..077dc20927
--- /dev/null
+++ b/docs/release-notes/1.7.2.rst
@@ -0,0 +1,12 @@
+1.7.2 :small:`the future`
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. rubric:: Performance enhancements
+
+.. rubric:: Bug fixes
+
+- :func:`... |
RocketMap__RocketMap-900 | Expired lured pokestops are shown forever
<!--
FOR FEATURE REQUESTS GO TO:
http://feathub.com/PokemonGoMap/PokemonGo-Map/
ISSUES ARE NOT FOR SUPPORT!!!
ISSUES ARE NOT FOR SUPPORT!!!
ISSUES ARE NOT FOR SUPPORT!!!
ISSUES ARE NOT FOR SUPPORT!!!
ISSUES ARE NOT FOR SUPPORT!!!
ISSUES ARE NOT FOR SUPP... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\nimport logging\nimport calendar\nimport sys\nimport time\nimport math\nfrom peewee import SqliteDatabase, InsertQuery, \\\n IntegerField, CharField, DoubleField, BooleanField, \\\n DateTimeField, CompositeKey, fn\nfrom playhouse.flask_utils import ... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\nimport logging\nimport calendar\nimport sys\nimport time\nimport math\nfrom peewee import SqliteDatabase, InsertQuery, \\\n IntegerField, CharField, DoubleField, BooleanField, \\\n DateTimeField, CompositeKey, fn\nfrom playhouse.flask_utils import ... | diff --git a/pogom/models.py b/pogom/models.py
index 8c13bc7c91..725698eac0 100755
--- a/pogom/models.py
+++ b/pogom/models.py
@@ -554,6 +554,12 @@ def clean_db_loop(args):
(datetime.utcnow() - timedelta(minutes=30)))))
query.execute()
+ # Remove active modifier fr... |
ansible__ansible-lint-425 | include_tasks are skipped
# Issue Type
- Bug report
# Ansible and Ansible Lint details
```
ansible 2.6.3
config file = None
configured module search path = [u'/Users/PAvon1000248194/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/PAvon1000248194... | [
{
"content": "# Copyright (c) 2013-2014 Will Thames <will@thames.id.au>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the r... | [
{
"content": "# Copyright (c) 2013-2014 Will Thames <will@thames.id.au>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the r... | diff --git a/lib/ansiblelint/utils.py b/lib/ansiblelint/utils.py
index 0422bbbf87..5386f61d0b 100644
--- a/lib/ansiblelint/utils.py
+++ b/lib/ansiblelint/utils.py
@@ -85,7 +85,7 @@ def ansible_template(basedir, varname, templatevars, **kwargs):
VALID_KEYS = [
'name', 'action', 'when', 'async', 'poll', 'notify',... |
pretix__pretix-3992 | Customer's phoner number is not available in API
### Problem and impact
Unable to pull customer's phone number from API
### Expected behaviour
`GET /api/v1/organizers/(organizer)/customers/` returns phone
### Steps to reproduce
1. Get customer with phone in system
2. Validate that phone is visible in UI
3. Make ... | [
{
"content": "#\n# This file is part of pretix (Community Edition).\n#\n# Copyright (C) 2014-2020 Raphael Michel and contributors\n# Copyright (C) 2020-2021 rami.io GmbH and contributors\n#\n# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General\n# Pu... | [
{
"content": "#\n# This file is part of pretix (Community Edition).\n#\n# Copyright (C) 2014-2020 Raphael Michel and contributors\n# Copyright (C) 2020-2021 rami.io GmbH and contributors\n#\n# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General\n# Pu... | diff --git a/doc/api/resources/customers.rst b/doc/api/resources/customers.rst
index 251a06c8aa5..06f4ebd1689 100644
--- a/doc/api/resources/customers.rst
+++ b/doc/api/resources/customers.rst
@@ -19,6 +19,7 @@ external_identifier string External ID of
... |
python-pillow__Pillow-5667 | Specific ICO file being shifted vertically
### What did you do?
Downloaded this ICO file and used PIL to resave as a PNG: https://lauren.vortex.com/favicon.ico
### What did you expect to happen?
PNG result should look the same as the icon does in the browser (and other applications) - an L with a black square ... | [
{
"content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# Windows Icon support for PIL\n#\n# History:\n# 96-05-27 fl Created\n#\n# Copyright (c) Secret Labs AB 1997.\n# Copyright (c) Fredrik Lundh 1996.\n#\n# See the README file for information on usage and redistribution.\n#\n\n# This plugin is a ... | [
{
"content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# Windows Icon support for PIL\n#\n# History:\n# 96-05-27 fl Created\n#\n# Copyright (c) Secret Labs AB 1997.\n# Copyright (c) Fredrik Lundh 1996.\n#\n# See the README file for information on usage and redistribution.\n#\n\n# This plugin is a ... | diff --git a/Tests/images/hopper_mask.ico b/Tests/images/hopper_mask.ico
new file mode 100644
index 00000000000..e8d66c689fd
Binary files /dev/null and b/Tests/images/hopper_mask.ico differ
diff --git a/Tests/images/hopper_mask.png b/Tests/images/hopper_mask.png
new file mode 100644
index 00000000000..c7bd2f70842
Binar... |
python-pillow__Pillow-6219 | BUG: n_frames is incorrect
<!--
Thank you for reporting an issue.
Follow these guidelines to ensure your issue is handled properly.
If you have a ...
1. General question: consider asking the question on Stack Overflow
with the python-imaging-library tag:
* https://stackoverflow.com/questions/tagg... | [
{
"content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# GIF file handling\n#\n# History:\n# 1995-09-01 fl Created\n# 1996-12-14 fl Added interlace support\n# 1996-12-30 fl Added animation support\n# 1997-01-05 fl Added write support, fixed local colour map bug\n# 1997-02-23 fl Make sure to load r... | [
{
"content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# GIF file handling\n#\n# History:\n# 1995-09-01 fl Created\n# 1996-12-14 fl Added interlace support\n# 1996-12-30 fl Added animation support\n# 1997-01-05 fl Added write support, fixed local colour map bug\n# 1997-02-23 fl Make sure to load r... | diff --git a/Tests/images/comment_after_last_frame.gif b/Tests/images/comment_after_last_frame.gif
new file mode 100644
index 00000000000..9f5c7b8da47
Binary files /dev/null and b/Tests/images/comment_after_last_frame.gif differ
diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py
index dffd1006f2f..d177520e2cb... |
graspologic-org__graspologic-658 | [BUG] Seedless Procrustes reference 1 is just a TODO in the docs
see here: https://github.com/microsoft/graspologic/blob/dev/graspologic/align/seedless_procrustes.py#L108
| [
{
"content": "# Copyright (c) Microsoft Corporation and contributors.\n# Licensed under the MIT License.\n\nimport ot\nimport numpy as np\nfrom sklearn.utils import check_array\n\nfrom .base import BaseAlign\nfrom .sign_flips import SignFlips\nfrom .orthogonal_procrustes import OrthogonalProcrustes\n\n\nclass S... | [
{
"content": "# Copyright (c) Microsoft Corporation and contributors.\n# Licensed under the MIT License.\n\nimport ot\nimport numpy as np\nfrom sklearn.utils import check_array\n\nfrom .base import BaseAlign\nfrom .sign_flips import SignFlips\nfrom .orthogonal_procrustes import OrthogonalProcrustes\n\n\nclass S... | diff --git a/graspologic/align/seedless_procrustes.py b/graspologic/align/seedless_procrustes.py
index f7a8d6651..7cff0b9cc 100644
--- a/graspologic/align/seedless_procrustes.py
+++ b/graspologic/align/seedless_procrustes.py
@@ -104,8 +104,10 @@ class SeedlessProcrustes(BaseAlign):
References
----------
- ... |
mozilla__bugbug-470 | Add "presence of image" in attachments as a feature
When users file a bug uploading an image, it's very likely they want to show that there is something wrong with Firefox.
So, the presence of an image between the attachments can be an indication of the bug being a defect.
| [
{
"content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport re\nfrom collections import defaultdict\nfrom datetime import ... | [
{
"content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport re\nfrom collections import defaultdict\nfrom datetime import ... | diff --git a/bugbug/bug_features.py b/bugbug/bug_features.py
index 7e950742ec..b50c73aad6 100644
--- a/bugbug/bug_features.py
+++ b/bugbug/bug_features.py
@@ -258,6 +258,22 @@ def __call__(self, bug, **kwargs):
)
+class has_image_attachment_at_bug_creation(object):
+ def __call__(self, bug, **kwargs):
+... |
pyca__cryptography-3335 | Add Python 3.6 support
| [
{
"content": "#!/usr/bin/env python\n\n# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport pl... | [
{
"content": "#!/usr/bin/env python\n\n# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport pl... | diff --git a/.travis.yml b/.travis.yml
index 0cd7461064cd..92e7e5b07665 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,6 +19,8 @@ matrix:
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
+ - python: 3.6
+ env: TOXENV=py36
- python: pypy
env: TOXENV=py... |
aws__serverless-application-model-610 | Rendering on PyPI is broken
**Description:**
Rendering of the README on PyPI is broken because it expects RST by default and Markdown is being uploaded.
**Steps to reproduce the issue:**
1. Go to https://pypi.org/project/aws-sam-translator/
**Observed result:**
Raw markdown
**Expected result:**
Links... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# setup.py\n#\n# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License a... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# setup.py\n#\n# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License a... | diff --git a/setup.py b/setup.py
index 7b8535bc6..5928475c5 100755
--- a/setup.py
+++ b/setup.py
@@ -54,6 +54,7 @@ def read_requirements(req='base.txt'):
version=read_version(),
description='AWS SAM Translator is a library that transform SAM templates into AWS CloudFormation templates',
long_description=... |
pyca__cryptography-5013 | Test and build wheels on 3.8
| [
{
"content": "#!/usr/bin/env python\n\n# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport pl... | [
{
"content": "#!/usr/bin/env python\n\n# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport pl... | diff --git a/.azure-pipelines/wheel-builder.yml b/.azure-pipelines/wheel-builder.yml
index b3ec8ee0d181..a93ec836971d 100644
--- a/.azure-pipelines/wheel-builder.yml
+++ b/.azure-pipelines/wheel-builder.yml
@@ -204,6 +204,16 @@ jobs:
PYTHON_VERSION: '37'
OPENSSL_DIR: 'OpenSSL-Win64... |
carpentries__amy-1555 | Event form: improper validation of curricula and selected tags
`EventForm.clean_curricula` does try to validate selected curricula (corresponding tags must exist), but doesn't work with Mix & Match curriculum.
| [
{
"content": "from datetime import datetime, timezone\nimport re\n\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Layout, Div, HTML, Submit, Button, Field\nfrom django import forms\nfrom django.contrib.auth.models import Permission\nfrom django.contrib.sites.models import Site\nfro... | [
{
"content": "from datetime import datetime, timezone\nimport re\n\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Layout, Div, HTML, Submit, Button, Field\nfrom django import forms\nfrom django.contrib.auth.models import Permission\nfrom django.contrib.sites.models import Site\nfro... | diff --git a/amy/workshops/forms.py b/amy/workshops/forms.py
index fecc11791..f389cf8ee 100644
--- a/amy/workshops/forms.py
+++ b/amy/workshops/forms.py
@@ -557,10 +557,12 @@ def clean_curricula(self):
tags = self.cleaned_data['tags']
try:
- expected_tags = [
- c.slug.split... |
pyro-ppl__pyro-2367 | [bug] pyro.distributions.InverseGamma.sample does not work on GPU
### Issue Description
`pyro.distributions.InverseGamma.sample` fails with the following error when its arguments are on the GPU:
```
RuntimeError: iter.device(arg).is_cuda() INTERNAL ASSERT FAILED at /pytorch/aten/src/ATen/native/cuda/Loops.cuh:197, p... | [
{
"content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom torch.distributions import constraints\nfrom torch.distributions.transforms import PowerTransform\nfrom pyro.distributions.torch import Gamma, TransformedDistribution\n\n\nclass InverseGamma(Transforme... | [
{
"content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom torch.distributions import constraints\nfrom torch.distributions.transforms import PowerTransform\nfrom pyro.distributions.torch import Gamma, TransformedDistribution\n\n\nclass InverseGamma(Transforme... | diff --git a/pyro/distributions/inverse_gamma.py b/pyro/distributions/inverse_gamma.py
index 5e86124420..115b0cf5d5 100644
--- a/pyro/distributions/inverse_gamma.py
+++ b/pyro/distributions/inverse_gamma.py
@@ -23,7 +23,8 @@ class InverseGamma(TransformedDistribution):
def __init__(self, concentration, rate, val... |
spesmilo__electrum-2164 | HTTPS cert expired on LabelSync server
The cert on https://sync.bytesized-hosting.com:9090/ has expired and the LabelSync plugin stopped working
| [
{
"content": "import hashlib\nimport requests\nimport threading\nimport json\nimport sys\nimport traceback\n\nimport aes\nimport base64\n\nimport electrum\nfrom electrum.plugins import BasePlugin, hook\nfrom electrum.i18n import _\n\n\n\n\nclass LabelsPlugin(BasePlugin):\n\n def __init__(self, parent, config... | [
{
"content": "import hashlib\nimport requests\nimport threading\nimport json\nimport sys\nimport traceback\n\nimport base64\n\nimport electrum\nfrom electrum.plugins import BasePlugin, hook\nfrom electrum.i18n import _\n\n\n\n\nclass LabelsPlugin(BasePlugin):\n\n def __init__(self, parent, config, name):\n ... | diff --git a/plugins/labels/labels.py b/plugins/labels/labels.py
index 8f968ad210fe..eaa089e4246c 100644
--- a/plugins/labels/labels.py
+++ b/plugins/labels/labels.py
@@ -5,7 +5,6 @@
import sys
import traceback
-import aes
import base64
import electrum
@@ -19,7 +18,7 @@ class LabelsPlugin(BasePlugin):
de... |
pypa__pip-5559 | Missing PATH environment causes pip to put things into an inconsistent state when upgrading a package
**Environment**
* pip version: 10.0.1
* Python version: 2.7.12
* OS: Ubuntu 16.0.4
<!-- Feel free to add more information about your environment here -->
**Description**
<!-- A clear and concise description... | [
{
"content": "\"\"\"\nSupport for installing and building the \"wheel\" binary package format.\n\"\"\"\nfrom __future__ import absolute_import\n\nimport collections\nimport compileall\nimport csv\nimport hashlib\nimport logging\nimport os.path\nimport re\nimport shutil\nimport stat\nimport sys\nimport warnings\... | [
{
"content": "\"\"\"\nSupport for installing and building the \"wheel\" binary package format.\n\"\"\"\nfrom __future__ import absolute_import\n\nimport collections\nimport compileall\nimport csv\nimport hashlib\nimport logging\nimport os.path\nimport re\nimport shutil\nimport stat\nimport sys\nimport warnings\... | diff --git a/news/5558.bugfix b/news/5558.bugfix
new file mode 100644
index 00000000000..0407d57425e
--- /dev/null
+++ b/news/5558.bugfix
@@ -0,0 +1 @@
+Fix a crash that occurs when PATH not set, while generating script location warning.
diff --git a/src/pip/_internal/wheel.py b/src/pip/_internal/wheel.py
index 7ad7a1b... |
biolab__orange3-1812 | Scatter Plot no longer allows labelling by strings
##### Orange version
3.3.9
##### Expected behavior
Scatter Plot offers string attributes in Label dropdown.
##### Actual behavior
Cannot label by string attributes (discrete and continuous metas work).
##### Steps to reproduce the behavior
File (zoo.tab) -... | [
{
"content": "import numpy as np\n\nfrom AnyQt.QtCore import QSize, Qt, QTimer\nfrom AnyQt.QtGui import (\n QPen, QFont, QFontInfo, QPalette, QKeySequence,\n)\nfrom AnyQt.QtWidgets import QApplication, QAction\n\nfrom sklearn.neighbors import NearestNeighbors\nfrom sklearn.metrics import r2_score\n\nimport O... | [
{
"content": "import numpy as np\n\nfrom AnyQt.QtCore import QSize, Qt, QTimer\nfrom AnyQt.QtGui import (\n QPen, QFont, QFontInfo, QPalette, QKeySequence,\n)\nfrom AnyQt.QtWidgets import QApplication, QAction\n\nfrom sklearn.neighbors import NearestNeighbors\nfrom sklearn.metrics import r2_score\n\nimport O... | diff --git a/Orange/widgets/visualize/owscatterplot.py b/Orange/widgets/visualize/owscatterplot.py
index a8347f99c98..21007ce64c4 100644
--- a/Orange/widgets/visualize/owscatterplot.py
+++ b/Orange/widgets/visualize/owscatterplot.py
@@ -198,7 +198,7 @@ def __init__(self):
callback=self.update_colors,
... |
xonsh__xonsh-4812 | AttributeError: 'NoneType' object has no attribute 'flush'
## xonfig
<details>
```
+------------------+----------------------+
| xonsh | 0.12.4 |
| Git SHA | c3fc7edb |
| Commit Date | May 8 17:26:23 2022 |
| Python | 3.10.4 |
| PLY... | [
{
"content": "\"\"\"The base class for xonsh shell\"\"\"\nimport io\nimport os\nimport sys\nimport time\n\nfrom xonsh.ansi_colors import ansi_partial_color_format\nfrom xonsh.built_ins import XSH\nfrom xonsh.codecache import (\n code_cache_check,\n code_cache_name,\n get_cache_filename,\n run_compil... | [
{
"content": "\"\"\"The base class for xonsh shell\"\"\"\nimport io\nimport os\nimport sys\nimport time\n\nfrom xonsh.ansi_colors import ansi_partial_color_format\nfrom xonsh.built_ins import XSH\nfrom xonsh.codecache import (\n code_cache_check,\n code_cache_name,\n get_cache_filename,\n run_compil... | diff --git a/news/fix_exit_error.rst b/news/fix_exit_error.rst
new file mode 100644
index 0000000000..bab16ccbb9
--- /dev/null
+++ b/news/fix_exit_error.rst
@@ -0,0 +1,23 @@
+**Added:**
+
+* <news item>
+
+**Changed:**
+
+* <news item>
+
+**Deprecated:**
+
+* <news item>
+
+**Removed:**
+
+* <news item>
+
+**Fixed:**
+... |
paperless-ngx__paperless-ngx-1670 | [BUG] 1.9.1 OCR output mode "none" is not valid
### Description
Very similar to #1643
Updating via portainer, and with the following ENV:
PAPERLESS_OCR_CLEAN=none
the startup of the web server goes into a loop (see logs below).
### Steps to reproduce
1. Set PAPERLESS_OCR_CLEAN=none (from 1.8.0 install)... | [
{
"content": "import grp\nimport os\nimport pwd\nimport shutil\nimport stat\n\nfrom django.conf import settings\nfrom django.core.checks import Error\nfrom django.core.checks import register\nfrom django.core.checks import Warning\n\nexists_message = \"{} is set but doesn't exist.\"\nexists_hint = \"Create a di... | [
{
"content": "import grp\nimport os\nimport pwd\nimport shutil\nimport stat\n\nfrom django.conf import settings\nfrom django.core.checks import Error\nfrom django.core.checks import register\nfrom django.core.checks import Warning\n\nexists_message = \"{} is set but doesn't exist.\"\nexists_hint = \"Create a di... | diff --git a/src/paperless/checks.py b/src/paperless/checks.py
index e5ab442ab69..845ff2d0bad 100644
--- a/src/paperless/checks.py
+++ b/src/paperless/checks.py
@@ -130,7 +130,7 @@ def _ocrmypdf_settings_check():
if settings.OCR_MODE not in {"force", "skip", "redo", "skip_noarchive"}:
msgs.append(... |
scikit-hep__pyhf-182 | Add pyhf talks section to README
Now that [Lukas has given the first talk on pyhf](https://indico.cern.ch/event/702612/contributions/2958658/) :+1: it might be nice to have a "Talks and Presentations" section towards the bottom of the README where we link to this and future talks.
Example:
[
## Presentations on p... | [
{
"content": "from setuptools import setup, find_packages\nsetup(\n name = 'pyhf',\n version = '0.0.8',\n description = '(partial) pure python histfactory implementation',\n url = '',\n author = 'Lukas Heinrich',\n author_email = 'lukas.heinrich@cern.ch',\n packages = find_packages(),\n include_package_... | [
{
"content": "from setuptools import setup, find_packages\nsetup(\n name = 'pyhf',\n version = '0.0.8',\n description = '(partial) pure python histfactory implementation',\n url = '',\n author = 'Lukas Heinrich',\n author_email = 'lukas.heinrich@cern.ch',\n packages = find_packages(),\n include_package_... | diff --git a/docs/bib/talks.bib b/docs/bib/talks.bib
new file mode 100644
index 0000000000..3244b0b213
--- /dev/null
+++ b/docs/bib/talks.bib
@@ -0,0 +1,10 @@
+@unpublished{Heinrich20180515,
+ title = {pyhf: A standalone HistFactory Implementation},
+ author = {Lukas Heinrich},
+ year = {2018},
+ month = {May},... |
Pycord-Development__pycord-2048 | Bridge commands doesn't work with unloading or reloading cogs
### Summary
if you make your bot a bridge bot, and try to unload or reload a cog it'll fail
### Reproduction Steps
1. Make a bridge bot
2. Make a cog
3. Unload or reload that (or another) cog
4. Done
### Minimal Reproducible Code
```python
... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r... | [
{
"content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index bbecc9869c..be509cc921 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -93,6 +93,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2029](https://github.com/Pycord-Development/pycord/pull/2029))
- Reflecting the api for gettings ba... |
joke2k__faker-2007 | hu-Hu localization gives back non-capitalized city names
* Faker version: 23.2.1
* OS: Ubuntu 22.04.3 LTS
Faker with hu-HU localization gives back non-capitalized cities, when it has either a city_prefix or city_part used in its format.
### Steps to reproduce
1. `Faker.seed(1234)`
1. `Faker("hu-HU").city()`
... | [
{
"content": "from collections import OrderedDict\n\nfrom .. import Provider as AddressProvider\n\n\nclass Provider(AddressProvider):\n street_suffixes = OrderedDict(\n (\n (\"utca\", 0.75),\n (\"út\", 0.1),\n (\"tér\", 0.1),\n (\"köz\", 0.001),\n ... | [
{
"content": "from collections import OrderedDict\n\nfrom .. import Provider as AddressProvider\n\n\nclass Provider(AddressProvider):\n street_suffixes = OrderedDict(\n (\n (\"utca\", 0.75),\n (\"út\", 0.1),\n (\"tér\", 0.1),\n (\"köz\", 0.001),\n ... | diff --git a/faker/providers/address/hu_HU/__init__.py b/faker/providers/address/hu_HU/__init__.py
index 990f6379b8..54c7150dda 100644
--- a/faker/providers/address/hu_HU/__init__.py
+++ b/faker/providers/address/hu_HU/__init__.py
@@ -467,3 +467,13 @@ def street_name(self) -> str:
def building_number(self) -> str:... |
zestedesavoir__zds-site-6325 | Notification via les tags auxquels on est abonné pour les sujets inaccessibles
**Description du bug**
Un utilisateur abonné à un tag est notifié des nouveaux sujets avec ce tag, même s'il n'a pas accès au forum dans lequel le sujet a été créé.
Signalé [ici](https://zestedesavoir.com/forums/sujet/15948/notificatio... | [
{
"content": "import inspect\nimport logging\n\ntry:\n from functools import wraps\nexcept ImportError:\n from django.utils.functional import wraps\n\nfrom django.contrib.auth.models import User\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.db import DatabaseError\nfrom django.d... | [
{
"content": "import inspect\nimport logging\n\ntry:\n from functools import wraps\nexcept ImportError:\n from django.utils.functional import wraps\n\nfrom django.contrib.auth.models import User\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.db import DatabaseError\nfrom django.d... | diff --git a/zds/notification/receivers.py b/zds/notification/receivers.py
index b357f3ce4a..37b7354cc5 100644
--- a/zds/notification/receivers.py
+++ b/zds/notification/receivers.py
@@ -266,7 +266,7 @@ def _handle_added_tags(tag_content_type, topic):
for subscription in subscriptions:
notificatio... |
scrapy__scrapy-4778 | Documentation example fails with `proxy URL with no authority`
Running the [example](https://doc.scrapy.org/en/1.5/intro/overview.html#walk-through-of-an-example-spider) from the documentation yields this:
```
10:11 $ scrapy runspider quotes.py
2018-07-11 10:12:04 [scrapy.utils.log] INFO: Scrapy 1.5.0 started (bot:... | [
{
"content": "import base64\nfrom urllib.parse import unquote, urlunparse\nfrom urllib.request import getproxies, proxy_bypass, _parse_proxy\n\nfrom scrapy.exceptions import NotConfigured\nfrom scrapy.utils.httpobj import urlparse_cached\nfrom scrapy.utils.python import to_bytes\n\n\nclass HttpProxyMiddleware:\... | [
{
"content": "import base64\nfrom urllib.parse import unquote, urlunparse\nfrom urllib.request import getproxies, proxy_bypass, _parse_proxy\n\nfrom scrapy.exceptions import NotConfigured\nfrom scrapy.utils.httpobj import urlparse_cached\nfrom scrapy.utils.python import to_bytes\n\n\nclass HttpProxyMiddleware:\... | diff --git a/scrapy/downloadermiddlewares/httpproxy.py b/scrapy/downloadermiddlewares/httpproxy.py
index 04da1131162..d2665b655db 100644
--- a/scrapy/downloadermiddlewares/httpproxy.py
+++ b/scrapy/downloadermiddlewares/httpproxy.py
@@ -13,7 +13,12 @@ def __init__(self, auth_encoding='latin-1'):
self.auth_enco... |
getpelican__pelican-1123 | Internal content link doesn't work on video.poster
I'm using pelican 3.3.0, with python 2.7.5.
The [internal content link](http://docs.getpelican.com/en/3.3.0/getting_started.html#linking-to-internal-content) feature is very useful that I don't need to determine where attachment files will be placed after site generat... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals, print_function\nimport six\n\nimport copy\nimport locale\nimport logging\nimport functools\nimport os\nimport re\nimport sys\n\ntry:\n from urlparse import urlparse, urlunparse\nexcept ImportError:\n from urllib.parse import u... | [
{
"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals, print_function\nimport six\n\nimport copy\nimport locale\nimport logging\nimport functools\nimport os\nimport re\nimport sys\n\ntry:\n from urlparse import urlparse, urlunparse\nexcept ImportError:\n from urllib.parse import u... | diff --git a/pelican/contents.py b/pelican/contents.py
index dbc33716b..059c54a70 100644
--- a/pelican/contents.py
+++ b/pelican/contents.py
@@ -189,8 +189,8 @@ def _update_content(self, content, siteurl):
instrasite_link_regex = self.settings['INTRASITE_LINK_REGEX']
regex = r"""
- (?P<ma... |
gammapy__gammapy-2896 | Install fails when Cython is not already installed
**Gammapy version**
Every I tested
**Bug description**
The setup.py hard imports Cython, so setuptools has no chance to install it.
**Expected behavior**
Install cython if needed before attempting to import it
**To Reproduce**
```
$ python -m ve... | [
{
"content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport sys\nimport setuptools\nfrom distutils.version import LooseVersion\n\nif LooseVersion(setuptools.__version__) < \"30.3\":\n sys.stderr.write(\"ERROR: setuptools 30.3 or later is required by gammapy\\n\")\n sys.exit(1)\n\... | [
{
"content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport setuptools\nfrom Cython.Build import cythonize\nfrom distutils.extension import Extension\nimport numpy as np\n\n\ndef make_cython_extension(filename):\n return Extension(\n filename.strip(\".pyx\").replace(\"/\", \"... | diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000000..6593333d11
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,9 @@
+[build-system]
+requires = [
+ "setuptools >= 40.6.0",
+ "wheel",
+ "Cython",
+ 'numpy >= 1.16',
+ 'setuptools_scm[toml]'
+]
+build-backend = "setuptools.build_meta"
diff --... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.