diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/eng/test_external.py b/tests/eng/test_external.py
index <HASH>..<HASH> 100644
--- a/tests/eng/test_external.py
+++ b/tests/eng/test_external.py
@@ -20,7 +20,8 @@ def test_feature_engine():
except ImportError:
pass
else:
- from ballet.eng.feature_engine import YeoJohnsonTrans... | rewrap isort has not released patch to <I> yet for #<I> | py |
diff --git a/analyzers/TalosReputation/TalosReputation.py b/analyzers/TalosReputation/TalosReputation.py
index <HASH>..<HASH> 100755
--- a/analyzers/TalosReputation/TalosReputation.py
+++ b/analyzers/TalosReputation/TalosReputation.py
@@ -30,12 +30,13 @@ class TalosReputation(Analyzer):
if self.data_type == 'i... | changed user-agent and accept/accept-encoding to make Talos reverse-proxy happy | py |
diff --git a/torext/handlers/base.py b/torext/handlers/base.py
index <HASH>..<HASH> 100644
--- a/torext/handlers/base.py
+++ b/torext/handlers/base.py
@@ -181,9 +181,9 @@ class BaseHandler(tornado.web.RequestHandler):
chunk could be any type of (str, dict, list)
"""
assert chunk is not None, ... | fix json header unset in write_json when chunk is str | py |
diff --git a/paramiko/transport.py b/paramiko/transport.py
index <HASH>..<HASH> 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -966,6 +966,8 @@ class Transport (threading.Thread):
supplied, this method returns ``None``.
:returns: server supplied banner (`str`), or ``None``.
+
+ ... | Add a missing versionadded for get_banner | py |
diff --git a/workbench_cli/workbench_cli/workbench_shell.py b/workbench_cli/workbench_cli/workbench_shell.py
index <HASH>..<HASH> 100644
--- a/workbench_cli/workbench_cli/workbench_shell.py
+++ b/workbench_cli/workbench_cli/workbench_shell.py
@@ -170,9 +170,7 @@ class WorkbenchShell(object):
def chunks(data, chunk... | just some cleanup around lz4 compression | py |
diff --git a/pyad2usb/devices.py b/pyad2usb/devices.py
index <HASH>..<HASH> 100644
--- a/pyad2usb/devices.py
+++ b/pyad2usb/devices.py
@@ -428,6 +428,8 @@ class SerialDevice(Device):
time.sleep(0.001)
except (OSError, serial.SerialException), err:
+ timer.cancel()
+
r... | Fixed a potential timer issue. | py |
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -215,6 +215,14 @@ class Command(_BaseCommand):
If ``True``\, cooldown processing is done after argument parsing,
which calls con... | [commands] Add Command.extras | py |
diff --git a/examples/basic_usage.py b/examples/basic_usage.py
index <HASH>..<HASH> 100644
--- a/examples/basic_usage.py
+++ b/examples/basic_usage.py
@@ -58,11 +58,9 @@ def main():
reports = ts.get_latest_reports(token)
for report in reports:
- break;
-
- result = ts.get_report_de... | Change do_report_details in basic_usage to get details of 5 different reports | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,7 @@ setup(
# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
- packages=find_packages(exclude=['examples', 'testing']),
+ packages=find_... | setup.py update changed ‘examples’ to ‘docs’ for ignored packages. | py |
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based.py
+++ b/openquake/calculators/event_based.py
@@ -332,13 +332,12 @@ def set_counts(dstore, dsetname):
def set_random_years(dstore, name, investigation_time):
... | Updated docstring [skip CI] Former-commit-id: <I>fb4ccb5d0d<I>ee<I>a<I>d7f<I>d | py |
diff --git a/appmetrics/histogram.py b/appmetrics/histogram.py
index <HASH>..<HASH> 100644
--- a/appmetrics/histogram.py
+++ b/appmetrics/histogram.py
@@ -352,6 +352,7 @@ class Histogram(object):
@contextmanager
def time(self):
+ """A context manager which times execution of a piece of code"""
... | Added a comment for `time`. | py |
diff --git a/tests/test_lens.py b/tests/test_lens.py
index <HASH>..<HASH> 100644
--- a/tests/test_lens.py
+++ b/tests/test_lens.py
@@ -1,3 +1,5 @@
+import collections
+
import pytest
from lenses import lens, baselens
@@ -101,8 +103,18 @@ def test_lens_getitem():
assert lens([1, 2, 3]).getitem_(1).get() == 2
... | added test for Lens.__getattr__ and Lens.__getitem__ | py |
diff --git a/timepiece/utils.py b/timepiece/utils.py
index <HASH>..<HASH> 100644
--- a/timepiece/utils.py
+++ b/timepiece/utils.py
@@ -303,7 +303,7 @@ def date_filter(func):
return inner_decorator
-def get_hours(entries):
+def get_hours(entries):
hours = {'total': 0}
for entry in entries:
... | [#<I>] PEP 8 Fix | py |
diff --git a/adminrestrict/tests.py b/adminrestrict/tests.py
index <HASH>..<HASH> 100755
--- a/adminrestrict/tests.py
+++ b/adminrestrict/tests.py
@@ -16,10 +16,9 @@ class ModelTests(TestCase):
def setUp(self):
self.user = User.objects.create_user(username="foo", password="bar")
- def test_blocked_ip... | Changed test to allowed with empty table | py |
diff --git a/codecov/__init__.py b/codecov/__init__.py
index <HASH>..<HASH> 100644
--- a/codecov/__init__.py
+++ b/codecov/__init__.py
@@ -27,10 +27,22 @@ try:
except ImportError: # pragma: no cover
from urllib import urlencode
-try:
- from shlex import quote
-except ImportError: # pragma: no cover
- fr... | Fix command line quoting for Windows (#<I>) | py |
diff --git a/snapcast/control/server.py b/snapcast/control/server.py
index <HASH>..<HASH> 100644
--- a/snapcast/control/server.py
+++ b/snapcast/control/server.py
@@ -277,7 +277,10 @@ class Snapserver(object):
def _on_group_mute(self, data):
"""Handle group mute."""
- self._groups.get(data.get('i... | fire client callbacks on stream update and group mute | py |
diff --git a/pydoc-markdown/src/pydoc_markdown/contrib/renderers/hugo.py b/pydoc-markdown/src/pydoc_markdown/contrib/renderers/hugo.py
index <HASH>..<HASH> 100644
--- a/pydoc-markdown/src/pydoc_markdown/contrib/renderers/hugo.py
+++ b/pydoc-markdown/src/pydoc_markdown/contrib/renderers/hugo.py
@@ -340,7 +340,7 @@ def i... | fix typo in pydoc_markdown/contrib/renderers/hugo.py (#<I>) | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -265,5 +265,6 @@ texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'https://docs.python.org/3/': None,
- 'https://pyopenssl.r... | Connect intersphinx to babel docs | py |
diff --git a/clusters.py b/clusters.py
index <HASH>..<HASH> 100644
--- a/clusters.py
+++ b/clusters.py
@@ -254,8 +254,12 @@ class ClusterEnsemble(object):
@property
def massrich_norm(self):
"""Normalization of Mass-Richness relation:
+
M200 = norm * (N200 / 20) ^ slope.
+ Changes to... | be explicit about effects of changing mass-rich relation in docs | py |
diff --git a/sos/archive.py b/sos/archive.py
index <HASH>..<HASH> 100644
--- a/sos/archive.py
+++ b/sos/archive.py
@@ -340,14 +340,14 @@ class FileCacheArchive(Archive):
# path case
try:
shutil.copy(src, dest)
+ except OSError as e:
+ ... | [archive] Re-order exception handling in add_file Re orders the order of exception handling within add_file(), to avoid an unreachable OSError as highlighted by LGTM. | py |
diff --git a/scanpy/neighbors/__init__.py b/scanpy/neighbors/__init__.py
index <HASH>..<HASH> 100644
--- a/scanpy/neighbors/__init__.py
+++ b/scanpy/neighbors/__init__.py
@@ -318,6 +318,11 @@ def compute_connectivities_umap(
knn_indices=knn_indices, knn_dists=knn_dists,
... | Preparations for UMAP <I> release (#<I>) | py |
diff --git a/dallinger/models.py b/dallinger/models.py
index <HASH>..<HASH> 100644
--- a/dallinger/models.py
+++ b/dallinger/models.py
@@ -37,23 +37,23 @@ class SharedMixin(object):
#: a generic column that can be used to store experiment-specific details in
#: String form.
- property1 = Column(String(25... | Convert properties from String to Text (#<I>) * convert property1 from String to Text this allows strings of any length to be stored * convert extra properties to text type as well | py |
diff --git a/tests/test_DemographyDebugger.py b/tests/test_DemographyDebugger.py
index <HASH>..<HASH> 100644
--- a/tests/test_DemographyDebugger.py
+++ b/tests/test_DemographyDebugger.py
@@ -143,10 +143,12 @@ class TestBadMassMigrations(unittest.TestCase):
setup_and_run_model(self.pop, d, 20)
-# FIXME:... | Rename and document test. Closes #<I> | py |
diff --git a/kubespawner/objects.py b/kubespawner/objects.py
index <HASH>..<HASH> 100644
--- a/kubespawner/objects.py
+++ b/kubespawner/objects.py
@@ -19,7 +19,7 @@ from kubernetes.client.models import (
V1Service, V1ServiceSpec, V1ServicePort,
V1beta1Ingress, V1beta1IngressSpec, V1beta1IngressRule,
V1be... | Esthetics: use trailing spaces I have come to realize the value of using trailing spaces when it comes to version control. We can end up with less clutter and potentially even avoiding merge conflicts if we use trailing spaces. | py |
diff --git a/lewis/adapters/stream.py b/lewis/adapters/stream.py
index <HASH>..<HASH> 100644
--- a/lewis/adapters/stream.py
+++ b/lewis/adapters/stream.py
@@ -501,7 +501,7 @@ class StreamAdapter(Adapter):
if bound is None:
raise RuntimeError(
'Unable to produce callabl... | Fix wrong variable name in _bind_commands This was a leftover from the old `Cmd` which was overlooked when this was refactored. | py |
diff --git a/tests/unit/remote/test_s3.py b/tests/unit/remote/test_s3.py
index <HASH>..<HASH> 100644
--- a/tests/unit/remote/test_s3.py
+++ b/tests/unit/remote/test_s3.py
@@ -83,3 +83,20 @@ def test_walk_files(remote):
]
assert list(remote.walk_files(remote.path_info / "data")) == files
+
+
+def test_copy_p... | tests: same ETag across buckets | py |
diff --git a/test/test_report_structured.py b/test/test_report_structured.py
index <HASH>..<HASH> 100644
--- a/test/test_report_structured.py
+++ b/test/test_report_structured.py
@@ -219,8 +219,7 @@ def test_csv_file_output(capsys, tmpdir):
test_file = str(target_dir) + 'test2'
cfg['reports'] = [{'type': 'c... | Unnecessary opening of file | py |
diff --git a/pytest-pyramid-server/pytest_pyramid_server.py b/pytest-pyramid-server/pytest_pyramid_server.py
index <HASH>..<HASH> 100644
--- a/pytest-pyramid-server/pytest_pyramid_server.py
+++ b/pytest-pyramid-server/pytest_pyramid_server.py
@@ -20,6 +20,7 @@ from wsgiref.simple_server import make_server
from paste.d... | Make pyramid server respect fixture config hostname, specific setup for selenium should be done higher in the stack | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ setup(
author='Frederik Beaujean, Stephan Jahn',
author_email='Frederik.Beaujean@lmu.de, stephan.jahn@mytum.de',
license='GPLv2',
- install_requires=['numpy', 'scipy', 'cython'],
+ install_r... | [setup.py] force setuptools version >= <I> during setup | py |
diff --git a/pandas_td/td.py b/pandas_td/td.py
index <HASH>..<HASH> 100644
--- a/pandas_td/td.py
+++ b/pandas_td/td.py
@@ -132,10 +132,10 @@ class QueryEngine(object):
html += '</pre>\n'
# progress
progress = None
- for progress in re.findall(r'\n(\d{4}-\d{2}-\d{2}.*(?:\n .*)+)', outpu... | fix parsing Presto's query progress | py |
diff --git a/tests/test_settings.py b/tests/test_settings.py
index <HASH>..<HASH> 100644
--- a/tests/test_settings.py
+++ b/tests/test_settings.py
@@ -4,12 +4,16 @@
import unittest
import tempfile
+import sys
from os.path import basename, dirname, splitext
-from PyQt5.QtCore import QSettings
+from PyQt5.QtCore i... | test_settings: Keep QCoreApplication in memory So that QSettings destructor does not print a warning. | py |
diff --git a/andes/core/model.py b/andes/core/model.py
index <HASH>..<HASH> 100644
--- a/andes/core/model.py
+++ b/andes/core/model.py
@@ -2131,6 +2131,8 @@ from numpy import greater_equal, less_equal, greater, less # NOQA
src = inspect.getsource(func)
src = src.replace("def _lambdifygenerated(", f... | Manually remove `Indicator` in the generated function. | py |
diff --git a/woven/deployment.py b/woven/deployment.py
index <HASH>..<HASH> 100644
--- a/woven/deployment.py
+++ b/woven/deployment.py
@@ -121,10 +121,8 @@ def deploy_files(local_dir, remote_dir, pattern = '',rsync_exclude=['*.pyc','.*'
run(' '.join(['mkdir -pv',remote_staging_dir])).split('\n')
creat... | fixed issue with extra_opts for rsync custom port | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+#
# Copyright (C) 2014 by Alex Brandt <alunduil@alunduil.com>
#
# crumbs is freely distributable under the terms of an MIT-style license. | add coding to setup.py for unicode characters in python<I> | py |
diff --git a/satpy/readers/agri_l1.py b/satpy/readers/agri_l1.py
index <HASH>..<HASH> 100755
--- a/satpy/readers/agri_l1.py
+++ b/satpy/readers/agri_l1.py
@@ -54,9 +54,11 @@ class HDF_AGRI_L1(HDF5FileHandler):
lut_key = ds_info.get('lut_key', dataset_id.name)
data = self.get(file_key)
lut =... | bugfix: ignore the Chinese character in long_name rename dimension name for satpy features | py |
diff --git a/tests/test_behaviour.py b/tests/test_behaviour.py
index <HASH>..<HASH> 100644
--- a/tests/test_behaviour.py
+++ b/tests/test_behaviour.py
@@ -18,7 +18,7 @@ STATE_TWO = "STATE_TWO"
STATE_THREE = "STATE_THREE"
-def wait_for_event(event, tries=100, sleep=0.1):
+def wait_for_event(event, tries=200, sleep=... | Increase wait tries for behaviour tests. | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -1202,7 +1202,7 @@ def test_python_prerelease_release_postrelease(tmpdir, capsys):
parse = ^
(?P<major>\d+)\.(?P<minor>\d+) # minimum 'N.N'
(?:
- (?P<prerel>[abc]|rc) ... | pep-<I> style test: also parse 'dev' prerel | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -62,13 +62,12 @@ install_requires = setup_requires + ['Mako>=1.0.1',
'pillow',
'h5py>=2.5',
'jinja2',
- 'pycbc-mpld3>=0.3.dev0',
+ ... | depend on release mpld3 (#<I>) | py |
diff --git a/src/comet.py b/src/comet.py
index <HASH>..<HASH> 100644
--- a/src/comet.py
+++ b/src/comet.py
@@ -182,7 +182,8 @@ class CometJoyceClientRelay(JoyceRelay):
def run(self):
assert not self.running
self.running = True
- self._do_request()
+ if self.token is None:
+ self._do_request()
self.hub.th... | comet: client: only do initial request on None token | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ test_requirements = [
setup(
name='graphql-ws',
- version='0.1.1',
+ version='0.2.0',
description="Websocket server for GraphQL subscriptions",
long_description=readme + '\n\n' + history,... | Updated version to <I> | py |
diff --git a/green/process.py b/green/process.py
index <HASH>..<HASH> 100644
--- a/green/process.py
+++ b/green/process.py
@@ -297,6 +297,11 @@ def poolRunner(target, queue, coverage_number=None, omit_patterns=[]): # pragma:
# Loading was successful, lets do this
try:
test.run(result)
+ ... | Crashes in setUpClass() are (stupidly) reported in a completely different way than any other failure or crash in unittest. Now we handle that way. Fixes #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,6 @@ install_requires = [
"celery>=4.1.0",
"colorlog",
"coverage",
- "docker-compose",
"flake8>=3.4.1",
"future",
"kombu>=4.1.0",
@@ -51,7 +50,7 @@ sys.path.insert(0, os.path.join(os.... | removing docker compose req | py |
diff --git a/matrix_client/client.py b/matrix_client/client.py
index <HASH>..<HASH> 100644
--- a/matrix_client/client.py
+++ b/matrix_client/client.py
@@ -393,7 +393,7 @@ class Room(object):
self.events.pop(0)
for listener in self.listeners:
- listener(event)
+ listener(sel... | client: Pass room as arguement to event callbacks. When we get an event, the room part is striped away before the event callback on the room gets the event. So inside the callback there is no easy way to find in which room the event has happened. | py |
diff --git a/pandas/core/series.py b/pandas/core/series.py
index <HASH>..<HASH> 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1603,7 +1603,7 @@ copy : boolean, default False
path : string or None
Output filepath. If None, write to stdout
"""
- f = open(path, 'w... | Fix bug writing Series to CSV in Python 3. | py |
diff --git a/dvc/__init__.py b/dvc/__init__.py
index <HASH>..<HASH> 100644
--- a/dvc/__init__.py
+++ b/dvc/__init__.py
@@ -7,7 +7,7 @@ import os
import warnings
-VERSION_BASE = '0.18.8'
+VERSION_BASE = '0.18.9'
__version__ = VERSION_BASE
PACKAGEPATH = os.path.abspath(os.path.dirname(__file__)) | dvc: bump to <I> | py |
diff --git a/intranet/apps/eighth/models.py b/intranet/apps/eighth/models.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/eighth/models.py
+++ b/intranet/apps/eighth/models.py
@@ -214,17 +214,20 @@ class EighthActivity(AbstractBaseEighthModel):
def save(self, *args, **kwargs):
update_aid = False
- ... | correctly save AID and update with reg ID when appropriate | py |
diff --git a/tweepy/models.py b/tweepy/models.py
index <HASH>..<HASH> 100644
--- a/tweepy/models.py
+++ b/tweepy/models.py
@@ -231,6 +231,7 @@ class DirectMessage(Model):
@classmethod
def parse(cls, api, json):
dm = cls(api)
+ setattr(dm, '_json', json)
if "event" in json:
... | EHN: Save the raw JSON on DirectMessages as well. This brings the behavior of the `DirectMessage` model in line with other `Model`s. | py |
diff --git a/src/accounts/views.py b/src/accounts/views.py
index <HASH>..<HASH> 100644
--- a/src/accounts/views.py
+++ b/src/accounts/views.py
@@ -71,6 +71,7 @@ class UserProfileDetailView(UserProfileBaseMixin, DetailView):
'ticket': TicketCollabCount,
}
+ messages = Message.objects.filte... | Fixing emails count on area contribution chart of user profile | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ setup(
(http://pythonpaste.org/webtest/) with django's testing framework.""",
long_description = open('README.rst').read(),
- install_requires = ['webtest'],
+ requires = ['webtest'],
classi... | django-webtest doesn't use setuptools and distutils doesn't support install_requires | py |
diff --git a/src/python/setup.py b/src/python/setup.py
index <HASH>..<HASH> 100644
--- a/src/python/setup.py
+++ b/src/python/setup.py
@@ -27,7 +27,7 @@ def get_long_description():
setup(
name='im-pipelines-utils',
- version=os.environ.get('TRAVIS_TAG', '1.0.0'),
+ version=os.environ.get('GITHUB_REF_SLUG'... | - Setup now expects SLUG | py |
diff --git a/compliance/run-autobahn-tests.py b/compliance/run-autobahn-tests.py
index <HASH>..<HASH> 100644
--- a/compliance/run-autobahn-tests.py
+++ b/compliance/run-autobahn-tests.py
@@ -4,6 +4,7 @@
from __future__ import print_function
import sys
+import os
import os.path
import argparse
import errno
@@ -20... | Disable hash randomization when running autobahn tests Fixes: gh-<I> | py |
diff --git a/sentry_sdk/utils.py b/sentry_sdk/utils.py
index <HASH>..<HASH> 100644
--- a/sentry_sdk/utils.py
+++ b/sentry_sdk/utils.py
@@ -64,7 +64,7 @@ def get_default_release():
try:
release = (
subprocess.Popen(
- ["git", "rev-parse", "--short", "HEAD"],
+ ... | Use full git sha as release name (#<I>) This fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -88,11 +88,10 @@ def get_release_date ():
MSVCP90Version = '9.0.21022.8'
MSVCP90Token = '1fc8b3b9a1e18e3b'
-data_files = []
if os.name == 'nt':
- data_files.append(('share', ['doc/README.txt']))
+ data_files = []
e... | Dont install readme.txt on windows. | py |
diff --git a/pyblish_qml/app.py b/pyblish_qml/app.py
index <HASH>..<HASH> 100644
--- a/pyblish_qml/app.py
+++ b/pyblish_qml/app.py
@@ -85,6 +85,7 @@ class Application(QtGui.QGuiApplication):
host = ipc.client.Proxy()
controller = control.Controller(host)
+ controller.finished.connect(lambda: ... | Alert the window on controller.finished signal #<I> | py |
diff --git a/tensorlayer/layers.py b/tensorlayer/layers.py
index <HASH>..<HASH> 100755
--- a/tensorlayer/layers.py
+++ b/tensorlayer/layers.py
@@ -1719,9 +1719,14 @@ class BatchNormLayer(Layer):
beta = _get_variable('beta',
params_shape,
i... | Fix batchnormlayer compatibility to TF<I> Add compatibility to TF<I> cause by the change of ones_initializer api. | py |
diff --git a/openquake/engine/db/models.py b/openquake/engine/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/db/models.py
+++ b/openquake/engine/db/models.py
@@ -1996,8 +1996,7 @@ class Gmf(djm.Model):
"""
hc = self.output.oq_job.hazard_calculation
correl_model = hc.get_corre... | Added a method LtRealization.get_gsims_instances | py |
diff --git a/endpoints/interface/uwsgi/client.py b/endpoints/interface/uwsgi/client.py
index <HASH>..<HASH> 100644
--- a/endpoints/interface/uwsgi/client.py
+++ b/endpoints/interface/uwsgi/client.py
@@ -205,7 +205,7 @@ class WebsocketClient(HTTPClient):
kwargs['timeout'] = timeout
try:
... | Client.connect() didn't take path when auto-connecting | py |
diff --git a/src/scout_apm/core/socket.py b/src/scout_apm/core/socket.py
index <HASH>..<HASH> 100644
--- a/src/scout_apm/core/socket.py
+++ b/src/scout_apm/core/socket.py
@@ -77,8 +77,8 @@ class CoreAgentSocket(threading.Thread):
if self._started_event.is_set():
self._stop_event.set()
... | Fix race condition in CoreAgentSocket.stop() (#<I>) I realized that this method has a read-after-write concurrency bug here - if the thread stops successfully but another restarts the thread between the call to `wait()` and `is_set()`, it could incorrectly report failure to stop. `wait()` already returns the value of ... | py |
diff --git a/ht/conv_free_immersed.py b/ht/conv_free_immersed.py
index <HASH>..<HASH> 100644
--- a/ht/conv_free_immersed.py
+++ b/ht/conv_free_immersed.py
@@ -28,7 +28,8 @@ __all__ = ['Nu_vertical_plate_Churchill', 'Nu_horizontal_cylinder_Churchill',
'Nu_vertical_cylinder_Kreith_Eckert',
'Nu_ver... | Added said master function to __all__ | py |
diff --git a/bitshares/amount.py b/bitshares/amount.py
index <HASH>..<HASH> 100644
--- a/bitshares/amount.py
+++ b/bitshares/amount.py
@@ -79,11 +79,16 @@ class Amount(dict):
self["asset"] = Asset(args[1], bitshares_instance=self.bitshares)
self["symbol"] = self["asset"]["symbol"]
- e... | [amount] make sure that quote/base can be dealt with as strings | py |
diff --git a/visidata/vdtui.py b/visidata/vdtui.py
index <HASH>..<HASH> 100755
--- a/visidata/vdtui.py
+++ b/visidata/vdtui.py
@@ -1901,7 +1901,7 @@ class Column:
cls = self.__class__
ret = cls.__new__(cls)
ret.__dict__.update(self.__dict__)
- self.key = False # column copies lose th... | [vdtui] typo bugfix for <I>a<I>, key is really keycol | py |
diff --git a/luigi/lock.py b/luigi/lock.py
index <HASH>..<HASH> 100644
--- a/luigi/lock.py
+++ b/luigi/lock.py
@@ -50,6 +50,8 @@ def getpcmd(pid):
spid, scmd = line.strip().split(' ', 1)
if int(spid) == int(pid):
return scmd
+ # Fallback instead of None, for e.g... | Fallback process command name in lock.getpcmd | py |
diff --git a/py/testdir_single_jvm/test_model_management.py b/py/testdir_single_jvm/test_model_management.py
index <HASH>..<HASH> 100644
--- a/py/testdir_single_jvm/test_model_management.py
+++ b/py/testdir_single_jvm/test_model_management.py
@@ -416,6 +416,7 @@ class ApiTestCase(ModelManagementTestCase):
... | Due to a change in the core the training_duration_in_ms disappeared from GLM. Check for the key before checking its value is > 0. | py |
diff --git a/tensor2tensor/models/research/transformer_vae.py b/tensor2tensor/models/research/transformer_vae.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/models/research/transformer_vae.py
+++ b/tensor2tensor/models/research/transformer_vae.py
@@ -810,7 +810,7 @@ class TransformerAE(t2t_model.T2TModel):
... | Change initializer on the projection tensors to get it working. PiperOrigin-RevId: <I> | py |
diff --git a/tests/unit/modules/pip_test.py b/tests/unit/modules/pip_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/pip_test.py
+++ b/tests/unit/modules/pip_test.py
@@ -556,6 +556,15 @@ class PipTestCase(TestCase):
cwd=None
)
+ def test_no_deps_argument_in_resulting_comm... | Added a mocked test case for `--no-deps` passing to `pip install`. | py |
diff --git a/describe/mock/utils.py b/describe/mock/utils.py
index <HASH>..<HASH> 100644
--- a/describe/mock/utils.py
+++ b/describe/mock/utils.py
@@ -1,7 +1,9 @@
+from ..frozen_dict import FrozenDict
+from args_matcher import ArgList
class Function(tuple):
def __init__(self, (name, args, kwargs, is_property)):... | Function object will automatically make the args and kwargs immutable. Function object also now profiles ways to create new Function objects based on another one and returning an ArgList object. | py |
diff --git a/src/sos/sos_executor.py b/src/sos/sos_executor.py
index <HASH>..<HASH> 100755
--- a/src/sos/sos_executor.py
+++ b/src/sos/sos_executor.py
@@ -464,7 +464,7 @@ class Base_Executor:
res = analyze_section(section)
#
# build DAG with input and output files of s... | Add a bit more debug message to help identify the source of auxiliary step | py |
diff --git a/tests/system/test_topen.py b/tests/system/test_topen.py
index <HASH>..<HASH> 100644
--- a/tests/system/test_topen.py
+++ b/tests/system/test_topen.py
@@ -51,7 +51,7 @@ class topenTest(unittest.TestCase):
# Make assertions
self.assertEqual(actual, expected)
- def test_file_excel(self)... | [#<I>] added system xlsx test | py |
diff --git a/hypermap/aggregator/models.py b/hypermap/aggregator/models.py
index <HASH>..<HASH> 100644
--- a/hypermap/aggregator/models.py
+++ b/hypermap/aggregator/models.py
@@ -831,9 +831,15 @@ def update_layers_wms(service):
wms = WebMapService(service.url)
layer_names = list(wms.contents)
parent = wm... | For wms in some case we need to fallback from parent to a layer to detect crsOptions. maybe we will need the same for other service types? | py |
diff --git a/openquake/calculators/ebr.py b/openquake/calculators/ebr.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/ebr.py
+++ b/openquake/calculators/ebr.py
@@ -256,6 +256,7 @@ class EventBasedRiskCalculator(base.RiskCalculator):
nses = self.oqparam.ses_per_logic_tree_path
saved = {out: ... | Managed the case of no avglosses | py |
diff --git a/lib/emir/core.py b/lib/emir/core.py
index <HASH>..<HASH> 100644
--- a/lib/emir/core.py
+++ b/lib/emir/core.py
@@ -20,6 +20,7 @@
import yaml
from numina.core import BaseInstrument, BasePipeline, InstrumentConfiguration
from numina.core import import_object
+from numina.core.reciperesult import RecipeResu... | Alias numina's RecipeResultAutoQA as emir.core.RecipeResult | py |
diff --git a/androlyze.py b/androlyze.py
index <HASH>..<HASH> 100755
--- a/androlyze.py
+++ b/androlyze.py
@@ -39,7 +39,7 @@ from androguard.decompiler.decompiler import *
from androguard.core import androconf
from androguard.util import read
-from IPython.frontend.terminal.embed import InteractiveShellEmbed
+from ... | Update androlyze.py Correct IPython InteractiveShellEmbed import to avoid the warning: "The top-level `frontend` package has been deprecated. All its subpackages have been moved to the top `IPython` level." | py |
diff --git a/pyinfra/facts/server.py b/pyinfra/facts/server.py
index <HASH>..<HASH> 100644
--- a/pyinfra/facts/server.py
+++ b/pyinfra/facts/server.py
@@ -160,6 +160,7 @@ class LinuxDistribution(FactBase):
_regexes = [
r'(Ubuntu) ([0-9]{2})\.([0-9]{2})',
r'(CentOS) release ([0-9]).([0-9])',
+ ... | +Support for RHEL on `linux_distribution` fact. | py |
diff --git a/telemetry/telemetry/util/global_hooks.py b/telemetry/telemetry/util/global_hooks.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/util/global_hooks.py
+++ b/telemetry/telemetry/util/global_hooks.py
@@ -83,7 +83,7 @@ def InstallAtExitHook():
hangs on the builbots.
"""
# TODO(tonyg): Find a ... | Revert <I> "[Telemetry] Don't setpgrp on cros." Planning to revert a CL that this modified. BUG=<I> > [Telemetry] Don't setpgrp on cros. > > It doesn't work there for some reason. > > BUG= > > Review URL: <URL> | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100644
--- a/runtests.py
+++ b/runtests.py
@@ -7,6 +7,7 @@ import django
DEFAULT_SETTINGS = {
'INSTALLED_APPS': (
+ 'django.contrib.gis',
'spillway',
'tests',
), | Enable contrib.gis for test runs so templates are found | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ README = open('README.rst', 'rt').read()
setup(
name='vncdotool',
- version='0.2.0dev',
+ version='0.2.0',
description='Command line VNC client',
install_requires=[
'Twisted', | Preparing release <I> | py |
diff --git a/eventsourcing/system.py b/eventsourcing/system.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/system.py
+++ b/eventsourcing/system.py
@@ -95,7 +95,7 @@ class Follower(Application):
"""
reader, mapper = self.readers[name]
start = self.recorder.max_tracking_id(name) + 1
- ... | Changed Follower to select() rather than read() notifications. | py |
diff --git a/shap/maskers/_fixed_composite.py b/shap/maskers/_fixed_composite.py
index <HASH>..<HASH> 100644
--- a/shap/maskers/_fixed_composite.py
+++ b/shap/maskers/_fixed_composite.py
@@ -30,4 +30,10 @@ class FixedComposite(Masker):
if hasattr(self.masker, "mask_shapes") and callable(self.masker.mask_shapes... | Added feature_names method to FixedComposite masker | py |
diff --git a/jsonfield/fields.py b/jsonfield/fields.py
index <HASH>..<HASH> 100644
--- a/jsonfield/fields.py
+++ b/jsonfield/fields.py
@@ -55,15 +55,16 @@ class JSONField(models.TextField):
def value_from_object(self, obj):
return json.dumps(super(JSONField, self).value_from_object(obj))
- def formfi... | Changed formfield to use default implementation. Changed help_text to only set default if not set | py |
diff --git a/rdbtools/callbacks.py b/rdbtools/callbacks.py
index <HASH>..<HASH> 100644
--- a/rdbtools/callbacks.py
+++ b/rdbtools/callbacks.py
@@ -364,7 +364,8 @@ class MemoryCallback(RdbCallback):
def zadd(self, key, score, member):
if self._current_encoding == 'skiplist':
- self._curren... | Fixing memory calculations for sorted set | py |
diff --git a/compress/filters/css_url_replace/__init__.py b/compress/filters/css_url_replace/__init__.py
index <HASH>..<HASH> 100644
--- a/compress/filters/css_url_replace/__init__.py
+++ b/compress/filters/css_url_replace/__init__.py
@@ -8,7 +8,7 @@ CSS_REPLACE = getattr(settings, 'COMPRESS_CSS_URL_REPLACE', [])
clas... | make it work on python <I> | py |
diff --git a/rest/response.py b/rest/response.py
index <HASH>..<HASH> 100644
--- a/rest/response.py
+++ b/rest/response.py
@@ -99,14 +99,17 @@ class RESTfulResponse(object):
if isinstance(templ_or_func, str):
def serialize(data):
- data = data or {}
- response = ren... | Updated RESTfulResponse to set all data to the variable 'context' in a template If a template is used during content negotiation for transforming data into the desired representation, a variable named 'context' that holds all of the data returned by the resource is available from within the template. Also, if no data ... | py |
diff --git a/test/test_task.py b/test/test_task.py
index <HASH>..<HASH> 100644
--- a/test/test_task.py
+++ b/test/test_task.py
@@ -918,7 +918,7 @@ with open(_input, 'r') as inf, open(_output, 'w') as outf:
Base_Executor(wf, args=['--g', str(val)],
config={
'config_file': '~/docker.yml... | Stop using pbs queue for task tests | py |
diff --git a/autofit/graphical/mean_field.py b/autofit/graphical/mean_field.py
index <HASH>..<HASH> 100755
--- a/autofit/graphical/mean_field.py
+++ b/autofit/graphical/mean_field.py
@@ -296,7 +296,7 @@ class MeanField(CollectionPriorModel, Dict[Variable, AbstractMessage], Factor):
{k: m ** other for k... | assume self subset of other for division | py |
diff --git a/pymysql/connections.py b/pymysql/connections.py
index <HASH>..<HASH> 100644
--- a/pymysql/connections.py
+++ b/pymysql/connections.py
@@ -640,9 +640,18 @@ class Connection(object):
self._rfile = None
sock.close()
+ @property
+ def open(self):
+ return self.socket is... | Add connection.open. `__del__` doesn't wait server. | py |
diff --git a/demosys/effects/managers.py b/demosys/effects/managers.py
index <HASH>..<HASH> 100644
--- a/demosys/effects/managers.py
+++ b/demosys/effects/managers.py
@@ -66,14 +66,14 @@ class SingleEffectManager(BaseEffectManger):
"""
effect_list = [cfg.cls() for name, cfg in effects.effects.items()]... | Bug: SingleEffectManager should run effect module we supply in the initializer | py |
diff --git a/gubernator/github/classifier.py b/gubernator/github/classifier.py
index <HASH>..<HASH> 100644
--- a/gubernator/github/classifier.py
+++ b/gubernator/github/classifier.py
@@ -282,6 +282,10 @@ def distill_events(events):
continue
if action == 'created':
output.a... | Classify submitted PR reviews as comments for the state machine. | py |
diff --git a/jsonrpc/site.py b/jsonrpc/site.py
index <HASH>..<HASH> 100644
--- a/jsonrpc/site.py
+++ b/jsonrpc/site.py
@@ -162,7 +162,7 @@ class JSONRPCSite(object):
if 'id' in D and D['id'] is not None: # regular request
response['result'] = R
response['id'] = D['id']
- if version == '1... | adding a rule on the response (procedure return) according to the specification - 'Exactly one of result or error MUST be specified. It's not allowed to specify both or none.' | py |
diff --git a/asammdf/gui/widgets/file.py b/asammdf/gui/widgets/file.py
index <HASH>..<HASH> 100644
--- a/asammdf/gui/widgets/file.py
+++ b/asammdf/gui/widgets/file.py
@@ -465,7 +465,7 @@ class FileWidget(WithMDIArea, Ui_file_widget, QtWidgets.QWidget):
item = QtWidgets.QTreeWidgetItem()
... | Fix for identation and missing group | py |
diff --git a/beetle/base.py b/beetle/base.py
index <HASH>..<HASH> 100644
--- a/beetle/base.py
+++ b/beetle/base.py
@@ -38,15 +38,13 @@ class Includer(object):
def read(self, path, content):
partial_path, extension = os.path.splitext(path)
extension = extension.strip('.')
+
+ suggested_path... | Sending content and a suggested path to plugins. They can then manipulate both if needed. | py |
diff --git a/tools/exposure-converter.py b/tools/exposure-converter.py
index <HASH>..<HASH> 100644
--- a/tools/exposure-converter.py
+++ b/tools/exposure-converter.py
@@ -6,7 +6,6 @@ proper <cost> tag
"""
import sys
-import os
from lxml import etree
from openquake import nrmllib
@@ -130,6 +129,14 @@ def convert... | support for occupancies in converter | py |
diff --git a/clam/clamservice.py b/clam/clamservice.py
index <HASH>..<HASH> 100755
--- a/clam/clamservice.py
+++ b/clam/clamservice.py
@@ -1015,6 +1015,7 @@ class Project:
@staticmethod
def outputindex(project, user, d = '', quick=False):
prefix = Project.path(project, user) + 'output/'
+ begi... | automatically enable quick mode after a certain amount of seconds pass (QUICKTIMEOUT=<I> by default) #<I> | py |
diff --git a/master/docs/bbdocs/ext.py b/master/docs/bbdocs/ext.py
index <HASH>..<HASH> 100644
--- a/master/docs/bbdocs/ext.py
+++ b/master/docs/bbdocs/ext.py
@@ -196,6 +196,7 @@ class BBDomain(Domain):
'event': ObjType('event', 'event'),
'rtype': ObjType('rtype', 'rtype'),
'rpath': ObjType('... | docs: Fix definition of bb-raction index | py |
diff --git a/fmn/rules/generic.py b/fmn/rules/generic.py
index <HASH>..<HASH> 100644
--- a/fmn/rules/generic.py
+++ b/fmn/rules/generic.py
@@ -15,6 +15,26 @@ def user_filter(config, message, fasnick=None, *args, **kw):
if fasnick:
return fasnick in fedmsg.meta.msg2usernames(message, **config)
+def not_u... | Add filter to exclude notifications about one or more users Fixes <URL> | py |
diff --git a/telethon/client/telegrambaseclient.py b/telethon/client/telegrambaseclient.py
index <HASH>..<HASH> 100644
--- a/telethon/client/telegrambaseclient.py
+++ b/telethon/client/telegrambaseclient.py
@@ -375,7 +375,13 @@ class TelegramBaseClient(abc.ABC):
# able to close the pending tasks properly, and ... | Don't raise inside __del__ (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ except(IOError, ImportError):
setup(
name='esgfpid',
- version='0.7.17',
+ version='0.7.18-dev',
author='Merret Buurman, German Climate Computing Centre (DKRZ)',
author_email='buurman@dkr... | Increment version number to <I>-dev. | py |
diff --git a/tests/test_directives.py b/tests/test_directives.py
index <HASH>..<HASH> 100644
--- a/tests/test_directives.py
+++ b/tests/test_directives.py
@@ -106,6 +106,15 @@ def test_current_api():
hug.test.get(api, 'v3/version_call_tester').data
+def test_named_directives():
+ '''Ensure that it's pos... | Add test to define exactly how named directives should workO | py |
diff --git a/zipline/finance/risk.py b/zipline/finance/risk.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/risk.py
+++ b/zipline/finance/risk.py
@@ -27,7 +27,7 @@ Risk Report
| alpha | The _algorithm_ alpha to the benchmark. |
+-----------------+-------------------------------------... | fixed a type-o in the documentation. | py |
diff --git a/anytemplate/engines/jinja2.py b/anytemplate/engines/jinja2.py
index <HASH>..<HASH> 100644
--- a/anytemplate/engines/jinja2.py
+++ b/anytemplate/engines/jinja2.py
@@ -86,7 +86,10 @@ if SUPPORTED:
>>> s = renders('a = {{ a }}, b = "{{ b }}"', {'a': 1, 'b': 'bbb'})
>>> assert s == 'a = 1, b ... | try to catch cases if a/any of included templates are missing | py |
diff --git a/wandb/keras.py b/wandb/keras.py
index <HASH>..<HASH> 100644
--- a/wandb/keras.py
+++ b/wandb/keras.py
@@ -1,4 +1,4 @@
-import numpy as np
+import operator
import os
from wandb import history
@@ -46,18 +46,18 @@ class WandBKerasCallback(object):
mode = 'auto'
if mode == 'min':
- ... | Get rid of numpy dependency. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.