diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/ipython_helpers/notebook.py b/ipython_helpers/notebook.py
index <HASH>..<HASH> 100644
--- a/ipython_helpers/notebook.py
+++ b/ipython_helpers/notebook.py
@@ -62,7 +62,7 @@ class Session(object):
self._notebook_dir = os.getcwd()
# Determine which port the notebook is running on.
- ... | Update launched search string to work with Jupyter | py |
diff --git a/test/secure.py b/test/secure.py
index <HASH>..<HASH> 100755
--- a/test/secure.py
+++ b/test/secure.py
@@ -366,15 +366,17 @@ class TestSecure(unittest.TestCase):
shard_0_master.create_db('vt_test_keyspace')
proc1 = shard_0_master.start_vttablet(cert=cert_dir + "/vt-server-cert.pem",
- ... | Deflake secure.py test_restart method. - Remove extra wait for pid port; pid is served from the main port now. - Use wait_step instead of fixed wait for test condition. | py |
diff --git a/billy/reports/bills.py b/billy/reports/bills.py
index <HASH>..<HASH> 100644
--- a/billy/reports/bills.py
+++ b/billy/reports/bills.py
@@ -25,7 +25,7 @@ def _bill_report_dict():
'votes_per_month': defaultdict(int),
'votes_per_chamber': defaultdict(int),
'votes_per_type... | bad_vote_counts | py |
diff --git a/pymta/release.py b/pymta/release.py
index <HASH>..<HASH> 100644
--- a/pymta/release.py
+++ b/pymta/release.py
@@ -2,7 +2,7 @@
"""Release information about pymta."""
name = "pymta"
-version = "0.4"
+version = "0.5dev"
description = "library to build a custom SMTP server"
long_description = """
pymta ... | back to development mode for <I>dev | py |
diff --git a/jpype/_jmethod.py b/jpype/_jmethod.py
index <HASH>..<HASH> 100644
--- a/jpype/_jmethod.py
+++ b/jpype/_jmethod.py
@@ -38,7 +38,7 @@ def _jmethodGetDoc(method, cls, overloads):
jcls.__doc__
jd = getattr(jcls, "__javadoc__")
if jd is not None:
- md = jd.methods[method.__name__]
+ ... | Minor fix to javadoc, trying to get release through CI | py |
diff --git a/src/jukeboxmaya/reftrack/refobjinter.py b/src/jukeboxmaya/reftrack/refobjinter.py
index <HASH>..<HASH> 100644
--- a/src/jukeboxmaya/reftrack/refobjinter.py
+++ b/src/jukeboxmaya/reftrack/refobjinter.py
@@ -308,9 +308,9 @@ class MayaRefobjInterface(RefobjInterface):
:rtype: :class:`bool`
:... | Restrict import if referenced You cannot import a nested reference in Maya. | py |
diff --git a/tensorflow_probability/python/mcmc/__init__.py b/tensorflow_probability/python/mcmc/__init__.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/mcmc/__init__.py
+++ b/tensorflow_probability/python/mcmc/__init__.py
@@ -43,6 +43,7 @@ from tensorflow_probability.python.mcmc.slice_sampler_kerne... | Add CheckpointableStatesAndTrace to tfp.mcmc.__all__ PiperOrigin-RevId: <I> | py |
diff --git a/salt/modules/ebuild.py b/salt/modules/ebuild.py
index <HASH>..<HASH> 100644
--- a/salt/modules/ebuild.py
+++ b/salt/modules/ebuild.py
@@ -266,14 +266,12 @@ def _get_upgradable():
call = __salt__['cmd.run_all'](cmd, output_loglevel='trace')
if call['retcode'] != 0:
- comment = ''
- ... | salt/modules/ebuild.py: add kwargs to list_upgrades This is done for API compatibility | py |
diff --git a/sos/collector/sosnode.py b/sos/collector/sosnode.py
index <HASH>..<HASH> 100644
--- a/sos/collector/sosnode.py
+++ b/sos/collector/sosnode.py
@@ -634,6 +634,10 @@ class SosNode():
sos_opts.append(
"--container-runtime=%s" % self.opts.container_runtime
... | [sosnode] Properly pass `--namespaces` to nodes The `namespaces` option was presented to `sos collect`, but was not actually being passed to nodes. Fix this, and gate the usage of the option to version <I>, or the relevant RHEL backport version like we do for `--container-runtime`. | py |
diff --git a/pymysql/connections.py b/pymysql/connections.py
index <HASH>..<HASH> 100644
--- a/pymysql/connections.py
+++ b/pymysql/connections.py
@@ -35,7 +35,8 @@ try:
import getpass
DEFAULT_USER = getpass.getuser()
del getpass
-except ImportError:
+except (ImportError, KeyError):
+ # KeyError occur... | Catch KeyError from getpass.getuser() (#<I>) KeyError occurs when there's no entry in OS database for a current user. This is quite often the case for Docker containers. | py |
diff --git a/zipline/data/treasuries.py b/zipline/data/treasuries.py
index <HASH>..<HASH> 100644
--- a/zipline/data/treasuries.py
+++ b/zipline/data/treasuries.py
@@ -14,6 +14,8 @@
# limitations under the License.
import re
+import numpy as np
+import pandas as pd
import requests
from collections import Ordered... | ENH: Add function to download <I> year treasury data to use as a benchmark | py |
diff --git a/spinoff/util/testing/actor.py b/spinoff/util/testing/actor.py
index <HASH>..<HASH> 100644
--- a/spinoff/util/testing/actor.py
+++ b/spinoff/util/testing/actor.py
@@ -229,10 +229,6 @@ def wrap_globals(globals):
# import os
# def dump_chain(g_):
- ... | Small clean up in memleak debugging code | py |
diff --git a/rope/__init__.py b/rope/__init__.py
index <HASH>..<HASH> 100644
--- a/rope/__init__.py
+++ b/rope/__init__.py
@@ -1,9 +1,9 @@
"""rope, a python refactoring library"""
INFO = __doc__
-VERSION = '0.10.7'
+VERSION = '0.11.0'
COPYRIGHT = """\
-Copyright (C) 2015-2016 Nicholas Smith
+Copyright (C) 2015-201... | Version bump to <I> Notably, includes fix for CVE-<I>-<I>. | py |
diff --git a/stdeb/util.py b/stdeb/util.py
index <HASH>..<HASH> 100644
--- a/stdeb/util.py
+++ b/stdeb/util.py
@@ -562,7 +562,7 @@ class DebianInfo:
build_deps.extend(
get_deb_depends_from_setuptools_requires(setup_requires))
- depends = ['${python:Depends}', 'python-pkg-resources']
+ ... | remove python-pkg-resources in Depends field | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
packages=find_packages(),
scripts=['scripts/wooify'],
entry_points={'console_scripts': ['wooify = wooey.backend.command_line:bootstrap', ]},
- install_requires = ['Django>=1.6', 'django-... | update clinto version in setup.py | py |
diff --git a/ipyvolume/pylab.py b/ipyvolume/pylab.py
index <HASH>..<HASH> 100644
--- a/ipyvolume/pylab.py
+++ b/ipyvolume/pylab.py
@@ -186,7 +186,7 @@ def animate_glyphs(scatter, sequence_length=None, add=True, interval=200):
fig.animation = interval
fig.animation_exponent = 1.
play = ipywidgets.Play(min=0, max=s... | fix: one off for Play, might be fixed for ipywidgets | py |
diff --git a/tests/test_actuator.py b/tests/test_actuator.py
index <HASH>..<HASH> 100644
--- a/tests/test_actuator.py
+++ b/tests/test_actuator.py
@@ -35,7 +35,7 @@ from automate.program import Program
logger = logging.getLogger('automate.tests')
DELAYTIME = 1.0
-SLEEPTIME = 1.7 * DELAYTIME
+SLEEPTIME = 2.5 * DELAY... | Increase test sleeping time and fix class naming inside tests | py |
diff --git a/dominoes/game.py b/dominoes/game.py
index <HASH>..<HASH> 100644
--- a/dominoes/game.py
+++ b/dominoes/game.py
@@ -169,7 +169,7 @@ class Game:
>>> g.turn
1
>>> g.result
- >>> g.valid_moves()
+ >>> g.valid_moves() # True is for the left of the board, False is for the ... | clarifying boolean in moves | py |
diff --git a/shinken/dispatcher.py b/shinken/dispatcher.py
index <HASH>..<HASH> 100644
--- a/shinken/dispatcher.py
+++ b/shinken/dispatcher.py
@@ -398,7 +398,7 @@ class Dispatcher:
logger.warning('[%s] configuration dispatching error for scheduler %s', r.get_name(), sched.get_name())
... | Reverted dispatcher.py logger change. | py |
diff --git a/bashplotlib/utils/helpers.py b/bashplotlib/utils/helpers.py
index <HASH>..<HASH> 100644
--- a/bashplotlib/utils/helpers.py
+++ b/bashplotlib/utils/helpers.py
@@ -26,22 +26,24 @@ bcolours = {
colour_help = ', '.join([colour for colour in bcolours if colour != "ENDC"])
-def get_colour(colour):
+def get_... | Remove ESC char printing when not needed For "default" or unknown (e.g. None) colour do not print ESC characters. This is Useful when storing output into a text file or when running on windows cmd. | py |
diff --git a/telethon/telegram_bare_client.py b/telethon/telegram_bare_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_bare_client.py
+++ b/telethon/telegram_bare_client.py
@@ -756,8 +756,12 @@ class TelegramBareClient:
def add_update_handler(self, handler):
"""Adds an update handler (a func... | Fix and enhance "no workers set" warning | py |
diff --git a/cookiecutter/prompt.py b/cookiecutter/prompt.py
index <HASH>..<HASH> 100644
--- a/cookiecutter/prompt.py
+++ b/cookiecutter/prompt.py
@@ -209,7 +209,7 @@ def prompt_for_config(context, no_input=False):
# Second pass; handle the dictionaries.
for key, raw in context['cookiecutter'].items():
- ... | fixes prompting private rendered dicts (#<I>) * fixes private dir handling * added patch branch to CI coverage.yml * changed codecov action * get coverage artifact * get artifact 2nd try * 3rd try to get artifacts * 4th try * 5th * Squashed commit of the following: commit f0ac6a<I>ad<I>f<I>f... | py |
diff --git a/ospd/misc.py b/ospd/misc.py
index <HASH>..<HASH> 100644
--- a/ospd/misc.py
+++ b/ospd/misc.py
@@ -295,7 +295,7 @@ class ScanCollection(object):
t_prog = sum(host_progresses.values()) / total_hosts
except ZeroDivisionError:
LOGGER.error(
- "Zero division err... | Fix error log Add formatting placeholder and use correct reference to the method. | py |
diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py
index <HASH>..<HASH> 100644
--- a/IPython/html/widgets/widget.py
+++ b/IPython/html/widgets/widget.py
@@ -66,7 +66,7 @@ class CallbackDispatcher(LoggingConfigurable):
# (Un)Register the callback.
if remove and callback in cal... | Fixed typo - else -> elif | py |
diff --git a/grimoire/elk/stackexchange.py b/grimoire/elk/stackexchange.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/stackexchange.py
+++ b/grimoire/elk/stackexchange.py
@@ -55,7 +55,11 @@ class StackExchangeEnrich(Enrich):
"title_analyzed": {
"type": "string",
... | [enrich][stackexchange] Join tags strings using ',' and add them as analyzed and not analyzed | py |
diff --git a/window.py b/window.py
index <HASH>..<HASH> 100644
--- a/window.py
+++ b/window.py
@@ -135,7 +135,7 @@ class CellInfo(Subscriber):
def draw_hostility(self, c, w, p):
if not p.is_alive: return # nothing to be hostile against
own_min_mass = min(c.mass for c in p.own_cells)
- own... | Fix virus hostility and leaderboard colors | py |
diff --git a/tests/support/case.py b/tests/support/case.py
index <HASH>..<HASH> 100644
--- a/tests/support/case.py
+++ b/tests/support/case.py
@@ -238,13 +238,13 @@ class ShellTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
Execute a script with the given argument string
'''
- import s... | Platform module doesn't exist in <I> | py |
diff --git a/tests/test_filth.py b/tests/test_filth.py
index <HASH>..<HASH> 100644
--- a/tests/test_filth.py
+++ b/tests/test_filth.py
@@ -30,5 +30,16 @@ class FilthTestCase(unittest.TestCase):
text = "the end"
a_filth = SomeFilth(beg=0, end=3, text=text[:3])
b_filth = SomeFilth(beg=1, end=7,... | add more merges to execute all code paths | py |
diff --git a/benchbuild/environments/domain/declarative.py b/benchbuild/environments/domain/declarative.py
index <HASH>..<HASH> 100644
--- a/benchbuild/environments/domain/declarative.py
+++ b/benchbuild/environments/domain/declarative.py
@@ -168,8 +168,8 @@ DEFAULT_BASES: tp.Dict[str, ContainerImage] = {
... | feat(environments): add g++ to base image Some python packages require a c++ compiler now. | 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
@@ -12,7 +12,7 @@ from tabulator import topen, processors
FPATH = 'examples/data/%s'
WPATH = 'https://raw.githubusercontent.com/okfn/tabulator-py/master/ex... | renamed system topen test | py |
diff --git a/test/test_target.py b/test/test_target.py
index <HASH>..<HASH> 100644
--- a/test/test_target.py
+++ b/test/test_target.py
@@ -329,6 +329,7 @@ run:
[20]
depends: sos_step('t1')
+task:
run:
touch 20.txt
''') | Add a test for using sos_step with task | py |
diff --git a/filer/settings.py b/filer/settings.py
index <HASH>..<HASH> 100644
--- a/filer/settings.py
+++ b/filer/settings.py
@@ -20,7 +20,8 @@ FILER_STATICMEDIA_PREFIX = getattr(settings, 'FILER_STATICMEDIA_PREFIX', setting
FILER_PUBLICMEDIA_PREFIX = getattr(settings, 'FILER_PUBLICMEDIA_PREFIX', 'filer_public/')
... | it also should be possible to set FILER_PUBLICMEDIA_ROOT | py |
diff --git a/devicecloud/devicecore.py b/devicecloud/devicecore.py
index <HASH>..<HASH> 100644
--- a/devicecloud/devicecore.py
+++ b/devicecloud/devicecore.py
@@ -65,7 +65,7 @@ class Device(object):
else:
return []
- def get_connected(self, use_cached=True):
+ def is_connected(self, use_ca... | Rename get_connected() to is_connected() The README and index.rst examples call a non-existant is_connected() method on Device. Rather than blindly changing the docs to match the code, the better solution in this case is to rename get_connected() to is_connected() to match the boolean return type of the method. | py |
diff --git a/tests/unit/db/unit_t_db_base.py b/tests/unit/db/unit_t_db_base.py
index <HASH>..<HASH> 100644
--- a/tests/unit/db/unit_t_db_base.py
+++ b/tests/unit/db/unit_t_db_base.py
@@ -77,10 +77,10 @@ class UnitTestDbBase(unittest.TestCase):
if os.environ.get('DB_USER') is None:
os.env... | Fix unicode idna errors during Python <I> testing - Reduce the size of the url string used when deleting a database during couchdb tests. - This is done by shortening the username, password and database name during testing. | py |
diff --git a/djstripe/migrations/0008_2_5.py b/djstripe/migrations/0008_2_5.py
index <HASH>..<HASH> 100644
--- a/djstripe/migrations/0008_2_5.py
+++ b/djstripe/migrations/0008_2_5.py
@@ -261,4 +261,27 @@ class Migration(migrations.Migration):
"abstract": False,
},
),
+ migr... | Add missing AlterField migration directives | py |
diff --git a/trackhub/test/test_parentonoff/test_parentonoff.py b/trackhub/test/test_parentonoff/test_parentonoff.py
index <HASH>..<HASH> 100644
--- a/trackhub/test/test_parentonoff/test_parentonoff.py
+++ b/trackhub/test/test_parentonoff/test_parentonoff.py
@@ -69,5 +69,5 @@ def test_parentonoff():
results = hu... | Changing the trackDb.txt path in test_parentonoff.py | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -19,7 +19,7 @@ test_packages = _read_requirements("requirements/tests.txt")
setup(
name='rapidpro-expressions',
- version='1.1.1',
+ version='1.1.2',
description='Python implement... | Incremented python version number | py |
diff --git a/ratcave/coordinates.py b/ratcave/coordinates.py
index <HASH>..<HASH> 100644
--- a/ratcave/coordinates.py
+++ b/ratcave/coordinates.py
@@ -245,23 +245,23 @@ class Scale(Coordinates):
@property
def y(self):
- return self[0]
+ return self[1]
@y.setter
def y(self, value):
... | bugfix: scale now works properly. | py |
diff --git a/umap/sparse.py b/umap/sparse.py
index <HASH>..<HASH> 100644
--- a/umap/sparse.py
+++ b/umap/sparse.py
@@ -502,7 +502,7 @@ sparse_named_distances = {
'minkowski': sparse_minkowski,
# Other distances
'canberra': sparse_canberra,
- 'braycurtis': sparse_bray_curtis,
+ # 'braycurtis': spars... | Need n_features to match -- Fix up naming of sparse distances to match sklearn. | py |
diff --git a/examples/py/cli.py b/examples/py/cli.py
index <HASH>..<HASH> 100644
--- a/examples/py/cli.py
+++ b/examples/py/cli.py
@@ -127,7 +127,7 @@ for arg in argv.args:
# unpack json objects (mostly for extra params)
if arg[0] == '{' or arg[0] == '[':
- args.append(json.dumps(arg))
+ args.... | cli.py dumps → loads | py |
diff --git a/ibm_s3transfer/__init__.py b/ibm_s3transfer/__init__.py
index <HASH>..<HASH> 100755
--- a/ibm_s3transfer/__init__.py
+++ b/ibm_s3transfer/__init__.py
@@ -143,7 +143,7 @@ from ibm_s3transfer.exceptions import RetriesExceededError, S3UploadFailedError
__author__ = 'IBM'
-__version__ = '2.5.1'
+__version... | Update version to <I>.dev1 | py |
diff --git a/ibis/expr/analysis.py b/ibis/expr/analysis.py
index <HASH>..<HASH> 100644
--- a/ibis/expr/analysis.py
+++ b/ibis/expr/analysis.py
@@ -860,7 +860,7 @@ def flatten_predicate(expr):
return list(lin.traverse(predicate, expr, type=ir.BooleanColumn))
-def _is_ancestor(parent, child):
+def _is_ancestor(p... | chore: don't cover deprecated function | py |
diff --git a/src/collectors/diskspace/diskspace.py b/src/collectors/diskspace/diskspace.py
index <HASH>..<HASH> 100644
--- a/src/collectors/diskspace/diskspace.py
+++ b/src/collectors/diskspace/diskspace.py
@@ -232,8 +232,11 @@ class DiskSpaceCollector(diamond.collector.Collector):
for unit in self.confi... | Fixed ZeroDivisionError when blocks_free is 0 | py |
diff --git a/tests/test_client_channel.py b/tests/test_client_channel.py
index <HASH>..<HASH> 100644
--- a/tests/test_client_channel.py
+++ b/tests/test_client_channel.py
@@ -1,5 +1,5 @@
import asyncio
-from unittest.mock import patch
+from unittest.mock import patch, ANY
import pytest
@@ -35,4 +35,4 @@ async def... | Fixed Python <I> compatibility in tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ except ImportError:
version_py = os.path.join(os.path.dirname(__file__), 'metaseq', 'version.py')
version = open(version_py).read().split('=')[-1].strip().replace('"','')
-requirements = os.path.join(os.path... | list of string requirements in setup.py | py |
diff --git a/pluggy/hooks.py b/pluggy/hooks.py
index <HASH>..<HASH> 100644
--- a/pluggy/hooks.py
+++ b/pluggy/hooks.py
@@ -315,3 +315,9 @@ class HookImpl(object):
self.opts = hook_impl_opts
self.plugin_name = plugin_name
self.__dict__.update(hook_impl_opts)
+
+ def __repr__(self):
+ ... | Add HookImpl.__repr__ This is helpful when debugging hooks being called. Example: > <HookImpl plugin_name='testmon', plugin_file='/path/to/plugin.py'> | py |
diff --git a/opentracing/span.py b/opentracing/span.py
index <HASH>..<HASH> 100644
--- a/opentracing/span.py
+++ b/opentracing/span.py
@@ -136,7 +136,7 @@ class Span(object):
span.log_kv({
"event": "time to first byte",
- "packet_size": packet.size()})
+ "pa... | Delegate from deprecated methods by default | py |
diff --git a/temperusb/cli.py b/temperusb/cli.py
index <HASH>..<HASH> 100644
--- a/temperusb/cli.py
+++ b/temperusb/cli.py
@@ -33,7 +33,7 @@ def main():
usage()
sys.exit()
else:
- assert False, "unhandled option"
+ raise RuntimeError("Unhandled option '%s'" % o)
... | Replace assert with RuntimeError() Asserts get optimised out, so using an exception is safer. | 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
@@ -85,9 +85,9 @@ class RedisDriver(BaseDriver):
if not session_id:
... | Expanded variable names for better readability | py |
diff --git a/moto/ec2/models/key_pairs.py b/moto/ec2/models/key_pairs.py
index <HASH>..<HASH> 100644
--- a/moto/ec2/models/key_pairs.py
+++ b/moto/ec2/models/key_pairs.py
@@ -1,3 +1,4 @@
+from moto.core import BaseModel
from ..exceptions import (
FilterNotImplementedError,
InvalidKeyPairNameError,
@@ -12,7 +... | [dashboard] Fix KeyPair tracking (#<I>) | py |
diff --git a/buildbot/slave/commands/vcs.py b/buildbot/slave/commands/vcs.py
index <HASH>..<HASH> 100644
--- a/buildbot/slave/commands/vcs.py
+++ b/buildbot/slave/commands/vcs.py
@@ -1026,8 +1026,21 @@ class Git(SourceBase):
return self.doVCUpdate()
def doVCFull(self):
- os.makedirs(self._fullSrc... | Git: be shallow on an initial clone. Only if the user did not specify a particular revision. Does not seem to effect CPU load, but less data needs to be transferred. | py |
diff --git a/pypot/sensor/camera/__init__.py b/pypot/sensor/camera/__init__.py
index <HASH>..<HASH> 100644
--- a/pypot/sensor/camera/__init__.py
+++ b/pypot/sensor/camera/__init__.py
@@ -3,11 +3,6 @@ from ...robot.controller import SensorsController
from .dummy import DummyCamera
-class CameraController(SensorsCon... | Remove some unused deprecated code. | py |
diff --git a/src/hszinc/parser.py b/src/hszinc/parser.py
index <HASH>..<HASH> 100644
--- a/src/hszinc/parser.py
+++ b/src/hszinc/parser.py
@@ -6,7 +6,7 @@
# vim: set ts=4 sts=4 et tw=78 sw=4 si:
from grid import Grid
-from metadata import Item, ItemPair
+from metadata import Item, ItemPair, MetadataObject
from gra... | parser: Represent columns and metadata as MetadataObjects | py |
diff --git a/api_gen/api_gen.py b/api_gen/api_gen.py
index <HASH>..<HASH> 100755
--- a/api_gen/api_gen.py
+++ b/api_gen/api_gen.py
@@ -11,7 +11,11 @@ import itertools
import inflection
from bs4 import BeautifulSoup
-# $ wget -mk http://www.developer.zendesk.com/
+# Unless you're really going to hack on the API gene... | add warning about wgetting the dev site | py |
diff --git a/pyrainbird/__init__.py b/pyrainbird/__init__.py
index <HASH>..<HASH> 100644
--- a/pyrainbird/__init__.py
+++ b/pyrainbird/__init__.py
@@ -75,8 +75,10 @@ class RainbirdController:
self.logger.warning("Request resulted in no response")
return 0
- def startIrrigation(self,zone,m... | configurable retry/retry sleep time | py |
diff --git a/sgf.py b/sgf.py
index <HASH>..<HASH> 100644
--- a/sgf.py
+++ b/sgf.py
@@ -129,9 +129,13 @@ class Node:
class NodeIterator:
+
def __init__(self, game_tree):
self.node = game_tree.nodes[0]
+ def __iter__(self):
+ return self
+
def next(self):
if self.node:
... | try to get iterator working in Python 3 | py |
diff --git a/tests/test-utils.py b/tests/test-utils.py
index <HASH>..<HASH> 100644
--- a/tests/test-utils.py
+++ b/tests/test-utils.py
@@ -13,6 +13,9 @@ import shutil
#
class TestUtilsClass:
+ def cmp(self, a, b):
+ return (a > b) - (a < b)
+
#
# Unit tests for build_region_list()
#
@@ -116... | Implement cmp() method for Python3 support in tests | py |
diff --git a/ginga/tests/test_cmap.py b/ginga/tests/test_cmap.py
index <HASH>..<HASH> 100644
--- a/ginga/tests/test_cmap.py
+++ b/ginga/tests/test_cmap.py
@@ -44,8 +44,8 @@ class TestCmap(object):
count = count + 1
expected = count
- actual = len(ginga.cmap.cmaps)
- assert expe... | Fix colormap test failures when matplotlib is installed | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,13 +14,13 @@ import sys, os
import sphinx_rtd_theme
-import more_itertools
-
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. ... | fix local docs build change the location of import to better build docs locally | py |
diff --git a/sos/sos_executor.py b/sos/sos_executor.py
index <HASH>..<HASH> 100755
--- a/sos/sos_executor.py
+++ b/sos/sos_executor.py
@@ -974,7 +974,7 @@ class Base_Executor:
if not procs or all(x[2]._status == 'failed' for x in procs):
break
- elif not env.__wait... | Fix immature exit caused by -w option #<I> | py |
diff --git a/tests/unit/test_stream/test_buffer.py b/tests/unit/test_stream/test_buffer.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_stream/test_buffer.py
+++ b/tests/unit/test_stream/test_buffer.py
@@ -112,7 +112,7 @@ def test_sort_every_push():
def test_push_all():
"""Bulk push is slightly more efficien... | stream.buffer.RecordBuffer fails to sort some records Modified unit test demonstrates the issue with heap_item function. The total ordering (created_at, sequence_number, clock) was using lexicographical sorting of sequence_number, which comes in as a string and not an integer. Therefore the record with sequence numb... | py |
diff --git a/umap/umap_.py b/umap/umap_.py
index <HASH>..<HASH> 100644
--- a/umap/umap_.py
+++ b/umap/umap_.py
@@ -806,6 +806,8 @@ def optimize_layout(
grad_coeff /= (0.001 + dist_squared) * (
a * pow(dist_squared, b) + 1
)
+ ... | Fix for issue #<I> -- don't negative sample yourself | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,15 @@ except ImportError:
from distutils.core import setup
import autopep8
+# Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error
+# in multiprocessing/util.py _exit_function when runnin... | Make `python setup.py test` work. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -186,7 +186,7 @@ autodoc_default_options = {
'undoc-members': None,
'private-members': None,
'inherited-members': None,
- 'special-members': '__enter__, __exit__, _... | add __call__ to special members | py |
diff --git a/salt/modules/seed.py b/salt/modules/seed.py
index <HASH>..<HASH> 100644
--- a/salt/modules/seed.py
+++ b/salt/modules/seed.py
@@ -57,7 +57,8 @@ def prep_bootstrap(mpt):
fp_ = os.path.join(fpd_, os.path.basename(bs_))
# Copy script into tmp
shutil.copy(bs_, fp_)
- return fp_
+ tmppath =... | Execute choot on the correct path | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -24,21 +24,14 @@ def runtests():
if not settings.configured:
settings.configure(**DEFAULT_SETTINGS)
- # Compatibility with Django 1.7's stricter initialization
- if hasattr(django, 'setup'):
-... | Remove compatibility code in runtests.py file | py |
diff --git a/girder/utility/config.py b/girder/utility/config.py
index <HASH>..<HASH> 100644
--- a/girder/utility/config.py
+++ b/girder/utility/config.py
@@ -43,7 +43,7 @@ def _loadConfigsByPrecedent():
configPaths.append(
os.path.join(constants.ROOT_DIR, 'girder', 'conf', 'girder.local.cfg'))
confi... | Fixing missing / in config loader. | py |
diff --git a/salt/cloud/clouds/vmware.py b/salt/cloud/clouds/vmware.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/vmware.py
+++ b/salt/cloud/clouds/vmware.py
@@ -3641,6 +3641,10 @@ def remove_snapshot(name, kwargs=None, call=None):
snapshot_name = kwargs.get('snapshot_name') if kwargs and 'snapshot_name... | Add ability to delete snapshot by name from all vms | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -38,7 +38,7 @@ CACHES = {
},
'memcached': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
- 'LOCATION': 'unix:/tmp/memcached.sock',
+ 'LOCATION': '127.0.0.1:1121... | Uses an address instead of a UNIX socket for memcached. | py |
diff --git a/niworkflows/interfaces/registration.py b/niworkflows/interfaces/registration.py
index <HASH>..<HASH> 100644
--- a/niworkflows/interfaces/registration.py
+++ b/niworkflows/interfaces/registration.py
@@ -372,7 +372,7 @@ class EstimateReferenceImage(SimpleInterface):
def _run_interface(self, runtime):
... | FIX: Return runtime when sbref is available | py |
diff --git a/script/strip-binaries.py b/script/strip-binaries.py
index <HASH>..<HASH> 100755
--- a/script/strip-binaries.py
+++ b/script/strip-binaries.py
@@ -8,7 +8,7 @@ from lib.util import execute, get_out_dir
LINUX_BINARIES_TO_STRIP = [
'electron',
- 'chrome_sandbox',
+ 'chrome-sandbox',
'libffmpeg.so',
... | fix: strip chrome-sandbox typo (#<I>) | py |
diff --git a/flask_manager/controller.py b/flask_manager/controller.py
index <HASH>..<HASH> 100644
--- a/flask_manager/controller.py
+++ b/flask_manager/controller.py
@@ -49,6 +49,15 @@ class Controller(tree.Tree):
per_page = 100
form_class = None
+ def __init__(self, *args, **kwargs):
+ attribute... | a clean way to overwrite class attributes at __init__ | py |
diff --git a/user_agents/parsers.py b/user_agents/parsers.py
index <HASH>..<HASH> 100644
--- a/user_agents/parsers.py
+++ b/user_agents/parsers.py
@@ -76,7 +76,7 @@ def parse_version(major=None, minor=None, patch=None, patch_minor=None):
patch = verify_attribute(patch)
patch_minor = verify_attribute(patch_min... | fix filter issue for python3 | py |
diff --git a/yaml2rst.py b/yaml2rst.py
index <HASH>..<HASH> 100644
--- a/yaml2rst.py
+++ b/yaml2rst.py
@@ -31,7 +31,8 @@ def convert(lines):
state = STATE_TEXT
last_text_line = ''
for line in lines:
- if line.startswith('# '):
+ line = line.rstrip()
+ if line.startswith('# ') or line... | Fix empty text-lines (containing of a `#` only). | py |
diff --git a/registration/models.py b/registration/models.py
index <HASH>..<HASH> 100644
--- a/registration/models.py
+++ b/registration/models.py
@@ -10,6 +10,11 @@ from django.template.loader import render_to_string
from django.utils.hashcompat import sha_constructor
from django.utils.translation import ugettext_la... | Add support for timezones in Django<I> | py |
diff --git a/redis-monitor/plugins/stop_monitor.py b/redis-monitor/plugins/stop_monitor.py
index <HASH>..<HASH> 100644
--- a/redis-monitor/plugins/stop_monitor.py
+++ b/redis-monitor/plugins/stop_monitor.py
@@ -53,6 +53,7 @@ class StopMonitor(KafkaBaseMonitor):
extras['appid'] = appid
extras['crawlid'... | Add uuid to stop response | py |
diff --git a/mapchete/log.py b/mapchete/log.py
index <HASH>..<HASH> 100644
--- a/mapchete/log.py
+++ b/mapchete/log.py
@@ -99,6 +99,7 @@ def set_log_level(loglevel):
def setup_logfile(logfile):
file_handler = logging.FileHandler(logfile)
file_handler.setFormatter(formatter)
+ file_handler.addFilter(KeyVal... | add missing secrets filter to logfile output | py |
diff --git a/panflute/table_elements.py b/panflute/table_elements.py
index <HASH>..<HASH> 100644
--- a/panflute/table_elements.py
+++ b/panflute/table_elements.py
@@ -135,9 +135,10 @@ class Table(Block):
@caption.setter
def caption(self, value):
- self._caption = check_type(value, Caption)
- s... | allow Table() elements to have no caption | py |
diff --git a/app.py b/app.py
index <HASH>..<HASH> 100644
--- a/app.py
+++ b/app.py
@@ -223,7 +223,8 @@ def mturkroute():
raise ExperimentError('hit_assign_worker_id_not_set_in_mturk')
# Person has accepted the HIT, entering them into the database.
hitId = request.args['hitId']
- assignmentId = req... | Fix non-unique assignmentId AMT will sometimes give assignments that have been released to a new worker using the same assignment id. This turns the assignmentId field in the database into a unique key that combines assignment and worker id to avoid duplicate entry errors. | py |
diff --git a/zipline/pipeline/factors/statistical.py b/zipline/pipeline/factors/statistical.py
index <HASH>..<HASH> 100644
--- a/zipline/pipeline/factors/statistical.py
+++ b/zipline/pipeline/factors/statistical.py
@@ -75,6 +75,8 @@ class RollingPearson(_RollingCorrelation):
Most users should call Factor.pearsonr ... | ENH: Mark statistical terms as window_safe. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ with open('neologdn.cpp', 'r', encoding='utf8') as f:
r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
extra_compile_args = ["-std=c++11"]
-if platform.system() == "Darwin":
+if platform.syst... | -stdlib=libc++ doesn't use when the later than macOS Mavericks | py |
diff --git a/dataviews/ipython.py b/dataviews/ipython.py
index <HASH>..<HASH> 100644
--- a/dataviews/ipython.py
+++ b/dataviews/ipython.py
@@ -921,8 +921,10 @@ def update_matplotlib_rc():
matplotlib.rcParams.update(rc)
-
-message = """Welcome to the Imagen IPython extension! (http://ioam.github.io/imagen/)"""
... | Updated the extension's welcome message with list of available magics | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@ setup(
keywords=['mercurial', 'git', 'diff', 'highlight'],
author='Takeshi Komiya',
author_email='i.tkomiya at gmail.com',
- url='http://blockdiag.com/',
+ url='https://bitbucket.org/tk0miya... | Fix url in setup.py | py |
diff --git a/examples/python_example.py b/examples/python_example.py
index <HASH>..<HASH> 100644
--- a/examples/python_example.py
+++ b/examples/python_example.py
@@ -11,6 +11,17 @@
# Sends statistics to the stats daemon over UDP
class Statsd(object):
+ def __init__(self, host=localhost, port=8125):
+ sel... | Update examples/python_example.py Give sample client a proper initializer, and give it a basic example metric to run if the script is called itself. | py |
diff --git a/stripy-src/stripy/spherical.py b/stripy-src/stripy/spherical.py
index <HASH>..<HASH> 100755
--- a/stripy-src/stripy/spherical.py
+++ b/stripy-src/stripy/spherical.py
@@ -1039,8 +1039,8 @@ class sTriangulation(object):
def centroid_refine_triangulation_by_triangles(self, triangles):
"""
- ... | Correct the docstrings for the centroid_refine_triangulation_by_triangles and centroid_refine_triangulation_by_vertices methods. | py |
diff --git a/seed_message_sender/__init__.py b/seed_message_sender/__init__.py
index <HASH>..<HASH> 100644
--- a/seed_message_sender/__init__.py
+++ b/seed_message_sender/__init__.py
@@ -1,2 +1,2 @@
-__version__ = '0.9.8'
+__version__ = '0.9.9'
VERSION = __version__ | Bumped version to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,6 +9,7 @@ from codecs import open
name = "captain"
kwargs = dict(
+ name=name,
description='python cli scripts for humans',
keywords="cli console",
author='Jay Marcyes', | ugh, setup.py bug has bitten me again | py |
diff --git a/eventsourcing/application.py b/eventsourcing/application.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/application.py
+++ b/eventsourcing/application.py
@@ -97,6 +97,8 @@ TApplication = TypeVar("TApplication", bound=Application)
class Repository:
+ """Reconstructs aggregates from events in eve... | Added docstrings for Repository class. | py |
diff --git a/mousedb/veterinary/tests.py b/mousedb/veterinary/tests.py
index <HASH>..<HASH> 100644
--- a/mousedb/veterinary/tests.py
+++ b/mousedb/veterinary/tests.py
@@ -42,7 +42,7 @@ class VeterinaryViewTests(TestCase):
This view uses a user with superuser permissions so does not test the permission levels... | Added trailing slash to test response, part of issue #<I> | py |
diff --git a/i3ipc/i3ipc.py b/i3ipc/i3ipc.py
index <HASH>..<HASH> 100644
--- a/i3ipc/i3ipc.py
+++ b/i3ipc/i3ipc.py
@@ -639,7 +639,8 @@ class Connection(object):
timer = None
if timeout:
- timer = Timer(timeout, self.main_quit).start()
+ timer = Timer(timeout, se... | Fix: timer is always None Timer.start() returns None. 'timer' was always None and never got cancelled. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,7 @@ setup(
description='A Pylint plugin to help Pylint understand the Django web framework',
version='0.9.2',
packages=find_packages(),
+ include_package_data=True,
install_requires=[
... | Make wheel take in account files in Manifest.ini | py |
diff --git a/tcod/libtcodpy.py b/tcod/libtcodpy.py
index <HASH>..<HASH> 100644
--- a/tcod/libtcodpy.py
+++ b/tcod/libtcodpy.py
@@ -734,7 +734,7 @@ def console_map_string_to_font(s, fontCharX, fontCharY):
Args:
s (AnyStr): A string of character codes to map to new values.
- The null ch... | escape '\' in docstring to remove literal null-byte | py |
diff --git a/extended_choices/__init__.py b/extended_choices/__init__.py
index <HASH>..<HASH> 100644
--- a/extended_choices/__init__.py
+++ b/extended_choices/__init__.py
@@ -2,7 +2,7 @@
from __future__ import unicode_literals
-from .choices import Choices
+from .choices import Choices, OrderedChoices
__author_... | Make OrderedChoices available at the package root | py |
diff --git a/PyFunceble/cli/processes/base.py b/PyFunceble/cli/processes/base.py
index <HASH>..<HASH> 100644
--- a/PyFunceble/cli/processes/base.py
+++ b/PyFunceble/cli/processes/base.py
@@ -54,7 +54,6 @@ import functools
import multiprocessing
import os
import queue
-from multiprocessing import Manager
from typing... | Handle the case the manager is not given. Indeed, before this patch, we required the end-user to give us the manager to work with. As of now, if none is given, the process manager will generation a new one. | py |
diff --git a/tasks.py b/tasks.py
index <HASH>..<HASH> 100644
--- a/tasks.py
+++ b/tasks.py
@@ -44,7 +44,7 @@ def echo_response_async(message):
text='Lets have a conversation'))
activity = Activity(fill=message,
- conversation={'... | Added respond to conversation after the create_conversation | py |
diff --git a/scout/server/blueprints/cases/controllers.py b/scout/server/blueprints/cases/controllers.py
index <HASH>..<HASH> 100644
--- a/scout/server/blueprints/cases/controllers.py
+++ b/scout/server/blueprints/cases/controllers.py
@@ -244,7 +244,7 @@ def case(store, institute_obj, case_obj):
data = {
... | Return list of other causatives in controller | py |
diff --git a/mautrix/util/async_db/upgrade.py b/mautrix/util/async_db/upgrade.py
index <HASH>..<HASH> 100644
--- a/mautrix/util/async_db/upgrade.py
+++ b/mautrix/util/async_db/upgrade.py
@@ -109,8 +109,8 @@ class UpgradeTable:
return
async with db.acquire() as conn:
- for new_version ... | Make loop a bit more readable | py |
diff --git a/treeherder/middleware.py b/treeherder/middleware.py
index <HASH>..<HASH> 100644
--- a/treeherder/middleware.py
+++ b/treeherder/middleware.py
@@ -19,7 +19,7 @@ CSP_DIRECTIVES = [
"font-src 'self' https://fonts.gstatic.com",
# The `data:` is required for images that were inlined by webpack's url-l... | Bug <I> - Update CSP connect-src (#<I>) I added taskcluster.net with leading wildcard, but we also need taskcluster-artifacts.net for the redirect | py |
diff --git a/python_modules/dagster-graphql/dagster_graphql/schema/config_types.py b/python_modules/dagster-graphql/dagster_graphql/schema/config_types.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster-graphql/dagster_graphql/schema/config_types.py
+++ b/python_modules/dagster-graphql/dagster_graphql/schema/c... | Fix master because of uncovered GraphQL Summary: I made a booboo and forgot to load dagit after one change and paid for it. This codepath is apparently uncovered by BK tests. Test Plan: Load dagit. No errors Reviewers: nate Reviewed By: nate Differential Revision: <URL> | py |
diff --git a/nrefocus/_version.py b/nrefocus/_version.py
index <HASH>..<HASH> 100644
--- a/nrefocus/_version.py
+++ b/nrefocus/_version.py
@@ -71,14 +71,14 @@ versionfile = join(dirname(abspath(__file__)), "_version_save.py")
## Determine the accurate version
longversion = ""
-# git describe
+# 1. git describe
try... | update nrefocus/_version.py with git_cast_file2repos.py | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.