diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/Exscriptd/Service.py b/src/Exscriptd/Service.py
index <HASH>..<HASH> 100644
--- a/src/Exscriptd/Service.py
+++ b/src/Exscriptd/Service.py
@@ -55,6 +55,7 @@ class Service(object):
for logger in self.loggers[order.id]:
del logger.manager.loggerDict[logger.name]
logger.m... | exscriptd: fix: forgot to remove loggers from internal list in the previous commit. | py |
diff --git a/sirmordred/task_enrich.py b/sirmordred/task_enrich.py
index <HASH>..<HASH> 100644
--- a/sirmordred/task_enrich.py
+++ b/sirmordred/task_enrich.py
@@ -27,7 +27,7 @@ import time
from datetime import datetime, timedelta
-from elasticsearch import Elasticsearch
+from elasticsearch import Elasticsearch, Re... | [task_enrich] Fix elasticsearch.exceptions.SSLError: ConnectionError This PR updates the statement that initializes the Elasticsearch objects (imported from the library elasticsearch) to use RequestsHttpConnection as connection class, thus avoiding `elasticsearch.exceptions.SSLError: ConnectionError exceptions` | py |
diff --git a/abilian/app.py b/abilian/app.py
index <HASH>..<HASH> 100644
--- a/abilian/app.py
+++ b/abilian/app.py
@@ -619,6 +619,11 @@ class Application(Flask, ServiceManager, PluginManager):
manifest_file = assets_base_dir / 'manifest.json'
assets.manifest = 'json:{}'.format(str(manifest_file))
+ # set... | assets: setup load path for static_folder | py |
diff --git a/barcode/__init__.py b/barcode/__init__.py
index <HASH>..<HASH> 100755
--- a/barcode/__init__.py
+++ b/barcode/__init__.py
@@ -16,8 +16,8 @@ __copyright__ = '2010-2013, Thorsten Weimann; 2014, Alexander Shorin'
__author_email__ = 'kxepal@gmail.com'
__description__ = ('Create standard barcodes with Python.... | Release <I> version And switch to semantic versioning. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -38,8 +38,13 @@ EXTRA_REQUIREMENTS = {
'deploy': ['twine', 'setuptools', 'wheel'],
}
-with open('README.md', 'r') as f:
- LONG_DESCRIPTION = f.read()
+# building the docs on readthedocs fails with a FileNotFoundErro... | add try-except for importing readme when building the docs (#<I>) | py |
diff --git a/spacy/tests/parser/test_ner.py b/spacy/tests/parser/test_ner.py
index <HASH>..<HASH> 100644
--- a/spacy/tests/parser/test_ner.py
+++ b/spacy/tests/parser/test_ner.py
@@ -46,7 +46,7 @@ def test_unit_end_gazetteer(EN):
ents = matcher(doc)
assert len(ents) == 1
EN.entity(doc)
- ... | * Add test for matcher end-point problem | py |
diff --git a/test/amqp-integration-test.py b/test/amqp-integration-test.py
index <HASH>..<HASH> 100644
--- a/test/amqp-integration-test.py
+++ b/test/amqp-integration-test.py
@@ -96,7 +96,7 @@ def run_client_tests():
--key-dir %s \
--cert-dir %s \
--text \
- --agree-tos \
+ --ag... | Update execution of the integration test to match new parameters. | py |
diff --git a/scriptworker/cot/verify.py b/scriptworker/cot/verify.py
index <HASH>..<HASH> 100644
--- a/scriptworker/cot/verify.py
+++ b/scriptworker/cot/verify.py
@@ -687,7 +687,7 @@ def verify_firefox_decision_command(decision_link):
))
bash_commands = command[-1].split('&&')
allowed_commands = ('cd... | make sure mach args are in order | py |
diff --git a/benchexec/tablegenerator/__init__.py b/benchexec/tablegenerator/__init__.py
index <HASH>..<HASH> 100644
--- a/benchexec/tablegenerator/__init__.py
+++ b/benchexec/tablegenerator/__init__.py
@@ -1072,7 +1072,7 @@ def get_stats(rows, local_summary):
def indent(n):
return ' '*(n*4)
- r... | Fix misleading row name: this row contains the total of the respective column over all tasks (not the total number of tasks, but also total CPU time etc.) | py |
diff --git a/crispy/modules/quanty/generate.py b/crispy/modules/quanty/generate.py
index <HASH>..<HASH> 100644
--- a/crispy/modules/quanty/generate.py
+++ b/crispy/modules/quanty/generate.py
@@ -6,7 +6,7 @@
# This work is licensed under the terms of the MIT license. #
# For further information, see https://gith... | Spell check should be on by default | py |
diff --git a/src/cmdline/settings.py b/src/cmdline/settings.py
index <HASH>..<HASH> 100644
--- a/src/cmdline/settings.py
+++ b/src/cmdline/settings.py
@@ -170,11 +170,12 @@ class SettingsParser(BaseCommand):
parser.add_argument(arg, **_info)
- if subcommands:
+ command_info = args.get('_C... | Add subcommands that do not have any additional settings | 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
@@ -45,7 +45,7 @@ F32 = numpy.float32
F64 = numpy.float64
TWO32 = 2 ** 32
RUPTURES_PER_BLOCK = 1000 # decided by ... | Reduced event_based.BLOCKSIZE | py |
diff --git a/paramiko/packet.py b/paramiko/packet.py
index <HASH>..<HASH> 100644
--- a/paramiko/packet.py
+++ b/paramiko/packet.py
@@ -261,14 +261,14 @@ class Packetizer (object):
else:
cmd_name = '$%x' % cmd
orig_len = len(data)
- if self.__compress_engine_out is not None:
- ... | [project @ <EMAIL><I>-d<I>b<I>bac4f<I>c] i think the compression needs to be inside this lock in order to preserve order | py |
diff --git a/zappa/core.py b/zappa/core.py
index <HASH>..<HASH> 100644
--- a/zappa/core.py
+++ b/zappa/core.py
@@ -669,7 +669,7 @@ class Zappa(object):
if not os.path.exists(wheel_path):
# The file is not cached, download it.
- wheel_url = self.get_manylinux_wheel(package_name, packag... | refactored function to match base | py |
diff --git a/metanl/freeling.py b/metanl/freeling.py
index <HASH>..<HASH> 100644
--- a/metanl/freeling.py
+++ b/metanl/freeling.py
@@ -86,8 +86,8 @@ class FreelingWrapper(ProcessWrapper):
results = []
for chunk_text in chunks:
if chunk_text.strip():
- text =... | Don't overwrite the variable 'text' with a bytestring. | py |
diff --git a/packages/vaex-core/setup.py b/packages/vaex-core/setup.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/setup.py
+++ b/packages/vaex-core/setup.py
@@ -24,7 +24,7 @@ install_requires_core = ["numpy>=1.16", "aplus", "tabulate>=0.8.3",
"future>=0.15.2", "pyyaml", "progressbar2... | TEMP: make rich a dependency | py |
diff --git a/typedload/__init__.py b/typedload/__init__.py
index <HASH>..<HASH> 100644
--- a/typedload/__init__.py
+++ b/typedload/__init__.py
@@ -153,8 +153,6 @@ __all__ = [
'load',
'datadumper',
'dump',
- 'attrload',
- 'attrdump',
'typechecks',
] | Fix import * I had forgotten the removed modules in the __all__, so import * failed. | py |
diff --git a/amqpconsumer/events.py b/amqpconsumer/events.py
index <HASH>..<HASH> 100644
--- a/amqpconsumer/events.py
+++ b/amqpconsumer/events.py
@@ -233,7 +233,8 @@ class EventConsumer(object):
:param Exception | None closing reason: The Exception containing the reason the connection was closed
"""
... | Check if connection is already closed before closing Otherwise an error will be raised with "invalid close, state already closed" | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -118,7 +118,7 @@ pygments_style = 'tango_console_highlighting.TangoStyle'
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
-html_th... | Update sphinx theme to new sphinx version | py |
diff --git a/egoio/db_tables/model_draft.py b/egoio/db_tables/model_draft.py
index <HASH>..<HASH> 100644
--- a/egoio/db_tables/model_draft.py
+++ b/egoio/db_tables/model_draft.py
@@ -3704,6 +3704,16 @@ t_ego_res_powerplant_costdat_gid = Table(
schema='model_draft'
)
+class EgoRenewableFeedin(Base):
+ __table... | Added the class definition for ego_renewable_feeding | py |
diff --git a/indra/sources/sofia/processor.py b/indra/sources/sofia/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/sofia/processor.py
+++ b/indra/sources/sofia/processor.py
@@ -235,7 +235,7 @@ class SofiaProcessor(object):
if proc and proc[0] is not None:
name = event_entry['... | Fix case where empty property comes out, add check | py |
diff --git a/gnosis/eth/clients/blockscout_client.py b/gnosis/eth/clients/blockscout_client.py
index <HASH>..<HASH> 100644
--- a/gnosis/eth/clients/blockscout_client.py
+++ b/gnosis/eth/clients/blockscout_client.py
@@ -42,6 +42,8 @@ class BlockscoutClient:
EthereumNetwork.GODWOKEN: "https://v1.gwscan.com/",
... | add klaytn mainnet cypress and testnet baobab (#<I>) | py |
diff --git a/src/ai/backend/client/cli/admin/sessions.py b/src/ai/backend/client/cli/admin/sessions.py
index <HASH>..<HASH> 100644
--- a/src/ai/backend/client/cli/admin/sessions.py
+++ b/src/ai/backend/client/cli/admin/sessions.py
@@ -64,6 +64,8 @@ def sessions(status, access_key, id_only):
for item in resp['c... | Bugfix - correct unit for memory max bytes | py |
diff --git a/pyte/screens.py b/pyte/screens.py
index <HASH>..<HASH> 100644
--- a/pyte/screens.py
+++ b/pyte/screens.py
@@ -1110,9 +1110,9 @@ History = namedtuple("History", "top bottom ratio size position")
class HistoryScreen(DiffScreen):
- """A screen subclass, which keeps track of screen history and allows
-... | Updated the docstring of ``HistoryScreen`` | py |
diff --git a/vivarium/framework/engine.py b/vivarium/framework/engine.py
index <HASH>..<HASH> 100644
--- a/vivarium/framework/engine.py
+++ b/vivarium/framework/engine.py
@@ -6,6 +6,7 @@ from time import time
from collections import Iterable
from pprint import pformat
import gc
+import inspect
from bdb import BdbQu... | Figured out how to get the file name from an object | py |
diff --git a/slither/visitors/slithir/expression_to_slithir.py b/slither/visitors/slithir/expression_to_slithir.py
index <HASH>..<HASH> 100644
--- a/slither/visitors/slithir/expression_to_slithir.py
+++ b/slither/visitors/slithir/expression_to_slithir.py
@@ -134,7 +134,7 @@ class ExpressionToSlithIR(ExpressionVisitor):... | Fix incorrect handling of tuple variable re-assignement (bug introduced xith #<I>) | py |
diff --git a/quilt/cli/meta.py b/quilt/cli/meta.py
index <HASH>..<HASH> 100644
--- a/quilt/cli/meta.py
+++ b/quilt/cli/meta.py
@@ -69,7 +69,7 @@ class Command(object):
self.run(options, pargs)
def run(self, options, args):
- pass
+ raise NotImplementedError()
def add_args(self, pars... | Raise exception if run method is not implemented Raise exception if run method of a cli command is not implemented. This avoids typos. | py |
diff --git a/tests/volume_test.py b/tests/volume_test.py
index <HASH>..<HASH> 100644
--- a/tests/volume_test.py
+++ b/tests/volume_test.py
@@ -166,14 +166,12 @@ class FsTypeTest(unittest.TestCase):
]
for definition in definitions:
- with self.subTest(definition=definition):
- ... | Obviously, Python 2 does not support subtest | py |
diff --git a/stanza/pipeline/processor.py b/stanza/pipeline/processor.py
index <HASH>..<HASH> 100644
--- a/stanza/pipeline/processor.py
+++ b/stanza/pipeline/processor.py
@@ -136,10 +136,10 @@ class ProcessorVariant(ABC):
"""
pass
- @abstractmethod
def bulk_process(self, docs):
- """ ... | By default, bulk process in a dumb manner so it at least does something useful | py |
diff --git a/rdopkg/utils/specfile.py b/rdopkg/utils/specfile.py
index <HASH>..<HASH> 100644
--- a/rdopkg/utils/specfile.py
+++ b/rdopkg/utils/specfile.py
@@ -305,8 +305,13 @@ class Spec(object):
def set_patches_base(self, base):
v, _ = self.get_patches_base()
- if 'patches_ignore' in self.txt an... | Improve patches_ignore detection patches_base was always added to .spec when it contained string 'patches_ignore' (like rdopkg does in changelog) due to an overly relaxed check. I used regex to make sure it only triggers for proper patches_ignore comment. No time was wasted on unit tests because all these hacks must... | py |
diff --git a/tensorflow_datasets/image/downsampled_imagenet.py b/tensorflow_datasets/image/downsampled_imagenet.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/image/downsampled_imagenet.py
+++ b/tensorflow_datasets/image/downsampled_imagenet.py
@@ -77,7 +77,7 @@ class DownsampledImagenet(tfds.core.GeneratorBa... | Updates downsampled_imagenet to use the version which is in supported_versions. PiperOrigin-RevId: <I> | py |
diff --git a/category_encoders/leave_one_out.py b/category_encoders/leave_one_out.py
index <HASH>..<HASH> 100644
--- a/category_encoders/leave_one_out.py
+++ b/category_encoders/leave_one_out.py
@@ -81,7 +81,7 @@ class LeaveOneOutEncoder(BaseEstimator, TransformerMixin):
self.drop_cols = []
self.verbo... | set cols to static cols by default and only overwrite cols if static_cols is None | py |
diff --git a/iterm2_tools/tests/test_ipython.py b/iterm2_tools/tests/test_ipython.py
index <HASH>..<HASH> 100644
--- a/iterm2_tools/tests/test_ipython.py
+++ b/iterm2_tools/tests/test_ipython.py
@@ -32,8 +32,8 @@ f()
# First the control (without iterm2_tools)
if IPy5:
p = pexpect.spawn(' '.join(ipyth... | Remove some more variables from the tested IPython 5 pexpect output | py |
diff --git a/openid/store/sqlstore.py b/openid/store/sqlstore.py
index <HASH>..<HASH> 100644
--- a/openid/store/sqlstore.py
+++ b/openid/store/sqlstore.py
@@ -1,6 +1,10 @@
"""
This module contains C{L{OpenIDStore}} implementations that use
various SQL databases to back them.
+
+Example of how to initialize a store d... | [project @ store.sqlstore: add example to docstring of a one-liner for store creation] This should really probably be a script and/or incorporated into the install documentation. | py |
diff --git a/apyori.py b/apyori.py
index <HASH>..<HASH> 100755
--- a/apyori.py
+++ b/apyori.py
@@ -12,7 +12,7 @@ from itertools import combinations
from itertools import chain
-__version__ = '0.1.0'
+__version__ = '0.9.0'
__author__ = 'ymoch'
__author_email__ = 'ymoch@githib.com' | Update the version to <I>. | py |
diff --git a/wsgiservice/resource.py b/wsgiservice/resource.py
index <HASH>..<HASH> 100644
--- a/wsgiservice/resource.py
+++ b/wsgiservice/resource.py
@@ -207,7 +207,7 @@ class Resource(object):
else:
self.response.vary.append('Accept')
types = [mime for ext, mime in self.EXTENSION_MAP]
-... | Replace first_match with best_match. first_match has been deprecated since WebOb <I>b1. | py |
diff --git a/src/python/test/test_dxclient.py b/src/python/test/test_dxclient.py
index <HASH>..<HASH> 100755
--- a/src/python/test/test_dxclient.py
+++ b/src/python/test/test_dxclient.py
@@ -865,6 +865,7 @@ class TestDXClient(DXTestCase):
@unittest.skipUnless(testutil.TEST_RUN_JOBS, "Skipping test that would run... | Need to configure ssh to run test with debug-on | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -15,6 +15,8 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import sys
+from .__pkginfo__ import version as __version__
+
def run_pylint():
"""run pylint"""
from pylint.lint import ... | Add __version__ attribute to comply with PEP <I>. Closes issue #<I>. | py |
diff --git a/plugins/ldap/server/__init__.py b/plugins/ldap/server/__init__.py
index <HASH>..<HASH> 100644
--- a/plugins/ldap/server/__init__.py
+++ b/plugins/ldap/server/__init__.py
@@ -159,11 +159,11 @@ def _ldapAuth(event):
conn.bind_s(attrs['distinguishedName'][0], password, ldap.AUTH_SIMPLE)
... | Use `finally` to close LDAP connection | 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
@@ -919,7 +919,10 @@ class FontProject:
**kwargs,
)
except FontmakeError as e:
- e.source_t... | run_from_designspace: selectively add DS to source_trail | py |
diff --git a/LiSE/core.py b/LiSE/core.py
index <HASH>..<HASH> 100644
--- a/LiSE/core.py
+++ b/LiSE/core.py
@@ -455,6 +455,9 @@ class Engine(object):
self.vonmisesvariate = self.rando.vonmisesvariate
self.weibullvariate = self.rando.weibullvariate
+ def coinflip(self):
+ return self.choice(... | for when you just want a True or False | py |
diff --git a/webview/win32.py b/webview/win32.py
index <HASH>..<HASH> 100644
--- a/webview/win32.py
+++ b/webview/win32.py
@@ -159,9 +159,9 @@ class BrowserView(object):
atl_width = self.width - self.scrollbar_width
atl_height = self.height - self.scrollbar_height - VERTICAL_SCROLLBAR_OFFSET
... | Change how URL is loaded on an initial window display in Windows | py |
diff --git a/h2o-bindings/bin/gen_java.py b/h2o-bindings/bin/gen_java.py
index <HASH>..<HASH> 100755
--- a/h2o-bindings/bin/gen_java.py
+++ b/h2o-bindings/bin/gen_java.py
@@ -86,7 +86,7 @@ def generate_schema(class_name, schema):
if field["name"] == "can_build": is_model_builder = True
superclass = sche... | In new schema hierarchy all schemas inherit from Schema, not from Iced | py |
diff --git a/salt/utils/master.py b/salt/utils/master.py
index <HASH>..<HASH> 100755
--- a/salt/utils/master.py
+++ b/salt/utils/master.py
@@ -85,7 +85,7 @@ class MasterPillarUtil(object):
if not salt.utils.verify.valid_id(self.opts, minion_id):
continue
el... | Fix fad method call and bad default arg | py |
diff --git a/thumbor/result_storages/file_storage.py b/thumbor/result_storages/file_storage.py
index <HASH>..<HASH> 100644
--- a/thumbor/result_storages/file_storage.py
+++ b/thumbor/result_storages/file_storage.py
@@ -57,7 +57,7 @@ class Storage(BaseStorage):
return abspath(path).startswith(self.context.confi... | Use webp in path only when webp is supported | py |
diff --git a/tests/test_parse.py b/tests/test_parse.py
index <HASH>..<HASH> 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -22,7 +22,7 @@ class ParseTest(unittest.TestCase):
for torrent, expected_result in zip(torrents, expected_results):
result = PTN.parse(torrent)
- s... | Fix unit test. Earlier testing was done for keys rather than values | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -1265,8 +1265,8 @@ class State(object):
# We pass deep copies here because we don't want any misbehaving
# state module to change these at runtime.
'__low__': copy.dee... | Save CPU cycles on the deep copy calls. | py |
diff --git a/loguru/__init__.py b/loguru/__init__.py
index <HASH>..<HASH> 100644
--- a/loguru/__init__.py
+++ b/loguru/__init__.py
@@ -82,11 +82,11 @@ class StrRecord(str):
class Handler:
- def __init__(self, *, writter, level, format_, filter, colored, better_exceptions):
+ def __init__(self, *, writter, le... | No longer shadow built-in "filter" in private functions | py |
diff --git a/tests/unit/remote/ssh/test_connection.py b/tests/unit/remote/ssh/test_connection.py
index <HASH>..<HASH> 100644
--- a/tests/unit/remote/ssh/test_connection.py
+++ b/tests/unit/remote/ssh/test_connection.py
@@ -95,11 +95,19 @@ def test_symlink(repo_dir, ssh):
assert System.is_symlink("link")
+@pyte... | tests: ignore ssh's hardlink and copy tests on windows | py |
diff --git a/charmhelpers/contrib/openstack/context.py b/charmhelpers/contrib/openstack/context.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/context.py
+++ b/charmhelpers/contrib/openstack/context.py
@@ -197,7 +197,7 @@ class SharedDBContext(OSContextGenerator):
if self.relation_prefix:
... | [wolsen,r=] Change the SharedDBContext to iterate over relations of the first interface name for viable shared databases. | py |
diff --git a/sailthru/sailthru_http.py b/sailthru/sailthru_http.py
index <HASH>..<HASH> 100644
--- a/sailthru/sailthru_http.py
+++ b/sailthru/sailthru_http.py
@@ -41,7 +41,7 @@ def sailthru_http_request(url, data, method):
response_data = response.read()
response.close()
return response_data
... | must catch urllib2.HTTPError before urllib2.URLError.. since URLError will also gobble up HTTPError.. and then response returns generic <I> message.. instead of intended response. | py |
diff --git a/folium/plugins/timestamped_geo_json.py b/folium/plugins/timestamped_geo_json.py
index <HASH>..<HASH> 100644
--- a/folium/plugins/timestamped_geo_json.py
+++ b/folium/plugins/timestamped_geo_json.py
@@ -6,6 +6,7 @@ import json
from branca.element import CssLink, Figure, JavascriptLink, MacroElement
+fr... | Update timestamped_geo_json.py | py |
diff --git a/classify_imports.py b/classify_imports.py
index <HASH>..<HASH> 100644
--- a/classify_imports.py
+++ b/classify_imports.py
@@ -182,7 +182,7 @@ class Import:
@property
def module_base(self) -> str:
- return self.module.split('.')[0]
+ return self.module.partition('.')[0]
@cac... | micro-optimization: use partition instead of split | py |
diff --git a/cgroupspy/nodes.py b/cgroupspy/nodes.py
index <HASH>..<HASH> 100644
--- a/cgroupspy/nodes.py
+++ b/cgroupspy/nodes.py
@@ -153,6 +153,7 @@ class Node(object):
Delete a cgroup by name and detach it from this node.
Raises OSError if the cgroup is not empty.
"""
+ name = name.... | fix error: cant' mix strings and bytes in path components | py |
diff --git a/dataproperty/converter/_core.py b/dataproperty/converter/_core.py
index <HASH>..<HASH> 100644
--- a/dataproperty/converter/_core.py
+++ b/dataproperty/converter/_core.py
@@ -82,13 +82,12 @@ class DateTimeConverter(ValueConverter):
import dateutil.parser
import pytz
- if not self.... | Fix placement of a if statement | py |
diff --git a/napalm/__init__.py b/napalm/__init__.py
index <HASH>..<HASH> 100644
--- a/napalm/__init__.py
+++ b/napalm/__init__.py
@@ -16,7 +16,7 @@ from eos import EOSDriver
from iosxr import IOSXRDriver
from junos import JunOSDriver
from fortios import FortiOSDriver
-from ibm import IBMDriver
+#from ibm import IBM... | IBMDriver disabled because documentation and requirements are missing | py |
diff --git a/plenum/server/consensus/consensus_shared_data.py b/plenum/server/consensus/consensus_shared_data.py
index <HASH>..<HASH> 100644
--- a/plenum/server/consensus/consensus_shared_data.py
+++ b/plenum/server/consensus/consensus_shared_data.py
@@ -68,7 +68,7 @@ class ConsensusSharedData:
self.prepared =... | INDY-<I>: fix a problem with ViewChangeVotesForView creation | py |
diff --git a/pyvisa-py/tcpip.py b/pyvisa-py/tcpip.py
index <HASH>..<HASH> 100644
--- a/pyvisa-py/tcpip.py
+++ b/pyvisa-py/tcpip.py
@@ -381,13 +381,20 @@ class TCPIPSocketSession(Session):
return (out + parts[0] + end_byte,
constants.StatusCode.success_termination_character_read)
+ ... | added timeout to select to unblock if no data arrived | py |
diff --git a/cheroot/test/test_conn.py b/cheroot/test/test_conn.py
index <HASH>..<HASH> 100644
--- a/cheroot/test/test_conn.py
+++ b/cheroot/test/test_conn.py
@@ -1094,7 +1094,7 @@ class FaultyGetMap:
def __call__(self):
"""Intercept the calls to selector.get_map."""
sabotage_targets = (
- ... | Fix py2 tuple unpacking in gen expr @ test_conn | py |
diff --git a/tests/test_client.py b/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -98,10 +98,8 @@ def test_client_broken_cert_bundle(monkeypatch):
Under circumstances it could be possible that the certifi package is not correctly installed, broken,
o... | Don't mess with 3rd-party internals when it's not needed. The "REQUESTS_CA_BUNDLE" envvar is a documented feature of requests. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(
'cc_core.commons.connectors',
'cc_core.agent',
'cc_core.agent.cwl',
- 'cc_core.agent.cwl_io',
+ 'cc_core.agent.red',
'cc_core.agent.connected'
],
... | fixed package renaming error in setup.py | py |
diff --git a/field_history/tracker.py b/field_history/tracker.py
index <HASH>..<HASH> 100644
--- a/field_history/tracker.py
+++ b/field_history/tracker.py
@@ -4,11 +4,14 @@ from copy import deepcopy
import threading
from django.core import serializers
+from django.conf import settings
from django.db import models
... | ability to change serialize name in settings: FIELD_HISTORY_SERIALIZER_NAME | py |
diff --git a/sinchsms.py b/sinchsms.py
index <HASH>..<HASH> 100644
--- a/sinchsms.py
+++ b/sinchsms.py
@@ -33,8 +33,8 @@ class SinchSMS(object):
Sends a get request if values are None, post request otherwise.
"""
if values:
- jsonData = json.dumps(values)
- request =... | Fixed pylint warning. | py |
diff --git a/pymongo/collection.py b/pymongo/collection.py
index <HASH>..<HASH> 100644
--- a/pymongo/collection.py
+++ b/pymongo/collection.py
@@ -1120,9 +1120,12 @@ class Collection(common.BaseObject):
.. versionadded:: 1.10
"""
+ use_master = not self.slave_okay and not self.read_preference... | PYTHON-<I>: Adding support for ReadPreference on ReplicaSetConnections for Collection.inline_map_reduce. | py |
diff --git a/autoflake.py b/autoflake.py
index <HASH>..<HASH> 100755
--- a/autoflake.py
+++ b/autoflake.py
@@ -41,7 +41,7 @@ import pyflakes.messages
import pyflakes.reporter
-__version__ = '0.6.1'
+__version__ = '0.6.2'
ATOMS = frozenset([tokenize.NAME, tokenize.NUMBER, tokenize.STRING]) | Increment patch version to <I> | py |
diff --git a/machina/apps/forum/abstract_models.py b/machina/apps/forum/abstract_models.py
index <HASH>..<HASH> 100644
--- a/machina/apps/forum/abstract_models.py
+++ b/machina/apps/forum/abstract_models.py
@@ -54,7 +54,8 @@ class AbstractForum(MPTTModel, ActiveModel):
default=... | Forum type choices are now embedded in the model | py |
diff --git a/trunk/languagetool/query.py b/trunk/languagetool/query.py
index <HASH>..<HASH> 100644
--- a/trunk/languagetool/query.py
+++ b/trunk/languagetool/query.py
@@ -151,20 +151,28 @@ def buildList(filename):
def queryFiles(tokens, dir_name):
os.chdir(dir_name)
dir_contents = os.listdir(".")
+ dir_contents.so... | sort filenames, display file number | py |
diff --git a/plugins/bigquery/dbt/adapters/bigquery/impl.py b/plugins/bigquery/dbt/adapters/bigquery/impl.py
index <HASH>..<HASH> 100644
--- a/plugins/bigquery/dbt/adapters/bigquery/impl.py
+++ b/plugins/bigquery/dbt/adapters/bigquery/impl.py
@@ -519,13 +519,13 @@ class BigQueryAdapter(BaseAdapter):
table_... | Fixup range_partitioning comparison logic | py |
diff --git a/graphenecommon/genesisbalance.py b/graphenecommon/genesisbalance.py
index <HASH>..<HASH> 100644
--- a/graphenecommon/genesisbalance.py
+++ b/graphenecommon/genesisbalance.py
@@ -51,7 +51,7 @@ class GenesisBalance(BlockchainObject, AbstractBlockchainInstanceProvider):
account = self.blockch... | Pass blockchain_instance Without passing a proper instance, account got taken from the new instance which may connect to different network. | py |
diff --git a/tweepy/api.py b/tweepy/api.py
index <HASH>..<HASH> 100644
--- a/tweepy/api.py
+++ b/tweepy/api.py
@@ -1452,14 +1452,24 @@ class API:
``user_id`` and ``screen_name`` are not provided, the ownerships for
the authenticating user are returned.
- :param user_id: |user_id|
- :pa... | Update and improve documentation for API.lists_ownerships | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ finally:
setup(
name='django-fluent-comments',
- version='0.1.0',
+ version='0.8.0',
license='Apache License, Version 2.0',
install_requires=[ | Set <I> version, like other django-fluent apps | py |
diff --git a/lhc-python/lhc/binf/kmer.py b/lhc-python/lhc/binf/kmer.py
index <HASH>..<HASH> 100644
--- a/lhc-python/lhc/binf/kmer.py
+++ b/lhc-python/lhc/binf/kmer.py
@@ -1,18 +1,23 @@
+from collections import Counter
+
+
class KmerCounter(object):
def __init__(self, sequence, k=None, step=1):
- self.seque... | improved kmer to work with no counts | py |
diff --git a/thefuck/rules/cargo_no_command.py b/thefuck/rules/cargo_no_command.py
index <HASH>..<HASH> 100644
--- a/thefuck/rules/cargo_no_command.py
+++ b/thefuck/rules/cargo_no_command.py
@@ -4,7 +4,7 @@ from thefuck.utils import replace_argument, for_app
@for_app('cargo', at_least=1)
def match(command):
- re... | #<I>: Little refactoring | py |
diff --git a/doc/src/docbkx/scripts/generateReleaseNotes.py b/doc/src/docbkx/scripts/generateReleaseNotes.py
index <HASH>..<HASH> 100755
--- a/doc/src/docbkx/scripts/generateReleaseNotes.py
+++ b/doc/src/docbkx/scripts/generateReleaseNotes.py
@@ -6,7 +6,7 @@ import os
import argparse
import time
import collections
-... | Updated Release Notes script to look at new path of PyGithub | py |
diff --git a/src/python/dxpy/__init__.py b/src/python/dxpy/__init__.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/__init__.py
+++ b/src/python/dxpy/__init__.py
@@ -609,6 +609,9 @@ def DXHTTPRequest(resource, data, method='POST', headers=None, auth=True,
return i
_headers =... | DEVEX-<I> - Fix python 3 dx upload issue (#<I>) | py |
diff --git a/spyder/plugins/editor/widgets/codeeditor.py b/spyder/plugins/editor/widgets/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/codeeditor.py
+++ b/spyder/plugins/editor/widgets/codeeditor.py
@@ -2073,6 +2073,7 @@ class CodeEditor(TextEditBaseWidget):
if data and data... | Update spyder/plugins/editor/widgets/codeeditor.py | py |
diff --git a/smartmin/views.py b/smartmin/views.py
index <HASH>..<HASH> 100644
--- a/smartmin/views.py
+++ b/smartmin/views.py
@@ -46,7 +46,6 @@ class SmartView(object):
exclude = None
field_config = {}
title = None
- permission = None
refresh = 0
template_name = None
@@ -82,7 +81,7 @@ cla... | Handled the permission for actions inheritance issue | py |
diff --git a/source/awesome_tool/mvc/controllers/graphical_editor.py b/source/awesome_tool/mvc/controllers/graphical_editor.py
index <HASH>..<HASH> 100644
--- a/source/awesome_tool/mvc/controllers/graphical_editor.py
+++ b/source/awesome_tool/mvc/controllers/graphical_editor.py
@@ -685,6 +685,10 @@ class GraphicalEdito... | Make graphical editor more fail safe The graphical editor controller now checks whether the ports of a data flows are existing. If not, a warning is logged and the data flow is skipped. However, there are still errors in other components when removing an port to which a data flow is connected to! | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,4 +28,7 @@ setup(
'docs': ['Sphinx']
},
test_suite='aja.tests',
+ entry_points = {
+ 'console_scripts': ['aja = fabric.main:main']
+ }
) | Add aja-alias for fabric as a console script | py |
diff --git a/filer/admin/fileadmin.py b/filer/admin/fileadmin.py
index <HASH>..<HASH> 100644
--- a/filer/admin/fileadmin.py
+++ b/filer/admin/fileadmin.py
@@ -41,7 +41,7 @@ class FileAdmin(PrimitivePermissionAwareModelAdmin):
'fields': ('is_public',)
}),
(_('Advanced'), {
- 'fi... | Update the admin with the latest atribute name changes | py |
diff --git a/fsoopify/nodes.py b/fsoopify/nodes.py
index <HASH>..<HASH> 100644
--- a/fsoopify/nodes.py
+++ b/fsoopify/nodes.py
@@ -46,8 +46,8 @@ class NodeInfo(ABC):
'''
if not isinstance(dest_path, str):
raise TypeError
- os.rename(self._path, dest_path)
- self._path = Path... | fixes path not abs when rename | py |
diff --git a/tests/test_rdd.py b/tests/test_rdd.py
index <HASH>..<HASH> 100644
--- a/tests/test_rdd.py
+++ b/tests/test_rdd.py
@@ -32,7 +32,7 @@ dpark_master = os.environ.get("TEST_DPARK_MASTER", "local")
# export TEST_DPARK_MASTER=mesos
# export TMPDIR=/path/on/moosefs
-env_msg = "test with dpark_master={}, tempdi... | Polish env info output of test. | py |
diff --git a/maildir_deduplicate/deduplicate.py b/maildir_deduplicate/deduplicate.py
index <HASH>..<HASH> 100644
--- a/maildir_deduplicate/deduplicate.py
+++ b/maildir_deduplicate/deduplicate.py
@@ -62,7 +62,7 @@ class Deduplicate(object):
def add_maildir(self, maildir_path):
""" Load up a maildir add c... | Input maildirs are read-only. | py |
diff --git a/tests/column_test.py b/tests/column_test.py
index <HASH>..<HASH> 100644
--- a/tests/column_test.py
+++ b/tests/column_test.py
@@ -64,3 +64,12 @@ def test_plain_strings():
assert len(df[1:3]) == 2
assert df[1:3].x.tolist() == x[1:3].tolist()
+
+def test_dtype_object_with_arrays():
+ x = np.ar... | test: dtype object with numpy arrays Was missing from #<I> | py |
diff --git a/mtools/mplotqueries/plottypes/connchurn_type.py b/mtools/mplotqueries/plottypes/connchurn_type.py
index <HASH>..<HASH> 100644
--- a/mtools/mplotqueries/plottypes/connchurn_type.py
+++ b/mtools/mplotqueries/plottypes/connchurn_type.py
@@ -93,7 +93,13 @@ class ConnectionChurnPlotType(BasePlotType):
... | fix for <I> log files, that don't have the total number of connections. | py |
diff --git a/icekit/api/urls.py b/icekit/api/urls.py
index <HASH>..<HASH> 100644
--- a/icekit/api/urls.py
+++ b/icekit/api/urls.py
@@ -1,5 +1,7 @@
+import logging
+
from django.conf import settings
-from django.conf.urls import url, include, patterns
+from django.conf.urls import url, include
from django.utils.module... | #<I> Log errors don't fail when loading extra API routers | py |
diff --git a/h2o-py/h2o/h2o.py b/h2o-py/h2o/h2o.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/h2o.py
+++ b/h2o-py/h2o/h2o.py
@@ -354,7 +354,7 @@ def download_csv(data, filename):
"""
data._eager()
if not isinstance(data, H2OFrame): raise(ValueError, "`data` argument must be an H2OFrame, but got " + type(data... | update endpoint for python client download_csv | py |
diff --git a/python/ray/rllib/eval.py b/python/ray/rllib/eval.py
index <HASH>..<HASH> 100644
--- a/python/ray/rllib/eval.py
+++ b/python/ray/rllib/eval.py
@@ -7,6 +7,7 @@ from __future__ import print_function
import argparse
import gym
import json
+import os
import ray
from ray.rllib.agent import get_agent_class... | Load evaluation configuration from checkpoint (#<I>) | py |
diff --git a/gutenberg/acquire/metadata.py b/gutenberg/acquire/metadata.py
index <HASH>..<HASH> 100644
--- a/gutenberg/acquire/metadata.py
+++ b/gutenberg/acquire/metadata.py
@@ -39,12 +39,11 @@ class MetadataCacheManager(object):
if store == 'Sleepycat':
self.store = store
self.remov... | Make number of metadata stores explicit Really there are only two supported stores: - Sleepycat/BDB - Sqlite | py |
diff --git a/geomdl/BSpline.py b/geomdl/BSpline.py
index <HASH>..<HASH> 100644
--- a/geomdl/BSpline.py
+++ b/geomdl/BSpline.py
@@ -1324,7 +1324,7 @@ class Surface(object):
def delta(self):
""" Surface evaluation delta.
- .. note:: The delta value is 0.01 by default.
+ .. note:: The delta v... | Update inline docs for surface delta | py |
diff --git a/splunk_handler/__init__.py b/splunk_handler/__init__.py
index <HASH>..<HASH> 100644
--- a/splunk_handler/__init__.py
+++ b/splunk_handler/__init__.py
@@ -249,6 +249,7 @@ class SplunkHandler(logging.Handler):
if not payload:
payload = self.log_payload
+ self.log_payload = ... | fix dup log race condition on shutdown | py |
diff --git a/pytestsalt/utils.py b/pytestsalt/utils.py
index <HASH>..<HASH> 100644
--- a/pytestsalt/utils.py
+++ b/pytestsalt/utils.py
@@ -30,7 +30,6 @@ from collections import namedtuple
# Import 3rd party libs
import pytest
import psutil
-from tornado import gen, ioloop
# Import salt libs
import salt.ext.six a... | We don't need to rely on ioloop | py |
diff --git a/lib/yaml/emitter.py b/lib/yaml/emitter.py
index <HASH>..<HASH> 100644
--- a/lib/yaml/emitter.py
+++ b/lib/yaml/emitter.py
@@ -581,7 +581,9 @@ class Emitter(object):
return tag
handle = None
suffix = tag
- for prefix in self.tag_prefixes:
+ prefixes = self.tag_pr... | Added a workaround against #<I> (Thanks Andrey Somov). | py |
diff --git a/client/deis.py b/client/deis.py
index <HASH>..<HASH> 100755
--- a/client/deis.py
+++ b/client/deis.py
@@ -377,10 +377,6 @@ class DeisClient(object):
'No active controller. Use `deis login` or `deis register` to get started.')
url = urlparse.urljoin(controller, path, **kwargs)
... | fix(client): remove check for error message This check was originally used for API/client version mismatches, but breaks when the response is not as to be expected. The client response works, anyways: ><> deis apps <I> METHOD NOT ALLOWED {u'error': u'Client and server versions do not match.\nClient versio... | py |
diff --git a/tests/test_plan.py b/tests/test_plan.py
index <HASH>..<HASH> 100644
--- a/tests/test_plan.py
+++ b/tests/test_plan.py
@@ -3,7 +3,7 @@
import unittest
import sys
import os
-lib_fldr = os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + os.sep + ".." + os.sep + "AI" + os.sep + "lib")
+lib_fldr = ... | fixed test_plan to use corrected path | py |
diff --git a/pyaxiom/netcdf/dataset.py b/pyaxiom/netcdf/dataset.py
index <HASH>..<HASH> 100644
--- a/pyaxiom/netcdf/dataset.py
+++ b/pyaxiom/netcdf/dataset.py
@@ -24,3 +24,10 @@ class EnhancedDataset(Dataset):
vs.append(self.variables[vname])
return vs
+
+ def close(self):
+ try:
+... | Add a close method to EnhancedDataset that won't raise a RuntimeError | py |
diff --git a/balsa/balsa.py b/balsa/balsa.py
index <HASH>..<HASH> 100644
--- a/balsa/balsa.py
+++ b/balsa/balsa.py
@@ -94,6 +94,8 @@ class Balsa(object):
use_sentry_django = attrib(default=False)
use_sentry_lambda = attrib(default=False)
use_sentry_sqlalchemy = attrib(default=False)
+ use_sentry_celer... | Add celery to sentry integrations | py |
diff --git a/src/requirementslib/models/dependency.py b/src/requirementslib/models/dependency.py
index <HASH>..<HASH> 100644
--- a/src/requirementslib/models/dependency.py
+++ b/src/requirementslib/models/dependency.py
@@ -324,13 +324,14 @@ class DependencyResolver(object):
for round_ in range(max_rounds):
... | Only check for difference in history after round 1 | py |
diff --git a/yabt/caching_random_test.py b/yabt/caching_random_test.py
index <HASH>..<HASH> 100644
--- a/yabt/caching_random_test.py
+++ b/yabt/caching_random_test.py
@@ -350,7 +350,7 @@ def get_random_artifacts_to_delete(project: ProjectContext):
target = summary['name'].strip(':')
for type_n... | check if the artifact hash in artifacts to delete | py |
diff --git a/metanl/wordlist.py b/metanl/wordlist.py
index <HASH>..<HASH> 100644
--- a/metanl/wordlist.py
+++ b/metanl/wordlist.py
@@ -83,10 +83,10 @@ class Wordlist(object):
if filename in CACHE:
return CACHE[filename]
else:
- stream = pkg_resources.resource_stream(
+ ... | Decode the wordlist all at once, for faster loading. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.