diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/spyder/plugins/editor.py b/spyder/plugins/editor.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor.py
+++ b/spyder/plugins/editor.py
@@ -2681,6 +2681,7 @@ class Editor(SpyderPluginWidget):
for editorstack in self.editorstacks:
editorstack.create_new_file_if_empty = value
... | Update only current editor stack when moving tabs. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ from setuptools.command.bdist_egg import bdist_egg as _bdist_egg
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
-TOP_DIR = os.getcwd()
+TOP_DIR = dirname(__file__)
JS_FILES = [
"node_modu... | paths relative to setup.py file | py |
diff --git a/furious/context/_local.py b/furious/context/_local.py
index <HASH>..<HASH> 100644
--- a/furious/context/_local.py
+++ b/furious/context/_local.py
@@ -55,7 +55,7 @@ def _init():
# If there is a context and it is initialized to this request,
# return, otherwise reinitialize the _local_context.
... | Use get method when checking REQUEST_ID_HASH. This will prevent unit tests from blowing up when not set. Resolves issue #<I>. | py |
diff --git a/pysat/_meta.py b/pysat/_meta.py
index <HASH>..<HASH> 100644
--- a/pysat/_meta.py
+++ b/pysat/_meta.py
@@ -1558,7 +1558,7 @@ class MetaLabels(object):
# Test the input parameter
if attr_name not in self.label_type.keys():
- raise ValueError('uknown label attribute {:}'.format(... | MAINT: typo in ValueError message Fixed typo in ValueError message. | py |
diff --git a/allegedb/allegedb/graph.py b/allegedb/allegedb/graph.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/graph.py
+++ b/allegedb/allegedb/graph.py
@@ -1502,7 +1502,14 @@ class GraphsMapping(MutableMapping):
return self.orm.get_graph(item)
def __setitem__(self, key, value):
- self.... | Make GraphsMapping store every graph type | py |
diff --git a/pygeoip/__init__.py b/pygeoip/__init__.py
index <HASH>..<HASH> 100644
--- a/pygeoip/__init__.py
+++ b/pygeoip/__init__.py
@@ -336,6 +336,8 @@ class GeoIP(GeoIPBase):
record['country_code'] = const.COUNTRY_CODES[char]
record['country_code3'] = const.COUNTRY_CODES3[char]
record['co... | basic country->contintent map in _get_record() | py |
diff --git a/tests/api_test.py b/tests/api_test.py
index <HASH>..<HASH> 100644
--- a/tests/api_test.py
+++ b/tests/api_test.py
@@ -325,6 +325,15 @@ class APITest(jtu.JaxTestCase):
y = api.device_put(x)
self.assertEqual(y.device_buffer.device(), default_device)
+ def test_jit_on_all_devices(self):
+ # Ve... | Add a regression test that runs the same computation on all devices that are present. (#<I>) | py |
diff --git a/openquake/calculators/hazard/general.py b/openquake/calculators/hazard/general.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/hazard/general.py
+++ b/openquake/calculators/hazard/general.py
@@ -245,7 +245,6 @@ class BaseHazardCalculator(Calculator):
site_model = models.inputs4job(
... | Removed a breakpoint; it shouldn't have been committed. | py |
diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/io/parser/test_network.py
+++ b/pandas/tests/io/parser/test_network.py
@@ -20,11 +20,15 @@ def salaries_table():
return read_table(path)
-@tm.network
@pytest.mark.paramet... | TST: fix test_nework.py fixture under py<I> | py |
diff --git a/wal_e/log_help.py b/wal_e/log_help.py
index <HASH>..<HASH> 100644
--- a/wal_e/log_help.py
+++ b/wal_e/log_help.py
@@ -51,6 +51,29 @@ class UTCFormatter(logging.Formatter):
def configure(*args, **kwargs):
+ """Guards configuring logging to enable retry
+
+ Logging is rather important to start up ... | Try to handle EACCES in logging set-up I tried to find a way to write a test for this, but it led to a lot of overwrought code for this error, which I have witnessed but once ever: in particular, testing the retry behavior (inverting control seemed invasive and made the code harder to read). | py |
diff --git a/sksurv/meta/ensemble_selection.py b/sksurv/meta/ensemble_selection.py
index <HASH>..<HASH> 100644
--- a/sksurv/meta/ensemble_selection.py
+++ b/sksurv/meta/ensemble_selection.py
@@ -39,8 +39,8 @@ class EnsembleAverage(BaseEstimator):
def __init__(self, base_estimators, name=None):
self.base_e... | Remove predict_proba method predict_proba is only relevant for classifiers, but not for survival models | py |
diff --git a/src/setuptools_scm/version.py b/src/setuptools_scm/version.py
index <HASH>..<HASH> 100644
--- a/src/setuptools_scm/version.py
+++ b/src/setuptools_scm/version.py
@@ -111,12 +111,7 @@ def tags_to_versions(tags, config=None):
:param tags: an iterable of tags
:param config: optional configuration ob... | tags_to_version loops reduced to map function | py |
diff --git a/ouimeaux/examples/Randomize.py b/ouimeaux/examples/Randomize.py
index <HASH>..<HASH> 100644
--- a/ouimeaux/examples/Randomize.py
+++ b/ouimeaux/examples/Randomize.py
@@ -23,7 +23,7 @@ if __name__ == "__main__":
switchRND = env.get_switch( random.choice( env.list_switches() ) )
pri... | Update Randomize.py set the wait time to be randomized as well | py |
diff --git a/doctr/travis.py b/doctr/travis.py
index <HASH>..<HASH> 100644
--- a/doctr/travis.py
+++ b/doctr/travis.py
@@ -459,7 +459,7 @@ def sync_from_log(src, dst, log_file, exclude=()):
removed.remove(dst)
files = []
- src = ''
+ src = os.path.dirname(src) + os.sep if o... | Fix handling of absolute vs. relative paths for single file sync in sync_from_log | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -336,3 +336,6 @@ intersphinx_mapping = {
'flask_assets': ('https://flask-assets.readthedocs.io/en/latest/', None),
'flask_collect': ('https://flask-collect.readthedocs.io/en/latest/', None),
}
+
+# A... | docs: autodoc configuration and HTTPS fix * Replaces HTTP links with HTTPS where possible. | py |
diff --git a/couchbase_version.py b/couchbase_version.py
index <HASH>..<HASH> 100755
--- a/couchbase_version.py
+++ b/couchbase_version.py
@@ -16,6 +16,10 @@ class VersionNotFound(Exception):
pass
+class MalformedGitTag(Exception):
+ pass
+
+
RE_XYZ = re.compile(r'(\d+)\.(\d+)\.(\d)(?:-(.*))?')
VERSION_... | couchbase_version: Warn and generate dummy version for bad tag For some reason, this happens with Travis builds Change-Id: Ie8dd<I>a3a5aa6c<I>cb<I>ca0b0a<I>ab<I> Reviewed-on: <URL> | 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
@@ -740,10 +740,11 @@ def get_composite_source_model(oqparam, monitor=None, in_memory=True,
if not None, use it to prefilter... | Fixed commonlib tests [skip hazardlib] | py |
diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py
index <HASH>..<HASH> 100644
--- a/src/python/grpcio/commands.py
+++ b/src/python/grpcio/commands.py
@@ -277,11 +277,11 @@ class BuildExt(build_ext.build_ext):
# Ensure the BoringSSL are built instead of using system provided
... | Try cleaner separation * reduce possible contamination of environment variables | py |
diff --git a/lib/python/voltsql/voltsql/voltsql.py b/lib/python/voltsql/voltsql/voltsql.py
index <HASH>..<HASH> 100755
--- a/lib/python/voltsql/voltsql/voltsql.py
+++ b/lib/python/voltsql/voltsql/voltsql.py
@@ -202,16 +202,20 @@ class VoltCli(object):
except EOFError:
break
el... | ENG-<I>: voltsql blank line reacts slowly (#<I>) * fix ENG-<I> * fix issue | py |
diff --git a/alot/widgets.py b/alot/widgets.py
index <HASH>..<HASH> 100644
--- a/alot/widgets.py
+++ b/alot/widgets.py
@@ -425,9 +425,9 @@ class MessageWidget(urwid.WidgetWrap):
norm = not (self.displayed_headers == self.all_headers)
#build lines
lines = []
- for k in s... | properly read multi valued headers pitfall: mail.get('key') always returns the value of the first header line for that key. Fixes issue #<I> | py |
diff --git a/demo/lego_official_projects/TRACK3R.py b/demo/lego_official_projects/TRACK3R.py
index <HASH>..<HASH> 100644
--- a/demo/lego_official_projects/TRACK3R.py
+++ b/demo/lego_official_projects/TRACK3R.py
@@ -35,7 +35,7 @@ class TRACK3RWithBallShooter(TRACK3R):
def fire_ball(self, state):
if state... | Update TRACK3R medim motor speed | py |
diff --git a/tests/obj/business_test.py b/tests/obj/business_test.py
index <HASH>..<HASH> 100644
--- a/tests/obj/business_test.py
+++ b/tests/obj/business_test.py
@@ -17,5 +17,5 @@ def test_business_category_is_tuple():
response = json.load(biz)
business = Business(response)
assert type(busin... | Make obj/business_test assertions more specific | py |
diff --git a/mangopaysdk/tools/resttool.py b/mangopaysdk/tools/resttool.py
index <HASH>..<HASH> 100644
--- a/mangopaysdk/tools/resttool.py
+++ b/mangopaysdk/tools/resttool.py
@@ -136,9 +136,11 @@ class BaseRestTool(object):
if response.status_code != requests.codes.ok and response.status_code != requests.codes... | ResponseException now contains detailed error messages from API. | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100755
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -3650,9 +3650,11 @@ class DagRun(Base):
"""
DR = DagRun
+ exec_date = func.cast(self.execution_date, DateTime)
+
dr = session.query(DR).filter(
... | [AIRFLOW-<I>] Cast DateTimes to avoid sqllite errors For some reason, sqllite does not always match datetimes correctly. This causes unit test failures, in particular the trigger_dagrun test. Casting the datetime explicitly appears to solve the issue. Closes #<I> from jlowin/failing-sqlite-test | py |
diff --git a/clustering.py b/clustering.py
index <HASH>..<HASH> 100755
--- a/clustering.py
+++ b/clustering.py
@@ -332,6 +332,9 @@ class Partition(object):
def __repr__(self):
return self.__class__.__name__ + str(self)
+ def __len__(self):
+ return len(self.partition_vector)
+
@property
... | added __len__ to Partition class | py |
diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index <HASH>..<HASH> 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2559,15 +2559,17 @@ it is assumed to be aliases for the column names.')
"""
Insert column into DataFrame at specified location.
- If `allow_duplicates... | DOC: minor enhancement of DataFrame.insert docstring (#<I>) | py |
diff --git a/tools/c7n_azure/setup.py b/tools/c7n_azure/setup.py
index <HASH>..<HASH> 100644
--- a/tools/c7n_azure/setup.py
+++ b/tools/c7n_azure/setup.py
@@ -31,5 +31,5 @@ setup(
"custodian.resources": [
'azure = c7n_azure.entry:initialize_azure']
},
- install_requires=["c7n", "click", "a... | ci build - pin concurrent.futures in setup.py for pip installs in py <I> (#<I>) | py |
diff --git a/salt/states/pip_state.py b/salt/states/pip_state.py
index <HASH>..<HASH> 100644
--- a/salt/states/pip_state.py
+++ b/salt/states/pip_state.py
@@ -885,11 +885,17 @@ def installed(
# Append comments if this is a dry run.
if __opts__["test"]:
- msg = "Pyt... | Add if else to address when more than one package is present | py |
diff --git a/aiocache/serializers.py b/aiocache/serializers.py
index <HASH>..<HASH> 100644
--- a/aiocache/serializers.py
+++ b/aiocache/serializers.py
@@ -6,7 +6,7 @@ logger = logging.getLogger(__file__)
try:
import ujson as json
except ImportError:
- logger.warning("ujson module not found, usin json")
+ l... | Fixed spelling error in serializers.py (#<I>) | py |
diff --git a/tmuxp/util.py b/tmuxp/util.py
index <HASH>..<HASH> 100644
--- a/tmuxp/util.py
+++ b/tmuxp/util.py
@@ -58,10 +58,10 @@ class tmux(object):
cmd,
e.message)
)
- self.stdout = stdout.split('\n')
+ self.stdout = stdout.decode().split('\n')
se... | stderr.decode() and stdout.decode() on py3k, trying | py |
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index <HASH>..<HASH> 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3349,11 +3349,13 @@ Script should contain one command per line, just like command would be typed in
if callargs:
self.cmdqueue.extend(callargs)
- # Register a default SI... | Restoring original signint handler Recreating _terminal_lock when cmdloop begins to avoid any deadlock from previous runs of cmdloop. | py |
diff --git a/_pytest/mark.py b/_pytest/mark.py
index <HASH>..<HASH> 100644
--- a/_pytest/mark.py
+++ b/_pytest/mark.py
@@ -139,8 +139,9 @@ def matchkeyword(colitem, keywordexpr):
mapped_names.add(name)
# Add the names attached to the current function through direct assignment
- for name in colitem.fu... | allow test items to not be associated with a test function this is needed for plugins like `pytest-pep8` or `pytest-flakes` | py |
diff --git a/tabular_predDB/binary_creation/hadoop_line_processor.py b/tabular_predDB/binary_creation/hadoop_line_processor.py
index <HASH>..<HASH> 100644
--- a/tabular_predDB/binary_creation/hadoop_line_processor.py
+++ b/tabular_predDB/binary_creation/hadoop_line_processor.py
@@ -46,10 +46,12 @@ def analyze_helper(ta... | extract max_time from dict_in and pass to engine.analyze | py |
diff --git a/smuggler/utils.py b/smuggler/utils.py
index <HASH>..<HASH> 100644
--- a/smuggler/utils.py
+++ b/smuggler/utils.py
@@ -17,7 +17,9 @@ def serialize_to_response(queryset, response=HttpResponse(),
return response
def superuser_required(function):
- """Decorator for views that checks that the logged ... | Improved docstring for superuser_required decorator. | py |
diff --git a/oct2py/session.py b/oct2py/session.py
index <HASH>..<HASH> 100644
--- a/oct2py/session.py
+++ b/oct2py/session.py
@@ -397,8 +397,12 @@ class Oct2Py(object):
except Oct2PyError as e:
if 'syntax error' in str(e):
raise(e)
- doc = self._eval('type {0}'.form... | Improve error message when function is not found | py |
diff --git a/openquake/hazardlib/source/complex_fault.py b/openquake/hazardlib/source/complex_fault.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/source/complex_fault.py
+++ b/openquake/hazardlib/source/complex_fault.py
@@ -55,7 +55,7 @@ class ComplexFaultSource(ParametricSeismicSource):
MODIFICATIONS... | Set RUPTURE_WEIGHT to 4 for complex fault ruptures [skip CI] | py |
diff --git a/plexapi/base.py b/plexapi/base.py
index <HASH>..<HASH> 100644
--- a/plexapi/base.py
+++ b/plexapi/base.py
@@ -463,10 +463,9 @@ class PlexPartialObject(PlexObject):
if not isinstance(items, list):
items = [items]
value = getattr(self, tag_plural(tag))
- existing_cols = ... | Don't refresh after editing a tag | py |
diff --git a/charmhelpers/contrib/hardening/host/checks/profile.py b/charmhelpers/contrib/hardening/host/checks/profile.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/hardening/host/checks/profile.py
+++ b/charmhelpers/contrib/hardening/host/checks/profile.py
@@ -43,5 +43,7 @@ def get_audits():
class Profil... | Added ssh_tmout to profile context. | 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
@@ -65,7 +65,7 @@ class RealDatabaseMixin(object):
# - cooperates better at runtime with thread-sensitive DBAPI's
def __thd_... | completely remove dropping of data using model schema | py |
diff --git a/openid/consumer/impl.py b/openid/consumer/impl.py
index <HASH>..<HASH> 100644
--- a/openid/consumer/impl.py
+++ b/openid/consumer/impl.py
@@ -131,7 +131,7 @@ class OpenIDConsumerImpl(object):
if ret is None:
return FAILURE, consumer_id
- results = kvform.kvToDict(ret[1])
+ ... | [project @ Fix dumb mode for new fetcher interface] | py |
diff --git a/table.py b/table.py
index <HASH>..<HASH> 100755
--- a/table.py
+++ b/table.py
@@ -1,7 +1,11 @@
#!/usr/bin/env python3
+import re
from collections import defaultdict
from subprocess import check_output
+README_FILE = "README.md"
+
+
lines = check_output(["go", "run", "./cmd/chroma/main.go", "--list"])... | Update table.py to write changes on README.md Write the up-to-date list of the supported languages directly on the README.md file in order to avoid manual copy/paste actions. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ setup(
description='A backtester for financial algorithms.',
author='Quantopian Inc.',
author_email='opensource@quantopian.com',
- packages=find_packages(),
+ packages=['zipline'],
ext_... | MAINT: Don't install non-zipline packages. In particular, don't give anyone who installs zipline a global package named 'tests'. (sob) | py |
diff --git a/archook/archook.py b/archook/archook.py
index <HASH>..<HASH> 100644
--- a/archook/archook.py
+++ b/archook/archook.py
@@ -108,6 +108,6 @@ def get_pro_key():
'''
pro_key = _winreg.OpenKey(
_winreg.HKEY_LOCAL_MACHINE,
- 'SOFTWARE\\ESRI\\ArcGISPro'
+ r'SOFTWARE\ESRI\ArcGISPro'... | Replace last instance of escaped backslashes with raw string | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ def read(fname):
setup(
name='Flask-Debug',
- version='0.3.1.dev1',
+ version='0.4.1.dev1',
description='Shows reflection/configuration to aid the development of '
'Flask appl... | Increased version to <I>.dev1 after release of <I>. (commit by unleash <I>.dev1) | py |
diff --git a/c7n/resources/asg.py b/c7n/resources/asg.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/asg.py
+++ b/c7n/resources/asg.py
@@ -126,7 +126,7 @@ class LaunchInfo(object):
lid = asg.get('LaunchTemplate')
if lid is not None:
- return (lid['LaunchTemplateId'], lid['LaunchTempla... | asg - not-encrypted filter launch template version key(#<I>) | py |
diff --git a/algoliasearch/index.py b/algoliasearch/index.py
index <HASH>..<HASH> 100644
--- a/algoliasearch/index.py
+++ b/algoliasearch/index.py
@@ -1126,7 +1126,7 @@ class Index(object):
if hitsPerPage is not None:
params['hitsPerPage'] = hitsPerPage
- return self._req(False, '/rules/s... | fix(rules): use search endpoints for search_rules | py |
diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py
index <HASH>..<HASH> 100644
--- a/kubespawner/spawner.py
+++ b/kubespawner/spawner.py
@@ -175,7 +175,8 @@ class KubeSpawner(Spawner):
return f.read().strip()
return 'default'
- ip = Unicode('0.0.0.0',
+ ip = Unicode(
+ ... | Esthetics: traitlet default for list / dics are now [] / {} | py |
diff --git a/km3pipe/__version__.py b/km3pipe/__version__.py
index <HASH>..<HASH> 100644
--- a/km3pipe/__version__.py
+++ b/km3pipe/__version__.py
@@ -11,7 +11,7 @@ Pep 386 compliant version info.
"""
import json
-import urllib2
+import urllib
from km3pipe.logger import logging
__author__ = 'tamasgal'
@@ -40,7 ... | Changes from urllib2 to urllib | py |
diff --git a/system_tests/translate.py b/system_tests/translate.py
index <HASH>..<HASH> 100644
--- a/system_tests/translate.py
+++ b/system_tests/translate.py
@@ -33,8 +33,8 @@ class Config(object):
def setUpModule():
- key = os.getenv(ENV_VAR)
- Config.CLIENT = translate.Client(key=key)
+ api_key = os.ge... | Updating system test to use api_key (after change). | py |
diff --git a/src/poetry/console/commands/self/update.py b/src/poetry/console/commands/self/update.py
index <HASH>..<HASH> 100644
--- a/src/poetry/console/commands/self/update.py
+++ b/src/poetry/console/commands/self/update.py
@@ -176,7 +176,7 @@ class SelfUpdateCommand(Command):
from poetry.repositories.insta... | fix: set `naive=True` when trying to get poetry environment on update | py |
diff --git a/nyawc/helpers/URLHelper.py b/nyawc/helpers/URLHelper.py
index <HASH>..<HASH> 100644
--- a/nyawc/helpers/URLHelper.py
+++ b/nyawc/helpers/URLHelper.py
@@ -43,7 +43,7 @@ class URLHelper:
# Python 3.4 and lower do not remove folder traversal strings.
# This was fixed in 3.5 (https://docs.p... | Remove folder traversal strings if they start with a slash. | py |
diff --git a/angr/knowledge/function.py b/angr/knowledge/function.py
index <HASH>..<HASH> 100644
--- a/angr/knowledge/function.py
+++ b/angr/knowledge/function.py
@@ -61,12 +61,12 @@ class Function(object):
if name is None:
if project.is_hooked(addr):
hooker = project.hooked_by(ad... | Fix in Function to use the new Hook class. | py |
diff --git a/rdopkg/utils/distgitmagic.py b/rdopkg/utils/distgitmagic.py
index <HASH>..<HASH> 100644
--- a/rdopkg/utils/distgitmagic.py
+++ b/rdopkg/utils/distgitmagic.py
@@ -59,7 +59,8 @@ It's pretty good stuff for a testing package that doesn't even exist.
# silent run() by default
def run(*args, **kwargs):
- ... | distgitmagic run guard for default log_run logic was to always set to False, but comment was indicating it should be default to silent. add guard so that if it is set it won't be overriden Change-Id: I<I>bb9c3d0b<I>eafb<I>fe4b0b9dbde<I>bea<I>ab5 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,14 @@ with open(os.path.join('alignak', 'version.py')) as fh:
os.environ['PBR_VERSION'] = VERSION
+# Ask pbr to not generate AUTHORS file if environment variable does not require it
+if not os.environ.get('SKIP_... | #<I>: default is to not generate AUTHORS and ChangeLog | py |
diff --git a/posttroll/message.py b/posttroll/message.py
index <HASH>..<HASH> 100644
--- a/posttroll/message.py
+++ b/posttroll/message.py
@@ -234,6 +234,10 @@ def _decode(rawstr):
"""Convert a raw string to a Message.
"""
# Check for the magick word.
+ try:
+ rawstr = rawstr.decode()
+ exce... | Support both utf8 and byte strings from messages | py |
diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/apply/test_frame_apply.py
+++ b/pandas/tests/apply/test_frame_apply.py
@@ -1585,3 +1585,21 @@ def test_apply_on_empty_dataframe():
result = df.head(0).apply(lambda x: max(x["a... | Add test for unique aggregation returning different dtypes (#<I>) * TST: Added test for consistent type with unique agg #<I> * TST: Added test for consistent type with unique agg #<I> * TST: Moved and restructured test #<I> * TST: Moved test to different file #<I> * TST: Changed scalars to 1-element lists | py |
diff --git a/fastfood/templating.py b/fastfood/templating.py
index <HASH>..<HASH> 100644
--- a/fastfood/templating.py
+++ b/fastfood/templating.py
@@ -66,6 +66,6 @@ def render_templates_generator(*files, **template_map):
msg, err.lineno, filename=os.path.basename(path))
result = temp... | Force newline at EOF to comply with POSIX standards | py |
diff --git a/fermipy/spectrum.py b/fermipy/spectrum.py
index <HASH>..<HASH> 100644
--- a/fermipy/spectrum.py
+++ b/fermipy/spectrum.py
@@ -143,6 +143,22 @@ class SpectralFunction(object):
return self._extra_params
@classmethod
+ def create_from_flux(cls, params, emin, emax, flux, scale=1.0):
+ ... | Add utility methods for creating a spectrum form its flux or energy flux. | py |
diff --git a/pysc2/lib/features.py b/pysc2/lib/features.py
index <HASH>..<HASH> 100644
--- a/pysc2/lib/features.py
+++ b/pysc2/lib/features.py
@@ -890,7 +890,8 @@ class Features(object):
if aif.use_raw_units:
obs_spec["raw_units"] = (0, len(FeatureUnit))
obs_spec["raw_effects"] = (0, len(EffectPos))
... | Always give the upgrades observation. PiperOrigin-RevId: <I> | py |
diff --git a/indra/util/statement_presentation.py b/indra/util/statement_presentation.py
index <HASH>..<HASH> 100644
--- a/indra/util/statement_presentation.py
+++ b/indra/util/statement_presentation.py
@@ -23,9 +23,9 @@ def _get_keyed_stmts(stmt_list):
continue
key += tuple(sorted(ag_ns))... | Fix bug in the presentation of conversions. | py |
diff --git a/gnupg/test/test_gnupg.py b/gnupg/test/test_gnupg.py
index <HASH>..<HASH> 100644
--- a/gnupg/test/test_gnupg.py
+++ b/gnupg/test/test_gnupg.py
@@ -47,8 +47,8 @@ import tempfile
## these dependencies require Python>=2.6 in order to have proper SSL support.
##
## Use unittest2 if we're on Python2.6 or less... | py<I> support for testing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ class PublishCommand(Command):
os.system('git push --tags')
-setup(name='dependency_injector',
+setup(name='dependency-injector',
version=version,
description='Python dependency inject... | Normalize package names by PEP-<I> (<URL>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,5 +13,7 @@ setup(name='chumpy',
package_dir = {'chumpy': '.'}
author='Matthew Loper',
author_email='matt.loper@gmail.com'
+ url='https://github.com/mattloper/chumpy',
+ description='chumpy',
... | Update setup.py Adding more metadata to setup.py | py |
diff --git a/lilypond/interp.py b/lilypond/interp.py
index <HASH>..<HASH> 100644
--- a/lilypond/interp.py
+++ b/lilypond/interp.py
@@ -65,9 +65,7 @@ def absolute_note_value(token_dict):
if accidental_flat:
accidental_change -= len(accidental_flat) / 2
- note_value = MIDI_NOTE_VALUES[note] + (12 *... | absolute_note_value now returns tuple as it turns out we need to know the note base, not just the final note_value when calculating the next note's octave in relative mode. | py |
diff --git a/pandas/stats/plm.py b/pandas/stats/plm.py
index <HASH>..<HASH> 100644
--- a/pandas/stats/plm.py
+++ b/pandas/stats/plm.py
@@ -552,9 +552,9 @@ def add_intercept(panel, name='intercept'):
New object (same type as input)
"""
panel = panel.copy()
- panel[name] = 1
+ panel[name] = 1.
- ... | BUG: int block for intercept causing slow ols perf | py |
diff --git a/psqlparse/nodes/utils.py b/psqlparse/nodes/utils.py
index <HASH>..<HASH> 100644
--- a/psqlparse/nodes/utils.py
+++ b/psqlparse/nodes/utils.py
@@ -10,6 +10,8 @@ def get_node_class(class_name):
def build_from_obj(obj):
+ if not isinstance(obj, dict):
+ return obj
_class = get_node_class(n... | accounting for objects that are not dicts | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ def get_install_requirements(path):
setup(name='confluent-kafka',
- version='1.0.1rc1',
+ version='1.0.1',
description='Confluent\'s Python client for Apache Kafka',
author='Confluen... | Version <I> (#<I>) | py |
diff --git a/hypercorn/config.py b/hypercorn/config.py
index <HASH>..<HASH> 100644
--- a/hypercorn/config.py
+++ b/hypercorn/config.py
@@ -118,7 +118,9 @@ class Config:
context.options |= ssl.OP_NO_COMPRESSION # RFC 7540 Section 9.2.1: MUST disable compression
context.set_alpn_protocols(self.alpn_pro... | modify Config for subclassing create_ssl_context This allows a subclass to decide how, and crucially where, the certificates for the SSL conext are loaded. | py |
diff --git a/custodian/custodian.py b/custodian/custodian.py
index <HASH>..<HASH> 100644
--- a/custodian/custodian.py
+++ b/custodian/custodian.py
@@ -386,6 +386,10 @@ class Custodian(object):
self.terminate_func()
time.sleep(self.polling_time_step)
+ #... | Update custodian to error if the process fails Use the Popen return code to throw an error if the subprocess fails in a way that the error handles don't catch | py |
diff --git a/tests/test_nb_semantic_similarity_wang.py b/tests/test_nb_semantic_similarity_wang.py
index <HASH>..<HASH> 100755
--- a/tests/test_nb_semantic_similarity_wang.py
+++ b/tests/test_nb_semantic_similarity_wang.py
@@ -8,7 +8,7 @@ from goatools.gosubdag.plot.gosubdag_plot import GoSubDagPlot
# pylint: disa... | shortened test fnc name | py |
diff --git a/spyder_kernels/comms/commbase.py b/spyder_kernels/comms/commbase.py
index <HASH>..<HASH> 100644
--- a/spyder_kernels/comms/commbase.py
+++ b/spyder_kernels/comms/commbase.py
@@ -61,6 +61,8 @@ PY2 = sys.version[0] == '2'
logger = logging.getLogger(__name__)
# To be able to get and set variables between Py... | Add test for max serialised length. | py |
diff --git a/pytablereader/interface.py b/pytablereader/interface.py
index <HASH>..<HASH> 100644
--- a/pytablereader/interface.py
+++ b/pytablereader/interface.py
@@ -62,10 +62,14 @@ class TableLoader(TableLoaderInterface):
def source_type(self):
return self._validator.source_type
+ @property
+ de... | Change an attribute to a read-only property | py |
diff --git a/openquake/hazardlib/valid.py b/openquake/hazardlib/valid.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/valid.py
+++ b/openquake/hazardlib/valid.py
@@ -663,13 +663,20 @@ def intensity_measure_types(value):
Traceback (most recent call last):
...
ValueError: Duplicated IMTs in SA(0... | Make sure the IMTs are sorted [demos] | py |
diff --git a/plugins/worker/server/__init__.py b/plugins/worker/server/__init__.py
index <HASH>..<HASH> 100644
--- a/plugins/worker/server/__init__.py
+++ b/plugins/worker/server/__init__.py
@@ -131,15 +131,13 @@ def cancel(event):
return
if job['status'] not in [JobStatus.COMPLETE, JobStatus.ER... | Move to canceling before calling revoke | py |
diff --git a/axes/decorators.py b/axes/decorators.py
index <HASH>..<HASH> 100644
--- a/axes/decorators.py
+++ b/axes/decorators.py
@@ -31,7 +31,7 @@ if BEHIND_REVERSE_PROXY:
def is_ipv6(ip):
try:
inet_pton(AF_INET6, ip)
- except OSError:
+ except:
return False
return True | fix #<I> error: illegal IP address string passed to inet_pton | py |
diff --git a/menu/menu.py b/menu/menu.py
index <HASH>..<HASH> 100644
--- a/menu/menu.py
+++ b/menu/menu.py
@@ -69,7 +69,7 @@ class Menu(object):
"""
for name in c.items:
if not c.sorted[name]:
- c.items[name].sort(cmp=lambda x, y: cmp(x.weight, y.weight))
+ c... | Manually applying @jonasvp's change from #<I> | py |
diff --git a/cheroot/makefile.py b/cheroot/makefile.py
index <HASH>..<HASH> 100644
--- a/cheroot/makefile.py
+++ b/cheroot/makefile.py
@@ -403,6 +403,12 @@ if six.PY3:
def __init__(self, sock, mode='r', bufsize=io.DEFAULT_BUFFER_SIZE):
"""Initialize socket stream reader."""
super().__... | Add read/write metering for StreamReader and StreamWriter objects. Fixes #<I>. | py |
diff --git a/sassutils/wsgi.py b/sassutils/wsgi.py
index <HASH>..<HASH> 100644
--- a/sassutils/wsgi.py
+++ b/sassutils/wsgi.py
@@ -18,7 +18,7 @@ __all__ = 'SassMiddleware',
class SassMiddleware(object):
- """WSGI middleware for development purpose. Everytime a CSS file has
+ r"""WSGI middleware for developm... | Fix warnings when building sphinx docs. Resolves #<I> | py |
diff --git a/strictyaml/validators.py b/strictyaml/validators.py
index <HASH>..<HASH> 100644
--- a/strictyaml/validators.py
+++ b/strictyaml/validators.py
@@ -26,7 +26,7 @@ class Validator(object):
class OrValidator(Validator):
def __init__(self, validator_a, validator_b):
assert isinstance(validator_a, ... | PATCH : FEATURE : Added assert for or validators. | py |
diff --git a/src/clearly/core.py b/src/clearly/core.py
index <HASH>..<HASH> 100644
--- a/src/clearly/core.py
+++ b/src/clearly/core.py
@@ -96,7 +96,7 @@ class Clearly(object):
self._waiting_tasks[task_id] = task
message.ack()
- with self.app.pool.connection() as conn:
+ with se... | fix(core) get broker connection from celery app | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ with open('README.md') as fh:
setup(
name='llnl-scraper',
- version='0.6.0-dev',
+ version='0.5.1',
description='Package for extracting software repository metadata',
long_description=long_... | Release version <I> - Updated some infrastructure code for packaging - Fixed compute_labor_hours.py script to run with new API | py |
diff --git a/gnosis/eth/ethereum_client.py b/gnosis/eth/ethereum_client.py
index <HASH>..<HASH> 100644
--- a/gnosis/eth/ethereum_client.py
+++ b/gnosis/eth/ethereum_client.py
@@ -43,6 +43,8 @@ class EthereumNetwork(Enum):
RINKEBY = 4
GOERLI = 5
KOVAN = 42
+ ENERGY_WEB_CHAIN = 246
+ VOLTA = 73799
... | Add support for the Energy Web Chain and the Volta testnet (#<I>) | py |
diff --git a/anharmonic/force_fit/fc2.py b/anharmonic/force_fit/fc2.py
index <HASH>..<HASH> 100644
--- a/anharmonic/force_fit/fc2.py
+++ b/anharmonic/force_fit/fc2.py
@@ -1,5 +1,5 @@
import numpy as np
-from phonopy.harmonic.force_constants import similarity_transformation, get_rotated_displacement, get_rotated_forces... | Distribute partial fc2 to full fc2 | py |
diff --git a/pyemma/util/log.py b/pyemma/util/log.py
index <HASH>..<HASH> 100644
--- a/pyemma/util/log.py
+++ b/pyemma/util/log.py
@@ -23,7 +23,7 @@ Created on 15.10.2013
@author: marscher
'''
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
import pkg_resources
im... | [logging] handle exceptions during empty log file removal | py |
diff --git a/micawber/providers.py b/micawber/providers.py
index <HASH>..<HASH> 100644
--- a/micawber/providers.py
+++ b/micawber/providers.py
@@ -74,7 +74,11 @@ class Provider(object):
try:
json_data = json.loads(response)
except InvalidJson as exc:
- raise InvalidResponseExce... | add python 3 compatibility. all tests pass | py |
diff --git a/angr/osconf.py b/angr/osconf.py
index <HASH>..<HASH> 100644
--- a/angr/osconf.py
+++ b/angr/osconf.py
@@ -96,6 +96,7 @@ class PosixConf(OSConf):
s.store_mem(s.reg_expr('fs') + 0x08, s.se.BVV(dtv_base, 64), endness='Iend_LE') # dtv
s.store_mem(s.reg_expr('fs') + 0x10, s.se.BVV(0x12... | Initializing fs:<I> in osconf. | py |
diff --git a/py3status/modules/rt.py b/py3status/modules/rt.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/rt.py
+++ b/py3status/modules/rt.py
@@ -21,9 +21,9 @@ Color options:
color_degraded: Exceeded threshold_warning
Requires:
- PyMySQL: https://pypi.python.org/pypi/PyMySQL
+ PyMySQL: https://py... | rt: replace http with secure https | py |
diff --git a/src/python/twitter/pants/targets/python_target.py b/src/python/twitter/pants/targets/python_target.py
index <HASH>..<HASH> 100644
--- a/src/python/twitter/pants/targets/python_target.py
+++ b/src/python/twitter/pants/targets/python_target.py
@@ -49,13 +49,11 @@ class PythonTarget(TargetWithDependencies, Ta... | pants PythonTargets should walk provided PythonBinary artifacts The change to .resolve for PythonLibrary to extend to its binaries in the case it specified a PythonArtifact caused a regression with pants py. Instead we should just augment _walk to walk those targets so that they're properly reflected as members in set... | py |
diff --git a/salt/modules/freebsdpkg.py b/salt/modules/freebsdpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/freebsdpkg.py
+++ b/salt/modules/freebsdpkg.py
@@ -12,14 +12,6 @@ def _check_pkgng():
return True
return False
-def pkgng_update():
- '''
- Use pkg update to get latest repo.txz
- ... | change pkgng command to refresh_db | py |
diff --git a/ndb/key.py b/ndb/key.py
index <HASH>..<HASH> 100644
--- a/ndb/key.py
+++ b/ndb/key.py
@@ -104,6 +104,7 @@ class Key(object):
return self.__reference.Encode()
def urlsafe(self):
+ # This is 3-4x faster than urlsafe_b64decode()
urlsafe = base64.b64encode(self.__reference.Encode())
retu... | Add comment about urlsafe speed. | py |
diff --git a/src/symbols/sentence.py b/src/symbols/sentence.py
index <HASH>..<HASH> 100644
--- a/src/symbols/sentence.py
+++ b/src/symbols/sentence.py
@@ -15,13 +15,13 @@ from .symbol_ import Symbol
class SymbolSENTENCE(Symbol):
""" Defines a BASIC SENTENCE object. e.g. 'BORDER'.
"""
- def __init__(self, ... | Store lineno and filename in Symbol SENTENCE Now it's mandatory. Drops **kwargs usage, since this allows static analysis. | py |
diff --git a/trinity/utils/logging.py b/trinity/utils/logging.py
index <HASH>..<HASH> 100644
--- a/trinity/utils/logging.py
+++ b/trinity/utils/logging.py
@@ -98,6 +98,7 @@ def setup_queue_logging(log_queue: 'Queue[str]', level: int) -> None:
logging.getLogger('p2p.kademlia').setLevel(logging.INFO)
logging.ge... | Quiet down the missing SyncRequest messages | py |
diff --git a/skorch/callbacks/lr_scheduler.py b/skorch/callbacks/lr_scheduler.py
index <HASH>..<HASH> 100644
--- a/skorch/callbacks/lr_scheduler.py
+++ b/skorch/callbacks/lr_scheduler.py
@@ -5,11 +5,12 @@ import numpy as np
# pylint: disable=unused-import
from torch.optim.lr_scheduler import _LRScheduler
+from torc... | Resolve #<I> by syncing LR schedulers | py |
diff --git a/gorilla.py b/gorilla.py
index <HASH>..<HASH> 100644
--- a/gorilla.py
+++ b/gorilla.py
@@ -184,13 +184,13 @@ class Patch(object):
Parameters
----------
destination : object
- See the :attr:`destination` attribute.
+ See the :attr:`~Patch.destination` attribut... | Fix the refs not pointing to the right target | py |
diff --git a/pyWOA/woa.py b/pyWOA/woa.py
index <HASH>..<HASH> 100644
--- a/pyWOA/woa.py
+++ b/pyWOA/woa.py
@@ -384,12 +384,16 @@ class WOA_var_nc(object):
lat = np.atleast_1d(kwargs['lat'])
lon = np.atleast_1d(kwargs['lon'])
- if mode == 'nearest':
- output = self.closest(doy, dept... | Interpolate inside a try. Some cases, like insuficient data to interpolate, would fail. It will now fail safe returning None. | py |
diff --git a/bigchaindb/version.py b/bigchaindb/version.py
index <HASH>..<HASH> 100644
--- a/bigchaindb/version.py
+++ b/bigchaindb/version.py
@@ -1,2 +1,2 @@
-__version__ = '0.6.0'
-__short_version__ = '0.6'
+__version__ = '0.7.0.dev'
+__short_version__ = '0.7.dev' | Update version to <I>.dev | py |
diff --git a/py/test/rsession/executor.py b/py/test/rsession/executor.py
index <HASH>..<HASH> 100644
--- a/py/test/rsession/executor.py
+++ b/py/test/rsession/executor.py
@@ -22,8 +22,8 @@ class RunExecutor(object):
def run(self, capture=True):
if capture:
+ self.item.startcapture()
... | [svn r<I>] for setup/teardown pairs the correct idiom is setup() try: ... finally: teardown() and not to do the setup() within the try, because if that raises, teardown() will likely go wrong as well etc. --HG-- branch : trunk | py |
diff --git a/tests/test_querysetsequence.py b/tests/test_querysetsequence.py
index <HASH>..<HASH> 100644
--- a/tests/test_querysetsequence.py
+++ b/tests/test_querysetsequence.py
@@ -156,6 +156,12 @@ class TestIterator(TestBase):
qss = QuerySetSequence()
self.assertEqual(list(qss), [])
+ def test... | Add a test for a situation where one sub-QuerySet is empty. | py |
diff --git a/locksmith/hub/admin.py b/locksmith/hub/admin.py
index <HASH>..<HASH> 100644
--- a/locksmith/hub/admin.py
+++ b/locksmith/hub/admin.py
@@ -6,8 +6,9 @@ class ApiAdmin(admin.ModelAdmin):
admin.site.register(Api, ApiAdmin)
-
class KeyAdmin(admin.ModelAdmin):
+ list_display = ('key', 'status', 'email',... | Added list_display to model admin. | py |
diff --git a/dwm/test/test_dwm.py b/dwm/test/test_dwm.py
index <HASH>..<HASH> 100644
--- a/dwm/test/test_dwm.py
+++ b/dwm/test/test_dwm.py
@@ -10,6 +10,8 @@ from .test_genericRegex import genericRegex
from .test_fieldSpecificRegex import fieldSpecificRegex
from .test_normRegex import normRegex
+from .test_normInclu... | add load of normIncludes to mongomock | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.