diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/symfit/contrib/interactive_guess/interactive_guess.py b/symfit/contrib/interactive_guess/interactive_guess.py
index <HASH>..<HASH> 100644
--- a/symfit/contrib/interactive_guess/interactive_guess.py
+++ b/symfit/contrib/interactive_guess/interactive_guess.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
impor... | renamed D to Derivative | py |
diff --git a/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py b/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py
index <HASH>..<HASH> 100644
--- a/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py
+++ b/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py
@@ -171,5 +171,5 ... | changed / operator into // operator - without it in python3 division result changes into float and bootstrap-backed fieldsets are not working correctly (example: col-sm-<I> is generated instead of col-sm-6) | py |
diff --git a/test/unittest_manager.py b/test/unittest_manager.py
index <HASH>..<HASH> 100644
--- a/test/unittest_manager.py
+++ b/test/unittest_manager.py
@@ -68,7 +68,7 @@ class ASTNGManagerTC(unittest.TestCase):
self._test_astng_from_zip('MyPyPa-0.1.0-py2.5.zip')
def test_from_dire... | test: fix yet another cwd dependency | py |
diff --git a/docker/models/images.py b/docker/models/images.py
index <HASH>..<HASH> 100644
--- a/docker/models/images.py
+++ b/docker/models/images.py
@@ -236,13 +236,24 @@ class ImageCollection(Collection):
data (binary): Image data to be loaded.
Returns:
- (generator): Progress outp... | Return Image objects on image.load In before, image.load returns what Docker API returns, which is a text stream. This commits propose an improvement for returning more useful information, which is a list of Image objects being loaded. | py |
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/metadata.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/metadata.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/metadata.py
+++ b/datadog_checks_dev/datadog_checks/dev... | Fix validation (#<I>) | py |
diff --git a/pyvisa-py/usb.py b/pyvisa-py/usb.py
index <HASH>..<HASH> 100644
--- a/pyvisa-py/usb.py
+++ b/pyvisa-py/usb.py
@@ -27,6 +27,22 @@ except ImportError as e:
'Please install PyUSB to use this resource type.\n%s' % e)
raise
+try:
+ _ = usb.core.find()
+except ValueErr... | Add better error message when libraries used by PyUSB are not installed Close #<I> | py |
diff --git a/nanoplot/version.py b/nanoplot/version.py
index <HASH>..<HASH> 100644
--- a/nanoplot/version.py
+++ b/nanoplot/version.py
@@ -1 +1 @@
-__version__ = "0.13.7"
+__version__ = "0.14.0" | bumping version to <I> | py |
diff --git a/giddy/__init__.py b/giddy/__init__.py
index <HASH>..<HASH> 100644
--- a/giddy/__init__.py
+++ b/giddy/__init__.py
@@ -1,4 +1,4 @@
-__version__ = "2.3.1rc6"
+__version__ = "2.3.1"
# __version__ has to be defined in the first line
""" | prepare for a formal release of giddy <I> | py |
diff --git a/tempy/tempy.py b/tempy/tempy.py
index <HASH>..<HASH> 100755
--- a/tempy/tempy.py
+++ b/tempy/tempy.py
@@ -6,8 +6,8 @@ from collections import deque, Iterable
from copy import copy
from functools import wraps
from itertools import chain
+from numbers import Number
from types import GeneratorType
-from u... | Removed redundant _search_for_view calls | py |
diff --git a/arch/zx48k/backend/__parray.py b/arch/zx48k/backend/__parray.py
index <HASH>..<HASH> 100644
--- a/arch/zx48k/backend/__parray.py
+++ b/arch/zx48k/backend/__parray.py
@@ -16,14 +16,14 @@ from .__f16 import f16
def _paddr(offset):
- ''' Generic array address parameter loading.
- Emmits output code... | Update array access to new scheme Now it uses an ARRAY_PTR subroutine so it's useful for pointers to arrays (i.e. arrays ByRef in parameters). | py |
diff --git a/tests/finance/test_risk.py b/tests/finance/test_risk.py
index <HASH>..<HASH> 100644
--- a/tests/finance/test_risk.py
+++ b/tests/finance/test_risk.py
@@ -317,6 +317,24 @@ class TestRisk(zf.WithBenchmarkReturns, zf.ZiplineTestCase):
)
self.assertEqual(test_period['sharpe'], 0.0)
+ def... | TST: Test that sharpe calculation succeeds with <I> benchmark | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -64,7 +64,7 @@ else:
if distro == 'Ubuntu':
data_files.append(('/etc/init',
['debian/upstart/diamond.conf']))
- if distro in ['centos', 'redhat', 'debian']:
+ ... | setup: install init scripts on fedora Treat fedora the same as redhat and centos. | py |
diff --git a/openquake/hazardlib/site.py b/openquake/hazardlib/site.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/site.py
+++ b/openquake/hazardlib/site.py
@@ -387,12 +387,15 @@ class SiteCollection(object):
cols = ' '.join(names)
return {n: self.array[n] for n in names}, {'__pdcolumns__': ... | Supported old SiteCollections | py |
diff --git a/fastTSNE/nearest_neighbors.py b/fastTSNE/nearest_neighbors.py
index <HASH>..<HASH> 100644
--- a/fastTSNE/nearest_neighbors.py
+++ b/fastTSNE/nearest_neighbors.py
@@ -64,7 +64,7 @@ class BallTree(KNNIndex):
self.index.fit(data)
def query_train(self, data, k):
- distances, neighbors = ... | Compute proper number of neighbors in query_train | py |
diff --git a/spyderlib/plugins/ipythonconsole.py b/spyderlib/plugins/ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/ipythonconsole.py
+++ b/spyderlib/plugins/ipythonconsole.py
@@ -1160,8 +1160,7 @@ class IPythonConsole(SpyderPluginWidget):
def add_tab(self, widget, name):
"""Add ta... | IPython Console: Remove icons from its tabs | py |
diff --git a/orator/query/builder.py b/orator/query/builder.py
index <HASH>..<HASH> 100644
--- a/orator/query/builder.py
+++ b/orator/query/builder.py
@@ -1617,6 +1617,7 @@ class QueryBuilder(object):
self.groups += query.groups
self.havings += query.havings
self.orders += query.orders
+ ... | fixed has_many not showing distinct | py |
diff --git a/yowsup/layers/protocol_notifications/layer.py b/yowsup/layers/protocol_notifications/layer.py
index <HASH>..<HASH> 100644
--- a/yowsup/layers/protocol_notifications/layer.py
+++ b/yowsup/layers/protocol_notifications/layer.py
@@ -43,6 +43,8 @@ class YowNotificationsProtocolLayer(YowProtocolLayer):
... | [feat] ignore psa notifications for now | py |
diff --git a/libfuturize/main.py b/libfuturize/main.py
index <HASH>..<HASH> 100644
--- a/libfuturize/main.py
+++ b/libfuturize/main.py
@@ -173,6 +173,7 @@ def main(args=None):
# Set up logging handler
level = logging.DEBUG if options.verbose else logging.INFO
logging.basicConfig(format='%(name)s: %(messa... | futurize: add a logger object (issue #<I>) | py |
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/aptpkg.py
+++ b/salt/modules/aptpkg.py
@@ -544,9 +544,11 @@ def _uninstall(action='remove', name=None, pkgs=None, **kwargs):
return {}
cmd = ['apt-get', '-q', '-y', action]
cmd.extend(targets)
... | The uninstall operation needs to inherit DPKG_ENV_VARS set above as install and upgrade currently do. Without this packages that prompt on removal cause that state to hang. resolvconf in particular prompts you with a warning about rebooting your system after removal. | py |
diff --git a/terms/tests/terms/__init__.py b/terms/tests/terms/__init__.py
index <HASH>..<HASH> 100644
--- a/terms/tests/terms/__init__.py
+++ b/terms/tests/terms/__init__.py
@@ -84,14 +84,14 @@ class TermsTestCase(TestCase):
replace_terms(read_file('4_before.html')),
read_file('4_after.html',... | Adjusts the performance test to Travis. | py |
diff --git a/src/foremast/awslambda/api_gateway_event/api_gateway_event.py b/src/foremast/awslambda/api_gateway_event/api_gateway_event.py
index <HASH>..<HASH> 100644
--- a/src/foremast/awslambda/api_gateway_event/api_gateway_event.py
+++ b/src/foremast/awslambda/api_gateway_event/api_gateway_event.py
@@ -209,7 +209,7 ... | fix: Add variable assignment to replace statement | py |
diff --git a/odl/diagnostics/operator.py b/odl/diagnostics/operator.py
index <HASH>..<HASH> 100644
--- a/odl/diagnostics/operator.py
+++ b/odl/diagnostics/operator.py
@@ -96,7 +96,7 @@ class OperatorTest(object):
"""
self.log('\n== Calculating operator norm ==\n')
- operator_norm = max(power_... | BUG: fix niter -> maxiter in OperatorTest | py |
diff --git a/stripe/test/helper.py b/stripe/test/helper.py
index <HASH>..<HASH> 100644
--- a/stripe/test/helper.py
+++ b/stripe/test/helper.py
@@ -135,6 +135,8 @@ class StripeTestCase(unittest2.TestCase):
stripe.api_base = api_base
stripe.api_key = os.environ.get(
'STRIPE_API_KEY', 't... | Peg the test suite's API version Pegs the test suite's API version so that we can upgrade it independently of the account's implicit version. It's also to check how much breaks when we move to a relatively modern version of the API. | py |
diff --git a/peyotl/nexson_validation/schema.py b/peyotl/nexson_validation/schema.py
index <HASH>..<HASH> 100644
--- a/peyotl/nexson_validation/schema.py
+++ b/peyotl/nexson_validation/schema.py
@@ -582,9 +582,11 @@ _Req_IntNEl_ByI = _EMPTY_DICT
_Req_IntNEl_Dir = {'@id': _VT.STR,
}
_All_IntNEl_ByI ... | should not warn about @otu in internal node | py |
diff --git a/nfc/clf/pn53x.py b/nfc/clf/pn53x.py
index <HASH>..<HASH> 100644
--- a/nfc/clf/pn53x.py
+++ b/nfc/clf/pn53x.py
@@ -164,7 +164,6 @@ class Chipset(object):
error was received.
"""
- # Send a chip command and return the response.
assert len(cmd_data) <= self.host_command_f... | removed comment that is now captured as docstring | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
import io
import os
+
import setuptools | setup: Whitespace nit Guess setuptools strictly isn't in the stdlib... | py |
diff --git a/unittests/test_all.py b/unittests/test_all.py
index <HASH>..<HASH> 100644
--- a/unittests/test_all.py
+++ b/unittests/test_all.py
@@ -117,7 +117,7 @@ testers = [
gccxml10185_tester,
inline_specifier_tester,
from_future_import_tester,
- pep8_tester
+ pep8_tester,
example_tester
] | Add missing comma to unit test list | py |
diff --git a/nodeconductor/cloud/tests/test_cloud.py b/nodeconductor/cloud/tests/test_cloud.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/cloud/tests/test_cloud.py
+++ b/nodeconductor/cloud/tests/test_cloud.py
@@ -4,7 +4,7 @@ from django.core.urlresolvers import reverse
from rest_framework import status
from res... | Simplify imports NC-<I> | py |
diff --git a/recordlinkage/measures.py b/recordlinkage/measures.py
index <HASH>..<HASH> 100644
--- a/recordlinkage/measures.py
+++ b/recordlinkage/measures.py
@@ -1,5 +1,7 @@
# measures.py
+from __future__ import division
+
import numpy
def true_positives(true_match_index, matches_index): | from __future__ import division in measures | py |
diff --git a/pyinfra/modules/iptables.py b/pyinfra/modules/iptables.py
index <HASH>..<HASH> 100644
--- a/pyinfra/modules/iptables.py
+++ b/pyinfra/modules/iptables.py
@@ -13,7 +13,7 @@ from pyinfra.api import operation
@operation
def forward(state, host, dport, to_ip, to_port=None,
- interface='eth0', pr... | Add iptables jump rule as kwarg | py |
diff --git a/tests/test_decorators.py b/tests/test_decorators.py
index <HASH>..<HASH> 100644
--- a/tests/test_decorators.py
+++ b/tests/test_decorators.py
@@ -171,6 +171,23 @@ def test_versioning():
hug.test.get(api, 'v4/echo', text="hi", api_version=3)
+def test_multiple_version_injection():
+ @hug.get... | Add tests to define desired behavior when dealing with None mixed version and version handling with and without request data | py |
diff --git a/gromacs/utilities.py b/gromacs/utilities.py
index <HASH>..<HASH> 100644
--- a/gromacs/utilities.py
+++ b/gromacs/utilities.py
@@ -302,15 +302,18 @@ class FileUtils(object):
else:
return solutions[resolve](filename)
- def infix_filename(self, name, default, infix, ext):
- "... | - fixed: Transformer filenames (needed change in infix) git-svn-id: svn+ssh://gonzo.med.jhmi.edu/scratch/svn/woolf_repository/users/oliver/Library/GromacsWrapper@<I> df5ba8eb-4b0b-<I>-8c<I>-c<I>f<I>b<I>c | py |
diff --git a/tools/sarc.py b/tools/sarc.py
index <HASH>..<HASH> 100644
--- a/tools/sarc.py
+++ b/tools/sarc.py
@@ -176,9 +176,10 @@ class SARCWriter:
# File data
data_offset_writer.write_current_offset()
- for h in sorted_hashes:
+ for i, h in enumerate(sorted_hashes):
str... | tools: sarc: Fix the 'total archive size' value Looks like the total archive size does not include the data padding for the last file. | py |
diff --git a/py/test/selenium/webdriver/common/webserver.py b/py/test/selenium/webdriver/common/webserver.py
index <HASH>..<HASH> 100644
--- a/py/test/selenium/webdriver/common/webserver.py
+++ b/py/test/selenium/webdriver/common/webserver.py
@@ -29,8 +29,10 @@ except ImportError:
import urllib as urllib_request
... | [py] make testing webserver threaded as chrome likes to hog the connection | py |
diff --git a/cocaine/tools/dispatcher.py b/cocaine/tools/dispatcher.py
index <HASH>..<HASH> 100644
--- a/cocaine/tools/dispatcher.py
+++ b/cocaine/tools/dispatcher.py
@@ -34,6 +34,7 @@ class Locator(object):
debugLevel = config['debug']
if debugLevel != 'disable':
ch = logging.StreamHandl... | Subprocess output can now be redirected to the StreamHandler | py |
diff --git a/pyup/bot.py b/pyup/bot.py
index <HASH>..<HASH> 100644
--- a/pyup/bot.py
+++ b/pyup/bot.py
@@ -361,14 +361,14 @@ class Bot(object):
branch = 'pyup-config'
if self.create_branch(branch, delete_empty=True):
content = self.config.generate_config_file(new_config)
- _, c... | remove leading slash from all occurrences of pyup.yml in bot.py | py |
diff --git a/quilt/cli/delete.py b/quilt/cli/delete.py
index <HASH>..<HASH> 100644
--- a/quilt/cli/delete.py
+++ b/quilt/cli/delete.py
@@ -41,7 +41,7 @@ class DeleteCommand(Command):
if args.next:
delete.delete_next(args.remove, args.backup)
else:
- delete.delete_patch(args.pat... | delete --backup logic did not seem to be hooked up | py |
diff --git a/pachyderm/generic_config.py b/pachyderm/generic_config.py
index <HASH>..<HASH> 100644
--- a/pachyderm/generic_config.py
+++ b/pachyderm/generic_config.py
@@ -16,8 +16,6 @@ import string
import ruamel.yaml
from typing import Any, Dict, List, Tuple, Type
-from pachyderm import yaml
-
logger = logging.ge... | Fix writing KeyIndex to YAML It didn't actually need the mixins methods that were added because it's a dataclass, not an enum... | py |
diff --git a/tohu/generators.py b/tohu/generators.py
index <HASH>..<HASH> 100644
--- a/tohu/generators.py
+++ b/tohu/generators.py
@@ -372,6 +372,15 @@ class ItemCollection:
self.items = list(items)
self.N = N
+ def __repr__(self):
+ return "<ItemCollection of length {}>".format(len(self))... | Make ItemCollection behave more like a list. | py |
diff --git a/eppy/useful_scripts/internalLoads.py b/eppy/useful_scripts/internalLoads.py
index <HASH>..<HASH> 100644
--- a/eppy/useful_scripts/internalLoads.py
+++ b/eppy/useful_scripts/internalLoads.py
@@ -30,6 +30,9 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser(usage=None, description=__doc__... | Added an argument for the simulation file and added it to the print statement | py |
diff --git a/blockstack/lib/operations/register.py b/blockstack/lib/operations/register.py
index <HASH>..<HASH> 100644
--- a/blockstack/lib/operations/register.py
+++ b/blockstack/lib/operations/register.py
@@ -195,6 +195,13 @@ def check_register( state_engine, nameop, block_id, checked_ops ):
log.debug("Recip... | do not allow a name to be registered to a p2sh script until the multisig support activates (this is to keep <I> consistent with <I> until then) | py |
diff --git a/conformity/fields/basic.py b/conformity/fields/basic.py
index <HASH>..<HASH> 100644
--- a/conformity/fields/basic.py
+++ b/conformity/fields/basic.py
@@ -248,8 +248,8 @@ class UnicodeString(Base):
return strip_none({
"type": self.introspect_type,
"description": self.descr... | [PATCH] Fix bug with string length restrictions and introspection | py |
diff --git a/blockstack/lib/nameset/namedb.py b/blockstack/lib/nameset/namedb.py
index <HASH>..<HASH> 100644
--- a/blockstack/lib/nameset/namedb.py
+++ b/blockstack/lib/nameset/namedb.py
@@ -880,13 +880,13 @@ class BlockstackDB(virtualchain.StateEngine):
return namedb_get_account_diff(current, prior)
- ... | propagating api change -- query account history by page, not block range | py |
diff --git a/jaraco/mongodb/compat.py b/jaraco/mongodb/compat.py
index <HASH>..<HASH> 100644
--- a/jaraco/mongodb/compat.py
+++ b/jaraco/mongodb/compat.py
@@ -24,13 +24,13 @@ class Collection(pymongo.collection.Collection):
save method. Don't use without first reading the cautions at
https://github.com/mongodb/spec... | Disable doctest for now to prevent unwanted output due to pytest-dev/pytest#<I> | py |
diff --git a/master/buildbot/test/util/db.py b/master/buildbot/test/util/db.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/util/db.py
+++ b/master/buildbot/test/util/db.py
@@ -213,6 +213,7 @@ class RealDatabaseMixin:
def tearDownRealDatabase(self):
if self.__want_pool:
yield self.d... | test: Shutdown the DB pool when tearing down the DB The pool may have events in flight which may break the tests that follow. | py |
diff --git a/bcbio/variation/freebayes.py b/bcbio/variation/freebayes.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/freebayes.py
+++ b/bcbio/variation/freebayes.py
@@ -48,8 +48,7 @@ def run_freebayes(align_bams, ref_file, config, dbsnp=None, region=None,
with file_transaction(out_file) as tx_out_file:
... | Removed --left-align-indels option. It is the default in <I> and throws an error if passed in. | py |
diff --git a/pymatgen/io/vasp/outputs.py b/pymatgen/io/vasp/outputs.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/outputs.py
+++ b/pymatgen/io/vasp/outputs.py
@@ -1070,10 +1070,10 @@ class Vasprun(MSONable):
return struct
def _parse_diel(self, elem):
- imag = [[float(l) for l in r.text.sp... | Fix parsing of dielectric constants containing '*' (#<I>) | py |
diff --git a/workbench/workers/mem_pslist.py b/workbench/workers/mem_pslist.py
index <HASH>..<HASH> 100644
--- a/workbench/workers/mem_pslist.py
+++ b/workbench/workers/mem_pslist.py
@@ -21,9 +21,11 @@ class MemoryImagePSList(mem_base.MemoryImageBase):
output = super(MemoryImagePSList, self).execute(input_data... | taking out special processing for Offset(V) | py |
diff --git a/tests/test_stream.py b/tests/test_stream.py
index <HASH>..<HASH> 100644
--- a/tests/test_stream.py
+++ b/tests/test_stream.py
@@ -9,6 +9,8 @@ if sys.version_info[0] == 2:
else:
from io import StringIO
+import pytest
+
from pyte import control as ctrl, escape as esc
from pyte.screens import Screen... | Added a failing test for issue #<I> | py |
diff --git a/test/amqp-integration-test.py b/test/amqp-integration-test.py
index <HASH>..<HASH> 100644
--- a/test/amqp-integration-test.py
+++ b/test/amqp-integration-test.py
@@ -103,7 +103,6 @@ def run_client_tests():
assert root is not None, (
"Please set LETSENCRYPT_PATH env variable to point at "
... | Remove SERVER env var in integration test. Per @Kuba, this is no longer needed for the letsencrypt client. | py |
diff --git a/simuvex/s_memory.py b/simuvex/s_memory.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_memory.py
+++ b/simuvex/s_memory.py
@@ -26,7 +26,7 @@ class Vectorizer(cooldict.CachedDict):
def default_cacher(self, k):
b = self.backer[k]
if type(b) in ( int, str ):
- b = claripy.se.BitVecVal(ord(self.backer... | restoring some claripy references | py |
diff --git a/bytecode/concrete.py b/bytecode/concrete.py
index <HASH>..<HASH> 100644
--- a/bytecode/concrete.py
+++ b/bytecode/concrete.py
@@ -432,17 +432,17 @@ class _ConvertBytecodeToConcrete:
self.labels = {}
# used to build ConcreteBytecode() object
- self.consts = {}
+ self.consts... | concrete: improve on #<I> by taking inspiration of #<I> | py |
diff --git a/glue/ligolw/ligolw.py b/glue/ligolw/ligolw.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/ligolw.py
+++ b/glue/ligolw/ligolw.py
@@ -278,6 +278,7 @@ def WalkChildren(elem):
Walk the XML tree of children below elem, returning each in order.
"""
for child in elem.childNodes:
+ yield child
for elem... | Don't forget to return child itself in WalkChildren(). | py |
diff --git a/holoviews/element/raster.py b/holoviews/element/raster.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/raster.py
+++ b/holoviews/element/raster.py
@@ -228,6 +228,9 @@ class QuadMesh(Raster):
self._grid = self.data[0].ndim == 1
+ @property
+ def depth(self): return 1
+
def _pr... | Added working depth property to QuadMesh | py |
diff --git a/joyent.py b/joyent.py
index <HASH>..<HASH> 100755
--- a/joyent.py
+++ b/joyent.py
@@ -155,6 +155,15 @@ class Client:
headers, content = self._request(path, method='DELETE')
def delete_old_machines(self):
+ procs = subprocess.check_output(['bash', '-c', JOYENT_PROCS])
+ for pro... | Kill procs on the machines first. | py |
diff --git a/cobe/irc.py b/cobe/irc.py
index <HASH>..<HASH> 100644
--- a/cobe/irc.py
+++ b/cobe/irc.py
@@ -8,14 +8,18 @@ log = logging.getLogger("cobe.irc")
class Bot(irclib.SimpleIRCClient):
- def __init__(self, brain, nick, ignored_nicks, only_nicks):
+ def __init__(self, brain, nick, channel, ignored_nick... | Join our channel in an on_endofmotd handler Some servers can't handle immediate joins. | py |
diff --git a/salt/states/pkg.py b/salt/states/pkg.py
index <HASH>..<HASH> 100644
--- a/salt/states/pkg.py
+++ b/salt/states/pkg.py
@@ -1073,8 +1073,11 @@ def installed(
``NOTE:`` For :mod:`apt <salt.modules.aptpkg>`,
:mod:`ebuild <salt.modules.ebuild>`,
- :mod:`pacman <salt.modules.pacman>`, ... | Add winrepo to docs about supporting versions in pkgs | py |
diff --git a/photutils/background/background_2d.py b/photutils/background/background_2d.py
index <HASH>..<HASH> 100644
--- a/photutils/background/background_2d.py
+++ b/photutils/background/background_2d.py
@@ -10,7 +10,6 @@ from astropy.nddata import NDData
from astropy.stats import SigmaClip
import astropy.units as... | Remove deprecated background_mesh_ma and background_rms_mesh_ma Background2D properties | py |
diff --git a/pavement.py b/pavement.py
index <HASH>..<HASH> 100644
--- a/pavement.py
+++ b/pavement.py
@@ -12,7 +12,7 @@ install_distutils_tasks()
# Platform-independent package requirements.
install_requires = ['microdrop-utility>=0.4', 'networkx>=1.10', 'pandas',
'path-helpers>=0.2', 'svg_model... | Bump required version of pygst-utils package | py |
diff --git a/konch.py b/konch.py
index <HASH>..<HASH> 100644
--- a/konch.py
+++ b/konch.py
@@ -226,12 +226,20 @@ def _short_formatter(context):
return "\nContext:\n{context}".format(context=context_str)
-CONTEXT_FORMATTERS = {"full": _full_formatter, "short": _short_formatter}
+def _hide_formatter(context):
+ ... | Don't special-case "hide" formatter | py |
diff --git a/metal/utils.py b/metal/utils.py
index <HASH>..<HASH> 100644
--- a/metal/utils.py
+++ b/metal/utils.py
@@ -170,6 +170,7 @@ def recursive_merge_dicts(x, y, misses="report", verbose=None):
'exception' -> raise an exception
'report' -> report the name of the missing key
'ignore' ... | Allow assigning empty dict as value in recursive_merge_dicts() | py |
diff --git a/salt/modules/pacman.py b/salt/modules/pacman.py
index <HASH>..<HASH> 100644
--- a/salt/modules/pacman.py
+++ b/salt/modules/pacman.py
@@ -36,7 +36,7 @@ def __virtual__():
'''
Set the virtual pkg module if the os is Arch
'''
- if __grains__['os'] in ('Arch', 'Arch ARM', 'Antergos', 'Manjar... | pacman.py: use os_family grain to assign as pkg virtual module This is a more future-proof method, it'll keep us from continuing to update pacman.py each time we add another Arch derivative to the Arch os_family. | py |
diff --git a/zipline/finance/performance.py b/zipline/finance/performance.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/performance.py
+++ b/zipline/finance/performance.py
@@ -209,6 +209,15 @@ class PerformanceTracker():
def process_event(self, event):
self.event_count += 1
+ # TODO: This ... | Hack to ignore dataframes in process_event, code seems to be written against namedicts. | py |
diff --git a/openquake/engine/engine2.py b/openquake/engine/engine2.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/engine2.py
+++ b/openquake/engine/engine2.py
@@ -476,6 +476,7 @@ def del_haz_calc(hc_id):
' calculation: %s'
)
+ # check for a reference to hazard outputs
ass... | engine2: Added a couple of comments to del_haz_calc. | py |
diff --git a/test/unit/test_generators.py b/test/unit/test_generators.py
index <HASH>..<HASH> 100644
--- a/test/unit/test_generators.py
+++ b/test/unit/test_generators.py
@@ -296,14 +296,16 @@ class GeneratorTest():
np.random.seed(0)
im = ps.generators.pseudo_gravity_packing(im=im, r=20, clearance=5)
... | updating tests to refect the new api of gravity spheres | py |
diff --git a/lib/svtplay_dl/service/picsearch.py b/lib/svtplay_dl/service/picsearch.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/picsearch.py
+++ b/lib/svtplay_dl/service/picsearch.py
@@ -19,10 +19,12 @@ class Picsearch(Service, OpenGraphThumbMixin):
if not ajax_auth:
log.error("Can... | picsearch: They have two ways to write mediaId and media-id. this fixes #<I> | py |
diff --git a/hydra_base/db/model.py b/hydra_base/db/model.py
index <HASH>..<HASH> 100644
--- a/hydra_base/db/model.py
+++ b/hydra_base/db/model.py
@@ -1205,7 +1205,7 @@ class Note(Base, Inspect):
ref_key = Column(String(60), nullable=False, index=True)
- note_text = Column('value', LargeBinary(), nullable... | Use note_text instead of value for notes to avoid inconsistent naming causing bugs when retrieving resources with notes | py |
diff --git a/zipline/finance/__init__.py b/zipline/finance/__init__.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/__init__.py
+++ b/zipline/finance/__init__.py
@@ -0,0 +1,20 @@
+#
+# Copyright 2013 Quantopian, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file... | MAINT: Add default import of trading of module. So that zipline.finance.trading can be accessed after importing zipline. | py |
diff --git a/auto_ml/predictor.py b/auto_ml/predictor.py
index <HASH>..<HASH> 100644
--- a/auto_ml/predictor.py
+++ b/auto_ml/predictor.py
@@ -31,15 +31,12 @@ class Predictor(object):
ppl = Pipeline([
('user_func', FunctionTransformer(func=user_input_func, pass_y=False, validate=False)),
... | investigates and realizes sklearn uses setattr() behind the scenes. so obvious after that point. | py |
diff --git a/i3ipc/connection.py b/i3ipc/connection.py
index <HASH>..<HASH> 100644
--- a/i3ipc/connection.py
+++ b/i3ipc/connection.py
@@ -15,6 +15,8 @@ import os
import subprocess
from threading import Timer, Lock
import time
+import Xlib
+import Xlib.display
python2 = sys.version_info[0] < 3
@@ -49,17 +51,10 ... | Use Xlib directly instead of calling i3 in a subprocess to get the socket path | py |
diff --git a/mbed/mbed.py b/mbed/mbed.py
index <HASH>..<HASH> 100644
--- a/mbed/mbed.py
+++ b/mbed/mbed.py
@@ -2434,10 +2434,10 @@ def config_(var=None, value=None, global_cfg=False, unset=False, list_config=Fal
else:
# Find the root of the program
program = Program(os.getcwd())
- ... | Allowing root directory configuration to happen in an unknown project directory | py |
diff --git a/src/pyrocore/scripts/rtxmlrpc.py b/src/pyrocore/scripts/rtxmlrpc.py
index <HASH>..<HASH> 100644
--- a/src/pyrocore/scripts/rtxmlrpc.py
+++ b/src/pyrocore/scripts/rtxmlrpc.py
@@ -97,7 +97,7 @@ class RtorrentXmlRpc(ScriptBaseWithConfig):
# Pretty-print if requested, or it's a collection ... | handle nested respsonses correctly | py |
diff --git a/filetype/helpers.py b/filetype/helpers.py
index <HASH>..<HASH> 100644
--- a/filetype/helpers.py
+++ b/filetype/helpers.py
@@ -1,9 +1,11 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
-
-from .match import image_match, font_match, video_match, audio_match, archive_match
from .types i... | fix(helpers): line size issue E<I> | py |
diff --git a/quark/api/extensions/ports_quark.py b/quark/api/extensions/ports_quark.py
index <HASH>..<HASH> 100644
--- a/quark/api/extensions/ports_quark.py
+++ b/quark/api/extensions/ports_quark.py
@@ -71,7 +71,7 @@ class QuarkPortsUpdateHandler(object):
api_response = self._plugin.post_update_port(request.co... | Added port key to POST /ports (update) response | py |
diff --git a/ReText/window.py b/ReText/window.py
index <HASH>..<HASH> 100644
--- a/ReText/window.py
+++ b/ReText/window.py
@@ -945,7 +945,8 @@ class ReTextWindow(QMainWindow):
defaultExt = self.tr("Plain text (*.txt)")
ext = ".txt"
else:
- defaultExt = self.tr('%s files', 'Example of final string: Mark... | saveFileMain: fix compatibility with Python 2 | py |
diff --git a/uncompyle6/bin/pydisassemble.py b/uncompyle6/bin/pydisassemble.py
index <HASH>..<HASH> 100755
--- a/uncompyle6/bin/pydisassemble.py
+++ b/uncompyle6/bin/pydisassemble.py
@@ -26,7 +26,7 @@ value are folded into the following instruction operand.
Like the parser, you may find this more high-level and or h... | Revise docstring explaiing pydisassemble | py |
diff --git a/simple_elasticsearch/management/commands/es_manage.py b/simple_elasticsearch/management/commands/es_manage.py
index <HASH>..<HASH> 100644
--- a/simple_elasticsearch/management/commands/es_manage.py
+++ b/simple_elasticsearch/management/commands/es_manage.py
@@ -74,7 +74,7 @@ class Command(BaseCommand):
... | Small fix for the management command - rebuilding and initialization failed due to a function parameter list change. | py |
diff --git a/registrasion/controllers/category.py b/registrasion/controllers/category.py
index <HASH>..<HASH> 100644
--- a/registrasion/controllers/category.py
+++ b/registrasion/controllers/category.py
@@ -9,6 +9,8 @@ from django.db.models import Value
from .batch import BatchController
+from operator import attr... | Return the collection of available categories as a sorted list. This is very much a "works for me" kinda patch. We need this so that the Category "order" property is actually obeyed. I'm not sure if this really the best way of doing this, but I don't think swapping a set for a list should break anything. Without this... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
-from pip.req import parse_requirements
from distutils.util import convert_path
from fnmatch import fnmatchcase
impor... | Pull request #9: Do not use the pip's internal api as it isn't working anymore | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -230,6 +230,6 @@ def setup(app):
# The following is used by sphinx.ext.linkcode to provide links to github
linkcode_resolve = make_linkcode_resolve(
- 'pyramid', u('https://github.com/tgsmith61591/'
- ... | DOC: Update packagename in Sphinx conf | py |
diff --git a/salt/utils/minions.py b/salt/utils/minions.py
index <HASH>..<HASH> 100644
--- a/salt/utils/minions.py
+++ b/salt/utils/minions.py
@@ -246,10 +246,13 @@ class CkMinions(object):
if isinstance(fun, str):
fun = [fun]
for func in fun:
- if re.match(regex, func):
- ... | Fix for #<I> An invalid regex in the client_acl or external_auth would cause the master to crash | py |
diff --git a/fabfile/_utils.py b/fabfile/_utils.py
index <HASH>..<HASH> 100644
--- a/fabfile/_utils.py
+++ b/fabfile/_utils.py
@@ -3,7 +3,7 @@ try:
import coverage
except ImportError:
coverage = False
-import glob
+import os
from os.path import basename, dirname
@@ -25,8 +25,13 @@ def html_coverage_repo... | adjust so this works across all levels of a module | py |
diff --git a/util/plot/auxiliary.py b/util/plot/auxiliary.py
index <HASH>..<HASH> 100644
--- a/util/plot/auxiliary.py
+++ b/util/plot/auxiliary.py
@@ -345,7 +345,7 @@ def ticks_transform_labels(tick_transform_x=None, tick_transform_y=None, axes=No
def tick_transform_function_exponent_notation(data, v_max=None, decimal... | MAINT: util.plot.auxiliary: ticks_transform_labels: cast inputs to needed types | py |
diff --git a/ffpyplayer/__init__.py b/ffpyplayer/__init__.py
index <HASH>..<HASH> 100644
--- a/ffpyplayer/__init__.py
+++ b/ffpyplayer/__init__.py
@@ -1,6 +1,6 @@
__all__ = ('version', )
-version = '3.1-dev'
+version = '3.1'
# The ffmpeg src git version tested with. Nov, 18, 2013
_ffmpeg_git = '1f7b7d54471711b89f8... | Bump to <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -154,7 +154,7 @@ setup(
platforms = 'all',
license = 'GNU GENERAL PUBLIC LICENSE Version 2',
author = 'Xavier de Gaye',
- author_email = 'xdegaye at users dot sourceforge dot net',
+ author_email = 'xdegay... | make dist uploadable to pypi | py |
diff --git a/sos/remote.py b/sos/remote.py
index <HASH>..<HASH> 100755
--- a/sos/remote.py
+++ b/sos/remote.py
@@ -54,7 +54,8 @@ class RemoteHost:
# if not on_host, no conversion drive map et al
if 'on_host' not in env.sos_dict['_runtime']:
return {}
- if self.alias... | Check if hosts is defined in CONFIG #<I> | py |
diff --git a/tensorflow_probability/python/positive_semidefinite_kernels/internal/util_test.py b/tensorflow_probability/python/positive_semidefinite_kernels/internal/util_test.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/positive_semidefinite_kernels/internal/util_test.py
+++ b/tensorflow_probabil... | Add unit test for `sqrt_with_finite_grads` input with dynamic shape | py |
diff --git a/timepiece/templatetags/timepiece_tags.py b/timepiece/templatetags/timepiece_tags.py
index <HASH>..<HASH> 100644
--- a/timepiece/templatetags/timepiece_tags.py
+++ b/timepiece/templatetags/timepiece_tags.py
@@ -30,10 +30,9 @@ def bar_graph(context, name, worked, total, width=None, suffix=None):
err... | made over hours fit in <I>px instead of extending --HG-- branch : project-budgeting | py |
diff --git a/pygtail/core.py b/pygtail/core.py
index <HASH>..<HASH> 100755
--- a/pygtail/core.py
+++ b/pygtail/core.py
@@ -23,7 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from __future__ import print_function
-from os import stat
+from os import fstat, stat
from os.path im... | Adds support for "renamecreate" where the currently processed file gets renamed and the original file gets recreated. | py |
diff --git a/pyblish_qml/util.py b/pyblish_qml/util.py
index <HASH>..<HASH> 100644
--- a/pyblish_qml/util.py
+++ b/pyblish_qml/util.py
@@ -1,3 +1,4 @@
+import os
import time
import logging
@@ -53,3 +54,35 @@ class Log(QtCore.QObject):
@QtCore.pyqtSlot(str)
def error(self, msg):
self.log.error(msg... | Added where() for PATH traversal and discovery. | py |
diff --git a/telemetry/telemetry/core/backends/chrome/desktop_browser_backend.py b/telemetry/telemetry/core/backends/chrome/desktop_browser_backend.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/backends/chrome/desktop_browser_backend.py
+++ b/telemetry/telemetry/core/backends/chrome/desktop_browser_back... | Remove compositing blacklisting of <I> and <I>. Also disable vsync to see if this improves performance. BUG=<I> TBR=<EMAIL>, <EMAIL> Review URL: <URL> | py |
diff --git a/pyrogram/client/types/user_and_chats/user.py b/pyrogram/client/types/user_and_chats/user.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/types/user_and_chats/user.py
+++ b/pyrogram/client/types/user_and_chats/user.py
@@ -16,6 +16,8 @@
# You should have received a copy of the GNU Lesser General Public... | Enable custom format for User mentions Examples: - format(user, "mention") - "{:mention}".format(user) - f"{user:mention}" | py |
diff --git a/setuptools/command/test.py b/setuptools/command/test.py
index <HASH>..<HASH> 100644
--- a/setuptools/command/test.py
+++ b/setuptools/command/test.py
@@ -226,12 +226,14 @@ class test(Command):
list(map(sys.modules.__delitem__, del_modules))
exit_kwarg = {} if sys.version_info < ... | Exit on test failure When test fails, it should not continue to run other commands. Fixes #<I> | py |
diff --git a/hydpy/__init__.py b/hydpy/__init__.py
index <HASH>..<HASH> 100644
--- a/hydpy/__init__.py
+++ b/hydpy/__init__.py
@@ -90,7 +90,7 @@ dummies = dummytools.Dummies() # pylint: disable=invalid-name
def customwarn(message, category, filename, lineno, file=None, line=None):
"""Redirect warnings to `stdou... | Exclude two lines of `hydpy.__init__` from the coverage report. | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -65,3 +65,7 @@ sphinx_gallery_conf = {
# generate autosummary even if no references
autosummary_generate = True
+
+# Switch to old behavior with html4, for a good display of references,
+# as described in https... | Correct display of references problem in Sphinx <I> (#<I>) Reverts to html4 mode because themes haven't updated yet. | py |
diff --git a/keyboard.py b/keyboard.py
index <HASH>..<HASH> 100644
--- a/keyboard.py
+++ b/keyboard.py
@@ -19,6 +19,7 @@ def _update_state(event):
handlers = [_update_state]
listening_thread = Thread(target=listen, args=(handlers,))
+listening_thread.is_daemon = True
def add_handler(handler):
""" Adds a fun... | Make listening thread a daemon | py |
diff --git a/HardwareSource.py b/HardwareSource.py
index <HASH>..<HASH> 100644
--- a/HardwareSource.py
+++ b/HardwareSource.py
@@ -376,6 +376,22 @@ def get_data_element_generator_by_id(hardware_source_id):
port.close()
+@contextmanager
+def get_data_generator_by_id(hardware_source_id):
+ with get_data_e... | Reworked AutoSTEM to correctly get the data again using new data generator. svn r<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ tests_require = open(os.path.join(os.path.dirname(__file__), 'test_requirements.
setup(
name='mocket',
- version='1.2.3',
+ version='1.2.4',
author='Andrea de Marco, Giorgio Salluzzo',
au... | Upgrade to <I> version. | py |
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/base/exchange.py
+++ b/python/ccxt/base/exchange.py
@@ -323,8 +323,6 @@ class Exchange(object):
body = body.encode()
self.session.cookies.clear()
- request = Request(meth... | added timeouts to python-requests | py |
diff --git a/tests/test_convert.py b/tests/test_convert.py
index <HASH>..<HASH> 100644
--- a/tests/test_convert.py
+++ b/tests/test_convert.py
@@ -13,7 +13,7 @@ class TestConvert(unittest.TestCase):
complex(1,0), complex(0,1), complex(0,0), complex(1,1),
"", "test",
[], [1,2,3],
-... | Fixed compat with Python <I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.