diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
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
@@ -478,7 +478,6 @@ class FileSession(Session):
path += self.LOCK_SUFFIX
checker = locking.LockChecker(self.id, self.lock_timeout)
while n... | Removed comment (suggesting a different intent) | py |
diff --git a/fusesoc/simulator/isim.py b/fusesoc/simulator/isim.py
index <HASH>..<HASH> 100644
--- a/fusesoc/simulator/isim.py
+++ b/fusesoc/simulator/isim.py
@@ -53,7 +53,7 @@ class Isim(Simulator):
#Build simulation model
args = []
- args += [ self.toplevel]
+ args += self.toplevel.s... | isim: Fix support for multiple toplevels | py |
diff --git a/libpebble2/version.py b/libpebble2/version.py
index <HASH>..<HASH> 100644
--- a/libpebble2/version.py
+++ b/libpebble2/version.py
@@ -1,4 +1,4 @@
__author__ = 'katharine'
-__version_info__ = (0, 0, 1)
+__version_info__ = (0, 0, 2)
__version__ = '.'.join(map(str, __version_info__)) | Bump to version <I>. | py |
diff --git a/shinken/daemons/arbiterdaemon.py b/shinken/daemons/arbiterdaemon.py
index <HASH>..<HASH> 100644
--- a/shinken/daemons/arbiterdaemon.py
+++ b/shinken/daemons/arbiterdaemon.py
@@ -339,7 +339,7 @@ class Arbiter(Daemon):
statsmgr.incr('hook.get-objects', time.time() - _t)
type... | Fix Exception in arbiter when external module is providing objects. closes #<I> | 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
@@ -59,6 +59,9 @@ def _getargs(func):
if inspect.isfunction(func):
aspec = inspect.getargspec(func)
+ elif inspect.ismethod(func):
+ aspec = inspec... | Add method support to _getargs | py |
diff --git a/symfit/core/minimizers.py b/symfit/core/minimizers.py
index <HASH>..<HASH> 100644
--- a/symfit/core/minimizers.py
+++ b/symfit/core/minimizers.py
@@ -94,7 +94,7 @@ class ScipyMinimize(object):
self.initial_guesses,
bounds=bounds,
constraints=self.constraints,
- ... | Now using wrapped_jacobian for consistency | py |
diff --git a/webmocker/stubbing_engine.py b/webmocker/stubbing_engine.py
index <HASH>..<HASH> 100644
--- a/webmocker/stubbing_engine.py
+++ b/webmocker/stubbing_engine.py
@@ -19,7 +19,7 @@ def start(port_number = pretender_defaults.portno,stub_name = pretender_defaults
restart_pretend(port_number) ... | Update stubbing_engine.py removing space | py |
diff --git a/zarr/indexing.py b/zarr/indexing.py
index <HASH>..<HASH> 100644
--- a/zarr/indexing.py
+++ b/zarr/indexing.py
@@ -961,10 +961,8 @@ class PartialChunkIterator:
# any selection can not be out of the range of the chunk
selection_shape = np.empty(self.arr_shape)[tuple(selection)].shape
... | Unnecessary comprehension (#<I>) | py |
diff --git a/test/unit/conftest.py b/test/unit/conftest.py
index <HASH>..<HASH> 100644
--- a/test/unit/conftest.py
+++ b/test/unit/conftest.py
@@ -40,6 +40,8 @@ class PatchedDriver(OriginalDriver):
def close(self):
pass
+ def is_alive(self):
+ pass
class FakeDevice(BaseTestDouble):
"""... | Patched is_alive test failing | py |
diff --git a/source/rafcon/gui/helpers/state_machine.py b/source/rafcon/gui/helpers/state_machine.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/helpers/state_machine.py
+++ b/source/rafcon/gui/helpers/state_machine.py
@@ -114,8 +114,8 @@ def open_state_machine(path=None, recent_opened_notification=False):
... | fix(helpers.state_machine): Catch all exceptions It is hard to determine all exceptions that can occure in advance. E.g., an ImportError was not listed up till now, which can occur for data ports with custom data types. | py |
diff --git a/phonopy/interface/alm.py b/phonopy/interface/alm.py
index <HASH>..<HASH> 100644
--- a/phonopy/interface/alm.py
+++ b/phonopy/interface/alm.py
@@ -208,7 +208,7 @@ def _update_options(fc_calculator_options):
raise ImportError("ALM python module was not found.")
# Default settings.
- alm_op... | ALM default solver is changed to dense from SimplicialLDLT. | py |
diff --git a/tests/test_snapshots.py b/tests/test_snapshots.py
index <HASH>..<HASH> 100644
--- a/tests/test_snapshots.py
+++ b/tests/test_snapshots.py
@@ -14,9 +14,9 @@ def test_get_snapshot(client, celery_app):
result_doc = json.loads(response.content, encoding='utf-8')
assert response.status == falcon.HTT... | update snapshot test for new hexsha field | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -110,6 +110,12 @@ todo_include_todos = False
# import python_docs_theme
html_theme = "python_docs_theme"
+
+root_name = "Python"
+root_url = "https://github.com/johnbywater/eventsourcing"
+root_icon = "py.p... | Adjusted conf.py. | py |
diff --git a/theanets/recurrent.py b/theanets/recurrent.py
index <HASH>..<HASH> 100644
--- a/theanets/recurrent.py
+++ b/theanets/recurrent.py
@@ -143,7 +143,9 @@ class Regressor(feedforward.Regressor):
vars : list of theano variables
A list of the variables that this network requires as inputs.
... | Declare self.x in setup_vars for recurrent models. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,12 +20,12 @@ setup(
packages=find_packages(),
include_package_data=True,
url='https://github.com/calebsmith/django-template-debug',
- license='GPL',
+ license='BSD',
description=u' '.join(__import... | Changed license over to BSD in setup | py |
diff --git a/spinoff/util/python.py b/spinoff/util/python.py
index <HASH>..<HASH> 100644
--- a/spinoff/util/python.py
+++ b/spinoff/util/python.py
@@ -104,3 +104,11 @@ def clean_tb_twisted(tb_lines):
('twisted/python/failure.py', 'throwExceptionIntoGenerator'),
]
return clean_tb(tb_lines, excludes)
+... | Added the dump_method_call utility for convenient tracing of method call signatures | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ class Tox(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def initialize_options(self):
TestCommand.initialize_options(self)
- self.tox_args = None # '-v'
... | Default tox arguments include -v. Hangs without this for me. | py |
diff --git a/fusesoc/simulator/simulator.py b/fusesoc/simulator/simulator.py
index <HASH>..<HASH> 100644
--- a/fusesoc/simulator/simulator.py
+++ b/fusesoc/simulator/simulator.py
@@ -40,6 +40,7 @@ class Simulator(EdaTool):
self.vpi_modules += [vpi_module]
def configure(self, args, skip_params = ... | Fix simulation that broke in <I>cdf4 | py |
diff --git a/umi_tools/network.py b/umi_tools/network.py
index <HASH>..<HASH> 100644
--- a/umi_tools/network.py
+++ b/umi_tools/network.py
@@ -179,17 +179,21 @@ class ReadClusterer:
def _get_connected_components_adjacency(self, umis, graph, counts):
''' find the connected UMIs within an adjacency dictiona... | removes recursive search as this causes tests to fail | py |
diff --git a/pytablewriter/writer/_table_writer.py b/pytablewriter/writer/_table_writer.py
index <HASH>..<HASH> 100644
--- a/pytablewriter/writer/_table_writer.py
+++ b/pytablewriter/writer/_table_writer.py
@@ -221,41 +221,37 @@ class AbstractTableWriter(TableWriterInterface):
@property
def align_list(self)... | Suppress excessive DeprecationWarning | py |
diff --git a/vaderSentiment/vaderSentiment.py b/vaderSentiment/vaderSentiment.py
index <HASH>..<HASH> 100644
--- a/vaderSentiment/vaderSentiment.py
+++ b/vaderSentiment/vaderSentiment.py
@@ -287,7 +287,9 @@ class SentimentIntensityAnalyzer(object):
if item_lowercase == "no" and words_and_emoticons[i + 1].l... | Handling no as negation Trying out a conditional handler for "no" as negation of an adjacent lexicon item vs "no" as its own stand-alone lexicon item. Addresses issue #<I> and #<I>. | py |
diff --git a/indra/assemblers/sif_assembler.py b/indra/assemblers/sif_assembler.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/sif_assembler.py
+++ b/indra/assemblers/sif_assembler.py
@@ -104,7 +104,7 @@ class SifAssembler(object):
relationship (e.g., most PTMs). Default is False.
"""
... | Upgrade edges in SIF assembler | py |
diff --git a/src/flapjack/resources/base.py b/src/flapjack/resources/base.py
index <HASH>..<HASH> 100644
--- a/src/flapjack/resources/base.py
+++ b/src/flapjack/resources/base.py
@@ -597,7 +597,12 @@ class Base(six.with_metaclass(meta.Resource)):
def item_prepare(self, original):
# Initialize the item obj... | Don't cast to dict if its already one. | py |
diff --git a/quark/test/test_emit.py b/quark/test/test_emit.py
index <HASH>..<HASH> 100644
--- a/quark/test/test_emit.py
+++ b/quark/test/test_emit.py
@@ -69,7 +69,7 @@ def get_expected(name):
def has_main(name):
code = os.path.join(directory, name + ".q")
return os.path.exists(code) and "main" in open(code)... | Pass correct environment so test_run_python works in a virtualenv | py |
diff --git a/testing/conftest.py b/testing/conftest.py
index <HASH>..<HASH> 100644
--- a/testing/conftest.py
+++ b/testing/conftest.py
@@ -22,12 +22,16 @@ def _divert_atexit(request, monkeypatch):
finalizers = []
- def finish():
- while finalizers:
- finalizers.pop()()
+ def fake_regist... | Fix compatibility with pytest master Fix the autouse fixture which diverts atexit.register calls to support the correct signature. | py |
diff --git a/ftpretty.py b/ftpretty.py
index <HASH>..<HASH> 100644
--- a/ftpretty.py
+++ b/ftpretty.py
@@ -74,7 +74,8 @@ class ftpretty(object):
None: contents are pushed
"""
remote_dir = os.path.dirname(remote)
- remote_file = os.path.basename(remote)
+ remote_fi... | Use local filename as remote name when trailing slash on remote path Fixes #2 | py |
diff --git a/sk_dsp_comm/digitalcom.py b/sk_dsp_comm/digitalcom.py
index <HASH>..<HASH> 100644
--- a/sk_dsp_comm/digitalcom.py
+++ b/sk_dsp_comm/digitalcom.py
@@ -1104,7 +1104,7 @@ def AWGN_chan(x_bits,EBN0_dB):
"""
x_bits = 2*x_bits - 1 # convert from 0/1 to -1/1 signal values
var_noise = 10**(-EBN0_dB/... | Minor fix to AWGN_channel in digitalcomm. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
from setuptools import setup, find_packages
-version = '0.2.2'
+version = '0.2.3'
setup(
name='requests-oauth', | Bumping version to <I> | py |
diff --git a/snakeguice/binder.py b/snakeguice/binder.py
index <HASH>..<HASH> 100755
--- a/snakeguice/binder.py
+++ b/snakeguice/binder.py
@@ -101,7 +101,7 @@ class Binder:
class LazyBinder:
def __init__(self, parent=None) -> None:
self._parent = parent or _EmptyBinder()
- self._binding_map: dict[... | fix: structural typing issue in <I> | py |
diff --git a/mill/__init__.py b/mill/__init__.py
index <HASH>..<HASH> 100644
--- a/mill/__init__.py
+++ b/mill/__init__.py
@@ -324,7 +324,7 @@ class Mill:
if power_status is None:
power_status = heater.power_status
operation = 0 if fan_status == heater.fan_status else 4
- payload =... | subdomain (#<I>) | py |
diff --git a/quail/load.py b/quail/load.py
index <HASH>..<HASH> 100644
--- a/quail/load.py
+++ b/quail/load.py
@@ -277,7 +277,9 @@ def load(dbpath=None, recpath=None, remove_subs=None, wordpool=None, groupby=Non
return eggs[0]
def load_example_data():
- with open(os.path.dirname(os.path.abspath(__file__)... | trying a different way to get relative path | py |
diff --git a/renku/cli/dataset.py b/renku/cli/dataset.py
index <HASH>..<HASH> 100644
--- a/renku/cli/dataset.py
+++ b/renku/cli/dataset.py
@@ -80,6 +80,17 @@ comma-separated list of column names:
Displayed results are sorted based on the value of the first column.
+To inspect the state of the dataset on a given co... | docs(dataset): added docs for dataset revision usage (#<I>) | py |
diff --git a/graphistry/pygraphistry.py b/graphistry/pygraphistry.py
index <HASH>..<HASH> 100644
--- a/graphistry/pygraphistry.py
+++ b/graphistry/pygraphistry.py
@@ -84,7 +84,10 @@ class PyGraphistry(object):
out_file = io.BytesIO()
with gzip.GzipFile(fileobj=out_file, mode='w', compresslevel=9) as f... | Try harder to support non-ascii in Python <I> | py |
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based.py
+++ b/openquake/calculators/event_based.py
@@ -600,8 +600,11 @@ class EventBasedCalculator(ClassicalCalculator):
# save individual curves
... | Added a warning for zero hazard curves Former-commit-id: fe<I>d<I>ef<I>c4b<I>b<I>defdcc<I>a<I>a | py |
diff --git a/visidata/loaders/sqlite.py b/visidata/loaders/sqlite.py
index <HASH>..<HASH> 100644
--- a/visidata/loaders/sqlite.py
+++ b/visidata/loaders/sqlite.py
@@ -136,7 +136,13 @@ def save_sqlite(vd, p, *vsheets):
for r in Progress(vs.rows, 'saving'):
sqlvals = []
for col in vs.vi... | [sqlite] handle TypedWrapper and Exceptions before committing to sql Closes #<I> | py |
diff --git a/latools/processes/data_read.py b/latools/processes/data_read.py
index <HASH>..<HASH> 100644
--- a/latools/processes/data_read.py
+++ b/latools/processes/data_read.py
@@ -85,8 +85,9 @@ def read_data(data_file, dataformat, name_mode):
**dataformat['genfromtext_args']).T
... | improved read_data behaviour to remove non-analyte columns. | py |
diff --git a/spyder/config/lsp.py b/spyder/config/lsp.py
index <HASH>..<HASH> 100644
--- a/spyder/config/lsp.py
+++ b/spyder/config/lsp.py
@@ -120,11 +120,14 @@ PYTHON_CONFIG = {
'args': []
},
'flake8': {
- 'enabled': False,
+ ... | Completions: Disable pyls-flake8 plugin This avoids showing results coming from that plugin when users install it on their own. | py |
diff --git a/edeposit/amqp/alephdaemon.py b/edeposit/amqp/alephdaemon.py
index <HASH>..<HASH> 100755
--- a/edeposit/amqp/alephdaemon.py
+++ b/edeposit/amqp/alephdaemon.py
@@ -48,7 +48,7 @@ class AlephDaemon(pikadaemon.PikaDaemon):
try:
reactToAMQPMessage(
- serializers.deserialize... | Removed init_globals() call - globals are now passed directly. | py |
diff --git a/alerta/query/client.py b/alerta/query/client.py
index <HASH>..<HASH> 100755
--- a/alerta/query/client.py
+++ b/alerta/query/client.py
@@ -15,7 +15,7 @@ from alerta.common import config
from alerta.common.utils import relative_date
from alerta.common.graphite import StatsD
-Version = '2.0.13'
+Version =... | improve alert-query utf-8 support | py |
diff --git a/vCenterShell/bootstrap.py b/vCenterShell/bootstrap.py
index <HASH>..<HASH> 100644
--- a/vCenterShell/bootstrap.py
+++ b/vCenterShell/bootstrap.py
@@ -41,7 +41,7 @@ class Bootstrapper(object):
template_deployer = VirtualMachineDeployer(py_vmomi_service, name_generator)
deploy_from_templa... | refactoring and inserting logic of the selection of the first vnic | py |
diff --git a/hamper/plugins/channel_utils.py b/hamper/plugins/channel_utils.py
index <HASH>..<HASH> 100644
--- a/hamper/plugins/channel_utils.py
+++ b/hamper/plugins/channel_utils.py
@@ -15,6 +15,10 @@ class ChannelUtils(ChatCommandPlugin):
def command(self, bot, comm, groups):
"""Join a channel... | Add permissions to channel_utils commands. | py |
diff --git a/lib/emir/recipes/aiv/mask.py b/lib/emir/recipes/aiv/mask.py
index <HASH>..<HASH> 100644
--- a/lib/emir/recipes/aiv/mask.py
+++ b/lib/emir/recipes/aiv/mask.py
@@ -384,8 +384,12 @@ def pinhole_char2(data, ncenters,
_logger.info('Radial fit, peak: %f fwhm %f', rpeak, rfwhm)
- dpeak... | Protect fit_fwhm_enclosed_direct | py |
diff --git a/sql_server/pyodbc/query.py b/sql_server/pyodbc/query.py
index <HASH>..<HASH> 100644
--- a/sql_server/pyodbc/query.py
+++ b/sql_server/pyodbc/query.py
@@ -48,12 +48,12 @@ def query_class(QueryClass):
"""
from django.db.models.fields import DateField, DateTimeField, \
... | Fixed issue <I>. Implement a workaround to try always detect date columns in query results. git-svn-id: <URL> | py |
diff --git a/ib_insync/ib.py b/ib_insync/ib.py
index <HASH>..<HASH> 100644
--- a/ib_insync/ib.py
+++ b/ib_insync/ib.py
@@ -1662,6 +1662,10 @@ class IB:
# the request for executions must come after all orders are in
await asyncio.wait_for(self.reqExecutionsAsync(), timeout or None)
+ ... | Throw ConnectionError when socket connection is broken during connect. | py |
diff --git a/src/you_get/extractor.py b/src/you_get/extractor.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractor.py
+++ b/src/you_get/extractor.py
@@ -98,7 +98,7 @@ class VideoExtractor():
if 'quality' in stream:
print(" quality: %s" % stream['quality'])
- if 'size' in ... | do not print size when the container is m3u8 | py |
diff --git a/lago/providers/libvirt/network.py b/lago/providers/libvirt/network.py
index <HASH>..<HASH> 100644
--- a/lago/providers/libvirt/network.py
+++ b/lago/providers/libvirt/network.py
@@ -226,7 +226,13 @@ class NATNetwork(Network):
)
)
- for hostname, ip4 in self._spec[... | Reduce the number of DHCP entries we add to libvirt. We only need really one entry per host. The fact a host has many DNS names (X-eth..., X-<network-name>, etc...) doesn't mean we need so many DHCP entries. | py |
diff --git a/src/pybel_tools/citation_utils.py b/src/pybel_tools/citation_utils.py
index <HASH>..<HASH> 100644
--- a/src/pybel_tools/citation_utils.py
+++ b/src/pybel_tools/citation_utils.py
@@ -83,17 +83,23 @@ def get_citations_by_pmids(pmids, group_size=200, sleep_time=1, return_errors=Fa
result[pmid] ... | Load more information to citations while enriching | py |
diff --git a/session_security/tests/test_base.py b/session_security/tests/test_base.py
index <HASH>..<HASH> 100644
--- a/session_security/tests/test_base.py
+++ b/session_security/tests/test_base.py
@@ -68,5 +68,5 @@ class BaseLiveServerTestCase(SettingsMixin, LiveServerTestCase):
for win in self.browser.windo... | Use a perhaps more stable page load waiter | py |
diff --git a/language_tool/__main__.py b/language_tool/__main__.py
index <HASH>..<HASH> 100644
--- a/language_tool/__main__.py
+++ b/language_tool/__main__.py
@@ -42,7 +42,7 @@ def parse_args():
def get_rules(rules: str) -> set:
- return {rule.upper() for rule in re.findall(r"\w+", rules)}
+ return {rule.upp... | Some rule IDs use hyphens. | py |
diff --git a/userena/models.py b/userena/models.py
index <HASH>..<HASH> 100644
--- a/userena/models.py
+++ b/userena/models.py
@@ -10,15 +10,14 @@ from django.utils.translation import ugettext_lazy as _
from easy_thumbnails.fields import ThumbnailerImageField
from guardian.shortcuts import get_perms
from userena imp... | adds the permissions defined in managers.py to the models, this way 'manage.py migrate' should be able to create the right permissions | py |
diff --git a/intranet/db/ldap_db.py b/intranet/db/ldap_db.py
index <HASH>..<HASH> 100644
--- a/intranet/db/ldap_db.py
+++ b/intranet/db/ldap_db.py
@@ -20,14 +20,17 @@ class LDAPFilter(object):
specified attribute is contained in a specified list of values.
"""
- return "(|" + "".join(("({}={}... | Fix some PEP8 problems in ldap_db | py |
diff --git a/vertica_python/vertica/connection.py b/vertica_python/vertica/connection.py
index <HASH>..<HASH> 100644
--- a/vertica_python/vertica/connection.py
+++ b/vertica_python/vertica/connection.py
@@ -30,9 +30,9 @@ class Connection(object):
self.reset_values()
options = options or {}
- ... | {k:v for k,v in b} is SyntaxError in python<I> in connection.py | py |
diff --git a/pyresttest/tests.py b/pyresttest/tests.py
index <HASH>..<HASH> 100644
--- a/pyresttest/tests.py
+++ b/pyresttest/tests.py
@@ -343,6 +343,7 @@ class Test(object):
curl.setopt(curl.POSTFIELDS, bod)
curl.setopt(curl.CUSTOMREQUEST, 'PATCH')
# Required for some servers
+ ... | Use postfields/postfieldsize for unspecified custom requests, because it seems to work more often than infieldsize in general | py |
diff --git a/lib/methods/platform.py b/lib/methods/platform.py
index <HASH>..<HASH> 100644
--- a/lib/methods/platform.py
+++ b/lib/methods/platform.py
@@ -6,6 +6,7 @@ from drush import DrushMethod
import copy
+import time
class PlatformMethod(BaseMethod):
@@ -37,6 +38,9 @@ class PlatformMethod(BaseMethod):
... | Delay execution after deployment to give server some time to spin up | py |
diff --git a/gutenberg/gutenberg.py b/gutenberg/gutenberg.py
index <HASH>..<HASH> 100644
--- a/gutenberg/gutenberg.py
+++ b/gutenberg/gutenberg.py
@@ -152,13 +152,13 @@ class GutenbergCorpus(object):
session.commit()
def __len__(self):
- return self._dbsession().query(EText).distinct().count()
+ ... | Define corpus size as number of authors | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='django-moderator',
- version='1.0.3',
+ version='1.0.4',
description='Django Bayesian inference based comment moderation app.',
long... | remove dependency to spambayes since we dont use it anymore | py |
diff --git a/aikif/lib/cls_context.py b/aikif/lib/cls_context.py
index <HASH>..<HASH> 100644
--- a/aikif/lib/cls_context.py
+++ b/aikif/lib/cls_context.py
@@ -182,18 +182,18 @@ class Context(object):
mem = psutil.virtual_memory()
return str(cpu_pct), str(len(process_names)), str(mem.available), str(me... | removed __main__ in cls_context and self tests | py |
diff --git a/octodns/provider/ns1.py b/octodns/provider/ns1.py
index <HASH>..<HASH> 100644
--- a/octodns/provider/ns1.py
+++ b/octodns/provider/ns1.py
@@ -913,7 +913,6 @@ class Ns1Provider(BaseProvider):
def _feed_create(self, monitor):
monitor_id = monitor['id']
self.log.debug('_feed_create: mon... | notifylists have a <I> char limit, not monitors | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,6 +24,7 @@ setup(
platforms='any',
install_requires=[],
tests_require=['mock'],
+ test_suite='tests',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developer... | Added support for 'python setup.py test' | py |
diff --git a/src/ocrpage.py b/src/ocrpage.py
index <HASH>..<HASH> 100755
--- a/src/ocrpage.py
+++ b/src/ocrpage.py
@@ -90,12 +90,13 @@ def pdf_get_pageinfo(infile, page, width_pt, height_pt):
pageinfo['height_inches'] = height_pt / 72.0
pageinfo['images'] = []
- p_pdffonts = Popen(['pdffonts', '-f', str(... | When deciding on OCR, check for presence of text rather than a font It appears to be possible to have a PDF with an embedded font that is either unused or used only for whitespace. So check for some amount of actual text instead. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ requirements = (
setup(
name='combine',
- version='0.0.7.dev0',
+ version='0.0.7',
description='A helpful, simple static site generator.',
long_description=long_description,
long_des... | Preparing release <I> | py |
diff --git a/tests/test_ogcapi_features_pygeoapi.py b/tests/test_ogcapi_features_pygeoapi.py
index <HASH>..<HASH> 100644
--- a/tests/test_ogcapi_features_pygeoapi.py
+++ b/tests/test_ogcapi_features_pygeoapi.py
@@ -23,7 +23,7 @@ def test_ogcapi_features_pygeoapi():
assert paths['/collections/lakes'] is not None
... | adjusted conformance test for ogcapi | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -69,9 +69,11 @@ setup(
author='Ansgar Grunseid',
author_email='grunseid@gmail.com',
url='https://github.com/gruns/icecream',
- description='A little library for sweet and creamy print debugging.',
+ descri... | Tweak setup.py descriptions. | py |
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/engine.py
+++ b/openquake/engine/engine.py
@@ -52,7 +52,10 @@ from openquake.commonlib import readinput, valid, datastore
# patch datastore.get_last_calc_id
def get_last_calc_id(datadir):
"""Re... | Better patch of get_last_calc_id | py |
diff --git a/src/lander/ext/parser/_datamodel.py b/src/lander/ext/parser/_datamodel.py
index <HASH>..<HASH> 100644
--- a/src/lander/ext/parser/_datamodel.py
+++ b/src/lander/ext/parser/_datamodel.py
@@ -266,8 +266,8 @@ class DocumentMetadata(BaseModel):
authors: List[Person] = Field(default_factory=lambda: [])
... | Change date_modified to be a date Starting out as a plain date, as opposed to a datetime, is a better default type because papers often only have YYYY-MM-DD dates, rather than precise datetimes with timezone information. Parsers can subclass the DocumentMetadata model and introduce a more precise datetime type. | py |
diff --git a/pymc3/variational/test_functions.py b/pymc3/variational/test_functions.py
index <HASH>..<HASH> 100644
--- a/pymc3/variational/test_functions.py
+++ b/pymc3/variational/test_functions.py
@@ -1,4 +1,4 @@
-from theano import tensor as tt, theano
+from theano import tensor as tt
from .opvi import TestFunction... | Unused Import (cherry picked from commit 6fc<I>) | py |
diff --git a/salt/pillar/cobbler.py b/salt/pillar/cobbler.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/cobbler.py
+++ b/salt/pillar/cobbler.py
@@ -52,7 +52,7 @@ def ext_pillar(minion_id, pillar, key=None, only=()):
try:
server = xmlrpclib.Server(url, allow_none=True)
if user:
- ser... | correct invalid xmlrpclib auth Same as #<I>, but for pillar this time. | py |
diff --git a/test_madoka.py b/test_madoka.py
index <HASH>..<HASH> 100644
--- a/test_madoka.py
+++ b/test_madoka.py
@@ -109,6 +109,7 @@ class MadokaTest(object):
sketch.open(sketch_file)
assert_equal(sketch['mami'], 14)
finally:
+ del sketch
os.remove(sketch_fil... | Avoiding PermissionError for supporting Windows | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
-version = '0.8.0'
+version = '0.8.2'
setup(
name='dashed', | Fixing build issues with preventive rm /Users/maxime_beauchemin/.npm/*.lock | py |
diff --git a/asv_bench/benchmarks/join_merge.py b/asv_bench/benchmarks/join_merge.py
index <HASH>..<HASH> 100644
--- a/asv_bench/benchmarks/join_merge.py
+++ b/asv_bench/benchmarks/join_merge.py
@@ -262,12 +262,24 @@ class MergeCategoricals:
Z=self.right_object["Z"].astype("category")
)
+ ... | ASV: Add merge on categorical benchmarks (#<I>) | py |
diff --git a/make_release.py b/make_release.py
index <HASH>..<HASH> 100644
--- a/make_release.py
+++ b/make_release.py
@@ -9,8 +9,9 @@ run(['bash', 'make_readme.sh'], check=True)
if not os.path.exists('README.rst'):
import pypandoc
- long_description = pypandoc.convert_file('README.md', 'rst', outputfile='RE... | Fix bug on README generation and run tests before release | py |
diff --git a/sh.py b/sh.py
index <HASH>..<HASH> 100644
--- a/sh.py
+++ b/sh.py
@@ -29,8 +29,9 @@ __project_url__ = "https://github.com/amoffat/sh"
import platform
if "windows" in platform.system().lower():
- raise ImportError("sh 1.0 is currently only supported on linux and osx. \
-please install pbs 0.109 (http... | changing windows import error to include current sh version | py |
diff --git a/app_init/app_lib.py b/app_init/app_lib.py
index <HASH>..<HASH> 100644
--- a/app_init/app_lib.py
+++ b/app_init/app_lib.py
@@ -63,7 +63,7 @@ class AppLib:
# after adding the current working directory.
if lib_directory is None:
lib_directory = lib_latest
- sys.path.inser... | + updated app_lib to set full path to lib_ directory. | py |
diff --git a/play/resolve.py b/play/resolve.py
index <HASH>..<HASH> 100644
--- a/play/resolve.py
+++ b/play/resolve.py
@@ -17,6 +17,7 @@ Recommended cases to test:
import argparse
import operator
+import os
from requirementslib import Pipfile, Requirement
from requirementslib.models.utils import make_install_re... | Change working directory to project if provided | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,9 +13,9 @@ setup(
download_url = 'https://github.com/byu-dml/metalearn/archive/{}.tar.gz'.format(__version__),
keywords = ['metalearning', 'machine learning', 'metalearn'],
install_requires = [
- 'num... | Bump install deps to allow d3m core ranges | py |
diff --git a/wily/commands/report.py b/wily/commands/report.py
index <HASH>..<HASH> 100644
--- a/wily/commands/report.py
+++ b/wily/commands/report.py
@@ -61,7 +61,7 @@ def report(config, path, metrics, n, include_message=False):
for archiver in archivers:
state = State(config, archiver)
# We hav... | fix bug in report command with -n flag showing last-n instead of first-n | py |
diff --git a/src/auditlog/mixins.py b/src/auditlog/mixins.py
index <HASH>..<HASH> 100644
--- a/src/auditlog/mixins.py
+++ b/src/auditlog/mixins.py
@@ -2,6 +2,7 @@ import json
from django.conf import settings
from django.core import urlresolvers
+from django.urls.exceptions import NoReverseMatch
MAX = 75
@@ -26... | Don't crash if the linked object is not in the admin (fixes #<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-easy-timezones',
- version='0.4.0',
+ version='0.5.0',
packages=['easy_timezones'],
inst... | <I> - include default IP file, adds starter test coverage, adds more complete ipv6 support | py |
diff --git a/spyderlib/pygments_patch.py b/spyderlib/pygments_patch.py
index <HASH>..<HASH> 100644
--- a/spyderlib/pygments_patch.py
+++ b/spyderlib/pygments_patch.py
@@ -20,6 +20,7 @@ def apply():
# Patching IPython's patch of RegLexer (Oh God!!)
from pygments.lexer import _TokenType, Text, Error
+ ... | Restore compatibility with Python <I> Fixes #<I> | py |
diff --git a/telemetry/telemetry/page/actions/gesture_action.py b/telemetry/telemetry/page/actions/gesture_action.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/page/actions/gesture_action.py
+++ b/telemetry/telemetry/page/actions/gesture_action.py
@@ -21,7 +21,10 @@ class GestureAction(page_action.PageAction... | Disable auto narrowing for gesture that contains the wait_after BUG=<I> Review URL: <URL> | py |
diff --git a/tests/server/blueprints/cases/test_cases_views.py b/tests/server/blueprints/cases/test_cases_views.py
index <HASH>..<HASH> 100644
--- a/tests/server/blueprints/cases/test_cases_views.py
+++ b/tests/server/blueprints/cases/test_cases_views.py
@@ -17,7 +17,7 @@ def test_parse_raw_gene_symbols(app):
""" ... | And the test ofcourse had the same idea.. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -48,9 +48,9 @@ copyright = u'2012, Matias Bordese'
# built documents.
#
# The short X.Y version.
-version = '0.2'
+version = '0.3'
# The full version, including alpha/beta/rc tags.
-release = '0.2'
+release... | Updated version for sphinx. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,10 +7,10 @@ setup_requires = [
'setuptools>=54.2.0',
]
install_requires = [
- 'aiohttp~=3.7.4',
+ 'aiohttp~=3.8.0',
'aiotusclient~=0.1.4',
'appdirs~=1.4.4',
- 'async_timeout>=3.0',
+ 'async_time... | setup: Upgrade aiohttp to <I> series and other deps | py |
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py
index <HASH>..<HASH> 100755
--- a/fontbakery-check-ttf.py
+++ b/fontbakery-check-ttf.py
@@ -750,9 +750,6 @@ def main():
result += c
return result.strip()
- def stylename_with_spaces(stylename):
- return stylename.replace('Italic', ... | inline stylename_with_spaces (issue #<I>) | py |
diff --git a/pathvalidate/_file.py b/pathvalidate/_file.py
index <HASH>..<HASH> 100644
--- a/pathvalidate/_file.py
+++ b/pathvalidate/_file.py
@@ -32,13 +32,9 @@ from .error import (
_DEFAULT_MAX_FILENAME_LEN = 255
-def _extract_root_name(path: str) -> str:
- return os.path.splitext(os.path.basename(path))[0]
-... | Change a function to a private method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -92,14 +92,14 @@ gdrive = ["pydrive2>=1.6.2", "six >= 1.13.0"]
s3 = ["boto3>=1.9.201"]
azure = ["azure-storage-blob>=12.0", "knack"]
oss = ["oss2==2.6.1"]
-ssh = ["paramiko>=2.5.0"]
+ssh = ["paramiko[invoke]>=2.7.0"]
hdfs ... | ssh: install paramiko with invoke (#<I>) Paramiko has recently added support for `Match` <URL> | py |
diff --git a/easyaudit/signals.py b/easyaudit/signals.py
index <HASH>..<HASH> 100644
--- a/easyaudit/signals.py
+++ b/easyaudit/signals.py
@@ -118,7 +118,6 @@ def m2m_changed(sender, instance, action, reverse, model, pk_set, using, **kwarg
crud_event.save()
except Exception:
logger.exception('eas... | Remove extraneous `pass` | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -168,7 +168,7 @@ except ImportError:
from openquake.baselib import hdf5, config
from openquake.baselib.zeromq import zmq, Socket
-from ope... | Small improvement [skip CI] | py |
diff --git a/src/binwalk/prettyprint.py b/src/binwalk/prettyprint.py
index <HASH>..<HASH> 100644
--- a/src/binwalk/prettyprint.py
+++ b/src/binwalk/prettyprint.py
@@ -1,3 +1,4 @@
+import io
import sys
import hashlib
import csv as pycsv
@@ -62,7 +63,7 @@ class PrettyPrint:
self.enable_formatting(True)
if sel... | Logging now working in python3, except for --csv. | py |
diff --git a/shap/explainers/tree.py b/shap/explainers/tree.py
index <HASH>..<HASH> 100644
--- a/shap/explainers/tree.py
+++ b/shap/explainers/tree.py
@@ -488,8 +488,11 @@ class TreeEnsemble:
self.trees = [Tree(e) for e in tree_info]
except:
self.trees = None # we get here... | Partially fix #<I> The real solution is to not let loss explanations also break | py |
diff --git a/programs/install_etopo.py b/programs/install_etopo.py
index <HASH>..<HASH> 100755
--- a/programs/install_etopo.py
+++ b/programs/install_etopo.py
@@ -7,6 +7,9 @@ from pmagpy import pmag
def main():
+ if '-h' in sys.argv:
+ print("Some mapping utilities use the Etopo package for topography an... | install_etopo.py: add -h option, make copy work for Windows | py |
diff --git a/kubespawner/objects.py b/kubespawner/objects.py
index <HASH>..<HASH> 100644
--- a/kubespawner/objects.py
+++ b/kubespawner/objects.py
@@ -40,6 +40,9 @@ from kubernetes_asyncio.client.models import V1Volume
from kubernetes_asyncio.client.models import V1VolumeMount
from kubernetes_asyncio.client.models im... | Add inline comment about import workaround | py |
diff --git a/ssbio/test/test_protein_seqprop.py b/ssbio/test/test_protein_seqprop.py
index <HASH>..<HASH> 100644
--- a/ssbio/test/test_protein_seqprop.py
+++ b/ssbio/test/test_protein_seqprop.py
@@ -1,5 +1,6 @@
import pytest
import os.path as op
+import ssbio.utils
from Bio import SeqIO
from BCBio import GFF
from ... | Add check for existence of pepstats program for testing | py |
diff --git a/satpy/resample.py b/satpy/resample.py
index <HASH>..<HASH> 100644
--- a/satpy/resample.py
+++ b/satpy/resample.py
@@ -195,7 +195,7 @@ class KDTreeResampler(BaseResampler):
if radius_of_influence is None:
try:
radius_of_influence = source_geo_def.lons.resolution * 3
- ... | Fix radius_of_influence computation when resolution is not defined | py |
diff --git a/vyper/old_codegen/parser_utils.py b/vyper/old_codegen/parser_utils.py
index <HASH>..<HASH> 100644
--- a/vyper/old_codegen/parser_utils.py
+++ b/vyper/old_codegen/parser_utils.py
@@ -290,6 +290,10 @@ def add_variable_offset(parent, key, pos, array_bounds_check=True):
index = key
an... | fix handling of None in add_variable_offset | py |
diff --git a/opendatalake/detection/utils.py b/opendatalake/detection/utils.py
index <HASH>..<HASH> 100644
--- a/opendatalake/detection/utils.py
+++ b/opendatalake/detection/utils.py
@@ -440,7 +440,7 @@ class Detection3dSimplified(Detection):
def to_array(self):
return [self.class_id, self.x, self.y, self... | Added unused parameter, so all 3d detections have the same interface. | py |
diff --git a/devassistant/cli/cli_runner.py b/devassistant/cli/cli_runner.py
index <HASH>..<HASH> 100644
--- a/devassistant/cli/cli_runner.py
+++ b/devassistant/cli/cli_runner.py
@@ -49,7 +49,7 @@ class CliRunner(object):
argparser = argparse_generator.ArgparseGenerator.\
generate_argument_parser(... | Fix checking for da_debug in cli_runner (the previous code made it always use DEBUG) | py |
diff --git a/termenu.py b/termenu.py
index <HASH>..<HASH> 100644
--- a/termenu.py
+++ b/termenu.py
@@ -24,9 +24,7 @@ class Menu(object):
self.title = title
self.options = options
self.maxColumnWidth = maxColumnWidth
- self.width = max(len(option) for option in self.options)
- if... | menu is now only as wide as neccessary | py |
diff --git a/pyca/ca.py b/pyca/ca.py
index <HASH>..<HASH> 100644
--- a/pyca/ca.py
+++ b/pyca/ca.py
@@ -121,7 +121,7 @@ def start_capture(schedule):
logging.info('Start recording')
duration = schedule[1] - now
recording_id = schedule[2]
- recording_name = 'recording-%s-%i' % (recording_id, now)
+ recording_name = ... | Order Recordings by Name This commit changes the recording name in a way that the files and directories are easily orderable by date instead of by recording id. | py |
diff --git a/eli5/keras/explain_prediction.py b/eli5/keras/explain_prediction.py
index <HASH>..<HASH> 100644
--- a/eli5/keras/explain_prediction.py
+++ b/eli5/keras/explain_prediction.py
@@ -41,8 +41,6 @@ def explain_prediction_keras(model, # type: Model
"""
Explain the prediction of a Keras classifier with t... | Remove TODO: explain Grad-CAM in docstring. (Will be explained in keras docs) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.