diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/wikipedia/wikipedia.py b/wikipedia/wikipedia.py
index <HASH>..<HASH> 100644
--- a/wikipedia/wikipedia.py
+++ b/wikipedia/wikipedia.py
@@ -1,15 +1,16 @@
import requests
from bs4 import BeautifulSoup
-from .exceptions import *
-from .util import cache, stdout_encode
+from exceptions import PageError, Dis... | remove wildcard and . from imports | py |
diff --git a/eveonline/providers.py b/eveonline/providers.py
index <HASH>..<HASH> 100644
--- a/eveonline/providers.py
+++ b/eveonline/providers.py
@@ -228,7 +228,7 @@ class EveProvider(object):
@python_2_unicode_compatible
class EveSwaggerProvider(EveProvider):
def __init__(self, token=None, adapter=None):
- ... | fixes #<I> - could be bug, could be permanent unclear change from CCP (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(
url="http://bitbucket.org/okfn/ofs",
packages=find_packages(),
test_suite = "test.test.TestPairtreeOFS",
- install_Requires = ["argparse"],
+ install_requires = ["argparse"],
ent... | [setup][xs]: fix typo in setup.py. | py |
diff --git a/src/satosa/frontends/saml2.py b/src/satosa/frontends/saml2.py
index <HASH>..<HASH> 100644
--- a/src/satosa/frontends/saml2.py
+++ b/src/satosa/frontends/saml2.py
@@ -345,7 +345,7 @@ class SAMLFrontend(FrontendModule):
valid_providers = "{}|^{}".format(valid_providers, provider)
... | Fix another too greedy regex in SAMLFrontend.register_endpoints. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -3,13 +3,13 @@ from distutils.core import setup
setup(
name='hapipy',
- version='2.5.1',
+ version='2.6.1',
description="A python wrapper around HubSpot's APIs",
long_description = open('README.md').rea... | Version bump (properly this time). | py |
diff --git a/clint/arguments.py b/clint/arguments.py
index <HASH>..<HASH> 100644
--- a/clint/arguments.py
+++ b/clint/arguments.py
@@ -90,7 +90,7 @@ class Args(object):
def _remove(x):
found = self.first(x)
- if found:
+ if found is not None:
self._args.pop... | fix for found arg at pos 0 | py |
diff --git a/mbuild/formats/lammps.py b/mbuild/formats/lammps.py
index <HASH>..<HASH> 100644
--- a/mbuild/formats/lammps.py
+++ b/mbuild/formats/lammps.py
@@ -1,12 +1,8 @@
-from collections import OrderedDict
-
def save_lammps(traj, step=-1, optional_nodes=None, filename='data.mbuild'):
- """Output a Compound as ... | lammps writer for atoms/bonds | py |
diff --git a/bokeh/io.py b/bokeh/io.py
index <HASH>..<HASH> 100644
--- a/bokeh/io.py
+++ b/bokeh/io.py
@@ -571,7 +571,6 @@ def _crop_image(image, left=0, top=0, right=0, bottom=0, **kwargs):
return cropped_image
def _get_screenshot_as_png(obj):
- # probably need a specific version
webdriver = import_req... | doctstring fixes [skip ci] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,13 +29,6 @@ except ImportError:
print('Cython version 0.18 or later is required. Try "easy_install cython"')
sys.exit(1)
-try:
- import sklearn
- if sklearn.__version__ < '0.14':
- raise ImportErro... | register runtime as opposed to compile time dependencies with install_requires | py |
diff --git a/alerta/models/note.py b/alerta/models/note.py
index <HASH>..<HASH> 100644
--- a/alerta/models/note.py
+++ b/alerta/models/note.py
@@ -57,6 +57,9 @@ class Note:
'customer': self.customer
} # type: Dict[str, Any]
if self.alert:
+ note['related'] = {
+ ... | fix: add related id to note reponse (#<I>) | py |
diff --git a/torf/_torrent.py b/torf/_torrent.py
index <HASH>..<HASH> 100644
--- a/torf/_torrent.py
+++ b/torf/_torrent.py
@@ -96,7 +96,7 @@ class Torrent():
exclude_globs=(), exclude_regexs=(),
trackers=None, webseeds=None, httpseeds=None,
private=None, comment=Non... | Remove "/" from default "created by" value | py |
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index <HASH>..<HASH> 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -290,6 +290,7 @@ class Cmd(cmd.Cmd):
# The error that prints when a non-existent command is run
self.default_error = "{} is not a recognized command, alias, or macro"
+ # If non-empty... | Add comment for broken_pipe_warning | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ with open("README.md", "r") as fh:
setup(
name='django-cra-helper',
- version='2.0.0',
+ version='2.0.1',
description='The missing piece of the Django + React puzzle',
long_description=lo... | Bump package version to <I> | py |
diff --git a/sumo/plotting/phonon_bs_plotter.py b/sumo/plotting/phonon_bs_plotter.py
index <HASH>..<HASH> 100644
--- a/sumo/plotting/phonon_bs_plotter.py
+++ b/sumo/plotting/phonon_bs_plotter.py
@@ -40,7 +40,7 @@ class SPhononBSPlotter(PhononBSPlotter):
if ax is None:
ax = plt.gca()
if co... | ENH: Default green for phonon bands/DOS, avoid clash with elec bands | py |
diff --git a/CSHLDAP.py b/CSHLDAP.py
index <HASH>..<HASH> 100755
--- a/CSHLDAP.py
+++ b/CSHLDAP.py
@@ -7,7 +7,7 @@ import ldap.modlist
from copy import deepcopy
class CSHLDAP:
- def __init__(self, user, password, host='ldap://ldap.csh.rit.edu', \
+ def __init__(self, user, password, host='ldaps://ldap.csh.rit... | switched to secure ldap connection using ldaps | py |
diff --git a/safe/definitions/concepts.py b/safe/definitions/concepts.py
index <HASH>..<HASH> 100644
--- a/safe/definitions/concepts.py
+++ b/safe/definitions/concepts.py
@@ -293,19 +293,7 @@ concepts['killed_people'] = {
}
],
}
-concepts['people'] = {
- 'group': tr('Demographics'),
- 'key': 'peopl... | fix double demographics items in help window | py |
diff --git a/testing/test_helpconfig.py b/testing/test_helpconfig.py
index <HASH>..<HASH> 100644
--- a/testing/test_helpconfig.py
+++ b/testing/test_helpconfig.py
@@ -19,7 +19,10 @@ def test_help(testdir):
assert result.ret == 0
result.stdout.fnmatch_lines(
"""
- *-v*verbose*
+ -m MAR... | add test Fixes the test to not match e.g. hypothesis (ref: bdde2ac<I>). Conflicts: testing/test_helpconfig.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,4 @@
from distutils.core import setup
-import numpy
def find_version(path):
import re
@@ -14,14 +13,15 @@ def find_version(path):
setup(
name="mpi4py_test",
version=find_version("mpi4py_test/version... | depends on pytest, coverage; optionally on mpi4py | py |
diff --git a/beeswarm/server/webapp/app.py b/beeswarm/server/webapp/app.py
index <HASH>..<HASH> 100644
--- a/beeswarm/server/webapp/app.py
+++ b/beeswarm/server/webapp/app.py
@@ -21,6 +21,7 @@ import ast
import gevent
import gevent.lock
import os
+import uuid
import zmq.green as zmq
from flask import Flask, render... | use uuid4 as drone add key | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from os import path | Add coding declaration to setup.py | py |
diff --git a/pymatgen/electronic_structure/bandstructure.py b/pymatgen/electronic_structure/bandstructure.py
index <HASH>..<HASH> 100644
--- a/pymatgen/electronic_structure/bandstructure.py
+++ b/pymatgen/electronic_structure/bandstructure.py
@@ -288,7 +288,7 @@ class BandStructure(object):
... | corrected minus sign on first tolerance of is_metal | py |
diff --git a/tests/test_rabbitmq.py b/tests/test_rabbitmq.py
index <HASH>..<HASH> 100644
--- a/tests/test_rabbitmq.py
+++ b/tests/test_rabbitmq.py
@@ -193,7 +193,6 @@ def test_rabbitmq_broker_reconnects_after_enqueue_failure(rabbitmq_broker):
assert rabbitmq_broker.connection.is_open
-@pytest.mark.skipif(os.ge... | chore(tests): drop skipif on rmq restart test | py |
diff --git a/salt/payload.py b/salt/payload.py
index <HASH>..<HASH> 100644
--- a/salt/payload.py
+++ b/salt/payload.py
@@ -18,22 +18,5 @@ def unpackage(package):
'''
Unpackages a payload
'''
- return = pickle.loads(package)
+ return pickle.loads(package)
-def aes(payload, key):
- '''
- Encr... | Moving encryption out of payload (for now) | py |
diff --git a/scenarios/kubernetes_e2e.py b/scenarios/kubernetes_e2e.py
index <HASH>..<HASH> 100755
--- a/scenarios/kubernetes_e2e.py
+++ b/scenarios/kubernetes_e2e.py
@@ -447,8 +447,6 @@ def main(args):
mode.add_file(test_infra(env_file))
for env in args.env:
mode.add_env(env)
- if args.gce_ss... | Don't add gce ssh key for aws job | py |
diff --git a/wafer/talks/views.py b/wafer/talks/views.py
index <HASH>..<HASH> 100644
--- a/wafer/talks/views.py
+++ b/wafer/talks/views.py
@@ -43,7 +43,7 @@ class EditOwnTalksMixin(object):
class UsersTalks(PaginatedBuildableListView):
template_name = 'wafer.talks/talks.html'
build_prefix = 'talks'
- pagi... | talks: show <I> talks per page Listing only <I> talks per page makes browsing the talks harder than necessary. Increasing it to <I> makes it possible to show all talks for a small conference in a single page, while still avoiding performance issues in larger conferences. | py |
diff --git a/pyemu/utils/pst_from.py b/pyemu/utils/pst_from.py
index <HASH>..<HASH> 100644
--- a/pyemu/utils/pst_from.py
+++ b/pyemu/utils/pst_from.py
@@ -1579,6 +1579,9 @@ class PstFrom(object):
# Generate tabular type template - also returns par data
# relative file paths are in file_dict as... | added trap for trying to use get_xy on list pars that are not grid or pilot points and also if a geostruct was not passed | py |
diff --git a/tests/stubs.py b/tests/stubs.py
index <HASH>..<HASH> 100644
--- a/tests/stubs.py
+++ b/tests/stubs.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
-Copyright (c) 2018 Red Hat, Inc
+Copyright (c) 2018, 2019 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
... | StubInsideBuilder: make parent_image_inspect more lifelike | py |
diff --git a/kafka/client_async.py b/kafka/client_async.py
index <HASH>..<HASH> 100644
--- a/kafka/client_async.py
+++ b/kafka/client_async.py
@@ -6,6 +6,7 @@ import heapq
import itertools
import logging
import random
+import threading
# selectors in stdlib as of py3.4
try:
@@ -158,6 +159,7 @@ class KafkaClient(... | Protect writes to wakeup socket with threading lock (#<I> / #<I>) | py |
diff --git a/salt/states/schedule.py b/salt/states/schedule.py
index <HASH>..<HASH> 100644
--- a/salt/states/schedule.py
+++ b/salt/states/schedule.py
@@ -19,8 +19,8 @@ Management of the Salt scheduler
- function: test.ping
- seconds: 15
- splay:
- - start: 10
- - end: 2... | states.schedule: splay is not ordereddict (#<I>) | py |
diff --git a/fireplace/game.py b/fireplace/game.py
index <HASH>..<HASH> 100644
--- a/fireplace/game.py
+++ b/fireplace/game.py
@@ -88,6 +88,10 @@ class BaseGame(Entity):
def action_end(self, type, source):
self.manager.action_end(type, source)
+
+ if self.ended:
+ raise GameOver("The game has ended.")
+
if... | Raise GameOver slightly earlier during action_end This moves GameOver up, but it actually happens slightly later than before. The end of game process fully completes and action_end is called once again, at which point it exits early. | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -324,15 +324,10 @@ def active_config(stub_config):
"""Loads the standard config as the active configuration returned by
dallinger.config.get_config() and returns it.
"""
- ... | Slight simplification of active_config fixture | py |
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/readinput.py
+++ b/openquake/commonlib/readinput.py
@@ -1180,7 +1180,7 @@ def get_checksum32(oqparam, h5=None):
if key in ('rupture_mesh_spacing', 'complex_fault_mesh_spacing',... | Added source_id in the checksum | py |
diff --git a/netpyne/analysis/hnn.py b/netpyne/analysis/hnn.py
index <HASH>..<HASH> 100644
--- a/netpyne/analysis/hnn.py
+++ b/netpyne/analysis/hnn.py
@@ -28,7 +28,10 @@ import numpy as np
@exception
def plotDipole():
from .. import sim
- from bokeh.plotting import figure, show, output_file
+ from bokeh.pl... | Change plotDipole to return html instead of saving it as a file | py |
diff --git a/jarn/mkrelease/mkrelease.py b/jarn/mkrelease/mkrelease.py
index <HASH>..<HASH> 100644
--- a/jarn/mkrelease/mkrelease.py
+++ b/jarn/mkrelease/mkrelease.py
@@ -226,7 +226,8 @@ class ReleaseMaker(object):
if args:
self.directory = args[0]
- self.assert_location(self.distlocation... | Don't verify locations if skipscp is set. | py |
diff --git a/hamster/stats.py b/hamster/stats.py
index <HASH>..<HASH> 100644
--- a/hamster/stats.py
+++ b/hamster/stats.py
@@ -659,7 +659,7 @@ A week of usage would be nice!"""))
# date of first record when year has been selected
# Using python datetime formatting syntax. See:
# h... | bug <I> fixed substitution of string in stats when year is selected | py |
diff --git a/emase/__init__.py b/emase/__init__.py
index <HASH>..<HASH> 100755
--- a/emase/__init__.py
+++ b/emase/__init__.py
@@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
-
+from .Sparse3DMatrix import Sparse3DMatrix
+from .AlignmentPropertyMatrix import AlignmentPropertyMatrix
+from .AlignmentMatrixFactory import Alignme... | [kbchoi] Initial check in. | py |
diff --git a/backtrader/indicators/deviation.py b/backtrader/indicators/deviation.py
index <HASH>..<HASH> 100644
--- a/backtrader/indicators/deviation.py
+++ b/backtrader/indicators/deviation.py
@@ -43,7 +43,7 @@ class StandardDeviation(Indicator):
alias = ('StdDev',)
lines = ('stddev',)
- params = (('pe... | Added param safepow to use abs() when there is a risk for negative values in pow(meansq - sqmean, <I>) due to floating point representation error | py |
diff --git a/OMMBV/tests/test_apex.py b/OMMBV/tests/test_apex.py
index <HASH>..<HASH> 100644
--- a/OMMBV/tests/test_apex.py
+++ b/OMMBV/tests/test_apex.py
@@ -109,7 +109,7 @@ class TestApexAccuracy(object):
pt2 = out[1]
for var in pt1.columns:
- np.testing.assert_allclose(pt2[var], pt1[va... | BUG: Reduced tolerance apex location | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,6 +19,7 @@ setup(
url="https://github.com/cpburnz/python-path-specification",
description="Utility library for gitignore style pattern matching of file paths.",
long_description=readme + "\n\n" + changes,
+ python_re... | Add python_requires to help pip | py |
diff --git a/salt/modules/saltutil.py b/salt/modules/saltutil.py
index <HASH>..<HASH> 100644
--- a/salt/modules/saltutil.py
+++ b/salt/modules/saltutil.py
@@ -25,7 +25,9 @@ import salt.client
import salt.utils
import salt.utils.process
import salt.transport
-from salt.exceptions import SaltReqTimeoutError
+from salt... | Fix traceback when syncing custom types This fixes a traceback which occurs when a rendering error occurs when the top files are checked before custom types are synced. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(
include_package_data=True,
packages=['config_resolver'],
classifiers=[
- 'Development Status :: 5 - Production/Stable',
+ 'Development Status :: 3 - Alpha',
'Intended... | Demote from "production ready" to "alpha" | py |
diff --git a/sockjs/transports/xhrsend.py b/sockjs/transports/xhrsend.py
index <HASH>..<HASH> 100644
--- a/sockjs/transports/xhrsend.py
+++ b/sockjs/transports/xhrsend.py
@@ -17,10 +17,11 @@ class XHRSendTransport(Transport):
return web.HTTPForbidden(text='Method is not allowed')
if self.request... | refactor(transports/xhrsend.py): W<I> line break before binary operator sockjs/transports/xhrsend.py:<I>:<I>: W<I> line break before binary operator | py |
diff --git a/tests/util.py b/tests/util.py
index <HASH>..<HASH> 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -230,7 +230,7 @@ class patch_files(object):
if dirname not in self.directories:
return
- for dirname, filenames in self.directories[dirname].items():
+ for dirname, fil... | Sort output of walking test directory list for consistent py2/3 tests. | py |
diff --git a/sigal/image.py b/sigal/image.py
index <HASH>..<HASH> 100644
--- a/sigal/image.py
+++ b/sigal/image.py
@@ -154,6 +154,7 @@ def generate_thumbnail(source, outname, box, fit=True, options=None,
logger = logging.getLogger(__name__)
img = _read_image(source)
+ img = Transpose().process(img)
... | Make sure that image orientation is correct before creating thumbnail | py |
diff --git a/greenhouse/pool.py b/greenhouse/pool.py
index <HASH>..<HASH> 100644
--- a/greenhouse/pool.py
+++ b/greenhouse/pool.py
@@ -31,6 +31,7 @@ class OneWayPool(object):
if input is _STOP:
break
self._handle_one(input)
+ self.inq.task_done()
def _handle_... | a join method on pools seems like a good idea | py |
diff --git a/structlog_pretty/processors.py b/structlog_pretty/processors.py
index <HASH>..<HASH> 100644
--- a/structlog_pretty/processors.py
+++ b/structlog_pretty/processors.py
@@ -119,15 +119,6 @@ class XMLPrettifier(object):
self.prettify = self.slow_prettify
self.lxml_parser = None
- ... | NumericRounder: Remove the unused `remove_blanks` method It was moved to `structlog_pretty.utils`. | py |
diff --git a/salt/utils/mac_utils.py b/salt/utils/mac_utils.py
index <HASH>..<HASH> 100644
--- a/salt/utils/mac_utils.py
+++ b/salt/utils/mac_utils.py
@@ -349,7 +349,7 @@ def _available_services(refresh=False):
# Follow symbolic links of files in _launchd_paths
file_path = os.path.join... | add try/except when checking for service Label | py |
diff --git a/octodns/record/__init__.py b/octodns/record/__init__.py
index <HASH>..<HASH> 100644
--- a/octodns/record/__init__.py
+++ b/octodns/record/__init__.py
@@ -90,7 +90,7 @@ class Record(EqualityTupleMixin):
def register_type(cls, _class, _type=None):
if _type is None:
_type = _class._... | Remove extranious None default from get | py |
diff --git a/btcpy/structs/block.py b/btcpy/structs/block.py
index <HASH>..<HASH> 100644
--- a/btcpy/structs/block.py
+++ b/btcpy/structs/block.py
@@ -69,7 +69,7 @@ class Block(Immutable, Jsonizable, HexSerializable):
'hash': self.hash(),
'txn_count': len(self.txns),
- 'txns': {tx... | fix block's to_json | py |
diff --git a/slither/detectors/reentrancy/reentrancy.py b/slither/detectors/reentrancy/reentrancy.py
index <HASH>..<HASH> 100644
--- a/slither/detectors/reentrancy/reentrancy.py
+++ b/slither/detectors/reentrancy/reentrancy.py
@@ -59,6 +59,8 @@ class Reentrancy(AbstractDetector):
# We can check that th... | Fix missing support for this.variable() in reentrancy detector | py |
diff --git a/flask_emails/backends.py b/flask_emails/backends.py
index <HASH>..<HASH> 100644
--- a/flask_emails/backends.py
+++ b/flask_emails/backends.py
@@ -9,4 +9,4 @@ class DummyBackend(object):
pass
def sendmail(self, **kw):
- return [DummyResponse()]
\ No newline at end of file
+ ret... | Use the same return as the default backend. | py |
diff --git a/macroeco/empirical/_empirical.py b/macroeco/empirical/_empirical.py
index <HASH>..<HASH> 100644
--- a/macroeco/empirical/_empirical.py
+++ b/macroeco/empirical/_empirical.py
@@ -300,7 +300,10 @@ def _subset_table(full_table, subset):
for condition in conditions:
col = re.split("[<>=!]", condi... | Try/except so MacroecoDesktop can catch KeyError in subset | py |
diff --git a/salt/modules/slsutil.py b/salt/modules/slsutil.py
index <HASH>..<HASH> 100644
--- a/salt/modules/slsutil.py
+++ b/salt/modules/slsutil.py
@@ -56,13 +56,28 @@ def merge(obj_a, obj_b, strategy='smart', renderer='yaml', merge_lists=False):
def merge_all(lst, strategy='smart', renderer='yaml', merge_lists=F... | Adding the versionadded tag and argument definitions | py |
diff --git a/fedmsg/commands/relay.py b/fedmsg/commands/relay.py
index <HASH>..<HASH> 100644
--- a/fedmsg/commands/relay.py
+++ b/fedmsg/commands/relay.py
@@ -45,11 +45,6 @@ def relay(**kw):
SUB.bind()->PUB.bind() relay.
"""
- # TODO - Works is needed here in order for multiple failover fedmsg-relays
- ... | Remove question about redundant fedmsg-relays. Fixes #<I>. | py |
diff --git a/vespa/kepler.py b/vespa/kepler.py
index <HASH>..<HASH> 100644
--- a/vespa/kepler.py
+++ b/vespa/kepler.py
@@ -444,7 +444,10 @@ class JRowe_KeplerTransitSignal(KeplerTransitSignal):
logging.debug('{} points read from file.'.format(len(lc)))
- self.ttfile = '%s/koi%07.2f.tt' % (TTV_DIR, k... | Look for TTV file in self.folder if didn't found in TTV_DIR | py |
diff --git a/km3pipe/utils/qrunqaqc.py b/km3pipe/utils/qrunqaqc.py
index <HASH>..<HASH> 100644
--- a/km3pipe/utils/qrunqaqc.py
+++ b/km3pipe/utils/qrunqaqc.py
@@ -64,6 +64,9 @@ class QAQCAnalyser(object):
self.workdir = os.path.dirname(os.path.realpath(__file__))
self.outdir = os.path.join(self.work... | Create folder for qparams | py |
diff --git a/littleutils/__init__.py b/littleutils/__init__.py
index <HASH>..<HASH> 100644
--- a/littleutils/__init__.py
+++ b/littleutils/__init__.py
@@ -20,7 +20,9 @@ try:
except NameError:
# noinspection PyShadowingBuiltins
basestring = str
-from collections import Sized, defaultdict, Mapping, Sequence, M... | Fix collections import warning This will likely break compatibility with < <I>... ``` >>> from collections import Sized, defaultdict, Mapping, Sequence, MutableMapping __main__:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python <I>,a... | py |
diff --git a/memote/suite/tests/test_biomass.py b/memote/suite/tests/test_biomass.py
index <HASH>..<HASH> 100644
--- a/memote/suite/tests/test_biomass.py
+++ b/memote/suite/tests/test_biomass.py
@@ -28,7 +28,6 @@ from __future__ import absolute_import, division
import logging
import pytest
-import numpy as np
from... | fix: fix assertion check (#<I>) * fix: provide more slack for biomass consistency check | py |
diff --git a/notario/validators/iterables.py b/notario/validators/iterables.py
index <HASH>..<HASH> 100644
--- a/notario/validators/iterables.py
+++ b/notario/validators/iterables.py
@@ -42,7 +42,7 @@ class AnyItem(BasicIterableValidator):
if is_callable(self.schema):
msg = "did not contain any va... | make sure we repr so tuples convert to strings | py |
diff --git a/montblanc/impl/rime/tensorflow/feeders/queue_wrapper.py b/montblanc/impl/rime/tensorflow/feeders/queue_wrapper.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/rime/tensorflow/feeders/queue_wrapper.py
+++ b/montblanc/impl/rime/tensorflow/feeders/queue_wrapper.py
@@ -44,13 +44,16 @@ class QueueWrapper(ob... | Rename value_names to fed_arrays | py |
diff --git a/anchore/version.py b/anchore/version.py
index <HASH>..<HASH> 100644
--- a/anchore/version.py
+++ b/anchore/version.py
@@ -1 +1 @@
-version = "1.1.1dev"
+version = "1.1.2dev" | version bump to <I>dev | py |
diff --git a/mt940/__about__.py b/mt940/__about__.py
index <HASH>..<HASH> 100644
--- a/mt940/__about__.py
+++ b/mt940/__about__.py
@@ -6,7 +6,7 @@ A library to parse MT940 files and returns smart Python collections for
statistics and manipulation.
'''.strip().split())
__email__ = 'wolph@wol.ph'
-__version__ = '4.4'
... | fixed wrong repetitions cound in TransactionDetails (fixes #<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ def readme():
return f.read()
setup(name='zk_shell',
- version='0.1',
+ version='0.2',
description='A Python - Kazoo based - shell for ZooKeeper',
long_description=readme(),
... | Version bump since prev package didn't include data files | py |
diff --git a/pyked/tests/test_chemked.py b/pyked/tests/test_chemked.py
index <HASH>..<HASH> 100644
--- a/pyked/tests/test_chemked.py
+++ b/pyked/tests/test_chemked.py
@@ -207,6 +207,17 @@ class TestDataPoint(object):
d = DataPoint(properties[2])
assert d.get_cantera_mole_fraction() == 'H2: 4.4400e-03,... | :umbrella: Adds a test for a DataPoint's composition | py |
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -1457,7 +1457,7 @@ def _build_and_run(
suite_name=args.report_suite_name)
return []
- if not a... | Fix run_tests for non-C/C++ | py |
diff --git a/Lib/glyphsLib/classes.py b/Lib/glyphsLib/classes.py
index <HASH>..<HASH> 100755
--- a/Lib/glyphsLib/classes.py
+++ b/Lib/glyphsLib/classes.py
@@ -1507,6 +1507,14 @@ class GSPath(GSBase):
else:
return 1
+ @property
+ def selected(self):
+ raise NotImplementedError
+
+ ... | Added unimplemented properties to GSPath | py |
diff --git a/bin/cache_gc.py b/bin/cache_gc.py
index <HASH>..<HASH> 100755
--- a/bin/cache_gc.py
+++ b/bin/cache_gc.py
@@ -29,13 +29,15 @@ data.
"""
import getopt
-import logging
import re
import sys
from openquake import kvs
+from openquake import logs
from openquake.kvs import tokens
+LOG = logs.LOG
+
SH... | added better logging to cache_gc.py | py |
diff --git a/librosa/core/spectrum.py b/librosa/core/spectrum.py
index <HASH>..<HASH> 100644
--- a/librosa/core/spectrum.py
+++ b/librosa/core/spectrum.py
@@ -928,10 +928,6 @@ def fmt(y, t_min=0.5, n_fmt=None, kind='slinear', beta=0.5, over_sample=1, axis=
endpoint=False,
... | trying to remove clipping in fmt sample coordinates | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -67,8 +67,7 @@ setup(name='trimesh',
'requests',
'xxhash',
'pycollada',
- 'colorlog',
- ... | remove glooey from [easy] | py |
diff --git a/DocumentController.py b/DocumentController.py
index <HASH>..<HASH> 100644
--- a/DocumentController.py
+++ b/DocumentController.py
@@ -590,9 +590,11 @@ class DocumentController(Observable.Broadcaster):
filter += ";;All Files (*.*)"
export_dir = self.ui.get_persistent_string("export_directo... | Fix dm3 export issue. Also save export file type choice. svn r<I> | py |
diff --git a/tests/test_menu_launcher.py b/tests/test_menu_launcher.py
index <HASH>..<HASH> 100644
--- a/tests/test_menu_launcher.py
+++ b/tests/test_menu_launcher.py
@@ -274,7 +274,7 @@ def test_running_menu():
child.expect('Return to System Commands menu')
# go to containers menu
child.sendline('1')
- ... | changed expect call to look for subtitle. | py |
diff --git a/ricecooker/sample_program.py b/ricecooker/sample_program.py
index <HASH>..<HASH> 100644
--- a/ricecooker/sample_program.py
+++ b/ricecooker/sample_program.py
@@ -1,6 +1,6 @@
-from ricecooker.classes.nodes import Channel, Video, Audio, Document, Topic, Exercise, guess_content_kind
-from ricecooker.classes.q... | Relativize imports in sample program. | py |
diff --git a/google-cloud-tasks/synth.py b/google-cloud-tasks/synth.py
index <HASH>..<HASH> 100644
--- a/google-cloud-tasks/synth.py
+++ b/google-cloud-tasks/synth.py
@@ -7,11 +7,17 @@ logging.basicConfig(level=logging.DEBUG)
gapic = gcp.GAPICGenerator()
-v1_library = gapic.ruby_library(
+v2_library = gapic.ruby_l... | Tasks autosynth prep (#<I>) * update synth.py to copy Rakefile, etc | py |
diff --git a/pysd/py_backend/vensim/vensim2py.py b/pysd/py_backend/vensim/vensim2py.py
index <HASH>..<HASH> 100644
--- a/pysd/py_backend/vensim/vensim2py.py
+++ b/pysd/py_backend/vensim/vensim2py.py
@@ -48,7 +48,7 @@ def get_file_sections(file_str):
main = !":MACRO:" ~r".+(?!:MACRO:)"
name = basic_id / esca... | Fix missing grammar definition for identifiers. | py |
diff --git a/pymongo/connection.py b/pymongo/connection.py
index <HASH>..<HASH> 100644
--- a/pymongo/connection.py
+++ b/pymongo/connection.py
@@ -303,10 +303,6 @@ class Connection(common.BaseObject): # TODO support auth for pooling
if self.__max_pool_size < 0:
raise ValueError("the maximum pool ... | Remove slave_okay/replica set limitation. | py |
diff --git a/pysam/version.py b/pysam/version.py
index <HASH>..<HASH> 100644
--- a/pysam/version.py
+++ b/pysam/version.py
@@ -1,6 +1,6 @@
# pysam versioning information
-__version__ = "0.9.1.1"
+__version__ = "0.9.1.2"
__samtools_version__ = "1.3.1" | {AH} increase version to <I> | py |
diff --git a/dedupe/training.py b/dedupe/training.py
index <HASH>..<HASH> 100644
--- a/dedupe/training.py
+++ b/dedupe/training.py
@@ -353,6 +353,9 @@ class RecordLinkCoverage(Coverage) :
def stopWords(data) :
tf_index = index.CanopyIndex([])
+ for i, (_, doc) in enumerate(data, 1) :
+ tf_index.index_... | we need to index the data in stopWords | py |
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/foreman.py
+++ b/sos/plugins/foreman.py
@@ -22,7 +22,7 @@ class Foreman(Plugin):
profiles = ('sysmgmt',)
packages = ('foreman', 'foreman-proxy')
option_list = [
- ('months', 'number of months... | [foreman] decrease default task export to 1 month For bigger foreman deployments, csv postgres queries timeout while users are not much concerned about old tasks. Let decrease default time span to 1 month and increase timeout for collecting those commands. Resolves: #<I> | py |
diff --git a/squad/frontend/group_settings.py b/squad/frontend/group_settings.py
index <HASH>..<HASH> 100644
--- a/squad/frontend/group_settings.py
+++ b/squad/frontend/group_settings.py
@@ -75,6 +75,8 @@ class DeleteGroupView(GroupViewMixin, FormView):
return {'deletable': self.group}
def form_valid(se... | frontend: group_settings: avoid timeout deleting groups This will force deleting projects prior to deleting groups. Hopefully it will not timeout. | py |
diff --git a/custodian/vasp/handlers.py b/custodian/vasp/handlers.py
index <HASH>..<HASH> 100644
--- a/custodian/vasp/handlers.py
+++ b/custodian/vasp/handlers.py
@@ -956,6 +956,9 @@ class FrozenJobErrorHandler(ErrorHandler):
if vi["INCAR"].get("ALGO", "Normal") == "Fast":
actions.append({"dict": ... | Changed FrozenJobErrorHandler, will change SYMPREC=1E-8 if changing ALGO=Normal doesnt work | py |
diff --git a/script/lib/config.py b/script/lib/config.py
index <HASH>..<HASH> 100644
--- a/script/lib/config.py
+++ b/script/lib/config.py
@@ -8,7 +8,7 @@ import sys
BASE_URL = os.getenv('LIBCHROMIUMCONTENT_MIRROR') or \
'https://s3.amazonaws.com/github-janky-artifacts/libchromiumcontent'
-LIBCHROMIUMCONTENT_CO... | Upgrade libchromiumcontent: enable sending sync message to UI thread | py |
diff --git a/pysat/tests/test_methods_cdaweb.py b/pysat/tests/test_methods_cdaweb.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_methods_cdaweb.py
+++ b/pysat/tests/test_methods_cdaweb.py
@@ -23,7 +23,7 @@ class TestCDAWeb():
# Giving a bad remote_site address yields similar ConnectionError
... | STY: clarify broken remote address for testing | py |
diff --git a/system_tests/bigtable.py b/system_tests/bigtable.py
index <HASH>..<HASH> 100644
--- a/system_tests/bigtable.py
+++ b/system_tests/bigtable.py
@@ -357,7 +357,6 @@ class TestDataAPI(unittest2.TestCase):
# Read back the contents of the row.
partial_row_data = self._table.read_row(ROW_KEY)
... | 'PartialRowData' no longer keeps 'committed' state. The 'PartialRowsData' has state: 'Table.read_row()' ensures it is in the correct state before emitting the PRD. | py |
diff --git a/libtmux/window.py b/libtmux/window.py
index <HASH>..<HASH> 100644
--- a/libtmux/window.py
+++ b/libtmux/window.py
@@ -39,6 +39,32 @@ class Window(TmuxMappingObject, TmuxRelationalObject["Pane", "PaneDict"]):
----------
session : :class:`Session`
+ Examples
+ --------
+ >>> window = ses... | tests(doctests): Window example and rename_window | py |
diff --git a/cerberus/validator.py b/cerberus/validator.py
index <HASH>..<HASH> 100644
--- a/cerberus/validator.py
+++ b/cerberus/validator.py
@@ -11,7 +11,7 @@
from __future__ import absolute_import
from ast import literal_eval
-from collections import Container, Hashable, Iterable, Mapping, Sequence
+from collect... | Checks the empty rule against values of type Sized | py |
diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1300,7 +1300,7 @@ class NDFrame(PandasObject):
t = ("\n"
"A value is trying to be set on a copy of a slice from a "
... | Minor fix to error messages ('See the the caveats in the documentation...') | py |
diff --git a/falafel/mappers/chkconfig.py b/falafel/mappers/chkconfig.py
index <HASH>..<HASH> 100644
--- a/falafel/mappers/chkconfig.py
+++ b/falafel/mappers/chkconfig.py
@@ -4,6 +4,7 @@ chkconfig - command
"""
from collections import namedtuple
from .. import Mapper, mapper
+import re
@mapper('chkconfig')
@@ -... | Add support for xinetd-based services | py |
diff --git a/satpy/dataset.py b/satpy/dataset.py
index <HASH>..<HASH> 100644
--- a/satpy/dataset.py
+++ b/satpy/dataset.py
@@ -103,7 +103,8 @@ def combine_metadata(*metadata_objects, **kwargs):
# List[xarray.DataArray], this means our values are now
# List[List[xarray.DataArray]].
any_list_of... | Don't catch empty collections The list of arrays was catching too much, such as [()]. Only catch lists of arrays when they are non-empty. | py |
diff --git a/src/qinfer/smc.py b/src/qinfer/smc.py
index <HASH>..<HASH> 100644
--- a/src/qinfer/smc.py
+++ b/src/qinfer/smc.py
@@ -426,8 +426,8 @@ class SMCUpdater(object):
return -self.est_entropy() - (1 / epsilon) * np.sum(
+ self.particle_weights *
np.log(
- ... | Fixed bug in estimation of KL divergence | py |
diff --git a/tests/logs_unittest.py b/tests/logs_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/logs_unittest.py
+++ b/tests/logs_unittest.py
@@ -92,12 +92,14 @@ class JavaLogsTestCase(unittest.TestCase):
def toInt(self):
return 12345
return Level()
+
... | fixed pep8 warnings, made custom level test more complete | py |
diff --git a/django_extensions/management/commands/reset_db.py b/django_extensions/management/commands/reset_db.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/reset_db.py
+++ b/django_extensions/management/commands/reset_db.py
@@ -135,7 +135,7 @@ Type 'yes' to continue, or 'no' to cancel: ""... | Update reset_db.py Add support for db owner name containing .'s | py |
diff --git a/discord/guild.py b/discord/guild.py
index <HASH>..<HASH> 100644
--- a/discord/guild.py
+++ b/discord/guild.py
@@ -706,7 +706,14 @@ class Guild(Hashable):
@property
def member_count(self):
- """:class:`int`: Returns the true member count regardless of it being loaded fully or not."""
+ ... | Mention potential Guild.member_count accuracy issues | py |
diff --git a/python/ray/_private/ray_microbenchmark_helpers.py b/python/ray/_private/ray_microbenchmark_helpers.py
index <HASH>..<HASH> 100644
--- a/python/ray/_private/ray_microbenchmark_helpers.py
+++ b/python/ray/_private/ray_microbenchmark_helpers.py
@@ -14,6 +14,8 @@ filter_pattern = os.environ.get("TESTS_TO_RUN",... | [microbenchmark] avoid noisy neighbor #<I> Why are these changes needed? see #<I>, add sleep between benchmark tests avoid noisy neighbor tests. | py |
diff --git a/test/test_prototype_transforms_functional.py b/test/test_prototype_transforms_functional.py
index <HASH>..<HASH> 100644
--- a/test/test_prototype_transforms_functional.py
+++ b/test/test_prototype_transforms_functional.py
@@ -488,6 +488,15 @@ def perspective_segmentation_mask():
@register_kernel_info_... | [proto] Updated center_crop tests (#<I>) * [proto] Added missing decorator for center_crop_segmentation_mask tests * Added center_crop_image_tensor | py |
diff --git a/grimoire_elk/_version.py b/grimoire_elk/_version.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/_version.py
+++ b/grimoire_elk/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.26.6"
+__version__ = "0.26.7" | [release] Update _version.py file to <I> for pip packages | py |
diff --git a/cantrips/console.py b/cantrips/console.py
index <HASH>..<HASH> 100644
--- a/cantrips/console.py
+++ b/cantrips/console.py
@@ -1,4 +1,5 @@
from future.builtins.misc import input as line_input
+from __future__ import print_function
class _Getch:
@@ -53,7 +54,7 @@ def input(message, until, single_char=F... | Update console.py Changing print to python3 compatibility | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup
setup(name='python-ntlm3',
- version='1.0.2',
+ version='1.0.3-dev',
description='Python 3 compatible NTLM library',
long_description="""
Thi... | Bumping version number [ci skip] | py |
diff --git a/abydos/distance/_iterative_substring.py b/abydos/distance/_iterative_substring.py
index <HASH>..<HASH> 100644
--- a/abydos/distance/_iterative_substring.py
+++ b/abydos/distance/_iterative_substring.py
@@ -144,7 +144,7 @@ class IterativeSubString(_Distance):
while j < lt and src[k] != ... | corrected bug (error in translating Java original) | py |
diff --git a/sanitized_dump/config.py b/sanitized_dump/config.py
index <HASH>..<HASH> 100644
--- a/sanitized_dump/config.py
+++ b/sanitized_dump/config.py
@@ -33,6 +33,17 @@ class Configuration:
return configuration
+ @classmethod
+ def from_file(cls, file):
+ conf = Configuration(yaml.load(fi... | Add config methods for creating config from a file or file path | py |
diff --git a/tests/unit/models/geometry/ThroatVolumeTest.py b/tests/unit/models/geometry/ThroatVolumeTest.py
index <HASH>..<HASH> 100644
--- a/tests/unit/models/geometry/ThroatVolumeTest.py
+++ b/tests/unit/models/geometry/ThroatVolumeTest.py
@@ -26,13 +26,13 @@ class ThroatVolumeTest:
net.add_model(propname='... | More robust comparison: replaced == with sp.isclose | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.