diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/iron_core.py b/iron_core.py
index <HASH>..<HASH> 100644
--- a/iron_core.py
+++ b/iron_core.py
@@ -138,13 +138,7 @@ class IronClient:
else:
headers = self.headers
- headers = dict((k.encode('ascii') if isinstance(k, unicode) else k,
- v.encode('ascii') i... | headers and url were being converted to binary ascii in iron_core.IronClient.request. Removed the encoding step since Session doesn't need them in python2 or 3. | py |
diff --git a/glue_vispy_viewers/scatter/tests/test_scatter_viewer.py b/glue_vispy_viewers/scatter/tests/test_scatter_viewer.py
index <HASH>..<HASH> 100644
--- a/glue_vispy_viewers/scatter/tests/test_scatter_viewer.py
+++ b/glue_vispy_viewers/scatter/tests/test_scatter_viewer.py
@@ -154,6 +154,8 @@ def test_error_bars(t... | Added line width to the vector and error tests | py |
diff --git a/fedmsg_meta_fedora_infrastructure/tests/jenkins.py b/fedmsg_meta_fedora_infrastructure/tests/jenkins.py
index <HASH>..<HASH> 100644
--- a/fedmsg_meta_fedora_infrastructure/tests/jenkins.py
+++ b/fedmsg_meta_fedora_infrastructure/tests/jenkins.py
@@ -21,7 +21,7 @@
import unittest
-from fedmsg.tests.tes... | Fix tests. Thanks @ralphbean! | py |
diff --git a/montblanc/impl/rime/tensorflow/sources/fits_beam_source_provider.py b/montblanc/impl/rime/tensorflow/sources/fits_beam_source_provider.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/rime/tensorflow/sources/fits_beam_source_provider.py
+++ b/montblanc/impl/rime/tensorflow/sources/fits_beam_source_provi... | Use ctype entry when extracting grid header Previously, the entire ctype list was incorrectly used, to create the header string, instead of a single entry. This meant that the irregular grid was never used for evaluating the beam. This has now been corrected and tested against MeqTrees. | py |
diff --git a/airflow/models/dag.py b/airflow/models/dag.py
index <HASH>..<HASH> 100644
--- a/airflow/models/dag.py
+++ b/airflow/models/dag.py
@@ -1453,8 +1453,6 @@ class DAG(BaseDag, LoggingMixin):
# state is None at the moment of creation
run.verify_integrity(session=session)
- run.refresh_... | [AIRFLOW-<I>] Do not check the state of fresh DAGRun (#<I>) | py |
diff --git a/round/wallets.py b/round/wallets.py
index <HASH>..<HASH> 100644
--- a/round/wallets.py
+++ b/round/wallets.py
@@ -81,7 +81,7 @@ class Wallet(Wrapper, Updatable):
wallet.primary_private_seed)
self.multi_wallet = MultiWallet(
- private={u'primary': primary_seed},
+ ... | instantiate multiwallet with seed instead of key | py |
diff --git a/tests/unit_mambuutil.py b/tests/unit_mambuutil.py
index <HASH>..<HASH> 100644
--- a/tests/unit_mambuutil.py
+++ b/tests/unit_mambuutil.py
@@ -255,7 +255,7 @@ class UrlFuncTests(unittest.TestCase):
self.assertEqual(mambuutil.getclienturl(idclient="ABC123", anything="whatever"), self.prefix + "/ap... | Test MambuUtil getclientcustominformationurl wasn't tested. Because the name clashed with getgroupcustominformationurl | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -2499,8 +2499,9 @@ class StaticFileHandler(RequestHandler):
.. versionadded:: 3.1
"""
- if self.check_etag_header():
- return True
+ # If client sent If-None... | Fix erroneous <I> of StaticFileHandler StaticFileHandler would return a <I> despite the client sending a non-matching Etag header when If-Modified-Since matches | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ the development of the library by adding the most recent methodologies
adopted by the seismological/seismic hazard communities. Comments,
suggestions and criticisms from the community are always very welcome.... | setup.py: Updated copyright date | py |
diff --git a/gimmemotifs/scanner.py b/gimmemotifs/scanner.py
index <HASH>..<HASH> 100644
--- a/gimmemotifs/scanner.py
+++ b/gimmemotifs/scanner.py
@@ -539,7 +539,7 @@ class Scanner(object):
if normalize and len(self.meanstd) == 0:
self.set_meanstd()
means = np.array([self.meanstd[m][0... | fixed zscore in best_score | py |
diff --git a/launch_control/commands/dashboard.py b/launch_control/commands/dashboard.py
index <HASH>..<HASH> 100644
--- a/launch_control/commands/dashboard.py
+++ b/launch_control/commands/dashboard.py
@@ -394,7 +394,7 @@ class get(XMLRPCCommand):
filename = self.args.output.name
stream.write(res... | Fix lc-tool.py get command to print the SHA1 and not the (now gone) BUNDLE_ID | py |
diff --git a/goatools/godag/obo_optional_attributes.py b/goatools/godag/obo_optional_attributes.py
index <HASH>..<HASH> 100644
--- a/goatools/godag/obo_optional_attributes.py
+++ b/goatools/godag/obo_optional_attributes.py
@@ -10,7 +10,7 @@ import collections as cx
class OboOptionalAttrs(object):
"""Manage option... | alt_ids expected on a GOTerm | py |
diff --git a/zounds/learn/pytorch_model.py b/zounds/learn/pytorch_model.py
index <HASH>..<HASH> 100644
--- a/zounds/learn/pytorch_model.py
+++ b/zounds/learn/pytorch_model.py
@@ -18,7 +18,7 @@ class PyTorchPreprocessResult(PreprocessResult):
cls = self.op.network.__class__
name = self.name
- ... | Make a copy of op kwargs before deleting the network attribute | py |
diff --git a/wrappers/python/setup.py b/wrappers/python/setup.py
index <HASH>..<HASH> 100644
--- a/wrappers/python/setup.py
+++ b/wrappers/python/setup.py
@@ -12,6 +12,6 @@ setup(
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the official SDK for Hyper... | Remove install dependency of pytest from python wrapper | py |
diff --git a/custodian/vasp/jobs.py b/custodian/vasp/jobs.py
index <HASH>..<HASH> 100644
--- a/custodian/vasp/jobs.py
+++ b/custodian/vasp/jobs.py
@@ -666,6 +666,7 @@ class VaspJob(Job):
"""
Ensure all vasp jobs are killed.
"""
+ logger.info("Custodian terminating all VASP jobs")
... | Log Custodian killing all vasp jobs in terminate command. Fixes #<I>. | py |
diff --git a/pyscada/utils/scheduler.py b/pyscada/utils/scheduler.py
index <HASH>..<HASH> 100644
--- a/pyscada/utils/scheduler.py
+++ b/pyscada/utils/scheduler.py
@@ -76,10 +76,14 @@ class Scheduler(object):
PROCESSES = {}
SIG_QUEUE = []
SIGNALS = [signal.SIGTERM, signal.SIGUSR1, signal.SIGHUP, signal.SI... | use different pid file to load various pyscada instance | py |
diff --git a/tests/test_run.py b/tests/test_run.py
index <HASH>..<HASH> 100644
--- a/tests/test_run.py
+++ b/tests/test_run.py
@@ -96,7 +96,7 @@ class TestRunner(unittest2.TestCase):
'PSDASH_REGISTER_TO': 'http://localhost:5000',
'PSDASH_REGISTER_AS': 'the_agent'
}
- r = PsDash... | Trying to fix failing tests in Travis CI. | py |
diff --git a/pypeerassets/pautils.py b/pypeerassets/pautils.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/pautils.py
+++ b/pypeerassets/pautils.py
@@ -203,7 +203,7 @@ def validate_card_transfer_p2th(deck: Deck, raw_tx: dict) -> None:
raise InvalidCardTransferP2TH(error)
except TypeError as e:
... | Try Except TypeError from e ( validate card p2th ) | py |
diff --git a/exchangelib/folders.py b/exchangelib/folders.py
index <HASH>..<HASH> 100644
--- a/exchangelib/folders.py
+++ b/exchangelib/folders.py
@@ -920,8 +920,10 @@ class Root(Folder):
if isinstance(f, (ErrorFolderNotFound, ErrorNoPublicFolderReplicaAvailable)):
# This is just a... | Don't test f.value. Message may be localized. Fixes #<I> | py |
diff --git a/uvicorn/protocols/http/httptools_impl.py b/uvicorn/protocols/http/httptools_impl.py
index <HASH>..<HASH> 100644
--- a/uvicorn/protocols/http/httptools_impl.py
+++ b/uvicorn/protocols/http/httptools_impl.py
@@ -514,7 +514,7 @@ class RequestResponseCycle:
async def receive(self):
if self.wait... | Fix <I> continue responses (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,6 +52,8 @@ setup(
packages=setuptools.find_packages(),
install_requires=[
- 'subprocess32;python_version<"3.5"',
- ]
+ 'subprocess32',
+ ],
+
+ python_requires='>=2.7',
) | Changed install_requires and python_requires | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -452,7 +452,7 @@ tableau = [
'tableauserverclient',
]
telegram = [
- 'python-telegram-bot==13.0',
+ 'python-telegram-bot~=13.0',
]
trino = ['trino']
vertica = [ | Relax required version for `python-telegram-bot` (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,10 @@ with open('README.rst') as f:
setup(
name='wakeonlan',
description='A small python module for wake on lan.',
- url='https://github.com/remcohaszing/pywakeonlan',
+ project_urls={
+ 'Docu... | Replace url with multiple project urls | py |
diff --git a/mtp_user_admin/forms.py b/mtp_user_admin/forms.py
index <HASH>..<HASH> 100644
--- a/mtp_user_admin/forms.py
+++ b/mtp_user_admin/forms.py
@@ -65,9 +65,12 @@ class UserUpdateForm(forms.Form):
except HttpClientError as e:
try:
response_body = json.loads(e.co... | Handle non-field errors in user-editing form | py |
diff --git a/src/animanager/configlib.py b/src/animanager/configlib.py
index <HASH>..<HASH> 100644
--- a/src/animanager/configlib.py
+++ b/src/animanager/configlib.py
@@ -51,6 +51,7 @@ class Config:
where_args=(id,)
)
name = next(results)[0]
+ name = re.sub(r'\W', '', name)
... | Remove non-word chars from register pattern | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -67,10 +67,13 @@ example_gallery_config = dict(
if on_rtd:
import subprocess as spr
print('Registering kernel')
- spr.check_call([sys.executable] +
- ('-m ipykernel install --use... | Output subprocess to logfile and print the content | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,16 +15,16 @@ setuptools.setup(
# This code automatically builds the Cython extensions.
ext_modules=cythonize(
[Extension(
- "isambard_dev.tools.geometry",
- ["isambard_dev/tools/geo... | Fixes paths in setup.py. | py |
diff --git a/wal_e/cmd.py b/wal_e/cmd.py
index <HASH>..<HASH> 100755
--- a/wal_e/cmd.py
+++ b/wal_e/cmd.py
@@ -18,9 +18,7 @@ def gevent_monkey(*args, **kwargs):
gevent_monkey()
# Instate a cipher suite that bans a series of weak and slow ciphers.
-# Both RC4 (weak) DES (weak and slow) have been seen with default
-#... | Shorten cipher string documentation This information is maybe not quite correct (the cause of selection of a cipher suite by S3 is a little mysterious) and flat out wrong when it comes to the use of DES: 3DES is used, even if it is sometimes rendered as DES with a long key. | py |
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/variables.py
+++ b/pylint/checkers/variables.py
@@ -338,8 +338,7 @@ MSGS = {
}
-NamesConsumerAtomic = collections.namedtuple("NamesConsumerAtomic",
- ... | Renaming NamesConsumerAtomic into ScopeConsumer. Thanks @PCManticore. | py |
diff --git a/superset/config.py b/superset/config.py
index <HASH>..<HASH> 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -854,7 +854,7 @@ ENABLE_JAVASCRIPT_CONTROLS = False
# The id of a template dashboard that should be copied to every new user
DASHBOARD_TEMPLATE_ID = None
-# A callable that allows al... | fix: comment typo (#<I>) | py |
diff --git a/samalg/__init__.py b/samalg/__init__.py
index <HASH>..<HASH> 100755
--- a/samalg/__init__.py
+++ b/samalg/__init__.py
@@ -851,7 +851,7 @@ class SAM(object):
stopping_condition=1e-2,
num_norm_avg=50,
k=20,
- distance="correlation",
+ distance="cosine",
prepr... | changed default distance metric to cosine to avoid annoying kernel deaths due to umap NN finder | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setup(name='rhaptos.cnxmlutils',
zip_safe=False,
install_requires=[
'setuptools',
- 'lxml',
+ #'lxml',
#'argparse',
# -*- Extra requirements: -*-
... | revert lxml depend: do it as a system package | py |
diff --git a/allennlp/training/trainer.py b/allennlp/training/trainer.py
index <HASH>..<HASH> 100644
--- a/allennlp/training/trainer.py
+++ b/allennlp/training/trainer.py
@@ -328,6 +328,8 @@ class Trainer(TrainerBase):
batch_generator, self._num_gradient_accumulation_steps
)
+ logger.info... | Show "Training" before tqdm (#<I>) | py |
diff --git a/ELiDE/statgrid.py b/ELiDE/statgrid.py
index <HASH>..<HASH> 100644
--- a/ELiDE/statgrid.py
+++ b/ELiDE/statgrid.py
@@ -6,6 +6,9 @@ user. Autoupdates when there's a change for any reason.
"""
from functools import partial
from kivy.properties import (
+ NumericProperty,
+ StringProperty,
+ Refere... | Revert recent statgrid related commits that weren't ready for master yet This reverts commit d0c9bf<I>fa<I>fab1b<I>c3b<I>e1d<I>f<I>eb. | py |
diff --git a/tools/distrib/python/docgen.py b/tools/distrib/python/docgen.py
index <HASH>..<HASH> 100755
--- a/tools/distrib/python/docgen.py
+++ b/tools/distrib/python/docgen.py
@@ -94,6 +94,7 @@ if args.submit:
# specified repository, edit it, and push it. It's up to the user to then go
# onto GitHub and make a... | Provide doc dir even if user interrupts docgen | py |
diff --git a/cookiecutter/log.py b/cookiecutter/log.py
index <HASH>..<HASH> 100644
--- a/cookiecutter/log.py
+++ b/cookiecutter/log.py
@@ -22,8 +22,8 @@ LOG_FORMATS = {
def configure_logger(stream_level='DEBUG', debug_file=None):
"""Configure logging for cookiecutter.
- Set up logging to stdout with given le... | fixed docstrings according to review comments | py |
diff --git a/pymysql/connections.py b/pymysql/connections.py
index <HASH>..<HASH> 100644
--- a/pymysql/connections.py
+++ b/pymysql/connections.py
@@ -25,6 +25,12 @@ try:
except ImportError:
import StringIO
+try:
+ import getpass
+ DEFAULT_USER = getpass.getuser()
+except ImportError:
+ DEFAULT_USER = ... | having user default to current system user name | py |
diff --git a/src/ansiblelint/utils.py b/src/ansiblelint/utils.py
index <HASH>..<HASH> 100644
--- a/src/ansiblelint/utils.py
+++ b/src/ansiblelint/utils.py
@@ -131,50 +131,6 @@ def ansible_template(
LINE_NUMBER_KEY = "__line__"
FILENAME_KEY = "__file__"
-VALID_KEYS = [
- "name",
- "action",
- "when",
- "... | Removed unused VALID_KEYS (#<I>) | py |
diff --git a/proso_flashcards/views.py b/proso_flashcards/views.py
index <HASH>..<HASH> 100644
--- a/proso_flashcards/views.py
+++ b/proso_flashcards/views.py
@@ -31,7 +31,7 @@ def show_more(request, object_class, should_cache=True):
select_related_all = {
}
prefetch_related_all = {
- ... | fix prefetching related models for Term extension | py |
diff --git a/salt/modules/npm.py b/salt/modules/npm.py
index <HASH>..<HASH> 100644
--- a/salt/modules/npm.py
+++ b/salt/modules/npm.py
@@ -190,7 +190,7 @@ def list_(pkg=None, dir=None):
'''
_check_valid_version()
- cmd = 'npm list --json'
+ cmd = 'npm list --silent --json'
if dir is None:
... | Use the silent option when listing npm packages If warnings are output it can't be parsed as JSON. Fix courtesy of @timcrider. | py |
diff --git a/salt/utils/pycrypto.py b/salt/utils/pycrypto.py
index <HASH>..<HASH> 100644
--- a/salt/utils/pycrypto.py
+++ b/salt/utils/pycrypto.py
@@ -25,6 +25,7 @@ except ImportError:
HAS_CRYPT = False
# Import salt libs
+import salt.utils
from salt.exceptions import SaltInvocationError
@@ -36,7 +37,11 @@... | PY3 compatibility: Ensure bytes generated by pycrypto are decoded to str | py |
diff --git a/tests/pytests/integration/modules/test_virt.py b/tests/pytests/integration/modules/test_virt.py
index <HASH>..<HASH> 100644
--- a/tests/pytests/integration/modules/test_virt.py
+++ b/tests/pytests/integration/modules/test_virt.py
@@ -73,6 +73,7 @@ def virt_minion_0(
"root_dir": str(root_dir),
... | The virt minions should be using the salt master transport | py |
diff --git a/great_expectations/cli/toolkit.py b/great_expectations/cli/toolkit.py
index <HASH>..<HASH> 100644
--- a/great_expectations/cli/toolkit.py
+++ b/great_expectations/cli/toolkit.py
@@ -216,7 +216,11 @@ def create_empty_suite(context: DataContext, expectation_suite_name: str, batch_
def launch_jupyter_not... | added the jupyter notebook cmd | py |
diff --git a/amanobot/loop.py b/amanobot/loop.py
index <HASH>..<HASH> 100644
--- a/amanobot/loop.py
+++ b/amanobot/loop.py
@@ -92,12 +92,15 @@ def _extract_message(update):
'edited_message',
'channel_post',
'edit... | resolved the Bot API <I> error (#8), closes #7 * resolved the Bot API <I> error * Add missing poll_answer type to update types and change order according to official API | py |
diff --git a/ELiDE/layout.py b/ELiDE/layout.py
index <HASH>..<HASH> 100644
--- a/ELiDE/layout.py
+++ b/ELiDE/layout.py
@@ -148,7 +148,10 @@ class ELiDELayout(FloatLayout):
return self.character.stat
elif hasattr(self.selection, 'remote'):
return self.selection.remote
- elif sel... | trying to make a portal no longer crashes app | py |
diff --git a/samples/moOperations.py b/samples/moOperations.py
index <HASH>..<HASH> 100755
--- a/samples/moOperations.py
+++ b/samples/moOperations.py
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# This script shows the use of Generic Oper... | Modified the comments Modified comments to make it more readable. | py |
diff --git a/drfpasswordless/models.py b/drfpasswordless/models.py
index <HASH>..<HASH> 100644
--- a/drfpasswordless/models.py
+++ b/drfpasswordless/models.py
@@ -35,7 +35,7 @@ class AbstractBaseCallbackToken(models.Model):
"""
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, unique... | add cascading delete on user model | py |
diff --git a/metnet/command.py b/metnet/command.py
index <HASH>..<HASH> 100644
--- a/metnet/command.py
+++ b/metnet/command.py
@@ -76,30 +76,17 @@ class ChargeBalanceCommand(Command):
name = 'chargecheck'
title = 'Check charge balance on a model or database'
- @classmethod
- def init_parser(cls, parse... | command: Obtain compound charge from CompoundEntry Previously the chargecheck command required a separate file with the charges defined. This changes the command to get the charges from the CompoundEntries read through NativeModel. | py |
diff --git a/pysoa-common/soacommon/transport.py b/pysoa-common/soacommon/transport.py
index <HASH>..<HASH> 100644
--- a/pysoa-common/soacommon/transport.py
+++ b/pysoa-common/soacommon/transport.py
@@ -38,6 +38,10 @@ class ConnectionError(Exception):
pass
+class InvalidMessageError(Exception):
+ pass
+
+
... | Add InvalidMessage exception type Summary: Add InvalidMessage exception type, raised when the Transport receives an invalid message (e.g. no request ID). Test Plan: n/a Reviewers: #foundry, seth, ashfall Reviewed By: #foundry, seth, ashfall Subscribers: ashfall, seth, michaelmanganiello Differential Revision: <UR... | py |
diff --git a/eli5/formatters/html.py b/eli5/formatters/html.py
index <HASH>..<HASH> 100644
--- a/eli5/formatters/html.py
+++ b/eli5/formatters/html.py
@@ -78,7 +78,7 @@ def _weight_color(weight, weight_range):
"""
hue = 120 if weight > 0 else 0
saturation = 1
- lightness = 1.0 - 0.5 * (abs(weight) / w... | Do not over-saturate colors Weights look too scary with max saturation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -54,7 +54,7 @@ setup(name = "paramiko",
description = "SSH2 protocol library",
author = "Jeff Forcier",
author_email = "jeff@bitprophet.org",
- url = "http://www.lag.net/paramiko/",
+ url = "http... | add the url to github in the setup.py for pypi (cherry picked from commit abfefc2f<I>c<I>cc<I>d9b0b<I>c8cdd<I>f<I>c8) Conflicts: setup.py | py |
diff --git a/tweepy/api.py b/tweepy/api.py
index <HASH>..<HASH> 100644
--- a/tweepy/api.py
+++ b/tweepy/api.py
@@ -2915,13 +2915,22 @@ class API:
Returns an array of user objects that the authenticating user is
blocking.
- :param include_entities: |include_entities|
- :param skip_statu... | Update and improve documentation for API.blocks | py |
diff --git a/jsonklog/formatter.py b/jsonklog/formatter.py
index <HASH>..<HASH> 100644
--- a/jsonklog/formatter.py
+++ b/jsonklog/formatter.py
@@ -75,4 +75,7 @@ class JSONFormatterSimple(JSONFormatter):
'asctime': self.formatTime(record, self.datefmt),
'levelname': record.levelna... | Added extras back into JSONFormatterSimple | py |
diff --git a/src/livestreamer_cli/utils.py b/src/livestreamer_cli/utils.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer_cli/utils.py
+++ b/src/livestreamer_cli/utils.py
@@ -183,6 +183,7 @@ def find_default_player():
if "darwin" in sys.platform:
paths = os.environ.get("PATH", "").split(":")
... | Add ~/Applications to search path for VLC This adds the ~/Applications` to the search path for the VLC.app on Darwin (Mac OS X). It's for those that have installed VLC to their account only. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,10 @@ with open("README.rst", "r") as f:
long_description = f.read()
# Dependencies
-extras_require = {"serial": ["pyserial~=3.0"], "neovi": ["python-ics>=2.12"]}
+extras_require = {
+ "serial": ["pyserial... | Adding filelock to neovi extra requirements | py |
diff --git a/mythril/laser/ethereum/transaction/transaction_models.py b/mythril/laser/ethereum/transaction/transaction_models.py
index <HASH>..<HASH> 100644
--- a/mythril/laser/ethereum/transaction/transaction_models.py
+++ b/mythril/laser/ethereum/transaction/transaction_models.py
@@ -5,8 +5,7 @@ import array
from z3... | Remove unused imports and add removed import due to merge conflict | py |
diff --git a/test/test_big_phi.py b/test/test_big_phi.py
index <HASH>..<HASH> 100644
--- a/test/test_big_phi.py
+++ b/test/test_big_phi.py
@@ -361,6 +361,13 @@ def test_big_mip_single_micro_node_selfloops_dont_have_phi(
assert compute.big_mip(noisy_selfloop_single).phi == 0.0
+def test_big_mip_single_micro_nod... | Test that single micro nodes w/o selfloops have no phi. | py |
diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/cli/__init__.py
+++ b/salt/cli/__init__.py
@@ -145,13 +145,13 @@ class SaltCMD(parsers.SaltCMDOptionParser):
if self.options.verbose:
kwargs['verbose'] = True
... | Fixing W<I>(unbalanced-tuple-unpacking) pylint violation | py |
diff --git a/constants.py b/constants.py
index <HASH>..<HASH> 100644
--- a/constants.py
+++ b/constants.py
@@ -9,6 +9,11 @@ from sc2common.types import *
import os
################################################################################
+class InvalidPlayerTypeException(Exception): pass
+class InvalidRa... | - included exceptions exported from elsewhere | py |
diff --git a/spyder/plugins/tours/widgets.py b/spyder/plugins/tours/widgets.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/tours/widgets.py
+++ b/spyder/plugins/tours/widgets.py
@@ -1069,8 +1069,8 @@ class OpenTourDialog(QDialog):
image_path = get_image_path(icon_filename)
image = QPixmap(image_... | Tours: Fix QImage.scaled() with PyQt5 >= <I> It looks like PyQt5 >= <I> doesn’t accept float arguments in QImage.scaled(). PyQt5 <I> issues the following warning: <stdin>:1: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in ... | py |
diff --git a/cirruscluster/cluster/mapr.py b/cirruscluster/cluster/mapr.py
index <HASH>..<HASH> 100644
--- a/cirruscluster/cluster/mapr.py
+++ b/cirruscluster/cluster/mapr.py
@@ -69,7 +69,9 @@ class MaprCluster(object, ):
src_region = config.region_name
dst_regions = core.tested_region_names
config_b... | Fixes missing args. | py |
diff --git a/kibana/manager.py b/kibana/manager.py
index <HASH>..<HASH> 100644
--- a/kibana/manager.py
+++ b/kibana/manager.py
@@ -203,13 +203,12 @@ class KibanaManager():
pkg_objs = []
for _, obj in iteritems(objects):
pkg_objs.append(obj)
- output = self.json_dumps(pkg_objs) + '\... | Fixes #7 sort pkg output alpha by doc[_id], and each doc key in alpha | py |
diff --git a/cassiopeia/data.py b/cassiopeia/data.py
index <HASH>..<HASH> 100644
--- a/cassiopeia/data.py
+++ b/cassiopeia/data.py
@@ -392,6 +392,7 @@ class Queue(Enum):
coop_ai_intro_fives = "BOT_5X5_INTRO" # 830
coop_ai_beginner_fives = "BOT_5X5_BEGINNER" # 840
coop_ai_intermediate_fives = "BOT_5X5_I... | added new <I> queue -- need to figure out more about it | py |
diff --git a/openhtf/__init__.py b/openhtf/__init__.py
index <HASH>..<HASH> 100644
--- a/openhtf/__init__.py
+++ b/openhtf/__init__.py
@@ -185,7 +185,7 @@ class Test(object):
finally:
# If the framework doesn't transition from INITIALIZING to EXECUTING
# then test state isn't set and there's no recor... | check for self._executor in Execute | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup
setup(
name='MotherNature',
- version='0.1.3',
+ version='0.2',
description='Python Environment Variables Manager',
long_description="Manage python environment ... | Bumped version to <I> | py |
diff --git a/gns3server/modules/base_manager.py b/gns3server/modules/base_manager.py
index <HASH>..<HASH> 100644
--- a/gns3server/modules/base_manager.py
+++ b/gns3server/modules/base_manager.py
@@ -177,20 +177,14 @@ class BaseManager:
raise aiohttp.web.HTTPInternalServerError(text="Could not move ... | Fixes race condition when deleting empty legacy project files dir. | py |
diff --git a/enoslib/infra/enos_vmong5k/configuration.py b/enoslib/infra/enos_vmong5k/configuration.py
index <HASH>..<HASH> 100644
--- a/enoslib/infra/enos_vmong5k/configuration.py
+++ b/enoslib/infra/enos_vmong5k/configuration.py
@@ -148,7 +148,8 @@ class MachineConfiguration:
kwargs.update(undercloud=und... | Fix issue with machine's extra_devices property in VMonG5K config In VMonG5K provider, extra_device is an optionnal property. A bug in the configuration management caused the deployment to raise an exception if extra_device was not set. Indeed, the property was still used even if not set (causing trying to validate th... | py |
diff --git a/salt/utils/templates.py b/salt/utils/templates.py
index <HASH>..<HASH> 100644
--- a/salt/utils/templates.py
+++ b/salt/utils/templates.py
@@ -207,7 +207,8 @@ def wrap_tmpl_func(render_str):
output = output.encode(SLS_ENCODING)
if salt.utils.platform.is_windows():
... | Fix problem with unknown characters when detecting line endings | py |
diff --git a/openquake/risklib/scientific.py b/openquake/risklib/scientific.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/scientific.py
+++ b/openquake/risklib/scientific.py
@@ -1290,8 +1290,7 @@ def losses_by_period(losses, return_periods, num_events, eff_time):
NB: the return periods must be ordered int... | Fixed a docstrng [skip CI] | py |
diff --git a/config_models/tests/utils.py b/config_models/tests/utils.py
index <HASH>..<HASH> 100644
--- a/config_models/tests/utils.py
+++ b/config_models/tests/utils.py
@@ -15,12 +15,6 @@ from django.core.cache import caches
from django.test import TestCase, override_settings
from django.conf import settings
-# T... | Remove unneeded cache-clearing calls. | py |
diff --git a/tests/integration/modules/state.py b/tests/integration/modules/state.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/state.py
+++ b/tests/integration/modules/state.py
@@ -74,6 +74,31 @@ class StateModuleTest(integration.ModuleCase,
sls = self.run_function('state.show_sls', mods='rec... | Add integration test for the running dictionary structure This will fail if we remove/rename any fields from the running dictionary by accident. | py |
diff --git a/spyderlib/plugins/externalconsole.py b/spyderlib/plugins/externalconsole.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/externalconsole.py
+++ b/spyderlib/plugins/externalconsole.py
@@ -616,9 +616,21 @@ class ExternalConsole(SpyderPluginWidget):
if shellwidget is not None:
if... | IPython Console: Run python code sent from the Editor on the currently focused client Update Issue <I> Before Spyder was running code on the *first* client connected to a given kernel, not on the currently selected one. | py |
diff --git a/pynlpir/nlpir.py b/pynlpir/nlpir.py
index <HASH>..<HASH> 100644
--- a/pynlpir/nlpir.py
+++ b/pynlpir/nlpir.py
@@ -117,6 +117,7 @@ class NLPIR(object):
def close(self):
"""Exits the NLPIR API."""
self._exit()
+ del self.libNLPIR._handle
del self.libNLPIR
def _is... | Make close() delete CDLL handle. | py |
diff --git a/src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py b/src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py
+++ b/src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_comp... | Relativise path to compiler bridge (#<I>) This makes it actually work with remote execution :) | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -18,6 +18,8 @@ import time
from subprocess import check_output
+import pkg_resources
+
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here... | docs: check the installed rinohtype version The installed rinohtype version is where the API docs are extracted from by Sphinx's autodoc. This is still not <I>% safe for .dev builds however... | py |
diff --git a/librosa/filters.py b/librosa/filters.py
index <HASH>..<HASH> 100644
--- a/librosa/filters.py
+++ b/librosa/filters.py
@@ -756,6 +756,7 @@ def window_bandwidth(window, default=1.0):
return WINDOW_BANDWIDTHS.get(key, default)
+@cache(level=10)
def get_window(window, Nx, fftbins=True):
'''Compu... | added cache level <I> to get_window | py |
diff --git a/route53/hosted_zone.py b/route53/hosted_zone.py
index <HASH>..<HASH> 100644
--- a/route53/hosted_zone.py
+++ b/route53/hosted_zone.py
@@ -72,3 +72,14 @@ class HostedZone(object):
for rrset in self.connection.list_resource_record_sets_by_zone_id(self.id):
yield rrset
+
+ def delet... | Added HostedZone.delete() | py |
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index <HASH>..<HASH> 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -544,10 +544,10 @@ class IntervalArray(IntervalMixin, ExtensionArray):
def __len__(self) -> int:
return len(self._left)
- ... | CLN: value -> key (#<I>) | py |
diff --git a/django_afip/admin.py b/django_afip/admin.py
index <HASH>..<HASH> 100644
--- a/django_afip/admin.py
+++ b/django_afip/admin.py
@@ -206,7 +206,12 @@ class ReceiptBatchAdmin(admin.ModelAdmin):
validated.boolean = True
def receipts_count(self, obj):
- return obj.receipts__count
+ retu... | Add a link to filtered Receipts in ReceiptBatchAdmin | py |
diff --git a/tests/test_cli.py b/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -13,6 +13,12 @@ from dwave.cloud.cli import cli
from dwave.cloud.config import load_config
+def touch(path):
+ """Implements UNIX `touch`."""
+ with open(path, 'a'):
+ os.u... | Fix CLI test: config file must exist | py |
diff --git a/conda_manager/widgets/packages.py b/conda_manager/widgets/packages.py
index <HASH>..<HASH> 100755
--- a/conda_manager/widgets/packages.py
+++ b/conda_manager/widgets/packages.py
@@ -598,7 +598,7 @@ class CondaPackagesDialog(QDialog, CondaPackagesWidget):
def test_widget():
"""Run conda packages wid... | Packages: Remove Spyder imports | py |
diff --git a/airflow/www/views.py b/airflow/www/views.py
index <HASH>..<HASH> 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1625,7 +1625,7 @@ class Airflow(AirflowBaseView): # noqa: D101 pylint: disable=too-many-public-m
def get_downstream(task):
for downstream_task in task.do... | Fix downstream rendering in WebUI (#<I>) closes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ include_dirs = ['/usr/include/python2.6',
library_dirs = ['/usr/lib']
setup(name='pgmagick',
- version="0.0.2",
+ version="0.0.3",
description="Yet Another Python wrapper for GraphicsMagick++",
... | update: setup.py for Montage Class. (release to version <I>) | py |
diff --git a/lettuce/plugins/smtp_mail_queue.py b/lettuce/plugins/smtp_mail_queue.py
index <HASH>..<HASH> 100644
--- a/lettuce/plugins/smtp_mail_queue.py
+++ b/lettuce/plugins/smtp_mail_queue.py
@@ -6,7 +6,6 @@ from email import message_from_string
from smtpd import SMTPServer
-from django.core.mail import EmailMe... | Import django modules only if they are used. This commit solves the issue #<I>. | py |
diff --git a/sftpclone/sftpclone.py b/sftpclone/sftpclone.py
index <HASH>..<HASH> 100644
--- a/sftpclone/sftpclone.py
+++ b/sftpclone/sftpclone.py
@@ -141,9 +141,9 @@ class SFTPClone(object):
self.allow_unknown = allow_unknown or False
self.agent_keys = list()
+ agent = None
if ssh... | Close SSH-Agent session after authentication | py |
diff --git a/hszinc/parser.py b/hszinc/parser.py
index <HASH>..<HASH> 100644
--- a/hszinc/parser.py
+++ b/hszinc/parser.py
@@ -37,7 +37,7 @@ DATETIME_RE = re.compile(r'^t:(\d{4}-\d{2}-\d{2}T'\
r'(:?[zZ]|[+\-]\d+:?\d*))(:? ([A-Za-z\-+_0-9]+))?$')
URI_RE = re.compile(r'u:(.+)$')
BIN_RE = re.compile(r... | parser: Fix parsing of coordinate from JSON | py |
diff --git a/django_freeradius/migrations/0002_create_default_radius_profiles.py b/django_freeradius/migrations/0002_create_default_radius_profiles.py
index <HASH>..<HASH> 100644
--- a/django_freeradius/migrations/0002_create_default_radius_profiles.py
+++ b/django_freeradius/migrations/0002_create_default_radius_profi... | [qa] Minor cleanup in migrations | py |
diff --git a/blockstack_client/rpc.py b/blockstack_client/rpc.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/rpc.py
+++ b/blockstack_client/rpc.py
@@ -4577,6 +4577,8 @@ class BlockstackAPIEndpointClient(object):
data['payment_key'] = payment_key
if zonefile_data is not None:
... | pass recipient address to renew in the funky call graph | py |
diff --git a/multigtfs/models/base.py b/multigtfs/models/base.py
index <HASH>..<HASH> 100644
--- a/multigtfs/models/base.py
+++ b/multigtfs/models/base.py
@@ -129,7 +129,7 @@ class Base(models.Model):
def instance_convert(field, feed, rel_name):
def get_instance(value):
- if value... | Fix importing of feeds where null instance references can contain spaces | py |
diff --git a/ELiDE/ELiDE/app.py b/ELiDE/ELiDE/app.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/app.py
+++ b/ELiDE/ELiDE/app.py
@@ -151,9 +151,8 @@ class ELiDEApp(App):
"""
config = self.config
Logger.debug(
- "ELiDEApp: starting with world {}, code {}, path {}".format(
+ ... | Prevent crash due to old logger command | py |
diff --git a/gidgethub/__init__.py b/gidgethub/__init__.py
index <HASH>..<HASH> 100644
--- a/gidgethub/__init__.py
+++ b/gidgethub/__init__.py
@@ -1,5 +1,5 @@
"""An async GitHub API library"""
-__version__ = "4.1.0" # DO NOT CHANGE MANUALLY! Updated automatically via GH Action.
+__version__ = "4.1.0"
import http
... | Drop comment related to release-often | py |
diff --git a/allegedb/allegedb/__init__.py b/allegedb/allegedb/__init__.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/__init__.py
+++ b/allegedb/allegedb/__init__.py
@@ -248,8 +248,7 @@ def update_backward_window(turn_from, tick_from, turn_to, tick_to, updfun, branc
for future_state in reversed(br... | Undo an off-by-one fix that wasn't | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,9 +28,9 @@ setup(
],
packages=['toot'],
install_requires=[
- 'requests ~= 2.13',
- 'beautifulsoup4 ~= 4.5.3',
- 'future',
+ 'requests>=2.13,<3.0',
+ 'beautifulsoup4>=4.5.0,... | Don't use ~= operator for defining dependancies It's not supported in older versions of pip and causes problems. issue #8 issue #<I> | py |
diff --git a/lib/__init__.py b/lib/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/__init__.py
+++ b/lib/__init__.py
@@ -74,8 +74,8 @@ try:
except:
__svn_version__ = 'Unable to determine SVN revision'
-__version__ = '4.0.14dev12799'
-__vdate__ = "11-May-2011"
+__version__ = '4.0.14dev12812'
+__vdate__ = "12-M... | This revision of tweakreg provides the first implementation of the 'rscale' fitting mechanism and unifies the calls to the fitting routines to only needing to call 1 routine. git-svn-id: <URL> | py |
diff --git a/marrow/mail/__init__.py b/marrow/mail/__init__.py
index <HASH>..<HASH> 100644
--- a/marrow/mail/__init__.py
+++ b/marrow/mail/__init__.py
@@ -7,6 +7,8 @@ import logging
import warnings
import pkg_resources
+from functools import partial
+
from marrow.util.bunch import Bunch
from marrow.util.object im... | Added a TODO on Receipt creation, and now use partial to pass a transport "factory" to the manager instead of transport/config. | py |
diff --git a/holoviews/selection.py b/holoviews/selection.py
index <HASH>..<HASH> 100644
--- a/holoviews/selection.py
+++ b/holoviews/selection.py
@@ -325,6 +325,23 @@ class link_selections(_base_link_selections):
self._datasets.append((pipe, data, raw))
return pipe.param.data
+ def filter(self, ... | Implement linked_selection.filter method (#<I>) * Implement linked_selection.filter method * Update holoviews/selection.py * Update holoviews/selection.py | py |
diff --git a/sorl_watermarker/engines/base.py b/sorl_watermarker/engines/base.py
index <HASH>..<HASH> 100644
--- a/sorl_watermarker/engines/base.py
+++ b/sorl_watermarker/engines/base.py
@@ -43,9 +43,13 @@ class WatermarkEngineBase(ThumbnailEngineBase):
if 'watermark_size' in options or settings.THUMBNAIL_WA... | Add support of sorl-thumbnail <I>b | py |
diff --git a/openstack_dashboard/dashboards/project/volumes/volumes/forms.py b/openstack_dashboard/dashboards/project/volumes/volumes/forms.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/volumes/volumes/forms.py
+++ b/openstack_dashboard/dashboards/project/volumes/volumes/forms.py
@@ -469,1... | Unable to attach volume to instance Nova api no longer allows blank device names when attaching a volume. In this case, the value needs to be set to None. Closes-Bug: #<I> Change-Id: Iae4d<I>ddd9c<I>e<I>e0b<I>fb<I>d3da<I>c | py |
diff --git a/meshio/msh_io/msh4_1.py b/meshio/msh_io/msh4_1.py
index <HASH>..<HASH> 100644
--- a/meshio/msh_io/msh4_1.py
+++ b/meshio/msh_io/msh4_1.py
@@ -336,7 +336,7 @@ def _write_elements(fh, cells, write_binary):
"""
fh.write("$Elements\n".encode("utf-8"))
- total_num_cells = sum([data.shape[0] for _... | simplified calculation of total_num_cells (MSH<I> numElements) | py |
diff --git a/xym/xym.py b/xym/xym.py
index <HASH>..<HASH> 100644
--- a/xym/xym.py
+++ b/xym/xym.py
@@ -125,12 +125,22 @@ class YangModuleExtractor:
existing_model = model.split('@')
existing_model_revision = existing_model[1].split('.')[0]
exist... | Add support for missing .yang suffix check | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.