diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/soco/alarms.py b/soco/alarms.py
index <HASH>..<HASH> 100644
--- a/soco/alarms.py
+++ b/soco/alarms.py
@@ -306,8 +306,11 @@ def get_alarms(zone=None):
datetime.strptime(values['Duration'], "%H:%M:%S").time()
instance.recurrence = values['Recurrence']
instance.enabled = values[... | don't throw exception if alarm is not associated to any room | py |
diff --git a/coapthon/client/helperclient.py b/coapthon/client/helperclient.py
index <HASH>..<HASH> 100644
--- a/coapthon/client/helperclient.py
+++ b/coapthon/client/helperclient.py
@@ -234,7 +234,13 @@ class HelperClient(object):
if no_response:
return
try:
- ... | Changed send_request in helperclient to check response on message id | py |
diff --git a/piplicenses.py b/piplicenses.py
index <HASH>..<HASH> 100644
--- a/piplicenses.py
+++ b/piplicenses.py
@@ -167,7 +167,7 @@ class JsonPrettyTable(PrettyTable):
for row in formatted_rows:
lines.append(row)
- return json.dumps(lines, indent=2)
+ return json.dumps(lines, in... | Keep sorted keys on output with JSON | py |
diff --git a/spyder/__init__.py b/spyder/__init__.py
index <HASH>..<HASH> 100644
--- a/spyder/__init__.py
+++ b/spyder/__init__.py
@@ -29,7 +29,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
"""
-version_info = (5, 1, 2)
+version_info = (5, 2, 0, "dev0")
__vers... | Back to work [ci skip] | py |
diff --git a/plenum/server/monitor.py b/plenum/server/monitor.py
index <HASH>..<HASH> 100644
--- a/plenum/server/monitor.py
+++ b/plenum/server/monitor.py
@@ -63,8 +63,9 @@ class Monitor:
self.started = datetime.utcnow().isoformat()
- self.firebaseClient = firebase.FirebaseApplication(
- ... | initialilizing firebase client only when stats have to be sent | py |
diff --git a/treeherder/client/thclient/client.py b/treeherder/client/thclient/client.py
index <HASH>..<HASH> 100644
--- a/treeherder/client/thclient/client.py
+++ b/treeherder/client/thclient/client.py
@@ -10,7 +10,7 @@ from requests_hawk import HawkAuth
# When releasing a new version to PyPI please also file a bug t... | Bug <I> - Bump treeherder-client to <I> Since the upload of <I> failed and PyPI won't allow the files to be overwritten. | py |
diff --git a/build/generate_about_tracing_contents.py b/build/generate_about_tracing_contents.py
index <HASH>..<HASH> 100755
--- a/build/generate_about_tracing_contents.py
+++ b/build/generate_about_tracing_contents.py
@@ -45,7 +45,7 @@ def generate_html():
filenames = [os.path.join(srcdir, x) for x in ["base.js", "... | Pass srcdir to calc_load_sequence | py |
diff --git a/detect_secrets/plugins/slack.py b/detect_secrets/plugins/slack.py
index <HASH>..<HASH> 100644
--- a/detect_secrets/plugins/slack.py
+++ b/detect_secrets/plugins/slack.py
@@ -18,9 +18,7 @@ class SlackDetector(RegexBasedDetector):
re.compile(r'xox(?:a|b|p|o|s|r)-(?:\d+-)+[a-z0-9]+', flags=re.IGNOREC... | fix regex for longer slack webhook urls and added another error response | py |
diff --git a/build_doc.py b/build_doc.py
index <HASH>..<HASH> 100755
--- a/build_doc.py
+++ b/build_doc.py
@@ -178,8 +178,7 @@ if __name__ == "__main__":
docFile.write("%s\n" % (collector))
docFile.write("=====\n")
if collectors[collector].__doc__ is None:
- print collectors[collec... | Handle errors a bit better with doc building | py |
diff --git a/ue4cli/UnrealManagerBase.py b/ue4cli/UnrealManagerBase.py
index <HASH>..<HASH> 100644
--- a/ue4cli/UnrealManagerBase.py
+++ b/ue4cli/UnrealManagerBase.py
@@ -309,9 +309,9 @@ class UnrealManagerBase(object):
# If we are cleaning a project, also clean any plugins
if self.isProject(descriptor):
- ... | Make plugin detection more robust when cleaning projects | py |
diff --git a/binstar_client/utils/projects/uploader.py b/binstar_client/utils/projects/uploader.py
index <HASH>..<HASH> 100644
--- a/binstar_client/utils/projects/uploader.py
+++ b/binstar_client/utils/projects/uploader.py
@@ -67,7 +67,7 @@ class ProjectUploader(binstar_client.Binstar):
data, headers = jencode... | Projects won't have labels after all | py |
diff --git a/neurom/tests/test_utils.py b/neurom/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/neurom/tests/test_utils.py
+++ b/neurom/tests/test_utils.py
@@ -31,6 +31,7 @@
from neurom import utils as nu
from nose import tools as nt
import random
+import warnings
def test_memoize_caches_args():
@@ -60,3... | Add test for deprecated decorator | py |
diff --git a/runner/precise_runner/runner.py b/runner/precise_runner/runner.py
index <HASH>..<HASH> 100644
--- a/runner/precise_runner/runner.py
+++ b/runner/precise_runner/runner.py
@@ -147,13 +147,13 @@ class PreciseRunner:
def stop(self):
"""Stop listening and close stream"""
- self.engine.sto... | Fix ordering of stop statements to prevent exception | py |
diff --git a/sanic/websocket.py b/sanic/websocket.py
index <HASH>..<HASH> 100644
--- a/sanic/websocket.py
+++ b/sanic/websocket.py
@@ -10,6 +10,16 @@ class WebSocketProtocol(HttpProtocol):
super().__init__(*args, **kwargs)
self.websocket = None
+ def connection_timeout(self):
+ # timeouts ... | handle timeouts and disconnects properly | py |
diff --git a/venom/rpc/reflect/openapi.py b/venom/rpc/reflect/openapi.py
index <HASH>..<HASH> 100644
--- a/venom/rpc/reflect/openapi.py
+++ b/venom/rpc/reflect/openapi.py
@@ -7,7 +7,7 @@ from typing import Iterable
from venom import Message
from venom.fields import FieldDescriptor
from venom.message import fields, i... | Fix #<I>: Mismatch in variable name for a path in JSON output for OpenAPI | py |
diff --git a/awsshell/makeindex.py b/awsshell/makeindex.py
index <HASH>..<HASH> 100644
--- a/awsshell/makeindex.py
+++ b/awsshell/makeindex.py
@@ -14,7 +14,7 @@ try:
import awscli.clidriver
from awscli.argprocess import ParamShorthandDocGen
except ImportError:
- print "Couldn't import awscli: pip install ... | Partial fix for #<I>, wrapped print in parens. | py |
diff --git a/redis/utils.py b/redis/utils.py
index <HASH>..<HASH> 100644
--- a/redis/utils.py
+++ b/redis/utils.py
@@ -14,3 +14,11 @@ def from_url(url, db=None, **kwargs):
"""
from redis.client import Redis
return Redis.from_url(url, db, **kwargs)
+
+
+from contextlib import contextmanager
+@contextmanag... | Add utility for pipelining within 'with' statement. | py |
diff --git a/runcommands/command.py b/runcommands/command.py
index <HASH>..<HASH> 100644
--- a/runcommands/command.py
+++ b/runcommands/command.py
@@ -227,6 +227,9 @@ class Command:
printer.debug('Parsing args for command `{self.name}`: {argv}'.format(**locals()))
parsed_args = self.get_arg_parser... | Convert empty option values to None Empty option values can be specified in two ways: 1. --opt= 2. --opt '' The only reason I can think of to do this would be to suppress an option's default value and `None` seems like a better value to use for this. | py |
diff --git a/connector.py b/connector.py
index <HASH>..<HASH> 100644
--- a/connector.py
+++ b/connector.py
@@ -48,7 +48,7 @@ class ParamEscaper(object):
# string formatting here.
if isinstance(item, bytes):
item = item.decode('utf-8')
- return "'{}'".format(item.replace("'", "\\'")... | Fixing problem with escaping: \\ | py |
diff --git a/grapheneexchange/exchange.py b/grapheneexchange/exchange.py
index <HASH>..<HASH> 100644
--- a/grapheneexchange/exchange.py
+++ b/grapheneexchange/exchange.py
@@ -409,8 +409,8 @@ class GrapheneExchange(GrapheneClient) :
else :
data["last"] = -1
if len(orders) > 1:
... | [Exchange] Fit lowest ask highest bid issue | py |
diff --git a/spyderlib/plugins/editor.py b/spyderlib/plugins/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/editor.py
+++ b/spyderlib/plugins/editor.py
@@ -36,6 +36,7 @@ from spyderlib.widgets.editor import (ReadWriteStatus, EncodingStatus,
CursorPositionStatus, EOL... | File/Open: embedded editor popped up even if there is one in a separate window Update Issue <I> Status: Fixed | py |
diff --git a/hdbscan/hdbscan_.py b/hdbscan/hdbscan_.py
index <HASH>..<HASH> 100644
--- a/hdbscan/hdbscan_.py
+++ b/hdbscan/hdbscan_.py
@@ -442,7 +442,7 @@ def hdbscan(X, min_cluster_size=5, min_samples=None, alpha=1.0,
if min_samples <= 0 or min_cluster_size <= 0:
raise ValueError('Min samples and Min clu... | Python3 comparisons on uncomparable types are more strict | py |
diff --git a/lime/lime_image.py b/lime/lime_image.py
index <HASH>..<HASH> 100644
--- a/lime/lime_image.py
+++ b/lime/lime_image.py
@@ -6,7 +6,6 @@ from functools import partial
import numpy as np
import sklearn
-import sklearn.preprocessing
from sklearn.utils import check_random_state
from skimage.color import gr... | Remove sklearn.preprocessing since it is not used. | py |
diff --git a/librosa/core/constantq.py b/librosa/core/constantq.py
index <HASH>..<HASH> 100644
--- a/librosa/core/constantq.py
+++ b/librosa/core/constantq.py
@@ -656,6 +656,10 @@ def icqt(C, sr=22050, hop_length=512, fmin=None, bins_per_octave=12,
'Consider decreasing your hop length or increasi... | trim to length in icqt | py |
diff --git a/source/rafcon/core/states/concurrency_state.py b/source/rafcon/core/states/concurrency_state.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/core/states/concurrency_state.py
+++ b/source/rafcon/core/states/concurrency_state.py
@@ -19,6 +19,7 @@ import Queue
from gtkmvc import Observable
+import raf... | fix(execution engine): fix stepping inside concurrency states step_over last state in concurrent hierarchies, or stepping out of them did not work, this is fixed now | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100644
--- a/runtests.py
+++ b/runtests.py
@@ -41,4 +41,4 @@ def run_tests(*test_args):
if __name__ == '__main__':
- run_tests(*sys.argv[1:])
\ No newline at end of file
+ run_tests(*sys.argv[1:]) | Add a newline at the end of runtests.py | py |
diff --git a/fuel/config_parser.py b/fuel/config_parser.py
index <HASH>..<HASH> 100644
--- a/fuel/config_parser.py
+++ b/fuel/config_parser.py
@@ -141,6 +141,7 @@ config = Configuration()
# Define configuration options
config.add_config('data_path', type_=str, env_var='FUEL_DATA_PATH')
+config.add_config('default_s... | Add global seed config, needed for schemes | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -2602,8 +2602,8 @@ class State(object):
chunk['name'] == listen_to:
listen_to = {chunk['state']: chunk['__id__']}
... | Moving an if statement outside the for loop over the list of chunks. | py |
diff --git a/vincent/core.py b/vincent/core.py
index <HASH>..<HASH> 100644
--- a/vincent/core.py
+++ b/vincent/core.py
@@ -23,6 +23,8 @@ from ._compat import str_types
#TODO: Keep local?
d3_js_url = "http://d3js.org/d3.v3.min.js"
+d3_geo_projection_js_url = "http://d3js.org/d3.geo.projection.v0.min.js"
+topojson_js... | Updated initialize_notebook() to also include the geo dependencies | py |
diff --git a/napalm_ios/ios.py b/napalm_ios/ios.py
index <HASH>..<HASH> 100644
--- a/napalm_ios/ios.py
+++ b/napalm_ios/ios.py
@@ -25,7 +25,9 @@ import socket
from netmiko import ConnectHandler, FileTransfer, InLineTransfer
from netmiko import __version__ as netmiko_version
from napalm_base.base import NetworkDriver... | raise ConnectionClosedException instead of reconnecting | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,6 +42,7 @@ with open(version_py,"w") as fh:
# To compile the relevant version
if sys.version[:3] in ['2.7','3.6']:
gg = '_GG0%s' % sys.version[0]
+ poly = 'polygon%s' % sys.version[0]
else:
raise Exception(... | small changes to setup.py and .travis, for debugging version fetching <I> | py |
diff --git a/environ/environ.py b/environ/environ.py
index <HASH>..<HASH> 100644
--- a/environ/environ.py
+++ b/environ/environ.py
@@ -196,6 +196,7 @@ class Env(object):
:rtype: dict
"""
return self.email_url_config(self.url(var, default=default), backend=backend)
+ email=email_url
... | Update environ.py Just because .db() and .cache() were available... | py |
diff --git a/examples/basic/connVtx.py b/examples/basic/connVtx.py
index <HASH>..<HASH> 100644
--- a/examples/basic/connVtx.py
+++ b/examples/basic/connVtx.py
@@ -1,5 +1,5 @@
"""
-Find the vertices that are connected
+Find the vertices that are connected
to a specific vertex in a mesh.
"""
from vtkplotter import * | Removed trailing spaces in examples/basic/connVtx.py | 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
setup(
name='neat-python',
- version='0.6',
+ version='0.7',
author='cesar.gomes, mirrorballu2',
author_email='nobody@nowhere.com',
maintainer='CodeReclaim... | This revision was published on PyPI as release <I>. | py |
diff --git a/ara/server/settings.py b/ara/server/settings.py
index <HASH>..<HASH> 100644
--- a/ara/server/settings.py
+++ b/ara/server/settings.py
@@ -2,6 +2,7 @@ import logging
import os
import sys
+from django.conf import global_settings
from django.utils.crypto import get_random_string
from envparse import env... | One does not simply send emails to gvincent *scnr* Change-Id: If<I>ad<I>c<I>fc<I>b5fba3cf<I>f0dcf0 | py |
diff --git a/dedupe/labeler.py b/dedupe/labeler.py
index <HASH>..<HASH> 100644
--- a/dedupe/labeler.py
+++ b/dedupe/labeler.py
@@ -239,7 +239,7 @@ class DedupeBlockLearner(BlockLearner):
index_data = Sample(data, 50000, original_length)
sampled_records = Sample(index_data, 5000, original_length)
- ... | restore index predicates to dedupe models | py |
diff --git a/bakery/feeds.py b/bakery/feeds.py
index <HASH>..<HASH> 100644
--- a/bakery/feeds.py
+++ b/bakery/feeds.py
@@ -48,11 +48,7 @@ class BuildableFeed(Feed, BuildableMixin):
code = six.get_function_code(attr.__call__)
if code.co_argcount == 2 + len(args): # one argument is 'self'
... | _get_bakery_dynamic_attr should always pass args | py |
diff --git a/waldo/contrib/config.py b/waldo/contrib/config.py
index <HASH>..<HASH> 100644
--- a/waldo/contrib/config.py
+++ b/waldo/contrib/config.py
@@ -419,7 +419,7 @@ class Config(object):
results[option.dest] = option.type(secret)
return results
- def parse(self, argv=None, keyring_n... | split out loading/parsing options - Fixes #<I> Config was prematurely validating required options when the user just wanted some --help | py |
diff --git a/django_afip/admin.py b/django_afip/admin.py
index <HASH>..<HASH> 100644
--- a/django_afip/admin.py
+++ b/django_afip/admin.py
@@ -159,11 +159,11 @@ class ReceiptAdmin(admin.ModelAdmin):
def get_queryset(self, request):
return super().get_queryset(request) \
.select_related(
- ... | Optimize ReceiptAdmin's validation check | py |
diff --git a/asammdf/blocks/v4_blocks.py b/asammdf/blocks/v4_blocks.py
index <HASH>..<HASH> 100644
--- a/asammdf/blocks/v4_blocks.py
+++ b/asammdf/blocks/v4_blocks.py
@@ -802,7 +802,7 @@ class Channel:
self.unit_addr = 0
self.comment_addr = 0
try:
- self.attachment_... | fix attachemtn address in v4 Channel | py |
diff --git a/autofit/core/non_linear.py b/autofit/core/non_linear.py
index <HASH>..<HASH> 100644
--- a/autofit/core/non_linear.py
+++ b/autofit/core/non_linear.py
@@ -75,18 +75,23 @@ def persistent_timer(func):
@functools.wraps(func)
def timed_function(optimizer_instance, *args, **kwargs):
try:
- ... | write execution time to file in phase folder | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
from setuptools import setup, find_packages
-version = '0.1.3'
+version = '0.1.4.dev0'
setup(
name="tasa", | Back to development: <I> | py |
diff --git a/release.py b/release.py
index <HASH>..<HASH> 100644
--- a/release.py
+++ b/release.py
@@ -79,6 +79,7 @@ call(["git", "push"])
os.remove("/tmp/urh_releasing")
+os.chdir(script_dir)
rc = pytest.main(["-v", "-n", "3", "tests/TestInstallation.py"])
if rc != 0: | chdir after release to perform post release tests | py |
diff --git a/orgco/convert.py b/orgco/convert.py
index <HASH>..<HASH> 100644
--- a/orgco/convert.py
+++ b/orgco/convert.py
@@ -81,6 +81,7 @@ def to_html(orgdoc, header=False):
'</body>',
'</html>'
])
+ result.append('')
return result | Add new line in html output. | py |
diff --git a/py/code/testing/test_source.py b/py/code/testing/test_source.py
index <HASH>..<HASH> 100644
--- a/py/code/testing/test_source.py
+++ b/py/code/testing/test_source.py
@@ -281,3 +281,15 @@ def test_deindent():
"""
lines = deindent(source.splitlines())
assert lines == ['', 'def f():', ' def ... | [svn r<I>] Added failing test, which I would suppose to pass --HG-- branch : trunk | py |
diff --git a/wafer/users/models.py b/wafer/users/models.py
index <HASH>..<HASH> 100644
--- a/wafer/users/models.py
+++ b/wafer/users/models.py
@@ -56,6 +56,9 @@ class UserProfile(models.Model):
return abs_url
return self.homepage
+ def display_name(self):
+ return self.user.get_full_na... | Add helper function to profile to return a user's name | py |
diff --git a/udata/tests/frontend/__init__.py b/udata/tests/frontend/__init__.py
index <HASH>..<HASH> 100644
--- a/udata/tests/frontend/__init__.py
+++ b/udata/tests/frontend/__init__.py
@@ -21,5 +21,7 @@ class FrontTestCase(WebTestMixin, SearchTestMixin, TestCase):
# The first ? is used to name the extracted ... | Add traces if there is no JSON-LD while it was expected | py |
diff --git a/src/report.py b/src/report.py
index <HASH>..<HASH> 100644
--- a/src/report.py
+++ b/src/report.py
@@ -23,6 +23,7 @@ license: LGPL
+from functools import partial
from json import JSONEncoder
@@ -272,7 +273,7 @@ class JSONReportFormat(ReportFormat):
}
# not what they expect... | use a partial for less visible *,** magic | py |
diff --git a/src/httpresponseformat.py b/src/httpresponseformat.py
index <HASH>..<HASH> 100644
--- a/src/httpresponseformat.py
+++ b/src/httpresponseformat.py
@@ -14,7 +14,7 @@ from .gripcontrol import _is_basestring_instance, _bin_or_text
class HttpResponseFormat(Format):
# Initialize with the message code, reaso... | fixed a typo in the docs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,7 @@ from distutils.core import setup
from Cython.Build import cythonize
setup(
- name = 'numcy',
- ext_modules = cythonize("*.pyx"),
+ name='word_cloud',
+ ext_modules=cythonize("*.pyx"),
+ package_... | enh fix setup.py to actually build in place (was screwed up by adding the __init__.py) | py |
diff --git a/lib/reda/testing/containers.py b/lib/reda/testing/containers.py
index <HASH>..<HASH> 100644
--- a/lib/reda/testing/containers.py
+++ b/lib/reda/testing/containers.py
@@ -5,7 +5,6 @@ import numpy as np
import reda
# construct a simple container using random numbers
-ERTContainer = reda.ERT()
df = pd.Da... | update testing containers to the new naming scheme of the ERT container | py |
diff --git a/spacy/lang/th/__init__.py b/spacy/lang/th/__init__.py
index <HASH>..<HASH> 100644
--- a/spacy/lang/th/__init__.py
+++ b/spacy/lang/th/__init__.py
@@ -30,7 +30,7 @@ class Thai(Language):
from pythainlp.tokenize import word_tokenize
except ImportError:
raise ImportError("Th... | Change PyThaiNLP Url (#<I>) | py |
diff --git a/src/you_get/extractors/tumblr.py b/src/you_get/extractors/tumblr.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/tumblr.py
+++ b/src/you_get/extractors/tumblr.py
@@ -3,10 +3,13 @@
__all__ = ['tumblr_download']
from ..common import *
-
-import re
+from .universal import *
def tumblr_downl... | [tumblr] support direct URLs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ setup(name='Flask-JWT-Extended',
platforms='any',
install_requires=[
'Werkzeug>=0.14', # Needed for SameSite cookie functionality
- 'Flask',
+ 'Flask>=1.0',
... | Add minimum Flask version requirement. (#<I>) Install requires Flask version >= <I> for use of get_json method. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ with open('HISTORY.md', encoding='utf-8') as history_file:
install_requires = [
'graphviz>=0.9,<1',
- 'numpy>=1.17.1,<1.19',
+ 'numpy>=1.17.1,<1.21',
'psutil>=5,<6',
] | Update dependencies (#<I>) * Increase numpy cap | py |
diff --git a/keyring/backend.py b/keyring/backend.py
index <HASH>..<HASH> 100644
--- a/keyring/backend.py
+++ b/keyring/backend.py
@@ -297,11 +297,11 @@ class BasicFileKeyring(KeyringBackend):
# fetch the password
try:
- password_base64 = config.get(service, username)
+ passwor... | Fixed more str/bytes issues in BasicFileKeyring | py |
diff --git a/denovonear/weighted_choice.py b/denovonear/weighted_choice.py
index <HASH>..<HASH> 100755
--- a/denovonear/weighted_choice.py
+++ b/denovonear/weighted_choice.py
@@ -29,7 +29,7 @@ class WeightedChoice(object):
""" return the cumulative probability for the class
"""
- if l... | fixed bug when obtaining the cumulative mutation rate | py |
diff --git a/src/test.py b/src/test.py
index <HASH>..<HASH> 100755
--- a/src/test.py
+++ b/src/test.py
@@ -74,6 +74,7 @@ from pyokit.util.meta import TestMeta
###############################################################################
from pyokit.scripts.fdr import TestFDR
from pyokit.scripts.conservationProfile... | adding test of new indexing script to automated testing; added hook for indexing script to main pyokit scripts | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -73,7 +73,7 @@ setup(
data_files=[(
(BASE_DIR, ['data/nssm_original.exe'])
)],
- install_requires=['sovrin-common-dev==0.2.49', 'python-dateutil'],
+ install_requires=['sovrin-common-dev==0.2.50', 'pyt... | Updated sovrin-common-dev dependency. | py |
diff --git a/python/weka/classifiers.py b/python/weka/classifiers.py
index <HASH>..<HASH> 100644
--- a/python/weka/classifiers.py
+++ b/python/weka/classifiers.py
@@ -21,6 +21,7 @@ import logging
import argparse
import weka.core.jvm as jvm
import weka.core.types as arrays
+import weka.core.classes as classes
from n... | fixed missing import "wutils" with "weka.core.classes" | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,6 @@ setup(
],
install_requires=[
- 'sqlite3',
],
python_requires='>=3', | Remove sqlite3 dependency, as it is not a package -- it is included in python distributions | py |
diff --git a/samcli/__init__.py b/samcli/__init__.py
index <HASH>..<HASH> 100644
--- a/samcli/__init__.py
+++ b/samcli/__init__.py
@@ -2,4 +2,4 @@
SAM CLI version
"""
-__version__ = "0.32.0"
+__version__ = "0.33.0" | chore: release <I> (#<I>) | py |
diff --git a/th_trello/my_trello.py b/th_trello/my_trello.py
index <HASH>..<HASH> 100644
--- a/th_trello/my_trello.py
+++ b/th_trello/my_trello.py
@@ -32,7 +32,7 @@ from django_th.models import update_result, UserService
logger = getLogger('django_th.trigger_happy')
-cache = caches['th_trello']
+cache = caches['dj... | Replaced cache variable REPLACED: cache = caches['th_<service>'] With cache = caches['django_th'] | py |
diff --git a/superset/migrations/versions/18532d70ab98_fix_table_unique_constraint_in_mysql.py b/superset/migrations/versions/18532d70ab98_fix_table_unique_constraint_in_mysql.py
index <HASH>..<HASH> 100644
--- a/superset/migrations/versions/18532d70ab98_fix_table_unique_constraint_in_mysql.py
+++ b/superset/migrations... | fix: alembic migration error msg trying to delete constraint on tables (#<I>) * fix: alembic migration fails by deleting non existent constraint on tables * Revert "fix: alembic migration fails by deleting non existent constraint on tables" This reverts commit 3a<I>b<I>f4bf<I>c3de2d<I>e<I>bd3d<I>f. * mantain ... | py |
diff --git a/categories/migration.py b/categories/migration.py
index <HASH>..<HASH> 100644
--- a/categories/migration.py
+++ b/categories/migration.py
@@ -1,5 +1,4 @@
-from django.db import models
-from django.db.utils import DatabaseError
+from django.db import models, DatabaseError
from south.db import db
from so... | Changed the DatabaseError import to be more compatible | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,9 +5,9 @@
from setuptools import setup
setup(name="replacer",
- version="1.0.3",
+ version="1.0.4",
description="Replace text in files",
- url="http://github.com/yannicklm/replacer",
+ url="ht... | setup: bump to <I> fix url | py |
diff --git a/alphatwirl/loop/deprecated.py b/alphatwirl/loop/deprecated.py
index <HASH>..<HASH> 100644
--- a/alphatwirl/loop/deprecated.py
+++ b/alphatwirl/loop/deprecated.py
@@ -1,7 +1,7 @@
# Tai Sakuma <tai.sakuma@gmail.com>
import logging
-from ..progressbar import ProgressReport
+from atpbar import atpbar
fr... | replace ProgressReport with atpbar in a deprecated class | py |
diff --git a/pyphi/distance.py b/pyphi/distance.py
index <HASH>..<HASH> 100644
--- a/pyphi/distance.py
+++ b/pyphi/distance.py
@@ -248,6 +248,32 @@ def klm(p, q):
return np.max(np.abs(p * np.nan_to_num(np.log2(p / q))))
+# TODO add reference to ID paper
+@measures.register("ID", asymmetric=True)
+@np_suppress(... | distance.py: Add `intrinsic_difference()` measure | py |
diff --git a/triflow/core/simulation.py b/triflow/core/simulation.py
index <HASH>..<HASH> 100755
--- a/triflow/core/simulation.py
+++ b/triflow/core/simulation.py
@@ -215,10 +215,10 @@ class Simulation(object):
self.dt = (self.tmax - t
if self.tmax and (t + self.dt >= self.tmax)
... | change time.clock to time.process_time | py |
diff --git a/spyder/config/main.py b/spyder/config/main.py
index <HASH>..<HASH> 100644
--- a/spyder/config/main.py
+++ b/spyder/config/main.py
@@ -625,4 +625,4 @@ NAME_MAP = {
# or if you want to *rename* options, then you need to do a MAJOR update in
# version, e.g. from 3.0.0 to 4.0.0
# 3. You don't need t... | Updated CONF_VERSION to <I> | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -445,8 +445,8 @@ class State(object):
reqs[name][req_val] = req_key
if req_val in reqs:
... | Fix recursive check for the correct data | py |
diff --git a/saltant/models/base_task_instance.py b/saltant/models/base_task_instance.py
index <HASH>..<HASH> 100644
--- a/saltant/models/base_task_instance.py
+++ b/saltant/models/base_task_instance.py
@@ -95,7 +95,7 @@ class BaseTaskInstanceManager(ModelManager):
Returns:
:obj:`saltant.models.... | Fix a few docstring issues | py |
diff --git a/nolds/__init__.py b/nolds/__init__.py
index <HASH>..<HASH> 100644
--- a/nolds/__init__.py
+++ b/nolds/__init__.py
@@ -1,3 +1,2 @@
from .measures import lyap_r, lyap_e, sampen, hurst_rs, corr_dim, dfa, \
- fbm, binary_n, logarithmic_n, logarithmic_r, set_fitting_mode, FIT_POLY, \
- FIT_RANSAC
+ fb... | removes set_fitting_mode, FIT_POLY and FIT_RANSAC from imports | py |
diff --git a/wakatime/projects/projectmap.py b/wakatime/projects/projectmap.py
index <HASH>..<HASH> 100644
--- a/wakatime/projects/projectmap.py
+++ b/wakatime/projects/projectmap.py
@@ -12,6 +12,7 @@
import logging
import os
+from functools import partial
from ..packages import simplejson as json
@@ -23,22 +2... | Fix ProjectMap always returning true if it has a config section | py |
diff --git a/mitm6/mitm6.py b/mitm6/mitm6.py
index <HASH>..<HASH> 100644
--- a/mitm6/mitm6.py
+++ b/mitm6/mitm6.py
@@ -40,9 +40,15 @@ class Config(object):
self.v4addr = args.ipv4
if args.ipv6 is None:
try:
- self.v6addr = netifaces.ifaddresses(self.default_if)[netiface... | pick link-local by default (fixes #6) | py |
diff --git a/lmj/nn/main.py b/lmj/nn/main.py
index <HASH>..<HASH> 100644
--- a/lmj/nn/main.py
+++ b/lmj/nn/main.py
@@ -179,9 +179,10 @@ class Experiment(object):
kwargs['batches'] = b
if 'size' not in kwargs:
kwargs['size'] = self.args.batch_size
+ kwargs['label'] = label
... | Fix a couple of bugs in new Experiment class. | py |
diff --git a/tests/test_bip32.py b/tests/test_bip32.py
index <HASH>..<HASH> 100644
--- a/tests/test_bip32.py
+++ b/tests/test_bip32.py
@@ -354,6 +354,11 @@ class TestWalletVectors2(_TestWalletVectors):
class _TestWalletVectorsDogecoin(TestCase):
+ """
+ This is a reduced test because Dogecoin doesn't have of... | Move docs for dogecoin bip<I> tests, add note about bip<I>.org | py |
diff --git a/tensorboardX/writer.py b/tensorboardX/writer.py
index <HASH>..<HASH> 100644
--- a/tensorboardX/writer.py
+++ b/tensorboardX/writer.py
@@ -411,7 +411,10 @@ class SummaryWriter(object):
"""
if self._check_caffe2_blob(scalar_value):
- scalar_value = workspace.FetchBlob(scalar_va... | throw TypeError when bad data is passed in to add_scalar rather than NameError due to absence of caffe2 workspace (#<I>) | py |
diff --git a/floyd/cli/auth.py b/floyd/cli/auth.py
index <HASH>..<HASH> 100644
--- a/floyd/cli/auth.py
+++ b/floyd/cli/auth.py
@@ -9,14 +9,17 @@ from floyd.log import logger as floyd_logger
@click.command()
-def login():
+@click.option('--token', is_flag=True, default=False, help='Just enter token')
+def login(tok... | Add support for --token in login command This can be used when you already have the token and do not want to open the browser. | py |
diff --git a/ariane_procos/system.py b/ariane_procos/system.py
index <HASH>..<HASH> 100644
--- a/ariane_procos/system.py
+++ b/ariane_procos/system.py
@@ -305,9 +305,11 @@ class OperatingSystem(object):
nic.ipv4_address = snic.address
nic.ipv4_mask = snic.netmas... | [ACC-<I>] fix fqdn definition | py |
diff --git a/salt/states/gem.py b/salt/states/gem.py
index <HASH>..<HASH> 100644
--- a/salt/states/gem.py
+++ b/salt/states/gem.py
@@ -23,7 +23,7 @@ def __virtual__():
'''
Only load if gem module is available in __salt__
'''
- return 'gem' if 'gem.list' in __salt__ else False
+ return 'gem.list' in... | Not renaming, return a boolean in `__virtual__()`. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,6 +4,7 @@ setup(name='DashTable',
version='1.1.2',
author='Gustav Klopp',
author_email='gustavk@protonmail.com',
+ description='A library for converting a HTML table into an ASCII table',
ur... | Update setup.py Adding `description` to `setup.py`. This will automatically be picked up by `pypi` and shown as description to search results. | py |
diff --git a/spherecluster/von_mises_fisher_mixture.py b/spherecluster/von_mises_fisher_mixture.py
index <HASH>..<HASH> 100644
--- a/spherecluster/von_mises_fisher_mixture.py
+++ b/spherecluster/von_mises_fisher_mixture.py
@@ -86,10 +86,6 @@ def _vmf_normalize(kappa, dim):
return num / denom
-def _beta_SS(nu):... | Remove a function that was only used once | py |
diff --git a/dojo/nn/layers.py b/dojo/nn/layers.py
index <HASH>..<HASH> 100644
--- a/dojo/nn/layers.py
+++ b/dojo/nn/layers.py
@@ -24,6 +24,8 @@ class BaseLayer(ABC):
def update(self, alpha):
pass
+# ====================================================================================================
+# ... | [Formatting] layer, new lines | py |
diff --git a/crisp/camera.py b/crisp/camera.py
index <HASH>..<HASH> 100644
--- a/crisp/camera.py
+++ b/crisp/camera.py
@@ -231,7 +231,7 @@ class AtanCameraModel(CameraModel):
"""
K = self.camera_matrix
XU = points
- XU /= np.tile(XU[2], (3,1))
+ XU = XU / np.tile(XU[2], (3,1))
... | AtanCameraModel changed input data The project() and unproject() methods unintentionally changed the input data inplace. | py |
diff --git a/bioio.py b/bioio.py
index <HASH>..<HASH> 100644
--- a/bioio.py
+++ b/bioio.py
@@ -244,6 +244,11 @@ def getTotalMemoryUsage():
"""
return getTotalCpuTimeAndMemoryUsage()[1]
+def absSymPath(path):
+ """like os.path.abspath except it doesn't dereference symlinks
+ """
+ curr_path = os.env... | add absSymPath for getting absolute paths without deref symlinks | py |
diff --git a/SALib/tests/test_morris_optimal.py b/SALib/tests/test_morris_optimal.py
index <HASH>..<HASH> 100644
--- a/SALib/tests/test_morris_optimal.py
+++ b/SALib/tests/test_morris_optimal.py
@@ -109,13 +109,6 @@ def test_find_optimum_trajectories():
np.testing.assert_equal(output, expected)
-def setup_func... | Removed setup_function from test_morris_optimal | py |
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/readinput.py
+++ b/openquake/commonlib/readinput.py
@@ -648,14 +648,16 @@ def get_sitecol_assetcol(oqparam, haz_sitecol):
if obj.sid in sids and distance <= haz_distance:
... | More refactoring [skip hazardlib] | py |
diff --git a/fireplace/cards/utils.py b/fireplace/cards/utils.py
index <HASH>..<HASH> 100644
--- a/fireplace/cards/utils.py
+++ b/fireplace/cards/utils.py
@@ -48,7 +48,7 @@ CLEAVE = Hit(TARGET_ADJACENT, Attr(SELF, GameTag.ATK))
COINFLIP = RandomNumber(0, 1) == 1
EMPTY_HAND = Count(FRIENDLY_HAND) == 0
HOLDING_DRAGON ... | Fix Joust picking with multiple minions in the deck | py |
diff --git a/pyfolio/tears.py b/pyfolio/tears.py
index <HASH>..<HASH> 100644
--- a/pyfolio/tears.py
+++ b/pyfolio/tears.py
@@ -1089,11 +1089,14 @@ def create_risk_tear_sheet(positions,
- DataFrame with dates as index, equities as columns
- DataFrame has a multi-index index, one level is dates and anot... | comment (cherry picked from commit <I>db<I>cd<I>f<I>b1e5fac<I>) | py |
diff --git a/pydsl/Grammar/Parser/Parser.py b/pydsl/Grammar/Parser/Parser.py
index <HASH>..<HASH> 100644
--- a/pydsl/Grammar/Parser/Parser.py
+++ b/pydsl/Grammar/Parser/Parser.py
@@ -225,12 +225,12 @@ class TopDownParser(Parser):
"""Top down parser like descent parser"""
def __init__(self, bnfgrammar:BNFGramm... | moved Lexer instanciation to TopUpParser class | py |
diff --git a/import_export/results.py b/import_export/results.py
index <HASH>..<HASH> 100644
--- a/import_export/results.py
+++ b/import_export/results.py
@@ -53,7 +53,7 @@ class Result(object):
def append_failed_row(self, row, error):
row_values = [v for (k, v) in row.items()]
- row_values.appen... | Error in converting exceptions to strings Unless I'm misunderstanding something, the `Exception` class' `message` attribute has been removed in python <I>/<I> (at least according to <URL>`. This caused an error for me when when a `ValueError` was caught during a dry run with `collect_failed_rows=True`. I'm running ... | py |
diff --git a/pilbox/app.py b/pilbox/app.py
index <HASH>..<HASH> 100755
--- a/pilbox/app.py
+++ b/pilbox/app.py
@@ -103,7 +103,6 @@ class PilboxApplication(tornado.web.Application):
implicit_base_url=options.implicit_base_url,
validate_cert=options.validate_cert,
content_type_from_... | Removed redundant option that had stuck around. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ setup(
packages=packages,
package_dir={'rwslib': 'rwslib'},
include_package_data=True,
- install_requires=['requests','lxml','httpretty'],
+ install_requires=['requests', 'lxml', 'httpretty'... | Updated dependencies Added extra classifiers | py |
diff --git a/grapheneexchange/exchange.py b/grapheneexchange/exchange.py
index <HASH>..<HASH> 100644
--- a/grapheneexchange/exchange.py
+++ b/grapheneexchange/exchange.py
@@ -981,11 +981,17 @@ class GrapheneExchange(GrapheneClient) :
for debt in debts:
base = self.getObject(debt["call_price"]["ba... | [exchange] do not fail if no settlement price exists, i.e. get_debt_position called on non-bitasset | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ def read(fname):
return io.open(file_path, encoding='utf-8').read()
-version = '0.8.4.4'
+version = '0.8.5.dev0'
setuptools.setup( | Back to development: <I> | py |
diff --git a/salt/modules/cmd.py b/salt/modules/cmd.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cmd.py
+++ b/salt/modules/cmd.py
@@ -47,6 +47,9 @@ def exec_code(lang, code):
Pass in two strings, the first naming the executable language, aka -
python2, python3, ruby, perl, lua, etc. the second string con... | Add to the docstring for cmd.exec_code | py |
diff --git a/lib/svtplay_dl/__init__.py b/lib/svtplay_dl/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/__init__.py
+++ b/lib/svtplay_dl/__init__.py
@@ -98,10 +98,18 @@ def get_media(url, options):
log.info("Episode %d of %d", idx + 1, len(episodes))
- # get_one_media overwrite... | get_media: catch urlerror here? | py |
diff --git a/plexapi/base.py b/plexapi/base.py
index <HASH>..<HASH> 100644
--- a/plexapi/base.py
+++ b/plexapi/base.py
@@ -54,8 +54,8 @@ class PlexObject(object):
return '<%s>' % ':'.join([p for p in [self.__class__.__name__, uid, name] if p])
def __setattr__(self, attr, value):
- # dont overwrit... | Don't overwrite existing attributes with an empty list (#<I>) * Don't overwrite existing attributes with an empty list * Also check for empty lists in __eq__ | py |
diff --git a/master/buildbot/sourcestamp.py b/master/buildbot/sourcestamp.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/sourcestamp.py
+++ b/master/buildbot/sourcestamp.py
@@ -222,7 +222,6 @@ class SourceStamp(util.ComparableMixin, styles.Versioned):
patch=self.patch, repository=self.... | Absolute sourcestamp must not contain reference to sourcestampset. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.