diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/visidata/sheets.py b/visidata/sheets.py
index <HASH>..<HASH> 100644
--- a/visidata/sheets.py
+++ b/visidata/sheets.py
@@ -834,10 +834,10 @@ class SequenceSheet(Sheet):
itsource = self.iterload()
# skip the first options.skip rows
- list(self.optlines(it, 'skip'))
+ list(se... | [fixed-] fix SequenceSheet.reload | py |
diff --git a/digSparkUtil/dictUtil.py b/digSparkUtil/dictUtil.py
index <HASH>..<HASH> 100644
--- a/digSparkUtil/dictUtil.py
+++ b/digSparkUtil/dictUtil.py
@@ -1,7 +1,9 @@
#!/usr/bin/env python
+import collections
+
def as_dict(likeDict):
- if isinstance(likeDict, dict):
+ if isinstance(likeDict, collections.M... | use ABC collections for more generality: anything which is like a dict will pass | py |
diff --git a/ssh_check/test/test_ssh.py b/ssh_check/test/test_ssh.py
index <HASH>..<HASH> 100644
--- a/ssh_check/test/test_ssh.py
+++ b/ssh_check/test/test_ssh.py
@@ -57,7 +57,7 @@ class SshTestCase(unittest.TestCase):
service = self.check.get_service_checks()
self.assertEqual(service[0].get('status... | [ssh_check] fix failing test (#<I>) * [ssh_check] fix failing test | py |
diff --git a/varlink/__init__.py b/varlink/__init__.py
index <HASH>..<HASH> 100644
--- a/varlink/__init__.py
+++ b/varlink/__init__.py
@@ -287,11 +287,20 @@ class InvalidParameter(VarlinkError):
VarlinkError.__init__(self, 'org.varlink.service.InvalidParameter', {'parameter': name})
class Client(dict):
- ... | Client: add resolving interfaces automatically | py |
diff --git a/telethon/client/telegrambaseclient.py b/telethon/client/telegrambaseclient.py
index <HASH>..<HASH> 100644
--- a/telethon/client/telegrambaseclient.py
+++ b/telethon/client/telegrambaseclient.py
@@ -292,6 +292,9 @@ class TelegramBaseClient(abc.ABC):
Disconnects from Telegram.
"""
... | Await updates task to finish upon disconnect | py |
diff --git a/harpoon/dockerpty/io.py b/harpoon/dockerpty/io.py
index <HASH>..<HASH> 100644
--- a/harpoon/dockerpty/io.py
+++ b/harpoon/dockerpty/io.py
@@ -207,6 +207,8 @@ class Demuxer(object):
while True:
try:
nxt = self.stream.read(size - len(data))
+ ... | Deal with the situation where can't read from the stream but stream is still open | py |
diff --git a/reana_commons/version.py b/reana_commons/version.py
index <HASH>..<HASH> 100755
--- a/reana_commons/version.py
+++ b/reana_commons/version.py
@@ -14,4 +14,4 @@ and parsed by ``setup.py``.
from __future__ import absolute_import, print_function
-__version__ = "0.8.0a26"
+__version__ = "0.8.0a27" | release: <I>a<I> | py |
diff --git a/example/read_multi.py b/example/read_multi.py
index <HASH>..<HASH> 100644
--- a/example/read_multi.py
+++ b/example/read_multi.py
@@ -54,16 +54,17 @@ result, data_items = client.read_multi_vars(data_items)
for di in data_items:
check_error(di.Result)
-# struct formats
-fmts = ['>f', '>f', '>h']
+re... | Update read_multi.py (#<I>) | py |
diff --git a/wftool/workflow.py b/wftool/workflow.py
index <HASH>..<HASH> 100644
--- a/wftool/workflow.py
+++ b/wftool/workflow.py
@@ -38,6 +38,14 @@ class WorkflowGenerator(object):
self.outputs[output_name] = obj
+ def _get_step(self, name):
+ s = self.steps_library.get(name)
+ if s is N... | Add method to WorkflowGenerator that get a step The method returns a step from the steps_library or raises an error if the step cannot be found. | py |
diff --git a/py/testdir_multi_jvm/test_rf_parity_500trees.py b/py/testdir_multi_jvm/test_rf_parity_500trees.py
index <HASH>..<HASH> 100644
--- a/py/testdir_multi_jvm/test_rf_parity_500trees.py
+++ b/py/testdir_multi_jvm/test_rf_parity_500trees.py
@@ -34,7 +34,7 @@ class Basic(unittest.TestCase):
sys.stdout... | Drop from <I> to <I> to make test work. | py |
diff --git a/parsl/data_provider/data_manager.py b/parsl/data_provider/data_manager.py
index <HASH>..<HASH> 100644
--- a/parsl/data_provider/data_manager.py
+++ b/parsl/data_provider/data_manager.py
@@ -150,7 +150,7 @@ class DataManager(ParslExecutor):
return f
def _file_transfer_in(self, file):
- ... | Make sure that all transfer functions return the same types | 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
@@ -234,3 +234,5 @@ SqliteIndexSheet.addCommand('a', 'add-table', 'fail("create a new table by savin
SqliteIndexSheet.bindkey('ga', 'add-table')
SqliteShee... | [api] add SqliteQuerySheet to globals | py |
diff --git a/gtdoit/logbook.py b/gtdoit/logbook.py
index <HASH>..<HASH> 100644
--- a/gtdoit/logbook.py
+++ b/gtdoit/logbook.py
@@ -441,9 +441,9 @@ class RotatedEventStore(EventStore):
for not_identified_file in not_identified_files:
self.logger.warn(' * %s', not_identified_file)
- ... | Bugfix: batchno is now correctly identified batchno was not extracted from only identified files. This created an error as soon as we started having a checksum in the directories, too. Tests are still failing. | py |
diff --git a/py/selenium/webdriver/remote/webdriver.py b/py/selenium/webdriver/remote/webdriver.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/remote/webdriver.py
+++ b/py/selenium/webdriver/remote/webdriver.py
@@ -167,11 +167,15 @@ class WebDriver(object):
- javascript_enabled - Whether the new s... | Ensure all capabilities are either within desiredCapabilities or requiredCapabilities | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100755
--- a/main.py
+++ b/main.py
@@ -107,7 +107,9 @@ def makeEPUB(document, xml_local, cache_dir, outdirect, log_to):
to generate the ePub content.
'''
print(u'Processing output to {0}.epub'.format(outdirect))
- output.generateHierarchy(outdirect)
... | Modified workflow to utilize utils.makeEPUBBase() and to copy this base directory instead of creating it each time | py |
diff --git a/pygraphml/graph.py b/pygraphml/graph.py
index <HASH>..<HASH> 100755
--- a/pygraphml/graph.py
+++ b/pygraphml/graph.py
@@ -76,12 +76,10 @@ class Graph:
root = self.root()
queue = deque()
- queue.append(self.root())
+ queue.append(root)
nodes = []
- s... | The Graph::BFS() function takes a single argument specifiying the node from which to start the breadth-first-search. However, line <I> of graph.py prevented the parameter from being applied. I also removed line <I> because the self.depth value is not used anywhere in the package. -Josh | py |
diff --git a/tests/test_engine.py b/tests/test_engine.py
index <HASH>..<HASH> 100644
--- a/tests/test_engine.py
+++ b/tests/test_engine.py
@@ -535,3 +535,28 @@ def test_bind_different_engines():
# regardless of how many times the model has been bound already
assert Concrete in first_engine.type_engine.bound_t... | Test engine guards against operations on abstract models | py |
diff --git a/modin/pandas/__init__.py b/modin/pandas/__init__.py
index <HASH>..<HASH> 100644
--- a/modin/pandas/__init__.py
+++ b/modin/pandas/__init__.py
@@ -262,13 +262,15 @@ def _update_engine(publisher: Publisher):
warnings.warn("The Dask Engine for Modin is experimental.")
- try:
- ... | Fix regression introduced in #<I> where Dask Client was created (#<I>) | py |
diff --git a/test/test_big_phi.py b/test/test_big_phi.py
index <HASH>..<HASH> 100644
--- a/test/test_big_phi.py
+++ b/test/test_big_phi.py
@@ -28,7 +28,8 @@ def test_concept(s):
def big_phi_standard_example(subsystem):
initial_precision = options.PRECISION
options.PRECISION = 4
- phi = cyphi.compute.big_p... | Don't use the persistent cache in testing | py |
diff --git a/src/aws_encryption_sdk/internal/utils/streams.py b/src/aws_encryption_sdk/internal/utils/streams.py
index <HASH>..<HASH> 100644
--- a/src/aws_encryption_sdk/internal/utils/streams.py
+++ b/src/aws_encryption_sdk/internal/utils/streams.py
@@ -41,12 +41,12 @@ class TeeStream(ObjectProxy):
:type tee: io.... | moving TeeStream internal tee to private name to avoid potential future dunder conflict | py |
diff --git a/salt/fileserver/hgfs.py b/salt/fileserver/hgfs.py
index <HASH>..<HASH> 100644
--- a/salt/fileserver/hgfs.py
+++ b/salt/fileserver/hgfs.py
@@ -875,4 +875,6 @@ def _get_dir_list(load):
ret.add(os.path.join(repo['mountpoint'], relpath))
split = split[0].rsplit... | Fix file.recurse on root of hgfs repo This fixes a condition where a file.recurse fails on the root of an hgfs repo when the repo has a mountpoint. See #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ setup(
author_email='a.roggeri.c@gmail.com',
license='MIT',
packages=find_packages(),
- package_data={'pynubank': ['queries/*.gql']},
+ package_data={'pynubank': ['queries/*.gql', 'utils/mocke... | fix: Mocked responses json files were missing on Pypi mocked responses json files missing when installing using setuptools | py |
diff --git a/maze_explorer.py b/maze_explorer.py
index <HASH>..<HASH> 100644
--- a/maze_explorer.py
+++ b/maze_explorer.py
@@ -518,6 +518,7 @@ class WorldLayer(cocos.layer.Layer, mc.RectMapCollider):
def update_visited(self, pos):
assert isinstance(pos, eu.Vector2)
+ # Helper function
de... | Add comments for set_visited | py |
diff --git a/phoebe/backend/universe.py b/phoebe/backend/universe.py
index <HASH>..<HASH> 100644
--- a/phoebe/backend/universe.py
+++ b/phoebe/backend/universe.py
@@ -170,7 +170,7 @@ class System(object):
_dump = kwargs.pop('dynamics_method')
meshables = hier.get_meshables()
- bodies_dict... | fix mesh_method='wd' distortion_method parameter isn't visible... but we always want to use Roche for mesh_method='wd' | py |
diff --git a/hmtk/parsers/catalogue/csv_catalogue_parser.py b/hmtk/parsers/catalogue/csv_catalogue_parser.py
index <HASH>..<HASH> 100644
--- a/hmtk/parsers/catalogue/csv_catalogue_parser.py
+++ b/hmtk/parsers/catalogue/csv_catalogue_parser.py
@@ -40,7 +40,6 @@ class CsvCatalogueParser(BaseCatalogueParser):
def _he... | Cleaned csv catalogue parser | py |
diff --git a/synapse/lib/remcycle.py b/synapse/lib/remcycle.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/remcycle.py
+++ b/synapse/lib/remcycle.py
@@ -183,7 +183,7 @@ class Nyx(object):
# Make copies of object so the returned multable dictionary does not
# affect the
d = {'doc': str(self.... | Python2 doesn't support .copy() on list objects. | py |
diff --git a/example/bi-lstm-sort/gen_data.py b/example/bi-lstm-sort/gen_data.py
index <HASH>..<HASH> 100644
--- a/example/bi-lstm-sort/gen_data.py
+++ b/example/bi-lstm-sort/gen_data.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NO... | add license to new file (#<I>) | py |
diff --git a/lib/hosts.py b/lib/hosts.py
index <HASH>..<HASH> 100644
--- a/lib/hosts.py
+++ b/lib/hosts.py
@@ -101,7 +101,8 @@ class Host(object):
@property
def connection(self):
- c = pymongo.Connection(self.hostname)
+ hostname = "localhost:{port}".format(port=self.port)
+ c = pymongo... | use "localhost" as connection's hostname | py |
diff --git a/openpnm/core/_models.py b/openpnm/core/_models.py
index <HASH>..<HASH> 100644
--- a/openpnm/core/_models.py
+++ b/openpnm/core/_models.py
@@ -218,13 +218,13 @@ class ModelWrapper(dict):
"""
def __call__(self):
- f = self['model']
- target = self._find_parent()
- kwargs = se... | removing double definition of __call__ in models dict | py |
diff --git a/AdvancedHTMLParser/constants.py b/AdvancedHTMLParser/constants.py
index <HASH>..<HASH> 100644
--- a/AdvancedHTMLParser/constants.py
+++ b/AdvancedHTMLParser/constants.py
@@ -66,7 +66,7 @@ TAG_ITEM_CHANGE_NAME_FROM_ITEM = {
}
# These attributes are binary (only accept true/false)
-TAG_ITEM_BINARY_ATTRIB... | Handle 'selected' as a binary attribute (value massaged to always True/False), same as 'checked' attribute is handled. | py |
diff --git a/gui/riabmap.py b/gui/riabmap.py
index <HASH>..<HASH> 100644
--- a/gui/riabmap.py
+++ b/gui/riabmap.py
@@ -972,7 +972,7 @@ class RiabMap():
myComposerMap = self.drawMap(myTopOffset)
self.drawScaleBar(myComposerMap, myTopOffset)
# Update the top offset for the next horizontal row o... | Overlap legend title over bottom graticule lables more neatly | py |
diff --git a/masonite/routes.py b/masonite/routes.py
index <HASH>..<HASH> 100644
--- a/masonite/routes.py
+++ b/masonite/routes.py
@@ -1,10 +1,13 @@
''' Module for the Routing System '''
+import cgi
import importlib
import re
from pydoc import locate
from config import middleware
+import cgitb; cgitb.enable()
... | fixed how the environ is loaded into the query_string | py |
diff --git a/cumulusci/cli/cci.py b/cumulusci/cli/cci.py
index <HASH>..<HASH> 100644
--- a/cumulusci/cli/cci.py
+++ b/cumulusci/cli/cci.py
@@ -169,7 +169,8 @@ def pass_runtime(func=None, require_project=True):
SUGGEST_GIT_GIST_COMMAND = """\nIt looks like you may have run into an error. Did you know cci has a comm... | link to 'reporting error logs' doc | py |
diff --git a/tests/test_callsite_maker.py b/tests/test_callsite_maker.py
index <HASH>..<HASH> 100644
--- a/tests/test_callsite_maker.py
+++ b/tests/test_callsite_maker.py
@@ -31,7 +31,7 @@ def test_callsite_maker():
main_func = cfg.kb.functions['main']
for block in sorted(main_func.blocks, key=lambda x: x.a... | Fix two leftover print statements during py2->py3 conversion. | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -338,7 +338,7 @@ class EWSTest(unittest.TestCase):
if field_type == int:
return get_random_int(0, 256)
if field_type == Decimal:
- return get_random... | Don't allow 0 and <I> percent random values Apparently, some server-side logic kicks in with these values which sometimes affects other parameters, e.g. `is_complete` and `status`. | py |
diff --git a/visidata/vdtui.py b/visidata/vdtui.py
index <HASH>..<HASH> 100755
--- a/visidata/vdtui.py
+++ b/visidata/vdtui.py
@@ -2723,7 +2723,7 @@ def editText(scr, y, x, w, i=0, attr=curses.A_NORMAL, value='', fillchar=' ', tr
elif ch == '^U': v = v[i:]; i = 0 # clear to beginning... | [editline] suspend in editline resumes in editline | py |
diff --git a/tests/tools_tests.py b/tests/tools_tests.py
index <HASH>..<HASH> 100644
--- a/tests/tools_tests.py
+++ b/tests/tools_tests.py
@@ -5,6 +5,7 @@ import os
import unittest
import ifcfg
+from ifcfg.tools import exec_cmd
from nose.tools import eq_
@@ -15,3 +16,7 @@ class IfcfgToolsTestCase(unittest.Test... | Add a test that calls exec_cmd | py |
diff --git a/src/infi/projector/helper/utils/__init__.py b/src/infi/projector/helper/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/src/infi/projector/helper/utils/__init__.py
+++ b/src/infi/projector/helper/utils/__init__.py
@@ -123,8 +123,6 @@ def _release_version_with_git_flow(version_tag):
gitflow.finish(... | HOSTDEV-<I> no need for empty commit in develop branch after release if it is not tagged | py |
diff --git a/const.py b/const.py
index <HASH>..<HASH> 100644
--- a/const.py
+++ b/const.py
@@ -366,6 +366,7 @@ class DEF(object):
Orthonorm_Tol = 1e-8 (Acceptable deviation from Kronecker delta for
orthonormality testing)
HESS_Coord_Match_Tol = 1e-6 (Max precision of HESS geometr... | Add DEF.HESS_IR_Match_Tol Have to accommodate the different precision in the frequencies reported in the 'frequencies' block versus those listed as part of the IR spectrum. | py |
diff --git a/bigchaindb/consensus.py b/bigchaindb/consensus.py
index <HASH>..<HASH> 100644
--- a/bigchaindb/consensus.py
+++ b/bigchaindb/consensus.py
@@ -1,5 +1,11 @@
+import logging
+
from bigchaindb.util import verify_vote_signature
-from bigchaindb.common.schema import validate_vote_schema, SchemaValidationError
+... | better logging and arrangement for vote verification | py |
diff --git a/scapy/tools/UTscapy.py b/scapy/tools/UTscapy.py
index <HASH>..<HASH> 100755
--- a/scapy/tools/UTscapy.py
+++ b/scapy/tools/UTscapy.py
@@ -843,7 +843,8 @@ def main(argv):
if FORMAT == Format.HTML:
glob_output = pack_html_campaigns(runned_campaigns, glob_output, LOCAL, glob_title)
- OU... | UTscapy: do not write bytes to stdout | py |
diff --git a/docs/modeltranslation/conf.py b/docs/modeltranslation/conf.py
index <HASH>..<HASH> 100644
--- a/docs/modeltranslation/conf.py
+++ b/docs/modeltranslation/conf.py
@@ -28,7 +28,18 @@ try:
version = '.'.join(str(i) for i in modeltranslation.VERSION[:2])
# The full PEP386-compliant version number ver... | Added broader exception handling in version determination to see if this fixes build problems on rtd. | py |
diff --git a/gpflow/params/parameterized.py b/gpflow/params/parameterized.py
index <HASH>..<HASH> 100644
--- a/gpflow/params/parameterized.py
+++ b/gpflow/params/parameterized.py
@@ -210,11 +210,11 @@ class Parameterized(Node):
prev_values = {}
for key in val_keys:
try:
- p... | Clarify variables naming at assign Parameter's method. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ requirements = [
# Protocol and data packages
"pytmpdir >= 0.2.3", # A temporary directory, useful for extracting archives to
"txhttputil >= 0.2.7", # Utility class for http requests
- "vorte... | Updated dependency to "vortexpy >= <I>" PEEK-<I> | py |
diff --git a/pyblish_qml/control.py b/pyblish_qml/control.py
index <HASH>..<HASH> 100644
--- a/pyblish_qml/control.py
+++ b/pyblish_qml/control.py
@@ -719,12 +719,13 @@ class Controller(QtCore.QObject):
% abs(stats["requestCount"]))
# Reset Context
- context = self.data[... | Support customising Context label during collection. | py |
diff --git a/rope/refactor/importutils/module_imports.py b/rope/refactor/importutils/module_imports.py
index <HASH>..<HASH> 100644
--- a/rope/refactor/importutils/module_imports.py
+++ b/rope/refactor/importutils/module_imports.py
@@ -37,11 +37,15 @@ class ModuleImports:
all_star_list = pymodule.get_attrib... | Check whether assignments attribute exists in all_star_list | py |
diff --git a/terrabot/packets/packet.py b/terrabot/packets/packet.py
index <HASH>..<HASH> 100644
--- a/terrabot/packets/packet.py
+++ b/terrabot/packets/packet.py
@@ -5,9 +5,14 @@ class Packet(object):
# Data is an array containing the payload of the packet:
# the length does not need to be set but is calcu... | Added a second argument in the Packet contructor | py |
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py
index <HASH>..<HASH> 100644
--- a/pkg_resources/tests/test_resources.py
+++ b/pkg_resources/tests/test_resources.py
@@ -511,6 +511,10 @@ class TestParsing:
def test_local_version(self):
req, = parse_requirements('fo... | Add test capturing expectation that spaces between version specifiers should be allowed. Ref #<I>. | py |
diff --git a/astrocats/catalog/catdict.py b/astrocats/catalog/catdict.py
index <HASH>..<HASH> 100644
--- a/astrocats/catalog/catdict.py
+++ b/astrocats/catalog/catdict.py
@@ -178,7 +178,7 @@ class CatDict(OrderedDict):
err_str = ("'{}' Requires one or more of: "
.format(self... | MAINT: reduced CatDict _check log msg to info | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -17,12 +17,10 @@ distutils.core.setup(
long_description=open('README.rst').read(),
keywords=['game', 'network', 'gui', 'pyglet'],
packages=['kxg'],
- requires=[
+ install_requires=[
... | Use the 'install_requires' field in setup.py Previously I was using the 'requires' field, which apparently doesn't do anything anymore. | py |
diff --git a/KISSmetrics/tests/test_docs.py b/KISSmetrics/tests/test_docs.py
index <HASH>..<HASH> 100644
--- a/KISSmetrics/tests/test_docs.py
+++ b/KISSmetrics/tests/test_docs.py
@@ -7,11 +7,16 @@ import unittest
# We avoid using doctest.DocFileSuite so the tests are runnable by both py.test
# and unittest.
class Do... | Added DESCRIPTION.rst to doctest file. | py |
diff --git a/MAVProxy/modules/mavproxy_link.py b/MAVProxy/modules/mavproxy_link.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_link.py
+++ b/MAVProxy/modules/mavproxy_link.py
@@ -745,7 +745,8 @@ class LinkModule(mp_module.MPModule):
res = mavutil.mavlink.enums["MAV_RESULT"][m.result].na... | link: suppress annoying DO_DIGICAM_CONTROL messages common for mission planner camera control to send these at high rate | py |
diff --git a/examples/codesnippet/app.py b/examples/codesnippet/app.py
index <HASH>..<HASH> 100644
--- a/examples/codesnippet/app.py
+++ b/examples/codesnippet/app.py
@@ -16,12 +16,6 @@ app.config['CKEDITOR_SERVE_LOCAL'] = True
app.config['CKEDITOR_HEIGHT'] = 400
# enable code snippet plugin
app.config['CKEDITOR_ENA... | Remove the warning about the codesnippet plugin and missing required plugins. This is fixed in commit 6ceabe6. | py |
diff --git a/scout/ext/backend/case_handler.py b/scout/ext/backend/case_handler.py
index <HASH>..<HASH> 100644
--- a/scout/ext/backend/case_handler.py
+++ b/scout/ext/backend/case_handler.py
@@ -120,10 +120,10 @@ class CaseHandler(object):
logger.info("Fetch case {0} from institute {1}".format(
ca... | find single case using both collaborators and owner | py |
diff --git a/cachalot/management/commands/invalidate_cachalot.py b/cachalot/management/commands/invalidate_cachalot.py
index <HASH>..<HASH> 100644
--- a/cachalot/management/commands/invalidate_cachalot.py
+++ b/cachalot/management/commands/invalidate_cachalot.py
@@ -11,10 +11,10 @@ class Command(BaseCommand):
args... | Fixes Python 3 compatibility. | py |
diff --git a/lib/gruvi/hub.py b/lib/gruvi/hub.py
index <HASH>..<HASH> 100644
--- a/lib/gruvi/hub.py
+++ b/lib/gruvi/hub.py
@@ -399,7 +399,7 @@ class Hub(fibers.Fiber):
will be called in the order that you added them. The callback will run
in the Hub's fiber.
- This method is thread-safe. It i... | hub: small doc nitpick | py |
diff --git a/web/ext/base/handler.py b/web/ext/base/handler.py
index <HASH>..<HASH> 100644
--- a/web/ext/base/handler.py
+++ b/web/ext/base/handler.py
@@ -13,7 +13,7 @@ from webob import Response
from web.core.compat import str, unicode
-__all__ = ['serve', 'response', 'textual', 'empty', 'wsgi']
+__all__ = ['serv... | Added iterable return type support back, to support direct use of cinje. | py |
diff --git a/scripts/data/unigrams.py b/scripts/data/unigrams.py
index <HASH>..<HASH> 100644
--- a/scripts/data/unigrams.py
+++ b/scripts/data/unigrams.py
@@ -35,7 +35,7 @@ def read_word_counts(in_text):
read_size = text_in.tell()
#print read_size
line = line.strip()
- for word in ... | Bug fix: whitespace wasn't splitting | py |
diff --git a/master/buildbot/process/buildstep.py b/master/buildbot/process/buildstep.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/process/buildstep.py
+++ b/master/buildbot/process/buildstep.py
@@ -283,6 +283,9 @@ class LoggedRemoteCommand(RemoteCommand):
self.stdout = ''
RemoteCommand.__init... | Initialize metrics variables in LoggedRemoteCommand.__init__ not .useLog. Not every user of LoggedRemoteCommand calls useLog. Those that don't fail due to the metrics. | py |
diff --git a/src/wa_kat/connectors/aleph.py b/src/wa_kat/connectors/aleph.py
index <HASH>..<HASH> 100755
--- a/src/wa_kat/connectors/aleph.py
+++ b/src/wa_kat/connectors/aleph.py
@@ -84,6 +84,7 @@ def by_issn(issn):
"PER": marc.get("PER", None),
"776": marc.get("776", None),
"008"... | #<I>: Added parsing of end_date to the aleph connector. | py |
diff --git a/s2clientprotocol/build.py b/s2clientprotocol/build.py
index <HASH>..<HASH> 100644
--- a/s2clientprotocol/build.py
+++ b/s2clientprotocol/build.py
@@ -4,7 +4,7 @@
import subprocess
def game_version():
- return "5.0.5.82893.0"
+ return "5.0.6.83830.0"
def read_command_output(cmd): | Updating to version <I> | py |
diff --git a/treeherder/etl/buildapi.py b/treeherder/etl/buildapi.py
index <HASH>..<HASH> 100644
--- a/treeherder/etl/buildapi.py
+++ b/treeherder/etl/buildapi.py
@@ -61,8 +61,8 @@ class Builds4hTransformerMixin(object):
for build in data['builds']:
prop = build['properties']
revision... | fixup! fix job state change and update to master | py |
diff --git a/photutils/psf/tests/test_epsf.py b/photutils/psf/tests/test_epsf.py
index <HASH>..<HASH> 100644
--- a/photutils/psf/tests/test_epsf.py
+++ b/photutils/psf/tests/test_epsf.py
@@ -178,6 +178,7 @@ def test_epsfmodel_inputs():
EPSFModel(data, origin=origin)
+@pytest.mark.skipif('not HAS_SCIPY'... | Added scipy skip for new test | py |
diff --git a/nipap-www/nipapwww/controllers/prefix.py b/nipap-www/nipapwww/controllers/prefix.py
index <HASH>..<HASH> 100644
--- a/nipap-www/nipapwww/controllers/prefix.py
+++ b/nipap-www/nipapwww/controllers/prefix.py
@@ -35,11 +35,11 @@ class PrefixController(BaseController):
""" Add a prefix.
"""
... | Actually pre-fill prefix in /prefix/add The previous code didn't create a Prefix object and instead passed a string to the template that expected a Prefix object. | py |
diff --git a/malcolm/parts/asyn/asynoutportpart.py b/malcolm/parts/asyn/asynoutportpart.py
index <HASH>..<HASH> 100644
--- a/malcolm/parts/asyn/asynoutportpart.py
+++ b/malcolm/parts/asyn/asynoutportpart.py
@@ -17,8 +17,9 @@ class AsynOutportPart(CAStringPart):
name=params.name, description=params.descript... | Typos in the yaml | 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
@@ -226,12 +226,12 @@ class EventBasedRuptureCalculator(base.HazardCalculator):
self.csm.info.get_sample... | Improved logging [skip CI] Former-commit-id: <I>c<I>e<I>b5fb<I>f<I>c<I>b<I>b2 | py |
diff --git a/dwave/system/samplers/leap_hybrid_sampler.py b/dwave/system/samplers/leap_hybrid_sampler.py
index <HASH>..<HASH> 100644
--- a/dwave/system/samplers/leap_hybrid_sampler.py
+++ b/dwave/system/samplers/leap_hybrid_sampler.py
@@ -594,9 +594,9 @@ class LeapHybridCQMSampler:
Instantiate a hybrid CQM sam... | Skip tests on LeapHybridCQMSampler until we mock it | py |
diff --git a/airflow/providers/google/cloud/hooks/dataproc.py b/airflow/providers/google/cloud/hooks/dataproc.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/google/cloud/hooks/dataproc.py
+++ b/airflow/providers/google/cloud/hooks/dataproc.py
@@ -745,7 +745,7 @@ class DataprocHook(GoogleCloudBaseHook):
... | [AIRFLOW-XXX] Fix the docstring for Dataproc get_job method (#<I>) | py |
diff --git a/src/python/dxpy/bindings/dxworkflow.py b/src/python/dxpy/bindings/dxworkflow.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/bindings/dxworkflow.py
+++ b/src/python/dxpy/bindings/dxworkflow.py
@@ -412,10 +412,9 @@ class DXWorkflow(DXDataObject, DXExecutable):
:returns: If the given form was o... | Make string-splitting more idiomatic | py |
diff --git a/memorious/operations/extract.py b/memorious/operations/extract.py
index <HASH>..<HASH> 100644
--- a/memorious/operations/extract.py
+++ b/memorious/operations/extract.py
@@ -55,9 +55,14 @@ def extract(context, data):
# TODO: contenttype may vary. Include more.
if content_type == "applicat... | Warn when contenttype is not supported | py |
diff --git a/tools/harness-thci/OpenThread.py b/tools/harness-thci/OpenThread.py
index <HASH>..<HASH> 100644
--- a/tools/harness-thci/OpenThread.py
+++ b/tools/harness-thci/OpenThread.py
@@ -1214,8 +1214,9 @@ class OpenThreadTHCI(object):
elif eRoleId == Thread_Device_Role.REED:
print('joi... | [thci] allow REED DUTs to upgrade (#<I>) Some Thread <I> tests require that REED DUTs upgrade to Router. Allow it while keeping existent functionality for reference devices. | py |
diff --git a/src/canari/maltego/runner.py b/src/canari/maltego/runner.py
index <HASH>..<HASH> 100644
--- a/src/canari/maltego/runner.py
+++ b/src/canari/maltego/runner.py
@@ -72,7 +72,7 @@ def remote_canari_transform_runner(host, base_path, transform, entities, paramet
if is_debug_exec_mode():
sys.stderr.... | explicit content-type header for request for remote runner | py |
diff --git a/heartbeat/heartbeat.py b/heartbeat/heartbeat.py
index <HASH>..<HASH> 100644
--- a/heartbeat/heartbeat.py
+++ b/heartbeat/heartbeat.py
@@ -34,9 +34,8 @@ class Challenge(object):
return new
-class HeartBeat:
- """
- A small library used to create and verify hash challenges
+class Heartbeat... | Rename HeartBeat to Heartbeat, make a py2-new-style compatible class' | py |
diff --git a/mbuild/coordinate_transform.py b/mbuild/coordinate_transform.py
index <HASH>..<HASH> 100755
--- a/mbuild/coordinate_transform.py
+++ b/mbuild/coordinate_transform.py
@@ -6,8 +6,7 @@ from numpy.linalg import norm, svd, inv
from mbuild.utils.decorators import deprecated
-__all__ = ['rotate', 'rotate_aro... | Cast spin() and rotate() around arguments as ndarrays This makes it so that you can pass lists, tuples, or improperly shaped arrays to spin() and rotate(). A ValueError is thrown if the inputs cannot be resized properly. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,10 +18,15 @@ setup(name='pyemir',
license='GPLv3',
description='EMIR Data Processing Pipeline',
packages=find_packages(),
- package_data={'emirdrp.simulation': ['*.dat'],
- 'em... | Include instrument configs in setup.py | py |
diff --git a/holoviews/plotting/bokeh/chart.py b/holoviews/plotting/bokeh/chart.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/chart.py
+++ b/holoviews/plotting/bokeh/chart.py
@@ -745,11 +745,11 @@ class BarPlot(ColorbarPlot, LegendPlot):
'bottom': 'bottom', 'width': width}
... | Fixed newly introduced bar width bug (#<I>) | py |
diff --git a/config.py b/config.py
index <HASH>..<HASH> 100644
--- a/config.py
+++ b/config.py
@@ -516,9 +516,9 @@ CFG_OAI_LICENSE_TERMS_SUBFIELD = "a"
CFG_OAI_LICENSE_URI_SUBFIELD = "u"
CFG_OAI_LOAD = 500
CFG_OAI_METADATA_FORMATS = {
- 'oai_dc': ('XOAIMARC', 'http://www.openarchives.org/OAI/1.1/dc.xsd',
+ 'oa... | oairepository: marcxml output format * FIX Switches keys in CFG_OAI_METADATA_FORMATS configuration mapping. (closes #<I>) * FIX Amends bfe_oai_marcxml element since get_preformatted_record does not return a tuple anymore. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
import io
import os
from setuptools import setup, find_packages
+from sys import version_info
def parse_requirements(file):
@@ -12,6 +13,17 @@ def parse_requirements(file):
return required_packages
... | In case of Python <I> install dataclasses package | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ BOOTSTRAP_SCRIPT_DISTRIBUTED_VERSION = os.environ.get(
'BOOTSTRAP_SCRIPT_VERSION',
# If no bootstrap-script version was provided from the environment, let's
# provide the one we define.
- 'v1.5... | There's a new bootstrap-salt.sh stable release, `<I>`. Use it. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,8 @@ import sys
import os
def read(fname):
- return open(os.path.join(os.path.dirname(__file__), fname)).read()
+ with open(os.path.join(os.path.dirname(__file__), fname)) as f:
+ return f.read()
de... | Fix a ResourceWarning: unclosed file in setup.py | py |
diff --git a/stix2validator/validator.py b/stix2validator/validator.py
index <HASH>..<HASH> 100644
--- a/stix2validator/validator.py
+++ b/stix2validator/validator.py
@@ -291,7 +291,7 @@ def list_json_files(directory, recursive=False):
for top, _, files in os.walk(directory):
# Get paths to each file in... | Sort output by filename when script is given a dir | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -477,7 +477,10 @@ def _virtual(osdata):
if salt.utils.which('virt-what'):
_cmds = (['virt-what'])
else:
- log.info('Please install "virt-wha... | Change loglevel of virt-what message to debug With this message at loglevel INFO, a user will see this message every time they run a job using salt-call unless they have virt-what installed. This is unnecessary and annoying. | py |
diff --git a/eventsourcing/persistence.py b/eventsourcing/persistence.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/persistence.py
+++ b/eventsourcing/persistence.py
@@ -36,11 +36,11 @@ class Transcoding(ABC):
class AbstractTranscoder(ABC):
@abstractmethod
- def encode(self, o: Any) -> bytes:
+ def e... | Adjusted annotation of transcoder methods. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,6 +12,10 @@ required_packages = [
'pytz==2012c'
]
+test_packages = [
+ 'Mock==1.0.1'
+]
+
setup(
name='django-timepiece',
version=__import__('timepiece').__version__,
@@ -36,7 +40,7 @@ setup(
... | Add Mock to test requirements in setup.py Ticket: #<I> Branch: feature/<I>-track-contract-hour-extensions | py |
diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/__init__.py
+++ b/salt/pillar/__init__.py
@@ -93,7 +93,8 @@ class AsyncRemotePillar(object):
self.grains = grains
self.minion_id = minion_id
self.channel = salt.transport.client.AsyncR... | Use current pillarenv if nothing specified with argument ... instead of overwriting it with 'None' and getting merged pillar environments. This is actual at least for pillar.items call that should return actual pillar data for the minion, but currently it returns merged data from all available environments. | py |
diff --git a/apitools/base/py/transfer.py b/apitools/base/py/transfer.py
index <HASH>..<HASH> 100644
--- a/apitools/base/py/transfer.py
+++ b/apitools/base/py/transfer.py
@@ -831,6 +831,8 @@ class Upload(_Transfer):
# go ahead and pump the bytes now.
if self.auto_transfer:
return self.Str... | Fix double-POST for auto_transfer=False uploads | py |
diff --git a/visidata/slide.py b/visidata/slide.py
index <HASH>..<HASH> 100644
--- a/visidata/slide.py
+++ b/visidata/slide.py
@@ -64,8 +64,8 @@ def moveVisibleCol(sheet, fromVisColIdx, toVisColIdx):
fromVisColIdx = min(max(fromVisColIdx, 0), sheet.nVisibleCols-1)
fromColIdx = sheet.columns.index(shee... | [slide-] fix sliding of regular columns, against key columns Closes #<I> | py |
diff --git a/sark/code/function.py b/sark/code/function.py
index <HASH>..<HASH> 100644
--- a/sark/code/function.py
+++ b/sark/code/function.py
@@ -160,16 +160,17 @@ class Function(object):
"""Xrefs from the function.
This includes the xrefs from every line in the function, as `Xref` objects.
- ... | Update Function.xrefs_from to return self drefs Update Function.xrefs_from function to return data references to itself. This produces a more predictable behavior in the common case when looking for all strings referenced from a function. The inline documentation is updated accordingly. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -322,7 +322,7 @@ texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'python': ('http://docs.python.org/3', None)}
+intersphinx_mapp... | docs/conf: Reference CPython <I> docs. CPython <I> contains some backward incompatible changes, and further version(s) are expected to have more. As we anyway implemente <I> with some features of <I>, refer to <I> docs to avoid confusion. Examples of <I> backward incompatibilities: <URL> | py |
diff --git a/modules/net_rate.py b/modules/net_rate.py
index <HASH>..<HASH> 100644
--- a/modules/net_rate.py
+++ b/modules/net_rate.py
@@ -11,7 +11,7 @@ Module for displaying current network transfer rate.
@license Eclipse Public License
"""
-CACHED_TIME = 1 # update time (in seconds)
+CACHED_TIME = 2 # update ti... | adjust output of net_rate module since we always devide 4 digits numbers, 1s cache is definitely too low | py |
diff --git a/passpie/history.py b/passpie/history.py
index <HASH>..<HASH> 100644
--- a/passpie/history.py
+++ b/passpie/history.py
@@ -66,6 +66,8 @@ class Repository(object):
@ensure_git()
def commit(self, message, add=True):
+ process.call(["git", "config", "--local", "user.name", "Passpie"], cwd=se... | Fix setting author to git config before commit | py |
diff --git a/lib/stpyfits.py b/lib/stpyfits.py
index <HASH>..<HASH> 100644
--- a/lib/stpyfits.py
+++ b/lib/stpyfits.py
@@ -438,10 +438,10 @@ def _assignSt_pyfitsClassExtensionsKeywordDict(keywords):
# This will allow for support of the STScI specific features provided in
# stpyfits.
#
-def open(name, mode="copyonwr... | Change to stpyfits.py to add an open option to ignore a missing end card and attempt to open a fits file anyway git-svn-id: <URL> | py |
diff --git a/ontobio/io/gafgpibridge.py b/ontobio/io/gafgpibridge.py
index <HASH>..<HASH> 100644
--- a/ontobio/io/gafgpibridge.py
+++ b/ontobio/io/gafgpibridge.py
@@ -1,7 +1,7 @@
import json
from typing import Dict, NewType, List
-from ontobio.model.association import GoAssociation
+from ontobio.model.association i... | GafGpiBridge writes out object type as label; for geneontology/go-site#<I> | py |
diff --git a/gitlab/client.py b/gitlab/client.py
index <HASH>..<HASH> 100644
--- a/gitlab/client.py
+++ b/gitlab/client.py
@@ -318,24 +318,6 @@ class Gitlab(object):
data = {"license": license}
return self.http_post("/license", post_data=data, **kwargs)
- def _construct_url(self, id_, obj, parame... | chore: remove unused function _construct_url() The function _construct_url() was used by the v3 API. All usage of the function was removed in commit fe<I>b<I>c<I>dd<I>ba<I>d<I> | py |
diff --git a/pyphi/compute.py b/pyphi/compute.py
index <HASH>..<HASH> 100644
--- a/pyphi/compute.py
+++ b/pyphi/compute.py
@@ -32,8 +32,9 @@ def _concept_wrapper(in_queue, out_queue, subsystem):
if mechanism is None:
break
new_concept = concept(subsystem, mechanism)
- print(index)
... | do not return null concepts in parallel | py |
diff --git a/tests/unit/states/file_test.py b/tests/unit/states/file_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/file_test.py
+++ b/tests/unit/states/file_test.py
@@ -1376,26 +1376,6 @@ class FileTestCase(TestCase):
(name, source,
... | Remove test for file dir behavior Refs #<I> | py |
diff --git a/simuvex/plugins/symbolic_memory.py b/simuvex/plugins/symbolic_memory.py
index <HASH>..<HASH> 100644
--- a/simuvex/plugins/symbolic_memory.py
+++ b/simuvex/plugins/symbolic_memory.py
@@ -126,7 +126,11 @@ class SimPagedMemory(collections.MutableMapping):
return False
def __iter__(self):
-... | fixed memory.keys() for the paged memory implementation | py |
diff --git a/sofort/model.py b/sofort/model.py
index <HASH>..<HASH> 100644
--- a/sofort/model.py
+++ b/sofort/model.py
@@ -28,11 +28,11 @@ class ForcedListType(ListType):
class SofortListType(ForcedListType):
def __init__(self, field_name='', *args, **kwargs):
- super(SofortListType, self).__init__(*args... | Remove usage of super on an old style classes | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -252,7 +252,7 @@ class SSH(object):
self.serial = salt.payload.Serial(opts)
self.returners = salt.loader.returners(self.opts, {})
... | Get the thin Salt with configured extra modules on SSH | py |
diff --git a/setup_trinity.py b/setup_trinity.py
index <HASH>..<HASH> 100644
--- a/setup_trinity.py
+++ b/setup_trinity.py
@@ -7,7 +7,7 @@ setup(
name='trinity',
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
# NOT CURRENTLY APPLICABLE. VERSION BUMPS MANUAL FOR NOW
... | Use new py-evm for trinity release | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.