diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/kerncraft/kernel.py b/kerncraft/kernel.py
index <HASH>..<HASH> 100755
--- a/kerncraft/kernel.py
+++ b/kerncraft/kernel.py
@@ -579,9 +579,7 @@ class KernelCode(Kernel):
self.kernel_code = kernel_code
self._filename = filename
- # need to refer to local lextab, otherwise the system... | FIX #<I> removed reference to kerncraft.pycparser | py |
diff --git a/src/sos/task_executor.py b/src/sos/task_executor.py
index <HASH>..<HASH> 100644
--- a/src/sos/task_executor.py
+++ b/src/sos/task_executor.py
@@ -751,7 +751,7 @@ class BaseTaskExecutor(object):
"end_time": time.time(),
"signature": {
task_id: signature.write()
- ... | Stop saving task signature if there is no _output #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,11 +2,11 @@ from distutils.core import setup
setup(
name='AIKIF',
- version='0.0.1',
+ version='0.0.2',
author='Duncan Murray',
author_email='djmurray@acutesoftware.com.au',
packages=['AI', 'tes... | pointing url to github | py |
diff --git a/plex/interfaces/library/__init__.py b/plex/interfaces/library/__init__.py
index <HASH>..<HASH> 100644
--- a/plex/interfaces/library/__init__.py
+++ b/plex/interfaces/library/__init__.py
@@ -81,3 +81,14 @@ class LibraryInterface(Interface):
)
return response.status_code == 200
+
+ def... | Added `Plex['library'].unscrobble()` method | py |
diff --git a/plexapi/utils.py b/plexapi/utils.py
index <HASH>..<HASH> 100644
--- a/plexapi/utils.py
+++ b/plexapi/utils.py
@@ -58,8 +58,13 @@ class PlexPartialObject(object):
def cast(func, value):
if value not in [None, NA]:
if func == bool:
- value = int(value)
- value = func(value)
+... | Level for a media object might not always be an integer | py |
diff --git a/deploy_stack.py b/deploy_stack.py
index <HASH>..<HASH> 100644
--- a/deploy_stack.py
+++ b/deploy_stack.py
@@ -596,10 +596,9 @@ class BootstrapManager:
else:
runtime_config = get_jenv_path(self.client.juju_home,
self.client.env.en... | Dump logs even if known_hosts is empty. | py |
diff --git a/statscraper/base_scraper.py b/statscraper/base_scraper.py
index <HASH>..<HASH> 100644
--- a/statscraper/base_scraper.py
+++ b/statscraper/base_scraper.py
@@ -29,6 +29,7 @@ u"""
from hashlib import md5
from json import dumps
import pandas as pd
+from collections import deque
TYPE_DATASET = "Dataset"
... | use deque for _collection_path | py |
diff --git a/qiskit/_quantumprogram.py b/qiskit/_quantumprogram.py
index <HASH>..<HASH> 100644
--- a/qiskit/_quantumprogram.py
+++ b/qiskit/_quantumprogram.py
@@ -25,6 +25,7 @@ import copy
# use the external IBMQuantumExperience Library
from IBMQuantumExperience.IBMQuantumExperience import IBMQuantumExperience
+fro... | We want to explicity capture and re-throw RegisterSizeError from (#<I>) IBMQuantumExperience API. | py |
diff --git a/src/ocrmypdf/_validation.py b/src/ocrmypdf/_validation.py
index <HASH>..<HASH> 100644
--- a/src/ocrmypdf/_validation.py
+++ b/src/ocrmypdf/_validation.py
@@ -142,8 +142,6 @@ def check_options_preprocessing(options):
def _pages_from_ranges(ranges: str) -> Set[int]:
- if is_iterable_notstr(ranges):
-... | typing: confirmed that _pages_from_ranges(not-str) is never used | py |
diff --git a/chess/__init__.py b/chess/__init__.py
index <HASH>..<HASH> 100644
--- a/chess/__init__.py
+++ b/chess/__init__.py
@@ -2196,6 +2196,9 @@ class Board(object):
elif piece == KING:
san = "K"
candidates = self.generate_legal_moves(castling=False, pawns=False, knigh... | Prevent UnboundLocalError for bad moves in san() | py |
diff --git a/openaps/__init__.py b/openaps/__init__.py
index <HASH>..<HASH> 100644
--- a/openaps/__init__.py
+++ b/openaps/__init__.py
@@ -1,3 +1,3 @@
-__version__ = '0.0.2'
+__version__ = '0.0.3' | bumping version on dev branch to kickoff next version | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,8 @@ setup(
'Programming Language :: Python :: 3.7',
],
install_requires=[
- 'ruamel.yaml'
+ 'ruamel.yaml',
+ 'typing>=3.6'
],
test_suite='tests',
setup_requires... | Force a recent version of the typing library | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ elif PY3:
setup(
name='impyla',
- version='0.13.5',
+ version='0.13.6',
description='Python client for the Impala distributed query engine',
long_description=readme(),
author='Uri La... | DEV: Bump to <I> to reflect dependency changes | py |
diff --git a/kerncraft/models/roofline.py b/kerncraft/models/roofline.py
index <HASH>..<HASH> 100755
--- a/kerncraft/models/roofline.py
+++ b/kerncraft/models/roofline.py
@@ -128,7 +128,7 @@ class Roofline(object):
# Calculate performance (arithmetic intensity * bandwidth with
# arithmetic i... | fixed roofline data volume calculation (L2 to MEM) | py |
diff --git a/juju/placement.py b/juju/placement.py
index <HASH>..<HASH> 100644
--- a/juju/placement.py
+++ b/juju/placement.py
@@ -6,9 +6,10 @@
# module should be deprecated.
#
+from .client import client
+
MACHINE_SCOPE = "#"
-from .client import client
def parse(directive):
"""
@@ -17,7 +18,7 @@ def pa... | NoneType and style fixes for placement parsing lib | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -171,7 +171,7 @@ setup(
https://svn.geophysik.uni-muenchen.de/trac/mtspecpy/wiki
""",
url='https://svn.geophysik.uni-muenchen.de/trac/mtspecpy/wiki',
- author='Moritz Beyreuther, Lion Krischer',
+ author='... | Minor refactoring setup.py. | py |
diff --git a/optlang/gurobi_interface.py b/optlang/gurobi_interface.py
index <HASH>..<HASH> 100644
--- a/optlang/gurobi_interface.py
+++ b/optlang/gurobi_interface.py
@@ -615,17 +615,19 @@ class Model(interface.Model):
lhs = gurobipy.quicksum([coef * var._internal_variable for var, coef in coef_dict.it... | fix: constraint construction when adding constraints | py |
diff --git a/test/test_server_selection_in_window.py b/test/test_server_selection_in_window.py
index <HASH>..<HASH> 100644
--- a/test/test_server_selection_in_window.py
+++ b/test/test_server_selection_in_window.py
@@ -21,7 +21,7 @@ from pymongo.common import clean_node
from pymongo.read_preferences import ReadPrefere... | PYTHON-<I> Use large localThresholdMS to fix test_load_balancing (#<I>) | py |
diff --git a/tests/integration/api_swarm_test.py b/tests/integration/api_swarm_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration/api_swarm_test.py
+++ b/tests/integration/api_swarm_test.py
@@ -127,24 +127,6 @@ class SwarmTest(BaseAPIIntegrationTest):
)
@requires_api_version('1.24')
- def te... | Remove test_update_swarm_name Docker currently only supports the "default" cluster in Swarm-mode, and an upcoming SwarmKit release will produce an error if the name of the cluster is updated, causing the test to fail. Given that renaming the cluster is not supported, this patch removes the test | py |
diff --git a/pyani/scripts/subcommands.py b/pyani/scripts/subcommands.py
index <HASH>..<HASH> 100644
--- a/pyani/scripts/subcommands.py
+++ b/pyani/scripts/subcommands.py
@@ -481,6 +481,7 @@ def subcmd_anim(args, logger):
args.nucmer_exe,
... | make interim change to track bug in SGE jobs | py |
diff --git a/airflow/operators/python.py b/airflow/operators/python.py
index <HASH>..<HASH> 100644
--- a/airflow/operators/python.py
+++ b/airflow/operators/python.py
@@ -588,7 +588,7 @@ def get_current_context() -> Dict[str, Any]:
.. code:: python
- from airflow.task.context import get_current_context
... | Fix get_context_data doctest import (#<I>) This commit fixes the doctest replacing the old import - from airflow.task.context - to the newer one. | py |
diff --git a/tests/test_rnd.py b/tests/test_rnd.py
index <HASH>..<HASH> 100644
--- a/tests/test_rnd.py
+++ b/tests/test_rnd.py
@@ -1,3 +1,4 @@
+import random
import unittest
from contextfree.contextfree import circle
from contextfree.contextfree import init
@@ -13,6 +14,7 @@ class Tests(unittest.TestCase):
... | fix random sit to always pass coinflip | py |
diff --git a/tests/functional/test_logging.py b/tests/functional/test_logging.py
index <HASH>..<HASH> 100644
--- a/tests/functional/test_logging.py
+++ b/tests/functional/test_logging.py
@@ -44,8 +44,7 @@ class TestPmxbotLog(PmxbotHarness):
"""
id = str(uuid.uuid4())
msg = u'Я предпочитаю круассаны с рыбой. %(... | This last test wasn't very good and probably doesn't capture the bug I thought it did. | py |
diff --git a/zk_shell/cli.py b/zk_shell/cli.py
index <HASH>..<HASH> 100644
--- a/zk_shell/cli.py
+++ b/zk_shell/cli.py
@@ -14,10 +14,14 @@ class CLI(object):
if params.run_once != "":
sys.exit(0 if s.onecmd(params.run_once) == None else 1)
- else:
+
+ while True:
try:
... | Confirm before exiting upon KeyboardInterrupt | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -8,6 +8,13 @@ import findimports
here = os.path.dirname(__file__)
+class TestModule(unittest.TestCase):
+
+ def test(self):
+ m = findimports.Module('foo', 'foo.py')
+ self.assertEqual(repr(m), '<Module: ... | Test coverage: Module.__repr__ (This method is only used when I'm debugging findimports.) | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100644
--- a/runtests.py
+++ b/runtests.py
@@ -70,6 +70,8 @@ class TestApi(unittest.TestCase):
class TestDeployGit(unittest.TestCase):
+ # TODO: Change git repro url into something connected to the project.
+
def setUp(self):
current_path... | Added comment regarding git repro url | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -91,11 +91,6 @@ setup(
'Programming Language :: Python :: 3.8',
],
description="A python library for building different types of copulas and using them for sampling.",
- entry_points={
- 'console_s... | removing entry point (#<I>) | py |
diff --git a/tests/calculators/hazard/uhs/core_unittest.py b/tests/calculators/hazard/uhs/core_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/calculators/hazard/uhs/core_unittest.py
+++ b/tests/calculators/hazard/uhs/core_unittest.py
@@ -307,6 +307,3 @@ class UHSCalculatorTestCase(UHSBaseTestCase):
'%... | removed some blank lines at the end of the file | py |
diff --git a/mpop/test_scene.py b/mpop/test_scene.py
index <HASH>..<HASH> 100644
--- a/mpop/test_scene.py
+++ b/mpop/test_scene.py
@@ -415,6 +415,27 @@ class TestSatelliteInstrumentScene(unittest.TestCase):
self.assertEquals(chn.resolution, channels[i][2])
+ def test_setitem(self):
+ """__set... | Added test for __setitem__ (scene) | py |
diff --git a/spyderlib/widgets/helperwidgets.py b/spyderlib/widgets/helperwidgets.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/helperwidgets.py
+++ b/spyderlib/widgets/helperwidgets.py
@@ -124,11 +124,14 @@ class HTMLDelegate(QStyledItemDelegate):
painter.save()
if style.objectName() in ['ox... | File switcher: More adjustments to the html delegate layout | py |
diff --git a/astrobase/hatpilc.py b/astrobase/hatpilc.py
index <HASH>..<HASH> 100644
--- a/astrobase/hatpilc.py
+++ b/astrobase/hatpilc.py
@@ -234,7 +234,6 @@ def concatenate_textlcs(lclist):
for col in lcdict['columns']:
lcdict[col] = np.concatenate((lcdict[col], thislcf[col]))
-
#... | hatpilc: minor fix | py |
diff --git a/pyvisa-py/tcpip.py b/pyvisa-py/tcpip.py
index <HASH>..<HASH> 100644
--- a/pyvisa-py/tcpip.py
+++ b/pyvisa-py/tcpip.py
@@ -387,8 +387,8 @@ class TCPIPSocketSession(Session):
# use select to wait for read ready, max `select_timout` seconds
try:
r, w, x = select.sele... | raraising keyboard interrupt instead of returning abort | py |
diff --git a/sick/models.py b/sick/models.py
index <HASH>..<HASH> 100644
--- a/sick/models.py
+++ b/sick/models.py
@@ -1343,13 +1343,19 @@ class Model(object):
# Evaluate the rule
rule = self.configuration["initial_walker_widths"][parameter]
- try:
- ... | allow for floats in initial walker widths | py |
diff --git a/tests/test_bias.py b/tests/test_bias.py
index <HASH>..<HASH> 100644
--- a/tests/test_bias.py
+++ b/tests/test_bias.py
@@ -40,17 +40,14 @@ class BiasTest(unittest.TestCase):
def test_03_contraversy_low(self):
low_cont = mod_bias.Contraversy('maths')
- print(low_cont)
self.ass... | removed print statements from test_bias | py |
diff --git a/ncpol2sdpa/sdp_relaxation.py b/ncpol2sdpa/sdp_relaxation.py
index <HASH>..<HASH> 100644
--- a/ncpol2sdpa/sdp_relaxation.py
+++ b/ncpol2sdpa/sdp_relaxation.py
@@ -761,7 +761,7 @@ class SdpRelaxation(object):
A = self.__process_equalities(equalities, flatten(self.monomial_sets))
sel... | Corrected function name for getting Faacets relaxation | py |
diff --git a/casscache.py b/casscache.py
index <HASH>..<HASH> 100644
--- a/casscache.py
+++ b/casscache.py
@@ -1,5 +1,12 @@
from cassandra.cluster import Cluster, Session
-from cassandra.query import ValueSequence
+
+try:
+ from cassandra.io.libevreactor import LibevConnection
+ ConnectionClass = LibevConnection... | Automatically detect the best reactor to use | py |
diff --git a/path.py b/path.py
index <HASH>..<HASH> 100644
--- a/path.py
+++ b/path.py
@@ -984,6 +984,9 @@ class Path(text_type):
def samefile(self, other):
""" .. seealso:: :func:`os.path.samefile` """
+ if not hasattr(self.module, 'samefile'):
+ other = Path(other).realpath().normpat... | workaround for os.path without samefile() | py |
diff --git a/matchpy/matching/many_to_one.py b/matchpy/matching/many_to_one.py
index <HASH>..<HASH> 100644
--- a/matchpy/matching/many_to_one.py
+++ b/matchpy/matching/many_to_one.py
@@ -34,6 +34,7 @@ Also contains the :class:`ManyToOneReplacer` which can replace a set :class:`Rep
import math
import html
import iter... | Fixed bug. The problem occurred in many-to-one matching when using patterns that contain symbols that require additional arguments in __init__(). | py |
diff --git a/codenerix/authbackend_lib.py b/codenerix/authbackend_lib.py
index <HASH>..<HASH> 100644
--- a/codenerix/authbackend_lib.py
+++ b/codenerix/authbackend_lib.py
@@ -362,9 +362,6 @@ class ActiveDirectoryGroupMembershipSSLBackend:
proto = 'ldap'
port = getattr(settings, 'AD_LDAP_PO... | LDAP authentication method resolved problem with old funtion call | py |
diff --git a/fedmsg/consumers/ircbot.py b/fedmsg/consumers/ircbot.py
index <HASH>..<HASH> 100644
--- a/fedmsg/consumers/ircbot.py
+++ b/fedmsg/consumers/ircbot.py
@@ -101,6 +101,7 @@ class FedMsngrFactory(protocol.ClientFactory):
class IRCBotConsumer(FedmsgConsumer):
topic = "org.fedoraproject.*"
+ validate_... | IRCBot shouldn't outright reject invalidly signed messages, just mark them as such. | py |
diff --git a/src/masonite/drivers/session/RedisDriver.py b/src/masonite/drivers/session/RedisDriver.py
index <HASH>..<HASH> 100644
--- a/src/masonite/drivers/session/RedisDriver.py
+++ b/src/masonite/drivers/session/RedisDriver.py
@@ -51,9 +51,9 @@ class RedisDriver(BaseDriver):
data_prefix = self.get_data_pre... | Make sure the keys are strings before searching them | py |
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/base/exchange.py
+++ b/python/ccxt/base/exchange.py
@@ -1088,7 +1088,7 @@ class Exchange(object):
digest = base64.b16decode(encoded_request, casefold=True)
key = ecdsa.SigningKey.... | start counter at 0 to be consistent (doesn't affect any signing logic) | py |
diff --git a/dump2polarion/transform.py b/dump2polarion/transform.py
index <HASH>..<HASH> 100644
--- a/dump2polarion/transform.py
+++ b/dump2polarion/transform.py
@@ -26,9 +26,21 @@ def get_results_transform_cfme(config):
def results_transform_cfme(result):
"""Results transform for CFME."""
- if ... | Transforms of testcase names for CFME testcases | py |
diff --git a/ovp_organizations/serializers.py b/ovp_organizations/serializers.py
index <HASH>..<HASH> 100644
--- a/ovp_organizations/serializers.py
+++ b/ovp_organizations/serializers.py
@@ -1,7 +1,7 @@
from django.core.exceptions import ValidationError
from ovp_core import validators as core_validators
-from ovp_c... | Return GoogleAddressCityStateSerializer on address field instead of pk in OrganizationSearchSerializer | py |
diff --git a/plaso/cli/psort_tool.py b/plaso/cli/psort_tool.py
index <HASH>..<HASH> 100644
--- a/plaso/cli/psort_tool.py
+++ b/plaso/cli/psort_tool.py
@@ -531,6 +531,11 @@ class PsortTool(
storage_writer = (
storage_factory.StorageFactory.CreateStorageWriterForFile(
session, self._stora... | Changes to psort to handle read-only storage exception #<I> (#<I>) | py |
diff --git a/xclim/indices/_conversion.py b/xclim/indices/_conversion.py
index <HASH>..<HASH> 100644
--- a/xclim/indices/_conversion.py
+++ b/xclim/indices/_conversion.py
@@ -932,7 +932,10 @@ def potential_evapotranspiration(
elif method in ["mcguinnessbordne05", "MB05"]:
if tas is None:
+ ta... | Explicitely declare tas' units attrs. | py |
diff --git a/colorama/initialise.py b/colorama/initialise.py
index <HASH>..<HASH> 100644
--- a/colorama/initialise.py
+++ b/colorama/initialise.py
@@ -56,8 +56,10 @@ def deinit():
@contextlib.contextmanager
def colorama_text(*args):
init(*args)
- yield
- deinit()
+ try:
+ yield
+ finally:
+ ... | make sure it always de-initiallizes even if it gets an exception | py |
diff --git a/pylibscrypt/mcf.py b/pylibscrypt/mcf.py
index <HASH>..<HASH> 100644
--- a/pylibscrypt/mcf.py
+++ b/pylibscrypt/mcf.py
@@ -81,7 +81,7 @@ def _scrypt_mcf_parse_s1(mcf):
raise ValueError('Unrecognized MCF parameters')
t, r, p = struct.unpack('3B', params)
N = 2 ** t
- return N, r, p, sal... | Require correct hash lengths | py |
diff --git a/ipywidgets/widgets/tests/test_widget_upload.py b/ipywidgets/widgets/tests/test_widget_upload.py
index <HASH>..<HASH> 100644
--- a/ipywidgets/widgets/tests/test_widget_upload.py
+++ b/ipywidgets/widgets/tests/test_widget_upload.py
@@ -85,3 +85,14 @@ class TestFileUpload(TestCase):
# Check that no m... | Test setting the value to empty from the kernel | py |
diff --git a/aiorpcx/curio.py b/aiorpcx/curio.py
index <HASH>..<HASH> 100644
--- a/aiorpcx/curio.py
+++ b/aiorpcx/curio.py
@@ -208,7 +208,6 @@ class TaskGroup(object):
return
finally:
await self.cancel_remaining()
- self._closed = True
if errored(task):
... | Add TaskGroup.closed() Other minor cleanup | py |
diff --git a/zipline/errors.py b/zipline/errors.py
index <HASH>..<HASH> 100644
--- a/zipline/errors.py
+++ b/zipline/errors.py
@@ -685,3 +685,14 @@ class NonSliceableTerm(ZiplineError):
of `zipline.pipeline.term.LoadableTerm`.
"""
msg = "Taking slices of {term} is not currently supported."
+
+
+class Inc... | ENH: Factor-to-factor correlations/regressions | py |
diff --git a/openpnm/algorithms/GenericTransport.py b/openpnm/algorithms/GenericTransport.py
index <HASH>..<HASH> 100644
--- a/openpnm/algorithms/GenericTransport.py
+++ b/openpnm/algorithms/GenericTransport.py
@@ -391,7 +391,7 @@ class GenericTransport(GenericAlgorithm):
ind = np.isfinite(self['pore.bc_ra... | Improved Dirichlet BCs to prevent A from getting ill-conditioned | py |
diff --git a/torchfcn/trainer.py b/torchfcn/trainer.py
index <HASH>..<HASH> 100644
--- a/torchfcn/trainer.py
+++ b/torchfcn/trainer.py
@@ -20,9 +20,9 @@ def cross_entropy2d(input, target, weight=None, size_average=True):
# input: (n, c, h, w), target: (n, h, w)
n, c, h, w = input.size()
# log_p: (n, c, h... | Update for PyTorch >= <I> | py |
diff --git a/crust/query.py b/crust/query.py
index <HASH>..<HASH> 100644
--- a/crust/query.py
+++ b/crust/query.py
@@ -411,6 +411,21 @@ class QuerySet(object):
return clone
+ ###################################
+ # PUBLIC INTROSPECTION ATTRIBUTES #
+ ###################################
+
+ @pro... | Add the ability to see if a queryset is ordered | py |
diff --git a/nose/test_snapshotpotential.py b/nose/test_snapshotpotential.py
index <HASH>..<HASH> 100644
--- a/nose/test_snapshotpotential.py
+++ b/nose/test_snapshotpotential.py
@@ -41,3 +41,15 @@ def test_snapshotKeplerPotential_zforce():
assert numpy.fabs(sp.zforce(1.,-0.5)-kp.zforce(1.,-0.5)) < 10.**-8., 'Snap... | test SnapShotPotential has | py |
diff --git a/linebot/__about__.py b/linebot/__about__.py
index <HASH>..<HASH> 100644
--- a/linebot/__about__.py
+++ b/linebot/__about__.py
@@ -15,7 +15,7 @@
"""Meta data of line-bot-sdk."""
-__version__ = '1.20.0'
+__version__ = '.0.0'
__author__ = 'LINE Corporation'
__copyright__ = 'Copyright 2016, LINE Corpora... | Release <I> (#<I>) | py |
diff --git a/montblanc/impl/biro/v5/CompositeBiroSolver.py b/montblanc/impl/biro/v5/CompositeBiroSolver.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/biro/v5/CompositeBiroSolver.py
+++ b/montblanc/impl/biro/v5/CompositeBiroSolver.py
@@ -793,8 +793,14 @@ class CompositeBiroSolver(BaseSolver):
# OK... | Handle future completion edge case. It may be the case that futures are removed from queues after the queues are considered to be too large to submit work too, but before a decision to wait on the futures remaining in the queue is made. Catch any IndexErrors resulting from trying to access empty queues and try submit... | py |
diff --git a/mockito/mocking.py b/mockito/mocking.py
index <HASH>..<HASH> 100644
--- a/mockito/mocking.py
+++ b/mockito/mocking.py
@@ -18,6 +18,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
+from collections import deque
import inspect
from . import invocation
... | Replace [] with deque's bc we want exactly that behavior | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,7 @@ setup(
"Django>=1.5.0",
"djangorestframework>=2.4.4",
"django-haystack>=2.3.1",
+ "elasticsearch<2.0.0",
"python-dateutil"
],
tests_require=[ | need to lock elasticsearch version < <I> | py |
diff --git a/master/buildbot/master.py b/master/buildbot/master.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/master.py
+++ b/master/buildbot/master.py
@@ -459,16 +459,15 @@ class BuildMaster(service.ReconfigurableServiceMixin, service.MasterService,
kwargs['comments'] = comments
def handle_d... | Update handle_deprec to pass through new name if it's used Pass through the value of the new name if the old key is not present. This fixes #<I>. | py |
diff --git a/livetests.py b/livetests.py
index <HASH>..<HASH> 100755
--- a/livetests.py
+++ b/livetests.py
@@ -51,7 +51,9 @@ def _initialize(api):
api.get("/changes/")
-@pytest.fixture(scope="module", params=["2.16.22", "3.0.13", "3.1.8", "3.2.3"])
+@pytest.fixture(
+ scope="module", params=["2.16.22", "3.0... | Add <I>-rc1 to the livetests versions under test As the previous <I>-rc0 version had an issue with its docker image. | py |
diff --git a/future/builtins/backports/newstr.py b/future/builtins/backports/newstr.py
index <HASH>..<HASH> 100644
--- a/future/builtins/backports/newstr.py
+++ b/future/builtins/backports/newstr.py
@@ -130,11 +130,11 @@ class newstr(with_metaclass(BaseNewStr, unicode)):
@no(bytes)
def __radd__(self, left):
... | Patch for buggy newstr.__radd__ * This needs unit tests! | py |
diff --git a/buttersink/Butter.py b/buttersink/Butter.py
index <HASH>..<HASH> 100644
--- a/buttersink/Butter.py
+++ b/buttersink/Butter.py
@@ -88,8 +88,11 @@ class Butter:
stderr=subprocess.PIPE,
stdout=DEVNULL,
)
- ps = psutil.Process(process.pid)
- ps.ionice(psutil.IOP... | Fix for compatibility with psutil without ionice | py |
diff --git a/lib/python/dxpy/program_builder.py b/lib/python/dxpy/program_builder.py
index <HASH>..<HASH> 100644
--- a/lib/python/dxpy/program_builder.py
+++ b/lib/python/dxpy/program_builder.py
@@ -87,6 +87,14 @@ def upload_program(src_dir, uploaded_resources, check_name_collisions=True, over
program_id = dxpy.... | Populate properties short_description, description, and category. | py |
diff --git a/alot/buffers/search.py b/alot/buffers/search.py
index <HASH>..<HASH> 100644
--- a/alot/buffers/search.py
+++ b/alot/buffers/search.py
@@ -46,7 +46,7 @@ class SearchBuffer(Buffer):
info['result_count_positive'] = 's' if self.result_count > 1 else ''
return info
- def rebuild(self, rev... | don't restore focus after rebuild on move jump Limiting the number of results for an exact move last doesn't make sense if we will try to restore the focus first on the reversed threadlist, potentially loading all threads with the default configuration. | py |
diff --git a/lib/py/setup.py b/lib/py/setup.py
index <HASH>..<HASH> 100644
--- a/lib/py/setup.py
+++ b/lib/py/setup.py
@@ -42,13 +42,13 @@ class ve_build_ext(build_ext):
def run(self):
try:
build_ext.run(self)
- except DistutilsPlatformError, x:
+ except DistutilsPlatformError a... | THRIFT-<I>: Python 3 setup.py support Client: py | py |
diff --git a/pysat/tests/test_utils.py b/pysat/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_utils.py
+++ b/pysat/tests/test_utils.py
@@ -545,7 +545,7 @@ class TestBasics():
self.testInst.index.freq = pysat.utils.calc_freq(self.testInst.index)
- assert set.testInst.index.fre... | Update test_utils.py Fixed bug in frequency tests | py |
diff --git a/server/fetch_historical_bviews.py b/server/fetch_historical_bviews.py
index <HASH>..<HASH> 100755
--- a/server/fetch_historical_bviews.py
+++ b/server/fetch_historical_bviews.py
@@ -73,7 +73,10 @@ def downloadURL(url, filename):
"""
path_temp_bviewfile = os.path.join(c.raw_data, c.bview_dir, 'tmp... | catch exeptions while downloading bview file | py |
diff --git a/pycbc/types/timeseries.py b/pycbc/types/timeseries.py
index <HASH>..<HASH> 100644
--- a/pycbc/types/timeseries.py
+++ b/pycbc/types/timeseries.py
@@ -795,6 +795,22 @@ class TimeSeries(Array):
from pycbc.filter import fir_zero_filter
return self._return(fir_zero_filter(coeff, self))
+ ... | add a resample method to time series (#<I>) * add a resample method to time series * remove extra whitespace * more whitespace | py |
diff --git a/clarent/certificate.py b/clarent/certificate.py
index <HASH>..<HASH> 100644
--- a/clarent/certificate.py
+++ b/clarent/certificate.py
@@ -104,7 +104,9 @@ class SecureCiphersContextFactory(object):
# Since we can multiplex everything over a single connection, this
# doesn't really matter as much. Also, GC... | Clarify ciphersuite choices | py |
diff --git a/pyinfra/operations/server.py b/pyinfra/operations/server.py
index <HASH>..<HASH> 100644
--- a/pyinfra/operations/server.py
+++ b/pyinfra/operations/server.py
@@ -568,11 +568,12 @@ def crontab(
# We have the cron and it exists, do it's details? If not, replace the line
elif present and exists:
... | Fix edit of crontab special times in `server.crontab` operation. | py |
diff --git a/test_ella/test_core/test_feeds.py b/test_ella/test_core/test_feeds.py
index <HASH>..<HASH> 100644
--- a/test_ella/test_core/test_feeds.py
+++ b/test_ella/test_core/test_feeds.py
@@ -32,26 +32,9 @@ class TestFeeds(TestCase):
self._feeder = RSSTopCategoryListings('test', HttpRequest())
def _s... | use only one code to handle photo creation | py |
diff --git a/setuptools/compat.py b/setuptools/compat.py
index <HASH>..<HASH> 100644
--- a/setuptools/compat.py
+++ b/setuptools/compat.py
@@ -23,7 +23,6 @@ if sys.version_info[0] < 3:
maxsize = sys.maxint
next = lambda o: o.next()
numeric_types = (int, long, float)
- reduce = reduce
unichr = uni... | Remove reduce compatibility references (intended for earlier commit). | py |
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py
index <HASH>..<HASH> 100755
--- a/misc/log-analytics/import_logs.py
+++ b/misc/log-analytics/import_logs.py
@@ -808,7 +808,7 @@ class Piwik(object):
try:
return json.loads(res)
except ValueError:
- ... | debugging ui tests failure on travis | py |
diff --git a/ClientRuntimes/Python/msrestazure/test/unittest_auth.py b/ClientRuntimes/Python/msrestazure/test/unittest_auth.py
index <HASH>..<HASH> 100644
--- a/ClientRuntimes/Python/msrestazure/test/unittest_auth.py
+++ b/ClientRuntimes/Python/msrestazure/test/unittest_auth.py
@@ -314,7 +314,7 @@ class TestInteractive... | Update unit test to check verify setting is propogated | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,13 +9,17 @@ install_requires = [
'arrow',
'iso8601',
'qiniu',
- 'requests',
+ 'requests>=2.12.1',
'werkzeug',
]
if sys.version_info < (3, 5, 0):
install_requires.append('typing')
+if sys... | feat: support SNI in earlier python versions (before <I>) | py |
diff --git a/invenio_logging/fs.py b/invenio_logging/fs.py
index <HASH>..<HASH> 100644
--- a/invenio_logging/fs.py
+++ b/invenio_logging/fs.py
@@ -59,7 +59,7 @@ class InvenioLoggingFS(InvenioLoggingBase):
basedir = dirname(app.config['LOGGING_FS_LOGFILE'])
if not exists(basedir):
raise Va... | Fix typo in fs.py | py |
diff --git a/examples/theworldfoundry/conftest.py b/examples/theworldfoundry/conftest.py
index <HASH>..<HASH> 100644
--- a/examples/theworldfoundry/conftest.py
+++ b/examples/theworldfoundry/conftest.py
@@ -27,7 +27,7 @@ def saw(entity, msg):
if msg in mem:
return True
- raise WitnessError('%... | Make WitnessErrors more readable | py |
diff --git a/oauthlib/oauth1/rfc5849/utils.py b/oauthlib/oauth1/rfc5849/utils.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth1/rfc5849/utils.py
+++ b/oauthlib/oauth1/rfc5849/utils.py
@@ -93,7 +93,7 @@ def escape(u):
raise ValueError('Only unicode objects are escapable.')
# Letters, digits, and the cha... | Adding back 'safe' chars for escaping. | py |
diff --git a/google-cloud-dialogflow/synth.py b/google-cloud-dialogflow/synth.py
index <HASH>..<HASH> 100644
--- a/google-cloud-dialogflow/synth.py
+++ b/google-cloud-dialogflow/synth.py
@@ -26,7 +26,7 @@ gapic = gcp.GAPICGenerator()
v2_library = gapic.ruby_library(
'dialogflow', 'v2',
- config_path='/google... | Update path to dialogflow artman config (#<I>) | py |
diff --git a/ceph_deploy/connection.py b/ceph_deploy/connection.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/connection.py
+++ b/ceph_deploy/connection.py
@@ -8,8 +8,6 @@ def get_connection(hostname, username, logger, threads=5, use_sudo=None):
A very simple helper, meant to return a connection
that will ... | remove the sudo checks in ceph-deploy | py |
diff --git a/troposphere/autoscaling.py b/troposphere/autoscaling.py
index <HASH>..<HASH> 100644
--- a/troposphere/autoscaling.py
+++ b/troposphere/autoscaling.py
@@ -66,6 +66,7 @@ class LaunchConfiguration(AWSObject):
type = "AWS::AutoScaling::LaunchConfiguration"
props = {
+ 'AssociatePublicIpAddre... | Add AssociatePublicIpAddress property for AutoScaling LaunchConfiguration | py |
diff --git a/htmresearch/regions/TemporalPoolerRegion.py b/htmresearch/regions/TemporalPoolerRegion.py
index <HASH>..<HASH> 100644
--- a/htmresearch/regions/TemporalPoolerRegion.py
+++ b/htmresearch/regions/TemporalPoolerRegion.py
@@ -372,14 +372,6 @@ class TemporalPoolerRegion(PyRegion):
isDefaultInput=Fals... | Remove extra sequenceIdIn from TemporalPoolerRegion | py |
diff --git a/bfg9000/builtins/install.py b/bfg9000/builtins/install.py
index <HASH>..<HASH> 100644
--- a/bfg9000/builtins/install.py
+++ b/bfg9000/builtins/install.py
@@ -73,6 +73,8 @@ def _install_commands(backend, build_inputs, buildfile, env):
if kind != 'program':
kind = 'data'
cm... | Fix capitalization of doppel command variables under make | py |
diff --git a/socialregistration/clients/oauth.py b/socialregistration/clients/oauth.py
index <HASH>..<HASH> 100644
--- a/socialregistration/clients/oauth.py
+++ b/socialregistration/clients/oauth.py
@@ -270,7 +270,13 @@ class OAuth2(Client):
if self._access_token is None:
if code is None:
... | Raising a custom `KeyError` when 'access_token' is missing, see #<I> | py |
diff --git a/bokeh/charts/bar.py b/bokeh/charts/bar.py
index <HASH>..<HASH> 100644
--- a/bokeh/charts/bar.py
+++ b/bokeh/charts/bar.py
@@ -17,11 +17,14 @@ It also add a new chained stacked method.
# Imports
#-----------------------------------------------------------------------------
-import numpy as np
-import pa... | add message before failing when numpy is not installed | py |
diff --git a/great_expectations/data_context/types/resource_identifiers.py b/great_expectations/data_context/types/resource_identifiers.py
index <HASH>..<HASH> 100644
--- a/great_expectations/data_context/types/resource_identifiers.py
+++ b/great_expectations/data_context/types/resource_identifiers.py
@@ -108,13 +108,1... | If batch_id is None, set to “__none__” in tuple | py |
diff --git a/engram.py b/engram.py
index <HASH>..<HASH> 100644
--- a/engram.py
+++ b/engram.py
@@ -75,6 +75,9 @@ class Engram():
Returns the closest match based on known conversations.
"""
+ # Ensure that the input text is a string
+ input_text = str(input_text)
+
# Check to m... | Added cast to strings for regex. | py |
diff --git a/former/cli.py b/former/cli.py
index <HASH>..<HASH> 100644
--- a/former/cli.py
+++ b/former/cli.py
@@ -2,12 +2,12 @@ from __future__ import print_function
import argparse
import json
import sys
+import traceback
import yaml
import former
from former import __version__
-from former.resource import ... | Add handling for any network or parsing issues of the spec | py |
diff --git a/src/python/pants/backend/jvm/subsystems/jar_dependency_management.py b/src/python/pants/backend/jvm/subsystems/jar_dependency_management.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/jvm/subsystems/jar_dependency_management.py
+++ b/src/python/pants/backend/jvm/subsystems/jar_dependency_man... | Adjust type comment for targets param in JarDependencyManagement.targets_by_artifact_set Sometimes it is used with objects that aren't lists, but are iterable. Reviewed at <URL> | py |
diff --git a/sh.py b/sh.py
index <HASH>..<HASH> 100644
--- a/sh.py
+++ b/sh.py
@@ -2829,7 +2829,10 @@ class Contrib(object):
def process(args, kwargs):
- password = kwargs.pop("password", None)
+ try:
+ password = args.pop(0)
+ except IndexError:
+ ... | use arg password for sh.contrib.sudo | py |
diff --git a/peewee_validates.py b/peewee_validates.py
index <HASH>..<HASH> 100644
--- a/peewee_validates.py
+++ b/peewee_validates.py
@@ -32,18 +32,24 @@ class ValidationError(Exception):
def date(value):
+ if not value:
+ return None
if isinstance(value, dt.date):
return value
return... | Fixed issues with unsetting m2m fields, and with empty dates/times. | py |
diff --git a/suds/xsd/sxbase.py b/suds/xsd/sxbase.py
index <HASH>..<HASH> 100644
--- a/suds/xsd/sxbase.py
+++ b/suds/xsd/sxbase.py
@@ -363,9 +363,16 @@ class SchemaObject(UnicodeMixin):
def translate(self, value, topython=True):
"""
- Translate a value (type) to/from a Python type.
+ Trans... | better document the SchemaObject.translate() method Explicitly note that when converting a Python object to an XSD type value, the method may return any Python object whose string representation matches the desired XSD type value. | py |
diff --git a/wooey/signals.py b/wooey/signals.py
index <HASH>..<HASH> 100644
--- a/wooey/signals.py
+++ b/wooey/signals.py
@@ -43,7 +43,8 @@ def script_version_presave(instance, **kwargs):
if 'script_path' in instance.changed_fields and not skip_script(instance):
# If the script checksum is not ch... | Use context manager for presave checksum to ensure file is closed | py |
diff --git a/eth/rlp/accounts.py b/eth/rlp/accounts.py
index <HASH>..<HASH> 100644
--- a/eth/rlp/accounts.py
+++ b/eth/rlp/accounts.py
@@ -34,3 +34,11 @@ class Account(rlp.Serializable):
code_hash: bytes=EMPTY_SHA3,
**kwargs: Any) -> None:
super().__init__(nonce, balance, st... | add repr to eth.rlp.Account | py |
diff --git a/tests/functional_tests/test_providers.py b/tests/functional_tests/test_providers.py
index <HASH>..<HASH> 100644
--- a/tests/functional_tests/test_providers.py
+++ b/tests/functional_tests/test_providers.py
@@ -27,6 +27,9 @@ from tests.functional_tests import config
requests.packages.urllib3.disable_warn... | Added a check whether the tests are launched as sudo if on port <I>. | py |
diff --git a/grimoire_elk/enriched/git.py b/grimoire_elk/enriched/git.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/git.py
+++ b/grimoire_elk/enriched/git.py
@@ -673,7 +673,12 @@ class GitEnrich(Enrich):
logger.debug("[update-items] Checking commits for %s.", self.perceval_backend.origin)
... | [enrich] Handle Perceval errors on Git repo when updating items This code allows to handle errors on Git repositories when updating the the content of the enriched index to remove commits which are not present anymore in the original repository. | py |
diff --git a/src/foremast/consts.py b/src/foremast/consts.py
index <HASH>..<HASH> 100644
--- a/src/foremast/consts.py
+++ b/src/foremast/consts.py
@@ -201,7 +201,7 @@ ALLOWED_TYPES = set(
validate_key_values(CONFIG, 'base', 'types', default='ec2,lambda,s3,datapipeline,rolling,manual').split(','))
RUNWAY_BASE_PATH... | Added support for config defined TEMPLATES_SCHEME_IDENTIFIER constant | py |
diff --git a/salt/__init__.py b/salt/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/__init__.py
+++ b/salt/__init__.py
@@ -169,11 +169,11 @@ class Syndic(object):
Generate the opts used by the syndic
'''
opts = salt.config.master_config(self.cli['master_config'])
- opts['_minion_co... | change the conf refs to be more consistent | py |
diff --git a/salt/loader/__init__.py b/salt/loader/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/loader/__init__.py
+++ b/salt/loader/__init__.py
@@ -460,7 +460,7 @@ def returners(opts, functions, whitelist=None, context=None, proxy=None):
)
-def utils(opts, whitelist=None, context=None, proxy=proxy, pack... | The default argument to `proxy` should not be the `proxy` function... This was done in f4ba<I>c6ee0ab<I>b<I>e<I>e<I>e<I>a0 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.