diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/nodeconductor/structure/serializers.py b/nodeconductor/structure/serializers.py index <HASH>..<HASH> 100644 --- a/nodeconductor/structure/serializers.py +++ b/nodeconductor/structure/serializers.py @@ -1554,3 +1554,10 @@ class AggregateSerializer(serializers.Serializer): projects = self.get_projec...
Add private cloud serializer - wal-<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -154,7 +154,7 @@ azure = [ ] cassandra = ['cassandra-driver>=3.13.0'] celery = [ - 'celery>=4.1.1, <4.2.0', + 'celery~=4.3', 'flower>=0.7.3, <1.0', 'tornado>=4.2.0, <6.0', # Dep of flower. Pin to a version ...
[AIRFLOW-<I>] Upgrade to Celery <I> to fix crashing workers (#<I>)
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -152,7 +152,7 @@ html_static_path = ['_static'] #html_split_index = False # If true, links to the reST sources are added to the pages. -#html_show_sourcelink = True +html_show_sourcelink = True # If true...
docs.conf: Include sources.
py
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py index <HASH>..<HASH> 100755 --- a/howdoi/howdoi.py +++ b/howdoi/howdoi.py @@ -615,7 +615,7 @@ def get_parser(): action='store_true') parser.add_argument('--empty', help='empty your stash', action='store_true') - p...
Suppress the sanity check, for now
py
diff --git a/indra/util/aws.py b/indra/util/aws.py index <HASH>..<HASH> 100644 --- a/indra/util/aws.py +++ b/indra/util/aws.py @@ -358,9 +358,10 @@ if __name__ == '__main__': ) # Make non_db_parser and get subparsers run_parser = subparsers.add_parser( - 'run', + 'run_in_batch', ...
Rename run to run_in_batch
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import find_packages setup( name="deeputil", - version="0.2.7", + version="0.2.8", description="Commonly re-used logic kept in one library", keywords="deeputil", author...
references #<I>, added six as a dependency
py
diff --git a/plenum/cli/cli.py b/plenum/cli/cli.py index <HASH>..<HASH> 100644 --- a/plenum/cli/cli.py +++ b/plenum/cli/cli.py @@ -10,10 +10,6 @@ import shutil from jsonpickle import json - -# Do not remove this import -# import plenum.cli.ensure_logging_not_setup - from prompt_toolkit.utils import is_windows, is...
[#<I>] almost final changes to extract anoncreds dependency from sovrin and make it as plugin
py
diff --git a/src/sagemaker/local/local_session.py b/src/sagemaker/local/local_session.py index <HASH>..<HASH> 100644 --- a/src/sagemaker/local/local_session.py +++ b/src/sagemaker/local/local_session.py @@ -469,6 +469,9 @@ class LocalSagemakerRuntimeClient(object): if InferenceId is not None: head...
fix: encode localmode payload to UTF-8 (#<I>)
py
diff --git a/astroplan/conftest.py b/astroplan/conftest.py index <HASH>..<HASH> 100644 --- a/astroplan/conftest.py +++ b/astroplan/conftest.py @@ -9,14 +9,16 @@ and then after that do things specific to astroplan. But we also want astropy functionality for any functions we have *not* overriden, so that's why the ``i...
Using explicit imports to fix pytest <I>+ issue
py
diff --git a/jsonrpcclient/__init__.py b/jsonrpcclient/__init__.py index <HASH>..<HASH> 100644 --- a/jsonrpcclient/__init__.py +++ b/jsonrpcclient/__init__.py @@ -4,6 +4,5 @@ import logging logger = logging.getLogger('jsonrpcclient') logger.addHandler(logging.StreamHandler()) -logger.setLevel(logging.WARNING) fr...
Dont bother setting the log level to WARNING, thats the default anyway
py
diff --git a/multiqc/modules/dragen/dragen.py b/multiqc/modules/dragen/dragen.py index <HASH>..<HASH> 100755 --- a/multiqc/modules/dragen/dragen.py +++ b/multiqc/modules/dragen/dragen.py @@ -62,4 +62,6 @@ class MultiqcModule(DragenMappingMetics, DragenFragmentLength, DragenPloidyEstim samples_found |= self.add...
Dragen: raise UserWarning if no samples are found
py
diff --git a/src/sos/utils.py b/src/sos/utils.py index <HASH>..<HASH> 100644 --- a/src/sos/utils.py +++ b/src/sos/utils.py @@ -417,9 +417,9 @@ class RuntimeEnvironments(object): self._logger.addHandler(cout) if 'SOS_DEBUG' in os.environ: - logfile_info = [x for x in os.environ['SOS_DE...
Allow the specification of logfile without LOGFILE=
py
diff --git a/git2json/__init__.py b/git2json/__init__.py index <HASH>..<HASH> 100644 --- a/git2json/__init__.py +++ b/git2json/__init__.py @@ -214,7 +214,10 @@ def run_git_log(git_dir=None): command, stdout=subprocess.PIPE ) - return raw_git_log.stdout + if sys.version_info < (3, 0): + ...
in python3, we must transform the bytes file reading into unicode
py
diff --git a/fmn/lib/__init__.py b/fmn/lib/__init__.py index <HASH>..<HASH> 100644 --- a/fmn/lib/__init__.py +++ b/fmn/lib/__init__.py @@ -2,7 +2,6 @@ import fmn.lib.models -import functools import inspect import logging import re @@ -76,11 +75,9 @@ def matches(filter, message, valid_paths, config): # ...
After the reorg in #6, this is no longer necessary. ... even though it was cool.
py
diff --git a/homu/main.py b/homu/main.py index <HASH>..<HASH> 100644 --- a/homu/main.py +++ b/homu/main.py @@ -195,6 +195,12 @@ class PullReqState: self.rollup, ]) + def refresh(self): + issue = self.get_repo().issue(self.num) + + self.title = issue.title + self.body = is...
Refresh the PR title and the body before creating a merge commit Fixes #<I>.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -78,7 +78,7 @@ master_doc = 'index' # General information about the project. project = u'scrubadub' -copyright = u'2020, Dean Malmgren and Leap Beyond' +copyright = u'2021, Dean Malmgren and Leap Beyond' ...
update the year on the docs
py
diff --git a/atomicpuppy/atomicpuppy.py b/atomicpuppy/atomicpuppy.py index <HASH>..<HASH> 100644 --- a/atomicpuppy/atomicpuppy.py +++ b/atomicpuppy/atomicpuppy.py @@ -361,6 +361,22 @@ class StreamFetcher: yield from self.sleep(s) +def _ensure_coroutine_function(func): + """Return a coroutine fun...
Allow callback to be a coroutine function This is the callback passed by users of atomicpuppy to process events. Allow to be coroutine function so can read a stream from the callback without blocking reading other streams. There's only one task handling events so that won't make progress while the stream is read.
py
diff --git a/inspire_crawler/tasks.py b/inspire_crawler/tasks.py index <HASH>..<HASH> 100644 --- a/inspire_crawler/tasks.py +++ b/inspire_crawler/tasks.py @@ -134,7 +134,7 @@ def submit_results(job_id, errors, log_file, results_uri, results_data=None): job_id=job_id, object_id=obj.id ) db...
tasks: use correct config value for queue
py
diff --git a/PyFunceble/checker/availability/extra_rules.py b/PyFunceble/checker/availability/extra_rules.py index <HASH>..<HASH> 100644 --- a/PyFunceble/checker/availability/extra_rules.py +++ b/PyFunceble/checker/availability/extra_rules.py @@ -96,6 +96,9 @@ class ExtraRulesHandler: r"\.tumblr\.com$": [(...
added weebly.com too with <I> weebly.com uses http code <I> for disabled sites See <URL>
py
diff --git a/SoftLayer/managers/cci.py b/SoftLayer/managers/cci.py index <HASH>..<HASH> 100644 --- a/SoftLayer/managers/cci.py +++ b/SoftLayer/managers/cci.py @@ -371,7 +371,8 @@ class CCIManager(IdentifierMixin, object): if kwargs.get('ssh_keys'): order = self.guest.generateOrderTemplate(create_o...
Fixing return value for CCIs ordered with SSH keys
py
diff --git a/JAK/Widgets.py b/JAK/Widgets.py index <HASH>..<HASH> 100644 --- a/JAK/Widgets.py +++ b/JAK/Widgets.py @@ -352,3 +352,6 @@ class FileChooserDialog(QWidget): options=options) if file_name[0]: return file_name[0] + + self.hide() + self.destroy()
fix memory leak on filechooser dialog
py
diff --git a/spyderlib/plugins/ipythonconsole.py b/spyderlib/plugins/ipythonconsole.py index <HASH>..<HASH> 100644 --- a/spyderlib/plugins/ipythonconsole.py +++ b/spyderlib/plugins/ipythonconsole.py @@ -113,7 +113,7 @@ def openssh_tunnel(self, lport, rport, server, remoteip='127.0.0.1', host = server.s...
IPython Console: Fix minor error with translation string
py
diff --git a/tests/utils/helpers.py b/tests/utils/helpers.py index <HASH>..<HASH> 100644 --- a/tests/utils/helpers.py +++ b/tests/utils/helpers.py @@ -154,11 +154,14 @@ def run_job(config_file, **kw_params): :returns: The return code of the subprocess. + :raises: + If the return code is not 0,...
changed run_job to use subprocess.check_call (to properly raise errors if the job run through bin/openquake fails)
py
diff --git a/gseapy/stats.py b/gseapy/stats.py index <HASH>..<HASH> 100644 --- a/gseapy/stats.py +++ b/gseapy/stats.py @@ -75,8 +75,9 @@ def calc_pvalues(query, gene_sets, background=20000, **kwargs): # p(X >= hitCounts) pval = hypergeom.sf(x-1, bg, m, k) #oddr, pval2 = odds_ratio_calc(bg, k,...
odds ratio correction, #<I>
py
diff --git a/pyfortune/entry.py b/pyfortune/entry.py index <HASH>..<HASH> 100644 --- a/pyfortune/entry.py +++ b/pyfortune/entry.py @@ -38,7 +38,7 @@ def main(): args = parser.parse_args() if args.files: - for fortune in list_fortune(): + for fortune in list_fortune(args.offend): p...
Listing (-f) now respects offensive setting.
py
diff --git a/tests/test_kanji.py b/tests/test_kanji.py index <HASH>..<HASH> 100644 --- a/tests/test_kanji.py +++ b/tests/test_kanji.py @@ -37,5 +37,13 @@ def test_detect_kanji_encoder2(): assert 2 == segment.char_count +def test_kanji_bytes(): + qr = encoder.encode('続きを読む'.encode(consts.KANJI_ENCODING)) + ...
Added (failing) Kanji test case: Wrong character count
py
diff --git a/salt/thorium/local.py b/salt/thorium/local.py index <HASH>..<HASH> 100644 --- a/salt/thorium/local.py +++ b/salt/thorium/local.py @@ -12,7 +12,7 @@ import salt.client def cmd( name, tgt, - fun, + func, arg=(), tgt_type='glob', ret='', @@ -28,7 +28...
fun is reserved by the stte system
py
diff --git a/src/feat/extern/log/log.py b/src/feat/extern/log/log.py index <HASH>..<HASH> 100644 --- a/src/feat/extern/log/log.py +++ b/src/feat/extern/log/log.py @@ -703,6 +703,11 @@ def reopenOutputFiles(): def moveLogFiles(out_filename, err_filename): + global _stdout, _stderr + if not _stdout and not _st...
Make it safe to call flulog.moveLogFiles before setting the output first.
py
diff --git a/gssapi/creds.py b/gssapi/creds.py index <HASH>..<HASH> 100644 --- a/gssapi/creds.py +++ b/gssapi/creds.py @@ -112,8 +112,8 @@ class Credentials(rcreds.Creds): or None for the default name lifetime (int): the desired lifetime of the credentials, or None for ind...
Fix docs parsing error in creds.py In the case of :class`MechTypes`s, the "s" at the end was causing Sphinx to fail to parse the class markup. This fixes that by rewording slightly to remove the need for the trailing "s".
py
diff --git a/pnc_cli/buildconfigurations.py b/pnc_cli/buildconfigurations.py index <HASH>..<HASH> 100644 --- a/pnc_cli/buildconfigurations.py +++ b/pnc_cli/buildconfigurations.py @@ -21,9 +21,6 @@ def create_build_conf_object(**kwargs): created_build_configuration = swagger_client.BuildConfigurationRest() for...
remove workaround for erroneous REST client
py
diff --git a/minio/api.py b/minio/api.py index <HASH>..<HASH> 100644 --- a/minio/api.py +++ b/minio/api.py @@ -1086,12 +1086,12 @@ class Minio: # pylint: disable=too-many-public-methods minio.copy_object( "my-bucketname", "my-objectname", - "my-source-bucke...
Fixed Docstring typo in copy_object (#<I>)
py
diff --git a/custom_user_tests/settings.py b/custom_user_tests/settings.py index <HASH>..<HASH> 100644 --- a/custom_user_tests/settings.py +++ b/custom_user_tests/settings.py @@ -48,6 +48,7 @@ INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.contenttypes', + 'django.co...
Added admin to installed apps in custom settings
py
diff --git a/cli/cumulusci.py b/cli/cumulusci.py index <HASH>..<HASH> 100644 --- a/cli/cumulusci.py +++ b/cli/cumulusci.py @@ -37,10 +37,8 @@ class Config(object): 'OAUTH_CLIENT_ID', 'OAUTH_CLIENT_SECRET', 'OAUTH_CALLBACK_URL', - 'INSTANCE_URL', 'REFRESH_TOKEN', 'MRBE...
Pass --environment option from ci apextestsdb_upload and print the subcommand being called with arguments
py
diff --git a/mkl_random/_version.py b/mkl_random/_version.py index <HASH>..<HASH> 100644 --- a/mkl_random/_version.py +++ b/mkl_random/_version.py @@ -1,2 +1 @@ -__version__ = '1.2.1' - +__version__ = '1.2.2'
bumping up the version to <I>
py
diff --git a/sllurp/access.py b/sllurp/access.py index <HASH>..<HASH> 100644 --- a/sllurp/access.py +++ b/sllurp/access.py @@ -22,7 +22,7 @@ def access (proto): if args.read_words: readSpecParam = { 'OpSpecID': 0, - 'MB': 0, + 'MB': 3, 'WordPtr': 0, ...
Changed default read/write MemBank
py
diff --git a/src/state.py b/src/state.py index <HASH>..<HASH> 100644 --- a/src/state.py +++ b/src/state.py @@ -36,7 +36,7 @@ class State(Module): self.pull_schedule() if not self.running: return - self.scheduler.plan(time.time() + 60*60*16, self._pull_schedule_loop) + self.s...
state: pull schedule every <I> minutes
py
diff --git a/sgqlc/types/relay.py b/sgqlc/types/relay.py index <HASH>..<HASH> 100644 --- a/sgqlc/types/relay.py +++ b/sgqlc/types/relay.py @@ -370,7 +370,8 @@ class Connection(Type): has_other_page_info = hasattr(other, 'page_info') and \ other.page_info is not None if has_self_page_info ...
relay: only set end_cursor if that exists Eventually it was not queried or cannot be queried, such as in Shopify Closes: #<I>
py
diff --git a/test/test_tasks/test_bolt_shell.py b/test/test_tasks/test_bolt_shell.py index <HASH>..<HASH> 100644 --- a/test/test_tasks/test_bolt_shell.py +++ b/test/test_tasks/test_bolt_shell.py @@ -1,6 +1,7 @@ import unittest import bolt.tasks.bolt_shell as bsh +import _mocks as mck class TestShellExecuteTask(u...
Added additional registration test for shell task
py
diff --git a/util/database/array_based.py b/util/database/array_based.py index <HASH>..<HASH> 100644 --- a/util/database/array_based.py +++ b/util/database/array_based.py @@ -175,7 +175,7 @@ class Database(util.database.general.Database): db_array[index, key_length:] = value se...
MAINT: util.database: overwrite value tolerance slightly increased
py
diff --git a/dipper/sources/OMIA.py b/dipper/sources/OMIA.py index <HASH>..<HASH> 100644 --- a/dipper/sources/OMIA.py +++ b/dipper/sources/OMIA.py @@ -523,6 +523,7 @@ class OMIA(Source): if self.nobnodes: vl = '_'+vl self.geno.addAllele(vl, 'some variant of ' + gene_label) + self.g...
add allele of gene to OMIA
py
diff --git a/instant/views.py b/instant/views.py index <HASH>..<HASH> 100644 --- a/instant/views.py +++ b/instant/views.py @@ -35,11 +35,11 @@ def instant_auth(request): if channel in chans["superuser"]: if request.user.is_superuser: signature = signed_response(channel, client) - ...
Fix auth when authenticating for multiple channels of the same class
py
diff --git a/xray/core/indexing.py b/xray/core/indexing.py index <HASH>..<HASH> 100644 --- a/xray/core/indexing.py +++ b/xray/core/indexing.py @@ -44,7 +44,7 @@ def canonicalize_indexer(key, ndim): indexer = np.asarray(indexer) if indexer.ndim == 0: indexer = int(np.asscalar(i...
small refactor to canonicalize_indexer
py
diff --git a/andes/models/__init__.py b/andes/models/__init__.py index <HASH>..<HASH> 100644 --- a/andes/models/__init__.py +++ b/andes/models/__init__.py @@ -19,9 +19,6 @@ non_jits = {'bus': {'Bus': 'Bus'}, 'RLine': 'RLine', 'Ground': 'Ground', },...
Moved VSC to jit class
py
diff --git a/crisp/tracking.py b/crisp/tracking.py index <HASH>..<HASH> 100644 --- a/crisp/tracking.py +++ b/crisp/tracking.py @@ -205,7 +205,7 @@ def track_retrack(image_list, initial_points, max_retrack_distance=0.5, keep_bad # Allowed retracked_ok = np.flatnonzero(retrack_distance <= max_retrack_distance...
Fix tracking bug where indices were calculated wrong Thanks to Darren Xu for finding this bug.
py
diff --git a/colour_runner/result.py b/colour_runner/result.py index <HASH>..<HASH> 100644 --- a/colour_runner/result.py +++ b/colour_runner/result.py @@ -62,7 +62,7 @@ class ColourTextTestResult(result.TestResult): test_class = test.__class__ doc = test_class.__doc__ if self.descriptions and...
Fix empty test description in case of multiline __doc__ We often use multiline class level doc-comments: ```python class TestCalc(TestCase): """ Test calc module. """ ... ``` In this case getClassDescription would return first empty line of the comment and test cases would be displayed without ...
py
diff --git a/backtrader/linebuffer.py b/backtrader/linebuffer.py index <HASH>..<HASH> 100644 --- a/backtrader/linebuffer.py +++ b/backtrader/linebuffer.py @@ -781,7 +781,7 @@ class LinesOperation(LineActions): tz = self._tz for i in range(start, end): - dst[i] = op(num2date(src[i], tz=tz)...
Correct time comparison when running with runonce=True
py
diff --git a/src/transformers/models/bart/modeling_bart.py b/src/transformers/models/bart/modeling_bart.py index <HASH>..<HASH> 100644 --- a/src/transformers/models/bart/modeling_bart.py +++ b/src/transformers/models/bart/modeling_bart.py @@ -72,9 +72,10 @@ def shift_tokens_right(input_ids: torch.Tensor, pad_token_id: ...
Fix Bart Shift (#<I>) * correct mistake in order * fix tensor copy * clone tensor correctly
py
diff --git a/tests/http_server/helpers.py b/tests/http_server/helpers.py index <HASH>..<HASH> 100644 --- a/tests/http_server/helpers.py +++ b/tests/http_server/helpers.py @@ -23,7 +23,7 @@ from six.moves.urllib.parse import urlparse, urlunparse from .structures import CaseInsensitiveDict -ASCII_ART = """ +ASCII_AR...
Fix deprecation warnings due to invalid escape sequences.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,6 @@ setup( zip_safe=True, platforms='any', install_requires=[ - 'Flask', 'injector', + 'Flask', 'injector>=0.7.4', ], )
Require injector >= <I> to install
py
diff --git a/spam_lists/structures.py b/spam_lists/structures.py index <HASH>..<HASH> 100644 --- a/spam_lists/structures.py +++ b/spam_lists/structures.py @@ -62,6 +62,8 @@ class Hostname(name.Name): except AttributeError: return False + is_match = is_subdomain + class IPAddress(object): ...
Add is_match method to host object classes The method is being added to Host and IPAddress classes.
py
diff --git a/isort/isort.py b/isort/isort.py index <HASH>..<HASH> 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -861,6 +861,7 @@ class SortImports(object): continue line = line.replace("\t", " ").replace('import*', 'import *') + line = line.replace(" .import"...
Fix <I> Addresses error recognizing "from .import foo"
py
diff --git a/ginga/gtkw/Widgets.py b/ginga/gtkw/Widgets.py index <HASH>..<HASH> 100644 --- a/ginga/gtkw/Widgets.py +++ b/ginga/gtkw/Widgets.py @@ -415,13 +415,15 @@ class SpinBox(WidgetBase): self.widget.sconnect('value-changed', self._cb_redirect) self.enable_callback('value-changed') + + ...
Fixed gtkw.SpinBox.get_value return type Although it takes a dtype keyword parameter, the gtk SpinBox widget always returns float types. A simple cast in the get_value method makes it more intuitive and more compatible.
py
diff --git a/pyhocon/config_tree.py b/pyhocon/config_tree.py index <HASH>..<HASH> 100644 --- a/pyhocon/config_tree.py +++ b/pyhocon/config_tree.py @@ -9,6 +9,7 @@ try: basestring except NameError: basestring = str + unicode = str import re from pyhocon.exceptions import ConfigException, ConfigWrongTyp...
reassign unicode to str for python3
py
diff --git a/gns3server/compute/iou/iou_vm.py b/gns3server/compute/iou/iou_vm.py index <HASH>..<HASH> 100644 --- a/gns3server/compute/iou/iou_vm.py +++ b/gns3server/compute/iou/iou_vm.py @@ -380,6 +380,8 @@ class IOUVM(BaseNode): if "license" not in config: raise IOUError("License section not foun...
Add warning when using IOU with a hostname length above <I> characters.
py
diff --git a/torf/_utils.py b/torf/_utils.py index <HASH>..<HASH> 100644 --- a/torf/_utils.py +++ b/torf/_utils.py @@ -591,7 +591,7 @@ def download(url, timeout=60): """ if timeout <= 0: raise error.ConnectionError(url, 'Timed out') - elif url.startswith('http'): + elif url.startswith('http://'...
_utils.download(): Add support for https
py
diff --git a/photutils/psf/tests/test_epsf_stars.py b/photutils/psf/tests/test_epsf_stars.py index <HASH>..<HASH> 100644 --- a/photutils/psf/tests/test_epsf_stars.py +++ b/photutils/psf/tests/test_epsf_stars.py @@ -61,6 +61,7 @@ class TestExtractStars: extract_stars([self.nddata, self.nddata], self.stars_t...
Skip tests if scipy is not installed
py
diff --git a/translate/tests/system.py b/translate/tests/system.py index <HASH>..<HASH> 100644 --- a/translate/tests/system.py +++ b/translate/tests/system.py @@ -66,8 +66,10 @@ class TestTranslate(unittest.TestCase): self.assertEqual( translations[1]['detectedSourceLanguage'], 'eo') - se...
Allowing "dank" or "danke" when "dankon" translated from Esperanto to German. (#<I>) This test has been non-deterministic for some reason, e.g.: <URL>
py
diff --git a/io/eolearn/io/processing_api.py b/io/eolearn/io/processing_api.py index <HASH>..<HASH> 100644 --- a/io/eolearn/io/processing_api.py +++ b/io/eolearn/io/processing_api.py @@ -231,12 +231,6 @@ class SentinelHubInputTask(SentinelHubInputBase): self.time_difference = dt.timedelta(seconds=1) if time_di...
removed mosaicking parsing as it was moved to sh-py
py
diff --git a/ppb/sprites.py b/ppb/sprites.py index <HASH>..<HASH> 100644 --- a/ppb/sprites.py +++ b/ppb/sprites.py @@ -251,7 +251,7 @@ class BaseSprite(EventMixin): return self.size / 2 def rotate(self, degrees: Number): - self.facing.rotate(degrees) + self.facing = self.facing.rotate(degr...
sprites.py: Update Sprite.rotate() to actually do something. It was assuming that Vector.rotate() did an in-place mutation, which is not the case.
py
diff --git a/nanoget/version.py b/nanoget/version.py index <HASH>..<HASH> 100644 --- a/nanoget/version.py +++ b/nanoget/version.py @@ -1 +1 @@ -__version__ = "0.10.3" +__version__ = "0.10.4"
bumping version to <I>
py
diff --git a/blockstack_cli_0.14.1/blockstore_client/storage.py b/blockstack_cli_0.14.1/blockstore_client/storage.py index <HASH>..<HASH> 100644 --- a/blockstack_cli_0.14.1/blockstore_client/storage.py +++ b/blockstack_cli_0.14.1/blockstore_client/storage.py @@ -65,10 +65,6 @@ MUTABLE_DATA_SCHEMA = { "sig": schemas...
Remove now-dead flags for replication
py
diff --git a/src/nlpia/constants.py b/src/nlpia/constants.py index <HASH>..<HASH> 100644 --- a/src/nlpia/constants.py +++ b/src/nlpia/constants.py @@ -139,6 +139,7 @@ def mkdir_p(path, exist_ok=True): """ mkdir -p functionality (make intervening directories and ignore existing directories) SEE: https://stac...
Thank you Abhijit Mustafi for catching this bug and sharing it on Manning's Livebook comments.
py
diff --git a/botstory/ast/story_context/reducers.py b/botstory/ast/story_context/reducers.py index <HASH>..<HASH> 100644 --- a/botstory/ast/story_context/reducers.py +++ b/botstory/ast/story_context/reducers.py @@ -65,7 +65,6 @@ def iterate_storyline(ctx): yield ctx_child -# TODO: should make it immutable ...
do not mutate stack on making one step further on scope_in
py
diff --git a/belpy/statements.py b/belpy/statements.py index <HASH>..<HASH> 100644 --- a/belpy/statements.py +++ b/belpy/statements.py @@ -83,12 +83,18 @@ class Phosphorylation(Modification): sub = model.monomers[self.sub_name] site = site_name(self) - r = Rule('%s_phospho_%s_%s' % - ...
Catch duplicate Phosphorylation rules in assembly
py
diff --git a/marionette_tg/multiplexer.py b/marionette_tg/multiplexer.py index <HASH>..<HASH> 100644 --- a/marionette_tg/multiplexer.py +++ b/marionette_tg/multiplexer.py @@ -6,6 +6,7 @@ import threading import heapq from twisted.internet import reactor +from twisted.python import log import marionette_tg.record...
Adding logging for debug purposes to en/de-queue functions.
py
diff --git a/benchexec/model.py b/benchexec/model.py index <HASH>..<HASH> 100644 --- a/benchexec/model.py +++ b/benchexec/model.py @@ -680,8 +680,8 @@ class Run(object): elif key == 'memory': self.values['memUsage'] = value elif key == 'energy': - for ekey, eval...
Adjust reading energy to new dict structure in model.py
py
diff --git a/salt/states/pkg.py b/salt/states/pkg.py index <HASH>..<HASH> 100644 --- a/salt/states/pkg.py +++ b/salt/states/pkg.py @@ -872,8 +872,8 @@ def installed( # Remove any targets not returned by _find_install_targets if pkgs: - pkgs = [dict([(x, y)]) for x, y in list(targets.items())] - ...
List call not needed. Changing it back to what it was
py
diff --git a/course.py b/course.py index <HASH>..<HASH> 100644 --- a/course.py +++ b/course.py @@ -12,7 +12,8 @@ class Course(CanvasObject): 'courses/%s' % (self.id), event="conclude" ) - return response + response_json = response.json() + return response_json.get...
conclude and delete now return a boolean
py
diff --git a/ndb/blobstore_test.py b/ndb/blobstore_test.py index <HASH>..<HASH> 100644 --- a/ndb/blobstore_test.py +++ b/ndb/blobstore_test.py @@ -196,6 +196,24 @@ class BlobstoreTests(test_utils.NDBTest): md5_hash='xxx', size=42)) + def testBlobstore_FetchData(sel...
Coverage for fetch_data[_async].
py
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py index <HASH>..<HASH> 100644 --- a/python/ccxt/base/exchange.py +++ b/python/ccxt/base/exchange.py @@ -153,6 +153,7 @@ class Exchange(object): '521': ExchangeNotAvailable, '522': ExchangeNotAvailable, '525': ExchangeNotAv...
added http code <I> handling for intermittent https connectivity errors to exchange.py
py
diff --git a/bcbio/variation/population.py b/bcbio/variation/population.py index <HASH>..<HASH> 100644 --- a/bcbio/variation/population.py +++ b/bcbio/variation/population.py @@ -51,7 +51,8 @@ def create_gemini_db(gemini_vcf, data, gemini_db=None, ped_file=None): ann_file = vcfanno.run_vcfanno(gemini_vcf, "gem...
added expand flag to vcf2db command
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -15,7 +15,11 @@ with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ - # TODO: put package requirements here + "boto3", + "click", + "jinja2", + # "lxml", # Even if w...
[FIX] Dependencies were broken.
py
diff --git a/instana/instrumentation/urllib3.py b/instana/instrumentation/urllib3.py index <HASH>..<HASH> 100644 --- a/instana/instrumentation/urllib3.py +++ b/instana/instrumentation/urllib3.py @@ -10,13 +10,14 @@ try: import urllib3 # noqa def collect(instance, args, kwargs): + """ Build and return...
Add more safeties in KV collection & processing
py
diff --git a/tensorflow_datasets/image/deep_weeds.py b/tensorflow_datasets/image/deep_weeds.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/image/deep_weeds.py +++ b/tensorflow_datasets/image/deep_weeds.py @@ -88,6 +88,7 @@ class DeepWeeds(tfds.core.GeneratorBasedBuilder): "label": tfds.features.C...
re-adding missing homepage of author
py
diff --git a/isochrones/grid.py b/isochrones/grid.py index <HASH>..<HASH> 100644 --- a/isochrones/grid.py +++ b/isochrones/grid.py @@ -121,8 +121,7 @@ class ModelGrid(object): n_nan = np.isnan(col).sum() if n_nan > 0: logging.debug('{} NANs in {} column'.format(n_nan, b)) - ...
Build dataframe to assign new columns the pandas way by index, rather than raw values.
py
diff --git a/simplekv/decorator.py b/simplekv/decorator.py index <HASH>..<HASH> 100644 --- a/simplekv/decorator.py +++ b/simplekv/decorator.py @@ -1,8 +1,6 @@ #!/usr/bin/env python # coding=utf8 -from six.moves import map - class StoreDecorator(object): """Base class for store decorators. @@ -41,7 +39,7 @@ ...
Instead of using map, use generator expression.
py
diff --git a/battlenet/connection.py b/battlenet/connection.py index <HASH>..<HASH> 100644 --- a/battlenet/connection.py +++ b/battlenet/connection.py @@ -7,7 +7,7 @@ import time import urlparse from .things import Character, Realm, Guild, Reward, Perk, Class, Race from .exceptions import APIError, CharacterNotFound...
Sometimes, it seems that we have more than one answer. Just limit the answer to the wanted one in all cases.
py
diff --git a/python/ray/experimental/sgd/param_server.py b/python/ray/experimental/sgd/param_server.py index <HASH>..<HASH> 100644 --- a/python/ray/experimental/sgd/param_server.py +++ b/python/ray/experimental/sgd/param_server.py @@ -67,6 +67,7 @@ class ParameterServer(object): client = ray.worker.global_work...
Average aggregated gradients before put in plasma store (#<I>)
py
diff --git a/vr/runners/base.py b/vr/runners/base.py index <HASH>..<HASH> 100644 --- a/vr/runners/base.py +++ b/vr/runners/base.py @@ -242,9 +242,10 @@ class BaseRunner(object): uptest.lock = __close_file def teardown(self): - # Everything should have been put in the proc path, so delete that. - ...
Replace comments with more concise docstring.
py
diff --git a/digitalocean/Droplet.py b/digitalocean/Droplet.py index <HASH>..<HASH> 100644 --- a/digitalocean/Droplet.py +++ b/digitalocean/Droplet.py @@ -331,3 +331,6 @@ class Droplet(BaseAPI): data = self.get_data(data[u'links'][u'pages'].get(u'next')) return kernels + + def __str__(sel...
The domain should return the ID and the name when used as string.
py
diff --git a/master/buildbot/changes/p4poller.py b/master/buildbot/changes/p4poller.py index <HASH>..<HASH> 100644 --- a/master/buildbot/changes/p4poller.py +++ b/master/buildbot/changes/p4poller.py @@ -49,7 +49,7 @@ class P4Source(base.PollingChangeSource, util.ComparableMixin): "p4bin", "pollInt...
fix ticket <I>. P4Poller was not propagating the PATH from the user who starts the buildbot master. PATH has been added to the short list of environment variables propagated when calling p4 to get changes
py
diff --git a/openquake/commands/dbserver.py b/openquake/commands/dbserver.py index <HASH>..<HASH> 100644 --- a/openquake/commands/dbserver.py +++ b/openquake/commands/dbserver.py @@ -30,7 +30,7 @@ def dbserver(cmd): """ start/stop/restart the database server, or return its status """ - if config.get('...
Fix a typo in the dbserver command
py
diff --git a/tests/tests.py b/tests/tests.py index <HASH>..<HASH> 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -11,7 +11,7 @@ if sys.version_info >= (3, 0): from tests.cases import RemoteTestCase else: from urllib2 import urlopen - from .cases import RemoteTestCase + from cases import RemoteTest...
don't use relative imports in tests
py
diff --git a/djangocms_blog/models.py b/djangocms_blog/models.py index <HASH>..<HASH> 100644 --- a/djangocms_blog/models.py +++ b/djangocms_blog/models.py @@ -233,7 +233,7 @@ class Post(SortableMixin, KnockerModel, ModelMeta, TranslatableModel): get_latest_by = 'date_published' def __str__(self): - ...
fixed related field issue when topic has not translations for other language
py
diff --git a/faker/providers/internet/__init__.py b/faker/providers/internet/__init__.py index <HASH>..<HASH> 100644 --- a/faker/providers/internet/__init__.py +++ b/faker/providers/internet/__init__.py @@ -111,8 +111,6 @@ class Provider(BaseProvider): '{{url}}{{uri_path}}/{{uri_page}}{{uri_extension}}', ...
Remove dead url from image_placeholder_services (#<I>) Looks like placeholdit.imgix.net is no longer working, so remove it from code.
py
diff --git a/pypika/__init__.py b/pypika/__init__.py index <HASH>..<HASH> 100644 --- a/pypika/__init__.py +++ b/pypika/__init__.py @@ -38,4 +38,4 @@ from .utils import JoinException, GroupingException, CaseException, UnionExcepti __author__ = "Timothy Heys" __email__ = "theys@kayak.com" -__version__ = "0.2.3" +__ve...
Bumped version to <I>
py
diff --git a/moto/rds2/models.py b/moto/rds2/models.py index <HASH>..<HASH> 100644 --- a/moto/rds2/models.py +++ b/moto/rds2/models.py @@ -1083,7 +1083,8 @@ class RDS2Backend(BaseBackend): if resource_name in self.security_groups: return self.security_groups[resource_name].remove_t...
allow for adding and removing tags on rds snapshots
py
diff --git a/pyrogram/connection/connection.py b/pyrogram/connection/connection.py index <HASH>..<HASH> 100644 --- a/pyrogram/connection/connection.py +++ b/pyrogram/connection/connection.py @@ -54,7 +54,7 @@ class Connection: log.info("Connecting...") await self.protocol.connect(self....
Add more verbose error in case of network issues
py
diff --git a/src/app/drivers/pycolator/splitmerge.py b/src/app/drivers/pycolator/splitmerge.py index <HASH>..<HASH> 100644 --- a/src/app/drivers/pycolator/splitmerge.py +++ b/src/app/drivers/pycolator/splitmerge.py @@ -40,7 +40,9 @@ class SplitTDDriver(SplitDriver): class SplitProteinDriver(SplitDriver): comman...
Fixed helptext which was boilerplate copy
py
diff --git a/openquake/calculators/hazard/disagg/core.py b/openquake/calculators/hazard/disagg/core.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/hazard/disagg/core.py +++ b/openquake/calculators/hazard/disagg/core.py @@ -18,6 +18,7 @@ Disaggregation calculator core functionality """ +import math impo...
calcs/hazard/disagg/core: Disagg calc now records all jobs stats during pre-execute.
py
diff --git a/dddp/accounts/ddp.py b/dddp/accounts/ddp.py index <HASH>..<HASH> 100644 --- a/dddp/accounts/ddp.py +++ b/dddp/accounts/ddp.py @@ -190,7 +190,7 @@ class Auth(APIMixin): # collection not included pre-auth, everything is added. pass for obj in qs: - ...
Fix bug in post login/logout subscription handling.
py
diff --git a/anyconfig/cli.py b/anyconfig/cli.py index <HASH>..<HASH> 100644 --- a/anyconfig/cli.py +++ b/anyconfig/cli.py @@ -17,6 +17,7 @@ import anyconfig.api as A import anyconfig.compat import anyconfig.globals import anyconfig.mergeabledict +import anyconfig.parser _ENCODING = locale.getdefaultlocale()[1]...
cli: fix a bug that values set by --set option are not parsed and processed as strings
py
diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index <HASH>..<HASH> 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -60,6 +60,18 @@ class TestDistribution: "*1 skipped*", ]) + def test_manytests_to_one_import_error(self, testdir): + p1 ...
Added an additional test for import errors in --tx mode.
py
diff --git a/alerta/app/database/mongo.py b/alerta/app/database/mongo.py index <HASH>..<HASH> 100644 --- a/alerta/app/database/mongo.py +++ b/alerta/app/database/mongo.py @@ -45,7 +45,7 @@ class Database(object): if 'MONGO_PORT' in os.environ and 'tcp://' in os.environ['MONGO_PORT']: # Docker h...
Docker MongoDB has leading slash on MONGO_NAME
py
diff --git a/slither/detectors/shadowing/builtin_symbols.py b/slither/detectors/shadowing/builtin_symbols.py index <HASH>..<HASH> 100644 --- a/slither/detectors/shadowing/builtin_symbols.py +++ b/slither/detectors/shadowing/builtin_symbols.py @@ -50,7 +50,7 @@ contract Bug { BUILTIN_SYMBOLS = ["assert", "require",...
Add fallback/receive as shadowed builtin
py
diff --git a/mixins.py b/mixins.py index <HASH>..<HASH> 100755 --- a/mixins.py +++ b/mixins.py @@ -122,6 +122,9 @@ class AutoHashMixin(object): return super(AutoHashMixin, self).save(**kwargs) +# a URL pattern fragment to match hashes +AUTOHASH_URL_PATTERN = r'[-_0-9A-Za-z]{43}' + # LoginMixin # # Logg...
Include hash regex to make URL-pattern building easier.
py
diff --git a/src/setup.py b/src/setup.py index <HASH>..<HASH> 100644 --- a/src/setup.py +++ b/src/setup.py @@ -22,10 +22,10 @@ setup( description='Moment Expansion Approximation method implementation with simulation and inference packages', long_description=open('README.txt').read(), install_requires=[ -...
increased minimal versions of packages to the ones in the university environment
py
diff --git a/backtrader/strategy.py b/backtrader/strategy.py index <HASH>..<HASH> 100644 --- a/backtrader/strategy.py +++ b/backtrader/strategy.py @@ -497,11 +497,13 @@ class Strategy(with_metaclass(MetaStrategy, StrategyBase)): size = abs(size or possize) if possize > 0: - return self.se...
Correct method close of strategy by using kwargs which was not taking into account the existence of a plimit parameter in methods buy/sell and would pass the execution type as plimit
py
diff --git a/pgmpy/readwrite/XMLBIF.py b/pgmpy/readwrite/XMLBIF.py index <HASH>..<HASH> 100644 --- a/pgmpy/readwrite/XMLBIF.py +++ b/pgmpy/readwrite/XMLBIF.py @@ -2,6 +2,7 @@ from io import BytesIO +import pyparsing as pp # TODO input and output state @@ -327,7 +328,7 @@ class XMLBIFWriter(object): n...
switches to using pyparsing
py
diff --git a/geomdl/utilities.py b/geomdl/utilities.py index <HASH>..<HASH> 100644 --- a/geomdl/utilities.py +++ b/geomdl/utilities.py @@ -589,6 +589,21 @@ def triangle_normal(tri): return vector_cross(vec1, vec2) +def triangle_center(tri): + """ Computes the center of mass of the input triangle. + + :pa...
Initial commit of utilities.triangle_center function
py