diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/simplesqlite/_logger.py b/simplesqlite/_logger.py
index <HASH>..<HASH> 100644
--- a/simplesqlite/_logger.py
+++ b/simplesqlite/_logger.py
@@ -9,7 +9,6 @@ from __future__ import unicode_literals
import dataproperty
import logbook
-import pytablereader
logger = logbook.Logger("SimpleSQLie")
@@ -26,7... | Fix dependency pytablereader still remained a mandatory package in the logger. It should be an optional package. | py |
diff --git a/oauthlib/oauth1/rfc5849/__init__.py b/oauthlib/oauth1/rfc5849/__init__.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth1/rfc5849/__init__.py
+++ b/oauthlib/oauth1/rfc5849/__init__.py
@@ -270,7 +270,7 @@ class Server(object):
verifier=verifier)
client_signature = oauth_client.... | Pass through the request method to the client when generating signature. | py |
diff --git a/pypeerassets/main.py b/pypeerassets/main.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/main.py
+++ b/pypeerassets/main.py
@@ -50,6 +50,7 @@ class Deck:
self.version = version # protocol version
self.name = name # deck name
self.issue_mode = issue_mode # deck issue mode
+ ... | assert that number_of_decimals is a integer | py |
diff --git a/salt/config/__init__.py b/salt/config/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/config/__init__.py
+++ b/salt/config/__init__.py
@@ -2852,7 +2852,7 @@ def is_profile_configured(opts, provider, profile_name, vm_=None):
non_size_drivers.append('linode')
# If cloning on VMware, specif... | Fix for clonefrom/image settings | py |
diff --git a/diff_cover/violationsreporters/violations_reporter.py b/diff_cover/violationsreporters/violations_reporter.py
index <HASH>..<HASH> 100644
--- a/diff_cover/violationsreporters/violations_reporter.py
+++ b/diff_cover/violationsreporters/violations_reporter.py
@@ -128,8 +128,12 @@ class XmlCoverageReporter(Ba... | Improve _measured_source_path_matches speed | py |
diff --git a/cherrypy/lib/sessions.py b/cherrypy/lib/sessions.py
index <HASH>..<HASH> 100644
--- a/cherrypy/lib/sessions.py
+++ b/cherrypy/lib/sessions.py
@@ -758,7 +758,7 @@ def close():
if getattr(sess, "locked", False):
# If the session is still locked we release the lock
sess.release_lock()
-... | Fix session closing bug introduced in d<I>d<I>e6 | py |
diff --git a/src/poetry/__init__.py b/src/poetry/__init__.py
index <HASH>..<HASH> 100644
--- a/src/poetry/__init__.py
+++ b/src/poetry/__init__.py
@@ -1 +1 @@
-__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore[has-type] # noqa: E501
+__path__ = __import__("pkgutil").extend_path(__path__,... | fix: drop unneeded # type / # noqa No longer needed with current mypy / flake8 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,6 +31,7 @@ setup(name="nrepl-python-client",
author_email="chas@cemerick.com",
description=description,
long_description=__doc__,
+ test_suite='test',
license="BSD 3-clause",
keyword... | make `$ python setup.py test` work | py |
diff --git a/pycbc/waveform/waveform.py b/pycbc/waveform/waveform.py
index <HASH>..<HASH> 100644
--- a/pycbc/waveform/waveform.py
+++ b/pycbc/waveform/waveform.py
@@ -652,10 +652,10 @@ def seobnrrom_length_in_time(**kwds):
time = 0.1
return time
-_filter_time_lengths["SEOBNRv1_ROM_SingleSpin"] = spa_len... | Fixing issue where SEOBNR ROMs aren't using their own duration function | py |
diff --git a/tests/unit/test_nba_utils.py b/tests/unit/test_nba_utils.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_nba_utils.py
+++ b/tests/unit/test_nba_utils.py
@@ -20,8 +20,8 @@ def mock_pyquery(url):
if '2021' in url:
return MockPQ('<div/>', status_code=404)
else:
- return MockPQ('... | Fix issue pulling default year for NBA Given the format of the NBA pages changed on the website, the unit tests need to be updated to pull the default year for <I> given the scheduling is different for that year. | py |
diff --git a/prudentia/digital_ocean.py b/prudentia/digital_ocean.py
index <HASH>..<HASH> 100644
--- a/prudentia/digital_ocean.py
+++ b/prudentia/digital_ocean.py
@@ -7,6 +7,7 @@ from ansible.runner import Runner
from dopy.manager import DoManager, DoError
from domain import Box
from factory import FactoryProvider, ... | Avoids super call when adding a box that doesn't need creation | py |
diff --git a/pybar/daq/fifo_readout.py b/pybar/daq/fifo_readout.py
index <HASH>..<HASH> 100644
--- a/pybar/daq/fifo_readout.py
+++ b/pybar/daq/fifo_readout.py
@@ -478,7 +478,7 @@ class FifoReadout(object):
self.dut[fei4_rx_name].RX_RESET
def reset_fifo(self, fifos):
- if not isinstance(fif... | REG: fix converting to list | py |
diff --git a/scipy_data_fitting/fit.py b/scipy_data_fitting/fit.py
index <HASH>..<HASH> 100644
--- a/scipy_data_fitting/fit.py
+++ b/scipy_data_fitting/fit.py
@@ -57,7 +57,7 @@ class Fit:
Will default to `scipy_data_fitting.Fit.name`.
"""
- if not hasattr(self, '_description'): self._descript... | Fit.description will always default to Fit.name. | py |
diff --git a/niworkflows/utils/timeseries.py b/niworkflows/utils/timeseries.py
index <HASH>..<HASH> 100644
--- a/niworkflows/utils/timeseries.py
+++ b/niworkflows/utils/timeseries.py
@@ -56,7 +56,7 @@ def _nifti_timeseries(
dataset,
segmentation=None,
labels=("Ctx GM", "dGM", "WM+CSF", "Cb", "Crown"),
- ... | fix: smarter decision to remap input segmentation | py |
diff --git a/IndexedRedis/__init__.py b/IndexedRedis/__init__.py
index <HASH>..<HASH> 100644
--- a/IndexedRedis/__init__.py
+++ b/IndexedRedis/__init__.py
@@ -1034,6 +1034,9 @@ class IndexedRedisModel(object):
@raises - InvalidModelException if there is a problem with the model, and the message contains relevant in... | Fix pydoc not working on some packages that import IndexedRedis | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -2,6 +2,7 @@
#
# This file is part of Invenio.
# Copyright (C) 2015-2018 CERN.
+# Copyright (C) 2022 Graz University of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
#... | fix docs compatibilty problem with Sphinx>=<I> | py |
diff --git a/src/td_plot.py b/src/td_plot.py
index <HASH>..<HASH> 100644
--- a/src/td_plot.py
+++ b/src/td_plot.py
@@ -343,7 +343,7 @@ def calc_complex(rmag, rpha):
''' Calculate real and imaginary part of the complex conductivity from
magnitude and phase in log10.
'''
- crho = rmag * np.exp(1j * rpha... | fix plotting of cim/cre in td_plot | py |
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py
index <HASH>..<HASH> 100644
--- a/pyasn1/type/univ.py
+++ b/pyasn1/type/univ.py
@@ -506,7 +506,7 @@ class Set(SequenceAndSetBase):
)
if innerFlag and hasattr(c, 'getComponent'):
# get inner component by inner tagSet
- r... | Boolean constants not supported in python <I> | py |
diff --git a/tests/test_circuit.py b/tests/test_circuit.py
index <HASH>..<HASH> 100644
--- a/tests/test_circuit.py
+++ b/tests/test_circuit.py
@@ -96,6 +96,17 @@ def test_toffoli_gate(bin):
expected_meas = "001" if bin[0] and bin[1] else "000"
assert c.run(shots=1) == Counter([expected_meas])
+def test_u3_g... | Add test for U1, U2, U3 gates | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,5 +43,6 @@ setup(
'Framework :: Django',
],
zip_safe=False,
+ tests_require=["Django>=1.1"],
test_suite='model_utils.tests.runtests.runtests'
) | Added tests_require. | py |
diff --git a/zengine/lib/cache.py b/zengine/lib/cache.py
index <HASH>..<HASH> 100644
--- a/zengine/lib/cache.py
+++ b/zengine/lib/cache.py
@@ -288,7 +288,7 @@ class Session(object):
def items(self):
return ((k[len(self.key) + 1:], self._j_load(cache.get(k))) for k in self._keys())
- def destroy(self)... | rref #<I> ref GH-<I> CHANGE Renamed "destroy" method of Session object to "delete" | py |
diff --git a/wafer/talks/urls.py b/wafer/talks/urls.py
index <HASH>..<HASH> 100644
--- a/wafer/talks/urls.py
+++ b/wafer/talks/urls.py
@@ -19,7 +19,7 @@ urlpatterns = [
url(r'^page/(?P<page>\d+)/$', UsersTalks.as_view(),
name='wafer_users_talks_page'),
url(r'^new/$', TalkCreate.as_view(), name='wafer... | Tweak regex to work with empty slugs | py |
diff --git a/claripy/frontends/replacement_frontend.py b/claripy/frontends/replacement_frontend.py
index <HASH>..<HASH> 100644
--- a/claripy/frontends/replacement_frontend.py
+++ b/claripy/frontends/replacement_frontend.py
@@ -88,8 +88,13 @@ class ReplacementFrontend(ConstrainedFrontend):
self._replacement_cac... | ugly hack for weak dictionary in replacement cache (#<I>) | py |
diff --git a/tests/test_io.py b/tests/test_io.py
index <HASH>..<HASH> 100644
--- a/tests/test_io.py
+++ b/tests/test_io.py
@@ -313,9 +313,8 @@ class SocketTestCase(StateClearingTestCase):
greenhouse.pause()
time.sleep(TESTING_TIMEOUT)
- greenhouse.pause()
- assert l and l[0] == ''
+ ... | get the expected api right in the test, even if there isn't an implementation yet | py |
diff --git a/tests/test_decompressor.py b/tests/test_decompressor.py
index <HASH>..<HASH> 100644
--- a/tests/test_decompressor.py
+++ b/tests/test_decompressor.py
@@ -490,7 +490,7 @@ class TestDecompressor_stream_reader(unittest.TestCase):
self.assertTrue(buffer.closed)
with self.assertRaisesRegex(V... | tests: avoid passing illegal argument type in tests This hopefully shouldn't matter. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -4,6 +4,7 @@
# NOTE: most of the configuration, including the version number,
# is defined in setup.cfg
+import os
import sys
from distutils.version import LooseVersion
@@ -14,6 +15,10 @@ if LooseVersion(setuptools.__v... | Fix pip installs of astropy-helpers | py |
diff --git a/dbussy.py b/dbussy.py
index <HASH>..<HASH> 100644
--- a/dbussy.py
+++ b/dbussy.py
@@ -4562,7 +4562,7 @@ class Introspection :
#end for
has_elts = sum(len(getattr(obj, attrname)) for attrname in tuple(obj.tag_elts.keys()) + ("annotations",)) != 0
out.write(" " * indent... | more accurate calculation of XML line length | py |
diff --git a/graphenebase/base58.py b/graphenebase/base58.py
index <HASH>..<HASH> 100644
--- a/graphenebase/base58.py
+++ b/graphenebase/base58.py
@@ -40,6 +40,8 @@ class Base58(object) :
self._hex = data
elif data[0] == "5" or data[0] == "6" :
self._hex = base58CheckDecode(da... | Allow 'proper' wif encoding for compressed keys | py |
diff --git a/concise/hyopt.py b/concise/hyopt.py
index <HASH>..<HASH> 100644
--- a/concise/hyopt.py
+++ b/concise/hyopt.py
@@ -64,14 +64,17 @@ def test_fn(fn, hyper_params, n_train=1000, tmp_dir="/tmp/concise_hyopt_test/"):
2. Correct save/load model to disk
# Arguments
-
+ fn: CompileFN instance
+ ... | fix: if n_train larger than number of datapoints, truncate | py |
diff --git a/lib/svtplay_dl/utils/nfo.py b/lib/svtplay_dl/utils/nfo.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/utils/nfo.py
+++ b/lib/svtplay_dl/utils/nfo.py
@@ -5,15 +5,17 @@ from svtplay_dl.utils.output import formatname
from svtplay_dl.utils.parser import Options
from datetime import datetime
+# https:/... | nfo: title and showtitle was swapped fixes: #<I> | py |
diff --git a/client/test.py b/client/test.py
index <HASH>..<HASH> 100644
--- a/client/test.py
+++ b/client/test.py
@@ -3,6 +3,7 @@
import os
import sys
import unittest
+import logging
import argparse
from mock import patch, Mock
from urllib2 import URLError, urlopen
@@ -234,8 +235,15 @@ if __name__ == '__main__':... | Configure logging and add possibility to view debug messages in test.py | py |
diff --git a/src/unity/python/turicreate/toolkits/image_classifier/_evaluation.py b/src/unity/python/turicreate/toolkits/image_classifier/_evaluation.py
index <HASH>..<HASH> 100644
--- a/src/unity/python/turicreate/toolkits/image_classifier/_evaluation.py
+++ b/src/unity/python/turicreate/toolkits/image_classifier/_eva... | Fix JSON serialization for DC evaluate.explore (#<I>) There was a metric coming in as `np.float<I>`, which is not JSON serializable for some reason. Converting it to a regular float fixes it. Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -63,8 +63,7 @@ print('Packages being installed: {}'.format(packages))
# sudo yum install libjpeg-devel openjpeg-devel
install_requires = [
- 'nlup>=0.5',
- 'pug-nlp>=0.0.20',
+ 'pug-nlp>=0.0.21',
'pug-ann>=0.... | pug-nlp <I> installs nlup from pypi | py |
diff --git a/tensorflow_probability/python/mcmc/metropolis_hastings.py b/tensorflow_probability/python/mcmc/metropolis_hastings.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/mcmc/metropolis_hastings.py
+++ b/tensorflow_probability/python/mcmc/metropolis_hastings.py
@@ -81,7 +81,7 @@ class Metropoli... | correct log_acceptance_probability | py |
diff --git a/karaage/graphs/base.py b/karaage/graphs/base.py
index <HASH>..<HASH> 100644
--- a/karaage/graphs/base.py
+++ b/karaage/graphs/base.py
@@ -32,7 +32,7 @@ class GraphGenerator(object):
machine_category -- MachineCategory object
"""
- raise NotImplementedError
+ pass
... | Don't error if graphs not implemented in specific library | py |
diff --git a/salt/cloud/clouds/softlayer.py b/salt/cloud/clouds/softlayer.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/softlayer.py
+++ b/salt/cloud/clouds/softlayer.py
@@ -357,6 +357,27 @@ def create(vm_):
}
}
+ public_security_groups = config.get_cloud_config_value(
+ 'publ... | Create new Softlayer VMs with security_groups attached if configured. | py |
diff --git a/sovrin_client/agent/agent_verifier.py b/sovrin_client/agent/agent_verifier.py
index <HASH>..<HASH> 100644
--- a/sovrin_client/agent/agent_verifier.py
+++ b/sovrin_client/agent/agent_verifier.py
@@ -47,6 +47,9 @@ class AgentVerifier(Verifier):
if result:
for attribute in proofInput.rev... | [SOV-<I>] added a log message which shows that it is verified that proof contains attributes from claims issued by given issuer only | py |
diff --git a/streamcorpus_pipeline/_s3_storage.py b/streamcorpus_pipeline/_s3_storage.py
index <HASH>..<HASH> 100644
--- a/streamcorpus_pipeline/_s3_storage.py
+++ b/streamcorpus_pipeline/_s3_storage.py
@@ -11,6 +11,7 @@ from cStringIO import StringIO
import hashlib
import logging
import os
+import re
import sys
i... | A small fix for extracting the md5 from a chunk file name on S3. The existing method is preserved. If it fails, then it will fallback to trying to find the last md5 before the '.sc' extension in the file name. | py |
diff --git a/pyxmpp/iq.py b/pyxmpp/iq.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/iq.py
+++ b/pyxmpp/iq.py
@@ -52,7 +52,6 @@ class Iq(Stanza):
iq=Iq(type="error",fr=self.get_to(),to=self.get_from(),
id=self.get_id(),error_cond=cond)
n=self.get_query().copyNode(1)
- print iq.serialize()
iq.node.children.ad... | - unneeded "print" removed | py |
diff --git a/quantrisk/plotting.py b/quantrisk/plotting.py
index <HASH>..<HASH> 100644
--- a/quantrisk/plotting.py
+++ b/quantrisk/plotting.py
@@ -573,9 +573,9 @@ def plot_return_quantiles(df_rets, df_weekly, df_monthly, ax=None, **kwargs):
if ax is None:
ax = plt.gca()
- sns.boxplot([df_rets, df_wee... | BUG Second attempt to fix boxplot degration. | py |
diff --git a/xtermcolor/__init__.py b/xtermcolor/__init__.py
index <HASH>..<HASH> 100644
--- a/xtermcolor/__init__.py
+++ b/xtermcolor/__init__.py
@@ -29,7 +29,7 @@ def colorize(string, rgb=None, ansi=None,bg=None,ansi_bg=None,fd=1):
colorize.init = True
colorize.is_term = isatty(fd)
if 'TERM... | works on xterm-<I> | py |
diff --git a/scs_core/sys/process_comms.py b/scs_core/sys/process_comms.py
index <HASH>..<HASH> 100644
--- a/scs_core/sys/process_comms.py
+++ b/scs_core/sys/process_comms.py
@@ -17,7 +17,7 @@ class ProcessComms(object):
# --------------------------------------------------------------------------------------------... | Added NetworkSocket class. | py |
diff --git a/torchnet/transform.py b/torchnet/transform.py
index <HASH>..<HASH> 100644
--- a/torchnet/transform.py
+++ b/torchnet/transform.py
@@ -1,6 +1,6 @@
import torch
-from utils.table import canmergetensor as canmerge
-from utils.table import mergetensor as mergetensor
+from .utils.table import canmergetensor as... | Update transform.py The utils import needs to be relative to this file. | py |
diff --git a/tests/test_hooks.py b/tests/test_hooks.py
index <HASH>..<HASH> 100755
--- a/tests/test_hooks.py
+++ b/tests/test_hooks.py
@@ -85,15 +85,15 @@ class TestFindHooks(object):
assert {} == hooks.find_hooks()
-class TestExternalHooks(unittest.TestCase):
+class TestExternalHooks(object):
r... | Update setup and teardown of TestExternalHooks | py |
diff --git a/bucky/statsd.py b/bucky/statsd.py
index <HASH>..<HASH> 100644
--- a/bucky/statsd.py
+++ b/bucky/statsd.py
@@ -169,3 +169,5 @@ class StatsDServer(threading.Thread):
while True:
data, addr = self.sock.recvfrom(65535)
self.handler.handle(data)
+ if not self.handle... | Close the statsd daemon if its handler dies | py |
diff --git a/pandas/computation/align.py b/pandas/computation/align.py
index <HASH>..<HASH> 100644
--- a/pandas/computation/align.py
+++ b/pandas/computation/align.py
@@ -249,6 +249,9 @@ def _reconstruct_object(typ, obj, axes, dtype):
try:
ret = ret_value.item()
- except ValueError:
+ except (Valu... | BUG: Work-around a numpy regression numpy <I> erroneously raises IndexError instead of ValueError from ndarray.item() when the array is not of length 1. This can be seen as a failure of computation.tests.test_eval.TestScope.test_global_scope for the cases that engine='numexpr'. Absorb the splatter from this reg... | py |
diff --git a/goatools/test_data/optional_attrs.py b/goatools/test_data/optional_attrs.py
index <HASH>..<HASH> 100755
--- a/goatools/test_data/optional_attrs.py
+++ b/goatools/test_data/optional_attrs.py
@@ -182,7 +182,7 @@ class OptionalAttrs(object):
# level namespace depth parents children _parents
... | alt_ids expected in GOTerm | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ LONG_DESCRIPTION = open(os.path.join(".", "README.md")).read()
setup(
name='ecell4',
- version='1.0.0',
+ version='1.1.0',
packages=['ecell4', 'ecell4.util', 'ecell4.extra', 'ecell4.datasource... | :wrench: Change the version from <I> to <I> | py |
diff --git a/trainer.py b/trainer.py
index <HASH>..<HASH> 100644
--- a/trainer.py
+++ b/trainer.py
@@ -32,8 +32,12 @@ class Trainer:
self.prefered = r['prefered']
self.account = User(int(r['account']))
_update = r['update']
- self.update = Update(_update['id'])
- self.level = Level().from_xp(_update['xp'])
+... | Fixed Trainer grab when there's no Update objects. | py |
diff --git a/tests/client/client_tests.py b/tests/client/client_tests.py
index <HASH>..<HASH> 100644
--- a/tests/client/client_tests.py
+++ b/tests/client/client_tests.py
@@ -130,13 +130,13 @@ class ClientTest(TestCase):
# test error
send_remote.side_effect = Exception()
client.send_remote('h... | use client.close instead of time.sleep in tests | py |
diff --git a/i3pystatus/scores/mlb.py b/i3pystatus/scores/mlb.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/scores/mlb.py
+++ b/i3pystatus/scores/mlb.py
@@ -272,16 +272,19 @@ class MLB(ScoresBackend):
ret[f'{team}_wins'] = self.get_nested(
team_data,
'leagueRecord:wins',... | Ensure numeric values are strings (#<I>) This prevents record/score values from being being interpreted as False and excluded from bracketed blocks in formatp. | py |
diff --git a/Lib/fontmake/font_project.py b/Lib/fontmake/font_project.py
index <HASH>..<HASH> 100644
--- a/Lib/fontmake/font_project.py
+++ b/Lib/fontmake/font_project.py
@@ -28,15 +28,23 @@ class FontProject:
"""Provides methods for building fonts."""
def preprocess(self, glyphs_path):
- """Return G... | Fix both glyph and glyph class names with hyphens | py |
diff --git a/parcalc/parcalc.py b/parcalc/parcalc.py
index <HASH>..<HASH> 100644
--- a/parcalc/parcalc.py
+++ b/parcalc/parcalc.py
@@ -73,14 +73,15 @@ class ClusterVasp(Vasp):
'''
def __init__(self, nodes=1, ppn=8, **kwargs):
- Vasp.__init__(self, **kwargs)
- self.nodes=nodes
- self... | Remove block from kwargs passed to parent. | py |
diff --git a/tests/unittest/test_calls.py b/tests/unittest/test_calls.py
index <HASH>..<HASH> 100644
--- a/tests/unittest/test_calls.py
+++ b/tests/unittest/test_calls.py
@@ -30,5 +30,5 @@ class TestCalls(TestCase):
lib.create_session('http_server', HTTP_LOCAL_SERVER, sess_headers)
lib.post_request('h... | Use the variable we already have in place | py |
diff --git a/tests/test_plan_search.py b/tests/test_plan_search.py
index <HASH>..<HASH> 100644
--- a/tests/test_plan_search.py
+++ b/tests/test_plan_search.py
@@ -52,7 +52,7 @@ class PlanSearchTest(unittest.TestCase):
g = mod_plan.Graph({'1': ['2','3','4'], '2':['6','7']})
mat = g.get_adjacency_matrix... | test sometimes returns list in diff order so sorting for now - check this | py |
diff --git a/wikidataintegrator/wdi_core.py b/wikidataintegrator/wdi_core.py
index <HASH>..<HASH> 100755
--- a/wikidataintegrator/wdi_core.py
+++ b/wikidataintegrator/wdi_core.py
@@ -130,9 +130,6 @@ class WDItemEngine(object):
self.user_agent = user_agent
- if len(WDItemEngine.databases) == 0 or len... | move WDItemEngine._init_ref_system to is_good_ref so its only inited if needed | py |
diff --git a/django_prometheus/tests/end2end/testapp/test_migrations.py b/django_prometheus/tests/end2end/testapp/test_migrations.py
index <HASH>..<HASH> 100644
--- a/django_prometheus/tests/end2end/testapp/test_migrations.py
+++ b/django_prometheus/tests/end2end/testapp/test_migrations.py
@@ -2,6 +2,7 @@ import sys
... | move import to the top of the file. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -92,9 +92,9 @@ setup(
'graphs/*.*',
'images/*.*',
'images/digits/*.*'],
- ... | #<I>: [PR] After review changes. | py |
diff --git a/pyqode/core/api/code_edit.py b/pyqode/core/api/code_edit.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/api/code_edit.py
+++ b/pyqode/core/api/code_edit.py
@@ -1178,7 +1178,7 @@ class CodeEdit(QtWidgets.QPlainTextEdit):
move = QtGui.QTextCursor.MoveAnchor
if select:
move = ... | Fix home key not workin when the cursor is positioned before the first meaningful character (negative delta) | py |
diff --git a/tensorbase/stoch.py b/tensorbase/stoch.py
index <HASH>..<HASH> 100644
--- a/tensorbase/stoch.py
+++ b/tensorbase/stoch.py
@@ -108,10 +108,7 @@ class GaussianLayerConv(StochLayer):
x must be 2D. [batch_size * eqsamples* iwsamples, num_latent]
"""
mu, std, h, w = self.params
- ... | convnet and deconvnet | py |
diff --git a/hwrt/selfcheck.py b/hwrt/selfcheck.py
index <HASH>..<HASH> 100755
--- a/hwrt/selfcheck.py
+++ b/hwrt/selfcheck.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
"""Check if all necessary modules / programs / files for HWRT are there and
if the version is ok. | hwrt/selfcheck.py: Added encoding | py |
diff --git a/torchvision/models/quantization/mobilenetv3.py b/torchvision/models/quantization/mobilenetv3.py
index <HASH>..<HASH> 100644
--- a/torchvision/models/quantization/mobilenetv3.py
+++ b/torchvision/models/quantization/mobilenetv3.py
@@ -43,7 +43,7 @@ class QuantizableSqueezeExcitation(SqueezeExcitation):
... | Amend the weights only if quantize=True. (#<I>) | py |
diff --git a/twython/streaming/api.py b/twython/streaming/api.py
index <HASH>..<HASH> 100644
--- a/twython/streaming/api.py
+++ b/twython/streaming/api.py
@@ -125,7 +125,7 @@ class TwythonStreamer(object):
self.on_timeout()
else:
if response.status_code != 200:... | Adding response.headers to on_error method in twython.streaming.api #<I> | py |
diff --git a/openquake/hazardlib/calc/hazard_curve.py b/openquake/hazardlib/calc/hazard_curve.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/calc/hazard_curve.py
+++ b/openquake/hazardlib/calc/hazard_curve.py
@@ -156,7 +156,6 @@ def pmap_from_grp(group, src_filter, gsims, param, monitor=Monitor()):
:retu... | Cleanup [skip CI] | py |
diff --git a/pefile.py b/pefile.py
index <HASH>..<HASH> 100644
--- a/pefile.py
+++ b/pefile.py
@@ -566,6 +566,28 @@ def get_sublang_name_for_lang( lang_value, sublang_value ):
return SUBLANG.get(sublang_value, ['*unknown*'])[0]
+def convert_to_printable(s):
+ """Convert string to printable string.
+ @par... | Add convert_to_printable() to fix unresolved reference on line <I> (old line <I>) | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -1534,9 +1534,10 @@ class ClearFuncs(object):
# User is authorised, check key and check perms
if not clear_load.pop('key') == self.key[clear_load['user']]:
... | Repair break in client_acl introduced with the acs | py |
diff --git a/mkdocs_awesome_pages_plugin/plugin.py b/mkdocs_awesome_pages_plugin/plugin.py
index <HASH>..<HASH> 100644
--- a/mkdocs_awesome_pages_plugin/plugin.py
+++ b/mkdocs_awesome_pages_plugin/plugin.py
@@ -1,4 +1,3 @@
-from mkdocs import utils as mkdocs_utils
from mkdocs.config import config_options, Config
from... | Update config_options type to str as part of mkdocs deprecating Python 2 | py |
diff --git a/discord/colour.py b/discord/colour.py
index <HASH>..<HASH> 100644
--- a/discord/colour.py
+++ b/discord/colour.py
@@ -24,6 +24,8 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
+import colorsys
+
class Colour:
"""Represents a Discord role colou... | Add Colour.from_hsv HSV is an easier to use colour format, and its inclusion in the colour module will hopefully encourage its use. | py |
diff --git a/pebble/process/pool.py b/pebble/process/pool.py
index <HASH>..<HASH> 100644
--- a/pebble/process/pool.py
+++ b/pebble/process/pool.py
@@ -307,7 +307,7 @@ def worker_process(params, channel):
payload = task.payload
results = execute(payload.function, payload.args, payload.kwargs)
... | ProcessPool: silence ChannelError on worker process | py |
diff --git a/dvc/analytics.py b/dvc/analytics.py
index <HASH>..<HASH> 100644
--- a/dvc/analytics.py
+++ b/dvc/analytics.py
@@ -45,7 +45,7 @@ def is_enabled():
.get(Config.SECTION_CORE_ANALYTICS, "true")
)
- logger.debug("Analytics is {}enabled.".format("" if enabled else "dis"))
+ logger.debug("An... | :nail_care: correct wording "disenabled" -> "disabled" | py |
diff --git a/squad/core/management/commands/import_data.py b/squad/core/management/commands/import_data.py
index <HASH>..<HASH> 100644
--- a/squad/core/management/commands/import_data.py
+++ b/squad/core/management/commands/import_data.py
@@ -14,6 +14,8 @@ def build_key(path):
name = os.path.basename(path)
if... | core/import_data: sort builds identified by hex numbers | 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
@@ -164,7 +164,7 @@ def get_color_theme(theme):
colors = yaml.safe_load(fp_.read())
ret = {}
for color in colors:
- ret... | also pad in the rest of the escape, making the config easier | py |
diff --git a/grimoire_elk/enriched/meetup.py b/grimoire_elk/enriched/meetup.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/meetup.py
+++ b/grimoire_elk/enriched/meetup.py
@@ -122,7 +122,7 @@ class MeetupEnrich(Enrich):
eitem = {}
if 'time' not in item['data']:
- logger.error("... | [enrich][meetup] Change log from error to warning when the date are incorrect from upstream data | py |
diff --git a/telebot/types.py b/telebot/types.py
index <HASH>..<HASH> 100644
--- a/telebot/types.py
+++ b/telebot/types.py
@@ -114,6 +114,12 @@ class Message(JsonDeserializable):
date = obj['date']
content_type = None
opts = {}
+ if 'forward_from' in obj:
+ opts['forward_fro... | Message add forward_from forward_date reply_to_message support. | py |
diff --git a/sumy/algorithms/luhn.py b/sumy/algorithms/luhn.py
index <HASH>..<HASH> 100644
--- a/sumy/algorithms/luhn.py
+++ b/sumy/algorithms/luhn.py
@@ -74,8 +74,9 @@ class LuhnMethod(AbstractSummarizationMethod):
return significant_words**2 / words_count
def __remove_trailing_zeros(self, collecti... | Better algorithm for removing trailing zeros Old algorithm was slow because for large data copied items to mutable list firstly. | py |
diff --git a/SLIP/SLIP.py b/SLIP/SLIP.py
index <HASH>..<HASH> 100644
--- a/SLIP/SLIP.py
+++ b/SLIP/SLIP.py
@@ -750,8 +750,9 @@ class Image:
title=title, FT_title=FT_title, im_title=im_title, norm=norm, vmin=vmin, vmax=vmax)
return fig, a1, a2
- def savefig(self, fig, f... | cosmetics + re-running all notebooks | py |
diff --git a/eobox/__init__.py b/eobox/__init__.py
index <HASH>..<HASH> 100644
--- a/eobox/__init__.py
+++ b/eobox/__init__.py
@@ -1,4 +1,4 @@
-__version__ = '0.3.0'
+__version__ = "0.3.0"
from . import sampledata
from .sampledata import get_dataset | update to <I> commit (number update one before) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,11 +7,11 @@ except ImportError:
import numpy as np
module_scene = Extension('sphviewer/extensions/scene', sources = ['sphviewer/extensions/scenemodule.c'],
- extra_compile_args=['-fopenmp'],
+ ... | -w flag added to setup.py, (to avoid Warningsgit add setup.py ) | py |
diff --git a/sdk/python/lib/pulumi/provider/server.py b/sdk/python/lib/pulumi/provider/server.py
index <HASH>..<HASH> 100644
--- a/sdk/python/lib/pulumi/provider/server.py
+++ b/sdk/python/lib/pulumi/provider/server.py
@@ -329,7 +329,8 @@ def main(provider: Provider, args: List[str]) -> None: # args not in use?
a... | make python provider.py more tolerant of unexpected command line args (#<I>) When running Component Providers, command line flags are passed. When debugging using --logflow --logtostderr -v=5, -v=5 is passed to argparse. argparse doesn't expect this and crashes as it is not in the list of parameters the program expect... | py |
diff --git a/tests/test_api.py b/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -40,7 +40,7 @@ def unsupported_type(request):
return request.param
-@pytest.fixture('session', params=[bytes, bytearray, memoryview])
+@pytest.fixture(scope='session', params=[bytes... | Fix pytest warning about fixture positional args | py |
diff --git a/djangocms_gmaps/models.py b/djangocms_gmaps/models.py
index <HASH>..<HASH> 100644
--- a/djangocms_gmaps/models.py
+++ b/djangocms_gmaps/models.py
@@ -179,7 +179,7 @@ class Location(CMSPlugin):
'zoom': 17,
'lat': coordinates[0],
'lng': coordinates[1],
- 'add... | Remove safe param, default is '/' | py |
diff --git a/pypiper/pypiper.py b/pypiper/pypiper.py
index <HASH>..<HASH> 100755
--- a/pypiper/pypiper.py
+++ b/pypiper/pypiper.py
@@ -239,7 +239,6 @@ class PipelineManager(object):
gitvars = {}
try:
gitvars['pypiper_dir'] = os.path.dirname(os.path.realpath(__file__))
- print("cd " + os.path.dirname(os.path... | Remove erroneous print statement | py |
diff --git a/betfairlightweight/resources/streamingresources.py b/betfairlightweight/resources/streamingresources.py
index <HASH>..<HASH> 100644
--- a/betfairlightweight/resources/streamingresources.py
+++ b/betfairlightweight/resources/streamingresources.py
@@ -442,12 +442,13 @@ class UnmatchedOrder(object):
class ... | Handle hc field when constructing OrderBookRunner Resolves liampauling/betfairlightweight#<I> | py |
diff --git a/moto/route53/models.py b/moto/route53/models.py
index <HASH>..<HASH> 100644
--- a/moto/route53/models.py
+++ b/moto/route53/models.py
@@ -13,7 +13,7 @@ class FakeZone:
self.rrsets[name] = rrset
def delete_rrset(self, name):
- del self.rrsets[name]
+ self.rrsets.pop(name, None)... | handle double deletion caused by httpretty | py |
diff --git a/src/ocrmypdf/_weave.py b/src/ocrmypdf/_weave.py
index <HASH>..<HASH> 100644
--- a/src/ocrmypdf/_weave.py
+++ b/src/ocrmypdf/_weave.py
@@ -75,8 +75,13 @@ def strip_invisible_text(pdf, page, log):
return str(op).encode('ascii')
lines = []
+
for operands, operator in stream:
- ... | Ensure inline image is parsed correctly Requires pikepdf > <I> | py |
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py
index <HASH>..<HASH> 100644
--- a/spyderlib/spyder.py
+++ b/spyderlib/spyder.py
@@ -2125,11 +2125,8 @@ Please provide any additional information below.
# silently ignored here.
eintr = errno.WSAEINTR if os.name == 'nt' else errno.... | Main Window: Fix long waiting time when closing the application Fixes issue <I> - This reverts revision d0bfa<I> | py |
diff --git a/klab/bio/ligand.py b/klab/bio/ligand.py
index <HASH>..<HASH> 100644
--- a/klab/bio/ligand.py
+++ b/klab/bio/ligand.py
@@ -537,9 +537,22 @@ class LigandMap(object):
return lm
+ @staticmethod
+ def from_code_map(ligand_code_map):
+ lm = LigandMap()
+ for k, v in ligand_code_m... | Allowing the LigandMap object to function without instances to map. | py |
diff --git a/python/src/cm_api/endpoints/services.py b/python/src/cm_api/endpoints/services.py
index <HASH>..<HASH> 100644
--- a/python/src/cm_api/endpoints/services.py
+++ b/python/src/cm_api/endpoints/services.py
@@ -1477,7 +1477,28 @@ class ApiService(BaseApiResource):
"""
return self._cmd('hiveCreateMetas... | [sentry] Add python bindings for sentry commands | py |
diff --git a/pyfolio/bayesian.py b/pyfolio/bayesian.py
index <HASH>..<HASH> 100644
--- a/pyfolio/bayesian.py
+++ b/pyfolio/bayesian.py
@@ -60,7 +60,7 @@ def model_returns_t_alpha_beta(data, bmark, samples=2000, progressbar=True):
of the posterior.
"""
- data_bmark = pd.concat([data, bmark], axis='col... | changed axis to integer to line up with pandas concatenator | py |
diff --git a/configargparse.py b/configargparse.py
index <HASH>..<HASH> 100644
--- a/configargparse.py
+++ b/configargparse.py
@@ -420,17 +420,16 @@ class ArgumentParser(argparse.ArgumentParser):
else:
args = list(args)
- new_args = list()
- long_arg_re = re.compile(r"^(?P<key>--[^... | updated following feedback - added comment to explain purpose of code section - replaced regex with check of against prefix_chars, etc. (similar to argparse) - removed no-longer-used index and enumerate() | py |
diff --git a/trionyx/trionyx/apps.py b/trionyx/trionyx/apps.py
index <HASH>..<HASH> 100644
--- a/trionyx/trionyx/apps.py
+++ b/trionyx/trionyx/apps.py
@@ -74,6 +74,7 @@ class Config(BaseConfig):
"""User config"""
list_default_fields = ['created_at', 'email', 'first_name', 'last_name', 'is_active', '... | [TASK] Remove last_login and last_online from auditlog | py |
diff --git a/tensor2tensor/rl/ppo_learner.py b/tensor2tensor/rl/ppo_learner.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/rl/ppo_learner.py
+++ b/tensor2tensor/rl/ppo_learner.py
@@ -134,7 +134,8 @@ class PPOLearner(PolicyLearner):
sampling_temp=sampling_temp,
)
model_saver = tf.train... | Quick fix for stochastic discrete param sharing (#<I>) | py |
diff --git a/bot/bot.py b/bot/bot.py
index <HASH>..<HASH> 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -81,6 +81,8 @@ class Bot:
try:
self.action.process(update)
except Exception as e:
+ # As logger errors are probably API failures that the next updates may also get,
+ ... | Document that we let logger errors propagate in process_update to avoid failing processing too many updates when a limited-time error occurs on the api server side | py |
diff --git a/examples/circos/barbell.py b/examples/circos/barbell.py
index <HASH>..<HASH> 100644
--- a/examples/circos/barbell.py
+++ b/examples/circos/barbell.py
@@ -3,10 +3,13 @@ Displays a NetworkX barbell graph to screen using a CircosPlot.
"""
from nxviz.plots import CircosPlot
+from random import choice
impo... | added node_color and node_order example in barbell graph | py |
diff --git a/websocket/_socket.py b/websocket/_socket.py
index <HASH>..<HASH> 100644
--- a/websocket/_socket.py
+++ b/websocket/_socket.py
@@ -115,7 +115,7 @@ def send(sock, data):
raise WebSocketTimeoutException(message)
except Exception as e:
message = extract_err_message(e)
- if message... | Not all exception messages are actually strings. For example SSLException seems to return just an integer error code from extract_err_message. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,8 @@ setup(
install_requires=[
"iotilecore>=2.0.0",
"sphinx>=1.3.1",
- "scons==2.5.0"
+ "scons==2.5.0",
+ "breathe==4.2.0"
],
package_data={
'iotilebuil... | Add breathe dependency to setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ setup(name='pytest-purkinje',
'purkinje_runner = pytest_purkinje.testrunner:main'
]
},
- classifiers={
+ classifiers=[
'Development Status :: 2 - Pre-Alpha',... | Use list, not set, for Trove classifiers (required for PyPI registration) | py |
diff --git a/src/aiomanhole.py b/src/aiomanhole.py
index <HASH>..<HASH> 100644
--- a/src/aiomanhole.py
+++ b/src/aiomanhole.py
@@ -49,8 +49,10 @@ class InteractiveInterpreter:
def attempt_compile(self, line):
try:
+ # handle an expression which yields a value
codeobj = self.compi... | Make it clear why we're attempting a fallback compile. | py |
diff --git a/xapian_backend.py b/xapian_backend.py
index <HASH>..<HASH> 100755
--- a/xapian_backend.py
+++ b/xapian_backend.py
@@ -1068,27 +1068,17 @@ class XapianSearchQuery(BaseSearchQuery):
"""
return xapian.Query('')
- def _filter_contains(self, term, field_name, field_type, is_not):
+ def... | Fixed #<I> - queries are now consistent with Haystack 2.X. Refactored _filter_contains query constructor. | py |
diff --git a/salt/modules/win_file.py b/salt/modules/win_file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_file.py
+++ b/salt/modules/win_file.py
@@ -707,7 +707,7 @@ def readlink(path):
ReparseTag, = header_parser.unpack(reparse_data[:header_parser.size])
# http://msdn.microsoft.com/en-us/library/win... | Changed the error message slightly so it is obvious the value is hex. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.