diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pykube/objects.py b/pykube/objects.py
index <HASH>..<HASH> 100644
--- a/pykube/objects.py
+++ b/pykube/objects.py
@@ -1,3 +1,6 @@
+import json
+import time
+
from .query import ObjectManager
@@ -27,6 +30,32 @@ class ReplicationController(APIObject):
def replicas(self, value):
self.obj["s... | Added scale behavior to ReplicationController | py |
diff --git a/src/python/pants/util/fileutil.py b/src/python/pants/util/fileutil.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/util/fileutil.py
+++ b/src/python/pants/util/fileutil.py
@@ -5,7 +5,7 @@
import os
import shutil
-from contextutil import temporary_file
+from pants.util.contextutil import temporary... | Fully qualify an import. Testing Done: None. Reviewed at <URL> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -9,7 +9,7 @@ extensions = [
]
# General information about the project.
-project = 'skeleton'
+project = 'pmxbot'
copyright = '2016 Jason R. Coombs'
# The short X.Y version.
@@ -28,7 +28,7 @@ link_files ... | Update docs/conf with project-specific details | py |
diff --git a/tests/test_devshell.py b/tests/test_devshell.py
index <HASH>..<HASH> 100644
--- a/tests/test_devshell.py
+++ b/tests/test_devshell.py
@@ -44,6 +44,7 @@ class _AuthReferenceServer(threading.Thread):
port = self._socket.getsockname()[1]
os.environ[DEVSHELL_ENV] = str(port)
self._socket.listen(... | Fix spurious EGAIN errors in devshell tests | py |
diff --git a/johnny/tests/cache.py b/johnny/tests/cache.py
index <HASH>..<HASH> 100755
--- a/johnny/tests/cache.py
+++ b/johnny/tests/cache.py
@@ -175,9 +175,15 @@ class MultiDbTest(TransactionQueryCacheBase):
if len(getattr(settings, "DATABASES", [])) <= 1:
print "\n Skipping multi database test... | fix tests for Django <I>a where settings will no longer report a DATABASE_ENGINE setting; if it's there, still check against it to prevent invalid test errors, but otherwise check all databases and fail if any don't support multithreading | py |
diff --git a/django_extensions/__init__.py b/django_extensions/__init__.py
index <HASH>..<HASH> 100644
--- a/django_extensions/__init__.py
+++ b/django_extensions/__init__.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-VERSION = (2, 3, 0, 'DEV')
+VERSION = (3, 0, 0, 'DEV')
def get_version(version): | bump dev version to <I>-dev | py |
diff --git a/quilt/patch.py b/quilt/patch.py
index <HASH>..<HASH> 100644
--- a/quilt/patch.py
+++ b/quilt/patch.py
@@ -20,8 +20,9 @@
# 02110-1301 USA
import os
+import os.path
-from quilt.utils import Process
+from quilt.utils import Process, Directory, File
class Patch(object):
@@ -41,3 +42,24 @@ class Patc... | Add a RollbackPatch class The RollbackPatch class that hard links the backup file created by patch to the file that should be restored. | py |
diff --git a/raven_python_lambda/__init__.py b/raven_python_lambda/__init__.py
index <HASH>..<HASH> 100644
--- a/raven_python_lambda/__init__.py
+++ b/raven_python_lambda/__init__.py
@@ -204,7 +204,7 @@ def timeout_warning(config, context):
def memory_warning(config, context):
"""Determines when memory usage is n... | ensuring our memory limit is a float | py |
diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/__init__.py
+++ b/salt/pillar/__init__.py
@@ -791,8 +791,8 @@ class Pillar(object):
self.opts['pillar'], errors = self.ext_pillar({}, pillar_dirs)
matches = self.top_matches(top... | Fix pillar merging when ext_pillar_first is enabled ext_pillar was being merged into pillar, when it should have been the other way around. This means that when ext_pillar_first was enabled, pillar keys with the same name as ones defined in ext_pillar were being lost instead of overriding ext_pillar. | py |
diff --git a/pysat/_files.py b/pysat/_files.py
index <HASH>..<HASH> 100644
--- a/pysat/_files.py
+++ b/pysat/_files.py
@@ -369,7 +369,7 @@ class Files(object):
name=self._sat.name, tag=self._sat.tag,
inst_id=self._sat.inst_id)
outp... | DOC: added inline comments Added inline comment to confusing line. | py |
diff --git a/holoviews/operation/timeseries.py b/holoviews/operation/timeseries.py
index <HASH>..<HASH> 100644
--- a/holoviews/operation/timeseries.py
+++ b/holoviews/operation/timeseries.py
@@ -109,7 +109,8 @@ class rolling_outlier_std(ElementOperation):
std = pd.Series(residual).rolling(window, center=True).... | Silenced expected warning from the outliers operation | py |
diff --git a/clips/environment.py b/clips/environment.py
index <HASH>..<HASH> 100644
--- a/clips/environment.py
+++ b/clips/environment.py
@@ -188,14 +188,14 @@ class Environment(object):
def define_function(self, function):
"""Define the Python function within the CLIPS environment.
- Functions ... | environment: improve Python embedding logic A `deffunction` construct is built to wrap the `python-function` mechanism. | py |
diff --git a/cassandra/pool.py b/cassandra/pool.py
index <HASH>..<HASH> 100644
--- a/cassandra/pool.py
+++ b/cassandra/pool.py
@@ -89,7 +89,7 @@ class _ReconnectionHandler(object):
self.callback = callback
self.callback_args = callback_args
self.callback_kwargs = callback_kwargs
- self... | Fix ReconnectionHandler scheduling behavior | py |
diff --git a/simpl/threadlocal.py b/simpl/threadlocal.py
index <HASH>..<HASH> 100644
--- a/simpl/threadlocal.py
+++ b/simpl/threadlocal.py
@@ -1,4 +1,38 @@
-"""Threadlocal."""
+"""Thread-local context utilities.
+
+Usage:
+
+ import threadlocal
+
+ context = threadlocal.default()
+ context['value'] = 'foo'
+
+... | document some usage in __doc__ | py |
diff --git a/streamcorpus_pipeline/_yaml_files_list.py b/streamcorpus_pipeline/_yaml_files_list.py
index <HASH>..<HASH> 100644
--- a/streamcorpus_pipeline/_yaml_files_list.py
+++ b/streamcorpus_pipeline/_yaml_files_list.py
@@ -189,7 +189,7 @@ class yaml_files_list(Configured):
fpath = os.pa... | fixing the off-by-one URL string issue that was generating bogus URLs like http:/witter.com instead of <URL> | py |
diff --git a/smr/ec2.py b/smr/ec2.py
index <HASH>..<HASH> 100755
--- a/smr/ec2.py
+++ b/smr/ec2.py
@@ -28,10 +28,15 @@ def worker_thread(config, config_name, input_queue, output_queue, processed_file
abort_event.set()
return
+ remote_config_path = "/tmp/smr_config.py"
+ sftp = ssh.open_sftp()
... | need to copy config to remote servers | py |
diff --git a/pyeapi/eapilib.py b/pyeapi/eapilib.py
index <HASH>..<HASH> 100644
--- a/pyeapi/eapilib.py
+++ b/pyeapi/eapilib.py
@@ -371,6 +371,11 @@ class EapiConnection(object):
status=response.status,
reason=response.reason))
_LOGGER.debug("Response co... | Fix an issue with the JSON responses in Python 3 Enable the system tests to pass under Python <I>. | py |
diff --git a/torment/contexts/__init__.py b/torment/contexts/__init__.py
index <HASH>..<HASH> 100644
--- a/torment/contexts/__init__.py
+++ b/torment/contexts/__init__.py
@@ -13,6 +13,7 @@
# limitations under the License.
import unittest
+import unittest.mock
import re
import logging
import typing # flake8: noq... | add unittest.mock to base contexts Found another small bug from testing holes. | py |
diff --git a/spockbot/plugins/helpers/physics.py b/spockbot/plugins/helpers/physics.py
index <HASH>..<HASH> 100644
--- a/spockbot/plugins/helpers/physics.py
+++ b/spockbot/plugins/helpers/physics.py
@@ -157,7 +157,7 @@ class PhysicsPlugin(PluginBase):
if test_vec.dist_sq() <= self.vec.dist_sq() + FP_MA... | physics bail is debug not warning | py |
diff --git a/ricecooker/classes/nodes.py b/ricecooker/classes/nodes.py
index <HASH>..<HASH> 100644
--- a/ricecooker/classes/nodes.py
+++ b/ricecooker/classes/nodes.py
@@ -59,6 +59,8 @@ class Node(object):
Args: file_to_add (File): file model to add to node
Returns: None
"""
+ f... | Add additional check to ensure files being added are subclasses of File | py |
diff --git a/geist/backends/__init__.py b/geist/backends/__init__.py
index <HASH>..<HASH> 100644
--- a/geist/backends/__init__.py
+++ b/geist/backends/__init__.py
@@ -1,9 +1,12 @@
import sys
-def get_platform_backend():
+
+def get_platform_backend(*kwargs):
if sys.platform.startswith('win'):
import gei... | Pass kwargs through get_platform_backend | py |
diff --git a/anndata/compat/_overloaded_dict.py b/anndata/compat/_overloaded_dict.py
index <HASH>..<HASH> 100644
--- a/anndata/compat/_overloaded_dict.py
+++ b/anndata/compat/_overloaded_dict.py
@@ -2,6 +2,7 @@ from collections.abc import MutableMapping
from functools import partial
from typing import Any, Callable, ... | Remove circular reference from OverloadedDict Now KeyOverloads only have a proxy reference to the parent object. This prevents these objects being managed by the generational garbage collector. That was bad since it could keep large AnnData objects in memory. See #<I> for more info. | py |
diff --git a/netmiko/base_connection.py b/netmiko/base_connection.py
index <HASH>..<HASH> 100644
--- a/netmiko/base_connection.py
+++ b/netmiko/base_connection.py
@@ -526,6 +526,7 @@ class BaseConnection(object):
# Check if the only thing you received was a newline
count = 0
+ prompt = prompt... | find_prompt function: Added a line to strip the newline character of the prompt before the while loop conditional is tested. This allowed the processing of HP Procurve <I> devices. | py |
diff --git a/tests/test_unpack.py b/tests/test_unpack.py
index <HASH>..<HASH> 100644
--- a/tests/test_unpack.py
+++ b/tests/test_unpack.py
@@ -33,7 +33,7 @@ def test_synonym():
""" numeric -> string """
# Defined commands
assert synonym("001") == synonym("RPL_WELCOME") == "RPL_WELCOME"
- # Unkown, eve... | Also, let's fix a spelling error while we're at it. | py |
diff --git a/docs/bigquery/snippets.py b/docs/bigquery/snippets.py
index <HASH>..<HASH> 100644
--- a/docs/bigquery/snippets.py
+++ b/docs/bigquery/snippets.py
@@ -485,13 +485,13 @@ Wylma Phlyntstone,29
token = iterator.next_page_token
# [END table_list_rows_iterator_properties]
- expected_rows = [
- ... | Make row assertion in sample tests account for non-deterministic order (#<I>) * Make row assertion account for non-deterministic order * Let that loop unroll and be wild and free | py |
diff --git a/tests/mask.py b/tests/mask.py
index <HASH>..<HASH> 100755
--- a/tests/mask.py
+++ b/tests/mask.py
@@ -40,6 +40,8 @@ class MaskTest(unittest.TestCase):
def random_mask_test(self, a):
c = a.get_calculator()
e = a.get_potential_energy()
+ f = a.get_forces()
+ w = a.get_str... | Check force and virial decomposition in mask test. | py |
diff --git a/robosuite/environments/robot_env.py b/robosuite/environments/robot_env.py
index <HASH>..<HASH> 100644
--- a/robosuite/environments/robot_env.py
+++ b/robosuite/environments/robot_env.py
@@ -462,10 +462,10 @@ class RobotEnv(MujocoEnv):
if cam_s == "instance":
name2id = {inst: i for i... | update API naming convention for new ID mappings | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup
import sys
-__version__ = '1.0.2'
+__version__ = '2.0.0'
github_tag = __version__
if 'dev' in __version__: | Preparing for <I> release | py |
diff --git a/gwpy/plotter/segments.py b/gwpy/plotter/segments.py
index <HASH>..<HASH> 100644
--- a/gwpy/plotter/segments.py
+++ b/gwpy/plotter/segments.py
@@ -315,11 +315,27 @@ class SegmentAxes(TimeSeriesAxes):
insetparams.setdefault('bbox',
{'alpha': 0.5, 'facecolor': ... | SegmentAxes: latch inset labels to xlim[0] - new set_xlim calling super() and then resetting the x-position of all inset segment labels | py |
diff --git a/tests/test_comparison.py b/tests/test_comparison.py
index <HASH>..<HASH> 100644
--- a/tests/test_comparison.py
+++ b/tests/test_comparison.py
@@ -234,3 +234,11 @@ class ComparisonTestCase(unittest.TestCase):
self.assertIn(filth_item['match'], document)
total_len += len(filth_item[... | test passing a list of filth types to make_fake_document | py |
diff --git a/quantrisk/plotting.py b/quantrisk/plotting.py
index <HASH>..<HASH> 100644
--- a/quantrisk/plotting.py
+++ b/quantrisk/plotting.py
@@ -573,8 +573,8 @@ def plot_return_quantiles(df_rets, df_weekly, df_monthly, ax=None, **kwargs):
if ax is None:
ax = plt.gca()
- sns.boxplot([df_rets, df_wee... | BUG Attempt to fix boxplot bug. Apparently API in seaborn <I> changed. | py |
diff --git a/python/tests/phonenumberutiltest.py b/python/tests/phonenumberutiltest.py
index <HASH>..<HASH> 100755
--- a/python/tests/phonenumberutiltest.py
+++ b/python/tests/phonenumberutiltest.py
@@ -2013,6 +2013,7 @@ class PhoneNumberUtilTest(unittest.TestCase):
pager=None,
uan=None,
emergency=None,
... | Update unit test for new field in metadata | py |
diff --git a/irc3/plugins/autocommand.py b/irc3/plugins/autocommand.py
index <HASH>..<HASH> 100644
--- a/irc3/plugins/autocommand.py
+++ b/irc3/plugins/autocommand.py
@@ -26,7 +26,7 @@ This example will authorize on Freenode:
... irc3.plugins.autocommand
...
... autocommands =
- ... PRIVMSG Ni... | Added ':' to PRIVMSG in documentation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -85,7 +85,7 @@ setup(
include_package_data=True,
install_requires=['sovrin-common-3pc-batch==0.2.4', 'anoncreds-dev==0.3.4'],
setup_requires=['pytest-runner'],
- tests_require=['pytest', 'sovrin-node-3pc-batc... | Updated sovrin-node dep | py |
diff --git a/phoebe/frontend/io.py b/phoebe/frontend/io.py
index <HASH>..<HASH> 100644
--- a/phoebe/frontend/io.py
+++ b/phoebe/frontend/io.py
@@ -895,6 +895,8 @@ Create a .phoebe file from phoebe 1 from a phoebe 2 bundle.
def pass_to_legacy(eb, filename='2to1.phoebe', compute=None, **kwargs):
+ eb.run_delayed_... | run_constraints before exporting to legacy | py |
diff --git a/tests/web_api/test_trace.py b/tests/web_api/test_trace.py
index <HASH>..<HASH> 100644
--- a/tests/web_api/test_trace.py
+++ b/tests/web_api/test_trace.py
@@ -10,6 +10,7 @@ import dpath
from openfisca_core.model_api import Variable
from openfisca_core.periods import MONTH
+from openfisca_core.simulation... | Simplify simulation init in test trace | py |
diff --git a/raiden/raiden_event_handler.py b/raiden/raiden_event_handler.py
index <HASH>..<HASH> 100644
--- a/raiden/raiden_event_handler.py
+++ b/raiden/raiden_event_handler.py
@@ -218,7 +218,7 @@ def handle_contract_send_channelclose(
)
log.info(msg)
except ChannelOutdatedError as e:
- ... | Fix the way ChannelOutdatedError is being logged | py |
diff --git a/nameko/testing/pytest.py b/nameko/testing/pytest.py
index <HASH>..<HASH> 100644
--- a/nameko/testing/pytest.py
+++ b/nameko/testing/pytest.py
@@ -88,7 +88,7 @@ def rabbit_config(request, rabbit_manager):
import random
import string
from kombu import pools
- from six.moves.urllib.parse imp... | disable the correct pylint rule | py |
diff --git a/tests/ignite/metrics/test_ssim.py b/tests/ignite/metrics/test_ssim.py
index <HASH>..<HASH> 100644
--- a/tests/ignite/metrics/test_ssim.py
+++ b/tests/ignite/metrics/test_ssim.py
@@ -175,3 +175,14 @@ def _test_distrib_xla_nprocs(index):
def test_distrib_xla_nprocs(xmp_executor):
n = int(os.environ["NU... | add horovod test (#<I>) (#<I>) | py |
diff --git a/salt/modules/rpmbuild.py b/salt/modules/rpmbuild.py
index <HASH>..<HASH> 100644
--- a/salt/modules/rpmbuild.py
+++ b/salt/modules/rpmbuild.py
@@ -213,7 +213,7 @@ def make_src_pkg(dest_dir, spec, sources, env=None, template=None, saltenv='base
runas
The user to run the build process as
- ... | Changed versionadded from <I> to <I>, to reflect when change should be accepted | py |
diff --git a/molo/profiles/tests/test_views.py b/molo/profiles/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/molo/profiles/tests/test_views.py
+++ b/molo/profiles/tests/test_views.py
@@ -101,6 +101,22 @@ class RegistrationViewTest(TestCase, MoloTestCaseMixin):
self.assertFormError(
respons... | added test for mobile number required but show mobile number field is false | py |
diff --git a/delphi/utils.py b/delphi/utils.py
index <HASH>..<HASH> 100644
--- a/delphi/utils.py
+++ b/delphi/utils.py
@@ -2,7 +2,7 @@
from indra.statements import Influence
from indra.sources import eidos
-from itertools import repeat, accumulate, islice, chain, starmap
+from itertools import repeat, accumulate, i... | added grouper and line break utils | py |
diff --git a/api/python/quilt3/data_transfer.py b/api/python/quilt3/data_transfer.py
index <HASH>..<HASH> 100644
--- a/api/python/quilt3/data_transfer.py
+++ b/api/python/quilt3/data_transfer.py
@@ -1,3 +1,4 @@
+from collections import deque
from codecs import iterdecode
from concurrent.futures import ThreadPoolExecu... | Fix exception handling when copying files (#<I>) Currently, the code creates a list of futures, then waits for them in _reverse_ order. That's fine as long as they all succeed. But if they all fail (access denied, out of disk, etc.), we will keep trying every single object, and only the last exception will propagat... | py |
diff --git a/leancloud/file_.py b/leancloud/file_.py
index <HASH>..<HASH> 100644
--- a/leancloud/file_.py
+++ b/leancloud/file_.py
@@ -56,6 +56,7 @@ class File(object):
try:
data.read
data.tell
+ data.seek(0, os.SEEK_END)
data.seek(0, os.SEEK_SET)
exce... | :ok_hand: Comply review suggestions | py |
diff --git a/pcef/core/panels/folding.py b/pcef/core/panels/folding.py
index <HASH>..<HASH> 100644
--- a/pcef/core/panels/folding.py
+++ b/pcef/core/panels/folding.py
@@ -420,11 +420,11 @@ class FoldingPanel(Panel):
""" Installs fold all and unfold all action on the editor widget. """
self.editor.addS... | Change fold all and unfold all shortcuts (add shift in the key sequence) | py |
diff --git a/rolepermissions/tests/test_shortcuts.py b/rolepermissions/tests/test_shortcuts.py
index <HASH>..<HASH> 100644
--- a/rolepermissions/tests/test_shortcuts.py
+++ b/rolepermissions/tests/test_shortcuts.py
@@ -48,6 +48,14 @@ class AvailablePermStatusTests(TestCase):
self.assertTrue(perm_hash['permissi... | testing available_perm_status after perm change | py |
diff --git a/pem.py b/pem.py
index <HASH>..<HASH> 100644
--- a/pem.py
+++ b/pem.py
@@ -94,8 +94,8 @@ def certificateOptionsFromPEMs(pemObjects, **kw):
)
if privateKey.keyHash() not in certificatesByFingerprint:
- raise ValueError("No certificate matching {} found.".format(
- privateKey.key... | Use names for clarity and for py<I>. | py |
diff --git a/pygccxml/parser/scanner.py b/pygccxml/parser/scanner.py
index <HASH>..<HASH> 100644
--- a/pygccxml/parser/scanner.py
+++ b/pygccxml/parser/scanner.py
@@ -530,7 +530,7 @@ class scanner_t( xml.sax.handler.ContentHandler ):
elif version <= 1.114:
logger.info ( 'GCCXML version - 0.7' )
... | few bug fixes, after upgrading to latest gccxml version | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,7 @@
-from distutils.core import setup, Extension
+try:
+ from setuptools import setup, Extension
+except ImportError:
+ from distutils.core import setup, Extension
import sys, os, glob, numpy | use setuptools by default (fallback for older Python) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setup(
py_modules=["sphinx_pypi_upload"],
entry_points = {
"distutils.commands": [
- "upload_sphinx = sphinx_pypi_upload:upload",
+ "upload_sphinx = sphinx_pypi_upload:Up... | Well, now it's actually working | py |
diff --git a/sumy/evaluation/content_based.py b/sumy/evaluation/content_based.py
index <HASH>..<HASH> 100644
--- a/sumy/evaluation/content_based.py
+++ b/sumy/evaluation/content_based.py
@@ -34,6 +34,14 @@ def cosine_similarity(model1, model2):
def unit_overlap(model1, model2):
+ """
+ Computes unit overlap ... | Added docstring for unit overlap evaluation #1 | py |
diff --git a/climlab/process/time_dependent_process.py b/climlab/process/time_dependent_process.py
index <HASH>..<HASH> 100644
--- a/climlab/process/time_dependent_process.py
+++ b/climlab/process/time_dependent_process.py
@@ -37,7 +37,7 @@ class TimeDependentProcess(Process):
'days_elapsed': 0,
... | Bug fix in new timestep property definition. | py |
diff --git a/manticore/ethereum/manticore.py b/manticore/ethereum/manticore.py
index <HASH>..<HASH> 100644
--- a/manticore/ethereum/manticore.py
+++ b/manticore/ethereum/manticore.py
@@ -6,6 +6,7 @@ from multiprocessing import Queue, Process
from queue import Empty as EmptyQueue
from subprocess import check_output, P... | Add error for unsupported solc versions (#<I>) | py |
diff --git a/peewee.py b/peewee.py
index <HASH>..<HASH> 100644
--- a/peewee.py
+++ b/peewee.py
@@ -21,6 +21,7 @@ from copy import deepcopy
from inspect import isclass
__all__ = [
+ 'BareField',
'BigIntegerField',
'BlobField',
'BooleanField',
@@ -431,6 +432,10 @@ class Field(Node):
def __hash_... | Adding a "bare" field for use with sqlite. | py |
diff --git a/pylivetrader/backend/alpaca.py b/pylivetrader/backend/alpaca.py
index <HASH>..<HASH> 100644
--- a/pylivetrader/backend/alpaca.py
+++ b/pylivetrader/backend/alpaca.py
@@ -594,23 +594,6 @@ class Backend(BaseBackend):
end=to.date().isoformat(),
... | this conversion is not required since the data is already handled by the sdk | py |
diff --git a/ballet/transformer.py b/ballet/transformer.py
index <HASH>..<HASH> 100644
--- a/ballet/transformer.py
+++ b/ballet/transformer.py
@@ -1,5 +1,6 @@
import traceback
from collections import Counter
+from copy import deepcopy
from inspect import signature
from typing import (
Callable, Collection, Lis... | Fix str/repr for robust transformer | py |
diff --git a/sos/report/plugins/fibrechannel.py b/sos/report/plugins/fibrechannel.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/fibrechannel.py
+++ b/sos/report/plugins/fibrechannel.py
@@ -17,7 +17,7 @@ class Fibrechannel(Plugin, RedHatPlugin):
plugin_name = 'fibrechannel'
profiles = ('hardware', ... | [fibrechannel] Add remote_ports to files tuple Adds the `fc_remote_paths` path to the files tuple for plugin enablement. This also indirectly fixes a bug where the plugin would also be enabled due to a malformed 1-tuple. Resolves: #<I> | py |
diff --git a/sql_metadata.py b/sql_metadata.py
index <HASH>..<HASH> 100644
--- a/sql_metadata.py
+++ b/sql_metadata.py
@@ -302,7 +302,7 @@ def get_query_table_aliases(query: str) -> Dict[str, str]:
for token in get_query_tokens(query):
# print(token.ttype, token, last_table_name)
- # TODO: handle... | pylint does not like TODOs | py |
diff --git a/pylint/checkers/logging.py b/pylint/checkers/logging.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/logging.py
+++ b/pylint/checkers/logging.py
@@ -49,7 +49,7 @@ MSGS = {
the end of a conversion specifier.'),
'E1205': ('Too many arguments for logging format string',
... | Fix description of E<I> Add full stop to E<I> to make it more consistent with other descriptions. | py |
diff --git a/devices/linkam_t95/device.py b/devices/linkam_t95/device.py
index <HASH>..<HASH> 100644
--- a/devices/linkam_t95/device.py
+++ b/devices/linkam_t95/device.py
@@ -180,7 +180,7 @@ class SimulatedLinkamT95(CanProcessComposite, object):
# TODO: Is not having leading zeroes / 4 digits an error?
... | Fixed limit, was missing a zero | py |
diff --git a/authomatic/providers/oauth1.py b/authomatic/providers/oauth1.py
index <HASH>..<HASH> 100644
--- a/authomatic/providers/oauth1.py
+++ b/authomatic/providers/oauth1.py
@@ -755,7 +755,7 @@ class Yahoo(OAuth1):
request_token_url = 'https://api.login.yahoo.com/oauth/v2/get_request_token'
user_authoriz... | Added email extraction to Yahoo provider. Fixes #<I>. | py |
diff --git a/openquake/nrmllib/convert.py b/openquake/nrmllib/convert.py
index <HASH>..<HASH> 100644
--- a/openquake/nrmllib/convert.py
+++ b/openquake/nrmllib/convert.py
@@ -510,7 +510,7 @@ def convert_nrml_to_flat(fname, outfname):
for i, (metadata, data) in enumerate(parse_nrml(fname)):
with open(outfn... | Saved the .json in indented form | py |
diff --git a/pytypes/util.py b/pytypes/util.py
index <HASH>..<HASH> 100644
--- a/pytypes/util.py
+++ b/pytypes/util.py
@@ -762,7 +762,11 @@ def _calc_traceback_limit(tb):
limit = 1
tb2 = tb
while not tb2.tb_next is None:
- if tb2.tb_next.tb_frame.f_code.co_filename.split(os.sep)[-2] == 'pytypes' a... | Fixed potential error in excepthook. This fixes #<I>. | py |
diff --git a/troposphere/ec2.py b/troposphere/ec2.py
index <HASH>..<HASH> 100644
--- a/troposphere/ec2.py
+++ b/troposphere/ec2.py
@@ -685,7 +685,7 @@ class IamInstanceProfile(AWSProperty):
class SpotFleetTagSpecification(AWSProperty):
props = {
- 'ResourceType': (basestring, False),
+ 'ResourceTy... | Correct Spot Fleet TagSpecifications (#<I>) * Correct spelling and type of TagSpecifications in AWS::EC2::SpotFleet configuration * Make ResourceType required in SpotFleetTagSpecification (AWS docs disagree, but CF claims it's missing when launching without it) | py |
diff --git a/api/src/opentrons/hardware_control/modules/thermocycler.py b/api/src/opentrons/hardware_control/modules/thermocycler.py
index <HASH>..<HASH> 100644
--- a/api/src/opentrons/hardware_control/modules/thermocycler.py
+++ b/api/src/opentrons/hardware_control/modules/thermocycler.py
@@ -2,7 +2,7 @@ import asynci... | fix(api): unrestrict thermocycler lid at api level for testing (#<I>) There was a remnant safety to prevent opening the lid of the thermocycler from the python api when it has set target temperature for the block. Let's remove this for now given that some of this is to be handled in firmware and we need to limit ope... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -98,7 +98,7 @@ setup(
'chardet >= 3.0.4, < 4', # unlisted requirement of pdfminer.six 20181108
'cffi >= 1.9.1', # must be a setup and install requirement
'img2pdf >= 0.3.0, < 0.4', # pure Python, ... | Mark pdfminer.six <I> as supported | py |
diff --git a/cleverhans/future/torch/attacks/__init__.py b/cleverhans/future/torch/attacks/__init__.py
index <HASH>..<HASH> 100644
--- a/cleverhans/future/torch/attacks/__init__.py
+++ b/cleverhans/future/torch/attacks/__init__.py
@@ -5,3 +5,4 @@ from cleverhans.future.torch.attacks.noise import noise
from cleverhans.... | Update __init__.py to include carlini_wagner_l2 | py |
diff --git a/forms_builder/forms/forms.py b/forms_builder/forms/forms.py
index <HASH>..<HASH> 100644
--- a/forms_builder/forms/forms.py
+++ b/forms_builder/forms/forms.py
@@ -233,7 +233,7 @@ class EntriesForm(forms.Form):
fields = [f.label.encode("utf-8") for f in self.form_fields
if self.po... | Fix entry time label encoding in export. | py |
diff --git a/smr/ec2.py b/smr/ec2.py
index <HASH>..<HASH> 100755
--- a/smr/ec2.py
+++ b/smr/ec2.py
@@ -119,7 +119,7 @@ def initialize_instance_thread(config, instance, abort_event, ssh_key):
break
run_command(ssh, instance, "sudo apt-get update")
- run_command(ssh, instance, "sudo apt-get upgrade... | tell apt-get that we're in a "dumb terminal" | py |
diff --git a/walrus/cache.py b/walrus/cache.py
index <HASH>..<HASH> 100644
--- a/walrus/cache.py
+++ b/walrus/cache.py
@@ -2,7 +2,10 @@ from functools import wraps
import hashlib
import pickle
import threading
-from Queue import Empty, Queue
+try:
+ from Queue import Queue # Python 2
+except ImportError:
+ fr... | walrus | cache.py - added python3 Queue import support. | py |
diff --git a/cytomine/utilities/software.py b/cytomine/utilities/software.py
index <HASH>..<HASH> 100644
--- a/cytomine/utilities/software.py
+++ b/cytomine/utilities/software.py
@@ -111,7 +111,7 @@ def setup_classify(args, logger, root_path=None, image_folder="images", set_fold
)
if 'showTerm' in annot_par... | FIX filtering of annotations with no term | py |
diff --git a/salt/daemons/flo/core.py b/salt/daemons/flo/core.py
index <HASH>..<HASH> 100644
--- a/salt/daemons/flo/core.py
+++ b/salt/daemons/flo/core.py
@@ -235,6 +235,8 @@ class SaltRaetRoadStackJoiner(ioflo.base.deeding.Deed):
for remote in stack.remotes.values():
stack.removeR... | Reset puid when refreshing master for minion joiner | py |
diff --git a/test/test_thread_util.py b/test/test_thread_util.py
index <HASH>..<HASH> 100644
--- a/test/test_thread_util.py
+++ b/test/test_thread_util.py
@@ -61,16 +61,16 @@ class TestIdent(unittest.TestCase):
class Watched(object):
def __init__(self, ident):
- self._ident = iden... | Fix test_thread_util for Python <I> Some time in Python 3, threading.Thread._ident was introduced as a property, so this test can't use _ident as an attribute of a subclass of Thread. Use _my_ident instead. | py |
diff --git a/pybotvac/account.py b/pybotvac/account.py
index <HASH>..<HASH> 100644
--- a/pybotvac/account.py
+++ b/pybotvac/account.py
@@ -2,7 +2,6 @@
import binascii
import os
-import shutil
import urllib.parse
import requests
@@ -99,17 +98,12 @@ class Account:
self._maps = {robot['serial']: resp2... | Return raw response in get_map_image | py |
diff --git a/builder.py b/builder.py
index <HASH>..<HASH> 100644
--- a/builder.py
+++ b/builder.py
@@ -767,7 +767,11 @@ Leaving location unchanged as: {} for {}""".format(new_site_name, site.location
for ancestor in ancestors:
string += ancestor + '\t'
for key in actual_heade... | fix error where not all age data exists for all age_items, and can cause a KeyError | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ install_requires = [
'currint>=1.6,<3',
'enum34;python_version<"3.4"',
'msgpack-python~=0.5,>=0.5.2',
- 'pymetrics~=0.21',
+ 'pymetrics~=1.0',
'pytz>=2019.1',
'redis~=2.10',
'... | [MAJOR] Bump PyMetrics to <I>.x | py |
diff --git a/tests/functional_tests/expected_values/vk.py b/tests/functional_tests/expected_values/vk.py
index <HASH>..<HASH> 100644
--- a/tests/functional_tests/expected_values/vk.py
+++ b/tests/functional_tests/expected_values/vk.py
@@ -19,7 +19,7 @@ CONFIG = {
'//*[@id="install_allow"]',
'//*[@id="... | Increased wait time to 4 seconds. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,7 @@ setup_args = {
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Topic :: Software Development :: Libraries',
- 'Development Status :... | Update classifier to Development Status :: 4 - Beta | py |
diff --git a/ibis/expr/operations/generic.py b/ibis/expr/operations/generic.py
index <HASH>..<HASH> 100644
--- a/ibis/expr/operations/generic.py
+++ b/ibis/expr/operations/generic.py
@@ -266,6 +266,7 @@ class Literal(Value):
decimal.Decimal,
)
),
+ rlz.is_co... | chore(rules.py): keep the rule used in Literal for backward compatibility | py |
diff --git a/satpy/scene.py b/satpy/scene.py
index <HASH>..<HASH> 100644
--- a/satpy/scene.py
+++ b/satpy/scene.py
@@ -588,6 +588,8 @@ class Scene(MetadataObject):
# get the lowest resolution area, use it as the base of the slice
# this makes sure that the other areas *should* be a consistent factor
... | Allow strings as areas from Scene.crop | py |
diff --git a/galpy/df/quasiisothermaldf.py b/galpy/df/quasiisothermaldf.py
index <HASH>..<HASH> 100644
--- a/galpy/df/quasiisothermaldf.py
+++ b/galpy/df/quasiisothermaldf.py
@@ -1757,7 +1757,7 @@ class quasiisothermaldf(df):
if self._voSet:
out[:,2:5]= units.Quantity(out[:,2:5]*self._vo,u... | fixed an error with R in unit of kpc | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
'dj-database-url>=0.4.1',
'psycopg2>=2.6.2',
'django-extensions>=1.7.3',
- 'django-smalluuid>=0.1.3',
+ 'django-smalluuid>=1.1.1',
'requests>=2',
... | Bumping django-smalluuid version requirement | py |
diff --git a/spyderlib/__init__.py b/spyderlib/__init__.py
index <HASH>..<HASH> 100644
--- a/spyderlib/__init__.py
+++ b/spyderlib/__init__.py
@@ -61,11 +61,6 @@ def get_versions(reporev=True):
"""Get version information for components used by Spyder"""
import sys
import platform
- # Hack to let IPyth... | Revert quick hack in c2a<I>e<I>fb9 that fixes bootstrap.py compatibility with IPython for <I> release. | py |
diff --git a/salt/roster/scan.py b/salt/roster/scan.py
index <HASH>..<HASH> 100644
--- a/salt/roster/scan.py
+++ b/salt/roster/scan.py
@@ -45,7 +45,7 @@ class RosterMatcher(object):
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(0.01)
- ... | make sure the addr is a string | py |
diff --git a/tacacs_plus/authentication.py b/tacacs_plus/authentication.py
index <HASH>..<HASH> 100644
--- a/tacacs_plus/authentication.py
+++ b/tacacs_plus/authentication.py
@@ -114,7 +114,7 @@ class TACACSAuthenticationContinue(object):
return ', '.join([
'data_len: 0',
'flags: 0',
... | Star out the password so that it does not show up in log. | py |
diff --git a/compliance_checker/cf/cf.py b/compliance_checker/cf/cf.py
index <HASH>..<HASH> 100644
--- a/compliance_checker/cf/cf.py
+++ b/compliance_checker/cf/cf.py
@@ -3097,7 +3097,6 @@ class CFBaseCheck(BaseCheck):
:param netCDF4.Dataset ds: An open netCDF dataset
:rtype: compliance_checker.base.R... | Accept up to 2 occurrences of cf_role | py |
diff --git a/fmf/base.py b/fmf/base.py
index <HASH>..<HASH> 100644
--- a/fmf/base.py
+++ b/fmf/base.py
@@ -21,6 +21,21 @@ SUFFIX = ".fmf"
MAIN = "main" + SUFFIX
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+# YAML
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | Load all strings from YAML files as Unicode | py |
diff --git a/nefertari/authentication/views.py b/nefertari/authentication/views.py
index <HASH>..<HASH> 100644
--- a/nefertari/authentication/views.py
+++ b/nefertari/authentication/views.py
@@ -26,8 +26,7 @@ class TicketAuthViewMixin(object):
def login(self, **params):
self._json_params.update(params)
... | Dont use route_url in auth views | py |
diff --git a/ipcalc.py b/ipcalc.py
index <HASH>..<HASH> 100644
--- a/ipcalc.py
+++ b/ipcalc.py
@@ -343,13 +343,12 @@ class IP(object):
>>> ip = IP("::1")
>>> print repr(ip)
- IP('0000:0000:0000:0000:0000:0000:0000:0001', mask=128, version=6)
+ IP('0000:0000:0000:0000:0000:0000:0000:000... | Remove version=4 bit from repr. | py |
diff --git a/examples/swagger_config_3.py b/examples/swagger_config_3.py
index <HASH>..<HASH> 100644
--- a/examples/swagger_config_3.py
+++ b/examples/swagger_config_3.py
@@ -21,6 +21,16 @@ swagger_config = {
}
},
},
+ "servers": [
+ {
+ "url": "https://api.example.com/v1... | Add test case for issue #<I> | py |
diff --git a/bokeh/plotting.py b/bokeh/plotting.py
index <HASH>..<HASH> 100644
--- a/bokeh/plotting.py
+++ b/bokeh/plotting.py
@@ -234,16 +234,7 @@ class Figure(Plot):
>>> p.scatter("data1", "data2", source=data_source, ...)
"""
- ds = kwargs.get("source", None)
- names, datasource... | fix up scatter to use new glyph functions better | py |
diff --git a/sailthru/sailthru_http.py b/sailthru/sailthru_http.py
index <HASH>..<HASH> 100644
--- a/sailthru/sailthru_http.py
+++ b/sailthru/sailthru_http.py
@@ -37,7 +37,7 @@ def sailthru_http_request(url, data, method, file_data = None):
body = data if method == 'POST' else None
try:
headers = { 'User-Ag... | Added a timeout to the API request At GameChanger, we've observed it's possible for our email queue processors to all simultaneously hang. When we restart them they are able to resume processing fine. We believe that the lack of a timeout on the HTTP request to the Sailthru API is causing this request to never return... | py |
diff --git a/solvebio/resource/object.py b/solvebio/resource/object.py
index <HASH>..<HASH> 100644
--- a/solvebio/resource/object.py
+++ b/solvebio/resource/object.py
@@ -221,9 +221,12 @@ class Object(CreateableAPIResource,
'Content-Length': str(size),
}
- upload_resp = requests.put(uploa... | Retry uploads up to 5 times (#<I>) Closes #<I> | py |
diff --git a/pytest_flask/fixtures.py b/pytest_flask/fixtures.py
index <HASH>..<HASH> 100755
--- a/pytest_flask/fixtures.py
+++ b/pytest_flask/fixtures.py
@@ -104,8 +104,8 @@ def live_server(request, app):
# Bind to an open port
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(('', 0))
- s... | Release the random port before starting the application. | py |
diff --git a/test_tube/log.py b/test_tube/log.py
index <HASH>..<HASH> 100644
--- a/test_tube/log.py
+++ b/test_tube/log.py
@@ -149,7 +149,7 @@ class Experiment(SummaryWriter):
# set the tensorboardx log path to the /tf folder in the exp folder
logdir = self.get_tensorboardx_path(self.name, self.vers... | removed tensorboardx scalar writer | py |
diff --git a/phe/tests/cli_test.py b/phe/tests/cli_test.py
index <HASH>..<HASH> 100644
--- a/phe/tests/cli_test.py
+++ b/phe/tests/cli_test.py
@@ -392,7 +392,6 @@ class TestFuzz(TestConsoleHelpers):
self.assertAlmostEqual(float(a + b), float(out))
- @unittest.expectedFailure
def test_multiply_r... | Travis doesn't like it when tests unexpectedly pass. | py |
diff --git a/c7n/resources/iam.py b/c7n/resources/iam.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/iam.py
+++ b/c7n/resources/iam.py
@@ -772,6 +772,22 @@ class UserMfaDevice(ValueFilter):
@User.action_registry.register('remove-keys')
class UserRemoveAccessKey(BaseAction):
+ """Delete or disable user's acce... | docs - docstring for removing IAM keys (#<I>) | py |
diff --git a/timeside/plugins/decoder/file.py b/timeside/plugins/decoder/file.py
index <HASH>..<HASH> 100644
--- a/timeside/plugins/decoder/file.py
+++ b/timeside/plugins/decoder/file.py
@@ -37,7 +37,10 @@ import threading
from timeside.plugins.decoder.utils import get_uri, get_media_uri_info, stack, get_sha1
-imp... | [plugins] use queue, add try/except for py2 backward compat | py |
diff --git a/tests/test_examples.py b/tests/test_examples.py
index <HASH>..<HASH> 100644
--- a/tests/test_examples.py
+++ b/tests/test_examples.py
@@ -19,5 +19,10 @@ def test_ts_difficulties(unihan_options):
examples.variant_ts_difficulties.run(unihan_options=unihan_options)
-def test_basic_usage(unihan_option... | Add stdout tests for basic usage example | py |
diff --git a/oldconfig.py b/oldconfig.py
index <HASH>..<HASH> 100755
--- a/oldconfig.py
+++ b/oldconfig.py
@@ -262,7 +262,7 @@ def do_oldconfig_for_node(node):
sel_index = input("choice[1-{}]: ".format(len(options)))
- if sel_index == "??":
+ if sel_index == "?":
... | oldconfig: Fix help display command for choices '?' should display the help, like for symbols, not '??'. Oversight when the command was changed. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.