diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/waspy/transports/rabbitmqtransport.py b/waspy/transports/rabbitmqtransport.py
index <HASH>..<HASH> 100644
--- a/waspy/transports/rabbitmqtransport.py
+++ b/waspy/transports/rabbitmqtransport.py
@@ -257,6 +257,9 @@ class RabbitMQClientTransport(ClientTransportABC, RabbitChannelMixIn):
headers = pro... | Fix transport from giving bytes on a none body | py |
diff --git a/src/canmatrix/canmatrix.py b/src/canmatrix/canmatrix.py
index <HASH>..<HASH> 100644
--- a/src/canmatrix/canmatrix.py
+++ b/src/canmatrix/canmatrix.py
@@ -1817,8 +1817,8 @@ class CanMatrix(object):
for signal in frame.signals:
if signal_define in signal.attributes:
... | Fixing Issue#<I> :: Custom Signal Attributes are removed due to wrong indent | py |
diff --git a/umap/layouts.py b/umap/layouts.py
index <HASH>..<HASH> 100644
--- a/umap/layouts.py
+++ b/umap/layouts.py
@@ -507,7 +507,7 @@ def optimize_layout_inverse(
)
w_l = weight[i]
- grad_coeff = -(1 / (w_l * sigmas[j] + 1e-6))
+ grad_coeff = -(1 / ... | change knn_dist indexing, fixes #<I> for inverse_transform | py |
diff --git a/aegean.py b/aegean.py
index <HASH>..<HASH> 100755
--- a/aegean.py
+++ b/aegean.py
@@ -203,7 +203,7 @@ class SimpleSource():
A string representation of the name of this source
which is always just an empty string
"""
- return ''
+ return self.__str__()
def as_... | find_sources_in_image now accepts mask=region as either a filename or an AegeanTools.regions.Region object | py |
diff --git a/quark/db/models.py b/quark/db/models.py
index <HASH>..<HASH> 100644
--- a/quark/db/models.py
+++ b/quark/db/models.py
@@ -290,7 +290,7 @@ class SecurityGroup(BASEV2, models.HasId):
class Port(BASEV2, models.HasTenant, models.HasId):
__tablename__ = "quark_ports"
id = sa.Column(sa.String(36), pri... | Added indices for ports.name and tenant_id Addresses a portion of #<I> by adding indices on quark_ports.name and tenant_id based on some temporary tables we see being written to disk during our scale testing. While I can't guarantee these are the particular tables causing the issues (our version of MySQL only logs tha... | py |
diff --git a/satpy/tests/test_helper_functions.py b/satpy/tests/test_helper_functions.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/test_helper_functions.py
+++ b/satpy/tests/test_helper_functions.py
@@ -230,7 +230,6 @@ class TestHelpers(unittest.TestCase):
"""Get lonlats from geos."""
geos_area = ... | Add some randomness in helper_function tests | py |
diff --git a/enki/__init__.py b/enki/__init__.py
index <HASH>..<HASH> 100644
--- a/enki/__init__.py
+++ b/enki/__init__.py
@@ -191,10 +191,9 @@ class ServerTaskRunsLoader(object):
def load(self):
self.task_runs = {}
- self.task_runs_file = []
self._load_from_server()
- return (s... | If loaded from server, set file_tasks to None | py |
diff --git a/client/wdb/ext.py b/client/wdb/ext.py
index <HASH>..<HASH> 100644
--- a/client/wdb/ext.py
+++ b/client/wdb/ext.py
@@ -106,7 +106,12 @@ def wdb_tornado(application, start_disabled=False):
def get(self):
Wdb.enabled = True
self.write('Wdb is now on')
- application.add_ha... | Allow turning wdb off too | py |
diff --git a/virtualchain/lib/blockchain/session.py b/virtualchain/lib/blockchain/session.py
index <HASH>..<HASH> 100644
--- a/virtualchain/lib/blockchain/session.py
+++ b/virtualchain/lib/blockchain/session.py
@@ -38,7 +38,12 @@ import threading
import time
import socket
-from ..config import DEBUG
+try:
+ from ... | try/except to make relative imports work | py |
diff --git a/twarc/decorators.py b/twarc/decorators.py
index <HASH>..<HASH> 100644
--- a/twarc/decorators.py
+++ b/twarc/decorators.py
@@ -175,14 +175,17 @@ class cli_api_error():
try:
return self.f(*args, **kwargs)
except HTTPError as e:
- result = e.response.json()
- ... | Log error message parse failures If errors from the Twitter API are not JSON they can cause strange errors. Instead we should catch these and log what was received from Twitter instead of JSON. Refs #<I> | py |
diff --git a/taskw/warrior.py b/taskw/warrior.py
index <HASH>..<HASH> 100644
--- a/taskw/warrior.py
+++ b/taskw/warrior.py
@@ -498,12 +498,15 @@ class TaskWarriorShellout(TaskWarriorBase):
).communicate()[0]
return LooseVersion(taskwarrior_version.decode())
- def sync(self):
+ def sync(self, i... | Allow passing "init" arg to sync command | py |
diff --git a/doan/dataset.py b/doan/dataset.py
index <HASH>..<HASH> 100644
--- a/doan/dataset.py
+++ b/doan/dataset.py
@@ -149,8 +149,12 @@ class LinesIterator:
def r_num(obj):
"""Read list of numbers."""
+ if isinstance(obj, (list, tuple)):
+ it = iter
+ else:
+ it = LinesIterator
data... | Load Dataset from list and tuple | py |
diff --git a/zstandard/__init__.py b/zstandard/__init__.py
index <HASH>..<HASH> 100644
--- a/zstandard/__init__.py
+++ b/zstandard/__init__.py
@@ -57,6 +57,10 @@ elif _module_policy == "cffi_fallback":
from .cffi import *
backend = "cffi"
+elif _module_policy == "rust":
+ from zstandard_oxidized ... | zstandard: support a "rust" import policy This will allow us to load the Rust-based extension module. This appears to work. Although the extension defines nothing of value so it is practically worthless. Although it is useful to be able to load the extension. | py |
diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py
index <HASH>..<HASH> 100644
--- a/xarray/tests/test_backends.py
+++ b/xarray/tests/test_backends.py
@@ -1578,6 +1578,7 @@ class GenericNetCDFDataTest(CFEncodedDataTest, NetCDF3Only, TestCase):
with raises_regex(ValueError, 'can only rea... | xfail test_cross_engine_read_write_netcdf3 (#<I>) This should fix the test suite on Travis-CI again. | py |
diff --git a/holoviews/plotting/__init__.py b/holoviews/plotting/__init__.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/__init__.py
+++ b/holoviews/plotting/__init__.py
@@ -294,7 +294,9 @@ Palette.colormaps.update({cm: plt.get_cmap(cm) for cm in plt.cm.datad})
# Register default Element options
Store.regist... | Added additional style option aliases | py |
diff --git a/validators/__init__.py b/validators/__init__.py
index <HASH>..<HASH> 100644
--- a/validators/__init__.py
+++ b/validators/__init__.py
@@ -7,10 +7,10 @@ file that comes with the source code, or http://www.gnu.org/licenses/gpl.txt.
"""
from .chain import ReturnEarly, chainable, make_chain
-from .validato... | Expose all built-in validators | py |
diff --git a/kubernetes/K8sPod.py b/kubernetes/K8sPod.py
index <HASH>..<HASH> 100644
--- a/kubernetes/K8sPod.py
+++ b/kubernetes/K8sPod.py
@@ -22,6 +22,18 @@ class K8sPod(K8sPodBasedObject):
if self.config.pull_secret is not None:
self.model.add_image_pull_secrets(name=self.config.pull_secret)
+... | K8sPod: ensure ObjectMeta and Spec are refreshed after create / update | py |
diff --git a/tinyscript/__info__.py b/tinyscript/__info__.py
index <HASH>..<HASH> 100644
--- a/tinyscript/__info__.py
+++ b/tinyscript/__info__.py
@@ -4,7 +4,8 @@
"""
-__author__ = "Alexandre D'Hondt"
-__version__ = "1.8.1"
-__copyright__ = "AGPLv3 (http://www.gnu.org/licenses/agpl.html)"
+__author__ = "Alexand... | Refined __info__ | py |
diff --git a/pykube/objects.py b/pykube/objects.py
index <HASH>..<HASH> 100644
--- a/pykube/objects.py
+++ b/pykube/objects.py
@@ -166,6 +166,7 @@ class Pod(NamespacedAPIObject):
condition = next((c for c in cs if c["type"] == "Ready"), None)
return condition is not None and condition["status"] == "Tr... | Adds missing white line for passing travis test. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ class VerifyVersionCommand(install):
def run(self):
tag = os.getenv('GIT_TAG')
- if tag != __version__:
+ if __version__ not in tag:
info = "Git tag: {0} does not match... | Added new way of verifying the tag since there is new extra info in the GIT_TAG env var. | py |
diff --git a/geopy/geocoders/bing.py b/geopy/geocoders/bing.py
index <HASH>..<HASH> 100644
--- a/geopy/geocoders/bing.py
+++ b/geopy/geocoders/bing.py
@@ -55,6 +55,18 @@ class Bing(Geocoder):
url = "%s?%s" % (self.url, urlencode(params))
return self.geocode_url(url, exactly_one)
+ def reverse(sel... | add reverse geocode method to bing geocoder | py |
diff --git a/salt/states/grains.py b/salt/states/grains.py
index <HASH>..<HASH> 100644
--- a/salt/states/grains.py
+++ b/salt/states/grains.py
@@ -68,7 +68,7 @@ def list_present(name, value):
value
The value is present in the list type grain
- The grain should be `list type<http://docs.python.org/2/tu... | fixed a typo about reST links | py |
diff --git a/halo/halo.py b/halo/halo.py
index <HASH>..<HASH> 100644
--- a/halo/halo.py
+++ b/halo/halo.py
@@ -312,9 +312,6 @@ class Halo(object):
-------
self
"""
- if text is not None:
- self._text = text.strip()
-
if not self._enabled or self._spinner_id is not N... | Remove unnecessary text strip Return correct frame when stopping and persisting | py |
diff --git a/MAVProxy/modules/mavproxy_fakegps.py b/MAVProxy/modules/mavproxy_fakegps.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_fakegps.py
+++ b/MAVProxy/modules/mavproxy_fakegps.py
@@ -17,6 +17,7 @@ class FakeGPSModule(mp_module.MPModule):
(... | fakegps: added yaw | py |
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/base.py
+++ b/openquake/calculators/base.py
@@ -66,6 +66,8 @@ rlz_dt = numpy.dtype([('uid', hdf5.vstr), ('model', hdf5.vstr),
logversion = {True}
PRECALC_MAP = dict(
+ classical=['ps... | Added classical and disaggregation to the PRECALC_MAP | py |
diff --git a/salt/utils/process.py b/salt/utils/process.py
index <HASH>..<HASH> 100644
--- a/salt/utils/process.py
+++ b/salt/utils/process.py
@@ -806,7 +806,7 @@ def default_signals(*signals):
old_signals = {}
for signum in signals:
try:
- old_signals[signum] = signal.getsignal(signum)
+ ... | Fix <I> error when using wheel_async When `wheel_async` is used, the job completes, but for the same reason we couldn't replace the signal in the first place, we fail to restore it after control is returned to the context manager. This fixes this by only adding the signal data to the `old_signals` dict when we succes... | py |
diff --git a/openquake/hazardlib/gsim/base.py b/openquake/hazardlib/gsim/base.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/gsim/base.py
+++ b/openquake/hazardlib/gsim/base.py
@@ -444,7 +444,15 @@ class GMPE(GroundShakingIntensityModel):
def compute(self, ctx, imts, mean, sig, tau, phi):
"""
... | Documented the base compute method [ci skip] | 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
@@ -91,13 +91,13 @@ class TestCIonly():
def setup(self):
"""Runs before every method to create a clean testing setup."""
- ci_env = (os.en... | BUG: var structure in tests | py |
diff --git a/patroni/ha.py b/patroni/ha.py
index <HASH>..<HASH> 100644
--- a/patroni/ha.py
+++ b/patroni/ha.py
@@ -282,7 +282,7 @@ class Ha(object):
sleep(2) # Give a time to somebody to promote
cluster = self.dcs.get_cluster()
node_to_follow = self._get_node_to_follow(cluster)
-... | state_handler.follow needs to know cluster.leader | py |
diff --git a/peyotl/test/test_evaluate_tree.py b/peyotl/test/test_evaluate_tree.py
index <HASH>..<HASH> 100644
--- a/peyotl/test/test_evaluate_tree.py
+++ b/peyotl/test/test_evaluate_tree.py
@@ -15,7 +15,7 @@ try:
do_test = True
except:
_LOG.debug('[ott]/parent setting could not be read correctly.')
-@un... | skipping a test of an experimental method | py |
diff --git a/termsandconditions/models.py b/termsandconditions/models.py
index <HASH>..<HASH> 100644
--- a/termsandconditions/models.py
+++ b/termsandconditions/models.py
@@ -11,10 +11,7 @@ import logging
LOGGER = logging.getLogger(name='termsandconditions')
-if hasattr(settings, 'DEFAULT_TERMS_SLUG'):
- DEFAUL... | Tweaked DEFAULT_TERMS_SLUG import to make it one line. | py |
diff --git a/openid/consumer/consumer.py b/openid/consumer/consumer.py
index <HASH>..<HASH> 100644
--- a/openid/consumer/consumer.py
+++ b/openid/consumer/consumer.py
@@ -530,7 +530,7 @@ class OpenIDConsumer(object):
elif mode == 'error':
error = query.get('openid.error')
if error is ... | [project @ Log the error message from the server in the consumer] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,6 @@ kwargs = dict(
'Operating System :: OS Independent',
'Topic :: Software Development :: Testing',
'Programming Language :: Python :: 2.7',
- #'Programming Language :: Python :: 3... | python3 will no longer only make a pyt3 script, it will make both pyt and pyt3 | py |
diff --git a/mtools/mloginfo/sections/clients_section.py b/mtools/mloginfo/sections/clients_section.py
index <HASH>..<HASH> 100644
--- a/mtools/mloginfo/sections/clients_section.py
+++ b/mtools/mloginfo/sections/clients_section.py
@@ -64,7 +64,7 @@ class ClientSection(BaseSection):
else:
... | Typo correction Changed from "MongoDB Internal Driver" to "MongoDB Internal Client" as it is in the logfile | py |
diff --git a/checkers/utils.py b/checkers/utils.py
index <HASH>..<HASH> 100644
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -99,6 +99,9 @@ def is_defined_before(var_node, comp_node_types=COMP_NODE_TYPES):
if ass_node.name == varname:
return True
elif isinstance(_node... | fix #<I>: pylint crash with AttributeError in a with statement without 'as', node.vars is None | py |
diff --git a/dvc/version.py b/dvc/version.py
index <HASH>..<HASH> 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -49,4 +49,4 @@ def is_dirty(dir_path):
return True
-__version__ = generate_version(base_version="0.34.2")
+__version__ = generate_version(base_version="0.35.0") | dvc: bump to <I> | py |
diff --git a/backend/reusable_pool.py b/backend/reusable_pool.py
index <HASH>..<HASH> 100644
--- a/backend/reusable_pool.py
+++ b/backend/reusable_pool.py
@@ -27,20 +27,6 @@ def get_reusable_pool(*args, **kwargs):
return get_reusable_pool(*args, **kwargs)
else:
_pool.resize(kwargs.get... | ENH remove check that _maintain_pool is in charge | py |
diff --git a/holoviews/plotting/element.py b/holoviews/plotting/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/element.py
+++ b/holoviews/plotting/element.py
@@ -35,6 +35,12 @@ class ElementPlot(Plot):
invert_yaxis = param.Boolean(default=False, doc="""
Whether to invert the plot y-axis."... | Added parameters to control subfigure labelling, and changed the defaults | py |
diff --git a/sos/plugins/general.py b/sos/plugins/general.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/general.py
+++ b/sos/plugins/general.py
@@ -98,10 +98,9 @@ class DebianGeneral(General, DebianPlugin):
self.add_copy_specs([
"/etc/debian_version",
"/etc/default",
- "... | More fixes for general.py specific to Ubuntu/Debian | py |
diff --git a/deploy/__main__.py b/deploy/__main__.py
index <HASH>..<HASH> 100644
--- a/deploy/__main__.py
+++ b/deploy/__main__.py
@@ -99,9 +99,6 @@ def main(**kwargs):
secret_registry_address = deploy_contract('SecretRegistry')
print('SecretRegistry address:', secret_registry_address)
- endp... | Fix deploy script - remove endpoint contract | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setup(
url="https://github.com/rm-hull/luma.core",
download_url="https://github.com/rm-hull/luma.core/tarball/" + version,
packages=["luma.core"],
- install_requires=["pillow", "smbus2"],
+ ... | Re-add spidev & RPi.GPIO dependencies | py |
diff --git a/cmd2.py b/cmd2.py
index <HASH>..<HASH> 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -273,6 +273,7 @@ class Cmd(cmd.Cmd):
cmd.Cmd.__init__(self, *args, **kwargs)
self.history = History()
self._init_parser()
+ self.pyenvironment = {}
def do_shortcuts(self, args)... | beginning to manage multi-line py | py |
diff --git a/test_multi_ipc.py b/test_multi_ipc.py
index <HASH>..<HASH> 100644
--- a/test_multi_ipc.py
+++ b/test_multi_ipc.py
@@ -6,7 +6,7 @@ import socket
from threading import Thread
def run(port, cmds):
- HOST = ''
+ HOST = '127.0.0.1'
DISCOVER_PORT = 1213
def communicate(sock, cmd): | Change HOST to <I> for compatibility on Windows | py |
diff --git a/tests/cases/collection_test.py b/tests/cases/collection_test.py
index <HASH>..<HASH> 100644
--- a/tests/cases/collection_test.py
+++ b/tests/cases/collection_test.py
@@ -37,15 +37,6 @@ class CollectionTestCase(base.TestCase):
def setUp(self):
base.TestCase.setUp(self)
- user = {
- ... | Fix failing collection test. Fun fact: this was failing due to the assumption that the first user that we create is always an admin. I don't think this is a bad assumption, but that is why. | py |
diff --git a/kafka_consumer/check.py b/kafka_consumer/check.py
index <HASH>..<HASH> 100644
--- a/kafka_consumer/check.py
+++ b/kafka_consumer/check.py
@@ -30,7 +30,7 @@ DEFAULT_KAFKA_TIMEOUT = 5
DEFAULT_ZK_TIMEOUT = 5
DEFAULT_KAFKA_RETRIES = 3
-CONTEXT_UPPER_BOUND = 100
+CONTEXT_UPPER_BOUND = 200
class BadKafk... | [kafka_consumer] bumping up context limit upper bound. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ tests_require = [
'pydocstyle>=1.0.0',
'pytest-cov>=1.8.0',
'pytest-pep8>=1.0.6',
- 'pytest>=3.3.1',
+ 'pytest>=3.5.0',
'invenio-indexer>=1.0.0',
'invenio-search[elasticsearch6]>=1... | setup: fix pytest version Previous pytest lowest is introducing attrs==<I> Which is breaking jsonschema which requires: attrs>=<I> | py |
diff --git a/cobra/core/Model.py b/cobra/core/Model.py
index <HASH>..<HASH> 100644
--- a/cobra/core/Model.py
+++ b/cobra/core/Model.py
@@ -84,6 +84,8 @@ class Model(Object):
"""Provides a partial 'deepcopy' of the Model. All of the Metabolite, Gene,
and Reaction objects are created anew but in a fast... | add Model.repair For now this function will regenerate DictList indexes. Eventually, this function should also ensure all relationships are correctly maintained. | py |
diff --git a/pytumblr/helpers.py b/pytumblr/helpers.py
index <HASH>..<HASH> 100644
--- a/pytumblr/helpers.py
+++ b/pytumblr/helpers.py
@@ -14,9 +14,6 @@ def validate_params(valid_options, params):
if not params:
return
- if not valid_options:
- return
-
#We only allow one version of the d... | Remove valid_options skip for editing [#<I>] | py |
diff --git a/thumbnails/processors.py b/thumbnails/processors.py
index <HASH>..<HASH> 100644
--- a/thumbnails/processors.py
+++ b/thumbnails/processors.py
@@ -6,21 +6,33 @@ from da_vinci import images
def resize(image, **kwargs):
+ """
+ Resized an image based on given width and height
+ """
image.re... | Added "set_quality" image processor. | py |
diff --git a/newrpc/__init__.py b/newrpc/__init__.py
index <HASH>..<HASH> 100644
--- a/newrpc/__init__.py
+++ b/newrpc/__init__.py
@@ -0,0 +1,19 @@
+from newrpc import sending
+
+__all__ = ['call', ]
+
+CONTROL_EXCHANGE = 'rpc'
+
+
+def call(connection, context, topic, msg, timeout=None, options=None):
+ if options ... | added newrpc.call() | py |
diff --git a/cloudvolume/cloudvolume.py b/cloudvolume/cloudvolume.py
index <HASH>..<HASH> 100644
--- a/cloudvolume/cloudvolume.py
+++ b/cloudvolume/cloudvolume.py
@@ -183,7 +183,7 @@ class CloudVolume(object):
if use_https:
cloudpath = to_https_protocol(cloudpath)
- kwargs = locals()
+ kwargs = dict... | fix: actually del cls (#<I>) | py |
diff --git a/usb1.py b/usb1.py
index <HASH>..<HASH> 100644
--- a/usb1.py
+++ b/usb1.py
@@ -346,6 +346,20 @@ class USBTransfer(object):
result = string_at(transfer.buffer, transfer.length)
return result
+ def getUserData(self):
+ """
+ Retrieve user data provided on setup.
+ ... | Provide access to Transfer's user_data. Reported missing by Ben Rampling. | py |
diff --git a/src/txkube/_interface.py b/src/txkube/_interface.py
index <HASH>..<HASH> 100644
--- a/src/txkube/_interface.py
+++ b/src/txkube/_interface.py
@@ -13,16 +13,22 @@ class IObject(Interface):
``IObject`` providers model `Kubernetes objects
<https://github.com/kubernetes/community/blob/master/contribu... | Update the IObject interface definition This makes it match usage that has emerged. | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -414,12 +414,11 @@ class ClassicalCalculator(base.HazardCalculator):
g = len(gsims_by_trt[trt])
... | Less logging [skip CI] | py |
diff --git a/satsearch/search.py b/satsearch/search.py
index <HASH>..<HASH> 100644
--- a/satsearch/search.py
+++ b/satsearch/search.py
@@ -95,7 +95,7 @@ class Search(object):
""" Return Items from collection with matching ids """
col = cls.collection(collection)
items = []
- base_url =... | Update search.py Fixed a bug that the joined url did not include 'items' in the path | py |
diff --git a/testing/test_methods.py b/testing/test_methods.py
index <HASH>..<HASH> 100644
--- a/testing/test_methods.py
+++ b/testing/test_methods.py
@@ -203,7 +203,7 @@ class TestStochasticGradients(GPflowTestCase):
return model
def get_opt(self):
- learning_rate = .01
+ learning_rate = ... | Debugging travis test issues. | py |
diff --git a/sigal/settings.py b/sigal/settings.py
index <HASH>..<HASH> 100644
--- a/sigal/settings.py
+++ b/sigal/settings.py
@@ -29,7 +29,7 @@ _DEFAULT_CONFIG = {
'big_img': 0,
'bigimg_dir': 'big',
'jpg_quality': 90,
- 'exif': 1,
+ 'exif': 0,
'copyright': '',
'fileExtList': '.jpg,.jpeg,... | change default to not copy exiv | py |
diff --git a/authorize/schemas.py b/authorize/schemas.py
index <HASH>..<HASH> 100644
--- a/authorize/schemas.py
+++ b/authorize/schemas.py
@@ -283,6 +283,7 @@ class TransactionBaseSchema(colander.MappingSchema):
split_tender_id = colander.SchemaNode(colander.String(),
mis... | Fixing extra_options field for AIM transactions | py |
diff --git a/salt/crypt.py b/salt/crypt.py
index <HASH>..<HASH> 100644
--- a/salt/crypt.py
+++ b/salt/crypt.py
@@ -13,6 +13,7 @@ import hmac
import shutil
import hashlib
import logging
+import traceback
# Import third party libs
try:
@@ -261,7 +262,14 @@ class Auth(object):
Pass in the encrypted aes key... | Add simple tool to help track down auth calls | py |
diff --git a/udata/__init__.py b/udata/__init__.py
index <HASH>..<HASH> 100644
--- a/udata/__init__.py
+++ b/udata/__init__.py
@@ -5,5 +5,5 @@ uData
'''
from __future__ import unicode_literals
-__version__ = '0.9.0.dev'
+__version__ = '1.0.0.dev'
__description__ = 'Open data portal' | Increase dev version to <I> for Pypi | py |
diff --git a/telemetry/telemetry/core/backends/chrome/desktop_browser_backend.py b/telemetry/telemetry/core/backends/chrome/desktop_browser_backend.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/backends/chrome/desktop_browser_backend.py
+++ b/telemetry/telemetry/core/backends/chrome/desktop_browser_back... | [Telemetry] Fix unittests on mac. We needed to be more robust to products from previous builds. BUG=<I> Review URL: <URL> | py |
diff --git a/salt/version.py b/salt/version.py
index <HASH>..<HASH> 100644
--- a/salt/version.py
+++ b/salt/version.py
@@ -1,2 +1,2 @@
-__version_info__ = (0, 9, 7)
+__version_info__ = (0, 9, 8, 'pre')
__version__ = '.'.join(map(str, __version_info__)) | Make the release <I>.pre | py |
diff --git a/lark/load_grammar.py b/lark/load_grammar.py
index <HASH>..<HASH> 100644
--- a/lark/load_grammar.py
+++ b/lark/load_grammar.py
@@ -424,9 +424,11 @@ def _literal_to_pattern(literal):
if literal.type == 'STRING':
s = s.replace('\\\\', '\\')
-
- return { 'STRING': PatternStr,
- '... | refactor: replace dict lookup with simple conditional | py |
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -543,7 +543,7 @@ class Plugin(object):
# pylint: disable-msg = W0612
status, shout, runtime = sos_get_command_output(exe, timeout=timeout)
... | Reduce level of 'could not run' messages info->debug We expect not to find all commands; don't output a log message on each missing binary. | py |
diff --git a/vyper/parser/expr.py b/vyper/parser/expr.py
index <HASH>..<HASH> 100644
--- a/vyper/parser/expr.py
+++ b/vyper/parser/expr.py
@@ -21,6 +21,7 @@ from vyper.parser.parser_utils import (
get_number_as_fraction,
get_original_if_0_prefixed,
getpos,
+ make_setter,
unwrap_location,
)
from... | Fix inline import of make_setter. | py |
diff --git a/svg_model/svgload/path_parser.py b/svg_model/svgload/path_parser.py
index <HASH>..<HASH> 100644
--- a/svg_model/svgload/path_parser.py
+++ b/svg_model/svgload/path_parser.py
@@ -41,7 +41,7 @@ class PathDataParser(object):
def get_number(self):
'''
- .. versionchanged:: X.X.X
+ ... | docs(version): add version notifications | py |
diff --git a/src/ai/backend/client/cli/admin/sessions.py b/src/ai/backend/client/cli/admin/sessions.py
index <HASH>..<HASH> 100644
--- a/src/ai/backend/client/cli/admin/sessions.py
+++ b/src/ai/backend/client/cli/admin/sessions.py
@@ -22,6 +22,7 @@ def sessions(args):
('Memory Slot', 'mem_slot'),
('CP... | Show TPU slot info with ps command | py |
diff --git a/superset/db_engine_specs/druid.py b/superset/db_engine_specs/druid.py
index <HASH>..<HASH> 100644
--- a/superset/db_engine_specs/druid.py
+++ b/superset/db_engine_specs/druid.py
@@ -40,7 +40,7 @@ class DruidEngineSpec(BaseEngineSpec):
allows_subqueries = True
_time_grain_expressions = {
- ... | Update druid.py (#<I>) | py |
diff --git a/kytos/utils/napps.py b/kytos/utils/napps.py
index <HASH>..<HASH> 100644
--- a/kytos/utils/napps.py
+++ b/kytos/utils/napps.py
@@ -471,6 +471,10 @@ class NAppsManager:
for dir_file in os.walk(path):
files.extend([dir_file[0] + '/' + file for file in dir_file[2]])
+ # Filter th... | Adding comments to example better what is done | py |
diff --git a/render_math/math.py b/render_math/math.py
index <HASH>..<HASH> 100644
--- a/render_math/math.py
+++ b/render_math/math.py
@@ -31,7 +31,13 @@ import os
import sys
from pelican import signals
-from . pelican_mathjax_markdown_extension import PelicanMathJaxExtension
+
+try:
+ from . pelican_mathjax_mar... | Allowed the script to at least work for rst if markdown is not installed | py |
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/plot.py
+++ b/holoviews/plotting/plot.py
@@ -586,7 +586,7 @@ class GenericOverlayPlot(GenericElementPlot):
if not isinstance(key, tuple): key = (key,)
subplots[key] = plo... | Handling of PlotSelector in GenericOverlayPlot | 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
@@ -171,6 +171,8 @@ def _check_resolv(mpt):
replace = False
if os.path.islink(resolv):
resolv = os.path.realpath(resolv)
+ if not os.path.isdir(os.path.dir... | Verify that the resolvdir is present | py |
diff --git a/lenses/__init__.py b/lenses/__init__.py
index <HASH>..<HASH> 100644
--- a/lenses/__init__.py
+++ b/lenses/__init__.py
@@ -14,6 +14,7 @@ The entry point to this library is the `lens` object:
You can also obtain a bound lens with the `bind` function.
+ >>> from lenses import bind
>>> bind([1, 2,... | added required bind import to lenses module docstring | py |
diff --git a/helpers/postgresql.py b/helpers/postgresql.py
index <HASH>..<HASH> 100644
--- a/helpers/postgresql.py
+++ b/helpers/postgresql.py
@@ -127,6 +127,7 @@ class Postgresql:
def create_replica_with_s3(self):
ret = os.system(self._wal_e + ' backup-fetch {} LATEST'.format(self.data_dir))
sel... | write pg_hba.conf for the replica initialized from WAL-E. Temporarily use WAL-e always as a mean to create replica for testing purposes. | py |
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/utils/__init__.py
+++ b/salt/utils/__init__.py
@@ -629,3 +629,27 @@ def arg_lookup(fun):
ret['args'].append(arg)
return ret
+
+def istextfile(fp_, blocksize=512):
+ '''
+ Uses heuristics to gues... | Add function to detect if a file is text or binary | py |
diff --git a/pew/pew.py b/pew/pew.py
index <HASH>..<HASH> 100644
--- a/pew/pew.py
+++ b/pew/pew.py
@@ -746,7 +746,7 @@ def first_run_setup():
if shell == 'fish':
source_cmd = 'source (pew shell_config)'
else:
- source_cmd = 'source $(pew shell_config)'
+ source_cmd =... | Quote properly in first_run_setup config line This makes this line behave predictably with no assumptions on what characters might be present in the path `pew` is installed in. | py |
diff --git a/sanic/server.py b/sanic/server.py
index <HASH>..<HASH> 100644
--- a/sanic/server.py
+++ b/sanic/server.py
@@ -271,15 +271,15 @@ def serve(host, port, request_handler, error_handler, before_start=None,
:param request_handler: Sanic request handler with middleware
:param error_handler: Sanic error ... | fix before/after event docstrings | py |
diff --git a/openquake/hazardlib/calc/gmf.py b/openquake/hazardlib/calc/gmf.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/calc/gmf.py
+++ b/openquake/hazardlib/calc/gmf.py
@@ -211,7 +211,7 @@ class GmfComputer(object):
numpy.random.seed(self.seed)
num_sids = len(self.ctx.sids)
if s... | Updated comment [ci skip] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ setup(
install_requires=[
'click==6.7',
'click-default-group==1.2',
- 'sanic==0.6.0',
+ 'Sanic==0.6.0',
'Jinja2==2.10',
'sanic-jinja2==0.5.5',
'hup... | Fix case for Sanic dependency On PyPI it has a capital letter: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -82,6 +82,7 @@ elif sys.platform.startswith(("darwin", "freebsd")):
"/usr/local/include/mupdf",
"/usr/local/include",
"/usr/include/freetype2",
+ "/usr/local/include/freetype2"... | Fix freetype include path in FreeBSD Fix freetype include path in FreeBSD. | py |
diff --git a/src/bidi/chartypes.py b/src/bidi/chartypes.py
index <HASH>..<HASH> 100644
--- a/src/bidi/chartypes.py
+++ b/src/bidi/chartypes.py
@@ -11,10 +11,11 @@ class ExChar(object):
self.bidi_type = unicodedata.bidirectional(unicode_char)
# Those will be filled later on by the algorithm
+ ... | Comment on the need of prev and next | py |
diff --git a/cherrypy/filters/sessionfilter.py b/cherrypy/filters/sessionfilter.py
index <HASH>..<HASH> 100644
--- a/cherrypy/filters/sessionfilter.py
+++ b/cherrypy/filters/sessionfilter.py
@@ -134,8 +134,16 @@ class SessionFilter(basefilter.BaseFilter):
cookie = cherrypy.response.simple_cookie
cooki... | Use "expires" instead of "max-age" for storing session cookie, due to IE bug :( | py |
diff --git a/qpsphere/models/mod_mie_avg.py b/qpsphere/models/mod_mie_avg.py
index <HASH>..<HASH> 100644
--- a/qpsphere/models/mod_mie_avg.py
+++ b/qpsphere/models/mod_mie_avg.py
@@ -135,10 +135,13 @@ def mie_avg(radius=5e-6, sphere_index=1.339, medium_index=1.333,
# Perform new interpolation on requested grid
... | 2PI phase jump detection only from final phase | py |
diff --git a/pymongo/collection.py b/pymongo/collection.py
index <HASH>..<HASH> 100644
--- a/pymongo/collection.py
+++ b/pymongo/collection.py
@@ -1901,7 +1901,6 @@ class Collection(common.BaseObject):
read_concern=self.read_concern)
else:
res = self._c... | PYTHON-<I> - inline_map_reduce should execute the mapreduce command only once. | py |
diff --git a/ieml/grammar/distance.py b/ieml/grammar/distance.py
index <HASH>..<HASH> 100644
--- a/ieml/grammar/distance.py
+++ b/ieml/grammar/distance.py
@@ -4,4 +4,4 @@ import numpy as np
def dword(u0, u1):
return int(np.einsum('i,j,ij->', u0.words_vector(), u1.words_vector(),
- np.matrix(sum(Di... | Add distance between usl with from theirs words | py |
diff --git a/regression_tests/tempdir/tempfile_.py b/regression_tests/tempdir/tempfile_.py
index <HASH>..<HASH> 100644
--- a/regression_tests/tempdir/tempfile_.py
+++ b/regression_tests/tempdir/tempfile_.py
@@ -1,3 +1,10 @@
+"""
+A replacement for python3 class tempfile.TemporaryDirectory() in python2.7
+
+The followin... | update docstring in tempfile_.py to indicade origin of code | py |
diff --git a/whois_bridge.py b/whois_bridge.py
index <HASH>..<HASH> 100644
--- a/whois_bridge.py
+++ b/whois_bridge.py
@@ -64,7 +64,7 @@ class WhoisHandler( object ):
that matches the query"""
query = query.lower()
handlers = filter( WhoisHandler._IsWhoisHandler_, globals( ).values() )
- matches = filter( ... | Added ability to query for the source code. | py |
diff --git a/ndb/model.py b/ndb/model.py
index <HASH>..<HASH> 100644
--- a/ndb/model.py
+++ b/ndb/model.py
@@ -2898,7 +2898,7 @@ class Model(_NotEqualMixin):
try:
values[name] = prop._get_for_dict(self)
except UnprojectedPropertyError:
- pass
+ pass # Ignore unprojected properties ... | Reviewed: to_dict() for unprojected properties. | py |
diff --git a/pysc2/run_configs/platforms.py b/pysc2/run_configs/platforms.py
index <HASH>..<HASH> 100644
--- a/pysc2/run_configs/platforms.py
+++ b/pysc2/run_configs/platforms.py
@@ -44,6 +44,10 @@ VERSIONS = {ver.game_version: ver for ver in [
lib.Version("4.1.0", 60196, "1B8ACAB0C663D5510941A9871B3E9FBE", None),... | Support new versions up through <I>. Generated with bin/gen_versions.py. PiperOrigin-RevId: <I> | py |
diff --git a/discord/embeds.py b/discord/embeds.py
index <HASH>..<HASH> 100644
--- a/discord/embeds.py
+++ b/discord/embeds.py
@@ -36,6 +36,9 @@ class _EmptyEmbed:
def __repr__(self):
return 'Embed.Empty'
+ def __len__(self):
+ return 0
+
EmptyEmbed = _EmptyEmbed()
class EmbedProxy:
@@ -54... | Add Embed.__len__ to query total character size of an embed. | py |
diff --git a/cdpybio/picard.py b/cdpybio/picard.py
index <HASH>..<HASH> 100644
--- a/cdpybio/picard.py
+++ b/cdpybio/picard.py
@@ -17,7 +17,7 @@ def parse_bam_index_stats(fn):
"""
with open(fn) as f:
- lines = [x.strip().split('\t') for x in f.readlines()]
+ lines = [x.strip().split() for x in... | Bug fix for bam index stats parsing | py |
diff --git a/magic.py b/magic.py
index <HASH>..<HASH> 100644
--- a/magic.py
+++ b/magic.py
@@ -161,7 +161,7 @@ if not libmagic or not libmagic._name:
glob.glob('/usr/local/Cellar/libmagic/*/lib/libmagic.dylib'),
'win32': windows_dlls,
'cygwin': w... | Fixed type for DLL search on Linux platform Provide correct list of strings instead of string | py |
diff --git a/tests/t_cqparts/test_part.py b/tests/t_cqparts/test_part.py
index <HASH>..<HASH> 100644
--- a/tests/t_cqparts/test_part.py
+++ b/tests/t_cqparts/test_part.py
@@ -33,6 +33,9 @@ class PreMaturePartTests(CQPartsTest):
class MakeSimpleTests(CQPartsTest):
+ def test_bad(self):
+ self.assertTrue(F... | forced failed test (temporary) | py |
diff --git a/src/wer/helpers.py b/src/wer/helpers.py
index <HASH>..<HASH> 100644
--- a/src/wer/helpers.py
+++ b/src/wer/helpers.py
@@ -1,9 +1,10 @@
# -*- coding: utf8 -*-
from __future__ import unicode_literals
-from eulxml import xmlmap
-from datetime import datetime
import time
+from datetime import datetime
+
+... | Reorganize imports in helpers.py | py |
diff --git a/spadespipeline/quality.py b/spadespipeline/quality.py
index <HASH>..<HASH> 100755
--- a/spadespipeline/quality.py
+++ b/spadespipeline/quality.py
@@ -534,6 +534,7 @@ class GenomeQAML(object):
qaml_call = 'classify.py -t {tf} -r {rf}'\
.format(tf=self.qaml_path,
rf... | Fixed issue with GenomeQAML not creating path to store reports | py |
diff --git a/tests/unit/modules/test_mysql.py b/tests/unit/modules/test_mysql.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_mysql.py
+++ b/tests/unit/modules/test_mysql.py
@@ -25,13 +25,13 @@ NO_MYSQL = False
NO_PyMYSQL = False
try:
import MySQLdb # pylint: disable=W0611
-except ImportError: # p... | Removing unneeded pylint disable statements. | py |
diff --git a/phoebe/parameters/parameters.py b/phoebe/parameters/parameters.py
index <HASH>..<HASH> 100644
--- a/phoebe/parameters/parameters.py
+++ b/phoebe/parameters/parameters.py
@@ -2399,7 +2399,7 @@ class ParameterSet(object):
kwargs.setdefault('linestyle', 'None')
kwargs.setdefa... | Auto stash before merge of "misaligned_roche" and "origin/development" Removing constrain to only solid lines in plots | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,5 +1,5 @@
from datetime import date
-from os import mkdir, path
+from os import environ, mkdir, path
import guzzle_sphinx_theme
@@ -27,7 +27,10 @@ source_parsers = {
master_doc = 'index'
project = 'p... | Pass language + version from readthedocs envvars. | py |
diff --git a/cobra/test/flux_analysis.py b/cobra/test/flux_analysis.py
index <HASH>..<HASH> 100644
--- a/cobra/test/flux_analysis.py
+++ b/cobra/test/flux_analysis.py
@@ -160,6 +160,8 @@ class TestCobraFluxAnalysis(TestCase):
'5DGLCNt2rpp': {'minimum': 0.0, 'maximum': 0.0},
'ACALD': {'minimum'... | add test for #<I> with fva on infeasible model | py |
diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/networking.py
+++ b/sos/plugins/networking.py
@@ -80,6 +80,7 @@ class Networking(Plugin):
"/etc/NetworkManager/NetworkManager.conf",
"/etc/NetworkManager/system-connections",
... | Do not attempt to read use-gss-proxy file in procfs The networking plug-in scoops up /proc/net. There are some pseudo- files in here that we should avoid touching. These either have side-effects or hang the reading process. Add a forbidden path for the /proc/net/rpc/use-gss-proxy file. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.