diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/requests_kerberos/__init__.py b/requests_kerberos/__init__.py
index <HASH>..<HASH> 100644
--- a/requests_kerberos/__init__.py
+++ b/requests_kerberos/__init__.py
@@ -22,4 +22,4 @@ from .compat import NullHandler
logging.getLogger(__name__).addHandler(NullHandler())
__all__ = [HTTPKerberosAuth, MutualAu... | Version <I> I can fix up the README with history later and fix up PyPI to reflect it. | 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
@@ -7,7 +7,7 @@ import sys
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
-LIBCHROMIUMCONTENT_COMMIT = '9fe48b05eccb66436f5d37549ee8a35d3a3884af'
... | Update the commit of libchromiumcontent to download | py |
diff --git a/torchvision/datasets/stl10.py b/torchvision/datasets/stl10.py
index <HASH>..<HASH> 100644
--- a/torchvision/datasets/stl10.py
+++ b/torchvision/datasets/stl10.py
@@ -41,9 +41,14 @@ class STL10(CIFAR10):
['test_X.bin', '7f263ba9f9e0b06b93213547f721ac82'],
['test_y.bin', '36f9794fa4beb8a2c7... | Fix for issue #<I> - STL dataset returns test fold if fold is misspecified (#<I>) | py |
diff --git a/wikidataintegrator/wdi_fastrun.py b/wikidataintegrator/wdi_fastrun.py
index <HASH>..<HASH> 100644
--- a/wikidataintegrator/wdi_fastrun.py
+++ b/wikidataintegrator/wdi_fastrun.py
@@ -318,7 +318,9 @@ class FastRunContainer(object):
else:
i['v'] = i['v']['value']
... | minor change in fastrun behaviour, for multithreading | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -53,7 +53,7 @@ install_reqs = [
'scipy>=0.14.0',
'scikit-learn>=0.16.1',
'seaborn>=0.7.1',
- 'empyrical>=0.5.0'
+ 'empyrical>=0.5.2'
]
test_reqs = ['nose>=1.3.7', 'nose-parameterized>=0.5.0', 'runipy>=... | Update empyrical dep. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -70,8 +70,6 @@ extras_require['tests'] = [
'path.py',
'matplotlib >=2.2,<3.1',
'nbsmoke >=0.2.0',
- 'pytest-cov ==2.5.1',
- 'pytest <6.0',
'nbconvert <6',
'twine',
'rfc3986', | pytest is currently an indirect dependency (comes from nbsmoke). (#<I>) | py |
diff --git a/phoebe/backend/universe.py b/phoebe/backend/universe.py
index <HASH>..<HASH> 100644
--- a/phoebe/backend/universe.py
+++ b/phoebe/backend/universe.py
@@ -4342,7 +4342,7 @@ class Body(object):
# append to etvsyn
etvsyn['time'] = np.append(etvsyn['time'],times)
... | fixed bug in etv computation | py |
diff --git a/emma2/coordinates/transform/api.py b/emma2/coordinates/transform/api.py
index <HASH>..<HASH> 100644
--- a/emma2/coordinates/transform/api.py
+++ b/emma2/coordinates/transform/api.py
@@ -3,6 +3,8 @@ Created on Dec 30, 2013
@author: noe
'''
+from emma2.util.pystallone import JavaException
+from emma2.uti... | [coordinates/transform] added todo about pca bug and handle java exception | py |
diff --git a/nodeconductor/core/managers.py b/nodeconductor/core/managers.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/core/managers.py
+++ b/nodeconductor/core/managers.py
@@ -61,17 +61,17 @@ class GenericKeyMixin(object):
kwargs[self.content_type_field + '__isnull'] = generic_key_value
ret... | [WAL-<I>] Allow to pass positional arguments in generic manager. Otherwise GenericKeyMixin breaks convention and could not be used. | py |
diff --git a/setuptools/tests/test_pep517.py b/setuptools/tests/test_pep517.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_pep517.py
+++ b/setuptools/tests/test_pep517.py
@@ -49,10 +49,11 @@ class BuildBackendCaller(BuildBackendBase):
@contextmanager
def enter_directory(dir, val=None):
- original_dir... | tests: pep<I>: fix enter_directory | py |
diff --git a/odl/tomo/analytic/filtered_back_projection.py b/odl/tomo/analytic/filtered_back_projection.py
index <HASH>..<HASH> 100644
--- a/odl/tomo/analytic/filtered_back_projection.py
+++ b/odl/tomo/analytic/filtered_back_projection.py
@@ -36,7 +36,7 @@ def _rotation_direction_in_detector(geometry):
"""A vector... | BUG: Fix bug with parker weighting caused by new geometries | py |
diff --git a/allennlp/common/plugins.py b/allennlp/common/plugins.py
index <HASH>..<HASH> 100644
--- a/allennlp/common/plugins.py
+++ b/allennlp/common/plugins.py
@@ -17,12 +17,16 @@ There are two ways of declaring plugins for discovery:
See [allennlp-server](https://github.com/allenai/allennlp-server) for an exam... | Check for exceptions when importing plugins (#<I>) | py |
diff --git a/gns3server/modules/dynamips/__init__.py b/gns3server/modules/dynamips/__init__.py
index <HASH>..<HASH> 100644
--- a/gns3server/modules/dynamips/__init__.py
+++ b/gns3server/modules/dynamips/__init__.py
@@ -458,9 +458,10 @@ class Dynamips(BaseManager):
nio = NIOLinuxEthernet(node.hypervisor, et... | Fixes "can only use tap interfaces that both already exist and are up". Fixes #<I>. | py |
diff --git a/dataclass.py b/dataclass.py
index <HASH>..<HASH> 100644
--- a/dataclass.py
+++ b/dataclass.py
@@ -314,7 +314,9 @@ def _process_class(cls, repr, cmp, hash, init, slots, frozen, dynamic):
cls.__ge__ = _ge(cmp_fields)
if slots:
- cls.__slots__ = tuple(f.name for f in fields)
+ # ... | Added note about needing to return a new class if setting __slots__. | py |
diff --git a/src/pymoca/backends/casadi/alias_relation.py b/src/pymoca/backends/casadi/alias_relation.py
index <HASH>..<HASH> 100644
--- a/src/pymoca/backends/casadi/alias_relation.py
+++ b/src/pymoca/backends/casadi/alias_relation.py
@@ -1,7 +1,11 @@
from collections import OrderedDict, MutableSet
-# From https://c... | Make OrderedSet pickleable and deepcopyable Users might want to pickle or deepcopy pymoca data structures, e.g. AliasRelation. The linked list underlying the OrderedSet class (used by AliasRelation and others) would produce max depth recursion errors with the default behaviour, so we define methods __getstate__ and __... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
-VERSION = "0.8.1"
+VERSION = "0.8.2"
setup(
name='wikidataintegrator', | Moved to version <I> | py |
diff --git a/src/collectors/cephstats/test/test_ceph.py b/src/collectors/cephstats/test/test_ceph.py
index <HASH>..<HASH> 100755
--- a/src/collectors/cephstats/test/test_ceph.py
+++ b/src/collectors/cephstats/test/test_ceph.py
@@ -22,7 +22,7 @@ class TestCephStats(unittest.TestCase):
Get ceph information from ... | Fixed test output to account for scaling to bytes. | py |
diff --git a/zipline/finance/performance/tracker.py b/zipline/finance/performance/tracker.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/performance/tracker.py
+++ b/zipline/finance/performance/tracker.py
@@ -88,7 +88,6 @@ class PerformanceTracker(object):
self.total_days = self.sim_params.days_in_period... | MAINT: Remove extra assignment of emission rate. Remove a doubled line in performance tracker. | py |
diff --git a/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py b/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py
index <HASH>..<HASH> 100644
--- a/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py
+++ b/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisc... | Attribute nve_src_intf causing bad behavior This commit recognizes nve_src_intf in the list of Nexus Switch config attributes as not being that of a host name. This anomaly came in when implementing scaling changes. Specifically the issue is in method _get_switch_interfaces in the review/commit <URL> | py |
diff --git a/sos/utilities.py b/sos/utilities.py
index <HASH>..<HASH> 100644
--- a/sos/utilities.py
+++ b/sos/utilities.py
@@ -129,7 +129,7 @@ def sos_get_command_output(command, timeout=300, stderr=False,
cmd_env['LC_ALL'] = 'C'
# optionally add an environment change for the command
if env:
- for... | [utilities] make sos_get_command_output() python3 compatible The iteritems() member has been removed in python3. Since the environment loop in sos_get_command_output() is not expected to be run with very large inputs use .items() instead, which is compatible with both python2 and python3. | py |
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/base_case.py
+++ b/seleniumbase/fixtures/base_case.py
@@ -4865,8 +4865,16 @@ class BaseCase(unittest.TestCase):
self.ad_block()
def _print(self, msg):
- """... | Keep "self._print()" from printing during multithreaded runs | py |
diff --git a/vasppy/poscar.py b/vasppy/poscar.py
index <HASH>..<HASH> 100644
--- a/vasppy/poscar.py
+++ b/vasppy/poscar.py
@@ -10,6 +10,9 @@ def angle( x, y ):
cos_angle = dot / ( x_mod * y_mod )
return np.degrees( np.arccos( cos_angle ) )
+def parity( list ):
+ return( sum( list )%2 )
+
class Poscar:
... | added mistakenly removed 'parity' function to poscar.py | py |
diff --git a/rivescript/sorting.py b/rivescript/sorting.py
index <HASH>..<HASH> 100644
--- a/rivescript/sorting.py
+++ b/rivescript/sorting.py
@@ -34,7 +34,7 @@ class TriggerObj(object):
option: Number of optional tags ("[man]" in "hey [man]")
"""
- def __init__(self, pattern, index, weight, ... | replace sys.maxint by sys.maxsize to maintain compatability with Python 3 | py |
diff --git a/belpy/BelProcessor.py b/belpy/BelProcessor.py
index <HASH>..<HASH> 100644
--- a/belpy/BelProcessor.py
+++ b/belpy/BelProcessor.py
@@ -1,5 +1,4 @@
from belpy.statements import *
-from pysb.core import InvalidComponentNameError
from rdflib import URIRef, Namespace
from rdflib.namespace import RDF
@@ -23... | Remove pysb dependency in BelProcessor | py |
diff --git a/spyderlib/ipythonconfig.py b/spyderlib/ipythonconfig.py
index <HASH>..<HASH> 100644
--- a/spyderlib/ipythonconfig.py
+++ b/spyderlib/ipythonconfig.py
@@ -16,6 +16,7 @@ from spyderlib.baseconfig import _
# Constants
IPYTHON_REQVER = '>=1.0'
ZMQ_REQVER = '>=2.1.11'
+QTCONSOLE_REQVER = '>=4.0'
# Depen... | IPython Console: Add qtconsole as a dependency if IPython <I> is found | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ class optional_build_ext(build_ext):
setup_kwargs = dict(
name = 'wrapt',
- version = '1.1.3',
+ version = '1.1.4',
description = 'Module for decorators, wrappers and monkey patching.'... | Increment version to <I> in setup.py. | py |
diff --git a/examples/plotting/file/candlestick.py b/examples/plotting/file/candlestick.py
index <HASH>..<HASH> 100644
--- a/examples/plotting/file/candlestick.py
+++ b/examples/plotting/file/candlestick.py
@@ -23,11 +23,9 @@ def candlestick():
segment(dates, df.high, dates, df.low,
color='#000000', ... | Fixing candlestick demo (again) to use computed data width | py |
diff --git a/workshift/tests/test_forms.py b/workshift/tests/test_forms.py
index <HASH>..<HASH> 100644
--- a/workshift/tests/test_forms.py
+++ b/workshift/tests/test_forms.py
@@ -243,3 +243,8 @@ class TestInteractForms(TestCase):
)
self.assertTrue(form.is_valid())
self.assertEqual(form.save()... | Added a bit more to test_edit_hours | py |
diff --git a/authomatic/providers/oauth2.py b/authomatic/providers/oauth2.py
index <HASH>..<HASH> 100644
--- a/authomatic/providers/oauth2.py
+++ b/authomatic/providers/oauth2.py
@@ -370,11 +370,13 @@ class OAuth2(providers.AuthorizationProvider):
# Phase 2 after redirect with error
#=========... | Improved OAuth <I> Error Handling. Fixes #<I>. | py |
diff --git a/globus_cli/config.py b/globus_cli/config.py
index <HASH>..<HASH> 100644
--- a/globus_cli/config.py
+++ b/globus_cli/config.py
@@ -84,7 +84,7 @@ def get_config_obj(system=False):
else:
path = os.path.expanduser("~/.globus.cfg")
- return ConfigObj(path)
+ return ConfigObj(path, encoding... | Set encoding=utf-8 on ConfigObj This is used for loading and writing ~/.globus.cfg Setting the encoding allows ConfigObj to correctly handle unicode strings and does not conflict with existing file contents in ascii-only files. Tested manually -- it's not clear at present how this should be added to the testsuite, sin... | py |
diff --git a/tweepy/api.py b/tweepy/api.py
index <HASH>..<HASH> 100644
--- a/tweepy/api.py
+++ b/tweepy/api.py
@@ -2886,12 +2886,20 @@ class API:
Returns an array of numeric user IDs the authenticating user is
blocking.
- :param stringify_ids: |stringify_ids|
- :param cursor: |cursor|
... | Update and improve documentation for API.blocks_ids | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -80,7 +80,7 @@ def test_resample():
'data/test2_8000.wav']:
y, sr_in = librosa.load(infile, sr=None)
- for sr_out in [8000, 22050, 44100]:
+ ... | removed one set of upsampling tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ setup(
'based on uvloop and picohttpparser',
package_dir={'': 'src'},
packages=find_packages('src'),
- keywords=['web asyncio'],
+ keywords=['web', 'asyncio'],
platforms='x8... | [travis-wheel] this is <I>a2 | py |
diff --git a/tests/unit_test.py b/tests/unit_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit_test.py
+++ b/tests/unit_test.py
@@ -1106,7 +1106,7 @@ class TestServer(object):
def certificate_key():
import utils_35 as utils
from cryptography import x509
- address = ('127.0.0.1', 1433)
+ address = ('... | Fix unit test failures when SQL Server is running locally. (#<I>) Use port <I> for unit test sockets instead of <I>. Fixes #<I> | py |
diff --git a/examples/gui_integration/simple_editor.py b/examples/gui_integration/simple_editor.py
index <HASH>..<HASH> 100644
--- a/examples/gui_integration/simple_editor.py
+++ b/examples/gui_integration/simple_editor.py
@@ -68,8 +68,12 @@ class SimpleEditorWindow(QtGui.QMainWindow, Ui_MainWindow):
def on_action... | Fix open file action in example when run with pyside | py |
diff --git a/tests/test_protocols.py b/tests/test_protocols.py
index <HASH>..<HASH> 100644
--- a/tests/test_protocols.py
+++ b/tests/test_protocols.py
@@ -24,6 +24,8 @@ class ProtocolsTestCase(unittest.TestCase):
def test_ipv6(self):
+ # TODO: to be added later
+ return
try:
... | Disable ipv6 test for now | py |
diff --git a/sports/teams.py b/sports/teams.py
index <HASH>..<HASH> 100644
--- a/sports/teams.py
+++ b/sports/teams.py
@@ -20,7 +20,7 @@ class Team:
return 'Name: {}\nAll-time record: {}\nChampionships: {}'.format(self.name, self.record, self.champs)
-def team(sport, team):
+def get_team(sport, team):
... | Rename get_team_info() to get_team() | py |
diff --git a/wpull/network/connection.py b/wpull/network/connection.py
index <HASH>..<HASH> 100644
--- a/wpull/network/connection.py
+++ b/wpull/network/connection.py
@@ -457,7 +457,7 @@ class SSLConnection(Connection):
@asyncio.coroutine
def connect(self):
result = yield from super().connect()
- ... | connection: Use new ssl_object key for Python <I> to get ssl socket | py |
diff --git a/cloudwatchmon/cli/put_instance_stats.py b/cloudwatchmon/cli/put_instance_stats.py
index <HASH>..<HASH> 100755
--- a/cloudwatchmon/cli/put_instance_stats.py
+++ b/cloudwatchmon/cli/put_instance_stats.py
@@ -365,7 +365,7 @@ def add_loadavg_metrics(args, metrics):
def get_disk_info(paths):
df_out = [s... | Removed unnecessary df -l switch - closes #<I> | py |
diff --git a/pyxmpp/xmlextra.py b/pyxmpp/xmlextra.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/xmlextra.py
+++ b/pyxmpp/xmlextra.py
@@ -62,8 +62,6 @@ class StreamHandler:
class StreamReader:
def __init__(self,handler):
self.reader=_xmlextra.reader_new(handler)
- def __del__(self):
- del self.reader
def doc(self... | - unneeded destructor removed from StreamReader | py |
diff --git a/deimos/containerizer.py b/deimos/containerizer.py
index <HASH>..<HASH> 100644
--- a/deimos/containerizer.py
+++ b/deimos/containerizer.py
@@ -181,9 +181,17 @@ class Docker(Containerizer, _Struct):
data = Run(data=True)(deimos.docker.wait(state.cid()))
state.exit(data)
lk_w.unlock... | Shutdown subprocesses before waiting. | py |
diff --git a/spockbot/plugins/tools/smpmap.py b/spockbot/plugins/tools/smpmap.py
index <HASH>..<HASH> 100644
--- a/spockbot/plugins/tools/smpmap.py
+++ b/spockbot/plugins/tools/smpmap.py
@@ -256,7 +256,10 @@ class Dimension(object):
if data is None:
data = (block_id << 4) | (meta & 0x0F)
+
+ ... | Return old block data from Dimension.set_block() | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -176,13 +176,13 @@ html_extra_path = [
for name in "example_movies example_start example_volume_rendering example_virtual_columns example_tables tutorial_ipython_notebook.rst".spl... | try to fix the path of the html output to ./ [skip ci] | py |
diff --git a/lawfactory_utils/urls.py b/lawfactory_utils/urls.py
index <HASH>..<HASH> 100644
--- a/lawfactory_utils/urls.py
+++ b/lawfactory_utils/urls.py
@@ -97,6 +97,11 @@ def clean_url(url):
path = path.replace('leg/../', '/')
path = path.replace('dossierleg/', 'dossier-legislatif/')
+ # n... | normalize senat url even more | py |
diff --git a/dask_ml/model_selection/utils.py b/dask_ml/model_selection/utils.py
index <HASH>..<HASH> 100644
--- a/dask_ml/model_selection/utils.py
+++ b/dask_ml/model_selection/utils.py
@@ -4,6 +4,7 @@ from distutils.version import LooseVersion
import dask
import dask.array as da
+import dask.dataframe as dd
impo... | update indexable() to just yield dask dataframes (issue #<I>) (#<I>) * update indexable() to just yield dask dataframes, as mentioned in issue #<I> | py |
diff --git a/kubernetes/K8sObject.py b/kubernetes/K8sObject.py
index <HASH>..<HASH> 100644
--- a/kubernetes/K8sObject.py
+++ b/kubernetes/K8sObject.py
@@ -7,6 +7,7 @@
#
import json
+import time
import yaml
@@ -32,6 +33,9 @@ VALID_K8s_OBJS = [
class K8sObject(object):
+
+ DELETE_TIMEOUT_SECONDS = 60
+
... | K8sObject: add wait period on delete() to make sure resource has been purged | py |
diff --git a/visidata/join.py b/visidata/join.py
index <HASH>..<HASH> 100644
--- a/visidata/join.py
+++ b/visidata/join.py
@@ -130,10 +130,11 @@ class JoinSheet(Sheet):
for colname, cols in allcols.items():
self.addColumn(MergeColumn(colname, cols=cols))
else:
+ ctr = col... | [join] use counter to keep track of frequency of column names - allcols is pre-populated with Nones, and so is not representative of the number of sheets with a certain c.name - for joins, we want un-ambiguous sheets of origin when more than one sheet has a c.name - and we want joined unique non-key columns to be save... | py |
diff --git a/inferno/callbacks.py b/inferno/callbacks.py
index <HASH>..<HASH> 100644
--- a/inferno/callbacks.py
+++ b/inferno/callbacks.py
@@ -202,7 +202,7 @@ class BestLoss(Callback):
yield key, sign, loss
def on_epoch_end(self, net, **kwargs):
- sl = slice(-1, None), list(self.key_signs)
+ ... | Use np.s_ for consistencey. | py |
diff --git a/yabt/buildcontext.py b/yabt/buildcontext.py
index <HASH>..<HASH> 100644
--- a/yabt/buildcontext.py
+++ b/yabt/buildcontext.py
@@ -289,6 +289,8 @@ class BuildContext:
self.skipped_nodes.append(affected_node)
graph_copy.remove_node(affected_node)
... | print intermediate failures for easier debug | py |
diff --git a/bigchaindb/core.py b/bigchaindb/core.py
index <HASH>..<HASH> 100644
--- a/bigchaindb/core.py
+++ b/bigchaindb/core.py
@@ -455,7 +455,7 @@ class Bigchain(object):
Block: created block.
"""
# Prevent the creation of empty blocks
- if len(validated_transactions) == 0:
+ ... | Changed 'len(validated_transactions) == 0' to 'not validated_transactions' as suggested by @amirelemam in #<I> | py |
diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py
index <HASH>..<HASH> 100644
--- a/asv_bench/benchmarks/arithmetic.py
+++ b/asv_bench/benchmarks/arithmetic.py
@@ -466,7 +466,7 @@ class ApplyIndex:
self.rng = rng
def time_apply_index(self, offset):
- offset.appl... | solves ci issues with #<I> (#<I>) | py |
diff --git a/dcplib/etl/__init__.py b/dcplib/etl/__init__.py
index <HASH>..<HASH> 100644
--- a/dcplib/etl/__init__.py
+++ b/dcplib/etl/__init__.py
@@ -98,7 +98,8 @@ class DSSExtractor:
f"({extracted_bundle_count/total_bundles:.1%}, {error_bundle_count} errors)")
futures = [... | handle different format of return values (#<I>) * update bundle list handling in extract function to handle returns from different endpoints | py |
diff --git a/fedmsg_atomic_composer/composer.py b/fedmsg_atomic_composer/composer.py
index <HASH>..<HASH> 100644
--- a/fedmsg_atomic_composer/composer.py
+++ b/fedmsg_atomic_composer/composer.py
@@ -42,7 +42,6 @@ class AtomicComposer(object):
self.generate_repo_files(release)
self.ostree_compo... | composer: Cleanup in a 'finally' block | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -40,8 +40,11 @@ import sys
import requests
from requests import Request
import socket
-import base64
-base64.decodestring = base64.decodebytes
+# horrible monkeypatching for Feedparse... | More conservative <I> decodestring monkeypatching | py |
diff --git a/script/create-dist.py b/script/create-dist.py
index <HASH>..<HASH> 100755
--- a/script/create-dist.py
+++ b/script/create-dist.py
@@ -38,6 +38,7 @@ TARGET_BINARIES = {
'libGLESv2.dll',
'msvcp120.dll',
'msvcr120.dll',
+ 'ffmpeg.dll',
'node.dll',
'pdf.dll',
'content_resources... | Ship ffmpeg in dist, close #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,8 @@ VERSION = open('microraiden/VERSION', 'r').read().strip()
REQUIREMENTS = [
'cytoolz==0.8.2',
- 'eth-utils>=0.7.4',
+ # upper bound due to eth-abi 0.5.0:
+ 'eth-utils>=0.7.4,<=0.7.9',
'eth-k... | Restrict dep. due to frozen third party dep. | py |
diff --git a/pywws/Plot.py b/pywws/Plot.py
index <HASH>..<HASH> 100755
--- a/pywws/Plot.py
+++ b/pywws/Plot.py
@@ -264,12 +264,12 @@ set timefmt "%Y-%m-%dT%H:%M:%S"
elif source == self.hourly_data:
boxwidth = 2800
start = source.before(start)
- interval = timedelta(minutes=... | Extended the time between readings Plot.py allows before putting a gap in the plotted line. | py |
diff --git a/wasp-launcher.py b/wasp-launcher.py
index <HASH>..<HASH> 100755
--- a/wasp-launcher.py
+++ b/wasp-launcher.py
@@ -1,6 +1,6 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
-# wasp_launcher.py
+# wasp-launcher.py
#
# Copyright (C) 2016 the wasp-launcher authors and contributors
# <see AUTHORS file>
@@ -36... | wasp-launcher.py: shutdown fix | py |
diff --git a/angr/analyses/cfg/cfg_fast.py b/angr/analyses/cfg/cfg_fast.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfg_fast.py
+++ b/angr/analyses/cfg/cfg_fast.py
@@ -3397,7 +3397,8 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method
irsb = None
irsb_st... | CFGFast: Specify strict_block_end=True to force strict block ends. | py |
diff --git a/lenstronomy/Workflow/alignment_matching.py b/lenstronomy/Workflow/alignment_matching.py
index <HASH>..<HASH> 100644
--- a/lenstronomy/Workflow/alignment_matching.py
+++ b/lenstronomy/Workflow/alignment_matching.py
@@ -30,8 +30,8 @@ class AlignmentFitting(object):
pso = ParticleSwarmOptimizer(sel... | Add back the check for `None` in `init_pos` set for PSO | py |
diff --git a/cloudmesh/common/StopWatch.py b/cloudmesh/common/StopWatch.py
index <HASH>..<HASH> 100644
--- a/cloudmesh/common/StopWatch.py
+++ b/cloudmesh/common/StopWatch.py
@@ -138,6 +138,8 @@ def progress(filename=None,
:type time: str
:param stdout: if TRue Prints the progress, if False does not pring, de... | add \n new line character to progress | py |
diff --git a/explorer/views.py b/explorer/views.py
index <HASH>..<HASH> 100644
--- a/explorer/views.py
+++ b/explorer/views.py
@@ -6,6 +6,7 @@ from django.shortcuts import render_to_response, get_object_or_404
from django.views.generic.base import View
from django.views.generic import ListView
from django.views.gene... | Use @xframe_options_sameorigin on schema view so it works with X_FRAME_OPTIONS = 'DENY' | py |
diff --git a/master/buildbot/test/unit/test_process_remotecommand.py b/master/buildbot/test/unit/test_process_remotecommand.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_process_remotecommand.py
+++ b/master/buildbot/test/unit/test_process_remotecommand.py
@@ -56,6 +56,7 @@ class TestRemoteShellCo... | split test in two fixes pylint | py |
diff --git a/meshio/msh_io/msh4.py b/meshio/msh_io/msh4.py
index <HASH>..<HASH> 100644
--- a/meshio/msh_io/msh4.py
+++ b/meshio/msh_io/msh4.py
@@ -203,8 +203,7 @@ def _read_cells(f, point_tags, int_size, is_ascii, physical_tags):
data = [(physical_tag, tpe, itags[d[:, 1:]]) for physical_tag, tpe, d in data]
... | unpack data in for #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ def check_setuptools():
check_setuptools()
setup(name='instana',
- version='1.6.0',
+ version='1.7.0',
download_url='https://github.com/instana/python-sensor',
url='https://www.instan... | Bump package version to <I> | py |
diff --git a/pycobertura/reporters.py b/pycobertura/reporters.py
index <HASH>..<HASH> 100644
--- a/pycobertura/reporters.py
+++ b/pycobertura/reporters.py
@@ -265,12 +265,6 @@ class HtmlReporterDelta(TextReporterDelta):
for lno, is_new in row.missed_lines
]
- missed_lines_colo... | don't unnecessarily ASCII-colorize text for HTML output | py |
diff --git a/belpy/trips/processor.py b/belpy/trips/processor.py
index <HASH>..<HASH> 100644
--- a/belpy/trips/processor.py
+++ b/belpy/trips/processor.py
@@ -46,8 +46,15 @@ class TripsProcessor(object):
elif dbid.startswith('UP'):
up_id = re.match(r'UP\:\:(.*)', dbid).groups()[0]
up_... | Use uniprot_client to query HGNC name based on Uniprot ID | py |
diff --git a/pygsp/plotting.py b/pygsp/plotting.py
index <HASH>..<HASH> 100644
--- a/pygsp/plotting.py
+++ b/pygsp/plotting.py
@@ -379,21 +379,22 @@ def plot_filter(filters, npoints=1000, line_width=4, x_width=3,
if show_sum is None:
show_sum = filters.Nf > 1
+ if plot_eigenvalues:
+ for e in ... | plotting: show eigenvalues as grey bars instead of crosses | py |
diff --git a/master/buildbot/status/web/console.py b/master/buildbot/status/web/console.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/web/console.py
+++ b/master/buildbot/status/web/console.py
@@ -164,10 +164,10 @@ class ConsoleStatusResource(HtmlResource):
return allChanges
... | console: remove limit of <I> changesets requested from db. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ setup(
name='httpie-edgegrid',
description='Edgegrid plugin for HTTPie.',
long_description=open('README.rst').read().strip(),
- version='1.0.0',
+ version='1.0.1',
author='Kirsten Hunter'... | Fixing the hostname stuff in the edgerc | py |
diff --git a/nodeconductor/iaas/perms.py b/nodeconductor/iaas/perms.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/iaas/perms.py
+++ b/nodeconductor/iaas/perms.py
@@ -15,5 +15,5 @@ PERMISSION_LOGICS = (
('iaas.TemplateMapping', StaffPermissionLogic(any_permission=True)),
('iaas.Image', StaffPermissionLogi... | Allow InstanceSlaHistory to be managed by staff | py |
diff --git a/salt/client/__init__.py b/salt/client/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/__init__.py
+++ b/salt/client/__init__.py
@@ -567,6 +567,8 @@ class LocalClient(object):
opts['timeout'] = kwargs['timeout']
if 'gather_job_timeout' in kwargs:
opts['gather_job... | Add batch_wait support for Python API Fixes #<I> | py |
diff --git a/kafka_scanner/__init__.py b/kafka_scanner/__init__.py
index <HASH>..<HASH> 100644
--- a/kafka_scanner/__init__.py
+++ b/kafka_scanner/__init__.py
@@ -461,9 +461,11 @@ class KafkaScanner(object):
if not self.__closed:
self.__closed = True
self.stats_logger.close()
- ... | avoid exception on exit when consumers were not still initialized | py |
diff --git a/src/edeposit/amqp/aleph/aleph.py b/src/edeposit/amqp/aleph/aleph.py
index <HASH>..<HASH> 100755
--- a/src/edeposit/amqp/aleph/aleph.py
+++ b/src/edeposit/amqp/aleph/aleph.py
@@ -61,7 +61,7 @@ counting results from getters):
getISBNCount()
getAuthorsBooksCount()
- getPublishersBooksIDsCount()... | getPublishersBooksIDsCount() renamed to getPublishersBooksCount(). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ from pip.req import parse_requirements
setup(
name='Flask-Ask',
- version='0.9.0',
+ version='0.9.2',
url='https://github.com/johnwheeler/flask-ask',
license='Apache 2.0',
author='John... | Bumping version number to be ahead of current PyPI release. Should be ready to test with PyPI staging per issue #<I>. | py |
diff --git a/luaparser/ast.py b/luaparser/ast.py
index <HASH>..<HASH> 100644
--- a/luaparser/ast.py
+++ b/luaparser/ast.py
@@ -458,3 +458,22 @@ class ParseTreeVisitor(LuaVisitor):
if comment.startswith('--'):
comment = comment[2:]
return _setMetadata(ctx, Comment(comment.strip(' \t\n\r'))... | ast: add a base class for creating an ast visitor. | py |
diff --git a/gspread/client.py b/gspread/client.py
index <HASH>..<HASH> 100644
--- a/gspread/client.py
+++ b/gspread/client.py
@@ -218,8 +218,8 @@ class Client(object):
try:
r = self.session.put(url, data, headers=headers)
except RequestError as ex:
- if ex[0] == 403:
- ... | `Exception` does not support indexing. | py |
diff --git a/salt/client/mixins.py b/salt/client/mixins.py
index <HASH>..<HASH> 100644
--- a/salt/client/mixins.py
+++ b/salt/client/mixins.py
@@ -282,10 +282,12 @@ class SyncClientMixin(object):
try:
verify_fun(self.functions, fun)
- # Inject some useful globals to *all* the funciton... | Fixing issue which caused Runtime Errors because of changing the list which is being looped over. Fixes #<I> | py |
diff --git a/analyzers/Umbrella/Umbrella.py b/analyzers/Umbrella/Umbrella.py
index <HASH>..<HASH> 100644
--- a/analyzers/Umbrella/Umbrella.py
+++ b/analyzers/Umbrella/Umbrella.py
@@ -11,7 +11,7 @@ class UmbrellaAnalyzer(Analyzer):
self.api_key = self.get_param('config.api_key', None, 'api_key is missing')
... | query_limit: error if no data provided query_limit gets error if no data provided. The default value <I> must be the second parameter, not the third (currently the default is None, and the str(None) is cracking) | py |
diff --git a/dynaphopy/classes/controller.py b/dynaphopy/classes/controller.py
index <HASH>..<HASH> 100644
--- a/dynaphopy/classes/controller.py
+++ b/dynaphopy/classes/controller.py
@@ -336,7 +336,7 @@ class Calculation:
plt.show()
total_integral = np.trapz(self.get_power_spectrum_direct(), x=self.... | Rearange kintetical energy calculation | py |
diff --git a/bakery/models.py b/bakery/models.py
index <HASH>..<HASH> 100644
--- a/bakery/models.py
+++ b/bakery/models.py
@@ -37,6 +37,13 @@ class BuildableModel(models.Model):
"""
pass
+ def _unbuild_extra(self):
+ """
+ Remove extra content, like deleting an image from a thum... | Update bakery/models.py Added an _unbuild_extra placeholder that gets called in unbuild. | py |
diff --git a/pycron/__init__.py b/pycron/__init__.py
index <HASH>..<HASH> 100644
--- a/pycron/__init__.py
+++ b/pycron/__init__.py
@@ -12,18 +12,22 @@ DOW_CHOICES = [(str(i), day_name) for i, day_name in enumerate(DAY_NAMES)]
def _to_int(value, allow_daynames=False):
- try:
+ """
+ Converts a value to an ... | Switch to using checks instead of try-catch flow in _to_int - Using conditionals for flow control rather than try/catch. - Switched to using list.index() instead of for loop matching. - Added documentation to function. | py |
diff --git a/scapy.py b/scapy.py
index <HASH>..<HASH> 100755
--- a/scapy.py
+++ b/scapy.py
@@ -21,6 +21,9 @@
#
# $Log: scapy.py,v $
+# Revision 1.0.5.3 2006/10/23 11:55:57 pbi
+# - removed references to class name into Ether.mysummary()
+#
# Revision 1.0.5.2 2006/10/23 11:11:28 pbi
# - added restart parameter... | - removed references to class name into Ether.mysummary() | py |
diff --git a/readonly/__init__.py b/readonly/__init__.py
index <HASH>..<HASH> 100644
--- a/readonly/__init__.py
+++ b/readonly/__init__.py
@@ -13,7 +13,7 @@ if django.VERSION < (1, 7):
from django.db.backends import util
else:
from django.db.backends import utils as util
-from django.utils.log import getLogg... | Fixing for Django <I>. Importing getLogger via django.utils.log was just importing logging.getLogger by proxy. Code changes in Django <I> break the import. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ with open('README.rst') as f:
setup(
name = "pydbus",
- version = "0.1.1",
+ version = "0.2",
description = "Pythonic DBus library",
long_description = readme,
author = "Janusz Lewandowski",
@@ -21,7 +2... | Release <I>. I've messed up setup.py, and then pypi, and don't want <I> ;) | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -49,8 +49,9 @@ copyright = u'2015, Paweł T. Jochym'
# built documents.
#
# The short X.Y version.
-from setuptools_scm import get_version
-release = version = get_version(root='../..'... | Switch docs version numbering to git describe | py |
diff --git a/djangosaml2/views.py b/djangosaml2/views.py
index <HASH>..<HASH> 100644
--- a/djangosaml2/views.py
+++ b/djangosaml2/views.py
@@ -128,7 +128,7 @@ def assertion_consumer_service(request, config_loader=config_settings_loader,
outstanding_queries = oq_cache.outstanding_queries()
# process the auth... | The response method has one less argument now | py |
diff --git a/metalearn/features/common_operations.py b/metalearn/features/common_operations.py
index <HASH>..<HASH> 100644
--- a/metalearn/features/common_operations.py
+++ b/metalearn/features/common_operations.py
@@ -18,6 +18,10 @@ def get_min_max_mean_sd(data, label):
features[label + '_min'] = np.amin(data)
... | Added Quartile 1/2/3 to aggregate statistics method. | py |
diff --git a/app/__init__.py b/app/__init__.py
index <HASH>..<HASH> 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -6,6 +6,8 @@ import router
import uvloop
import router.cmatcher
+from protocol.cprotocol import Protocol as CProtocol
+
class Application:
def __init__(self, loop=None):
@@ -35,10 +37,11... | cprotocol is default protocol factory | py |
diff --git a/pyecharts/charts/basic_charts/parallel.py b/pyecharts/charts/basic_charts/parallel.py
index <HASH>..<HASH> 100644
--- a/pyecharts/charts/basic_charts/parallel.py
+++ b/pyecharts/charts/basic_charts/parallel.py
@@ -39,6 +39,7 @@ class Parallel(Chart):
series_name: str,
data: types.Sequenc... | Lack of smooth fields (#<I>) * Create FUNDING.yml (#<I>) * Lack of smooth fields | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -1,14 +1,14 @@
# -*- coding: utf8 -*-
-from django.contrib.auth import get_user_model
from django.utils import unittest
+from basis.utils import User
from .models import Person
class TestLoginCo... | update tests to support django-<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ except:
setup(
name='pyexchange',
- version='0.3',
+ version='0.3.1',
url='https://github.com/linkedin/pyexchange',
license='Apache',
author='Rachel Sanders', | Revving version to fix encoding problem with last release. | 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
@@ -1017,8 +1017,8 @@ class IncorrectSmearingHandler(ErrorHandler):
# and relaxation is performed.
if (v.eigenvalue_band_properties... | Fixed logic after review from @rkingsbury, who noticed that I made a mistake in the logic of my fix, activating the error handler for static caluclations (NSW <= 1) instead as for relaxations (NSW > 1). | py |
diff --git a/test/on_yubikey/test_cli_config.py b/test/on_yubikey/test_cli_config.py
index <HASH>..<HASH> 100644
--- a/test/on_yubikey/test_cli_config.py
+++ b/test/on_yubikey/test_cli_config.py
@@ -1,3 +1,4 @@
+import time
import unittest
from .util import (DestructiveYubikeyTestCase, ykman_cli, can_write_config)
... | Add sleep to mode switch test This helps prevent communication errors in subsequent tests. | py |
diff --git a/ibis/backends/pandas/execution/strings.py b/ibis/backends/pandas/execution/strings.py
index <HASH>..<HASH> 100644
--- a/ibis/backends/pandas/execution/strings.py
+++ b/ibis/backends/pandas/execution/strings.py
@@ -237,6 +237,8 @@ def execute_group_concat_series_gb_mask(
op, data, sep, mask, aggcontext... | fix(pandas): properly handle empty groups when aggregating with `GroupConcat` | py |
diff --git a/httprunner/report.py b/httprunner/report.py
index <HASH>..<HASH> 100644
--- a/httprunner/report.py
+++ b/httprunner/report.py
@@ -107,7 +107,7 @@ def render_html_report(summary, html_report_name=None, html_report_template=None
return report_path
def stringify_body(meta_data, request_or_response):
-... | fix compability for stringify_body | py |
diff --git a/carrot/backends/pyamqplib.py b/carrot/backends/pyamqplib.py
index <HASH>..<HASH> 100644
--- a/carrot/backends/pyamqplib.py
+++ b/carrot/backends/pyamqplib.py
@@ -200,7 +200,7 @@ class Backend(BaseBackend):
def close(self):
"""Close the channel if open."""
- if getattr(self, "channel"... | pyamqplib backend close didn't work properly, typo channel -> _channel | py |
diff --git a/tests/integration/cloud/providers/ec2.py b/tests/integration/cloud/providers/ec2.py
index <HASH>..<HASH> 100644
--- a/tests/integration/cloud/providers/ec2.py
+++ b/tests/integration/cloud/providers/ec2.py
@@ -66,14 +66,14 @@ class EC2Test(integration.ShellCase):
)
)
- id = c... | Don't use id as variable | py |
diff --git a/jwt/algorithms.py b/jwt/algorithms.py
index <HASH>..<HASH> 100644
--- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -104,7 +104,7 @@ class HMACAlgorithm(Algorithm):
key = key.encode('utf-8')
if (b'-----BEGIN PUBLIC KEY-----' in key or b'-----BEGIN CERTIFICATE-----' in key):
- ... | Corrected a typo in an exception name | py |
diff --git a/tests/test_cli.py b/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -25,20 +25,20 @@ def test_cli_google():
assert not subprocess.call(['geocode', location, '--provider', 'google'])
-def test_cli_bing():
- assert not subprocess.call(['geocode', l... | Drop Bing & Tamu from tests (contain API keys) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.