Dataset Viewer
Auto-converted to Parquet Duplicate
diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/magpie/config/__init__.py b/magpie/config/__init__.py index <HASH>..<HASH> 100644 --- a/magpie/config/__init__.py +++ b/magpie/config/__init__.py @@ -1,9 +1,12 @@ from os import path class ConfigPath(object): + def __init__(self): + self.config_paths = [path.join(path.expanduser('~'), '.magpi...
Enable configuration from home directory This adds the possibility of defining multiple locations for the config-files. The given example first searches in ~/.magpie and if it doesn't find any config-files there, it searches in the default path. This enables configuration for each individual user and fixes the problem...
py
diff --git a/scout/models/case/gene_list.py b/scout/models/case/gene_list.py index <HASH>..<HASH> 100644 --- a/scout/models/case/gene_list.py +++ b/scout/models/case/gene_list.py @@ -1,7 +1,8 @@ # -*- coding: utf-8 -*- from mongoengine import (Document, ListField, StringField, FloatField, Da...
store hgnc id as int
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -102,8 +102,6 @@ html_theme_options = { "github_repo": "gidgethub", "github_type": "star", "github_banner": True, - "travis_button": True, - "codecov_button": True, } # Add any paths th...
Drop Travis and codecov buttons in the docs
py
diff --git a/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py b/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py index <HASH>..<HASH> 100755 --- a/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py +++ b/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py @@ -1298,...
[Fix doc example] UniSpeechSatForPreTraining (#<I>) * fix doc example - cannot import name 'UniSpeechSatFeatureEncoder' * fix ckpt name
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -2036,7 +2036,7 @@ def _smartos_zone_data(): for mdata_grain in __salt__['cmd.run']('mdata-list').splitlines(): grain_data = __salt__['cmd.run']('mdata-get {0}'.format(...
use roles instread of salt:roles mdata entry
py
diff --git a/dpark/schedule.py b/dpark/schedule.py index <HASH>..<HASH> 100644 --- a/dpark/schedule.py +++ b/dpark/schedule.py @@ -501,7 +501,7 @@ class MesosScheduler(DAGScheduler): info.executor_id.value = sys.argv[0] else: dir = os.path.dirname(__file__) - info.command.v...
choose executor by python version block one slave when reaching MAX_FAILURES
py
diff --git a/pytodoist/todoist.py b/pytodoist/todoist.py index <HASH>..<HASH> 100644 --- a/pytodoist/todoist.py +++ b/pytodoist/todoist.py @@ -468,7 +468,7 @@ class User(TodoistObject): """Return a list of tasks that match some search criteria. .. note:: Example queries can be found - `he...
Added link to example task date strings in docstring.
py
diff --git a/webdriver_test_tools/project/cmd/new.py b/webdriver_test_tools/project/cmd/new.py index <HASH>..<HASH> 100644 --- a/webdriver_test_tools/project/cmd/new.py +++ b/webdriver_test_tools/project/cmd/new.py @@ -90,7 +90,9 @@ def main(test_package_path, test_package, args): # Arguments for page-specific...
Fixed prototype prompt not getting set to '' if minimum_required_args
py
diff --git a/setuptools/command/editable_wheel.py b/setuptools/command/editable_wheel.py index <HASH>..<HASH> 100644 --- a/setuptools/command/editable_wheel.py +++ b/setuptools/command/editable_wheel.py @@ -237,6 +237,8 @@ class editable_wheel(Command): cmd = dist.get_command_obj(cmd_name) if ...
Fix backward compatibility with distutils
py
diff --git a/djcelery/loaders.py b/djcelery/loaders.py index <HASH>..<HASH> 100644 --- a/djcelery/loaders.py +++ b/djcelery/loaders.py @@ -2,6 +2,7 @@ import imp import importlib import warnings +from celery import signals from celery.loaders.base import BaseLoader from celery.datastructures import DictAttribute ...
Need to close any open database connection after any embedded celerybeat process forks.
py
diff --git a/runtests.py b/runtests.py index <HASH>..<HASH> 100755 --- a/runtests.py +++ b/runtests.py @@ -95,6 +95,9 @@ if os.name != 'nt': # the user isn't a member of the directory's group. Set the group explicitly # to avoid this. os.chown(temp_dir, -1, os.getegid()) + # Some environments have a w...
tests: set umask explicitly The umask is typically <I>, but in some environments it's not.
py
diff --git a/torchvision/models/densenet.py b/torchvision/models/densenet.py index <HASH>..<HASH> 100644 --- a/torchvision/models/densenet.py +++ b/torchvision/models/densenet.py @@ -55,7 +55,7 @@ def densenet201(pretrained=False, **kwargs): def densenet161(pretrained=False, **kwargs): - r"""Densenet-201 model ...
Typo (#<I>) I have made some performance improvements to the model, and testing them now. If results turn out good, I will submit a separate PR.
py
diff --git a/marshmallow_sqlalchemy/convert.py b/marshmallow_sqlalchemy/convert.py index <HASH>..<HASH> 100644 --- a/marshmallow_sqlalchemy/convert.py +++ b/marshmallow_sqlalchemy/convert.py @@ -67,8 +67,7 @@ class ModelConverter(object): mysql.LONGBLOB: fields.String, mysql.SET: fields.List, - ...
fields.Enum is deprecated. Change to fields.Field
py
diff --git a/salt/renderers/pyobjects.py b/salt/renderers/pyobjects.py index <HASH>..<HASH> 100644 --- a/salt/renderers/pyobjects.py +++ b/salt/renderers/pyobjects.py @@ -263,7 +263,7 @@ from __future__ import absolute_import import logging import re -from six import exec_ +from salt.utils.six import exec_ from ...
Replaced module six in file /salt/renderers/pyobjects.py
py
diff --git a/ores/ores.py b/ores/ores.py index <HASH>..<HASH> 100644 --- a/ores/ores.py +++ b/ores/ores.py @@ -6,7 +6,7 @@ This script provides access to a set of utilities for ORES * celery_worker -- Starts a "ScoreProcessor" celery worker * precached -- Starts a daemon that requests scores for revisions as they hap...
Changes string formatting to new style and removed weird whitespace.
py
diff --git a/dipper/sources/FlyBase.py b/dipper/sources/FlyBase.py index <HASH>..<HASH> 100644 --- a/dipper/sources/FlyBase.py +++ b/dipper/sources/FlyBase.py @@ -1476,10 +1476,10 @@ class FlyBase(PostgreSQLSource): # these are only omim diseases, not genes; ...
change equivalent/sameAs to xref when processing dbxref table
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( author='Calvin Lobo', author_email='calvinvlobo@gmail.com', url='https://github.com/lobocv/pyperform', - download_url='https://github.com/lobocv/pyperform/tarball/1.5', - keywords=['t...
fix to setup.py download url
py
diff --git a/httpbin/core.py b/httpbin/core.py index <HASH>..<HASH> 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -59,7 +59,7 @@ def set_cors_headers(response): response.headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, DELETE, PATCH, OPTIONS' response.headers['Access-Control-Max-Age'...
got rid of unnecessary .get call
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,10 @@ setup(name = "MacFSEvents", 'License :: OSI Approved :: MIT License', 'Operating System :: MacOS :: MacOS X', 'Programming Language :: C', + 'Programming Language :: Python :: ...
Edited setup.py via GitHub
py
diff --git a/tests/test_models.py b/tests/test_models.py index <HASH>..<HASH> 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -102,6 +102,17 @@ class PhotoModelIntegrationTestCase(TestCase): photo = PhotoFactory(exif={'Make': 'Nikon'}) self.assertNotIn(photo, Photo.objects.for_exif('Ma...
Added tests for popular_tags method.
py
diff --git a/moto/events/responses.py b/moto/events/responses.py index <HASH>..<HASH> 100644 --- a/moto/events/responses.py +++ b/moto/events/responses.py @@ -62,7 +62,9 @@ class EventsHandler(BaseResponse): rule = self.events_backend.describe_rule(name) if not rule: - return self.error("...
Fix a misleading error message AWSEvents.DescribeRule throws an error that references a rule named "test" rather than the specified rule name when a rule with the specified name does not exist. It has been fixed to reference the specified rule name.
py
diff --git a/pandas/io/tests/parser/common.py b/pandas/io/tests/parser/common.py index <HASH>..<HASH> 100644 --- a/pandas/io/tests/parser/common.py +++ b/pandas/io/tests/parser/common.py @@ -149,11 +149,6 @@ c,3 result = self.read_csv(StringIO(data), index_col='time', squeeze=True) self.assertFalse(re...
CLN: Removed / filled stub read_csv tests (#<I>)
py
diff --git a/src/pikepdf/models/image.py b/src/pikepdf/models/image.py index <HASH>..<HASH> 100644 --- a/src/pikepdf/models/image.py +++ b/src/pikepdf/models/image.py @@ -93,7 +93,7 @@ class PdfImageBase(ABC): @abstractmethod def _metadata(self, name, type_, default): - raise NotImplementedError() + ...
image: use ellipsis for unimplemented abstractmethods
py
diff --git a/compiler/js/generator.py b/compiler/js/generator.py index <HASH>..<HASH> 100644 --- a/compiler/js/generator.py +++ b/compiler/js/generator.py @@ -100,15 +100,18 @@ class generator(object): used_re = re.compile(r'@using\s*{(.*?)}') + def scan_using(self, code): + for m in generator.used_re.finditer(c...
added generator.scan_using(), process .core.js files
py
diff --git a/spacy/glossary.py b/spacy/glossary.py index <HASH>..<HASH> 100644 --- a/spacy/glossary.py +++ b/spacy/glossary.py @@ -95,6 +95,7 @@ GLOSSARY = { "XX": "unknown", "BES": 'auxiliary "be"', "HVS": 'forms of "have"', + "_SP": "whitespace", # POS Tags (German) # TIGER Treebank #...
Add glossary entry for _SP (#<I>)
py
diff --git a/tests/PublicKey.py b/tests/PublicKey.py index <HASH>..<HASH> 100644 --- a/tests/PublicKey.py +++ b/tests/PublicKey.py @@ -40,3 +40,7 @@ class PublicKey(Framework.TestCase): self.public_key.key, "u5e1Z25+z8pmgVVt5Pd8k0z/sKpVL1MXYtRAecE4vm8=" ) self.assertEqual(self.public_key....
Test repr() for PublicKey (#<I>) The new PublicKey tests did not test the repr() method, increase coverage by doing so.
py
diff --git a/setuptools_scm/version.py b/setuptools_scm/version.py index <HASH>..<HASH> 100644 --- a/setuptools_scm/version.py +++ b/setuptools_scm/version.py @@ -22,8 +22,8 @@ def _warn_if_setuptools_outdated(): def callable_or_entrypoint(group, callable_or_name): trace('ep', (group, callable_or_name)) if i...
simplify callable_or_entrypoint(group, callable_or_name)
py
diff --git a/visidata/graph.py b/visidata/graph.py index <HASH>..<HASH> 100644 --- a/visidata/graph.py +++ b/visidata/graph.py @@ -92,8 +92,9 @@ class GraphSheet(InvertedYGridCanvas): k = tuple(c.getValue(row) for c in catcols) if catcols else (ycol.name,) attr = self.plotColor...
[graph] do not plot exceptions
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,6 @@ setup( 'uncurl = uncurl.bin:main', ], }, - install_requires=['xerox'], + install_requires=['xerox', 'six'], packages=find_packages(exclude=("tests", "tests.*")), )
added six as dep in setup.py
py
diff --git a/salt/returners/mongo_future_return.py b/salt/returners/mongo_future_return.py index <HASH>..<HASH> 100644 --- a/salt/returners/mongo_future_return.py +++ b/salt/returners/mongo_future_return.py @@ -126,3 +126,36 @@ def get_fun(fun): if rdata: ret[collection] = rdata return ret + ...
Add get_minions and get_jids to mongo returner
py
diff --git a/pygenstub.py b/pygenstub.py index <HASH>..<HASH> 100644 --- a/pygenstub.py +++ b/pygenstub.py @@ -343,12 +343,7 @@ class ClassNode(StubNode): :return: Lines of stub code for this class. """ stub = [] - - if len(self.bases) > 0: - bases = "(" + ", ".join(self.bas...
fix: Minor improvement on base class code generation
py
diff --git a/ga4gh/client/cli.py b/ga4gh/client/cli.py index <HASH>..<HASH> 100644 --- a/ga4gh/client/cli.py +++ b/ga4gh/client/cli.py @@ -842,6 +842,7 @@ class SearchExpressionLevelsRunner(AbstractSearchRunner): expression.score, expression.units, sep="\t", end="\t") print() + class Li...
Update cli.py flake failing
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ setup( url='http://github.com/vpelletier/python-functionfs', license='GPLv3+', platforms=['linux'], - packages=['functionfs'], + packages=['functionfs', 'functionfs.tests'], install_req...
setup: Also distribute functionfs.tests in the egg. As was the original intention.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ except ImportError: description = 'Calculations for the position of the sun and moon.' try: from common.setup_funcs import read_contents - long_description = read_contents(os.path.dirname(__file__), 'R...
Read Me file now has a .md extension
py
diff --git a/lib/access_control_config.py b/lib/access_control_config.py index <HASH>..<HASH> 100644 --- a/lib/access_control_config.py +++ b/lib/access_control_config.py @@ -241,6 +241,7 @@ CFG_ACC_ACTIVITIES_URLS = { 'cfgwebcomment' : (_("Configure WebComment"), "%s/admin/webcomment/webcommentadmin.py?ln=%%s" % ...
WebJournal: display in admin menu * Display the link to the WebJournal administration pages in the administration activities menu.
py
diff --git a/claripy/operations.py b/claripy/operations.py index <HASH>..<HASH> 100644 --- a/claripy/operations.py +++ b/claripy/operations.py @@ -179,11 +179,6 @@ def str_concat_length_calc(*args): def str_replace_length_calc(*args): str_1, str_2, str_3 = args -<<<<<<< 2a35379e3742622796f30a0c8776d0cdd1ceb0c0 ...
Add if semplification in presence of extract
py
diff --git a/spyderlib/widgets/projectexplorer.py b/spyderlib/widgets/projectexplorer.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/projectexplorer.py +++ b/spyderlib/widgets/projectexplorer.py @@ -674,8 +674,10 @@ class ExplorerTreeWidget(OneColumnTree): project.load() self.projects.append(...
Project Explorer: tree widget expanded state is saved/restored before/after adding a new project
py
diff --git a/openpnm/utils/Workspace.py b/openpnm/utils/Workspace.py index <HASH>..<HASH> 100644 --- a/openpnm/utils/Workspace.py +++ b/openpnm/utils/Workspace.py @@ -211,7 +211,7 @@ class Workspace(dict): """ from openpnm.io import OpenpnmIO - OpenpnmIO.save_project(filename=filename) + ...
fixing mistaken call to save project in load project wrapper
py
diff --git a/yowsup/layers/axolotl/layer_receive.py b/yowsup/layers/axolotl/layer_receive.py index <HASH>..<HASH> 100644 --- a/yowsup/layers/axolotl/layer_receive.py +++ b/yowsup/layers/axolotl/layer_receive.py @@ -94,7 +94,8 @@ class AxolotlReceivelayer(AxolotlBaseLayer): self.getKeysFor([senderJid], su...
[log] fix typo Closes #<I> Spelling mistake
py
diff --git a/peewee.py b/peewee.py index <HASH>..<HASH> 100644 --- a/peewee.py +++ b/peewee.py @@ -18,6 +18,13 @@ class Database(object): def get_connection(self): return sqlite3.connect(self.database) + def execute(self, sql, commit=False): + cursor = self.conn.cursor() + res = cur...
Moving the sql bits around a little more
py
diff --git a/nfc/dev/transport.py b/nfc/dev/transport.py index <HASH>..<HASH> 100644 --- a/nfc/dev/transport.py +++ b/nfc/dev/transport.py @@ -227,7 +227,8 @@ class USB(object): self.usb_dev.claimInterface(0) except self.usb.USBError: raise IOError("unusable device") - self.usb...
fix: usb device reset when using pyusb 0.x is only needed for the PN<I> chip (makes trouble with PN<I>)
py
diff --git a/glances/stats_client.py b/glances/stats_client.py index <HASH>..<HASH> 100644 --- a/glances/stats_client.py +++ b/glances/stats_client.py @@ -45,13 +45,18 @@ class GlancesStatsClient(GlancesStats): header = "glances_" for item in input_plugins: # Import the plugin - ...
Improve error message as asked in issue #<I>
py
diff --git a/pilight/test/pilight_daemon.py b/pilight/test/pilight_daemon.py index <HASH>..<HASH> 100644 --- a/pilight/test/pilight_daemon.py +++ b/pilight/test/pilight_daemon.py @@ -5,7 +5,7 @@ commands are supported. This is a very hackish synchronous daemon that is - not an example for good sockets se...
BUG: do not use builtins
py
diff --git a/craftai/time.py b/craftai/time.py index <HASH>..<HASH> 100644 --- a/craftai/time.py +++ b/craftai/time.py @@ -49,7 +49,7 @@ class Time(object): offset = int(tz[-4:-2]) * 60 + int(tz[-2:]) if tz[0] == "-": offset = -offset - time = time.a...
Fixed bad keyword argument use with astimezone * offset argument in timezone instantiation needs to be a timedelta -> fixed * keyword argument is not 'tzinfo' but just 'tz'
py
diff --git a/allauth/socialaccount/providers/oauth2/client.py b/allauth/socialaccount/providers/oauth2/client.py index <HASH>..<HASH> 100644 --- a/allauth/socialaccount/providers/oauth2/client.py +++ b/allauth/socialaccount/providers/oauth2/client.py @@ -28,7 +28,7 @@ class OAuth2Client(object): self.consumer_...
Fix: Header not propagated from adapater to client (#<I>) Bug: The header is not propagated from adapter to client Oauth2 result: reddit reponse <I> too many request. <URL>
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 @@ -2067,13 +2067,12 @@ class CodeEditor(TextEditBaseWidget): ...
Count line numbers even if they are collapsed
py
diff --git a/ca/django_ca/crl.py b/ca/django_ca/crl.py index <HASH>..<HASH> 100644 --- a/ca/django_ca/crl.py +++ b/ca/django_ca/crl.py @@ -68,5 +68,10 @@ def get_crl(ca, encoding, expires, algorithm, password, ca_crl=False): for cert in qs.revoked(): builder = builder.add_revoked_certificate(cert.get_revo...
add some todos for CRLs
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 @@ -2,11 +2,11 @@ ''' The function cache system allows for data to be stored on the master so it can be easily read by other minions ''' -from __future__ import absolute_import ...
List call not needed. Changing it back to what it was
py
diff --git a/stacker/plan.py b/stacker/plan.py index <HASH>..<HASH> 100644 --- a/stacker/plan.py +++ b/stacker/plan.py @@ -44,8 +44,9 @@ class Step(object): self.set_status(SUBMITTED) def run(self, results): - self.submit() - return self._run_func(results, self.stack) + if not self....
Only submit the step if it hasn't been submitted yet
py
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py index <HASH>..<HASH> 100644 --- a/pyzotero/zotero.py +++ b/pyzotero/zotero.py @@ -539,7 +539,7 @@ class Zotero(object): """ items = [] items.extend(query) - while not self.links['self'] == self.links['last']: + while self.link...
Don't use 'self' link to drive app state API v3 removed the 'self' link, so it's no longer possible to compare 'last' and 'self' to check whether more data can be retrieved. However, checking to see if 'next' exists should work just as well. Closes #<I>
py
diff --git a/scripts/VirtuaBuild/smoke_install_test.py b/scripts/VirtuaBuild/smoke_install_test.py index <HASH>..<HASH> 100644 --- a/scripts/VirtuaBuild/smoke_install_test.py +++ b/scripts/VirtuaBuild/smoke_install_test.py @@ -1,4 +1,4 @@ -import time +import time, sys sys.path.append(os.path.abspath(os.path.join(os.p...
Forgot to import sys in smoke_install_test.py
py
diff --git a/gevent_zeromq/__init__.py b/gevent_zeromq/__init__.py index <HASH>..<HASH> 100644 --- a/gevent_zeromq/__init__.py +++ b/gevent_zeromq/__init__.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """gevent_zmq - gevent compatibility with zeromq. Usage
Added an encoding line since we now have a "Ø".
py
diff --git a/nhlib/source/base.py b/nhlib/source/base.py index <HASH>..<HASH> 100644 --- a/nhlib/source/base.py +++ b/nhlib/source/base.py @@ -41,10 +41,6 @@ class SeismicSource(object): the trade-off between time needed to compute the :meth:`distance <nhlib.geo.surface.base.BaseSurface.get_min_distan...
source/base [docs]: removed erroneous info about upper and lower seism.d
py
diff --git a/pythran/tests/test_itertools.py b/pythran/tests/test_itertools.py index <HASH>..<HASH> 100644 --- a/pythran/tests/test_itertools.py +++ b/pythran/tests/test_itertools.py @@ -114,6 +114,9 @@ def ifiltern_(l0): def test_count2(self): self.run_test("def count2(n): from itertools import count ; c...
Better itertools.count test coverage
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='salic-ml', - version='0.0.3', + version='0.0.4', description='Automate the Salic proposal admission process', url='https://github.co...
Update pip package version to <I>
py
diff --git a/lib/autokey/model/abstract_hotkey.py b/lib/autokey/model/abstract_hotkey.py index <HASH>..<HASH> 100644 --- a/lib/autokey/model/abstract_hotkey.py +++ b/lib/autokey/model/abstract_hotkey.py @@ -45,7 +45,7 @@ class AbstractHotkey(AbstractWindowFilter): modifiers.sort() self.modifiers = mod...
Fix for TriggerMode.HOTKEY (3) showing up in modes in the save file twice
py
diff --git a/talon/quotations.py b/talon/quotations.py index <HASH>..<HASH> 100644 --- a/talon/quotations.py +++ b/talon/quotations.py @@ -280,10 +280,15 @@ def preprocess(msg_body, delimiter, content_type='text/plain'): Replaces link brackets so that they couldn't be taken for quotation marker. Splits line i...
Convert msg_body into unicode in preprocess.
py
diff --git a/nanoplotter/timeplots.py b/nanoplotter/timeplots.py index <HASH>..<HASH> 100644 --- a/nanoplotter/timeplots.py +++ b/nanoplotter/timeplots.py @@ -36,7 +36,7 @@ def time_plots(df, subsampled_df, path, title=None, color="#4CB391", log_length=False, plot_settings=None): """Making plots of...
refactored variable name of dataframe to match
py
diff --git a/dj_static.py b/dj_static.py index <HASH>..<HASH> 100644 --- a/dj_static.py +++ b/dj_static.py @@ -4,7 +4,10 @@ import static from django.conf import settings from django.core.handlers.wsgi import WSGIHandler -from django.core.handlers.base import get_path_info +try: + from django.core.handlers.base ...
Make compatible with Django Dev (<I>+) `get_path_info` was moved from `django.core.handlers.base` to `django.core.handlers.wsgi` in commit <I>f. See <URL>
py
diff --git a/salt/returners/redis_return.py b/salt/returners/redis_return.py index <HASH>..<HASH> 100644 --- a/salt/returners/redis_return.py +++ b/salt/returners/redis_return.py @@ -173,10 +173,17 @@ def get_fun(fun): def get_jids(): ''' - Return a list of all job ids + Return a dict mapping all job ids ...
Return a dict in `redis_return.get_jids`. which was fixed in #<I>, but broken by #<I>
py
diff --git a/spacy/pattern/parser.py b/spacy/pattern/parser.py index <HASH>..<HASH> 100644 --- a/spacy/pattern/parser.py +++ b/spacy/pattern/parser.py @@ -38,8 +38,18 @@ class PatternParser(object): if not pattern.nodes: return + cls.check_pattern(pattern) return pattern + @...
Check in PatternParser that the generated Pattern is valid
py
diff --git a/tests/unit/utils/test_ssdp.py b/tests/unit/utils/test_ssdp.py index <HASH>..<HASH> 100644 --- a/tests/unit/utils/test_ssdp.py +++ b/tests/unit/utils/test_ssdp.py @@ -180,7 +180,7 @@ class SSDPFactoryTestCase(TestCase): assert factory.log.debug.called assert 'Permission error' in f...
Rename test to the more meaningful name
py
diff --git a/esgfpid/assistant/unpublish.py b/esgfpid/assistant/unpublish.py index <HASH>..<HASH> 100644 --- a/esgfpid/assistant/unpublish.py +++ b/esgfpid/assistant/unpublish.py @@ -27,7 +27,7 @@ class AssistantOneVersion(object): if handle and version_number: self.__both_given(handle, version_...
Fixed a log messages (expected number, but should be able to handle strings too).
py
diff --git a/galpy/df/quasiisothermaldf.py b/galpy/df/quasiisothermaldf.py index <HASH>..<HASH> 100644 --- a/galpy/df/quasiisothermaldf.py +++ b/galpy/df/quasiisothermaldf.py @@ -1720,7 +1720,7 @@ class quasiisothermaldf(df): """ #initialize output array - coord_v = numpy.array((n...
fix bug with initializing empty array in sampleV interolate
py
diff --git a/stab.py b/stab.py index <HASH>..<HASH> 100755 --- a/stab.py +++ b/stab.py @@ -27,14 +27,10 @@ def extract(fpath): meta, content, first_line, meta_parsed = [], [], True, False with open(fpath) as fp: for line in fp: - if line.strip() == '---' and not meta_parsed: - ...
Down to <I> lines :P :) :D
py
diff --git a/multilingual_tags/models.py b/multilingual_tags/models.py index <HASH>..<HASH> 100644 --- a/multilingual_tags/models.py +++ b/multilingual_tags/models.py @@ -55,3 +55,6 @@ class TaggedItem(models.Model): def __unicode__(self): return '{0}: #{1}'.format(self.object, self.tag) + + class Me...
Made Tag and the tagged object be unique together.
py
diff --git a/mutmut/__main__.py b/mutmut/__main__.py index <HASH>..<HASH> 100644 --- a/mutmut/__main__.py +++ b/mutmut/__main__.py @@ -560,6 +560,7 @@ def run_mutation(config: Config, filename: str, mutation_id: MutationID, callbac return cached_status if hasattr(mutmut_config, 'pre_mutation'): + ...
Nasty bug where context.current_source_line could be wrong
py
diff --git a/records.py b/records.py index <HASH>..<HASH> 100644 --- a/records.py +++ b/records.py @@ -201,9 +201,11 @@ class RecordCollection(object): return self.all(as_dict=not(ordered), as_ordereddict=ordered) def first(self, default=None, as_dict=False, as_ordereddict=False): - """Returns a ...
Update docstring/comment re: raising default
py
diff --git a/f5/__init__.py b/f5/__init__.py index <HASH>..<HASH> 100644 --- a/f5/__init__.py +++ b/f5/__init__.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = '2.0.2' +__version__ = '2.1.0'
Bumping release to new version <I>
py
diff --git a/legos/xkcd.py b/legos/xkcd.py index <HASH>..<HASH> 100644 --- a/legos/xkcd.py +++ b/legos/xkcd.py @@ -1,6 +1,5 @@ from Legobot.Lego import Lego import requests -import re import logging import json import random @@ -75,7 +74,7 @@ class XKCD(Lego): if latest.status_code == requests.codes.ok: ...
Just call me Mr. Clean cleaning up code to pass tests.
py
diff --git a/examples/carla/models.py b/examples/carla/models.py index <HASH>..<HASH> 100644 --- a/examples/carla/models.py +++ b/examples/carla/models.py @@ -20,7 +20,7 @@ class CarlaModel(Model): further fully connected layers. """ - def _init(self, inputs, num_outputs, options): + def _build_layers...
[rllib] _init renamed to _build_layers in example
py
diff --git a/sharpy/parsers.py b/sharpy/parsers.py index <HASH>..<HASH> 100644 --- a/sharpy/parsers.py +++ b/sharpy/parsers.py @@ -255,9 +255,9 @@ class CustomersParser(CheddarOutputParser): def parse_invoices(self, invoices_element): invoices = [] - - for invoice_element in invoi...
Fixed issue 2: Empty invoice elements no longer cause errors.
py
diff --git a/hydpy/core/variabletools.py b/hydpy/core/variabletools.py index <HASH>..<HASH> 100644 --- a/hydpy/core/variabletools.py +++ b/hydpy/core/variabletools.py @@ -1837,8 +1837,8 @@ has been determined, which is not a submask of `Soil([ True, True, False])`. except BaseException: objecttoo...
Make an exception message of class `Variable` of module `variabletools` related to math operations compatible with doctesting.
py
diff --git a/asciidoc_reader/asciidoc_reader.py b/asciidoc_reader/asciidoc_reader.py index <HASH>..<HASH> 100644 --- a/asciidoc_reader/asciidoc_reader.py +++ b/asciidoc_reader/asciidoc_reader.py @@ -60,11 +60,11 @@ class AsciiDocReader(BaseReader): logger.debug('AsciiDocReader: Reading: %s', source_path) ...
[asciidoc_reader]: Rehandle file names with spaces Fixes #<I>
py
diff --git a/uproot_methods/convert.py b/uproot_methods/convert.py index <HASH>..<HASH> 100644 --- a/uproot_methods/convert.py +++ b/uproot_methods/convert.py @@ -61,10 +61,7 @@ def towriteable(obj): elif any(x == ("physt.histogram1d", "Histogram1D") for x in types(obj.__class__, obj)): return ("u...
Write histograms from ROOT files read by uproot
py
diff --git a/pyclustering/cluster/tests/kmedoids_templates.py b/pyclustering/cluster/tests/kmedoids_templates.py index <HASH>..<HASH> 100755 --- a/pyclustering/cluster/tests/kmedoids_templates.py +++ b/pyclustering/cluster/tests/kmedoids_templates.py @@ -75,7 +75,7 @@ class KmedoidsTestTemplates: ...
#<I>: Template for unit-tests for the bug.
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 @@ -1067,11 +1067,8 @@ class Exchange(object): @staticmethod def hash(request, algorithm='md5', digest='hex'): - if algorithm == '...
ignore keccak for hmac for now
py
diff --git a/gwpy/io/ligolw.py b/gwpy/io/ligolw.py index <HASH>..<HASH> 100644 --- a/gwpy/io/ligolw.py +++ b/gwpy/io/ligolw.py @@ -533,10 +533,16 @@ def write_tables(target, tables, append=False, overwrite=False, **kwargs): # write file if isinstance(target, str): - kwargs.setdefault('compress', targ...
compress kwarg takes either 'gz' or False
py
diff --git a/tests/connection_test.py b/tests/connection_test.py index <HASH>..<HASH> 100644 --- a/tests/connection_test.py +++ b/tests/connection_test.py @@ -113,9 +113,12 @@ class ConnectionTest(BaseTest): def test_closed_connection_with_none_reader(self): address = ('localhost', self.redis_port) ...
[#<I>] Clean mocked connection after test
py
diff --git a/flask_fedora_commons/__init__.py b/flask_fedora_commons/__init__.py index <HASH>..<HASH> 100644 --- a/flask_fedora_commons/__init__.py +++ b/flask_fedora_commons/__init__.py @@ -383,7 +383,7 @@ class Repository(object): self.create(entity_id) sparql_template = Template("""$prefix ...
added error handling for Repository create method
py
diff --git a/airflow/www/views.py b/airflow/www/views.py index <HASH>..<HASH> 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -271,7 +271,9 @@ def task_group_to_grid(task_item_or_group, dag, dag_runs, session): def get_summary(dag_run, children): child_instances = [child['instances'] for...
Check for run_id for grid group summaries (#<I>)
py
diff --git a/asammdf/mdf.py b/asammdf/mdf.py index <HASH>..<HASH> 100644 --- a/asammdf/mdf.py +++ b/asammdf/mdf.py @@ -3454,7 +3454,7 @@ class MDF(object): ].channel_group.comment = f"{message} 0x{msg_id:X}" if ignore_invalid_signals: - ...
fix index error in extract_can method
py
diff --git a/tests/test_search.py b/tests/test_search.py index <HASH>..<HASH> 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -366,7 +366,7 @@ def test_we_can_search_with_change_history_field_gets_bugs(): ] } - responses.add(responses.GET, 'https://bugzilla.mozilla.org/rest/bug?chfield=...
Fix url in test to be valid
py
diff --git a/phy/utils/event.py b/phy/utils/event.py index <HASH>..<HASH> 100644 --- a/phy/utils/event.py +++ b/phy/utils/event.py @@ -27,6 +27,9 @@ class EventEmitter(object): """ def __init__(self): + self.reset() + + def reset(self): self._callbacks = defaultdict(list) def _get_...
Added EventEmitter.reset() method.
py
diff --git a/pyqode/python/frontend/modes/goto_assignements.py b/pyqode/python/frontend/modes/goto_assignements.py index <HASH>..<HASH> 100644 --- a/pyqode/python/frontend/modes/goto_assignements.py +++ b/pyqode/python/frontend/modes/goto_assignements.py @@ -143,9 +143,9 @@ class GoToAssignmentsMode(Mode, QtCore.QObjec...
Fix a potential bug where pending is never reset also fix call to QInputDialog
py
diff --git a/gpflow/transforms.py b/gpflow/transforms.py index <HASH>..<HASH> 100644 --- a/gpflow/transforms.py +++ b/gpflow/transforms.py @@ -106,7 +106,7 @@ class Log1pe(Transform): return tf.nn.softplus(x) + self._lower def log_jacobian_tensor(self, x): - return tf.negative(tf.reduce_sum(tf.lo...
adding softplus as needed in transforms
py
diff --git a/rgcompare.py b/rgcompare.py index <HASH>..<HASH> 100755 --- a/rgcompare.py +++ b/rgcompare.py @@ -183,9 +183,9 @@ def comparison_worker(identity, input, output): for match_id, player_fnames, map_fname, turns in iter(input.get, 'STOP'): map_data = ast.literal_eval(open(map_fn...
Update to work with latest rgkit (with my playername fix)
py
diff --git a/rows/plugins/postgresql.py b/rows/plugins/postgresql.py index <HASH>..<HASH> 100644 --- a/rows/plugins/postgresql.py +++ b/rows/plugins/postgresql.py @@ -355,6 +355,11 @@ class PostgresCopy: has_header=True, callback=None, ): + # TODO: replace skip_header with skip_rows (and i...
Do not skip header manually (rely on psql)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,8 @@ if 'setuptools.extension' in sys.modules: version_py = os.path.join(os.path.dirname(__file__), 'metaseq', 'version.py') version = open(version_py).read().split('=')[-1].strip().replace('"','') -exts = [Exten...
remove cython ext from setup.py
py
diff --git a/annex.py b/annex.py index <HASH>..<HASH> 100644 --- a/annex.py +++ b/annex.py @@ -48,7 +48,6 @@ class Annex(object): self.base_plugin = base_plugin self.plugin_dirs = set() - self.plugin_files = [] self.loaded_modules = {} for plugin_dir in plugin_dirs: @@ -57...
Add __getattr__ the Annex for accessing plugins
py
diff --git a/inverse_covariance/quic_graph_lasso.py b/inverse_covariance/quic_graph_lasso.py index <HASH>..<HASH> 100644 --- a/inverse_covariance/quic_graph_lasso.py +++ b/inverse_covariance/quic_graph_lasso.py @@ -637,17 +637,9 @@ class QuicGraphLassoEBIC(InverseCovarianceEstimator): sample_covariance_ : 2D ndarr...
Remove some attributes from comment to avoid confusion
py
diff --git a/shutit_module.py b/shutit_module.py index <HASH>..<HASH> 100644 --- a/shutit_module.py +++ b/shutit_module.py @@ -23,10 +23,38 @@ from abc import ABCMeta, abstractmethod import sys import decimal +import inspect + +def shutit_method_scope(func): + def wrapper(self, shutit): + return func(self, shutit) ...
Extend metaclass to wrap some methods in a nil decorator
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,10 @@ import os from setuptools import setup +# Quick and dirty fix for http://bugs.python.org/issue8876 +if os.environ.get('USER','') == 'vagrant': + del os.link + with open(os.path.join(os.path.dirname(__file...
Added Vagrant workaround to setup.py
py
diff --git a/yacron/job.py b/yacron/job.py index <HASH>..<HASH> 100644 --- a/yacron/job.py +++ b/yacron/job.py @@ -185,8 +185,8 @@ class MailReporter(Reporter): message = EmailMessage() message.set_content(body) message["From"] = mail["from"] - message["To"] = mail["to"] - messa...
email: strip the To and Subject header values of trailing whitespace This is to avoid potentially including a trailing newline, which causes email formatting problems.
py
diff --git a/pyethereum/peermanager.py b/pyethereum/peermanager.py index <HASH>..<HASH> 100644 --- a/pyethereum/peermanager.py +++ b/pyethereum/peermanager.py @@ -271,15 +271,11 @@ def peer_addresses_received_handler(sender, addresses, **kwargs): peer_manager.save_peers() -txfilter = SentFilter() - - @receive...
rm: tx filter
py
diff --git a/test/geocoders/photon.py b/test/geocoders/photon.py index <HASH>..<HASH> 100644 --- a/test/geocoders/photon.py +++ b/test/geocoders/photon.py @@ -37,8 +37,13 @@ class TestPhoton(BaseTestGeocoder): async def test_bbox(self): await self.geocode_run( - {"query": "Marbach", "bbox": [...
Photon tests: ensure bbox affects the result (#<I>)
py
diff --git a/tests/test_projects.py b/tests/test_projects.py index <HASH>..<HASH> 100644 --- a/tests/test_projects.py +++ b/tests/test_projects.py @@ -64,6 +64,20 @@ class TestProjects(unittest.TestCase): payload={'name': 'PR 1', 'description': 'PR desc 1'} ) + @patch('taiga.models.IssueStatu...
Add tests for project issue statuses
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -1,10 +1,9 @@ from distutils.core import setup from setuptools import find_packages -from sendwithus.version import version -setup ( +setup( name='sendwithus', - version=version, + version='1.0.5', author='...
hardcode version to avoid trying to import requests at setuptime
py
diff --git a/ipyrad/load/load.py b/ipyrad/load/load.py index <HASH>..<HASH> 100644 --- a/ipyrad/load/load.py +++ b/ipyrad/load/load.py @@ -274,8 +274,13 @@ def load_json(path, quiet=False): sample_names = fullj["samples"].keys() if not sample_names: raise IPyradWarningExit(""" - No samples found i...
more explicit error handling in the case of no samples in json
py
diff --git a/pystratum/RoutineLoaderHelper.py b/pystratum/RoutineLoaderHelper.py index <HASH>..<HASH> 100644 --- a/pystratum/RoutineLoaderHelper.py +++ b/pystratum/RoutineLoaderHelper.py @@ -324,7 +324,7 @@ class RoutineLoaderHelper(metaclass=abc.ABCMeta): """ ret = True - pattern = re.compil...
Place holders for pseudo types with maximum length of their base type.
py
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
7