diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/simuvex/s_state.py b/simuvex/s_state.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_state.py
+++ b/simuvex/s_state.py
@@ -93,7 +93,22 @@ class SimState(ana.Storable): # pylint: disable=R0904
for p in self.plugins.values():
p.set_state(self)
- # easier access to some properties
+ ... | some backwards compatibility to give people a chance to get used to the changes | py |
diff --git a/GPy/kern/_src/coregionalize.py b/GPy/kern/_src/coregionalize.py
index <HASH>..<HASH> 100644
--- a/GPy/kern/_src/coregionalize.py
+++ b/GPy/kern/_src/coregionalize.py
@@ -154,9 +154,9 @@ class Coregionalize(Kern):
def _gradient_reduce_numpy(self, dL_dK, index, index2):
index, index2 = index[:,... | minor error in corregionalization corrected | py |
diff --git a/salt/returners/local_cache.py b/salt/returners/local_cache.py
index <HASH>..<HASH> 100644
--- a/salt/returners/local_cache.py
+++ b/salt/returners/local_cache.py
@@ -420,8 +420,7 @@ def clean_old_jobs():
shutil.rmtree(t_path)
elif os.path.isfile(jid_file):
... | Remove `cur` variable, use time.time() in comparison | py |
diff --git a/trashcli/list.py b/trashcli/list.py
index <HASH>..<HASH> 100644
--- a/trashcli/list.py
+++ b/trashcli/list.py
@@ -160,6 +160,3 @@ class ListCmdOutput:
def top_trashdir_skipped_because_parent_is_symlink(self, trashdir):
self.error("TrashDir skipped because parent is symlink: %s"
... | Refactor: removed unused method: ListCmdOutput.print_entry | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ setup(name='rejected',
'pika<1',
'psutil',
'pyyaml',
- 'tornado>=4.2,<5'
+ 'tornado>=4.2,<4.5'
],
extras_require={
'html': ['beautifuls... | Be slightly more restrictive for Python <I> | py |
diff --git a/django_seed/providers.py b/django_seed/providers.py
index <HASH>..<HASH> 100644
--- a/django_seed/providers.py
+++ b/django_seed/providers.py
@@ -29,8 +29,8 @@ class Provider(object):
def rand_small_int(self, pos=False):
if pos:
- return random.randint(0, 65535)
- return r... | change rand_small_int range | py |
diff --git a/session_security/__init__.py b/session_security/__init__.py
index <HASH>..<HASH> 100644
--- a/session_security/__init__.py
+++ b/session_security/__init__.py
@@ -1,7 +1 @@
-try:
- import unittest_data_provider
-except ImportError:
- print '''
- django-session-security tests require: pip install un... | Removed useless statement. If you are smart enough to run tests, then you should be smart enough to pip install a missing package. | py |
diff --git a/master/buildbot/util/lru.py b/master/buildbot/util/lru.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/util/lru.py
+++ b/master/buildbot/util/lru.py
@@ -193,6 +193,28 @@ class AsyncLRUCache(object):
del cache[k]
del refcount[k]
+ def inv(self):
+ """Check invarian... | add (un-called) invariant-checking method to AsyncLRUCache | py |
diff --git a/peri/states.py b/peri/states.py
index <HASH>..<HASH> 100644
--- a/peri/states.py
+++ b/peri/states.py
@@ -632,7 +632,7 @@ class ImageState(State, comp.ComponentCollection):
otile = self.get_update_tile(params, values)
if otile is None:
return [None]*3
- ptile = self.ge... | Generalizing ImageState.get_update_tile to not care about dimensions. | py |
diff --git a/sphinx_me.py b/sphinx_me.py
index <HASH>..<HASH> 100755
--- a/sphinx_me.py
+++ b/sphinx_me.py
@@ -166,7 +166,7 @@ def setup_conf(conf_globals):
"release": version,
"project": project_path.rstrip(sep).split(sep)[-1],
"master_doc": "index",
- "copyright": u"%s, %s" % (dateti... | Removed unicode identifier to ensure Python 3 compatibility. | py |
diff --git a/l/tests/test_core.py b/l/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/l/tests/test_core.py
+++ b/l/tests/test_core.py
@@ -3,23 +3,7 @@ from unittest import TestCase
from bp.memory import MemoryFS, MemoryPath
-from l.core import ls, show
-
-
-class TestLS(TestCase):
- def setUp(self):
- ... | Remove this for now, it's useless. | py |
diff --git a/oplus/version.py b/oplus/version.py
index <HASH>..<HASH> 100644
--- a/oplus/version.py
+++ b/oplus/version.py
@@ -1 +1 @@
-version='5.1.3'
+version='6.0.0-beta.0' | updated version as <I>-beta<I> | py |
diff --git a/ppb/__init__.py b/ppb/__init__.py
index <HASH>..<HASH> 100644
--- a/ppb/__init__.py
+++ b/ppb/__init__.py
@@ -31,8 +31,9 @@ class BaseSprite(Sprite):
ppb.sprites.BaseSprite.
"""
- def __init__(self, *args, **kwargs):
+ def __init__(self, **kwargs):
warnings.warn(self.__warning, D... | BaseSprite stub needs to call super().__init__ to work properly. | py |
diff --git a/bdbag/fetch/transports/fetch_boto3.py b/bdbag/fetch/transports/fetch_boto3.py
index <HASH>..<HASH> 100644
--- a/bdbag/fetch/transports/fetch_boto3.py
+++ b/bdbag/fetch/transports/fetch_boto3.py
@@ -95,6 +95,10 @@ def get_file(url, output_path, auth_config, **kwargs):
raise RuntimeError("Unable to ... | Ensure data dir exists before S3 transfer. | py |
diff --git a/fusionbox/forms/forms.py b/fusionbox/forms/forms.py
index <HASH>..<HASH> 100644
--- a/fusionbox/forms/forms.py
+++ b/fusionbox/forms/forms.py
@@ -82,7 +82,7 @@ class SearchForm(BaseChangeListForm):
qs = self.pre_search(qs)
# Do Searching
- q = self.cleaned_data.get('q', None)
+ ... | added whitespace stripping from SearchForm | py |
diff --git a/nanoplotter/plot.py b/nanoplotter/plot.py
index <HASH>..<HASH> 100644
--- a/nanoplotter/plot.py
+++ b/nanoplotter/plot.py
@@ -1,6 +1,7 @@
from base64 import b64encode
from io import BytesIO
from urllib.parse import quote as urlquote
+import sys
class Plot(object):
@@ -32,3 +33,15 @@ class Plot(obje... | adding method to save fig or html plot | py |
diff --git a/flask_socketio/__init__.py b/flask_socketio/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_socketio/__init__.py
+++ b/flask_socketio/__init__.py
@@ -314,11 +314,11 @@ class SocketIO(object):
else:
port = 5000
- self.server_options.update(kwargs)
- debug = ... | Avoid argument collisions in run() method | py |
diff --git a/tests/test_year_end_charts.py b/tests/test_year_end_charts.py
index <HASH>..<HASH> 100644
--- a/tests/test_year_end_charts.py
+++ b/tests/test_year_end_charts.py
@@ -53,9 +53,6 @@ class TestHot100Songs2019(Base, unittest.TestCase):
cls.expectedTitle = "Hot 100 Songs - Year-End"
cls.expect... | Fix failing test for year-end chart (new chart came out?) | py |
diff --git a/salt/states/postgres_group.py b/salt/states/postgres_group.py
index <HASH>..<HASH> 100644
--- a/salt/states/postgres_group.py
+++ b/salt/states/postgres_group.py
@@ -124,7 +124,7 @@ def present(name,
'comment': 'Group {0} is already present'.format(name)}
salt.utils.warn_until(
- ... | Bump deprecations to Lithium | py |
diff --git a/uncompyle6/parsers/reducecheck/tryelsestmtl3.py b/uncompyle6/parsers/reducecheck/tryelsestmtl3.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/parsers/reducecheck/tryelsestmtl3.py
+++ b/uncompyle6/parsers/reducecheck/tryelsestmtl3.py
@@ -29,6 +29,8 @@ def tryelsestmtl3(self, lhs, n, rule, ast, tokens, firs... | tryelsestmtl3 needs more checks | py |
diff --git a/httpretty/__init__.py b/httpretty/__init__.py
index <HASH>..<HASH> 100644
--- a/httpretty/__init__.py
+++ b/httpretty/__init__.py
@@ -75,7 +75,7 @@ def utf8(s):
return str(s)
-class HTTPrettyRequest(BaseHTTPRequestHandler):
+class HTTPrettyRequest(BaseHTTPRequestHandler, object):
def __init__... | turning HTTPrettyRequest into a new-style class | py |
diff --git a/pyemma/msm/ui/timescales.py b/pyemma/msm/ui/timescales.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/ui/timescales.py
+++ b/pyemma/msm/ui/timescales.py
@@ -127,10 +127,12 @@ class ImpliedTimescales(object):
"""
# connected set
- C = (connected_cmatrix(C)).toarray()
- ... | [msm.ui.timescales]: changing from sparse to dense at the end to save estimation time | py |
diff --git a/wptools/fetch.py b/wptools/fetch.py
index <HASH>..<HASH> 100644
--- a/wptools/fetch.py
+++ b/wptools/fetch.py
@@ -58,7 +58,7 @@ class WPToolsFetch:
}
silent = False
- timeout = 5
+ timeout = 15
title = None
def __init__(self, lang='en', silent=False, verbose=False, wiki=None): | bump timeout=<I> in fetch | py |
diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_client.py
+++ b/telethon/telegram_client.py
@@ -1673,7 +1673,7 @@ class TelegramClient(TelegramBareClient):
if m.has('duration') else 0)
... | Better handling of video notes (#<I>) | py |
diff --git a/src/matrix/__init__.py b/src/matrix/__init__.py
index <HASH>..<HASH> 100644
--- a/src/matrix/__init__.py
+++ b/src/matrix/__init__.py
@@ -76,7 +76,7 @@ class Reducer(object):
class Entry(object):
def __init__(self, value):
value = value.strip()
- if not value or value == '-':
+ ... | Fix handling when having aliased entries that have empty ("-") values. | py |
diff --git a/tests/integration/test_session.py b/tests/integration/test_session.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_session.py
+++ b/tests/integration/test_session.py
@@ -19,7 +19,7 @@ def test_session_with_processing(mini_sentry, relay_with_processing, sessions_co
"seq": 42,
... | test(sessions): Update sample_rate with more realistic value | py |
diff --git a/km3pipe/tools.py b/km3pipe/tools.py
index <HASH>..<HASH> 100644
--- a/km3pipe/tools.py
+++ b/km3pipe/tools.py
@@ -339,8 +339,24 @@ def istype(obj, typename):
return type(obj).__name__ == typename
+def isnotebook():
+ """Check if running within a Jupyter notebook"""
+ try:
+ shell = ge... | Support colour in jupyter notebook again | py |
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index <HASH>..<HASH> 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2550,9 +2550,7 @@ Usage: Usage: unalias [-a] name [name ...]
:param args: argparse parsed arguments from the set command
:param parameter: optional search parameter
"""
- par... | Removed a couple unecessary lines of code now that parameter arg to show() method has a default value | py |
diff --git a/pyuntl/untldoc.py b/pyuntl/untldoc.py
index <HASH>..<HASH> 100644
--- a/pyuntl/untldoc.py
+++ b/pyuntl/untldoc.py
@@ -211,16 +211,15 @@ def post2pydict(post, ignore_list):
)
)
# Create the UNTL element.
- if content != ''... | Simplify conditionals in creating untl element in post2pydict. | py |
diff --git a/worldengine/cli/main.py b/worldengine/cli/main.py
index <HASH>..<HASH> 100644
--- a/worldengine/cli/main.py
+++ b/worldengine/cli/main.py
@@ -68,7 +68,7 @@ def generate_world(world_name, width, height, seed, num_plates, output_dir,
def generate_grayscale_heightmap(world, filename):
- draw_grayscale... | Now output directory will be created if needed. Fixed wrong call for generate heightmap. Former-commit-id: <I>e<I>bf<I>eea4c9b7cc<I>e6b9d<I>da<I>ab | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -53,7 +53,7 @@ for aline in open("../neuromllite/__init__.py"):
# space here is important since __version__ is used in generation of
# version_info also
if "__version__ =" in aline:
- vers... | Ensuring correct version in docs | py |
diff --git a/src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py b/src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py
+++ b/src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_comp... | Restore compile-zinc-name-hashing option to follow deprecation cycle (#<I>) | py |
diff --git a/treeherder/seta/settings.py b/treeherder/seta/settings.py
index <HASH>..<HASH> 100644
--- a/treeherder/seta/settings.py
+++ b/treeherder/seta/settings.py
@@ -1,7 +1,7 @@
# repos that SETA supports
SETA_PROJECTS = [
- 'mozilla-inbound',
- 'autoland'
+ 'autoland',
+ 'try'
]
# for taskcluste... | Bug <I> - SETA to be enabled for Try (#<I>) Currently SETA is restricted to only accept API calls for autoland and mozilla-inbound: <URL> | py |
diff --git a/src/Exscript/workqueue/MainLoop.py b/src/Exscript/workqueue/MainLoop.py
index <HASH>..<HASH> 100644
--- a/src/Exscript/workqueue/MainLoop.py
+++ b/src/Exscript/workqueue/MainLoop.py
@@ -98,7 +98,6 @@ class MainLoop(threading.Thread):
if name is None:
name = str(id(function))
... | Exscript.workqueue.MainLoop: fix: send job_init_event when the job is started, not when it is enqueued. | py |
diff --git a/memsql/common/database.py b/memsql/common/database.py
index <HASH>..<HASH> 100644
--- a/memsql/common/database.py
+++ b/memsql/common/database.py
@@ -300,10 +300,16 @@ def escape_query(query, parameters):
else:
assert False, 'not sure what to do with parameters of type %s' % type(para... | Restored _escape_unicode for Python 2 Test Plan: pytest Reviewers: carl Reviewed By: carl Subscribers: engineering Differential Revision: <URL> | py |
diff --git a/openquake/engine/utils/__init__.py b/openquake/engine/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/utils/__init__.py
+++ b/openquake/engine/utils/__init__.py
@@ -75,3 +75,27 @@ def get_calculator_class(job_type, calc_mode):
assert job_type in ("hazard", "risk"), job_type
p... | utils: Added FileWrapper context manager util class. | py |
diff --git a/pypeerassets/kutil.py b/pypeerassets/kutil.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/kutil.py
+++ b/pypeerassets/kutil.py
@@ -1,4 +1,3 @@
-from pypeerassets.base58 import b58decode
from hashlib import sha256
from binascii import hexlify
from os import urandom | b<I> import no longer needed. | py |
diff --git a/nbserverproxy/handlers.py b/nbserverproxy/handlers.py
index <HASH>..<HASH> 100644
--- a/nbserverproxy/handlers.py
+++ b/nbserverproxy/handlers.py
@@ -12,6 +12,14 @@ from notebook.utils import url_path_join
from notebook.base.handlers import IPythonHandler
+class AddSlashHandler(IPythonHandler):
+ "... | Add AddSlashHandler. Subclasses have been duplicating this. | py |
diff --git a/patroni/callback_executor.py b/patroni/callback_executor.py
index <HASH>..<HASH> 100644
--- a/patroni/callback_executor.py
+++ b/patroni/callback_executor.py
@@ -1,5 +1,4 @@
import logging
-import os
import subprocess
from threading import Event, Lock, Thread
@@ -31,7 +30,7 @@ class CallbackExecutor(T... | Do not hide environment variables * Serialize callback execution. If the previous callback is still running - kill it Also it will fix a problem of zombie processes when executing callbacks from the main thread. * bugfix: pass an arguments to a callback | py |
diff --git a/astrobase/checkplot.py b/astrobase/checkplot.py
index <HASH>..<HASH> 100644
--- a/astrobase/checkplot.py
+++ b/astrobase/checkplot.py
@@ -1444,8 +1444,8 @@ def _pkl_finder_objectinfo(objectinfo,
(annotatex, annotatey),
xyte... | lcproc: add neighbor stuff to parallel_cp workers and driver | py |
diff --git a/marrow/mongo/core/field/set_.py b/marrow/mongo/core/field/set_.py
index <HASH>..<HASH> 100644
--- a/marrow/mongo/core/field/set_.py
+++ b/marrow/mongo/core/field/set_.py
@@ -6,9 +6,12 @@ from .array import Array
class Set(Array):
- class List(set):
- """Placeholder set shadow class to identify alread... | Simplification due to derivation being weird. | py |
diff --git a/scripts/run.py b/scripts/run.py
index <HASH>..<HASH> 100755
--- a/scripts/run.py
+++ b/scripts/run.py
@@ -1065,8 +1065,8 @@ class TestRunner:
"-f",
runner_setup_package_r]
if self.path_to_tar is not None:
- print "Using R TAR located at: " +... | Fix PEP-8 indentation warnings. | py |
diff --git a/suds/cache.py b/suds/cache.py
index <HASH>..<HASH> 100644
--- a/suds/cache.py
+++ b/suds/cache.py
@@ -165,8 +165,10 @@ class FileCache(Cache):
try:
fn = self.__fn(id)
f = self.open(fn, 'wb')
- f.write(bfr)
- f.close()
+ try:
+ ... | Fixed file closing in cache.py in case of failed file operations. Used files now closed explicitly in case of failed file operations instead of relying on the Python GC to close them 'some time later on'. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ def get_version():
m = re.match(r'__version__ = [\'"]([^\'"]*)[\'"]', line)
if m:
return m.group(1)
- return ''
+ raise RuntimeError('Cannot find version informatio... | Raise RuntimeError if __version__ is not found | py |
diff --git a/tests/test_gnupg.py b/tests/test_gnupg.py
index <HASH>..<HASH> 100644
--- a/tests/test_gnupg.py
+++ b/tests/test_gnupg.py
@@ -151,9 +151,9 @@ class GPGTestCase(unittest.TestCase):
self.gpg = gnupg.GPG(binary='gpg', homedir=hd)
self.homedir = hd
- self.gpg = gnupg.GPG(homedir=hd, ... | Change keyring/secring attrs to be based on settings in tests | py |
diff --git a/blurb/blurb.py b/blurb/blurb.py
index <HASH>..<HASH> 100755
--- a/blurb/blurb.py
+++ b/blurb/blurb.py
@@ -649,7 +649,7 @@ Returns a dict.
tests_run = 0
class TestParserPasses(unittest.TestCase):
- directory = "tests/pass"
+ directory = "blurb/tests/pass"
def filename_test(self, filename):
... | Fix Travis CI tests. (#<I>) | py |
diff --git a/betfairlightweight/streaming/betfairstream.py b/betfairlightweight/streaming/betfairstream.py
index <HASH>..<HASH> 100644
--- a/betfairlightweight/streaming/betfairstream.py
+++ b/betfairlightweight/streaming/betfairstream.py
@@ -219,8 +219,11 @@ class BetfairStream(object):
# an empty strin... | closes #<I> running handling added to empty string to prevent error being raised mid recv | py |
diff --git a/pypiper/ngstk.py b/pypiper/ngstk.py
index <HASH>..<HASH> 100755
--- a/pypiper/ngstk.py
+++ b/pypiper/ngstk.py
@@ -50,8 +50,10 @@ class NGSTk(_AttributeDict):
# Keep a link to the pipeline manager, if one is provided.
if pm is not None:
self.pm = pm
- self.tools = self.pm.config.tools
- self.p... | don't require tools/parameters in config | py |
diff --git a/blockstore/blockstored.py b/blockstore/blockstored.py
index <HASH>..<HASH> 100644
--- a/blockstore/blockstored.py
+++ b/blockstore/blockstored.py
@@ -18,6 +18,8 @@ import signal
import json
import datetime
import traceback
+import httplib
+import ssl
from txjsonrpc.netstring import jsonrpc
from twis... | Explicitly disable SSL certificate and hostname verification, since we are using a self-signed certificate. Python <I> and greater perform certificate and hostname verification by default; this should not be a problem for Python <I> or earlier. | py |
diff --git a/pymc3/step_methods/metropolis.py b/pymc3/step_methods/metropolis.py
index <HASH>..<HASH> 100644
--- a/pymc3/step_methods/metropolis.py
+++ b/pymc3/step_methods/metropolis.py
@@ -330,7 +330,7 @@ class BinaryGibbsMetropolis(ArrayStep):
logp_curr = logp(q)
for idx in order:
- cu... | fix BinaryGibbsMetropolis issue for p=<I> close #<I>. BinaryGibbsMetropolis propose alternating update to pm.Bernoulli('x', <I>) which generate deterministic sequence | py |
diff --git a/threads/views.py b/threads/views.py
index <HASH>..<HASH> 100755
--- a/threads/views.py
+++ b/threads/views.py
@@ -111,7 +111,7 @@ def homepage_view(request, message=None):
elif 'post_announcement' in request.POST:
announcement_form = AnnouncementForm(manager_positions, post=request.POST)
if anno... | Fixed posting announcements from the home page | py |
diff --git a/libre/apps/data_drivers/models.py b/libre/apps/data_drivers/models.py
index <HASH>..<HASH> 100644
--- a/libre/apps/data_drivers/models.py
+++ b/libre/apps/data_drivers/models.py
@@ -307,7 +307,7 @@ class SourceFixedWidth(Source):
functions_map = self.get_functions_map()
- for row_id, ro... | Update data drivers iterators to remove use of data_iterator | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,6 @@ setup(
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2.7",
"Development Status :: 4 - Beta",
- "License :: OSI Approved :: GPL License",
"Op... | setup.py adapted for pypi | py |
diff --git a/github_search.py b/github_search.py
index <HASH>..<HASH> 100644
--- a/github_search.py
+++ b/github_search.py
@@ -1,5 +1,6 @@
from abc import abstractmethod, ABCMeta
import re
+from datetime import date, timedelta
import requests
@@ -104,6 +105,12 @@ class Repo:
self.name = json['full_name'... | Get all possible dates in a given interval | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ setup(
author = 'Massimo Menichinelli',
author_email = 'info@openp2pdesign.org',
url = 'https://github.com/openp2pdesign/PyMakerspaces',
- download_url = '',
+ download_url = 'https://github.com/openp2p... | Add download url in setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ setup(
test_suite = 'yotta.test',
install_requires=[
'semantic_version>=2.3.1,<3',
- 'requests>=2.5,<3',
+ 'requests>=2.4.3,<3',
'PyGithub>=1.25,<2',
'colorama>... | lower requests version requirement to <I>; note that it is still recommended to use the latest version of requests, including the latest bugfixes and security patches, but yotta has been tested to work correctly with <I>. Fixes #<I> | py |
diff --git a/photutils/detection/deblend.py b/photutils/detection/deblend.py
index <HASH>..<HASH> 100644
--- a/photutils/detection/deblend.py
+++ b/photutils/detection/deblend.py
@@ -139,8 +139,10 @@ def deblend_sources(data, segment_img, npixels, filter_kernel=None,
if source_deblended.nlabels > 1:
... | Update source deblending to use SegmentationImage updates | py |
diff --git a/src/transformers/keras_callbacks.py b/src/transformers/keras_callbacks.py
index <HASH>..<HASH> 100644
--- a/src/transformers/keras_callbacks.py
+++ b/src/transformers/keras_callbacks.py
@@ -324,6 +324,7 @@ class PushToHubCallback(Callback):
)
def on_epoch_end(self, epoch, logs=None):
+ ... | Super-small fix stops us confusing Keras console logging by modifying its logs (#<I>) | py |
diff --git a/syn/types/a/tests/test_sequence.py b/syn/types/a/tests/test_sequence.py
index <HASH>..<HASH> 100644
--- a/syn/types/a/tests/test_sequence.py
+++ b/syn/types/a/tests/test_sequence.py
@@ -66,7 +66,6 @@ def test_sequence():
buf = []
last = None
- #import ipdb; ipdb.set_trace()
... | removing ipdb call | py |
diff --git a/src/pyrobase/paver/housekeeping.py b/src/pyrobase/paver/housekeeping.py
index <HASH>..<HASH> 100644
--- a/src/pyrobase/paver/housekeeping.py
+++ b/src/pyrobase/paver/housekeeping.py
@@ -31,7 +31,9 @@ from paver import easy
@easy.needs("distutils.command.clean")
def clean():
"take out the trash"
- ... | Get src dir even if there are no 'docs' options set | py |
diff --git a/pyinstrument/renderers/html.py b/pyinstrument/renderers/html.py
index <HASH>..<HASH> 100644
--- a/pyinstrument/renderers/html.py
+++ b/pyinstrument/renderers/html.py
@@ -70,6 +70,7 @@ class HTMLRenderer(Renderer):
def render_json(self, session):
json_renderer = JSONRenderer()
json_re... | Pass processor_options down to JSONRenderer | py |
diff --git a/tests/bench.py b/tests/bench.py
index <HASH>..<HASH> 100644
--- a/tests/bench.py
+++ b/tests/bench.py
@@ -1,4 +1,3 @@
-
import os
import time
@@ -80,13 +79,11 @@ if __name__ == '__main__':
]
print('Parsing the Markdown Syntax document %d times...' % loops)
- for i, method in enumerate(me... | Update bench.py Just added some idiomatic improvements, e.g. tuple unpacking in for loop, newer-style string formatting (compatible with Python 3.x). | py |
diff --git a/src/ai/backend/common/etcd.py b/src/ai/backend/common/etcd.py
index <HASH>..<HASH> 100644
--- a/src/ai/backend/common/etcd.py
+++ b/src/ai/backend/common/etcd.py
@@ -379,7 +379,7 @@ class AsyncEtcd:
yield ev
queue.task_done()
except asyncio.CancelledError:
- ... | etcd: Fix re-raising of cancellation in _watch_impl() | py |
diff --git a/pyads/constants.py b/pyads/constants.py
index <HASH>..<HASH> 100644
--- a/pyads/constants.py
+++ b/pyads/constants.py
@@ -9,7 +9,8 @@
:license: MIT, see LICENSE for details
"""
-from ctypes import *
+from ctypes import c_bool, c_byte, c_int8, c_uint8, c_int16, c_uint16, \
+ c_int32, c_uint3... | issue #<I>, word and dword are now interpreted as uint<I> and uint<I> instead of signed ints | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -114,7 +114,7 @@ setup(
packages=find_packages("src"),
install_requires=[
"numpy",
- "tokenizers == 0.8.1.rc1",
+ "tokenizers == 0.8.1.rc2",
# dataclasses for Python versions that don'... | Update tokenizers to <I>.rc to fix Mac OS X issues (#<I>) | py |
diff --git a/openfisca_core/holders.py b/openfisca_core/holders.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/holders.py
+++ b/openfisca_core/holders.py
@@ -190,7 +190,7 @@ class Holder(object):
array = None
array_by_period = self._array_by_period
if array_by_period is not None:
- ... | Sort arrays by period before iterating them when computing an holder. | py |
diff --git a/padatious/training_manager.py b/padatious/training_manager.py
index <HASH>..<HASH> 100644
--- a/padatious/training_manager.py
+++ b/padatious/training_manager.py
@@ -61,7 +61,7 @@ class TrainingManager(object):
def load(self, name, file_name, reload_cache=False):
with open(file_name) as f:
... | Fix not resetting objects after training | py |
diff --git a/src/xopen/__init__.py b/src/xopen/__init__.py
index <HASH>..<HASH> 100644
--- a/src/xopen/__init__.py
+++ b/src/xopen/__init__.py
@@ -858,6 +858,9 @@ def _open_xz(
threads: Optional[int],
**text_mode_kwargs,
):
+ if compresslevel is None:
+ compresslevel = 6
+
if threads != 0:
... | Support compresslevel when writing xz files with the lzma module lzma.open()'s preset kwarg is a 0-9 integer just like gzip.open's compresslevel kwarg. The default for the stdlib and `xz` command is 6, but be explicit about it since 6 is what xopen() documents and what is used for gzip too. | py |
diff --git a/green/test/test_runner.py b/green/test/test_runner.py
index <HASH>..<HASH> 100644
--- a/green/test/test_runner.py
+++ b/green/test/test_runner.py
@@ -51,21 +51,14 @@ class TestInitializerOrFinalizer(unittest.TestCase):
"""
An ls command works.
"""
- initializer = Initializ... | Getting the tests to pass on windows | py |
diff --git a/pid/__init__.py b/pid/__init__.py
index <HASH>..<HASH> 100644
--- a/pid/__init__.py
+++ b/pid/__init__.py
@@ -10,6 +10,8 @@ import tempfile
__version__ = "1.0.8"
+DEFAULT_PID_DIR = "/var/run/"
+
class PidFileError(Exception):
pass
@@ -39,8 +41,8 @@ class PidFile(object):
if enforce_do... | Allow to set default pid dir at runtime. | py |
diff --git a/core/block_token.py b/core/block_token.py
index <HASH>..<HASH> 100644
--- a/core/block_token.py
+++ b/core/block_token.py
@@ -103,10 +103,10 @@ class List(BlockToken):
nested = 0
for line in lines:
if line.startswith(' '*4):
- line_buffer.append(line)
+ ... | 🐎 removed redundant loop in _build_list | py |
diff --git a/block/block.py b/block/block.py
index <HASH>..<HASH> 100644
--- a/block/block.py
+++ b/block/block.py
@@ -190,7 +190,8 @@ class TorchBackend(Backend):
return torch.cat(compRows)
def is_complete(self, x):
- return re.search('torch\..*Tensor', str(x.__class__))
+ return (re.sear... | Only consider tensors complete if they are 2D | py |
diff --git a/alot/db/message.py b/alot/db/message.py
index <HASH>..<HASH> 100644
--- a/alot/db/message.py
+++ b/alot/db/message.py
@@ -59,7 +59,7 @@ class Message:
sender = decode_header(msg.header('From'))
if not sender:
sender = decode_header(msg.header('Sender'))
- e... | catch LookupError if msg has no from header fix #<I> | py |
diff --git a/tensorflow_datasets/core/read_only_builder_test.py b/tensorflow_datasets/core/read_only_builder_test.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/core/read_only_builder_test.py
+++ b/tensorflow_datasets/core/read_only_builder_test.py
@@ -452,8 +452,10 @@ def test_builder_from_directories_readin... | copy file to directory is not supported, change it to copy to another file PiperOrigin-RevId: <I> | py |
diff --git a/chwrapper/services/base.py b/chwrapper/services/base.py
index <HASH>..<HASH> 100644
--- a/chwrapper/services/base.py
+++ b/chwrapper/services/base.py
@@ -63,7 +63,7 @@ class Service(object):
custom_messages = {
429: cust_str.format(
datetime.utcfromtimesta... | Use .get to stop KeyErrors being raised when no headers returned by Companies House | py |
diff --git a/setuptools/version.py b/setuptools/version.py
index <HASH>..<HASH> 100644
--- a/setuptools/version.py
+++ b/setuptools/version.py
@@ -1 +1 @@
-__version__ = '20.0'
+__version__ = '20.1' | Bumped to <I> in preparation for next release. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,6 +39,7 @@ setup(
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7'
'... | Bump minimum python version to <I> | py |
diff --git a/saturn/filewatcher.py b/saturn/filewatcher.py
index <HASH>..<HASH> 100644
--- a/saturn/filewatcher.py
+++ b/saturn/filewatcher.py
@@ -110,13 +110,16 @@ class FileWatcher(Process):
class FileProcessor(Process):
- """Execute *fun* on filenames provided by from *file_queue*.
+ """Execute *fun* on f... | Feature: added the refresh option to filewatcher to call the processing function even if no new file has come. | py |
diff --git a/alot/settings/__init__.py b/alot/settings/__init__.py
index <HASH>..<HASH> 100644
--- a/alot/settings/__init__.py
+++ b/alot/settings/__init__.py
@@ -229,6 +229,10 @@ class SettingsManager(object):
colours = int(self._config.get('colourmode'))
return self._theme.get_attribute(mode, name, ... | pass on get_threadline_theming to theme in settings | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,10 +14,10 @@ setup(
install_requires=[
'feedparser',
'requests',
- 'pytest-runner',
],
tests_require=[
"pytest",
+ "numpy",
],
# metadata for upload to PyPI
a... | Remove pytest-runner from install requirements, add numpy as test requirement | py |
diff --git a/mutagen/id3.py b/mutagen/id3.py
index <HASH>..<HASH> 100644
--- a/mutagen/id3.py
+++ b/mutagen/id3.py
@@ -254,7 +254,8 @@ class ID3(DictProxy, mutagen.Metadata):
if self.f_extended:
extsize = self.__fullread(4)
- if (extsize.decode('ascii') if PY3 else extsize) in Frames:... | don't raise decode error when checking for potential frame id | py |
diff --git a/test/dependencies_test.py b/test/dependencies_test.py
index <HASH>..<HASH> 100644
--- a/test/dependencies_test.py
+++ b/test/dependencies_test.py
@@ -1,9 +1,13 @@
+import logging
import luigi
import sciluigi as sl
import os
TESTFILE_PATH = '/tmp/test.out'
+log = logging.getLogger('sciluigi-interfac... | Set log level to WARNING when testing | py |
diff --git a/tests/ref.py b/tests/ref.py
index <HASH>..<HASH> 100644
--- a/tests/ref.py
+++ b/tests/ref.py
@@ -44,12 +44,15 @@ def backend_check(backend, ref=None, childprocess=True):
ref='scrot'
else:
ref='pil'
- if sys.platform != 'darwin':
-
-... | test: ref or size test, not both | py |
diff --git a/libargos/qt/__init__.py b/libargos/qt/__init__.py
index <HASH>..<HASH> 100644
--- a/libargos/qt/__init__.py
+++ b/libargos/qt/__init__.py
@@ -105,6 +105,9 @@ def handleException(exc_type, exc_value, exc_traceback):
if info.DEBUGGING:
sys.exit(1)
else:
+ # Constructing a QApplicati... | Constructing a QApplication in handleException in case the error occurs before this was done. | py |
diff --git a/docker/utils/utils.py b/docker/utils/utils.py
index <HASH>..<HASH> 100644
--- a/docker/utils/utils.py
+++ b/docker/utils/utils.py
@@ -577,6 +577,7 @@ def create_container_config(
'Entrypoint': entrypoint,
'CpuShares': cpu_shares,
'Cpuset': cpuset,
+ 'CpusetCpus': cpuset,
... | Set 'CpusetCpus' with the value of the cpuset param in create_container | py |
diff --git a/pysat/model_utils.py b/pysat/model_utils.py
index <HASH>..<HASH> 100644
--- a/pysat/model_utils.py
+++ b/pysat/model_utils.py
@@ -19,6 +19,31 @@ import numpy as np
import pandas as pds
import xarray as xr
+def satellite_view_through_model(sat, tie, scoords, tlabels):
+ """Interpolates model values o... | Added method to 'fly' satellite through interpolated model using RegularGrid | py |
diff --git a/shoebot/core/cairo_sink.py b/shoebot/core/cairo_sink.py
index <HASH>..<HASH> 100644
--- a/shoebot/core/cairo_sink.py
+++ b/shoebot/core/cairo_sink.py
@@ -70,7 +70,7 @@ class CairoImageSink(DrawQueueSink):
Called when CairoCanvas has rendered a bot
'''
if self.format == 'png':
- ... | fixed reference to ctx on core/cairo_sink | py |
diff --git a/src/edeposit/amqp/calibre/__init__.py b/src/edeposit/amqp/calibre/__init__.py
index <HASH>..<HASH> 100755
--- a/src/edeposit/amqp/calibre/__init__.py
+++ b/src/edeposit/amqp/calibre/__init__.py
@@ -12,8 +12,9 @@ import sh
#= Variables ==================================================================
... | Added backlink to list of supported formats. | py |
diff --git a/features/eolearn/features/interpolation.py b/features/eolearn/features/interpolation.py
index <HASH>..<HASH> 100644
--- a/features/eolearn/features/interpolation.py
+++ b/features/eolearn/features/interpolation.py
@@ -378,7 +378,7 @@ class InterpolationTask(EOTask):
elif self.resample_range and np... | Fix for "unnecessary use of a comprehension" | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ import setuptools
setuptools.setup(
name='setuptools-odoo',
- version='1.0.0b8.dev0',
+ version='1.0.0rc1.dev0',
description='A library to help package Odoo addons with setuptools',
long_de... | next release will be <I>rc1 | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -52,8 +52,8 @@ master_doc = 'index'
# General information about the project.
project = u'Nefertari'
-copyright = u'2015, Brandicted'
-author = u'Brandicted'
+copyright = u'Ramses... | Setting copyright to `Ramses Tech, Inc.` | py |
diff --git a/tests/client/test_AprsClient.py b/tests/client/test_AprsClient.py
index <HASH>..<HASH> 100644
--- a/tests/client/test_AprsClient.py
+++ b/tests/client/test_AprsClient.py
@@ -57,14 +57,13 @@ class OgnClientTest(unittest.TestCase):
# After .disconnect(), client._kill should be True
self.a... | Update tests to work with python versions < py<I> | py |
diff --git a/molo/core/tests/test_models.py b/molo/core/tests/test_models.py
index <HASH>..<HASH> 100644
--- a/molo/core/tests/test_models.py
+++ b/molo/core/tests/test_models.py
@@ -134,14 +134,14 @@ class TestModels(TestCase):
comment_settings = new_article.get_effective_commenting_settings()
self.a... | added whitespace to make flake8 happy | py |
diff --git a/src/fonduer/candidates/matchers.py b/src/fonduer/candidates/matchers.py
index <HASH>..<HASH> 100644
--- a/src/fonduer/candidates/matchers.py
+++ b/src/fonduer/candidates/matchers.py
@@ -197,7 +197,11 @@ class LambdaFunctionMatcher(_NgramMatcher):
class Union(_NgramMatcher):
- """Takes the union of ... | Clarify that longest_match_only is ignored when used with Union | py |
diff --git a/ceph_deploy/mon.py b/ceph_deploy/mon.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/mon.py
+++ b/ceph_deploy/mon.py
@@ -29,8 +29,8 @@ def create_mon(cluster, monitor_keyring, init, paths):
os.makedirs(path)
if not os.path.exists(done_path):
- if not os.path.exists(path.mon.constant... | fix a typo for wrong path reference | py |
diff --git a/sockeye/lr_scheduler.py b/sockeye/lr_scheduler.py
index <HASH>..<HASH> 100644
--- a/sockeye/lr_scheduler.py
+++ b/sockeye/lr_scheduler.py
@@ -42,7 +42,7 @@ class LearningRateScheduler:
fraction = (num_updates + 1) * self.base_lr / (self.warmup + 1)
if num_updates > self.last_warmup_log an... | Fix learning rate warmup log messages to actually print out percentage of warmup (#<I>) | py |
diff --git a/src/rejester/_task_master.py b/src/rejester/_task_master.py
index <HASH>..<HASH> 100644
--- a/src/rejester/_task_master.py
+++ b/src/rejester/_task_master.py
@@ -127,8 +127,12 @@ class WorkUnit(object):
if self._module_cache is None:
funclist = filter(None, (self.spec.get('run_functio... | making "rejester run_worker" more robust, but somehow not robust enough yet... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ class CoreIRExtension(Extension):
class CoreIRBuild(build_ext):
- libs = ["coreir-c", "coreirsim-c", "coreir-ice40", "coreir-aetherlinglib"]
+ libs = ["coreir-c", "coreirsim-c", "coreir-ice40", "corei... | Add coreir-commonlib to part of coreir distribution | py |
diff --git a/django_cas_ng/views.py b/django_cas_ng/views.py
index <HASH>..<HASH> 100644
--- a/django_cas_ng/views.py
+++ b/django_cas_ng/views.py
@@ -30,7 +30,7 @@ def _service_url(request, redirect_to=None):
protocol = get_protocol(request)
host = request.get_host()
service = urllib_parse.urlunparse(
-... | Fixes mingchen/django-cas-ng#<I> "Forbidden in <I>" Login service url had duplicated query string, e.g., http://host/login/?next=/path/to/app/&next=/path/to/app/ which resulted in <I> Forbidden error | py |
diff --git a/horizon/templatetags/form_helpers.py b/horizon/templatetags/form_helpers.py
index <HASH>..<HASH> 100644
--- a/horizon/templatetags/form_helpers.py
+++ b/horizon/templatetags/form_helpers.py
@@ -22,11 +22,11 @@ def add_bootstrap_class(field):
This is so that Bootstrap styles it properly.
"""
- ... | Fixed add_bootstrap_class template filter Made sure that the add_bootstrap_class filter correctly obtains the widget type to prevent it applying the form-control css class onto parts of forms that shouldn't have it. Change-Id: I<I>b<I>e<I>de<I>e<I>cbffc4a<I>b9aaf1b Closes-Bug: <I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.