diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/examples/keras_parikh_entailment/keras_decomposable_attention.py b/examples/keras_parikh_entailment/keras_decomposable_attention.py
index <HASH>..<HASH> 100644
--- a/examples/keras_parikh_entailment/keras_decomposable_attention.py
+++ b/examples/keras_parikh_entailment/keras_decomposable_attention.py
@@ -2... | Corretions for model test example The sentences of test data in sentence entailment example should be generated with integers limited to vocab_size. | py |
diff --git a/src/threadPool.py b/src/threadPool.py
index <HASH>..<HASH> 100644
--- a/src/threadPool.py
+++ b/src/threadPool.py
@@ -92,7 +92,11 @@ class ThreadPool(Module):
workers = list(self.workers)
self.mcond.release()
for worker in workers:
- worker.join()
+ while True:
+ worker.join(1)
+ if not... | threadPool: adds warning when waiting on a worker | py |
diff --git a/inginious/agent/docker_agent/__init__.py b/inginious/agent/docker_agent/__init__.py
index <HASH>..<HASH> 100644
--- a/inginious/agent/docker_agent/__init__.py
+++ b/inginious/agent/docker_agent/__init__.py
@@ -190,7 +190,7 @@ class DockerAgent(Agent):
environment = self._containers[environment_n... | Fix ramdomly starting debug mode | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,12 +28,12 @@ def ignore_install(src, names):
def executor(cmd, cwd):
err = None
try:
- run = subprocess.run(cmd, cwd=cwd)
+ run = subprocess.call(cmd, cwd=cwd)
except Exception as e:
... | Add python <I> support | py |
diff --git a/glad/generator/d.py b/glad/generator/d.py
index <HASH>..<HASH> 100644
--- a/glad/generator/d.py
+++ b/glad/generator/d.py
@@ -7,7 +7,7 @@ import os.path
TYPES = {
'GLenum' : 'uint',
'GLvoid' : 'void',
- 'GLboolean' : 'bool',
+ 'GLboolean' : 'ubyte',
'GLbitfield' : 'uint',
'GLchar... | generator: GLboolean = ubyte | py |
diff --git a/isovar/read_at_locus.py b/isovar/read_at_locus.py
index <HASH>..<HASH> 100644
--- a/isovar/read_at_locus.py
+++ b/isovar/read_at_locus.py
@@ -71,16 +71,16 @@ def create_read_at_locus_from_pysam_pileup_element(
# which can be identified by having the same name
name = read.query_name
+ if name... | don't rely on query_position being an int, could be None | py |
diff --git a/isogeo_pysdk/api/routes_keyword.py b/isogeo_pysdk/api/routes_keyword.py
index <HASH>..<HASH> 100644
--- a/isogeo_pysdk/api/routes_keyword.py
+++ b/isogeo_pysdk/api/routes_keyword.py
@@ -953,6 +953,7 @@ class ApiKeyword:
partial(
self.thesaurus,
... | Add thesaurus_id arg to request send from search_keyword_asynchronous | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100755
--- a/test.py
+++ b/test.py
@@ -148,6 +148,9 @@ def main():
for thread in threading.enumerate():
if thread is not threading.currentThread():
thread._Thread__stop()
+ # Exit correctly
+ if not result.wasSuccessful():
+ sys... | Exit correctly so test.py can be used in CI | py |
diff --git a/spikeextractors/extractors/yassextractors/yassextractors.py b/spikeextractors/extractors/yassextractors/yassextractors.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/extractors/yassextractors/yassextractors.py
+++ b/spikeextractors/extractors/yassextractors/yassextractors.py
@@ -15,7 +15,7 @@ class Y... | Update spikeextractors/extractors/yassextractors/yassextractors.py | py |
diff --git a/periphery/gpio.py b/periphery/gpio.py
index <HASH>..<HASH> 100644
--- a/periphery/gpio.py
+++ b/periphery/gpio.py
@@ -243,7 +243,7 @@ class GPIO(object):
@property
def chip_label(self):
- """ Get the label of the GPIO chip associated with the GPIO.
+ """Get the label of the GPIO c... | gpio: fix formatting in docstring for chip_label property | py |
diff --git a/datapackage_pipelines/lib/set_types.py b/datapackage_pipelines/lib/set_types.py
index <HASH>..<HASH> 100644
--- a/datapackage_pipelines/lib/set_types.py
+++ b/datapackage_pipelines/lib/set_types.py
@@ -1,4 +1,5 @@
import re
+import logging
from datapackage_pipelines.wrapper import ingest, spew
from da... | Better logging in set_types stdlib processor | py |
diff --git a/aaf2/types.py b/aaf2/types.py
index <HASH>..<HASH> 100644
--- a/aaf2/types.py
+++ b/aaf2/types.py
@@ -565,6 +565,14 @@ class TypeDefRecord(TypeDef):
return self
@property
+ def member_names(self):
+ return list(iter_utf16_array(self['MemberNames'].data))
+
+ @property
+ def ... | add member_names and member_types property | py |
diff --git a/fast/atomic_structure.py b/fast/atomic_structure.py
index <HASH>..<HASH> 100644
--- a/fast/atomic_structure.py
+++ b/fast/atomic_structure.py
@@ -1158,8 +1158,9 @@ class Transition(Basic):
####################################################################
self.nu = e1.nu-e2.nu
... | Added wavenumber as a TRansition atribute. | py |
diff --git a/tests/integration/shell/test_matcher.py b/tests/integration/shell/test_matcher.py
index <HASH>..<HASH> 100644
--- a/tests/integration/shell/test_matcher.py
+++ b/tests/integration/shell/test_matcher.py
@@ -88,7 +88,7 @@ class MatchTest(ShellCase, ShellCaseCommonTestsMixin):
assert minion_in_return... | Fix "coumpound" test names | py |
diff --git a/parsl/version.py b/parsl/version.py
index <HASH>..<HASH> 100644
--- a/parsl/version.py
+++ b/parsl/version.py
@@ -3,4 +3,4 @@
<Major>.<Minor>.<maintenance>[alpha/beta/..]
Alphas will be numbered like this -> 0.4.0a0
"""
-VERSION = '0.7.2'
+VERSION = '0.8.0a0' | Prepping <I>a0 for release (#<I>) | py |
diff --git a/example/example/app/tests.py b/example/example/app/tests.py
index <HASH>..<HASH> 100755
--- a/example/example/app/tests.py
+++ b/example/example/app/tests.py
@@ -97,6 +97,7 @@ class MultiSelectTestCase(TestCase):
octodex = Octodex.objects.get(id=1)
self.assertEqual(get_field(Octodex, 'cat... | added the test for the field method `value_to_string` with an empty argument | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,6 @@ VERSION = None
# What packages are required for this module to be executed?
REQUIRED = [ # type: ignore
- 'aiodns',
'aiohttp'
] | Remove aiodns (#5) | py |
diff --git a/intranet/apps/ionldap/models.py b/intranet/apps/ionldap/models.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/ionldap/models.py
+++ b/intranet/apps/ionldap/models.py
@@ -24,8 +24,10 @@ class LDAPCourse(models.Model):
end_period = models.IntegerField()
def teacher_user(self):
+ query ... | remove middle initial in ionldap teacher user find | py |
diff --git a/mutmut/__main__.py b/mutmut/__main__.py
index <HASH>..<HASH> 100644
--- a/mutmut/__main__.py
+++ b/mutmut/__main__.py
@@ -77,6 +77,7 @@ def do_apply(mutation_pk, dict_synonyms, backup):
null_out = open(os.devnull, 'w')
+DEFAULT_RUNNER = 'python -m pytest -x --assert=plain'
@click.command(context_se... | Experimental auto fallback from pytest to unittest | py |
diff --git a/napalm_yang/translator.py b/napalm_yang/translator.py
index <HASH>..<HASH> 100644
--- a/napalm_yang/translator.py
+++ b/napalm_yang/translator.py
@@ -19,7 +19,6 @@ class Translator(object):
self.translation = translation
self.keys = keys or {"parent_key": None}
- self.bookmarks =... | Set root_ consistently with parsers | py |
diff --git a/galpy/actionAngle_src/actionAngleAdiabaticGrid.py b/galpy/actionAngle_src/actionAngleAdiabaticGrid.py
index <HASH>..<HASH> 100644
--- a/galpy/actionAngle_src/actionAngleAdiabaticGrid.py
+++ b/galpy/actionAngle_src/actionAngleAdiabaticGrid.py
@@ -219,7 +219,10 @@ class actionAngleAdiabaticGrid():
... | better array support for adiabatic grid | py |
diff --git a/pythran/types/conversion.py b/pythran/types/conversion.py
index <HASH>..<HASH> 100644
--- a/pythran/types/conversion.py
+++ b/pythran/types/conversion.py
@@ -7,7 +7,6 @@ import numpy
from pythran.typing import List, Dict, Set, Tuple, NDArray, Pointer, Fun
PYTYPE_TO_CTYPE_TABLE = {
- numpy.int: 'npy_... | numpy.int is deprecated It's now an alias to builtins.int, no need to register it anymore Fix #<I> | py |
diff --git a/pyramid_restful/api.py b/pyramid_restful/api.py
index <HASH>..<HASH> 100644
--- a/pyramid_restful/api.py
+++ b/pyramid_restful/api.py
@@ -254,9 +254,25 @@ class ApiFactory(dict):
else:
self.services[service.endpoint.name] = (service.endpoint, None)
+ # expose a scope
... | * supporting registering services via dict / list | py |
diff --git a/config.py b/config.py
index <HASH>..<HASH> 100644
--- a/config.py
+++ b/config.py
@@ -34,12 +34,6 @@ elif USER_HOME == '~':
else:
PYLINT_HOME = join(USER_HOME, '.pylint.d')
-if not exists(PYLINT_HOME):
- try:
- os.mkdir(PYLINT_HOME)
- except OSError:
- print >> sys.stderr, 'Unab... | Do not try to create the PYLINTHOME directory on import of pylint.config, since it might fail and lead to spurious warnings. Instead, create it when it is needed. | py |
diff --git a/cwltool/main.py b/cwltool/main.py
index <HASH>..<HASH> 100755
--- a/cwltool/main.py
+++ b/cwltool/main.py
@@ -470,7 +470,7 @@ def load_job_order(args, t, stdin, print_input_deps=False, relative_deps=False,
if not job_order_object and len(t.tool["inputs"]) > 0:
if toolparser:
- pr... | Update print statements to print function calls To make the code more Python 3 compatible. | py |
diff --git a/jpype/__init__.py b/jpype/__init__.py
index <HASH>..<HASH> 100644
--- a/jpype/__init__.py
+++ b/jpype/__init__.py
@@ -49,6 +49,7 @@ __all__.extend(_jcustomizer.__all__)
__all__.extend(_gui.__all__)
__version__ = "0.7.5"
+__version_info__ = __version__.split('.')
@_core.deprecated | added missing version_info tuple | py |
diff --git a/hszinc/parser.py b/hszinc/parser.py
index <HASH>..<HASH> 100644
--- a/hszinc/parser.py
+++ b/hszinc/parser.py
@@ -17,6 +17,9 @@ import json
# Bring in version handling
from .version import Version, LATEST_VER
+# Trailing newline sanitation
+TRAILING_NL_RE = re.compile(r'\n+$')
+
GRID_SEP = re.compile(... | WC-<I>: parser: Use regex to clean newlines up. | py |
diff --git a/satpy/readers/mirs.py b/satpy/readers/mirs.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/mirs.py
+++ b/satpy/readers/mirs.py
@@ -173,10 +173,10 @@ def limb_correct_atms_bt(bt_data, surf_type_mask, coeff_fns, ds_info):
is_sea = (surf_type_mask == 0)
new_data = da.where(is_sea, sea_bt, land_bt... | Be more direct in assigning dims, and name to new corrected btemp arrays. | py |
diff --git a/nidmresults/objects/inference.py b/nidmresults/objects/inference.py
index <HASH>..<HASH> 100644
--- a/nidmresults/objects/inference.py
+++ b/nidmresults/objects/inference.py
@@ -157,7 +157,7 @@ class ExcursionSet(NIDMObject):
(NFO['fileName'], exc_set_orig_filename),
(NFO['fileNam... | filename and label for excursion set and search space | py |
diff --git a/auto_ml/predictor.py b/auto_ml/predictor.py
index <HASH>..<HASH> 100644
--- a/auto_ml/predictor.py
+++ b/auto_ml/predictor.py
@@ -1,12 +1,30 @@
+from sklearn.feature_extraction import DictVectorizer
+from sklearn.linear_model import LogisticRegression
+from sklearn.pipeline import Pipeline
+import utils
... | adds more variables to Predictor instantiation, and begins to use pipelines | py |
diff --git a/bcbio/pipeline/disambiguate/__init__.py b/bcbio/pipeline/disambiguate/__init__.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/disambiguate/__init__.py
+++ b/bcbio/pipeline/disambiguate/__init__.py
@@ -67,7 +67,7 @@ def run(items, config):
work_bam_a = bam.sort(data_a["work_bam"], config, "queryna... | Fix location of disambiguation directory inside sample directory to avoid multisample directory clashes. Fixes #<I> | py |
diff --git a/spikeinterface/__init__.py b/spikeinterface/__init__.py
index <HASH>..<HASH> 100644
--- a/spikeinterface/__init__.py
+++ b/spikeinterface/__init__.py
@@ -9,7 +9,6 @@ from .extractors.mdaextractors.mdaextractors import MdaRecordingExtractor, MdaSo
from .extractors.mearecextractors.mearecextractors import M... | removed other extractors from init | py |
diff --git a/spyder/plugins/application/container.py b/spyder/plugins/application/container.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/application/container.py
+++ b/spyder/plugins/application/container.py
@@ -342,13 +342,28 @@ class ApplicationContainer(PluginMainContainer):
@Slot()
def show_depende... | Application: Fill deps dialog in case deps haven't been computed yet | py |
diff --git a/lazyconf/lazyconf.py b/lazyconf/lazyconf.py
index <HASH>..<HASH> 100644
--- a/lazyconf/lazyconf.py
+++ b/lazyconf/lazyconf.py
@@ -172,30 +172,6 @@ class Lazyconf():
print(green('Saved data to file: ' + f))
### Prompt/Deprompt functions ###
- def prompt_db_engine(self, p):
- fo... | Removed old prompt functions now handled by lists | py |
diff --git a/aiohttp_apiset/swagger/route.py b/aiohttp_apiset/swagger/route.py
index <HASH>..<HASH> 100644
--- a/aiohttp_apiset/swagger/route.py
+++ b/aiohttp_apiset/swagger/route.py
@@ -66,9 +66,15 @@ class SwaggerRoute(Route):
elif request.content_type in (
'application/x-www-form-urlencoded... | safe decode json & form | py |
diff --git a/shinken/objects/config.py b/shinken/objects/config.py
index <HASH>..<HASH> 100644
--- a/shinken/objects/config.py
+++ b/shinken/objects/config.py
@@ -1505,7 +1505,7 @@ class Config(Item):
nb_elements = 0
for pack in r.packs:
nb_elements += len(pack)
- l... | Add : (reported by : Frederic Pege) output the number of linked packs for each realm when we are in the cutting phase. | py |
diff --git a/subliminal/refiners/tvdb.py b/subliminal/refiners/tvdb.py
index <HASH>..<HASH> 100644
--- a/subliminal/refiners/tvdb.py
+++ b/subliminal/refiners/tvdb.py
@@ -201,6 +201,10 @@ def search_series(name):
:rtype: list
"""
+ results = tvdb_client.search_series(name)
+ if not results:
+ r... | Fix tvdb refiner when search returned no results | py |
diff --git a/tests/test_storage.py b/tests/test_storage.py
index <HASH>..<HASH> 100644
--- a/tests/test_storage.py
+++ b/tests/test_storage.py
@@ -45,8 +45,6 @@ from qiniustorage.backends import QiniuStorage, QiniuFile
from qiniustorage.utils import QiniuError
USING_TRAVIS = os.environ.get('USING_TRAVIS', None) is ... | Test: remove qiniu global upload zone. | py |
diff --git a/lark/__init__.py b/lark/__init__.py
index <HASH>..<HASH> 100644
--- a/lark/__init__.py
+++ b/lark/__init__.py
@@ -5,4 +5,4 @@ from .exceptions import ParseError, LexError, GrammarError, UnexpectedToken, Une
from .lexer import Token
from .lark import Lark
-__version__ = "0.6.6"
+__version__ = "0.7.0" | Major Version bump (<I>) | py |
diff --git a/eli5/sklearn/utils.py b/eli5/sklearn/utils.py
index <HASH>..<HASH> 100644
--- a/eli5/sklearn/utils.py
+++ b/eli5/sklearn/utils.py
@@ -41,7 +41,7 @@ def get_feature_names(clf, vec=None, bias_name='<BIAS>', feature_names=None):
feature_names = ["x%d" % i for i in range(num_features)]
else:
... | fixed get_feature_names for classifiers without coef_ when feature_names is passed | py |
diff --git a/src/pyipmi/sel.py b/src/pyipmi/sel.py
index <HASH>..<HASH> 100644
--- a/src/pyipmi/sel.py
+++ b/src/pyipmi/sel.py
@@ -79,7 +79,8 @@ class Helper:
record_data = []
while True:
m.req.length = self.max_req_len
- if (m.req.offset + m.req.length) > 16:
+... | sel: full SDR support in sel_entries() | py |
diff --git a/spyderlib/utils/sphinxify.py b/spyderlib/utils/sphinxify.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/sphinxify.py
+++ b/spyderlib/utils/sphinxify.py
@@ -430,7 +430,7 @@ html_use_modindex = False
html_use_index = False
html_split_index = False
html_copy_source = False
- '''
+'''
# From... | Object inspector's rich text mode: fixed unexpected indent error We can't reproduce this bug reliably, but we have a fix thanks to ruoyu<I> Update Issue <I> Status: Fixed | py |
diff --git a/tests/unit/test_version.py b/tests/unit/test_version.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_version.py
+++ b/tests/unit/test_version.py
@@ -175,7 +175,8 @@ class VersionTestCase(TestCase):
'returncode.return_value': 0}
proc_ret = MagicMock(**attrs)
... | patch os.path for discover version test | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,11 +29,11 @@ class PyTest(TestCommand):
setup(
name = "cmocean",
- version = "0.2.2",
+ version = "0.3",
author = "Kristen Thyng",
author_email = "kthyng@gmail.com",
url = 'https://github.com/m... | updated version to <I> for pypi | py |
diff --git a/raiden/api/python.py b/raiden/api/python.py
index <HASH>..<HASH> 100644
--- a/raiden/api/python.py
+++ b/raiden/api/python.py
@@ -5,6 +5,7 @@ from eth_utils import is_binary_address, to_checksum_address
import raiden.blockchain.events as blockchain_events
from raiden import waiting
+from raiden.constan... | Only check for deposit_limit if network type is main | py |
diff --git a/django_extensions/db/fields/encrypted.py b/django_extensions/db/fields/encrypted.py
index <HASH>..<HASH> 100644
--- a/django_extensions/db/fields/encrypted.py
+++ b/django_extensions/db/fields/encrypted.py
@@ -34,10 +34,10 @@ class BaseEncryptedField(models.Field):
def to_python(self, value):
... | Fix #<I> patch to handle retval type None | py |
diff --git a/src/deft/systests/support.py b/src/deft/systests/support.py
index <HASH>..<HASH> 100644
--- a/src/deft/systests/support.py
+++ b/src/deft/systests/support.py
@@ -167,7 +167,10 @@ class InMemoryEnvironment(object):
stderr = StringIO()
def fake_editor(path):
- self.stor... | fixed fake editor in memory systest environment | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100644
--- a/runtests.py
+++ b/runtests.py
@@ -8,7 +8,11 @@ if __name__ == "__main__":
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.test_settings'
from django.conf import settings
from django.test.utils import get_runner
- #django.setup()
+ ... | Adding django <I>+ compatibility for custom test running | py |
diff --git a/mocpy/abstract_moc.py b/mocpy/abstract_moc.py
index <HASH>..<HASH> 100644
--- a/mocpy/abstract_moc.py
+++ b/mocpy/abstract_moc.py
@@ -318,6 +318,8 @@ class AbstractMOC:
# Import lark parser when from_str is called
# at least one time
from lark import Lark, Transformer
+ cl... | raise ParsingException referring to the IVOA MOC paper and its grammar for expression MOC from strings | py |
diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py
index <HASH>..<HASH> 100644
--- a/buildozer/targets/android.py
+++ b/buildozer/targets/android.py
@@ -866,10 +866,19 @@ class TargetAndroid(Target):
def _add_java_src(self, dist_dir):
java_src = self.buildozer.config.getlist('app',... | fix gradle build not correctly detected the very first time | py |
diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/simple_httpclient_test.py
+++ b/tornado/test/simple_httpclient_test.py
@@ -185,9 +185,16 @@ class SimpleHTTPClientTestCase(AsyncHTTPTestCase, LogTrapTestCase):
self.trigge... | Test improvement: order-independent comparison, better cleanup. For some reason the results are coming back out of order in python<I> (select vs kqueue, maybe?) | py |
diff --git a/spyder/widgets/fileswitcher.py b/spyder/widgets/fileswitcher.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/fileswitcher.py
+++ b/spyder/widgets/fileswitcher.py
@@ -760,6 +760,10 @@ class FileSwitcher(QDialog):
# To adjust the delegate layout for KDE themes
self.list.files_list = Fal... | Set focus for filter line when doing symbol search. | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -1324,6 +1324,8 @@ class Session(object):
fetch_size = query.fetch_size
if fetch_size is FETCH_SIZE_UNSET and self._protocol_version >= 2:
fetch_si... | Avoid setting fetch_size when unset with v1 protocol | py |
diff --git a/GPy/util/threaded_cluster_with_offset.py b/GPy/util/threaded_cluster_with_offset.py
index <HASH>..<HASH> 100644
--- a/GPy/util/threaded_cluster_with_offset.py
+++ b/GPy/util/threaded_cluster_with_offset.py
@@ -1,6 +1,9 @@
# Copyright (c) 2016, Mike Smith
# Licensed under the BSD 3-clause license (see LIC... | Don't use message added to cluster code | py |
diff --git a/sas_kernel/kernel.py b/sas_kernel/kernel.py
index <HASH>..<HASH> 100644
--- a/sas_kernel/kernel.py
+++ b/sas_kernel/kernel.py
@@ -119,7 +119,7 @@ class SASKernel(MetaKernel):
return log
def do_execute(self, code, silent=False, store_history=True, user_expressions=None, allow_stdin=False):
-... | change path+version to sas startup script | py |
diff --git a/saltapi/netapi/rest_cherrypy/__init__.py b/saltapi/netapi/rest_cherrypy/__init__.py
index <HASH>..<HASH> 100644
--- a/saltapi/netapi/rest_cherrypy/__init__.py
+++ b/saltapi/netapi/rest_cherrypy/__init__.py
@@ -128,7 +128,7 @@ def hypermedia_handler(*args, **kwargs):
if not e.status == 406:
... | Added 'static' config setting to global opts | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -83,7 +83,9 @@ setup(
'google-api-python-client>=1.6.4',
'requests>=2.18.4',
'lxml>=4.1.1',
- 'praw>=5.2.0'
+ 'praw>=5.2.0',
+ 'soundcloud>=0.5.0',
+ 'spotipy>=2.4.4'
... | Added soundcloud and spotipy to requirements | py |
diff --git a/wallace/heroku/clock.py b/wallace/heroku/clock.py
index <HASH>..<HASH> 100644
--- a/wallace/heroku/clock.py
+++ b/wallace/heroku/clock.py
@@ -5,7 +5,7 @@ from wallace import db
import os
import imp
import inspect
-from psiturk.models import Participant
+from wallace.models import Participant
from datet... | update clock to use Wallace's participants table | py |
diff --git a/tests/test_oauth2_session.py b/tests/test_oauth2_session.py
index <HASH>..<HASH> 100644
--- a/tests/test_oauth2_session.py
+++ b/tests/test_oauth2_session.py
@@ -2,7 +2,10 @@ from __future__ import unicode_literals
import json
import mock
import time
-import unittest
+try:
+ from unittest2 import Tes... | Use unittest2 when it is installed | py |
diff --git a/torchvision/transforms.py b/torchvision/transforms.py
index <HASH>..<HASH> 100644
--- a/torchvision/transforms.py
+++ b/torchvision/transforms.py
@@ -690,9 +690,9 @@ class RandomSizedCrop(object):
return i, j, h, w
# Fallback
- w = min(img.size[0], img.shape[1])
- ... | Fix: img.shape to img.size in RandomSizedCrop (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,18 @@ setup(name='hdf5storage',
author_email='fnordsie@gmail.com',
url='https://github.com/frejanordsiek/hdf5storage',
packages=['hdf5storage'],
- install_requires=['setuptools', 'numpy', 'h... | Updated requirements list in setup.py to better elliminate versions of numpy and h5py incompatible with older versions of python. | py |
diff --git a/hpfeeds/broker/prometheus.py b/hpfeeds/broker/prometheus.py
index <HASH>..<HASH> 100644
--- a/hpfeeds/broker/prometheus.py
+++ b/hpfeeds/broker/prometheus.py
@@ -135,9 +135,14 @@ async def metrics(request):
return web.Response(text=data.decode('utf-8'), content_type='text/plain', charset='utf-8')
... | Lightweight /healthz health check | py |
diff --git a/giveme/injector.py b/giveme/injector.py
index <HASH>..<HASH> 100644
--- a/giveme/injector.py
+++ b/giveme/injector.py
@@ -123,6 +123,8 @@ class Injector:
"""
if name in self._singleton:
del self._singleton[name]
+ if hasattr(self._local, name):
+ delattr(sel... | remove dependency from current thread local storage on delete | py |
diff --git a/PyPump.py b/PyPump.py
index <HASH>..<HASH> 100644
--- a/PyPump.py
+++ b/PyPump.py
@@ -229,7 +229,7 @@ class PyPump(object):
def set_nickname(self, nickname):
""" This sets the nickname being used """
if nickname:
- self.nickname = str(self.nickname) # everything in python ... | Fixes #<I> - Nickname set to None | py |
diff --git a/elyzer/__main__.py b/elyzer/__main__.py
index <HASH>..<HASH> 100644
--- a/elyzer/__main__.py
+++ b/elyzer/__main__.py
@@ -3,8 +3,14 @@ urllib3.disable_warnings()
import argparse
from elasticsearch import Elasticsearch, TransportError
-from elyzer import stepWise, getAnalyzer
-from envDefault import Env... | Hack to deal with pyenv installs | py |
diff --git a/pynbt/nbt.py b/pynbt/nbt.py
index <HASH>..<HASH> 100644
--- a/pynbt/nbt.py
+++ b/pynbt/nbt.py
@@ -206,8 +206,9 @@ class TAG_List(BaseTag, list):
"""
self.name = name
self.value = self
- self.extend(value)
self.type_ = tag_type
+ if value is not None:
+ ... | Both TAG_List and TAG_Compound can be constructed without passing a value (defaulting to an empty list and compound, respectively). | py |
diff --git a/extract_toc/extract_toc.py b/extract_toc/extract_toc.py
index <HASH>..<HASH> 100644
--- a/extract_toc/extract_toc.py
+++ b/extract_toc/extract_toc.py
@@ -29,6 +29,8 @@ def extract_toc(content):
toc = soup.find('div', class_='toc')
if toc:
toc.extract()
+ if len(toc... | extract_toc: do not populate article.toc with empty list In Markdown, if user adds `[TOC]` and the article does not contain any headings, then `article.toc` ends up getting empty list. ``` <div><ul></ul></div> ``` This patch fixes this issue. Related to <URL> | py |
diff --git a/telethon/telegram_bare_client.py b/telethon/telegram_bare_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_bare_client.py
+++ b/telethon/telegram_bare_client.py
@@ -658,7 +658,7 @@ class TelegramBareClient:
self._sender.receive(update_state=self.updates)
except Ti... | Make timeout logging message debug to scare people less | py |
diff --git a/google_compute_engine/instance_setup/instance_config.py b/google_compute_engine/instance_setup/instance_config.py
index <HASH>..<HASH> 100644
--- a/google_compute_engine/instance_setup/instance_config.py
+++ b/google_compute_engine/instance_setup/instance_config.py
@@ -41,7 +41,7 @@ class InstanceConfig(co... | Add user to docker group if exists. (#<I>) | py |
diff --git a/vex/main.py b/vex/main.py
index <HASH>..<HASH> 100644
--- a/vex/main.py
+++ b/vex/main.py
@@ -146,7 +146,7 @@ def handle_shell_config(options, vexrc, environ):
data = shell_config.shell_config_for(
options.shell_to_configure, vexrc, environ)
if not data:
- raise OtherShell(options... | better complaint for unknown --shell-config arg | py |
diff --git a/libgenapi/libgenapi.py b/libgenapi/libgenapi.py
index <HASH>..<HASH> 100644
--- a/libgenapi/libgenapi.py
+++ b/libgenapi/libgenapi.py
@@ -111,8 +111,9 @@ class Libgenapi(object):
urllib.parse.urlencode(request)
g.go(url)
search_result = []
- nbo... | Fixed issue with some mirrors when getting the number of results. | py |
diff --git a/glitter/pages/admin.py b/glitter/pages/admin.py
index <HASH>..<HASH> 100644
--- a/glitter/pages/admin.py
+++ b/glitter/pages/admin.py
@@ -37,10 +37,6 @@ class PageAdmin(GlitterAdminMixin, DjangoMpttAdmin, MPTTModelAdmin):
change_form_template = 'admin/pages/page/change_form.html'
form = PageAdmin... | Remove __init__ method from the PageAdmin | py |
diff --git a/tests/integration/shell/call.py b/tests/integration/shell/call.py
index <HASH>..<HASH> 100644
--- a/tests/integration/shell/call.py
+++ b/tests/integration/shell/call.py
@@ -215,7 +215,7 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
open(os.path.join(config_dir, ... | Add ref to ret in test_<I> | py |
diff --git a/tests/test_discrete_quadratic_model.py b/tests/test_discrete_quadratic_model.py
index <HASH>..<HASH> 100644
--- a/tests/test_discrete_quadratic_model.py
+++ b/tests/test_discrete_quadratic_model.py
@@ -429,7 +429,7 @@ class TestConstraint(unittest.TestCase):
for j in x:
if j >... | bugfix in the new test for add_constraint | py |
diff --git a/werkzeug/urls.py b/werkzeug/urls.py
index <HASH>..<HASH> 100644
--- a/werkzeug/urls.py
+++ b/werkzeug/urls.py
@@ -322,8 +322,8 @@ def _url_unquote_legacy(value, unsafe=''):
def url_parse(url, scheme=None, allow_fragments=True):
"""Parses a URL from a string into a :class:`URL` tuple. If the URL
- ... | a few more docstring modifications | py |
diff --git a/kmapper/kmapper.py b/kmapper/kmapper.py
index <HASH>..<HASH> 100644
--- a/kmapper/kmapper.py
+++ b/kmapper/kmapper.py
@@ -241,6 +241,8 @@ class KeplerMapper(object):
graph = {}
self.clusterer = clusterer
+ self.nr_cubes = nr_cubes
+ self.overlap_perc = overlap_perc
... | Update overlap_perc and nr_cubes in fit_transform. Previously, it would not display the values properly in the HTML output. This fixes that. | py |
diff --git a/werkzeug/utils.py b/werkzeug/utils.py
index <HASH>..<HASH> 100644
--- a/werkzeug/utils.py
+++ b/werkzeug/utils.py
@@ -275,6 +275,26 @@ class FileStorage(object):
self.content_length = content_length
self.stream = stream
+ def save(self, dst, buffer_size=16384):
+ """
+ ... | added save() method to file storage --HG-- branch : trunk | py |
diff --git a/egoio/db_tables/model_draft.py b/egoio/db_tables/model_draft.py
index <HASH>..<HASH> 100644
--- a/egoio/db_tables/model_draft.py
+++ b/egoio/db_tables/model_draft.py
@@ -4189,6 +4189,15 @@ class EgoSupplyPfGeneratorSingle(Base):
ego_grid_pf_hv_source = relationship('EgoGridPfHvSource')
+class EgoS... | model_draft adapted to materialized view on generator single subset (for specs performance) | py |
diff --git a/openquake/hazardlib/pmf.py b/openquake/hazardlib/pmf.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/pmf.py
+++ b/openquake/hazardlib/pmf.py
@@ -68,6 +68,6 @@ class PMF(object):
:returns:
Samples from PMF as a list
"""
- probs = np.cumsum(np.array([val[0] for ... | Removes call to np.array in pmf sampler | py |
diff --git a/fireplace/cards.py b/fireplace/cards.py
index <HASH>..<HASH> 100644
--- a/fireplace/cards.py
+++ b/fireplace/cards.py
@@ -71,6 +71,7 @@ class Card(XMLCard):
self.uuid = uuid.uuid4()
self.owner = None
self.status = self.STATUS_DECK
+ self.damageCounter = 0
super().__init__(id)
def __str__(s... | Properly implement currentHealth and heal() | py |
diff --git a/plugins/data_importers/tools/csv_multi_reader/2017-07-21_v0.0.1.py b/plugins/data_importers/tools/csv_multi_reader/2017-07-21_v0.0.1.py
index <HASH>..<HASH> 100644
--- a/plugins/data_importers/tools/csv_multi_reader/2017-07-21_v0.0.1.py
+++ b/plugins/data_importers/tools/csv_multi_reader/2017-07-21_v0.0.1.... | Solved problem with the datetime_column not being the first column | py |
diff --git a/opbeat/conf/defaults.py b/opbeat/conf/defaults.py
index <HASH>..<HASH> 100644
--- a/opbeat/conf/defaults.py
+++ b/opbeat/conf/defaults.py
@@ -29,7 +29,7 @@ ERROR_API_PATH = '/api/v1/organizations/{0}/apps/{1}/errors/'
# Transactions API path
TRANSACTIONS_API_PATH = '/api/v1/organizations/{0}/apps/{1}/tra... | Make default timeout much bigger now that we send asynchronously. | py |
diff --git a/hwt/hdl/types/bitsVal.py b/hwt/hdl/types/bitsVal.py
index <HASH>..<HASH> 100644
--- a/hwt/hdl/types/bitsVal.py
+++ b/hwt/hdl/types/bitsVal.py
@@ -495,7 +495,7 @@ class BitsVal(Bits3val, EventCapableVal, HValue):
def __mul__(self, other):
Bits = self._dtype.__class__
- other = toHVal(... | BitsVal.__mul__: fix missing type suggestion for right operand | py |
diff --git a/src/bio2bel/cli_utils.py b/src/bio2bel/cli_utils.py
index <HASH>..<HASH> 100644
--- a/src/bio2bel/cli_utils.py
+++ b/src/bio2bel/cli_utils.py
@@ -17,9 +17,17 @@ def add_management_to_cli(main):
"""
@main.command()
+ @click.option('--reset', is_flag=True)
@click.pass_obj
- def populat... | Add reset option to database population in CLI | py |
diff --git a/greenhouse/pool.py b/greenhouse/pool.py
index <HASH>..<HASH> 100644
--- a/greenhouse/pool.py
+++ b/greenhouse/pool.py
@@ -36,6 +36,13 @@ class Pool(object):
def get(self):
return self.outq.get()
+ def __enter__(self):
+ self.start()
+ return self
+
+ def __exit__(self, t... | trying out a context manager use of Pools | py |
diff --git a/jptsmeta.py b/jptsmeta.py
index <HASH>..<HASH> 100644
--- a/jptsmeta.py
+++ b/jptsmeta.py
@@ -578,9 +578,18 @@ class JPTSMeta(object):
def getRelatedArticle(self):
"""
-
- """
- return None
+ <related-article> is an optional element, 0 or more, within
+ <... | getRelatedArticle() now includes a docstring with some explanation about how it may be handled. It collects the nodes into a list but does no processing | py |
diff --git a/kademlia/routing.py b/kademlia/routing.py
index <HASH>..<HASH> 100644
--- a/kademlia/routing.py
+++ b/kademlia/routing.py
@@ -1,8 +1,9 @@
import heapq
import time
import operator
-from collections import OrderedDict
+import asyncio
+from collections import OrderedDict
from kademlia.utils import Order... | Async call should be scheduled in loop | py |
diff --git a/timeside/analyzer/aubio_pitch.py b/timeside/analyzer/aubio_pitch.py
index <HASH>..<HASH> 100644
--- a/timeside/analyzer/aubio_pitch.py
+++ b/timeside/analyzer/aubio_pitch.py
@@ -50,21 +50,22 @@ class AubioPitch(Processor):
@staticmethod
@interfacedoc
def unit():
- return "Hz"
+ ... | timeside/analyzer/aubio_pitch.py: use AnalyzerResult | py |
diff --git a/DBUtils/SteadyDB.py b/DBUtils/SteadyDB.py
index <HASH>..<HASH> 100644
--- a/DBUtils/SteadyDB.py
+++ b/DBUtils/SteadyDB.py
@@ -548,6 +548,13 @@ class SteadyDBCursor:
else:
cursor.setoutputsize(size, column)
+ def __enter__(self):
+ return self
+
+ def __exit__(se... | add support for statement using cursors | py |
diff --git a/thinc/api.py b/thinc/api.py
index <HASH>..<HASH> 100644
--- a/thinc/api.py
+++ b/thinc/api.py
@@ -51,6 +51,26 @@ def flatten_add_lengths(seqs, pad=0, drop=0.):
return (X, lengths), finish_update
+def remap_ids(ops=None, column=0):
+ id_map = {0: 0}
+ def remap_ids_fwd(ids, drop=0.):
+ ... | Move remap_ids to api | py |
diff --git a/decode/core/cube/functions.py b/decode/core/cube/functions.py
index <HASH>..<HASH> 100644
--- a/decode/core/cube/functions.py
+++ b/decode/core/cube/functions.py
@@ -88,8 +88,10 @@ def tocube(array, **kwargs):
decode cube (decode.cube): Decode cube.
Notes:
- When xarr and yarr are sp... | Updated docstrings of tocube | py |
diff --git a/pymc/plot.py b/pymc/plot.py
index <HASH>..<HASH> 100644
--- a/pymc/plot.py
+++ b/pymc/plot.py
@@ -20,7 +20,7 @@ def traceplot(trace, vars=None):
return f
def kdeplot(ax, data):
- data = data[...,np.newaxis]
+ data = np.atleast_2d(data.T).T
for i in range(data.shape[1]):
d = dat... | fixed traceplot problem for different shape arrays | py |
diff --git a/filterpy/kalman/__init__.py b/filterpy/kalman/__init__.py
index <HASH>..<HASH> 100644
--- a/filterpy/kalman/__init__.py
+++ b/filterpy/kalman/__init__.py
@@ -17,14 +17,15 @@ for more information.
from __future__ import (absolute_import, division, print_function,
unicode_literals)
... | Added imm.py, reordered alphabetically. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ def find_packages(path, base="" ):
packages.update(find_packages(dir, module_name))
return packages
-packages=find_packages("..")
+packages=find_packages(os.path.join(os.path.dirname(os.path.... | Fixing the setup.py file so that it excecute correctly when called from a different repository. | py |
diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/command.py
+++ b/pyghmi/ipmi/command.py
@@ -257,6 +257,7 @@ class Command(object):
requested state change for 300 seconds.
If a non-zero number, adjust the wait time to ... | Raise IpmiException on error checking power state To be consistent with the rest of the method this conditional should raise an exception instead of returning a dictionary with error. Also a :raises: note was added to the set_power docstring. Change-Id: I3d<I>d<I>bb<I>c0ce3cd4cdb<I>b<I> | py |
diff --git a/fontbakery.py b/fontbakery.py
index <HASH>..<HASH> 100644
--- a/fontbakery.py
+++ b/fontbakery.py
@@ -69,6 +69,8 @@ def main(sources, config):
if __name__ == '__main__':
+ sys.path.append(0, os.path.abspath(os.path.dirname(__file__)))
+
parser = argparse.ArgumentParser()
parser.add_argume... | if fontbakery run as main script add to sys.path #<I> | py |
diff --git a/localized_fields/admin.py b/localized_fields/admin.py
index <HASH>..<HASH> 100644
--- a/localized_fields/admin.py
+++ b/localized_fields/admin.py
@@ -1,5 +1,3 @@
-from django.contrib.admin import ModelAdmin
-
from . import widgets
from .fields import LocalizedField, LocalizedCharField, LocalizedTextField... | Fix using LocalizedFieldsAdminMixin with inlines | py |
diff --git a/tofu/data/_DataCollection_plot.py b/tofu/data/_DataCollection_plot.py
index <HASH>..<HASH> 100644
--- a/tofu/data/_DataCollection_plot.py
+++ b/tofu/data/_DataCollection_plot.py
@@ -1218,7 +1218,7 @@ def plot_as_array_3d(
dmargin = {
'left': 0.05, 'right': 0.95,
... | [#<I>] Minor change | py |
diff --git a/tools/run_tests/run_interop_tests.py b/tools/run_tests/run_interop_tests.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_interop_tests.py
+++ b/tools/run_tests/run_interop_tests.py
@@ -947,9 +947,13 @@ if not args.use_docker and servers:
print('Running interop servers is only supported with --u... | removed 'objc' from list of 'all' languages | py |
diff --git a/setuptools/tests/test_packageindex.py b/setuptools/tests/test_packageindex.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_packageindex.py
+++ b/setuptools/tests/test_packageindex.py
@@ -3,6 +3,7 @@ from __future__ import absolute_import
import sys
import os
import distutils.errors
+import pl... | Add platform-specific code to override the home directory to honor bpo-<I>. Fixes #<I>. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.