diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -15,6 +15,8 @@ import sys import os +from psiturk.version import version_number + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If t...
import version number from psiturk
py
diff --git a/xmantissa/webapp.py b/xmantissa/webapp.py index <HASH>..<HASH> 100644 --- a/xmantissa/webapp.py +++ b/xmantissa/webapp.py @@ -401,7 +401,7 @@ def upgradePrivateApplication1To2(oldApp): privateKey=oldApp.privateKey, privateIndexPage=oldApp.privateIndexPage) newApp.installedOn.findOrCr...
remove prefixURL assignment in CustomizedPublicPage's installation
py
diff --git a/angr/analyses/reaching_definitions/atoms.py b/angr/analyses/reaching_definitions/atoms.py index <HASH>..<HASH> 100644 --- a/angr/analyses/reaching_definitions/atoms.py +++ b/angr/analyses/reaching_definitions/atoms.py @@ -1,4 +1,5 @@ -class Atom(object): + +class Atom: def __init__(self): pas...
Atom: Remove the unnecessary (object) base class.
py
diff --git a/examples/webhook_examples/webhook_cherrypy_echo_bot.py b/examples/webhook_examples/webhook_cherrypy_echo_bot.py index <HASH>..<HASH> 100644 --- a/examples/webhook_examples/webhook_cherrypy_echo_bot.py +++ b/examples/webhook_examples/webhook_cherrypy_echo_bot.py @@ -46,7 +46,7 @@ class WebhookServer(object)...
Changed "Process_new_message" to "Process_new_update" This way all types of queries (Message, Inline query, Callback query) are supported.
py
diff --git a/salt/modules/mine.py b/salt/modules/mine.py index <HASH>..<HASH> 100644 --- a/salt/modules/mine.py +++ b/salt/modules/mine.py @@ -17,9 +17,9 @@ def _auth(): ''' Return the auth object ''' - if not 'mine.auth' in __context__: - __context__['mine.auth'] = salt.crypt.SAuth(__opts__) -...
Store auth object in a standard place so it can be shared
py
diff --git a/shinken/objects/item.py b/shinken/objects/item.py index <HASH>..<HASH> 100644 --- a/shinken/objects/item.py +++ b/shinken/objects/item.py @@ -118,7 +118,7 @@ class Item(object): (key, cls.__name__) self.configuration_warnings.append(warning) ...
Enh: Catch ValueError while parsing conf #<I>
py
diff --git a/saltapi/__init__.py b/saltapi/__init__.py index <HASH>..<HASH> 100644 --- a/saltapi/__init__.py +++ b/saltapi/__init__.py @@ -9,7 +9,7 @@ import salt.client import salt.runner import salt.wheel import salt.utils -from salt.exceptions import SaltException +from salt.exceptions import SaltException, Eauth...
Added a central check so that Salt's eauth is always run
py
diff --git a/wavefront_client/apis/events_api.py b/wavefront_client/apis/events_api.py index <HASH>..<HASH> 100644 --- a/wavefront_client/apis/events_api.py +++ b/wavefront_client/apis/events_api.py @@ -114,7 +114,7 @@ class EventsApi(object): # HTTP header `Content-Type` header_params['Content-Type...
fixing the Content-Type to formdata for events api
py
diff --git a/binstar_client/commands/upload.py b/binstar_client/commands/upload.py index <HASH>..<HASH> 100644 --- a/binstar_client/commands/upload.py +++ b/binstar_client/commands/upload.py @@ -20,6 +20,11 @@ import json import logging import sys +try: + input = raw_input +except NameError: + input = input ...
And one more raw_input found.
py
diff --git a/ldap_sync/callbacks.py b/ldap_sync/callbacks.py index <HASH>..<HASH> 100644 --- a/ldap_sync/callbacks.py +++ b/ldap_sync/callbacks.py @@ -1,8 +1,30 @@ +def user_active_directory_deactivate(user, attributes, created, updated): + """ + Deactivate user accounts based on Active Directory's + userAccou...
Add callback to disable users by AD userAccountControl flags
py
diff --git a/dql/throttle.py b/dql/throttle.py index <HASH>..<HASH> 100644 --- a/dql/throttle.py +++ b/dql/throttle.py @@ -55,7 +55,7 @@ class TableLimits(object): kwargs["total_write"] = float(self.total["write"]) return RateLimit(**kwargs) - def __nonzero__(self): + def __bool__(self): ...
throttle: fix Python 3 compatibility On Python 3, dql is always performing a "describe all" due to throttle not being falsy.
py
diff --git a/vespa/populations.py b/vespa/populations.py index <HASH>..<HASH> 100644 --- a/vespa/populations.py +++ b/vespa/populations.py @@ -72,7 +72,7 @@ SHORT_MODELNAMES = {'Planets':'pl', INV_SHORT_MODELNAMES = {v:k for k,v in SHORT_MODELNAMES.iteritems()} DEFAULT_MODELS = ['beb','heb','eb', -# ...
put Px2 back in default models
py
diff --git a/notario/engine.py b/notario/engine.py index <HASH>..<HASH> 100644 --- a/notario/engine.py +++ b/notario/engine.py @@ -1,3 +1,4 @@ +import sys from notario.exceptions import Invalid, SchemaError from notario.utils import is_callable @@ -153,7 +154,8 @@ def enforce(data_item, schema_item, tree, pair): ...
working around the `as error` on exceptions
py
diff --git a/salt/loader.py b/salt/loader.py index <HASH>..<HASH> 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -1629,7 +1629,11 @@ class LazyLoader(salt.utils.lazy.LazyDict): return True # if the modulename isn't in the whitelist, don't bother if self.whitelist and mod_...
Add error logging when whitelist lookup fails Rather than just raising a bare KeyError with no additional information, this raises a proper KeyError with the key that failed to be looked up. It also logs the key that failed to load, as well as the whitelist, to aid in troubleshooting.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ install_requires = [ 'Django>=1.11,<2.0', 'django-cas-ng==3.5.8', 'django-el-pagination==3.1.0', - 'django-extensions', + 'django-extensions>=1,<2', 'django-google-analytics-app==4.2.0'...
Pin version of django-extensions Something in django-extensions 2 has changed which breaks our build. We should not use it yet.
py
diff --git a/runtime/python-core/quark_runtime.py b/runtime/python-core/quark_runtime.py index <HASH>..<HASH> 100644 --- a/runtime/python-core/quark_runtime.py +++ b/runtime/python-core/quark_runtime.py @@ -32,6 +32,7 @@ def _println(obj): sys.stdout.write(u"null\n".encode("utf8")) else: sys.stdo...
Flush stdout on each quark print
py
diff --git a/perform_test.py b/perform_test.py index <HASH>..<HASH> 100644 --- a/perform_test.py +++ b/perform_test.py @@ -51,7 +51,8 @@ class TestPerform(unittest.TestCase): self.assertEqual(echo("Hello"), "Hello") def test_return_object_underscore(self): - pass + self.assertEqual(perform...
added test for underscore+return_object
py
diff --git a/mapchete/io_utils.py b/mapchete/io_utils.py index <HASH>..<HASH> 100644 --- a/mapchete/io_utils.py +++ b/mapchete/io_utils.py @@ -216,8 +216,8 @@ class RasterProcessTile(object): ) tile_geotransform = (left, px_size, 0.0, top, 0.0, -px_size) out_meta.update( - widt...
fixing wrong width & height values if pixelbuffer was given
py
diff --git a/geocoder/cli.py b/geocoder/cli.py index <HASH>..<HASH> 100755 --- a/geocoder/cli.py +++ b/geocoder/cli.py @@ -62,9 +62,6 @@ def cli(location, **kwargs): # Geocode results from user input for location in locations: g = geocoder.get(location.strip(), **kwargs) - print(kwargs['output...
Uuuups forgot to clean up after debugging
py
diff --git a/tests/integration/test_requests.py b/tests/integration/test_requests.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_requests.py +++ b/tests/integration/test_requests.py @@ -44,6 +44,15 @@ def test_body(tmpdir, scheme): with vcr.use_cassette(str(tmpdir.join('body.yaml'))): assert ...
Requests actually stores redirected request
py
diff --git a/satpy/readers/clavrx.py b/satpy/readers/clavrx.py index <HASH>..<HASH> 100644 --- a/satpy/readers/clavrx.py +++ b/satpy/readers/clavrx.py @@ -354,7 +354,7 @@ class CLAVRXHDF4FileHandler(HDF4FileHandler, _CLAVRxHelper): l1b_att, inst_att = (str(self.file_content.get('/attr/L1B', None)), ...
Update check for is_polar to account for GOES data. (So that GOES data does not get flagged as a polar swath)
py
diff --git a/src/rammbock/Decoder.py b/src/rammbock/Decoder.py index <HASH>..<HASH> 100644 --- a/src/rammbock/Decoder.py +++ b/src/rammbock/Decoder.py @@ -9,11 +9,4 @@ def _get_headers_from_list(message, all_headers): message.header.append(['Request Version', all_headers[2]]) def _get_ies_from_list(message, spl...
refactored get ies function
py
diff --git a/dispatch/api/serializers.py b/dispatch/api/serializers.py index <HASH>..<HASH> 100644 --- a/dispatch/api/serializers.py +++ b/dispatch/api/serializers.py @@ -588,10 +588,6 @@ class SubsectionSerializer(DispatchModelSerializer): # Save instance before processing/saving content in order to save asso...
remove unused featured image code for subsections
py
diff --git a/theanets/graph.py b/theanets/graph.py index <HASH>..<HASH> 100644 --- a/theanets/graph.py +++ b/theanets/graph.py @@ -362,6 +362,7 @@ class Network(object): def add(s): h.update(str(s).encode('utf-8')) h = hashlib.md5() + add(self.loss.__class__.__name__) # Se...
Incorporate the loss in our graph hash.
py
diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/format.py +++ b/pylint/checkers/format.py @@ -1052,7 +1052,7 @@ class FormatChecker(BaseTokenChecker): line = stripped_line mobj = OPTION_RGX.search(line) if mo...
Use partition to not get a ValueError. Close #<I>
py
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/models.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/models.py index <HASH>..<HASH> 100644 --- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/models.py +++ b/datadog_checks_dev/datadog_checks/dev/tooli...
Handle case where a file does not have a license header (#<I>)
py
diff --git a/pyout/field.py b/pyout/field.py index <HASH>..<HASH> 100644 --- a/pyout/field.py +++ b/pyout/field.py @@ -217,13 +217,13 @@ class StyleProcessors(object): ("underline", bool), ("color", str)] - def render(self, key, value): + def render(self, style_attr, value)...
field: Rename and clarify render's 'key' parameter Describing this parameter as a style "key" is confusing because there are two types of keys: those with values that are boolean switches ("bold", "underline") and those with a set of values (currently only "colors"). For "color", the style value (e.g., "blue") actual...
py
diff --git a/fades/file_options.py b/fades/file_options.py index <HASH>..<HASH> 100644 --- a/fades/file_options.py +++ b/fades/file_options.py @@ -17,6 +17,7 @@ """Parse fades options from config files.""" import logging +import os from configparser import ConfigParser, NoSectionError @@ -24,7 +25,7 @@ from fa...
correct path to user level fades.ini
py
diff --git a/src/ocrmypdf/leptonica.py b/src/ocrmypdf/leptonica.py index <HASH>..<HASH> 100644 --- a/src/ocrmypdf/leptonica.py +++ b/src/ocrmypdf/leptonica.py @@ -567,6 +567,8 @@ class Pix(LeptonicaObject): with _LeptonicaErrorTrap(): pix = Pix(lept.pixConvertTo8(self._cdata, 0)) ...
leptonica: delete file junkpixt.png if created
py
diff --git a/budget/data.py b/budget/data.py index <HASH>..<HASH> 100644 --- a/budget/data.py +++ b/budget/data.py @@ -7,9 +7,9 @@ class Data(): # Database location home = os.path.expanduser("~") local_path = home + '/.local/share/budget' - #db_path = local_path + '/budget.db' + db_path = local_pat...
Replaced dev db with live db reference Also, closes #<I>
py
diff --git a/oauth/oauth.py b/oauth/oauth.py index <HASH>..<HASH> 100644 --- a/oauth/oauth.py +++ b/oauth/oauth.py @@ -125,7 +125,7 @@ class OAuthRequest(object): # add the oauth parameters if self.parameters: for k, v in self.parameters.iteritems(): - auth_header += ',\n\t...
removed return/tab from the oauth header since it was fucking up python BaseHttpServer parsing git-svn-id: <URL>
py
diff --git a/master/buildbot/db/migrate/versions/001_initial.py b/master/buildbot/db/migrate/versions/001_initial.py index <HASH>..<HASH> 100644 --- a/master/buildbot/db/migrate/versions/001_initial.py +++ b/master/buildbot/db/migrate/versions/001_initial.py @@ -232,9 +232,8 @@ def import_changes(migrate_engine): ...
don't populate change_links in db version 1 This table and its contents are dropped in version <I>, so there's no sense inserting into it during upgrades.
py
diff --git a/trimesh/exchange/ply.py b/trimesh/exchange/ply.py index <HASH>..<HASH> 100644 --- a/trimesh/exchange/ply.py +++ b/trimesh/exchange/ply.py @@ -640,9 +640,14 @@ def load_element_different(properties, data): element_data[name].append(row[start:end].astype(dt)) # start next property a...
fix ragged sequence warning in PLY files
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( package_data={'': ['schemata/*.json', 'schemata/namespaces/*.json', 'schemata/namespaces/*/*.json']}, - long_description="""A python module for audi...
fixing a typo in setup.py description field
py
diff --git a/abutils/utils/alignment.py b/abutils/utils/alignment.py index <HASH>..<HASH> 100644 --- a/abutils/utils/alignment.py +++ b/abutils/utils/alignment.py @@ -827,8 +827,8 @@ class NWAlignment(BaseAlignment): def _get_matrix_file(self, match=None, mismatch=None, matrix=None): matrix_dir = os.path....
fix global_alignment scoring when providing an alignment matrix
py
diff --git a/host/butterknife/pool.py b/host/butterknife/pool.py index <HASH>..<HASH> 100644 --- a/host/butterknife/pool.py +++ b/host/butterknife/pool.py @@ -7,7 +7,7 @@ from datetime import datetime from butterknife.fssum import generate_manifest from butterknife.subvol import Subvol -BTRFS = "/sbin/btrfs" +BTRFS...
Rely on btrfs provided by $PATH
py
diff --git a/src/bio2bel/abstractmanager.py b/src/bio2bel/abstractmanager.py index <HASH>..<HASH> 100644 --- a/src/bio2bel/abstractmanager.py +++ b/src/bio2bel/abstractmanager.py @@ -36,8 +36,7 @@ class AbstractManagerMeta(ABCMeta): cls._populate_original(self, *populate_args, **populate_kwargs) ...
Remove redundant code This is already written as a function, so we might as well use it
py
diff --git a/pyrogram/client/methods/messages/send_sticker.py b/pyrogram/client/methods/messages/send_sticker.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/methods/messages/send_sticker.py +++ b/pyrogram/client/methods/messages/send_sticker.py @@ -134,7 +134,7 @@ class SendSticker(BaseClient): elif ...
Fix TypeError in send_sticker
py
diff --git a/securesystemslib/gpg/common.py b/securesystemslib/gpg/common.py index <HASH>..<HASH> 100644 --- a/securesystemslib/gpg/common.py +++ b/securesystemslib/gpg/common.py @@ -416,8 +416,8 @@ def _get_verified_subkeys(bundle): None. <Returns> - A list of public keys, each in the format - in_toto....
Fix _get_verified subkeys docstring and test The function returns a dict of pubkeys, not a list or an ordered dict.
py
diff --git a/tests/test_knapsack.py b/tests/test_knapsack.py index <HASH>..<HASH> 100644 --- a/tests/test_knapsack.py +++ b/tests/test_knapsack.py @@ -40,7 +40,6 @@ def test_knapsack(): solution = s.getBestSol() # print solution - print() varSolutions = [] for i in range(len(weights)): ...
make test_knapsack run outside py.test
py
diff --git a/source/rafcon/gui/start.py b/source/rafcon/gui/start.py index <HASH>..<HASH> 100755 --- a/source/rafcon/gui/start.py +++ b/source/rafcon/gui/start.py @@ -379,6 +379,9 @@ def main(): if core_singletons.state_machine_execution_engine.status.execution_mode == StateMachineExecutionStatus.STARTED: ...
feat(start): add core only signal handlers after closing gui with sm running
py
diff --git a/docido_sdk/env.py b/docido_sdk/env.py index <HASH>..<HASH> 100644 --- a/docido_sdk/env.py +++ b/docido_sdk/env.py @@ -18,6 +18,20 @@ class Environment(Component, ComponentManager): """ component.env = self + def get_index_api(self, service, user_id, account_login): + """Provid...
New member method in env to get IndexAPI
py
diff --git a/dramatiq/middleware/time_limit.py b/dramatiq/middleware/time_limit.py index <HASH>..<HASH> 100644 --- a/dramatiq/middleware/time_limit.py +++ b/dramatiq/middleware/time_limit.py @@ -16,7 +16,7 @@ class TimeLimitExceeded(BaseException): their limits. This is intentionally *not* a subclass of Dra...
refactor: drop after_process_message from TimeLimit
py
diff --git a/odnoklassniki/api.py b/odnoklassniki/api.py index <HASH>..<HASH> 100644 --- a/odnoklassniki/api.py +++ b/odnoklassniki/api.py @@ -112,7 +112,8 @@ class _API(object): params.update(kwargs) sig = self._signature(params) params['sig'] = sig - params['access_token'] = self.tok...
OK API have "without-session" methods (for example notifications.sendSimple), they must be called without access_token param, even empty
py
diff --git a/pyout/tests/test_elements.py b/pyout/tests/test_elements.py index <HASH>..<HASH> 100644 --- a/pyout/tests/test_elements.py +++ b/pyout/tests/test_elements.py @@ -43,6 +43,11 @@ def test_adopt(): def test_validate_error(): + try: + import jsonschema + except ImportError: + pytest.sk...
TST: Skip test_validate_error when jsonschema isn't installed The "no jsonschema" case is tested on travis as of #<I>.
py
diff --git a/grimoire_elk/elk/mbox.py b/grimoire_elk/elk/mbox.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/elk/mbox.py +++ b/grimoire_elk/elk/mbox.py @@ -105,9 +105,10 @@ class MBoxEnrich(Enrich): def get_project_repository(self, eitem): mls_list = eitem['origin'] - # Eclipse specific yet - ...
[enrich][mbox] Update the eclipse archives location so the project of a mailing lists can be found in projects.json
py
diff --git a/libplanarradpy/planrad.py b/libplanarradpy/planrad.py index <HASH>..<HASH> 100644 --- a/libplanarradpy/planrad.py +++ b/libplanarradpy/planrad.py @@ -567,12 +567,13 @@ class BatchRun(): else: lg.info('No sky_tool generated file, generating one') #try: - inp_fil...
Updated the logging details to help find bug
py
diff --git a/src/pipeline/phase.py b/src/pipeline/phase.py index <HASH>..<HASH> 100644 --- a/src/pipeline/phase.py +++ b/src/pipeline/phase.py @@ -88,18 +88,24 @@ class Phase(object): return self.optimizer.variable class Analysis(object): - def __init__(self, **kwargs): + def __init__(self...
explicit args rather than kwargs
py
diff --git a/pyethereum/apiserver.py b/pyethereum/apiserver.py index <HASH>..<HASH> 100644 --- a/pyethereum/apiserver.py +++ b/pyethereum/apiserver.py @@ -12,7 +12,7 @@ import pyethereum.signals as signals from pyethereum.transactions import Transaction logger = logging.getLogger(__name__) -base_url = '/api/v0alpha...
changed: api version and the url
py
diff --git a/anchorhub/writer.py b/anchorhub/writer.py index <HASH>..<HASH> 100644 --- a/anchorhub/writer.py +++ b/anchorhub/writer.py @@ -96,7 +96,7 @@ class Writer(object): """ f = open(file_path, 'wb') for i in range(len(lines)): - if sys.version >= (3,1): + if sys.ve...
Fix version => version_writer type
py
diff --git a/tests/unit/modules/test_state.py b/tests/unit/modules/test_state.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/test_state.py +++ b/tests/unit/modules/test_state.py @@ -1005,3 +1005,17 @@ class StateTestCase(TestCase, LoaderModuleMockMixin): ({'force': False}, er...
Add unit test for _get_pillar_errors when both external and internal pillars contains errors
py
diff --git a/eulfedora/xml.py b/eulfedora/xml.py index <HASH>..<HASH> 100644 --- a/eulfedora/xml.py +++ b/eulfedora/xml.py @@ -170,8 +170,10 @@ class DatastreamProfile(_FedoraBase): class NewPids(_FedoraBase): """:class:`~eulxml.xmlmap.XmlObject` for a list of pids as returned by :meth:`REST_API.getNextPID`....
update getNextPid xml object to support response with or without namespace
py
diff --git a/azure/storage/blob/models.py b/azure/storage/blob/models.py index <HASH>..<HASH> 100644 --- a/azure/storage/blob/models.py +++ b/azure/storage/blob/models.py @@ -239,9 +239,10 @@ class LeaseProperties(object): :ivar str status: The lease status of the blob. + Possible values: loc...
Updated documentation for LeaseProperties
py
diff --git a/glances/core/glances_main.py b/glances/core/glances_main.py index <HASH>..<HASH> 100644 --- a/glances/core/glances_main.py +++ b/glances/core/glances_main.py @@ -235,7 +235,7 @@ Start the client browser (browser mode):\n\ confirm=True) elif args.webserver: ...
First try of basic auth on the web server (add the user name) (issue #<I>)
py
diff --git a/crispy_forms/utils.py b/crispy_forms/utils.py index <HASH>..<HASH> 100644 --- a/crispy_forms/utils.py +++ b/crispy_forms/utils.py @@ -135,8 +135,7 @@ def render_field( # noqa: C901 if extra_context is not None: context.update(extra_context) - context = context.fl...
Avoided variable assignment in utils.py (#<I>)
py
diff --git a/openquake/server/views.py b/openquake/server/views.py index <HASH>..<HASH> 100644 --- a/openquake/server/views.py +++ b/openquake/server/views.py @@ -49,7 +49,7 @@ from django.shortcuts import render from openquake.baselib import datastore from openquake.baselib.general import groupby, writetmp -from o...
Fix in server.views.extract
py
diff --git a/crosscat/utils/general_utils.py b/crosscat/utils/general_utils.py index <HASH>..<HASH> 100644 --- a/crosscat/utils/general_utils.py +++ b/crosscat/utils/general_utils.py @@ -22,6 +22,8 @@ import inspect from timeit import default_timer import datetime import random +import multiprocessing + class Tim...
add MapperContext handles generating a multiprocessing.Pool and closing it when done
py
diff --git a/zinnia/management/commands/wp2zinnia.py b/zinnia/management/commands/wp2zinnia.py index <HASH>..<HASH> 100644 --- a/zinnia/management/commands/wp2zinnia.py +++ b/zinnia/management/commands/wp2zinnia.py @@ -136,16 +136,20 @@ class Command(LabelCommand): while 42: user_text = "1...
can go back when migrating wp authors
py
diff --git a/vel/api/metrics/averaging_metric.py b/vel/api/metrics/averaging_metric.py index <HASH>..<HASH> 100644 --- a/vel/api/metrics/averaging_metric.py +++ b/vel/api/metrics/averaging_metric.py @@ -24,7 +24,7 @@ class AveragingMetric(BaseMetric): def value(self): """ Return current value for the me...
Casting metric to original float.
py
diff --git a/recordlinkage/comparing.py b/recordlinkage/comparing.py index <HASH>..<HASH> 100644 --- a/recordlinkage/comparing.py +++ b/recordlinkage/comparing.py @@ -74,7 +74,7 @@ class CompareCore(object): # The dataframes self.df_a = df_a - self.df_b = df_b + self.df_b = df_b if df_...
Add bug fix for dedup compare api
py
diff --git a/pystache/template.py b/pystache/template.py index <HASH>..<HASH> 100644 --- a/pystache/template.py +++ b/pystache/template.py @@ -89,7 +89,7 @@ class Template(object): elif it and hasattr(it, 'keys') and hasattr(it, '__getitem__'): if section[2] != '^': re...
Inverted Sections For Empty List
py
diff --git a/script/lib/util.py b/script/lib/util.py index <HASH>..<HASH> 100644 --- a/script/lib/util.py +++ b/script/lib/util.py @@ -133,11 +133,11 @@ def make_zip(zip_file_path, files, dirs): def rm_rf(path): try: shutil.rmtree(path) + except WindowsError: # pylint: disable=E0602 + pass except OSErr...
WindowsError is a subclass of OSError
py
diff --git a/aikif/cls_file_mapping.py b/aikif/cls_file_mapping.py index <HASH>..<HASH> 100644 --- a/aikif/cls_file_mapping.py +++ b/aikif/cls_file_mapping.py @@ -7,7 +7,7 @@ import config as mod_cfg import yaml root_folder = mod_cfg.fldrs['root_path'] -dataPath = root_folder + os.sep + "data" +dataPath ...
fixed datapath in cls_file_mapping
py
diff --git a/src/ai/backend/client/__init__.py b/src/ai/backend/client/__init__.py index <HASH>..<HASH> 100644 --- a/src/ai/backend/client/__init__.py +++ b/src/ai/backend/client/__init__.py @@ -6,7 +6,7 @@ __all__ = ( *session.__all__, ) -__version__ = '20.09.0' +__version__ = '21.03.0.dev0' def get_user_...
repo: Prepare for the next release cycle
py
diff --git a/ELiDE/ELiDE/timestream.py b/ELiDE/ELiDE/timestream.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/timestream.py +++ b/ELiDE/ELiDE/timestream.py @@ -41,6 +41,7 @@ class ThornyRectangle(Label): elif hasattr(self, name) and \ getattr(self, name) in self.canvas.children: ...
Handle deletion of lines on ThornyRectangle
py
diff --git a/utils/bugzilla2el.py b/utils/bugzilla2el.py index <HASH>..<HASH> 100755 --- a/utils/bugzilla2el.py +++ b/utils/bugzilla2el.py @@ -201,19 +201,46 @@ def get_elastic_index(): return elasticsearch_url + "/"+elasticsearch_index +def create_issues_list_mapping(): + elasticsearch_type = "issues_list"...
Create mappings so component, product and assignee are not indexed. Fix issue in issues_list incremental analysis.
py
diff --git a/datajoint/relation.py b/datajoint/relation.py index <HASH>..<HASH> 100644 --- a/datajoint/relation.py +++ b/datajoint/relation.py @@ -273,6 +273,7 @@ class Relation(RelationalOperand, metaclass=abc.ABCMeta): relations.pop().drop_quick() print('Tables dropped.') + @propert...
converted size_on_disk into a property
py
diff --git a/test/logging_test.py b/test/logging_test.py index <HASH>..<HASH> 100644 --- a/test/logging_test.py +++ b/test/logging_test.py @@ -259,5 +259,43 @@ def test_discord_logger(config=TEST_CONFIG): (test_logname, 'CRITICAL', 'prosper.common.prosper_logging TEST --CRITICAL--') ) +def test_bad_init...
adding placeholders for coverage testing holes (logging)
py
diff --git a/dvc/repo/add.py b/dvc/repo/add.py index <HASH>..<HASH> 100644 --- a/dvc/repo/add.py +++ b/dvc/repo/add.py @@ -70,7 +70,12 @@ def _find_all_targets(repo, target, recursive): if os.path.isdir(target) and recursive: return [ fname - for fname in repo.tree.walk_files(targe...
add recursive file find progress for profiling; may need to revert
py
diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/install.py +++ b/ceph_deploy/install.py @@ -245,7 +245,8 @@ def make(parser): const='argonaut', choices=[ 'argonaut', - # 'bobtail', + 'bobtail', + '...
install: include bobtail, cuttlefish in stable release names No reason not to support the new URLs now, even tho they don't exist yet.
py
diff --git a/facepy/graph_api.py b/facepy/graph_api.py index <HASH>..<HASH> 100755 --- a/facepy/graph_api.py +++ b/facepy/graph_api.py @@ -98,12 +98,11 @@ class GraphAPI(object): # Convert option lists to comma-separated values; Facebook chokes on array-like constructs # in the query string (like [......
We should work with unicode too
py
diff --git a/scapy/contrib/isotp.py b/scapy/contrib/isotp.py index <HASH>..<HASH> 100644 --- a/scapy/contrib/isotp.py +++ b/scapy/contrib/isotp.py @@ -746,6 +746,8 @@ class ISOTPSoftSocket(SuperSocket): s.ins.rx_callbacks.remove(my_cb) except ValueError: pass +...
Catch an uncatched exception which show up in some corner cases
py
diff --git a/tensorflow_probability/python/distributions/distribution_properties_test.py b/tensorflow_probability/python/distributions/distribution_properties_test.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/distributions/distribution_properties_test.py +++ b/tensorflow_probability/python/distrib...
Increase tolerance for numerical discrepancies between hand-batched and auto-vectorized Student T log-prob. The new tolerance passes <I> independent Hypothesis runs with <I> maximum examples each. PiperOrigin-RevId: <I>
py
diff --git a/tornado/template.py b/tornado/template.py index <HASH>..<HASH> 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -98,8 +98,9 @@ template directives use ``{% %}``. To comment out a section so that it is omitted from the output, surround it with ``{# ... #}``. -These tags may be escaped as ``...
template: Clarify docs on escaping Originally from #<I>, which went to the wrong branch.
py
diff --git a/openquake/hazardlib/calc/disagg.py b/openquake/hazardlib/calc/disagg.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/calc/disagg.py +++ b/openquake/hazardlib/calc/disagg.py @@ -149,6 +149,8 @@ def lon_lat_bins(bb, coord_bin_width): lat_bins = coord_bin_width * numpy.arange( int(numpy...
Fixed disaggregation on date line
py
diff --git a/tutorial/t1.py b/tutorial/t1.py index <HASH>..<HASH> 100644 --- a/tutorial/t1.py +++ b/tutorial/t1.py @@ -1,4 +1,5 @@ from getpass import getpass +import cPickle as pickle import tweepy """ Tutorial 1 -- Authentication @@ -51,14 +52,24 @@ oauth_auth.get_access_token(verifier) Okay we are all set then...
Update tutorial 1 to demo storing/loading oauth token via pickle.
py
diff --git a/hotdoc/core/base_formatter.py b/hotdoc/core/base_formatter.py index <HASH>..<HASH> 100644 --- a/hotdoc/core/base_formatter.py +++ b/hotdoc/core/base_formatter.py @@ -26,7 +26,7 @@ import shutil import pygraphviz as pg from hotdoc.utils.configurable import Configurable from hotdoc.utils.simple_signals im...
base_formatter: copy extra assets files as well
py
diff --git a/montblanc/version.py b/montblanc/version.py index <HASH>..<HASH> 100644 --- a/montblanc/version.py +++ b/montblanc/version.py @@ -1,2 +1,2 @@ # Do not edit this file, pipeline versioning is governed by git tags -__version__="0.4.0-alpha3-241-gcf76541" \ No newline at end of file +__version__="0.4.0-alpha3...
Fix erroneously submitted version
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ setup( license="Apache License 2.0", install_requires=[ "ansi2html (>=1.5.2)", "jinja2 (>=2.0)", "pyyaml (>=3.10)", - "xlsxwriter", "matplotlib", "kmdo" + "matplotlib", "kmdo" ...
dist: removed xlswriter
py
diff --git a/foyer/forcefield.py b/foyer/forcefield.py index <HASH>..<HASH> 100755 --- a/foyer/forcefield.py +++ b/foyer/forcefield.py @@ -167,7 +167,7 @@ class Forcefield(app.ForceField): warnings.warn('Non-atomistic element type detected. ' 'Creating cus...
Create new element with mass as float, not string forcefield.registerAtomType() was creating a new element with the mass that ParmEd was passing it, which is a string. The mass was converted to a floating point number in the function, but that was not what was passed to simtk.openmm.app.element.Element(). This was ca...
py
diff --git a/tofu/data/_comp.py b/tofu/data/_comp.py index <HASH>..<HASH> 100644 --- a/tofu/data/_comp.py +++ b/tofu/data/_comp.py @@ -652,7 +652,8 @@ def get_finterp_ani(plasma, idq2dR, idq2dPhi, idq2dZ, if Type == 'sca': - val = valR*vR[None, :] + valPhi*vPhi[None, :] + valZ*vZ[None, :...
[Issue<I>] PEP8 Compliance 5
py
diff --git a/steam/items.py b/steam/items.py index <HASH>..<HASH> 100644 --- a/steam/items.py +++ b/steam/items.py @@ -787,6 +787,15 @@ class assets: raise AssetError("Couldn't find asset " + assetindex) return tags + def _get_download_url(self): + return self._url + + def _download...
Add standard deserialize and download methods
py
diff --git a/slam/cli.py b/slam/cli.py index <HASH>..<HASH> 100644 --- a/slam/cli.py +++ b/slam/cli.py @@ -603,14 +603,16 @@ def logs(stage, period, tail, config_file): start = int(start * 1000) logs = boto3.client('logs') - api_log_group = 'API-Gateway-Execution-Logs_' + api_id + '/' + stage lambda...
fixes to logs command for non-api lambda functions
py
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index <HASH>..<HASH> 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -92,7 +92,7 @@ class PromptCommand(Command): @inlineCallbacks def apply(self, ui): logging.info('open command shell') - mode = ui.curren...
fix: safely read UI mode this makes mode fall back to 'global' if no buffers are open and therefore ui.mode == None if a PromptCommand is applied
py
diff --git a/molecule/ansible_playbook.py b/molecule/ansible_playbook.py index <HASH>..<HASH> 100644 --- a/molecule/ansible_playbook.py +++ b/molecule/ansible_playbook.py @@ -95,6 +95,8 @@ class AnsiblePlaybook(object): if name == 'raw_env_vars': for k, v in value.iteritems(): + i...
Ensure raw_env_vars contains string values only Required to not silently break Ansible runs. Fixes #<I>
py
diff --git a/compiler/js.py b/compiler/js.py index <HASH>..<HASH> 100644 --- a/compiler/js.py +++ b/compiler/js.py @@ -78,6 +78,8 @@ class component_generator(object): raise Exception("duplicate property " + child.name) self.enums[child.name] = child elif t is lang.Assignment: + if self.component.name != ...
threat 'id' assignment in ListElement as 'id' attribute
py
diff --git a/pycompilation/dist.py b/pycompilation/dist.py index <HASH>..<HASH> 100644 --- a/pycompilation/dist.py +++ b/pycompilation/dist.py @@ -158,8 +158,8 @@ class clever_build_ext(build_ext.build_ext): os.path.join( os.path.dirname(self.get_ext_fullpath(ext.name)), ...
Fixed minor bug in clever_build_ext
py
diff --git a/sixpack/models.py b/sixpack/models.py index <HASH>..<HASH> 100644 --- a/sixpack/models.py +++ b/sixpack/models.py @@ -190,6 +190,11 @@ class Experiment(object): for key in keys: pipe.delete(key) + # Delete the KPIs as well + kpi_keys = self.redis.keys('*:{0}/*'.format(...
[DELETEING] KPIs do not use a color as a separator, closes #<I>
py
diff --git a/src/pyrocore/scripts/rtcontrol.py b/src/pyrocore/scripts/rtcontrol.py index <HASH>..<HASH> 100644 --- a/src/pyrocore/scripts/rtcontrol.py +++ b/src/pyrocore/scripts/rtcontrol.py @@ -133,7 +133,7 @@ class RtorrentControl(ScriptBaseWithConfig): output_format = default_format # Expand ...
fix: regex for pure field list check was wrong
py
diff --git a/polymodels/__init__.py b/polymodels/__init__.py index <HASH>..<HASH> 100644 --- a/polymodels/__init__.py +++ b/polymodels/__init__.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals from django.utils.version import get_version -VERSION = (1, 4, 0, 'final', 0) +VERSION = (1, 4, 1, 'alpha', 0) ...
Started <I> alpha development.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ class CustomInstall(install): batfilename = 'pygubu-designer.bat' batpath = os.path.join(self.install_scripts, batfilename) with open(batpath, 'w') as batfile: - ...
Fix Windows batch file It crashes in paths with spaces like `c:\program files\python <I>\python.exe -m pygubudesigner` returning `c:\program is not recognized as an internal or external command, operable program or batch file`. Putting the path between quotes solves this.
py
diff --git a/source/rafcon/gui/views/execution_history.py b/source/rafcon/gui/views/execution_history.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/views/execution_history.py +++ b/source/rafcon/gui/views/execution_history.py @@ -40,11 +40,11 @@ class ExecutionHistoryView(View, Gtk.ScrolledWindow): ...
style(execution_history): reduce width of left side bar by renaming buttons
py
diff --git a/librarian/library.py b/librarian/library.py index <HASH>..<HASH> 100644 --- a/librarian/library.py +++ b/librarian/library.py @@ -94,6 +94,7 @@ class Library(object): with sqlite3.connect(self.dbname) as carddb: loadstring = carddb.execute( "SELECT card FR...
Fix library loading, was missing a fetch
py
diff --git a/spyder/plugins/editor/plugin.py b/spyder/plugins/editor/plugin.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/plugin.py +++ b/spyder/plugins/editor/plugin.py @@ -677,6 +677,8 @@ class Editor(SpyderPluginWidget): def visibility_changed(self, enable): """DockWidget visibility has c...
Editor: Fix error when dockwidget is not yet initialized
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 @@ -62,6 +62,7 @@ MAX_WAIT_LOOPS = 10 #: Wraps mock.patch() to make mocksignature=True by default. patch = functools.partial(mock_module.patch, mocksignature=True) + de...
fixed pep8 blanklines violation and added support of mock < <I>
py
diff --git a/nose/test_potential.py b/nose/test_potential.py index <HASH>..<HASH> 100644 --- a/nose/test_potential.py +++ b/nose/test_potential.py @@ -1343,7 +1343,7 @@ class mockSlowFlatSteadyLogSpiralPotential(testplanarMWPotential): def __init__(self): testplanarMWPotential.__init__(self, ...
change tsteady for SlowFlatSpiral because it's actually in spiral periods
py
diff --git a/rest_flex_fields/filter_backends.py b/rest_flex_fields/filter_backends.py index <HASH>..<HASH> 100644 --- a/rest_flex_fields/filter_backends.py +++ b/rest_flex_fields/filter_backends.py @@ -93,7 +93,7 @@ class FlexFieldsFilterBackend(BaseFilterBackend): except FieldDoesNotExist: retur...
fix: TypeError: _get_expandable_fields() takes 1 positional argument but 2 were given
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 @@ -1300,6 +1300,9 @@ class CodeEditor(TextEditBaseWidget): data.sel...
Editors: Update decorations whether there are or not underline errors
py
diff --git a/mama_cas/response.py b/mama_cas/response.py index <HASH>..<HASH> 100644 --- a/mama_cas/response.py +++ b/mama_cas/response.py @@ -68,8 +68,13 @@ class ValidationResponse(CasResponseBase): if attributes: attribute_set = etree.SubElement(auth_success, self.ns('attributes')) ...
Made changes to add sub element for each value in the list if attribute value is of type list
py
diff --git a/jax/interpreters/xla.py b/jax/interpreters/xla.py index <HASH>..<HASH> 100644 --- a/jax/interpreters/xla.py +++ b/jax/interpreters/xla.py @@ -132,7 +132,7 @@ def device_put(x, device_num=0): # TODO(phawkins): remove after the minimum Jaxlib version is raised to # 0.1.22 if hasattr(x.de...
Return correct type from device_put.
py