diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/indra/tests/test_bbn.py b/indra/tests/test_bbn.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_bbn.py
+++ b/indra/tests/test_bbn.py
@@ -9,9 +9,9 @@ from indra.statements import *
path_this = os.path.dirname(os.path.abspath(__file__))
test_file_simple = os.path.join(path_this, 'bbn_test_simple.json-... | Add a new test for bbn processor. | py |
diff --git a/pyocd/gdbserver/gdbserver.py b/pyocd/gdbserver/gdbserver.py
index <HASH>..<HASH> 100644
--- a/pyocd/gdbserver/gdbserver.py
+++ b/pyocd/gdbserver/gdbserver.py
@@ -760,7 +760,7 @@ class GDBServer(threading.Thread):
# v_cont capabilities query.
elif b'Cont?' == cmd:
- return sel... | Fixed gdbserver response to 'vCont?' command. Search-replace error introduced during PEP8 rename. | py |
diff --git a/hydpy/core/autodoctools.py b/hydpy/core/autodoctools.py
index <HASH>..<HASH> 100644
--- a/hydpy/core/autodoctools.py
+++ b/hydpy/core/autodoctools.py
@@ -147,11 +147,10 @@ def autodoc_basemodel():
namespace['__doc__'] = doc
-def _number_of_line(member):
+def _number_of_line(member_tuple):
"""... | Refactor method '_number_of_line' of module `autodoctools`. The `isinstance` check was not required anymore. | py |
diff --git a/pyvera/__init__.py b/pyvera/__init__.py
index <HASH>..<HASH> 100755
--- a/pyvera/__init__.py
+++ b/pyvera/__init__.py
@@ -119,7 +119,7 @@ class VeraController:
"""Perform a data_request and return the result."""
request_url = self.base_url + "/data_request"
response = requests.ge... | Setting the encoding only if it wasn't already set. | py |
diff --git a/test/legacy_resharding.py b/test/legacy_resharding.py
index <HASH>..<HASH> 100755
--- a/test/legacy_resharding.py
+++ b/test/legacy_resharding.py
@@ -121,11 +121,14 @@ class TestResharding(unittest.TestCase, base_sharding.BaseShardingTest):
t = 'varbinary(64)'
else:
t = 'bigint(20) unsig... | test: Adapt legacy_resharding.py to new schema (multi-column primary key) as well. | py |
diff --git a/cumulus/storage.py b/cumulus/storage.py
index <HASH>..<HASH> 100644
--- a/cumulus/storage.py
+++ b/cumulus/storage.py
@@ -266,15 +266,18 @@ class SwiftclientStorage(CumulusStorage):
def __init__(self, *args, **kwargs):
warnings.warn("SwiftclientStorage is deprecated and will be removed in dja... | don't forget to call parent class | py |
diff --git a/opentrons/drivers/motor.py b/opentrons/drivers/motor.py
index <HASH>..<HASH> 100644
--- a/opentrons/drivers/motor.py
+++ b/opentrons/drivers/motor.py
@@ -407,13 +407,8 @@ class CNCDriver(object):
def wait(self, sec):
ms = int((sec % 1.0) * 1000)
s = int(sec)
-
- # splitting de... | removing delay splitting, needs more thought put into it | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,7 @@ install_requires = [
'shapely >=1.3, <1.6',
'docutils >=0.11, <0.14',
'decorator >=3.4, <4.1',
- 'django >=1.6, <1.11',
+ 'django >=1.6, <1.12',
'matplotlib >=1.5, <2.0',
'requests... | Allow installation of Django <I> LTS | py |
diff --git a/zipline/lines.py b/zipline/lines.py
index <HASH>..<HASH> 100644
--- a/zipline/lines.py
+++ b/zipline/lines.py
@@ -83,11 +83,6 @@ import zipline.protocol as zp
log = Logger('Lines')
-class CancelSignal(Exception):
- def __init__(self):
- pass
-
-
class SimulatedTrading(object):
def __... | Removes unused CancelSignal. This was only triggered by the now removed Monitor. | py |
diff --git a/headnode_notifier.py b/headnode_notifier.py
index <HASH>..<HASH> 100755
--- a/headnode_notifier.py
+++ b/headnode_notifier.py
@@ -74,11 +74,12 @@ def send_mail(to_addr,
def main():
parser = argparse.ArgumentParser(prog = "headnode notifier",
+ usage = "headnode_n... | UPD:changed --to to positional argument | py |
diff --git a/examples/dep_dsl/repo.py b/examples/dep_dsl/repo.py
index <HASH>..<HASH> 100644
--- a/examples/dep_dsl/repo.py
+++ b/examples/dep_dsl/repo.py
@@ -57,5 +57,5 @@ def define_dep_dsl_pipeline():
@repository
-def my_repository():
+def define_repository():
return {'pipelines': {'some_example': define_d... | Rename repository definition function (#<I>) | py |
diff --git a/vis/optimizer.py b/vis/optimizer.py
index <HASH>..<HASH> 100644
--- a/vis/optimizer.py
+++ b/vis/optimizer.py
@@ -142,7 +142,7 @@ class Optimizer(object):
# 0 learning phase for 'test'
computed_values = self.compute_fn([seed_input, 0])
losses = computed_values[:len(se... | Updating the named_losses assignment so that it will properly display when running the library with Python 3+. | py |
diff --git a/src/main/python/succubus/daemonize.py b/src/main/python/succubus/daemonize.py
index <HASH>..<HASH> 100644
--- a/src/main/python/succubus/daemonize.py
+++ b/src/main/python/succubus/daemonize.py
@@ -138,8 +138,9 @@ class Daemon(object):
pid = os.getpid()
file(self.pid_file, 'w+').write("%s... | Do not rely on SIGINT handler, use own handler instead In some scenarios (e.g. our internal build server), the handler for SIGINT is signal.SIG_IGN, i.e. the signal is ignored. In this case, the daemon will not stop and the init script will eventually send SIGKILL, which prevents a clean shutdown. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,6 @@ setup(
keywords = "google gmail",
url = "https://github.com/charlierguo/gmail",
packages=['gmail'],
- package_dir={'gmail': ''},
long_description=read('README.md'),
classifiers=[
... | No need for package_dir in setup.py | py |
diff --git a/pymatgen/entries/compatibility.py b/pymatgen/entries/compatibility.py
index <HASH>..<HASH> 100644
--- a/pymatgen/entries/compatibility.py
+++ b/pymatgen/entries/compatibility.py
@@ -554,11 +554,10 @@ class CorrectionsList(Compatibility):
# try:
corrections = self.get_corrections_dict(entr... | updated Compat classes with new EnergyAdjustment | py |
diff --git a/moto/utilities/utils.py b/moto/utilities/utils.py
index <HASH>..<HASH> 100644
--- a/moto/utilities/utils.py
+++ b/moto/utilities/utils.py
@@ -1,6 +1,10 @@
import json
import random
import string
+import six
+
+if six.PY2:
+ from io import open
def random_string(length=None):
@@ -18,5 +22,5 @@ de... | Add encoding-param to open(), in case the underlying OS has a different default (#<I>) | py |
diff --git a/cherrypy/_cphttptools.py b/cherrypy/_cphttptools.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cphttptools.py
+++ b/cherrypy/_cphttptools.py
@@ -412,9 +412,12 @@ def getObjFromPath(objPathList, objCache):
"""
# Let cpg be the first valid object.
validObjects = ["cpg"]
-
+
# Sc... | Changed the behavior introduced by ticket #<I>. It broke some code that relied on getting the unmangled filename on default(). Now it just searches for the objects with the mangled name, but doesnt keep the URL mangled. | py |
diff --git a/benchexec/tools/cbmc.py b/benchexec/tools/cbmc.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/cbmc.py
+++ b/benchexec/tools/cbmc.py
@@ -34,7 +34,8 @@ class Tool(benchexec.tools.template.BaseTool):
REQUIRED_PATHS = [
"cbmc",
- "cbmc-binary"
+ ... | Add goto-cc to required paths for CBMC goto-cc is now required by the wrapper script, and seemingly isn't actually found at runtime (although I don't understand where "required_files" would even be used in a meaningful way). | py |
diff --git a/pyrogram/client/methods/bots/request_callback_answer.py b/pyrogram/client/methods/bots/request_callback_answer.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/methods/bots/request_callback_answer.py
+++ b/pyrogram/client/methods/bots/request_callback_answer.py
@@ -25,9 +25,8 @@ class RequestCallbackAn... | Mention timeout and retries in docs for request_callback_answer | py |
diff --git a/jishaku/cog_base.py b/jishaku/cog_base.py
index <HASH>..<HASH> 100644
--- a/jishaku/cog_base.py
+++ b/jishaku/cog_base.py
@@ -21,6 +21,7 @@ import itertools
import os
import os.path
import re
+import sys
import time
import traceback
import typing
@@ -90,7 +91,13 @@ class JishakuBase(commands.Cog): #... | Add <I> shim for asyncio.current_task(), since it is deprecated in <I> | py |
diff --git a/nifgafix.py b/nifgafix.py
index <HASH>..<HASH> 100755
--- a/nifgafix.py
+++ b/nifgafix.py
@@ -7,6 +7,8 @@ PREFIXES = makePrefixes('NIFGA', 'NIFSTD', 'owl')
g = rdflib.Graph()
g.parse('http://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-nifstd.owl', format='xml')
-ng = makeGraph('NIFGA-Equivs'... | nifgafix added ontology line | py |
diff --git a/pyemma/msm/analysis/dense/pcca.py b/pyemma/msm/analysis/dense/pcca.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/analysis/dense/pcca.py
+++ b/pyemma/msm/analysis/dense/pcca.py
@@ -566,6 +566,6 @@ class PCCA:
"""
res = []
assignment = self.metastable_assignment
- for i in... | [msm.analysis.dense.pcca]: corrected iteration | py |
diff --git a/craftai/__init__.py b/craftai/__init__.py
index <HASH>..<HASH> 100644
--- a/craftai/__init__.py
+++ b/craftai/__init__.py
@@ -1,7 +1,7 @@
"""craft ai API python 2/3 client"""
__title__ = "craft-ai"
-__version__ = "1.4.0"
+__version__ = "1.4.1"
__author__ = "craft ai"
__license__ = "BSD-3-Clause"
__c... | Bumping from <I> to <I> | py |
diff --git a/lazysignup/views.py b/lazysignup/views.py
index <HASH>..<HASH> 100644
--- a/lazysignup/views.py
+++ b/lazysignup/views.py
@@ -12,7 +12,9 @@ from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
-@logi... | The convert view itself needs to allow a lazy signup, as it might be the first authenticated view the user hits. | py |
diff --git a/discord/gateway.py b/discord/gateway.py
index <HASH>..<HASH> 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -63,6 +63,7 @@ class KeepAliveHandler(threading.Thread):
self.msg = 'Keeping websocket alive with sequence %s.'
self._stop_ev = threading.Event()
self._last_ac... | Add DiscordWebSocket.latency to measure discord heartbeat latency. | py |
diff --git a/librosa/tf_agc.py b/librosa/tf_agc.py
index <HASH>..<HASH> 100644
--- a/librosa/tf_agc.py
+++ b/librosa/tf_agc.py
@@ -79,8 +79,7 @@ def tf_agc(frame_iterator, sample_rate=22050, **kwargs):
# initialize the mel filter bank after grabbing the first frame
f2a = _mfcc.melfb(... | closer match to dpwe's code | py |
diff --git a/multiqc/utils/config.py b/multiqc/utils/config.py
index <HASH>..<HASH> 100755
--- a/multiqc/utils/config.py
+++ b/multiqc/utils/config.py
@@ -133,6 +133,9 @@ def mqc_load_userconfig():
# Load and parse a user config file if we find it
mqc_load_config(os.path.expanduser('~/.multiqc_config.yaml')... | Also load config file from working directory if we find one. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,6 @@ setup(
url='https://github.com/vmware/column',
license='BSD-2',
author='VMware',
- author_email='openstack@vmware.com',
description='A thin wrapper on top of ansible with a stable API.',
... | Remove unrelated email address The email address of <EMAIL> is unrelated to the column project. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -63,7 +63,8 @@ setup(
'font-v',
'defcon',
'ufolint',
- 'ttfautohint-py'
+ 'ttfautohint-py',
+ 'opentype-sanitizer',
],
entry_points={
'console_scripts': ['font... | setup.py: add opentype-sanitizer to install_requires | py |
diff --git a/pifpaf/drivers/mysql.py b/pifpaf/drivers/mysql.py
index <HASH>..<HASH> 100644
--- a/pifpaf/drivers/mysql.py
+++ b/pifpaf/drivers/mysql.py
@@ -20,12 +20,18 @@ class MySQLDriver(drivers.Driver):
super(MySQLDriver, self)._setUp()
self.socket = os.path.join(self.tempdir, "mysql.socket")
... | mysql: add --no-defaults and --tmpdir to mysqld If MySQL is compiled with some default flags, this can interfere with running mysqld locally. We also specify the tmpdir, in case the default is not writable by pifpaf. | py |
diff --git a/phoebe/kelly.py b/phoebe/kelly.py
index <HASH>..<HASH> 100644
--- a/phoebe/kelly.py
+++ b/phoebe/kelly.py
@@ -309,13 +309,13 @@ def legacy_to_phoebe(inputfile, create_body=False, mesh='wd'):
lcdep1[index]['passband'] = val
lcdep2[index]['passband'] = val
- if key == ... | Importing legacy files did not convert passband luminosities and third light contamination from str to float; fixed. | py |
diff --git a/travis_docs_builder.py b/travis_docs_builder.py
index <HASH>..<HASH> 100755
--- a/travis_docs_builder.py
+++ b/travis_docs_builder.py
@@ -14,6 +14,7 @@ import subprocess
import shutil
import sys
import uuid
+import shlex
def encrypt_variable(variable, repo, public_key=None):
"""
@@ -96,6 +97,8 @... | Print the command itself, with token removed | py |
diff --git a/niworkflows/reports/core.py b/niworkflows/reports/core.py
index <HASH>..<HASH> 100644
--- a/niworkflows/reports/core.py
+++ b/niworkflows/reports/core.py
@@ -135,8 +135,9 @@ class Reportlet(Element):
if not config:
raise RuntimeError('Reportlet must have a config object')
+ #... | PY<I>: Sort dictionary for consistent behavior | py |
diff --git a/hedgehog/client/async_client.py b/hedgehog/client/async_client.py
index <HASH>..<HASH> 100644
--- a/hedgehog/client/async_client.py
+++ b/hedgehog/client/async_client.py
@@ -175,10 +175,14 @@ class AsyncClient:
# either, all messages are replies corresponding to the previous requests,
... | add assertions about asynchronity of updates | py |
diff --git a/salt/modules/virt.py b/salt/modules/virt.py
index <HASH>..<HASH> 100644
--- a/salt/modules/virt.py
+++ b/salt/modules/virt.py
@@ -438,6 +438,42 @@ def start(vm_):
return create(vm_)
+def reboot(vm_):
+ '''
+ Reboot a domain via ACPI request
+
+ CLI Example::
+
+ salt '*' virt.r... | Add functions for rebooting/resetting VMs | py |
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_build_meta.py
+++ b/setuptools/tests/test_build_meta.py
@@ -256,3 +256,16 @@ class TestBuildMetaBackend:
build_backend = self.get_build_backend()
with pytest.r... | Add failing test suite for build_meta_legacy This runs all build_meta tests, plus a test that it is possible to import from the directory containing `setup.py` when using the build_meta_legacy backend. | py |
diff --git a/pycomb/test/test_combinators.py b/pycomb/test/test_combinators.py
index <HASH>..<HASH> 100644
--- a/pycomb/test/test_combinators.py
+++ b/pycomb/test/test_combinators.py
@@ -72,6 +72,12 @@ class TestCombinators(TestCase):
self.assertEqual(StructType, type(r))
+ def test_struct_of_struct(sel... | Preliminary commits for context support | py |
diff --git a/knox/views.py b/knox/views.py
index <HASH>..<HASH> 100644
--- a/knox/views.py
+++ b/knox/views.py
@@ -1,3 +1,4 @@
+from django.contrib.auth.signals import user_logged_in, user_logged_out
from rest_framework import status
from rest_framework.authentication import BasicAuthentication
from rest_framework.p... | Send out signals upon login and logout | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -57,6 +57,18 @@ setup(name='python-bitcoin',
'Topic :: Office/Business :: Financial',
'Topic :: Software Development :: Libraries :: Python Modules',
],
+ install_requires=[
+ 'bigfloat>=0.3.0a... | Add requirements to setup.py. | py |
diff --git a/pages/admin/__init__.py b/pages/admin/__init__.py
index <HASH>..<HASH> 100644
--- a/pages/admin/__init__.py
+++ b/pages/admin/__init__.py
@@ -21,6 +21,7 @@ from pages.admin.utils import get_connected, make_inline_admin
from pages.admin.forms import PageForm
from pages.admin.views import traduction, get_c... | Import admin.widgets to make sure they are registered | py |
diff --git a/AegeanTools/cluster.py b/AegeanTools/cluster.py
index <HASH>..<HASH> 100644
--- a/AegeanTools/cluster.py
+++ b/AegeanTools/cluster.py
@@ -72,10 +72,10 @@ def pairwise_ellpitical_binary(sources, eps, far=None):
if far is None:
far = max(a.a/3600 for a in sources)
l = len(sources)
- dis... | fix bug in pairwise_epplitical_binary that causes distant sources to be associated | py |
diff --git a/dfply/summarize.py b/dfply/summarize.py
index <HASH>..<HASH> 100644
--- a/dfply/summarize.py
+++ b/dfply/summarize.py
@@ -8,8 +8,6 @@ def summarize(df, **kwargs):
@dfpipe
def summarize_each(df, functions, *args):
- print functions
- #print args
columns, values = [], []
for arg in args:
... | removed print statement causing trouble for py3 | py |
diff --git a/rest_auth/serializers.py b/rest_auth/serializers.py
index <HASH>..<HASH> 100644
--- a/rest_auth/serializers.py
+++ b/rest_auth/serializers.py
@@ -135,7 +135,16 @@ class JWTSerializer(serializers.Serializer):
Serializer for JWT authentication.
"""
token = serializers.CharField()
- user = U... | Allow using custom UserDetailsSerializer with JWTSerializer | py |
diff --git a/pyautogui/__init__.py b/pyautogui/__init__.py
index <HASH>..<HASH> 100644
--- a/pyautogui/__init__.py
+++ b/pyautogui/__init__.py
@@ -742,15 +742,15 @@ def _mouseMoveDragTo(moveOrDrag, x, y, duration, tween, button=None):
# Non-instant moving/dragging involves tweening:
segments = max(width, he... | Added float() calls so the code works with Python 2. | py |
diff --git a/remi/gui.py b/remi/gui.py
index <HASH>..<HASH> 100644
--- a/remi/gui.py
+++ b/remi/gui.py
@@ -1737,15 +1737,15 @@ class CheckBox(Input):
self.set_value(checked)
def onchange(self, value):
- self.set_value(value in ('True', 'true'))
+ self.set_value(value in ('True', 'true'), 0... | Checkbox set_value, updates by default. Otherwise, setting value programmatically does not shows. | py |
diff --git a/openpnm/utils/misc.py b/openpnm/utils/misc.py
index <HASH>..<HASH> 100644
--- a/openpnm/utils/misc.py
+++ b/openpnm/utils/misc.py
@@ -9,6 +9,7 @@ import scipy.sparse
import time as _time
from collections import OrderedDict
from docrep import DocstringProcessor
+from IPython.core.magics.execution import ... | Use IPython's timeit backend to format time duration + toc always returns time even in ~quiet mode | py |
diff --git a/facebook.py b/facebook.py
index <HASH>..<HASH> 100755
--- a/facebook.py
+++ b/facebook.py
@@ -381,7 +381,7 @@ def parse_signed_request(signed_request, app_secret):
return False # raise ValueError('signed_request had corrupted payload')
data = _parse_json(data)
- if data.get('algorithm').... | It's possible to receive a signed_request which doesn't include an algorithm | py |
diff --git a/test/acceptance/test_cli.py b/test/acceptance/test_cli.py
index <HASH>..<HASH> 100644
--- a/test/acceptance/test_cli.py
+++ b/test/acceptance/test_cli.py
@@ -118,7 +118,6 @@ class TestCLI(unittest.TestCase):
self.assertIsInstance(json.loads(got_output), list)
- @unittest.skip('refactoring n... | Expect to fail until --verbose option activated | py |
diff --git a/tcex/threat_intelligence/mappings/tag.py b/tcex/threat_intelligence/mappings/tag.py
index <HASH>..<HASH> 100644
--- a/tcex/threat_intelligence/mappings/tag.py
+++ b/tcex/threat_intelligence/mappings/tag.py
@@ -39,7 +39,10 @@ class Tag:
params:
group_type:
"""
- gro... | adding support for getting tasks from tags in the TI module | py |
diff --git a/amqpconsumer/events.py b/amqpconsumer/events.py
index <HASH>..<HASH> 100644
--- a/amqpconsumer/events.py
+++ b/amqpconsumer/events.py
@@ -187,7 +187,7 @@ class EventConsumer(object):
When completed, the on_queue_declareok method will be invoked by pika.
"""
logger.debug("Declarin... | Set correct parameters for `queue_declare` Between pika <<I> and pika><I> there's a signature change for `queue_declare`. To prevent the parameter order from messing with our versions just declare everything as a kwarg since these remain the same between versions. See current: <URL> | py |
diff --git a/imagemounter/mount_images.py b/imagemounter/mount_images.py
index <HASH>..<HASH> 100644
--- a/imagemounter/mount_images.py
+++ b/imagemounter/mount_images.py
@@ -113,12 +113,6 @@ def main():
help="prevent trying to mount the image as a single volume if no volume system was found")
... | Warn on not running as root. Will probably crash later in execution. | py |
diff --git a/ratcave/shader.py b/ratcave/shader.py
index <HASH>..<HASH> 100644
--- a/ratcave/shader.py
+++ b/ratcave/shader.py
@@ -139,6 +139,4 @@ class Shader(ugl.BindingContextMixin, ugl.BindNoTargetMixin):
# obtain the uniform location
if not loc:
loc = self.get_uniform_location(name)
... | Performed transpose directly in OpenGL function. | py |
diff --git a/wandb/apis/internal.py b/wandb/apis/internal.py
index <HASH>..<HASH> 100644
--- a/wandb/apis/internal.py
+++ b/wandb/apis/internal.py
@@ -783,7 +783,7 @@ class Api(object):
),
'Content-Length': str(total - completed)
}
- ... | File syncing: retry on client timeouts | py |
diff --git a/tensorflow_datasets/core/features/features_dict.py b/tensorflow_datasets/core/features/features_dict.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/core/features/features_dict.py
+++ b/tensorflow_datasets/core/features/features_dict.py
@@ -189,11 +189,15 @@ class FeaturesDict(top_level_feature.To... | adds some helpful information to errors raised during encode_example PiperOrigin-RevId: <I> | py |
diff --git a/outbox.py b/outbox.py
index <HASH>..<HASH> 100644
--- a/outbox.py
+++ b/outbox.py
@@ -139,12 +139,17 @@ class Outbox(object):
if mode == 'TLS':
smtp.starttls()
- smtp.login(self.username, self.password)
+ self.authenticate(smtp)
+
return smtp
def connec... | Add an Outbox subclass for making authentication conditional. | py |
diff --git a/Malmo/samples/Python_examples/tabular_q_learning.py b/Malmo/samples/Python_examples/tabular_q_learning.py
index <HASH>..<HASH> 100755
--- a/Malmo/samples/Python_examples/tabular_q_learning.py
+++ b/Malmo/samples/Python_examples/tabular_q_learning.py
@@ -283,7 +283,7 @@ class TabQAgent(object):
... | Fixed float division error for color in tabular_q_learning.py caused by Python 3 division | py |
diff --git a/dvc/output/base.py b/dvc/output/base.py
index <HASH>..<HASH> 100644
--- a/dvc/output/base.py
+++ b/dvc/output/base.py
@@ -104,8 +104,7 @@ class OutputBase(object):
if remote:
parsed = urlparse(path)
return remote.path_info / parsed.path.lstrip("/")
- else:
- ... | output: base: remove unnecessary 'else' Reported by DeepSource. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,5 +56,6 @@ setup(
test_suite='tests',
classifiers=CLASSIFIERS,
scripts=['bin/num2words'],
- install_requires=["docopt>=0.6.2"]
+ install_requires=["docopt>=0.6.2"],
+ tests_require=['delegator.py'],... | Add Delegator.py to test dependencies (#<I>) Delegator.py is used for cli tests but isn't included in dependencies. | py |
diff --git a/tests/test_deserialization.py b/tests/test_deserialization.py
index <HASH>..<HASH> 100644
--- a/tests/test_deserialization.py
+++ b/tests/test_deserialization.py
@@ -18,7 +18,6 @@ from tests.base import (
central,
ALL_FIELDS,
User,
- DummyModel,
)
class TestDeserializingNone:
@@ -514,... | Add test for deserializing UUID objects | py |
diff --git a/datahandling/datahandling/datahandling.py b/datahandling/datahandling/datahandling.py
index <HASH>..<HASH> 100644
--- a/datahandling/datahandling/datahandling.py
+++ b/datahandling/datahandling/datahandling.py
@@ -1552,6 +1552,31 @@ def IFFT_filter(Signal, SampleFreq, lowerFreq, upperFreq):
print("don... | added a butterworth filter func | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from distutils.core import setup
setup(
name='py-august',
- version='0.10.1',
+ version='0.11.0',
packages=['august'],
url='https://github.com/snjoetw/py-august',
license='MIT', | - bumped version to <I> | py |
diff --git a/jacquard/jacquard.py b/jacquard/jacquard.py
index <HASH>..<HASH> 100644
--- a/jacquard/jacquard.py
+++ b/jacquard/jacquard.py
@@ -169,7 +169,8 @@ def _dispatch(modules, arguments):
command_validator.preflight(command, args)
logger.info("Jacquard begins (v{})", __version__)
- logg... | ex-<I> (cgates): Adjusted to show log basename instead of full path | py |
diff --git a/salt/utils/event.py b/salt/utils/event.py
index <HASH>..<HASH> 100644
--- a/salt/utils/event.py
+++ b/salt/utils/event.py
@@ -160,10 +160,13 @@ class EventPublisher(multiprocessing.Process):
epub_sock.bind(epub_uri)
epull_sock.bind(epull_uri)
# Restrict access to the sockets
+ ... | Enable global event communication when the client_acl is turned on | py |
diff --git a/djstripe/settings.py b/djstripe/settings.py
index <HASH>..<HASH> 100644
--- a/djstripe/settings.py
+++ b/djstripe/settings.py
@@ -54,9 +54,6 @@ INVOICE_FROM_EMAIL = getattr(settings, "DJSTRIPE_INVOICE_FROM_EMAIL", "billing@e
PAYMENTS_PLANS = getattr(settings, "DJSTRIPE_PLANS", {})
PLAN_HIERARCHY = getatt... | Remove completely unused PASSWORD settings | py |
diff --git a/python/proton/_handlers.py b/python/proton/_handlers.py
index <HASH>..<HASH> 100644
--- a/python/proton/_handlers.py
+++ b/python/proton/_handlers.py
@@ -1082,7 +1082,7 @@ class Handshaker(Handler):
@staticmethod
def on_session_remote_open(event):
ssn = event.session
- if ssn.stat... | PROTON-<I>: session state is a property, not a method This closes #<I>. | py |
diff --git a/simplesteem/simplesteem.py b/simplesteem/simplesteem.py
index <HASH>..<HASH> 100644
--- a/simplesteem/simplesteem.py
+++ b/simplesteem/simplesteem.py
@@ -478,4 +478,24 @@ class SimpleSteem:
return True
+ def dex_ticker(self):
+ d = Dex(self.steem_instance())
+ self.tic... | Added new method for checking Dex ticker and selling steem for sbd | py |
diff --git a/consoleprinter/__init__.py b/consoleprinter/__init__.py
index <HASH>..<HASH> 100644
--- a/consoleprinter/__init__.py
+++ b/consoleprinter/__init__.py
@@ -2487,9 +2487,10 @@ def remove_extra_indentation(doc, stop_looking_when_encountered=None, padding=0,
return doc
newdoc = ""
- whitespac... | Emily Dickinson: My friends are my estate. Tuesday <I> June <I> (week:<I> day:<I>), <I>:<I>:<I> | py |
diff --git a/msvccompiler.py b/msvccompiler.py
index <HASH>..<HASH> 100644
--- a/msvccompiler.py
+++ b/msvccompiler.py
@@ -187,6 +187,19 @@ def get_build_architecture():
j = string.find(sys.version, ")", i)
return sys.version[i+len(prefix):j]
+def normalize_and_reduce_paths(paths):
+ """Return a list of ... | Backport <I>: SF #<I>, MSVCCompiler creates redundant and long PATH strings If MSVCCompiler.initialize() was called multiple times, the path would get duplicated. On Windows, this is a problem because the path is limited to 4k. There's no benefit in adding a path multiple times, so prevent that from occuring. We al... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ with open('LICENSE') as fl:
setup(
name='CurrencyConverter',
- version='0.14.2',
+ version='0.14.3',
author='Alex Prengère',
author_email='alexprengere@gmail.com',
url='https://githu... | Bump to version <I> | py |
diff --git a/polyaxon/api/utils/views.py b/polyaxon/api/utils/views.py
index <HASH>..<HASH> 100644
--- a/polyaxon/api/utils/views.py
+++ b/polyaxon/api/utils/views.py
@@ -125,7 +125,7 @@ class AuditorMixinView(object):
def perform_update(self, serializer):
instance = serializer.save()
- auditor.r... | Fix auditor mixing view; was the wrong event for update | py |
diff --git a/dashboard/modules/job/sdk.py b/dashboard/modules/job/sdk.py
index <HASH>..<HASH> 100644
--- a/dashboard/modules/job/sdk.py
+++ b/dashboard/modules/job/sdk.py
@@ -252,7 +252,7 @@ class JobSubmissionClient(SubmissionClient):
>>> from ray.job_submission import JobSubmissionClient
>>>... | [Job] Fix typo in job sdk docstring (#<I>) | py |
diff --git a/src/pytrackr/device.py b/src/pytrackr/device.py
index <HASH>..<HASH> 100644
--- a/src/pytrackr/device.py
+++ b/src/pytrackr/device.py
@@ -1,3 +1,4 @@
+import datetime
class trackrDevice(object):
@@ -12,13 +13,21 @@ class trackrDevice(object):
return self.json_state.get('trackerId', None)
... | Covert last updated timestamp to same format as last seen. | py |
diff --git a/src/google_music_proto/mobileclient/schemas.py b/src/google_music_proto/mobileclient/schemas.py
index <HASH>..<HASH> 100644
--- a/src/google_music_proto/mobileclient/schemas.py
+++ b/src/google_music_proto/mobileclient/schemas.py
@@ -897,7 +897,7 @@ class RadioStationSchema(MobileClientSchema):
recentTim... | skipEventHistory is probably a list of dicts | py |
diff --git a/marionette_tg/plugins/_tg.py b/marionette_tg/plugins/_tg.py
index <HASH>..<HASH> 100644
--- a/marionette_tg/plugins/_tg.py
+++ b/marionette_tg/plugins/_tg.py
@@ -408,8 +408,7 @@ class AmazonMsgLensHandler(FteHandler):
lens += [key] * amazon_msg_lens[key]
target_len_in_bytes = random... | Update _tg.py Fixing unfortunate line break from Sublime Text | py |
diff --git a/amino/logging.py b/amino/logging.py
index <HASH>..<HASH> 100644
--- a/amino/logging.py
+++ b/amino/logging.py
@@ -115,17 +115,18 @@ _file_fmt = ('{asctime} [{levelname} @ {name}:{funcName}:{lineno}] {message}')
def amino_file_logging(logger: logging.Logger, level: int=logging.DEBUG, logfile: Path=defa... | return file handler from `amino_file_logging` | py |
diff --git a/salt/states/mssql_user.py b/salt/states/mssql_user.py
index <HASH>..<HASH> 100644
--- a/salt/states/mssql_user.py
+++ b/salt/states/mssql_user.py
@@ -74,7 +74,7 @@ def present(name, login=None, domain=None, database=None, roles=None, options=No
domain... | typo in mssql_user state | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,7 +47,6 @@ setup(
'matplotlib'],
dependency_links=[
'git+https://github.com/NeuralEnsemble/libNeuroML.git@development#egg=libNeuroML',
- 'git+https://github.com/rgerkin/pylems.git@master#egg=pylem... | Removed dependency link to GitHub now that pylems-<I> is on PyPI | py |
diff --git a/facepy/graph_api.py b/facepy/graph_api.py
index <HASH>..<HASH> 100755
--- a/facepy/graph_api.py
+++ b/facepy/graph_api.py
@@ -134,7 +134,7 @@ class GraphAPI(object):
yield data
- def _query(self, method, path, data={}, page=False):
+ def _query(self, method, path, data=None, page=Fal... | Avoid using mutables as default arguments See 'Principle of Least Astonishment in Python: The Mutable Default Argument' for really good references on why you should avoid assigning a mutable as a default argument unless you really really know what you are doing. * <URL> | py |
diff --git a/stdeb/util.py b/stdeb/util.py
index <HASH>..<HASH> 100644
--- a/stdeb/util.py
+++ b/stdeb/util.py
@@ -843,9 +843,6 @@ class DebianInfo:
mime_desktop_files = parse_vals(cfg,module_name,'MIME-Desktop-Files')
if len(mime_desktop_files):
need_custom_binary_target = True
- ... | remove deprecated dh_desktop call (#<I>) | py |
diff --git a/raiden/tests/integration/test_matrix_transport.py b/raiden/tests/integration/test_matrix_transport.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/integration/test_matrix_transport.py
+++ b/raiden/tests/integration/test_matrix_transport.py
@@ -403,8 +403,7 @@ def test_matrix_tx_error_handling(
)
... | the node is killed when an error occurs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ setup(
description='User interface widgets for use with Pygame',
py_modules=['pygwidgets'],
package_dir = {'': 'src'},
- url='http://www.furrypants.com/',
+ url='https://github.com/IrvKalb/pyg... | Update setup.py Changed project location to github | py |
diff --git a/test/mri/test_diffusion.py b/test/mri/test_diffusion.py
index <HASH>..<HASH> 100755
--- a/test/mri/test_diffusion.py
+++ b/test/mri/test_diffusion.py
@@ -27,7 +27,7 @@ BASE_WORK_PATH = os.path.abspath(os.path.join(
class TestDiffusion(TestCase):
- ARCHIVE_PATH = '/Users/tclose/Data/MBI/noddi'
+ ... | slight modifications to get tests to run on nitrous | py |
diff --git a/nba_py/team.py b/nba_py/team.py
index <HASH>..<HASH> 100644
--- a/nba_py/team.py
+++ b/nba_py/team.py
@@ -292,11 +292,8 @@ class TeamShootingSplits(_TeamDashboard):
def shot_type_summary(self):
return _api_scrape(self.json, 5)
- def shot_type_detail(self):
- return _api_scrape(sel... | Fix index of teamdashboardbysplits #<I> | py |
diff --git a/scapy/utils6.py b/scapy/utils6.py
index <HASH>..<HASH> 100644
--- a/scapy/utils6.py
+++ b/scapy/utils6.py
@@ -252,9 +252,10 @@ def in6_addrtovendor(addr):
"""
Extract the MAC address from a modified EUI-64 constructed IPv6
address provided and use the IANA oui.txt file to get the vendor.
- ... | utils6: Updates in6_addrtovendor docstring When loading the manuf database, Scapy will now attempt to discover where the database is located in the filesystem, not attempt to find it by the absolute path that was referenced previously in the docstring. | py |
diff --git a/pypsa/linopf.py b/pypsa/linopf.py
index <HASH>..<HASH> 100644
--- a/pypsa/linopf.py
+++ b/pypsa/linopf.py
@@ -241,7 +241,7 @@ def define_nodal_balance_constraints(n, sns):
lhs = (pd.concat([bus_injection(*args) for args in args], axis=1)
.groupby(axis=1, level=0)
.agg(lambda x:... | linopf.py: fill_value for buses without any components in KVL constraint | py |
diff --git a/spyderlib/utils/codeanalysis.py b/spyderlib/utils/codeanalysis.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/codeanalysis.py
+++ b/spyderlib/utils/codeanalysis.py
@@ -69,10 +69,11 @@ def check_with_pyflakes(source_code, filename=None):
w = Checker(tree, filename)
w.messages.sort(k... | Correctly decode source code after flake check | py |
diff --git a/rest_mock_server/core/extractor.py b/rest_mock_server/core/extractor.py
index <HASH>..<HASH> 100644
--- a/rest_mock_server/core/extractor.py
+++ b/rest_mock_server/core/extractor.py
@@ -9,13 +9,15 @@ Given a view::
class SomeView(APIView):
"""
- URL: /api/some/view/__key[id:int]?para... | Updated how keys should work in extractor docstring | py |
diff --git a/pynnotator/install.py b/pynnotator/install.py
index <HASH>..<HASH> 100755
--- a/pynnotator/install.py
+++ b/pynnotator/install.py
@@ -83,6 +83,7 @@ class Installer(object):
self.install_snpeff()
self.install_gemini()
self.install_vep()
+ self.install_vcf_anno()
def ... | finally fix installation for ubuntu | py |
diff --git a/cdpybio/bedtools.py b/cdpybio/bedtools.py
index <HASH>..<HASH> 100644
--- a/cdpybio/bedtools.py
+++ b/cdpybio/bedtools.py
@@ -1,3 +1,4 @@
+import copy
import pandas as pd
import pybedtools as pbt
@@ -46,6 +47,7 @@ def beds_to_boolean(beds, ref=None, beds_sorted=False, ref_sorted=False,
that ov... | Update Make deepcopy of input bed file list to avoid changing values. | py |
diff --git a/furious/async.py b/furious/async.py
index <HASH>..<HASH> 100644
--- a/furious/async.py
+++ b/furious/async.py
@@ -180,6 +180,12 @@ class Async(object):
"""job is stored as a (function path, args, kwargs) tuple."""
return self._options['job']
+ @property
+ def recursion_depth(self)... | Add a property to get the current recursion depth | py |
diff --git a/lime/submodular_pick.py b/lime/submodular_pick.py
index <HASH>..<HASH> 100644
--- a/lime/submodular_pick.py
+++ b/lime/submodular_pick.py
@@ -122,3 +122,4 @@ class SubmodularPick(object):
remaining_indices -= {best_ind}
self.sp_explanations = [self.explanations[i] for i in V... | saves picked indices close issue #<I> | py |
diff --git a/airtest/core/android/adb.py b/airtest/core/android/adb.py
index <HASH>..<HASH> 100644
--- a/airtest/core/android/adb.py
+++ b/airtest/core/android/adb.py
@@ -1535,7 +1535,8 @@ class ADB(object):
m = packageRE.findall(ret)
if m:
return m[-1]
- return ""
+ else:
+... | fix get top activity in dumpsys window windows (cherry picked from commit c8f6e2fdaffc0d4b<I>b6b<I>ffadddaadb1c<I>fc) | py |
diff --git a/azure/servicemanagement/servicemanagementservice.py b/azure/servicemanagement/servicemanagementservice.py
index <HASH>..<HASH> 100644
--- a/azure/servicemanagement/servicemanagementservice.py
+++ b/azure/servicemanagement/servicemanagementservice.py
@@ -1197,9 +1197,13 @@ class ServiceManagementService(_Se... | Update the list of possible role_size | py |
diff --git a/openquake/hazardlib/tests/gsim/arroyo_2010_test.py b/openquake/hazardlib/tests/gsim/arroyo_2010_test.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/tests/gsim/arroyo_2010_test.py
+++ b/openquake/hazardlib/tests/gsim/arroyo_2010_test.py
@@ -19,6 +19,9 @@
from openquake.hazardlib.gsim.arroyo_2010 ... | Update arroyo_<I>_test.py Added a short note to explain the creation of the validation tables. | py |
diff --git a/src/python/pants/backend/codegen/tasks/wire_gen.py b/src/python/pants/backend/codegen/tasks/wire_gen.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/codegen/tasks/wire_gen.py
+++ b/src/python/pants/backend/codegen/tasks/wire_gen.py
@@ -39,7 +39,6 @@ class WireGen(CodeGen, JvmToolTaskMixin):
... | Remove an unused config reference. If needed in the future, it can be added back as an option. Testing Done: CI passes: <URL> | py |
diff --git a/trimesh/exchange/gltf.py b/trimesh/exchange/gltf.py
index <HASH>..<HASH> 100644
--- a/trimesh/exchange/gltf.py
+++ b/trimesh/exchange/gltf.py
@@ -1140,14 +1140,14 @@ def _read_buffers(header, buffers, mesh_kwargs, merge_primitives=False, resolver
else:
name = "GLTF_geo... | Making the code flake8 compliant | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -74,7 +74,7 @@ configuration = {
'packages': ['hdbscan', 'hdbscan.tests'],
'install_requires': ['numpy',
'scikit-learn>=0.16',
- 'cython >= 0.17'],
+ ... | Update cython install requirement | py |
diff --git a/gwpy/tests/test_plotter.py b/gwpy/tests/test_plotter.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/test_plotter.py
+++ b/gwpy/tests/test_plotter.py
@@ -81,14 +81,14 @@ class Mixin(object):
fig = self.FIGURE_CLASS()
return fig, fig.gca()
-
-class PlotTestCase(Mixin, unittest.TestCase):... | tests: move use_tex decorator to mixin class | py |
diff --git a/i3pystatus/core/desktop.py b/i3pystatus/core/desktop.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/core/desktop.py
+++ b/i3pystatus/core/desktop.py
@@ -33,7 +33,7 @@ try:
import gi
gi.require_version('Notify', '0.7')
from gi.repository import Notify
-except ImportError:
+except ImportError... | Fix crash on import with desktop notifications when python-gobject is available, but no notification daemon is running. | py |
diff --git a/wandb/internal/file_pusher.py b/wandb/internal/file_pusher.py
index <HASH>..<HASH> 100644
--- a/wandb/internal/file_pusher.py
+++ b/wandb/internal/file_pusher.py
@@ -106,6 +106,7 @@ class FilePusher(object):
if os.path.getsize(path) == 0:
return
+ save_name = wandb.util.to_fo... | On windows, save files into bucket with proper unix-like paths (#<I>) * On windows, save files into bucket with proper unix-like paths * Restore early code saving? * revert changes to meta.py | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.