diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/angr/project.py b/angr/project.py
index <HASH>..<HASH> 100644
--- a/angr/project.py
+++ b/angr/project.py
@@ -169,7 +169,7 @@ class Project(object):
auto_libs = [os.path.basename(o) for o in self.ld.dependencies.keys()]
custom_libs = [os.path.basename(o) for o in self.ld._custom_dependenc... | Fix: no duplicate entries for libraries in simprocedures resolution when custom libs overlap auto libs. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,10 +12,10 @@ setup(
version='1.2.7',
description='BaseCRM Official API V2 library client for Python',
long_description=README,
- author='BaseCRM developers',
- author_email='developers@getbase.com',
+ ... | Update license in pypi package setup | py |
diff --git a/tensorflow_datasets/image/cifar_test.py b/tensorflow_datasets/image/cifar_test.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/image/cifar_test.py
+++ b/tensorflow_datasets/image/cifar_test.py
@@ -27,7 +27,7 @@ class Cifar10Test(dataset_builder_testing.TestCase):
DATASET_CLASS = cifar.Cifar10
... | Move references of deleted generate_cifar<I>_like_example.py to the new name cifar.py PiperOrigin-RevId: <I> | py |
diff --git a/salt/states/rbenv.py b/salt/states/rbenv.py
index <HASH>..<HASH> 100644
--- a/salt/states/rbenv.py
+++ b/salt/states/rbenv.py
@@ -44,6 +44,7 @@ This is how a state configuration could look like:
# Import python libs
import re
import copy
+
# Import salt libs
import salt.utils
@@ -270,13 +271,13 @@ d... | Fix description of method and whitespace lost | py |
diff --git a/argiope/mesh.py b/argiope/mesh.py
index <HASH>..<HASH> 100644
--- a/argiope/mesh.py
+++ b/argiope/mesh.py
@@ -221,7 +221,8 @@ class Mesh(argiope.utils.Container):
if v.dtype != 'bool':
raise ValueError("Sets must be boolean array-likes.")
self.nodes["sets", k] = v
-
+ s... | added set 'all' to nodes and elements | py |
diff --git a/modin/pandas/test/test_groupby.py b/modin/pandas/test/test_groupby.py
index <HASH>..<HASH> 100644
--- a/modin/pandas/test/test_groupby.py
+++ b/modin/pandas/test/test_groupby.py
@@ -15,7 +15,6 @@ import pytest
import itertools
import pandas
import numpy as np
-import itertools
import modin.pandas as pd... | FIX-#<I>: Fix failures flake8 in CI (#<I>) | py |
diff --git a/manticore/ethereum.py b/manticore/ethereum.py
index <HASH>..<HASH> 100644
--- a/manticore/ethereum.py
+++ b/manticore/ethereum.py
@@ -574,7 +574,7 @@ class ManticoreEVM(Manticore):
with tempfile.NamedTemporaryFile() as temp:
temp.write(source_code)
temp.flush()
- ... | Allow importing solidity files from current folder (#<I>) | py |
diff --git a/pywws/version.py b/pywws/version.py
index <HASH>..<HASH> 100644
--- a/pywws/version.py
+++ b/pywws/version.py
@@ -24,12 +24,13 @@ from datetime import date
import subprocess
try:
- commit = subprocess.check_output(
- ['git', 'rev-parse', '--short', 'HEAD']).strip()
+ p = subprocess.Popen(
... | Made version.py work with Python versions <I> to 3.x It had been using 'subprocess.check_output' which was introduced in version <I>, and 'print' without brackets which upsets Python 3. | py |
diff --git a/easy_select2/widgets.py b/easy_select2/widgets.py
index <HASH>..<HASH> 100644
--- a/easy_select2/widgets.py
+++ b/easy_select2/widgets.py
@@ -110,13 +110,9 @@ class Select2Mixin(object):
return mark_safe(output)
- def _media(self):
- return forms.Media(
- js=SELECT2_WIDGET... | Media class does not need to be a dynamic property. | py |
diff --git a/requests_oauthlib/core.py b/requests_oauthlib/core.py
index <HASH>..<HASH> 100644
--- a/requests_oauthlib/core.py
+++ b/requests_oauthlib/core.py
@@ -52,7 +52,7 @@ class OAuth1(object):
# Omit body data in the signing of non form-encoded requests
r.url, r.headers, _ = self.client.... | Only pass bytes to urllib3. This should resolve requests-oauthlib's problems with uploading binary data, as demonstrated in kennethreitz/requests#<I>. | py |
diff --git a/pynames/from_tables_generator.py b/pynames/from_tables_generator.py
index <HASH>..<HASH> 100644
--- a/pynames/from_tables_generator.py
+++ b/pynames/from_tables_generator.py
@@ -88,13 +88,15 @@ class Template(object):
class FromTablesGenerator(BaseGenerator):
SOURCE = None
+ AUTOLOAD = True # y... | source loading may now be skipped on generator init | py |
diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/simple_httpclient_test.py
+++ b/tornado/test/simple_httpclient_test.py
@@ -223,6 +223,6 @@ class SimpleHTTPClientTestCase(AsyncHTTPTestCase, LogTrapTestCase):
url = self.g... | Make a recently-added test pass in python3 | py |
diff --git a/superset/viz.py b/superset/viz.py
index <HASH>..<HASH> 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -1842,7 +1842,7 @@ class DistributionBarViz(BaseViz):
sortby = utils.get_metric_name(
self.form_data.get("timeseries_limit_metric") or metrics[0]
)
- row = df.g... | fix: custom SQL in Sort By Breaks Bar Chart (#<I>) | py |
diff --git a/test/test_service.py b/test/test_service.py
index <HASH>..<HASH> 100644
--- a/test/test_service.py
+++ b/test/test_service.py
@@ -99,13 +99,22 @@ class BasicService(service.Service):
"""
def __init__(self):
super(BasicService, self).__init__(NAME, pid_dir=PID_DIR)
- self.logger.ha... | Better logging during service start/stop in tests | py |
diff --git a/bika/lims/browser/referencesample.py b/bika/lims/browser/referencesample.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/referencesample.py
+++ b/bika/lims/browser/referencesample.py
@@ -13,6 +13,7 @@ from plone.app.layout.globals.interfaces import IViewView
from zope.component import getMultiAdapt... | Sort QC Analyses list by Capture Date in QC Sample Analyses view | py |
diff --git a/openstack_dashboard/test/integration_tests/helpers.py b/openstack_dashboard/test/integration_tests/helpers.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/test/integration_tests/helpers.py
+++ b/openstack_dashboard/test/integration_tests/helpers.py
@@ -31,6 +31,7 @@ class BaseTestCase(testtools.Te... | Run integration tests full screen I added self.driver.maximize_window() to helpers's setUp, making all integration tests run full screen (maximizing the browser's window). Closes-Bug: #<I> Change-Id: Idd<I>ef3a<I>eb<I>d<I>fa<I>bf1e7d<I>dc8 | py |
diff --git a/pandas/util/_test_decorators.py b/pandas/util/_test_decorators.py
index <HASH>..<HASH> 100644
--- a/pandas/util/_test_decorators.py
+++ b/pandas/util/_test_decorators.py
@@ -25,9 +25,8 @@ For more information, refer to the ``pytest`` documentation on ``skipif``.
"""
from distutils.version import LooseVer... | TYPING: _pytest.mark.structures.MarkDecorator -> Callable (#<I>) | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -37,8 +37,8 @@ def path_exists_force(request, monkeypatch):
"""
result = getattr(request.function, 'exists_result', True)
if isinstance(result, list):
- monkeypatch.set... | [QA] Reduce duplication in path_exists_force | py |
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/readinput.py
+++ b/openquake/commonlib/readinput.py
@@ -325,8 +325,15 @@ def get_mesh(oqparam):
start, stop = oqparam.sites_slice
c = (coords[start:stop] if header[0] ... | Expand on an explanatory comment in readinput [skip CI] Former-commit-id: ed<I>e<I>d4dc<I>c<I>d<I>a<I>aa6 | py |
diff --git a/overpass/api.py b/overpass/api.py
index <HASH>..<HASH> 100644
--- a/overpass/api.py
+++ b/overpass/api.py
@@ -12,7 +12,7 @@ class API(object):
# defaults for the API class
_timeout = 25 # seconds
- _endpoint = "http://overpass-api.de/api/interpreter"
+ _endpoint = "https://overpass-api.d... | Change to https as http is no longer supported on overpass-api.de | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -234,7 +234,7 @@ def format_annotation(annotation):
full_name = '{}.{}'.format(annotation.__module__, annotation.__qualname__)
override = qualname_overrides.get(full_name)
if override... | Uh, why get it twice? | py |
diff --git a/wily/cache.py b/wily/cache.py
index <HASH>..<HASH> 100644
--- a/wily/cache.py
+++ b/wily/cache.py
@@ -106,6 +106,8 @@ def store(config, archiver, revision, stats):
logger.debug(f"Creating {revision.key} output")
filename = root / (revision.key + ".json")
+ if filename.exists():
+ rais... | put a guard against overwritting the cache files | py |
diff --git a/LogGabor/LogGabor.py b/LogGabor/LogGabor.py
index <HASH>..<HASH> 100644
--- a/LogGabor/LogGabor.py
+++ b/LogGabor/LogGabor.py
@@ -65,7 +65,7 @@ class LogGabor(Image):
axs = []
for i_sf_0, sf_0_ in enumerate(self.sf_0):
ax = fig.add_axes((xmin/phi, ymin, size/phi, size), axisb... | changing the axis for the Golden pyramid | py |
diff --git a/scarlet/versioning/management/mssql_migration.py b/scarlet/versioning/management/mssql_migration.py
index <HASH>..<HASH> 100644
--- a/scarlet/versioning/management/mssql_migration.py
+++ b/scarlet/versioning/management/mssql_migration.py
@@ -104,7 +104,15 @@ class MSSQLBackend(object):
# `DEFAULT_... | MSSQL: Using dbo as default schema for Azure DB | py |
diff --git a/icekit/articles/page_type_plugins.py b/icekit/articles/page_type_plugins.py
index <HASH>..<HASH> 100644
--- a/icekit/articles/page_type_plugins.py
+++ b/icekit/articles/page_type_plugins.py
@@ -11,6 +11,13 @@ class ListingPagePlugin(ICEkitFluentContentsPagePlugin):
render_template = 'icekit/layouts/li... | Make current request available to `ListingPage`s item methods This is an awful hack. Hopefully we can find a better way. See ICEKit ticket #<I> in Assembla | py |
diff --git a/compiler/js/component.py b/compiler/js/component.py
index <HASH>..<HASH> 100644
--- a/compiler/js/component.py
+++ b/compiler/js/component.py
@@ -244,7 +244,7 @@ class component_generator(object):
oname = name
fullname = path, name
- is_on = event and len(name) > 2 and name != 'onCompleted' and... | allow digits as key handlers | py |
diff --git a/nipap-cli/nipap_cli/nipap_cli.py b/nipap-cli/nipap_cli/nipap_cli.py
index <HASH>..<HASH> 100755
--- a/nipap-cli/nipap_cli/nipap_cli.py
+++ b/nipap-cli/nipap_cli/nipap_cli.py
@@ -334,10 +334,11 @@ def add_prefix(arg, opts):
if p.vrf is None:
vrf_rt = 'none'
+ print "Prefix %s added to... | Improve log message for CLI prefix add The following is the output that adding a prefix will print; Prefix <I>/<I> added to VRF 'asdcsadc' (<I>:<I>) It improves on the old output by adding the VRF name in addition to the RT. For prefixes in no VRF, this is the new output: Prefix <I>/<I> added to the global VRF. Fix... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,10 +27,11 @@ setup(name='mnist',
description='Python utilities to download and parse the MNIST dataset',
long_description=LONG_DESCRIPTION,
url='https://github.com/datapythonista/mnist',
- version... | fixing bug on setup.py which prevented source code to be packed | py |
diff --git a/tests/integration/WatchmanTestCase.py b/tests/integration/WatchmanTestCase.py
index <HASH>..<HASH> 100644
--- a/tests/integration/WatchmanTestCase.py
+++ b/tests/integration/WatchmanTestCase.py
@@ -18,6 +18,11 @@ import WatchmanInstance
import copy
import sys
+if pywatchman.compat.PYTHON3:
+ STRING_... | tests: deal with Python 3's renaming of str/unicode | py |
diff --git a/folium/map.py b/folium/map.py
index <HASH>..<HASH> 100644
--- a/folium/map.py
+++ b/folium/map.py
@@ -83,6 +83,9 @@ class LayerControl(MacroElement):
"""
Creates a LayerControl object to be added on a folium map.
+ This object should be added to a Map object. Only Layer children
+ of Map ... | Add comment to LayerControl docstring | py |
diff --git a/PyFunceble/cli/entry_points/pyfunceble/cli.py b/PyFunceble/cli/entry_points/pyfunceble/cli.py
index <HASH>..<HASH> 100644
--- a/PyFunceble/cli/entry_points/pyfunceble/cli.py
+++ b/PyFunceble/cli/entry_points/pyfunceble/cli.py
@@ -604,6 +604,7 @@ def get_output_control_group_data() -> List[Tuple[List[str], ... | Fix issue with the missing stdout. This patch touches #<I>. Indeed, I forgot to set the default value. | py |
diff --git a/acceptancetests/assess_bootstrap.py b/acceptancetests/assess_bootstrap.py
index <HASH>..<HASH> 100755
--- a/acceptancetests/assess_bootstrap.py
+++ b/acceptancetests/assess_bootstrap.py
@@ -87,7 +87,8 @@ def assess_to(bs_manager, to):
log.info('To {} bootstrap successful.'.format(to))
add... | Adds detail to assertion error output for deployment tests that bootstrap with the --to option. | py |
diff --git a/tapioca/adapters.py b/tapioca/adapters.py
index <HASH>..<HASH> 100644
--- a/tapioca/adapters.py
+++ b/tapioca/adapters.py
@@ -71,7 +71,8 @@ class JSONAdapterMixin(object):
return arguments
def format_data_to_request(self, data):
- return json.dumps(data)
+ if data:
+ ... | verifying if there's data before json dumping it | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ finally:
setup(
name='pyziptax',
- version='1.1',
+ version='1.2',
description='Python API for accessing sales tax information from Zip-Tax.com',
long_description=long_description,
aut... | Update package to version <I> | py |
diff --git a/master/buildbot/scripts/runner.py b/master/buildbot/scripts/runner.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/scripts/runner.py
+++ b/master/buildbot/scripts/runner.py
@@ -906,7 +906,7 @@ def sendchange(config, runReactor=False):
status[0] = False
s.printFailure(res)
... | Fix 'sendchange' to correctly exit after sending the change | py |
diff --git a/fitsio/__init__.py b/fitsio/__init__.py
index <HASH>..<HASH> 100644
--- a/fitsio/__init__.py
+++ b/fitsio/__init__.py
@@ -167,6 +167,7 @@ TODO
read single column mode. Also with subsets of rows.
- Figure out how to make cfitsio flush write buffers. Only needed
because my optimal read hack bypasses... | more docs in README | py |
diff --git a/kubernetes/K8sDeployment.py b/kubernetes/K8sDeployment.py
index <HASH>..<HASH> 100644
--- a/kubernetes/K8sDeployment.py
+++ b/kubernetes/K8sDeployment.py
@@ -40,7 +40,7 @@ class K8sDeployment(K8sObject):
self.add_container(container)
if self.config.pull_secret is not None:
- ... | K8sDeployment: handle image_pull_secret | py |
diff --git a/rb/cluster.py b/rb/cluster.py
index <HASH>..<HASH> 100644
--- a/rb/cluster.py
+++ b/rb/cluster.py
@@ -2,7 +2,7 @@ from redis.connection import ConnectionPool, UnixDomainSocketConnection
try:
from redis.connection import SSLConnection
except ImportError:
- SSLConnection is None
+ SSLConnection ... | Fix NameError when SSLConnection doesn't exist | py |
diff --git a/cobra/manipulation/modify.py b/cobra/manipulation/modify.py
index <HASH>..<HASH> 100644
--- a/cobra/manipulation/modify.py
+++ b/cobra/manipulation/modify.py
@@ -82,8 +82,8 @@ def initialize_growth_medium(cobra_model, the_medium='MgM',
if reactions_to_disable is not None:
if isinstance(reacti... | corrected bug associated with adding back the legacy parameter to initialize_growth_medium | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,10 +3,10 @@ __author__ = 'facetoe'
from setuptools import setup
setup(name='zenpy',
- version='0.1',
+ version='0.1.0',
install_requires=['requests'],
- description='Wrapper for the zendesk API',
-... | Added more detail to setup.py | py |
diff --git a/src/pyshark/capture/live_capture.py b/src/pyshark/capture/live_capture.py
index <HASH>..<HASH> 100644
--- a/src/pyshark/capture/live_capture.py
+++ b/src/pyshark/capture/live_capture.py
@@ -45,10 +45,10 @@ class LiveCapture(Capture):
Returns the special tshark parameters to be used according to th... | make sure BPF filter applies to all interfaces, and not only the last one. From tshark man page: -f <capture filter> Set the capture filter expression. This option can occur multiple times. If used before the first occurrence of the -i option, it sets the default capture filter expressio... | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2813,12 +2813,13 @@ class Symbol(object):
self._cached_tri_val = 0
return 0
- val = 0
# Warning: See Symbol._rec_invalidate(), and note that this is a hidden
... | Move 'val' initialization a bit later in tri_value() Makes it harder to miss. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# Copyright 2017-2018 - Swiss Data Science Center (SDSC)
+# Copyright 2017-2019 - Swiss Data Science Center (SDSC)
# A partnership between École Polytechnique Fédérale de Lausanne (EP... | setup: templated year in version file | py |
diff --git a/lib/bibformat_migration_kit_templates.py b/lib/bibformat_migration_kit_templates.py
index <HASH>..<HASH> 100644
--- a/lib/bibformat_migration_kit_templates.py
+++ b/lib/bibformat_migration_kit_templates.py
@@ -135,11 +135,11 @@ class Template:
staightforward. Here are some advice for the migration... | Fixed "CDSWare" typos; either replaced by CDSware, or by CDS Invenio, or dropped, as appropriate. | py |
diff --git a/stanza/utils/max_mwt_length.py b/stanza/utils/max_mwt_length.py
index <HASH>..<HASH> 100644
--- a/stanza/utils/max_mwt_length.py
+++ b/stanza/utils/max_mwt_length.py
@@ -2,12 +2,13 @@ import sys
import json
-with open(sys.argv[1]) as f:
- d = json.load(f)
- l = max([0] + [len(" ".join(x[0][1])) ... | Make this runnable as a module | py |
diff --git a/checkers/python3.py b/checkers/python3.py
index <HASH>..<HASH> 100644
--- a/checkers/python3.py
+++ b/checkers/python3.py
@@ -47,7 +47,7 @@ def _check_dict_node(node):
or any(isinstance(x, astroid.Dict) for x in inferred_types))
def _is_builtin(node):
- return getattr(node, 'name', None)... | Also consider the builtins module as a single something is a builtin | py |
diff --git a/master/buildbot/steps/trigger.py b/master/buildbot/steps/trigger.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/steps/trigger.py
+++ b/master/buildbot/steps/trigger.py
@@ -25,7 +25,7 @@ class Trigger(LoggingBuildStep):
"""
name = "trigger"
- renderables = [ 'set_properties', 'scheduler... | render schedulerNames, not scheduler, for Triggerable | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -53,7 +53,7 @@ copyright = u'2012, Daniel Holmström'
# The short X.Y version.
version = '0.1'
# The full version, including alpha/beta/rc tags.
-release = '0.1.2.2'
+release = '0.... | Changed version to <I> | py |
diff --git a/tornado/routing.py b/tornado/routing.py
index <HASH>..<HASH> 100644
--- a/tornado/routing.py
+++ b/tornado/routing.py
@@ -142,7 +142,7 @@ Of course a nested `RuleRouter` or a `~.web.Application` is allowed:
router = RuleRouter([
Rule(HostMatches("example.com"), RuleRouter([
- Rul... | Fix syntax error in nested routing example | py |
diff --git a/benchmarks/time/test_curves.py b/benchmarks/time/test_curves.py
index <HASH>..<HASH> 100644
--- a/benchmarks/time/test_curves.py
+++ b/benchmarks/time/test_curves.py
@@ -22,7 +22,7 @@ FAILURES = (11, 20, 24, 42)
def get_bounds():
if os.getenv('CIRCLECI') == 'true':
- return 85.0 / 1024.0, 95... | Changing time benchmark for CircleCI. Performance characteristics seem to have change with the <I> -> <I> change. - <URL> | py |
diff --git a/plenum/server/req_authenticator.py b/plenum/server/req_authenticator.py
index <HASH>..<HASH> 100644
--- a/plenum/server/req_authenticator.py
+++ b/plenum/server/req_authenticator.py
@@ -69,4 +69,5 @@ class ReqAuthenticator:
return authnr
def clean_from_verified(self, key):
- ... | [INDY-<I>] fix key removing from verified_reqs map | py |
diff --git a/test/test_state_utils.py b/test/test_state_utils.py
index <HASH>..<HASH> 100644
--- a/test/test_state_utils.py
+++ b/test/test_state_utils.py
@@ -49,13 +49,23 @@ class TestStateUtils:
for et in appClient.state.draft.eventTypes:
if et.name in NameList:
print("Deleting ... | Resolving current travis failings jonah (#<I>) * Handled Exception in Testcleanup() to fix travis build * Minor correction | py |
diff --git a/scripts/shopify_api.py b/scripts/shopify_api.py
index <HASH>..<HASH> 100755
--- a/scripts/shopify_api.py
+++ b/scripts/shopify_api.py
@@ -51,7 +51,7 @@ class TasksMeta(type):
# Allow unambigious abbreviations of tasks
if task not in cls._tasks:
- matches = filter(lambda item:... | Fix 'object of type "filter" has no len()' issue | py |
diff --git a/mmcv/runner/utils.py b/mmcv/runner/utils.py
index <HASH>..<HASH> 100644
--- a/mmcv/runner/utils.py
+++ b/mmcv/runner/utils.py
@@ -18,7 +18,10 @@ def get_dist_info():
if torch.__version__ < '1.0':
initialized = dist._initialized
else:
- initialized = dist.is_initialized()
+ ... | call dist.is_initialized() after checking the availability (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -25,6 +25,7 @@ files = [
'pyontutils/scigraph.py',
'pyontutils/scigraph_deploy.py',
'pyontutils/scigraph_client.py',
+ 'pyontutils/scr_sync.py',
'pyontutils/ttlfmt.py',
'pyontutils/ttlser.py',
... | setup.py added scr_sync as as script registry-sync | py |
diff --git a/instabot/bot/bot.py b/instabot/bot/bot.py
index <HASH>..<HASH> 100644
--- a/instabot/bot/bot.py
+++ b/instabot/bot/bot.py
@@ -174,10 +174,12 @@ class Bot(API):
def login(self, **args):
if self.proxy:
args['proxy'] = self.proxy
- super(Bot, self).login(**args)
+ if s... | proper exit handling on login(): refactoring according to PyLint | py |
diff --git a/mouse/_nixmouse.py b/mouse/_nixmouse.py
index <HASH>..<HASH> 100644
--- a/mouse/_nixmouse.py
+++ b/mouse/_nixmouse.py
@@ -80,7 +80,7 @@ def listen(queue):
if type == EV_SYN or type == EV_MSC:
continue
- event_type = None
+ event = None
arg = None
if... | Fix Linux issue pointed out by adabak | py |
diff --git a/MAVProxy/modules/mavproxy_misc.py b/MAVProxy/modules/mavproxy_misc.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_misc.py
+++ b/MAVProxy/modules/mavproxy_misc.py
@@ -32,7 +32,7 @@ class MiscModule(mp_module.MPModule):
def cmd_alt(self, args):
'''show altitude'''
print... | misc: update QNH alt response | py |
diff --git a/salt/runners/manage.py b/salt/runners/manage.py
index <HASH>..<HASH> 100644
--- a/salt/runners/manage.py
+++ b/salt/runners/manage.py
@@ -13,6 +13,7 @@ import subprocess
import tempfile
import time
import urllib
+import logging
# Import salt libs
import salt.key
@@ -24,6 +25,7 @@ import salt.version... | Starting on manage runner migration to event | py |
diff --git a/pysat/_constellation.py b/pysat/_constellation.py
index <HASH>..<HASH> 100644
--- a/pysat/_constellation.py
+++ b/pysat/_constellation.py
@@ -117,7 +117,6 @@ class Constellation(object):
# Initalize the `instruments` attribute to be an empty list before
# loading using each of the availab... | BUG: fixed bad date assignment Removed a bad `date` instantiation and fixed a typo in a method name. | py |
diff --git a/salt/thorium/__init__.py b/salt/thorium/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/thorium/__init__.py
+++ b/salt/thorium/__init__.py
@@ -47,12 +47,12 @@ class ThorState(salt.state.HighState):
self.returners = salt.loader.returners(self.opts, {})
self.reg_ret = self.opts.get('re... | Create regdata before try/except (#<I>) | py |
diff --git a/papermill/tests/test_s3.py b/papermill/tests/test_s3.py
index <HASH>..<HASH> 100644
--- a/papermill/tests/test_s3.py
+++ b/papermill/tests/test_s3.py
@@ -23,7 +23,10 @@ def test_bucket_list():
@pytest.mark.parametrize("value,expected", [
('s3://foo/bar/baz', ['foo', 'bar/baz']),
- ('s3://foo/bar... | add a few more test cases for split | py |
diff --git a/simuvex/procedures/libc___so___6/__libc_start_main.py b/simuvex/procedures/libc___so___6/__libc_start_main.py
index <HASH>..<HASH> 100644
--- a/simuvex/procedures/libc___so___6/__libc_start_main.py
+++ b/simuvex/procedures/libc___so___6/__libc_start_main.py
@@ -24,7 +24,7 @@ class __libc_start_main(simuvex... | renamed abiv to ppc<I>_abiv | py |
diff --git a/satpy/readers/glm_l2.py b/satpy/readers/glm_l2.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/glm_l2.py
+++ b/satpy/readers/glm_l2.py
@@ -102,7 +102,8 @@ class NCGriddedGLML2(NC_ABI_BASE):
for attr in ('scene_abbr', 'scan_mode', 'platform_shortname'):
res.attrs[attr] = self.filena... | Add spatial_resolution global attribute to glm_l2 attrs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,13 +2,10 @@ import setuptools
try:
import pkg_utils
except ImportError:
- import pip
- pip_version = tuple(pip.__version__.split('.'))
- if pip_version >= ('19', '3', '0'):
- import pip._internal.main... | replacing unstable pip API with subprocess and sys.executable | py |
diff --git a/parler/forms.py b/parler/forms.py
index <HASH>..<HASH> 100644
--- a/parler/forms.py
+++ b/parler/forms.py
@@ -72,7 +72,11 @@ class TranslatableModelFormMixin(object):
# Typically already set by admin
if self.language_code is None:
- self.language_code = instance.get_current_l... | cleanup: clarify form.language_code in TranslatableModelFormMixin | py |
diff --git a/tornado_json/jsend.py b/tornado_json/jsend.py
index <HASH>..<HASH> 100644
--- a/tornado_json/jsend.py
+++ b/tornado_json/jsend.py
@@ -1,6 +1,3 @@
-"""Forked from: http://tornadogists.org/6612013/"""
-
-
class JSendMixin(object):
"""http://labs.omniti.com/labs/jsend | tornadogists.org is MIA :( | py |
diff --git a/salt/utils/process.py b/salt/utils/process.py
index <HASH>..<HASH> 100644
--- a/salt/utils/process.py
+++ b/salt/utils/process.py
@@ -1182,14 +1182,15 @@ def default_signals(*signals):
else:
old_signals[signum] = saved_signal
- # Do whatever is needed with the reset signals
- ... | Always restore signals, even when exceptions occur | py |
diff --git a/sslyze/plugins/certificate_info_plugin.py b/sslyze/plugins/certificate_info_plugin.py
index <HASH>..<HASH> 100755
--- a/sslyze/plugins/certificate_info_plugin.py
+++ b/sslyze/plugins/certificate_info_plugin.py
@@ -509,7 +509,10 @@ class CertInfoBasicResult(CertInfoFullResult):
# Extract the CN... | Properly extract the Issuer field when there is no CN; fixes #<I> | py |
diff --git a/tests/test_simple_run.py b/tests/test_simple_run.py
index <HASH>..<HASH> 100644
--- a/tests/test_simple_run.py
+++ b/tests/test_simple_run.py
@@ -288,5 +288,5 @@ def test_run_iznn():
if __name__ == '__main__':
test_serial()
- test_serial_random(main=True)
+ test_serial_random()
test_para... | Oops on main for test_simple_run.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,6 @@ install_requires = [
classifiers = [
"Development Status :: 4 - Beta",
- "License :: OSI Approved :: Apache License 2.0 (Apache-2.0)",
"License :: OSI Approved :: Apache Software License",
"... | Fixed license line for pypi deploy | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,8 +45,10 @@ setup_args.update(dict(
"holoviews.ipython",
"holoviews.operation",
"holoviews.plotting",
- "holoviews.plotting.mpl"],
+ "holovie... | Added bokeh subpackage to setup.py | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100755
--- a/test.py
+++ b/test.py
@@ -65,7 +65,7 @@ class MemberTest(APITest):
states = [
('RI', 2),
('AL', 7),
- ('AZ', 9),
+ ('AZ', 8),
]
for state, count in states: | Updated test function with latest member data so tests return accurate results. | py |
diff --git a/wechatpy/client/async/tornado.py b/wechatpy/client/async/tornado.py
index <HASH>..<HASH> 100644
--- a/wechatpy/client/async/tornado.py
+++ b/wechatpy/client/async/tornado.py
@@ -10,7 +10,13 @@ from wechatpy.client import WeChatClient
class AsyncClientMixin(object):
+ """
+ 基于 Tornado coroutine 和... | Add docstrings for new tornado based async client. [ci skip] | py |
diff --git a/phoebe/parameters/definitions.py b/phoebe/parameters/definitions.py
index <HASH>..<HASH> 100644
--- a/phoebe/parameters/definitions.py
+++ b/phoebe/parameters/definitions.py
@@ -423,7 +423,7 @@ defs += [dict(qualifier='ld_func', description='Limb darkening model',repr='%s
... | At line <I>, two records were added to the 'columns' parameter, context 'ifsyn'. The records are, 'eff_wave', 'total_flux'. Without the two records, the IFDataSet.clear() did not clear corresponding arrays and they grew in each iteration during fitting. | py |
diff --git a/src/masonite/drivers/upload/BaseUploadDriver.py b/src/masonite/drivers/upload/BaseUploadDriver.py
index <HASH>..<HASH> 100644
--- a/src/masonite/drivers/upload/BaseUploadDriver.py
+++ b/src/masonite/drivers/upload/BaseUploadDriver.py
@@ -41,7 +41,7 @@ class BaseUploadDriver(BaseDriver):
FileTy... | Upload: Allow case insensitive image extensions | py |
diff --git a/txdbus/message.py b/txdbus/message.py
index <HASH>..<HASH> 100644
--- a/txdbus/message.py
+++ b/txdbus/message.py
@@ -360,7 +360,7 @@ def parseMessage( rawMessage ):
pass
if m.signature:
- nbytes, m.body = marshal.unmarshal(m.signature, m.rawBody)
+ nbytes, m.body ... | Bug fix: Unmarshal big endian messages correctly The endianness of the message was parsed correctly, but the endianness was not passed to the unmarshal function, which defaults to little-endian format. This caused big endian data to be unmarshalled incorrectly. | py |
diff --git a/acos_client/tests/unit/v30/test_slb_server.py b/acos_client/tests/unit/v30/test_slb_server.py
index <HASH>..<HASH> 100644
--- a/acos_client/tests/unit/v30/test_slb_server.py
+++ b/acos_client/tests/unit/v30/test_slb_server.py
@@ -183,6 +183,7 @@ class TestIPv6Server(unittest.TestCase):
'co... | mended unit test for slb_server | py |
diff --git a/src/emir/__init__.py b/src/emir/__init__.py
index <HASH>..<HASH> 100644
--- a/src/emir/__init__.py
+++ b/src/emir/__init__.py
@@ -21,10 +21,10 @@
import logging
-from .simulator import EmirImageFactory as ImageFactory
-from emir.simulator import Instrument
+#from .simulator import EmirImageFactory as ... | Comented deprecated imports | py |
diff --git a/libagent/device/keepkey_defs.py b/libagent/device/keepkey_defs.py
index <HASH>..<HASH> 100644
--- a/libagent/device/keepkey_defs.py
+++ b/libagent/device/keepkey_defs.py
@@ -9,6 +9,9 @@ from keepkeylib.transport_hid import HidTransport
from keepkeylib.transport_webusb import WebUsbTransport
from keepkeyl... | Upgrade KeepKey for new libagent code Add get_public_node for KeepKey | py |
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_resources.py
+++ b/setuptools/tests/test_resources.py
@@ -18,11 +18,6 @@ from setuptools.command.easy_install import (get_script_header, is_sh,
from setuptools.compat import Stri... | frozenset is available in Python <I> | py |
diff --git a/exchangelib/fields.py b/exchangelib/fields.py
index <HASH>..<HASH> 100644
--- a/exchangelib/fields.py
+++ b/exchangelib/fields.py
@@ -471,6 +471,14 @@ class EnumField(IntegerField):
value = self.enum.index(value) + 1
return super(EnumField, self).clean(value, version=version)
+ ... | Provide helper for string translation of enums | py |
diff --git a/natto/mecab.py b/natto/mecab.py
index <HASH>..<HASH> 100644
--- a/natto/mecab.py
+++ b/natto/mecab.py
@@ -413,7 +413,8 @@ class MeCab(object):
or string if False.
:type as_nodes: bool, defaults to False
:param morpheme_constraints: regular expression for morpheme boundary
- ... | Refinining documentation on boundary constraint parsing in MeCab with Python. | py |
diff --git a/rpc_differ/rpc_differ.py b/rpc_differ/rpc_differ.py
index <HASH>..<HASH> 100644
--- a/rpc_differ/rpc_differ.py
+++ b/rpc_differ/rpc_differ.py
@@ -66,6 +66,12 @@ projects between two RPC-OpenStack revisions.
help="Git repo storage directory (default: ~/.osa-differ)",
)
parser.add_argument... | Add argument for arbitrary rpc repo This commit adds an argument, rpc-repo-url, so user-forked repositories can be used for comparing commits. The default for this argument is the offical rpc-openstack repository. This might be useful for anyone who might doing revesion release testing in a forked version of rpc-open... | py |
diff --git a/pythonforandroid/bootstraps/pygame/build/build.py b/pythonforandroid/bootstraps/pygame/build/build.py
index <HASH>..<HASH> 100755
--- a/pythonforandroid/bootstraps/pygame/build/build.py
+++ b/pythonforandroid/bootstraps/pygame/build/build.py
@@ -480,6 +480,9 @@ tools directory of the Android SDK.
... | Fixed pygame build.py for use via setup.py | py |
diff --git a/autofit/mapper/prior_model/abstract.py b/autofit/mapper/prior_model/abstract.py
index <HASH>..<HASH> 100644
--- a/autofit/mapper/prior_model/abstract.py
+++ b/autofit/mapper/prior_model/abstract.py
@@ -585,7 +585,12 @@ class AbstractPriorModel(AbstractModel):
return result
def items(self)... | fix for direct tuple priors | py |
diff --git a/typet/validation.py b/typet/validation.py
index <HASH>..<HASH> 100644
--- a/typet/validation.py
+++ b/typet/validation.py
@@ -413,9 +413,22 @@ class _StringMeta(_LengthBoundedMeta):
"""A metaclass that binds a string to a length bound."""
def __call__(cls, *args, **kwargs):
- """Instanti... | Add an __instancecheck__ to the raw String class as it is treated as String[:]. | py |
diff --git a/salt/modules/glusterfs.py b/salt/modules/glusterfs.py
index <HASH>..<HASH> 100644
--- a/salt/modules/glusterfs.py
+++ b/salt/modules/glusterfs.py
@@ -6,10 +6,11 @@ from __future__ import absolute_import
# Import python libs
import logging
-try:
- from shlex import quote as _cmd_quote
-except ImportE... | Use shlex_quote from six | py |
diff --git a/barnum/gen_data.py b/barnum/gen_data.py
index <HASH>..<HASH> 100755
--- a/barnum/gen_data.py
+++ b/barnum/gen_data.py
@@ -153,7 +153,7 @@ def create_email(tld=None, name=None):
name = create_name()
if not tld:
tld = random.choice(email_domains)
- user_choices = ["%s.%s" % (name[0]... | Added another choice for email user names | 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
setup(
name='tower',
- version='0.3.3',
+ version='0.3.4',
description='Pull strings from a variety of sources, collapse whitespace, '
'support cont... | Update version for new commands: merge, verbatimize | py |
diff --git a/discord/ext/commands/cooldowns.py b/discord/ext/commands/cooldowns.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/cooldowns.py
+++ b/discord/ext/commands/cooldowns.py
@@ -92,6 +92,10 @@ class CooldownMapping:
def valid(self):
return self._cooldown is not None
+ @classmethod
+ ... | [commands] Add CooldownMapping.from_cooldown factory classmethod. | py |
diff --git a/src/Exscript/util/tty.py b/src/Exscript/util/tty.py
index <HASH>..<HASH> 100644
--- a/src/Exscript/util/tty.py
+++ b/src/Exscript/util/tty.py
@@ -54,14 +54,23 @@ def get_terminal_size(default_rows = 25, default_cols = 80):
except AttributeError:
# Channel was redirected to an object that has ... | Linux Exscript sometimes fails to get terminal size with exception ValueError #<I> | py |
diff --git a/pymatgen/analysis/tests/test_eos.py b/pymatgen/analysis/tests/test_eos.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/tests/test_eos.py
+++ b/pymatgen/analysis/tests/test_eos.py
@@ -81,7 +81,7 @@ class EOSTest(PymatgenTest):
# between different machines, this seems far too low?
... | Apparently one decimal place is all we can hope for | py |
diff --git a/spinoff/actor/_actor.py b/spinoff/actor/_actor.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/_actor.py
+++ b/spinoff/actor/_actor.py
@@ -625,7 +625,7 @@ class Cell(_ActorContainer):
# Events.log(Error(self, e, sys.exc_info()[2])),
self._do_suspend()
# XXX: might ... | Send error reports asynchronously--this avoids infinite report-restart loops in case of initialization errors | py |
diff --git a/models.py b/models.py
index <HASH>..<HASH> 100644
--- a/models.py
+++ b/models.py
@@ -569,10 +569,12 @@ class HSMMIntNegBin(_HSMMIntNegBinBase):
class IntNegBinSubHMM(HMMEigen):
- def resample_states(self,*args,**kwargs):
+ def resample_model_nostates(self,temp=None):
# NOTE: state resa... | made subhmm resample_model() resample full model added subhmm resample_model_nostates() to avoid resampling states | py |
diff --git a/rqalpha/core/executor.py b/rqalpha/core/executor.py
index <HASH>..<HASH> 100644
--- a/rqalpha/core/executor.py
+++ b/rqalpha/core/executor.py
@@ -58,7 +58,8 @@ class Executor(object):
self._env.event_bus.publish_event(event)
# publish settlement after last day
- self._spl... | send last settlement only at last trading date | py |
diff --git a/svtyper/singlesample.py b/svtyper/singlesample.py
index <HASH>..<HASH> 100644
--- a/svtyper/singlesample.py
+++ b/svtyper/singlesample.py
@@ -711,6 +711,7 @@ def genotype_parallel(src_vcf, out_vcf, sample, z, split_slop, min_aligned, sum_
# 1st pass through input vcf -- collect all the relevant breakp... | + add message on how many breakpoints we're going to process | py |
diff --git a/system_tests/language.py b/system_tests/language.py
index <HASH>..<HASH> 100644
--- a/system_tests/language.py
+++ b/system_tests/language.py
@@ -22,10 +22,6 @@ from system_test_utils import unique_resource_id
from retry import RetryErrors
-# 429 Too Many Requests in case API requests rate-limited.
-r... | Making sure language system test teardown deletes bucket. Fixes #<I>. | py |
diff --git a/services/datalad/datalad_service/tasks/dataset.py b/services/datalad/datalad_service/tasks/dataset.py
index <HASH>..<HASH> 100644
--- a/services/datalad/datalad_service/tasks/dataset.py
+++ b/services/datalad/datalad_service/tasks/dataset.py
@@ -33,7 +33,7 @@ DATALAD_CONFIG = """[datalad "dataset"]
def ... | fix: Add exist_ok=True as the .datalad dir may exist even when config is missing | py |
diff --git a/airflow/www/views.py b/airflow/www/views.py
index <HASH>..<HASH> 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -672,7 +672,8 @@ class Airflow(BaseView):
dag_id = request.args.get('dag_id')
dags = [dagbag.dags.get(dag_id)] if dag_id else dagbag.dags.values()
for ... | Only pickle_info for non subdags | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.