diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/phoebe/frontend/plotting.py b/phoebe/frontend/plotting.py index <HASH>..<HASH> 100644 --- a/phoebe/frontend/plotting.py +++ b/phoebe/frontend/plotting.py @@ -581,6 +581,10 @@ def mesh(b, t, **kwargs): zu = kd_zunit if kd_zunit is not '_auto_' else 'Rsol' if zu != 'Rsol': mpl_...
attach_plot_mesh now passes on user-defined facecolors and edgecolors
py
diff --git a/tweepy/__init__.py b/tweepy/__init__.py index <HASH>..<HASH> 100644 --- a/tweepy/__init__.py +++ b/tweepy/__init__.py @@ -22,6 +22,6 @@ api = API() def debug(enable=True, level=1): - import http.client - http.client.HTTPConnection.debuglevel = level + # import http.client + # http.client.H...
Commented Out Body of debug
py
diff --git a/ryu/tests/switch/tester.py b/ryu/tests/switch/tester.py index <HASH>..<HASH> 100644 --- a/ryu/tests/switch/tester.py +++ b/ryu/tests/switch/tester.py @@ -912,8 +912,8 @@ class OfTester(app_manager.RyuApp): value1 = getattr(stats1, attr) value2 = getattr(stats2, attr) ...
tester: Enable to sort instructions instance by type
py
diff --git a/vyper/functions/functions.py b/vyper/functions/functions.py index <HASH>..<HASH> 100644 --- a/vyper/functions/functions.py +++ b/vyper/functions/functions.py @@ -218,9 +218,15 @@ class Slice: ) -@signature(('bytes', 'string')) -def _len(expr, args, kwargs, context): - return get_length(args...
refactor: convert len to a class
py
diff --git a/bcbio/upload/__init__.py b/bcbio/upload/__init__.py index <HASH>..<HASH> 100644 --- a/bcbio/upload/__init__.py +++ b/bcbio/upload/__init__.py @@ -226,7 +226,7 @@ def _maybe_add_sv(algorithm, sample, out): batch = _get_batch_name(sample) for svcall in sample["sv"]: if svcall.g...
Seq2C coverage file is not batch-level
py
diff --git a/fut/core.py b/fut/core.py index <HASH>..<HASH> 100644 --- a/fut/core.py +++ b/fut/core.py @@ -26,21 +26,22 @@ from .EAHashingAlgorithm import EAHashingAlgorithm -def baseId(resource_id, version=False): - """Calculates base id (assetId?).""" - v = 0 - if resource_id > 1358954496: - ...
Rework base id from resource id calculation, use new constant Correct first constant to subtract for FIFA <I> is 0x<I> (<I>) Before: baseId(<I>, True) -> (<I>, <I>) baseId(<I>, True) -> (<I>, <I>) After: baseId(<I>, True) -> (<I>, 1) baseId(<I>, True) -> (<I>, 2)
py
diff --git a/cirq/experiments/n_qubit_tomography_test.py b/cirq/experiments/n_qubit_tomography_test.py index <HASH>..<HASH> 100644 --- a/cirq/experiments/n_qubit_tomography_test.py +++ b/cirq/experiments/n_qubit_tomography_test.py @@ -126,5 +126,5 @@ def test_agrees_with_two_qubit_state_tomography(circuit): erro...
Increase tolerance in n_qubit_tomography_test' (#<I>) I just got CI failure with this test failing with message ``` assert np.linalg.norm(error_rho) < <I> AssertionError: assert <I> < <I> ```
py
diff --git a/polyaxon_client/tracking/contrib/logging_tensor_hook.py b/polyaxon_client/tracking/contrib/logging_tensor_hook.py index <HASH>..<HASH> 100644 --- a/polyaxon_client/tracking/contrib/logging_tensor_hook.py +++ b/polyaxon_client/tracking/contrib/logging_tensor_hook.py @@ -14,7 +14,7 @@ class PolyaxonLoggingTe...
Update logging_tensor_hook.py
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -1556,7 +1556,10 @@ class ClearFuncs(object): return '' # Verify that the caller has root on master elif 'user' in clear_load: - if clear_load['user'].s...
If the root key is sent, all is good, fix #<I>
py
diff --git a/MAVProxy/modules/mavproxy_misc.py b/MAVProxy/modules/mavproxy_misc.py index <HASH>..<HASH> 100644 --- a/MAVProxy/modules/mavproxy_misc.py +++ b/MAVProxy/modules/mavproxy_misc.py @@ -75,6 +75,7 @@ class MiscModule(mp_module.MPModule): self.add_command('led', self.cmd_led, "control board LED") ...
misc: added flashbootloader command
py
diff --git a/spikeextractors/baseextractor.py b/spikeextractors/baseextractor.py index <HASH>..<HASH> 100644 --- a/spikeextractors/baseextractor.py +++ b/spikeextractors/baseextractor.py @@ -388,7 +388,11 @@ def _check_same_version(class_string, version): module = class_string.split('.')[0] imported_module = ...
Allow extractor module not to have a version (for custom)
py
diff --git a/tests/integration/modules/grains.py b/tests/integration/modules/grains.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/grains.py +++ b/tests/integration/modules/grains.py @@ -142,9 +142,8 @@ class GrainsAppendTestCase(integration.ModuleCase): GRAIN_VAL = 'my-grain-val' def tearDo...
Attempt to fix failing grains tests in <I> The tearDown appears to only be removing the grain if it matches a specific value. This may be leading to the grain value not being blank at the time the next test is run. Instead of only deleting the grain if it matches a specific value, instead delete all items from that g...
py
diff --git a/riemann/networks/networks.py b/riemann/networks/networks.py index <HASH>..<HASH> 100644 --- a/riemann/networks/networks.py +++ b/riemann/networks/networks.py @@ -337,7 +337,8 @@ class DecredTest(Network): SYMBOL = 'DCRT' NETWORK_NAME = 'decred' SUBNET_NAME = 'test' - P2PKH_PREFIX = b'\x28...
fix Decred Testnet3 params
py
diff --git a/openxc/version.py b/openxc/version.py index <HASH>..<HASH> 100644 --- a/openxc/version.py +++ b/openxc/version.py @@ -6,7 +6,7 @@ problems with ``__init__.py`` (which is loaded by setup.py during installation, which in turn needs access to this version information.) """ -VERSION = (0, 9, 3) +VERSION = ...
Bump to <I> in package version for development.
py
diff --git a/indra/sources/bel/pybel_processor.py b/indra/sources/bel/pybel_processor.py index <HASH>..<HASH> 100644 --- a/indra/sources/bel/pybel_processor.py +++ b/indra/sources/bel/pybel_processor.py @@ -66,7 +66,7 @@ class PybelProcessor(object): # FIXME: Handle reactions def get_statements(self): - ...
Update PyBEL processor to work with networkx 2
py
diff --git a/qfactor/performance.py b/qfactor/performance.py index <HASH>..<HASH> 100644 --- a/qfactor/performance.py +++ b/qfactor/performance.py @@ -204,8 +204,8 @@ def factor_alpha_beta(factor, forward_returns, factor_daily_returns=None): alpha_beta = pd.DataFrame() for days in factor_daily_returns.colum...
correct x and y order in ols
py
diff --git a/bids/variables/variables.py b/bids/variables/variables.py index <HASH>..<HASH> 100644 --- a/bids/variables/variables.py +++ b/bids/variables/variables.py @@ -1,6 +1,7 @@ import numpy as np import pandas as pd import math +import warnings from copy import deepcopy from abc import abstractmethod, ABCMet...
ENH: issue warning when silently incrementing runs
py
diff --git a/scenarios/kubernetes_build.py b/scenarios/kubernetes_build.py index <HASH>..<HASH> 100755 --- a/scenarios/kubernetes_build.py +++ b/scenarios/kubernetes_build.py @@ -142,7 +142,8 @@ def main(args): check('make', 'quick-release') else: check('make', 'release') - check(args.push_bui...
Print output of push build call Prints the output of push build when called as a subprocess in kubernetes_build.py scenario.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,29 @@ -from setuptools import setup, find_packages +import os +import shutil + +from setuptools import setup, find_packages, Command + import oscrypto + +class CleanCommand(Command): + user_options = [] + + ...
Make "setup.py clean" actually clean stuff up
py
diff --git a/memote/suite/reporting/report.py b/memote/suite/reporting/report.py index <HASH>..<HASH> 100644 --- a/memote/suite/reporting/report.py +++ b/memote/suite/reporting/report.py @@ -85,6 +85,10 @@ class GitEnabledReport(Report): self.directory = directory self.files = [join(self.directory, "{...
chore: error on empty dir (#<I>)
py
diff --git a/indra/tools/reading/submit_reading_pipeline_aws.py b/indra/tools/reading/submit_reading_pipeline_aws.py index <HASH>..<HASH> 100644 --- a/indra/tools/reading/submit_reading_pipeline_aws.py +++ b/indra/tools/reading/submit_reading_pipeline_aws.py @@ -6,8 +6,6 @@ from indra.literature import elsevier_client ...
Move boto3 client call to point of use
py
diff --git a/tests/test-services-iam.py b/tests/test-services-iam.py index <HASH>..<HASH> 100644 --- a/tests/test-services-iam.py +++ b/tests/test-services-iam.py @@ -25,7 +25,7 @@ class TestOpinelServicesIAM: def make_travisname(self, testname): - return '%s-%s-%s' % (testname, binascii.b2a_hex(os.uran...
bytes to string for p3
py
diff --git a/LiSE/core.py b/LiSE/core.py index <HASH>..<HASH> 100644 --- a/LiSE/core.py +++ b/LiSE/core.py @@ -499,11 +499,12 @@ class Engine(AbstractEngine): self.db.initdb() self._code_qe.initdb() self._existence = {} - self._timestream = {'master': {}} - self._branch_start = ...
move timestream-caching to within ``if self.caching:`` block
py
diff --git a/tests/parser_tests.py b/tests/parser_tests.py index <HASH>..<HASH> 100644 --- a/tests/parser_tests.py +++ b/tests/parser_tests.py @@ -44,10 +44,14 @@ class RedisParserTestCase(unittest.TestCase): def test_zipmap_thats_compresses_easily(self): r = self.load_rdb('zipmap_that_compresses_easily...
Adds tests for zipmaps that are stored as a raw string without compression
py
diff --git a/ops.py b/ops.py index <HASH>..<HASH> 100644 --- a/ops.py +++ b/ops.py @@ -70,7 +70,7 @@ def _chown(path, uid=-1, gid=-1): log.error('chown: invalid uid or gid: %s' % path) return False # hack around Apple's broken patch (http://bugs.python.org/issue13315) - if sys.platform == 'dar...
Fix uid/gid check
py
diff --git a/tests/test_wsaa.py b/tests/test_wsaa.py index <HASH>..<HASH> 100644 --- a/tests/test_wsaa.py +++ b/tests/test_wsaa.py @@ -21,16 +21,7 @@ import os from pyafipws.wsaa import WSAA from pyafipws import wsaa as at -try: - import M2Crypto as m2 -except ImportError: - m2 = None - -try: - import cryp...
WSAA: remove m2crypto from tests
py
diff --git a/legos/stocks.py b/legos/stocks.py index <HASH>..<HASH> 100644 --- a/legos/stocks.py +++ b/legos/stocks.py @@ -12,7 +12,8 @@ class Stocks(Lego): try: return message['text'].split()[0] == '!stocks' except Exception as e: - logger.error('Stocks lego fa...
Formatting Nazi compliance Same as previous commit but complies with style guide
py
diff --git a/intranet/apps/eighth/serializers.py b/intranet/apps/eighth/serializers.py index <HASH>..<HASH> 100644 --- a/intranet/apps/eighth/serializers.py +++ b/intranet/apps/eighth/serializers.py @@ -143,7 +143,9 @@ class EighthBlockDetailSerializer(serializers.Serializer): "administrative": scheduled_a...
fix(eighth): add finance and comments field
py
diff --git a/src/chisel/__init__.py b/src/chisel/__init__.py index <HASH>..<HASH> 100644 --- a/src/chisel/__init__.py +++ b/src/chisel/__init__.py @@ -6,7 +6,7 @@ Chisel is a light-weight Python WSGI application framework with tools for buildi well-tested, schema-validated JSON web APIs. """ -__version__ = '0.9.99'...
chisel <I>
py
diff --git a/src/xopen/__init__.py b/src/xopen/__init__.py index <HASH>..<HASH> 100644 --- a/src/xopen/__init__.py +++ b/src/xopen/__init__.py @@ -978,10 +978,7 @@ def xopen( # noqa: C901 # The function is complex, but readable. elif detected_format == "bz2": opened_file = _open_bz2(filename, mode, thre...
Do not change default buffersize for builtin open
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -9,15 +9,13 @@ to analyze trajectories generated from any kind of simulation """ # TODO: extend docstring DOCLINES = __doc__.split("\n") -__requires__ = 'setuptools>=2.2' +__requires__ = 'setuptools>=3.6' import sys imp...
[setup] minimum setuptools version <I>; removed unused import
py
diff --git a/pyssdb.py b/pyssdb.py index <HASH>..<HASH> 100644 --- a/pyssdb.py +++ b/pyssdb.py @@ -177,8 +177,10 @@ class Client(object): try: new_args = [] for arg in args: - if isinstance(arg, str) or isinstance(arg, unicode): + if isinstance(arg, unico...
for str type like '\xe5\x9c\xb0\xe6\x<I>\xb9' which can not being encoded to utf-8 should be changed to unicode first
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ setup( 'jdatetime', 'umalqurra', 'pytz', + 'regex', ], license="BSD", zip_safe=False,
Added new requirement to setup.py: regex module
py
diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index <HASH>..<HASH> 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -1014,7 +1014,8 @@ class XCCClient(IMMClient): self._refresh_token() rsp = json.loads(uploadthread.rsp) if prog...
Do not declare 'complete' before the 'mount'. Do <I>% upload, then do complete after the mount call. This avoids software erroneously stopping the upload/mount process. Change-Id: I<I>af<I>c<I>ceab2ba<I>f3bed0e<I>d<I>c<I>d
py
diff --git a/LiSE/LiSE/tests/test_examples.py b/LiSE/LiSE/tests/test_examples.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/tests/test_examples.py +++ b/LiSE/LiSE/tests/test_examples.py @@ -21,5 +21,5 @@ def test_polygons(engy): def test_sickle(engy): sickle.install(engy) - for i in range(10): + for i in...
Use more turns in test_sickle The weird bugs only showed up late
py
diff --git a/datatableview/helpers.py b/datatableview/helpers.py index <HASH>..<HASH> 100644 --- a/datatableview/helpers.py +++ b/datatableview/helpers.py @@ -13,6 +13,7 @@ from functools import partial, wraps from django import get_version from django.forms.util import flatatt +from django.db.models import Model ...
Fix data-value xeditable attribute for FK fields All of this should conclude changes required for a fixed #<I>
py
diff --git a/tests/integration/long/utils.py b/tests/integration/long/utils.py index <HASH>..<HASH> 100644 --- a/tests/integration/long/utils.py +++ b/tests/integration/long/utils.py @@ -52,8 +52,7 @@ class CoordinatorStats(): def init(self, session, keyspace, n, consistency_level=ConsistencyLevel.ONE): ...
Remove last PYTHON-<I> workaround
py
diff --git a/squad/api/rest.py b/squad/api/rest.py index <HASH>..<HASH> 100644 --- a/squad/api/rest.py +++ b/squad/api/rest.py @@ -55,7 +55,7 @@ class UserGroupSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = UserGroup - fields = ('id', 'name',) + fields = ('id', 'na...
api: minor fixes to make API more uniform The most important change is to make user_groups field of Group object read_only. This prevents from accidentally removing all user groups when making update. Other changes make the serializers more uniform across all API.
py
diff --git a/src/guake/dbusiface.py b/src/guake/dbusiface.py index <HASH>..<HASH> 100755 --- a/src/guake/dbusiface.py +++ b/src/guake/dbusiface.py @@ -85,10 +85,6 @@ class DbusManager(dbus.service.Object): self.guake.set_bg_image(bgcolor) @dbus.service.method(DBUS_NAME, in_signature='s') - def set_bg...
Fixing my bad first commit... time to learn to use git!
py
diff --git a/seleniumbase/plugins/pytest_plugin.py b/seleniumbase/plugins/pytest_plugin.py index <HASH>..<HASH> 100644 --- a/seleniumbase/plugins/pytest_plugin.py +++ b/seleniumbase/plugins/pytest_plugin.py @@ -8,6 +8,7 @@ from seleniumbase import config as sb_config from seleniumbase.core import log_helper from sele...
Add the "pytester" plugin to get the "testdir" fixture
py
diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py index <HASH>..<HASH> 100644 --- a/openupgradelib/openupgrade.py +++ b/openupgradelib/openupgrade.py @@ -198,12 +198,15 @@ def rename_tables(cr, table_spec): This function also renames the id sequence if it exists and if it is not modif...
[RFT] Rewrite warehouse migration based on known defaults [IMP] Preserve counter of existing sequences [IMP] Extend rename_tables API with magic argument None [IMP] Add color, multiwarehouse sequence logic [RFT] Rewrite move/inventory link migration in SQL and actually call it [RFT] Streamline uid/registry arguments
py
diff --git a/setuptools/version.py b/setuptools/version.py index <HASH>..<HASH> 100644 --- a/setuptools/version.py +++ b/setuptools/version.py @@ -1 +1 @@ -__version__ = '19.7' +__version__ = '19.8'
Bumped to <I> in preparation for next release.
py
diff --git a/html5lib/inputstream.py b/html5lib/inputstream.py index <HASH>..<HASH> 100644 --- a/html5lib/inputstream.py +++ b/html5lib/inputstream.py @@ -63,7 +63,7 @@ class BufferedStream(object): return pos def seek(self, pos): - assert pos < self._bufferedBytes() + assert pos <= self._...
Fix seeking to the end of the buffered data in BufferedStream. Previously, you could only seek to the final character, and not the current end of the buffered data.
py
diff --git a/git/repo/base.py b/git/repo/base.py index <HASH>..<HASH> 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -33,6 +33,8 @@ from git.util import Actor, finalize_process, decygpath, hex_to_bin import os.path as osp from .fun import rev_parse, is_git_dir, find_submodule_git_dir, touch +import gc +imp...
fix(leaks): repo context-man to cleanup global mman on repo-delete Improve API for problems like #<I>.
py
diff --git a/pandas/core/format.py b/pandas/core/format.py index <HASH>..<HASH> 100644 --- a/pandas/core/format.py +++ b/pandas/core/format.py @@ -1679,7 +1679,7 @@ def get_console_size(): display_width = get_option('display.width') display_height = get_option('display.height') - if com.in_interactive_se...
BUG: Always Ignore auto-detect terminal size for qtc/+ipnb this is ignored anyway unless the user sets width/height to 0, but even then, size detection only works for proper terminals.
py
diff --git a/raiden/ui/cli.py b/raiden/ui/cli.py index <HASH>..<HASH> 100644 --- a/raiden/ui/cli.py +++ b/raiden/ui/cli.py @@ -605,6 +605,12 @@ def run(ctx: Context, **kwargs: Any) -> None: profiler.stop() +# List of available options, use by the scenario player +FLAG_OPTIONS = {param.name.replace("_",...
Provide list of cli params for use in SP @nlsdfnbch expressed interest in having a full list of all cli flags for use in the SP in <URL>
py
diff --git a/netmiko/ssh_autodetect.py b/netmiko/ssh_autodetect.py index <HASH>..<HASH> 100644 --- a/netmiko/ssh_autodetect.py +++ b/netmiko/ssh_autodetect.py @@ -106,6 +106,12 @@ SSH_MAPPER_BASE = { "priority": 99, "dispatch": "_autodetect_std", }, + 'dell_force10': { + "cmd": "show ve...
S<I> SSH autodetect support
py
diff --git a/openxc/controllers/base.py b/openxc/controllers/base.py index <HASH>..<HASH> 100644 --- a/openxc/controllers/base.py +++ b/openxc/controllers/base.py @@ -16,8 +16,9 @@ class Controller(object): and write it out to the controller interface as bytes, ending with a \0 character. """...
Remove a check for optional value in commands.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ requirements = [ # Protocol and data packages "pytmpdir >= 0.2.3", # A temporary directory, useful for extracting archives to "txhttputil >= 0.2.7", # Utility class for http requests - "vorte...
Updated vortexpy requirement to <I>
py
diff --git a/saspy/sasbase.py b/saspy/sasbase.py index <HASH>..<HASH> 100644 --- a/saspy/sasbase.py +++ b/saspy/sasbase.py @@ -1316,9 +1316,11 @@ class SASsession(): def symget(self, name, outtype=None): """ - :param name: name of the macro varable to set: + :param name: name of the ma...
doc changes to symget in method docstring
py
diff --git a/jscssmin.py b/jscssmin.py index <HASH>..<HASH> 100644 --- a/jscssmin.py +++ b/jscssmin.py @@ -45,6 +45,16 @@ import mimetypes import random import string + +__author__ = 'Gustavo Vargas <xgvargas@gmail.com>' +__all__ = [ + 'jsMin', + 'cssMin', + 'jpgMin', + 'pngMin' +] + + if merger.get('c...
Added some new info and texts.
py
diff --git a/mambuloan.py b/mambuloan.py index <HASH>..<HASH> 100644 --- a/mambuloan.py +++ b/mambuloan.py @@ -116,7 +116,11 @@ class MambuLoan(MambuStruct): self[self.customFieldName] = [ c for c in self[self.customFieldName] if c['customField']['state']!="DEACTIVATED" ] for custom in self[se...
Condition for Mambuloan.preprocess, when customfield values are linked fields instead of text/any other type of field.
py
diff --git a/proso_flashcards/views.py b/proso_flashcards/views.py index <HASH>..<HASH> 100644 --- a/proso_flashcards/views.py +++ b/proso_flashcards/views.py @@ -52,7 +52,7 @@ def practice_image(request): svg.print_square( OFFSET_X + SQUARE_SIZE * item_position[answer.item_asked_id], ...
chane datetime format for practice image
py
diff --git a/Lib/glyphs2ufo/interpolation.py b/Lib/glyphs2ufo/interpolation.py index <HASH>..<HASH> 100644 --- a/Lib/glyphs2ufo/interpolation.py +++ b/Lib/glyphs2ufo/interpolation.py @@ -87,14 +87,14 @@ def add_masters_to_writer(writer, rfonts): font.lib.get(GLYPHS_PREFIX + 'widthValue', DEFAULT_LOC))) ...
[interpolate] Copy features, use Italic as regular It's important to copy the non-GPOS features to instances for obvious reasons; before things like "smcp" were not present in output instances. This also counts Italic as a base font for italic families.
py
diff --git a/beautify_bash.py b/beautify_bash.py index <HASH>..<HASH> 100644 --- a/beautify_bash.py +++ b/beautify_bash.py @@ -1,15 +1,35 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -"""A Bash script beautifier.""" +# *********************************************************************** # +# Copyright (C) 20...
Began making PEP-<I> compliant
py
diff --git a/cobe/brain.py b/cobe/brain.py index <HASH>..<HASH> 100644 --- a/cobe/brain.py +++ b/cobe/brain.py @@ -269,8 +269,17 @@ class Db: if c is None: c = self.cursor() - q = "SELECT id FROM tokens ORDER BY RANDOM() LIMIT 1" + # get the count of tokens + q = "SELECT MAX...
Use MAX(id) and OFFSET to get_random_token() This is a significant performance improvement from the full table scan caused by "ORDER BY RANDOM()"
py
diff --git a/PlugIns/Camera/CameraHardwareSource.py b/PlugIns/Camera/CameraHardwareSource.py index <HASH>..<HASH> 100644 --- a/PlugIns/Camera/CameraHardwareSource.py +++ b/PlugIns/Camera/CameraHardwareSource.py @@ -175,10 +175,11 @@ class CameraHardwareSource(HardwareSource.HardwareSource): return self.__recor...
Add fix for ping-pong profile index behavior. Added simulator support for testing. Was svn r<I>
py
diff --git a/indra/assemblers/cx_assembler.py b/indra/assemblers/cx_assembler.py index <HASH>..<HASH> 100644 --- a/indra/assemblers/cx_assembler.py +++ b/indra/assemblers/cx_assembler.py @@ -182,9 +182,10 @@ class CxAssembler(): name = 'HGNC' val = 'http://identifiers.org/hgnc/HGNC:%s'...
Fix some node identifiers in CX assembler
py
diff --git a/alot/db.py b/alot/db.py index <HASH>..<HASH> 100644 --- a/alot/db.py +++ b/alot/db.py @@ -27,6 +27,9 @@ import helper DB_ENC = 'utf8' +class DatabaseError(Exception): + pass + class DBManager: """ @@ -43,11 +46,14 @@ class DBManager: """ tries to flush all queued write com...
make sure read-only mode dowsn't write this is the first part of a fix for issur #<I>
py
diff --git a/parsl/executors/high_throughput/interchange.py b/parsl/executors/high_throughput/interchange.py index <HASH>..<HASH> 100644 --- a/parsl/executors/high_throughput/interchange.py +++ b/parsl/executors/high_throughput/interchange.py @@ -449,8 +449,9 @@ class Interchange(object): # If we had rec...
Log interesting/total managers as a conventional fraction (#<I>)
py
diff --git a/openquake/hazardlib/gsim/mgmpe/nrcan15_site_term.py b/openquake/hazardlib/gsim/mgmpe/nrcan15_site_term.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/gsim/mgmpe/nrcan15_site_term.py +++ b/openquake/hazardlib/gsim/mgmpe/nrcan15_site_term.py @@ -56,8 +56,8 @@ class NRCan15SiteTerm(GMPE): ...
Addresses review notes Former-commit-id: <I>f6f0d8df<I>eaefeba6ea<I>aeef4
py
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index <HASH>..<HASH> 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -41,10 +41,7 @@ from .formatter import HelpFormatter def when_mentioned(bot, msg): """A callable that implements a command prefix equivalent ...
[commands] Make when_mentioned always have both mention formats. This will allow it to work in mobile clients which don't respect the <@!id> format in case of nicknames.
py
diff --git a/s3backup/clients/local.py b/s3backup/clients/local.py index <HASH>..<HASH> 100644 --- a/s3backup/clients/local.py +++ b/s3backup/clients/local.py @@ -101,7 +101,7 @@ class LocalSyncClient(SyncClient): else: raise ValueError('Index is of unknown type', content_type) - with met...
Fix issue with loading index on LocalSyncClient
py
diff --git a/girder/models/file.py b/girder/models/file.py index <HASH>..<HASH> 100644 --- a/girder/models/file.py +++ b/girder/models/file.py @@ -19,6 +19,7 @@ import cherrypy import datetime +import six from .model_base import Model, ValidationException from girder import events @@ -317,7 +318,15 @@ class Fil...
Make "File.isOrphan" work with plugin "attachedToType" Models Plugins may want to attach Files to plugin-based Model types. These should be handled gracefully and not cause Files to appear orphaned. These plugins are expected to set "attachedToType" to be a list of the form ["model_type", "plugin_name"].
py
diff --git a/socketIO_client/__init__.py b/socketIO_client/__init__.py index <HASH>..<HASH> 100644 --- a/socketIO_client/__init__.py +++ b/socketIO_client/__init__.py @@ -25,6 +25,7 @@ class BaseNamespace(object): def __init__(self, _transport, path): self._transport = _transport self.path = path...
Make on_reconnect callback functional Previously, if the socket.io connection got interrupted and reconnected the on_connect callback got called again. I noticed that there is a on_reconnect function to overide in the base namespace class, but since there is no socket.io command corresponding to on_reconnect it never ...
py
diff --git a/tensor2tensor/data_generators/gym_problems_specs.py b/tensor2tensor/data_generators/gym_problems_specs.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/data_generators/gym_problems_specs.py +++ b/tensor2tensor/data_generators/gym_problems_specs.py @@ -62,6 +62,7 @@ ATARI_WHITELIST_GAMES = [ "kung_fu...
adding qbert to whitelisted games. PiperOrigin-RevId: <I>
py
diff --git a/scripts/backup/rethinkdb-export.py b/scripts/backup/rethinkdb-export.py index <HASH>..<HASH> 100755 --- a/scripts/backup/rethinkdb-export.py +++ b/scripts/backup/rethinkdb-export.py @@ -218,7 +218,7 @@ def csv_writer(filename, fields, task_queue, error_queue): try: with open(filename, "w") as...
fixing unicode handling in Incompatible version of rethinkdb python client installed. Update it via `pip install --upgrade rethinkdb`
py
diff --git a/ospd/scan.py b/ospd/scan.py index <HASH>..<HASH> 100644 --- a/ospd/scan.py +++ b/ospd/scan.py @@ -400,7 +400,9 @@ class ScanCollection: def release_vts_list(self, scan_id: str) -> None: """ Release the memory used for the vts list. """ - self.scans_table[scan_id].pop('vts') + ...
Update ospd/scan.py
py
diff --git a/git_repo/repo.py b/git_repo/repo.py index <HASH>..<HASH> 100644 --- a/git_repo/repo.py +++ b/git_repo/repo.py @@ -175,13 +175,13 @@ class GitRepoRunner(KeywordArgumentParser): if remote.name in (target, 'upstream', 'origin'): for url in remote.urls: if url...
Check that url endswith .git rather than containing it anywhere in the url
py
diff --git a/saltcloud/clouds/openstack.py b/saltcloud/clouds/openstack.py index <HASH>..<HASH> 100644 --- a/saltcloud/clouds/openstack.py +++ b/saltcloud/clouds/openstack.py @@ -158,7 +158,7 @@ def create(vm_): Create a single VM from a data dict ''' log.info('Creating Cloud VM {0}'.format(vm_['name']))...
Fix that allows the host regex to contain periods in the name
py
diff --git a/bindings/pydeck/pydeck/bindings/deck.py b/bindings/pydeck/pydeck/bindings/deck.py index <HASH>..<HASH> 100644 --- a/bindings/pydeck/pydeck/bindings/deck.py +++ b/bindings/pydeck/pydeck/bindings/deck.py @@ -108,7 +108,7 @@ class Deck(JSONMixin): for provider in BaseMapProvider: attr_na...
BUG FIX: pydeck api_keys (#<I>) api_keys dictionary expects keys of either mapbox, google_map or carto, which are accessed via provider.value
py
diff --git a/satsearch/scene.py b/satsearch/scene.py index <HASH>..<HASH> 100644 --- a/satsearch/scene.py +++ b/satsearch/scene.py @@ -202,6 +202,10 @@ class Scenes(object): self.properties[p] = _p except: self.properties[p] = properties[p] + # check...
if FeatureCollection then take just first Feature
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 @@ -647,8 +647,8 @@ def get_sitecol_assetcol(oqparam, haz_sitecol): obj, distance = siteobjects.get_closest(lon, lat) ...
Restored sorting [skip hazardlib]
py
diff --git a/openquake/calculators/ebrisk.py b/openquake/calculators/ebrisk.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/ebrisk.py +++ b/openquake/calculators/ebrisk.py @@ -61,9 +61,10 @@ def _calc(computers, events, min_iml, rlzs_by_gsim, weights, for c in computers: with mon_haz: ...
Stored the number of sites affected by each contributing ruptures Former-commit-id: be<I>cfba<I>b4fc1d<I>f<I>ef<I>d
py
diff --git a/acos_client/v30/dns.py b/acos_client/v30/dns.py index <HASH>..<HASH> 100644 --- a/acos_client/v30/dns.py +++ b/acos_client/v30/dns.py @@ -47,3 +47,13 @@ class DNS(base.BaseV30): if suffix is not None: self._set_suffix(suffix) + + def delete(self, primary=None, secondary=None, suf...
Added dns delete function
py
diff --git a/tests/tests/integrations/idan_oauthlib.py b/tests/tests/integrations/idan_oauthlib.py index <HASH>..<HASH> 100644 --- a/tests/tests/integrations/idan_oauthlib.py +++ b/tests/tests/integrations/idan_oauthlib.py @@ -35,4 +35,8 @@ class TestOauthlib(ApprovalTestCase): "approve_access": None, ...
Finished approval process checks for oauthlib
py
diff --git a/angr/storage/memory_mixins/name_resolution_mixin.py b/angr/storage/memory_mixins/name_resolution_mixin.py index <HASH>..<HASH> 100644 --- a/angr/storage/memory_mixins/name_resolution_mixin.py +++ b/angr/storage/memory_mixins/name_resolution_mixin.py @@ -1,3 +1,4 @@ +import claripy from archinfo.arch_arm i...
Allow storing undersized values to registers by zero-extending them
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,6 +17,10 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # +import os +import sys +sys.pat...
Update for compatibility with Versioneer
py
diff --git a/fandjango/__init__.py b/fandjango/__init__.py index <HASH>..<HASH> 100644 --- a/fandjango/__init__.py +++ b/fandjango/__init__.py @@ -1 +1 @@ -__version__ = VERSION = '3.7.3' +__version__ = VERSION = '4.0.0b'
Update version to <I>.b
py
diff --git a/SoftLayer/testing/xmlrpc.py b/SoftLayer/testing/xmlrpc.py index <HASH>..<HASH> 100644 --- a/SoftLayer/testing/xmlrpc.py +++ b/SoftLayer/testing/xmlrpc.py @@ -66,7 +66,7 @@ class TestHandler(http.server.BaseHTTPRequestHandler): except UnicodeDecodeError: self.wfile.write(respon...
catching for the NameError exception
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -106,9 +106,11 @@ setuptools.setup( "Programming Language :: C", "Programming Language :: C++", "Programming Language :: Cython", - "Programming Language :: Python :: 2.6", "Programmi...
Update trove classifiers and version
py
diff --git a/bt/algos.py b/bt/algos.py index <HASH>..<HASH> 100644 --- a/bt/algos.py +++ b/bt/algos.py @@ -328,6 +328,8 @@ class RunYearly(Algo): result = self._run_on_first_call elif now.year != self.last_date.year: result = True + elif now.year != self.last_date.year: + ...
Added annual check for Run* algos
py
diff --git a/src/diamond/handler/hostedgraphite.py b/src/diamond/handler/hostedgraphite.py index <HASH>..<HASH> 100644 --- a/src/diamond/handler/hostedgraphite.py +++ b/src/diamond/handler/hostedgraphite.py @@ -31,7 +31,7 @@ class HostedGraphiteHandler(Handler): self.key = self.config['apikey'].lower().strip...
Fixes #<I>, this fixes the code to properly pull in the correct default values to pass to the graphite handler
py
diff --git a/greenwavereality/greenwavereality.py b/greenwavereality/greenwavereality.py index <HASH>..<HASH> 100644 --- a/greenwavereality/greenwavereality.py +++ b/greenwavereality/greenwavereality.py @@ -65,4 +65,6 @@ def check_online(device): def grab_token(host, email, password): url = ('https://' + host + '...
Parse XML of token response
py
diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py index <HASH>..<HASH> 100644 --- a/openupgradelib/openupgrade.py +++ b/openupgradelib/openupgrade.py @@ -184,6 +184,8 @@ def rename_models(cr, model_spec): 'WHERE model = %s', (new, old,)) cr.execute('UPDATE ir_model_...
Rename models in ir_model_data When renaming models, we also want to rename them in ir_model_data. This prevents errors in rename_xmlids such as: External ID conflict, document_page_procedure already refers to a `wiki.wiki` record, you can't define a `document.page` record with this ID.
py
diff --git a/spyder/plugins/editor/widgets/codeeditor.py b/spyder/plugins/editor/widgets/codeeditor.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/widgets/codeeditor.py +++ b/spyder/plugins/editor/widgets/codeeditor.py @@ -2373,7 +2373,7 @@ class CodeEditor(TextEditBaseWidget): if prevtext: ...
Fix slices that should have been indices
py
diff --git a/vasppy/summary.py b/vasppy/summary.py index <HASH>..<HASH> 100644 --- a/vasppy/summary.py +++ b/vasppy/summary.py @@ -74,10 +74,7 @@ class Summary: self.meta = VASPMeta.from_file( 'vaspmeta.yaml' ) except FileNotFoundError as e: raise type(e)( str(e) + ' in {}...
Fixed error in Vasprun.xml readin
py
diff --git a/irc/strings.py b/irc/strings.py index <HASH>..<HASH> 100644 --- a/irc/strings.py +++ b/irc/strings.py @@ -24,10 +24,11 @@ class IRCFoldedCase(FoldedCase): )) def lower(self): - if not self: + return ( + self.translate(self.translation) if self # bypass tran...
Combine multiple returns into a single if/else expression
py
diff --git a/src/permission/utils/permissions.py b/src/permission/utils/permissions.py index <HASH>..<HASH> 100644 --- a/src/permission/utils/permissions.py +++ b/src/permission/utils/permissions.py @@ -103,7 +103,7 @@ def get_app_perms(model_or_app_label): True """ from django.contrib.auth.models import...
Fix string_types usage to come from six instead of globally
py
diff --git a/thinc/neural/_classes/model.py b/thinc/neural/_classes/model.py index <HASH>..<HASH> 100644 --- a/thinc/neural/_classes/model.py +++ b/thinc/neural/_classes/model.py @@ -1,3 +1,4 @@ +from __future__ import division from numpy import prod import contextlib @@ -147,8 +148,11 @@ class Model(object): ...
Fix model.evaluate for single-class problems
py
diff --git a/model/LineGraphCanvasItem.py b/model/LineGraphCanvasItem.py index <HASH>..<HASH> 100644 --- a/model/LineGraphCanvasItem.py +++ b/model/LineGraphCanvasItem.py @@ -583,11 +583,12 @@ class LineGraphVerticalAxisScaleCanvasItem(CanvasItem.AbstractCanvasItem): font = "{0:d}px".format(self.font_size)...
Clean up line plot vertical range so that it doesn't jump around as much. svn r<I>
py
diff --git a/master/buildbot/buildslave/openstack.py b/master/buildbot/buildslave/openstack.py index <HASH>..<HASH> 100644 --- a/master/buildbot/buildslave/openstack.py +++ b/master/buildbot/buildslave/openstack.py @@ -121,9 +121,9 @@ class OpenStackLatentBuildSlave(AbstractLatentBuildSlave): ...
Add block devices to kwargs for servers.create
py
diff --git a/tests/test_transitions.py b/tests/test_transitions.py index <HASH>..<HASH> 100644 --- a/tests/test_transitions.py +++ b/tests/test_transitions.py @@ -176,6 +176,26 @@ class TestTransitions(unittest.TestCase): seq.components.append(filler) + with aaf2.open(result_file, 'r') as f: + ...
check ControlPoint['Value'] is a AAFRational
py
diff --git a/openquake/output/hazard.py b/openquake/output/hazard.py index <HASH>..<HASH> 100644 --- a/openquake/output/hazard.py +++ b/openquake/output/hazard.py @@ -43,6 +43,7 @@ GMFs are serialized per object (=Site) as implemented in the base class. import logging from lxml import etree +from os.path import bas...
Use the basename of the NRML path as the output display name. Former-commit-id: eec<I>bf<I>ca<I>c<I>c2cf<I>a<I>c7efd<I>cd<I>
py
diff --git a/safe/impact_functions/inundation/flood_raster_osm_building_impact/impact_function.py b/safe/impact_functions/inundation/flood_raster_osm_building_impact/impact_function.py index <HASH>..<HASH> 100644 --- a/safe/impact_functions/inundation/flood_raster_osm_building_impact/impact_function.py +++ b/safe/impac...
Fixing inundated / wet category swap.
py
diff --git a/smart_open/tests/test_smart_open.py b/smart_open/tests/test_smart_open.py index <HASH>..<HASH> 100644 --- a/smart_open/tests/test_smart_open.py +++ b/smart_open/tests/test_smart_open.py @@ -102,7 +102,7 @@ class SmartOpenReadTest(unittest.TestCase): smart_open_object = smart_open.HdfsOpenRead(smar...
modified "hdfs" test
py
diff --git a/juju/model.py b/juju/model.py index <HASH>..<HASH> 100644 --- a/juju/model.py +++ b/juju/model.py @@ -1325,7 +1325,10 @@ class BundleHandler(object): Annotations holds the annotations as key/value pairs. """ entity_id = self.resolve(id_) - entity = self.model.state.get...
Wait for entity if it doesn't exist yet
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup setup( name='mesh-tensorflow', - version='0.1.14', + version='0.1.15', description='Mesh TensorFlow', author='Google Inc.', author_email='no-reply@google.c...
Include all gin files in pip package. PiperOrigin-RevId: <I>
py
diff --git a/datascience/maps.py b/datascience/maps.py index <HASH>..<HASH> 100644 --- a/datascience/maps.py +++ b/datascience/maps.py @@ -5,7 +5,7 @@ __all__ = ['Map', 'Marker', 'Circle', 'Region'] import IPython.display import folium -from folium.plugins import MarkerCluster +from folium.plugins import MarkerClus...
used BeautifyIcon to allow hex colors for markers
py
diff --git a/mbuild/compound.py b/mbuild/compound.py index <HASH>..<HASH> 100755 --- a/mbuild/compound.py +++ b/mbuild/compound.py @@ -1701,7 +1701,7 @@ class Compound(object): atomic_number = atomic_number or AtomicNum[element] mass = Mass[element] pmd_atom = pmd.Atom(atomic_numb...
Passing atom charges to Parmed structure
py