diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/doctr/local.py b/doctr/local.py
index <HASH>..<HASH> 100644
--- a/doctr/local.py
+++ b/doctr/local.py
@@ -176,7 +176,7 @@ def GitHub_raise_for_status(r):
def plural(n):
return n, abs(n) != 1 and "s" or ""
- s = "%02d minute%s" % plural(mm)
+ s = "%d minute%s" % plural(... | Don't print the minutes with a leading 0 | py |
diff --git a/falafel/content.py b/falafel/content.py
index <HASH>..<HASH> 100644
--- a/falafel/content.py
+++ b/falafel/content.py
@@ -113,6 +113,7 @@ def import_tsv():
data = parse_table(sys.stdin.read().splitlines(), "\t")
for row in data:
row["reboot_required"] = row["reboot_required"] == "1"
+ ... | Convert "NULL" to None in content server | py |
diff --git a/src/hamster/graphics.py b/src/hamster/graphics.py
index <HASH>..<HASH> 100644
--- a/src/hamster/graphics.py
+++ b/src/hamster/graphics.py
@@ -13,7 +13,7 @@ import re
try:
import pytweener
-except: # we can also live without tweener. Scene.animate won't work
+except: # we can also live without tween... | somebody should teach intltool to ignore comments in python files | py |
diff --git a/tests/test_windows_8_x86_64.py b/tests/test_windows_8_x86_64.py
index <HASH>..<HASH> 100644
--- a/tests/test_windows_8_x86_64.py
+++ b/tests/test_windows_8_x86_64.py
@@ -13,6 +13,25 @@ class MockDataSource(object):
can_cpuid = False
@staticmethod
+ def has_wmic():
+ return True
+
+ @staticmethod
+ d... | Added Windows <I> wmic output to test. | py |
diff --git a/vertex/test/test_ptcp.py b/vertex/test/test_ptcp.py
index <HASH>..<HASH> 100644
--- a/vertex/test/test_ptcp.py
+++ b/vertex/test/test_ptcp.py
@@ -106,8 +106,8 @@ class ConnectedPTCPMixin:
def tearDown(self):
td = []
- for ptcp in (self.serverTransport, self.clientTransport):
- ... | Fix pyflakes shadowing. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ def read(*rnames):
setup(
name='rainbowrunners',
- version='0.0.3.dev0',
+ version='0.1',
description='Awesome rainbow test runners',
long_description=read('README.rst'),
author='Nik... | Preparing release <I> | py |
diff --git a/views.py b/views.py
index <HASH>..<HASH> 100644
--- a/views.py
+++ b/views.py
@@ -61,7 +61,7 @@ def register(request):
def index(request):
docs = {}
try:
- namespaces = flat.comm.get(request, '/getnamespaces/', False)
+ namespaces = flat.comm.get(request, '/namespaces/', False)
... | slowly starting to adapt for new document server and new FQL | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -77,7 +77,6 @@ setup(
'Programming Language :: Python',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3.3',
'Programm... | Remove <I> from setup.py | py |
diff --git a/vivarium/interpolation.py b/vivarium/interpolation.py
index <HASH>..<HASH> 100644
--- a/vivarium/interpolation.py
+++ b/vivarium/interpolation.py
@@ -1,12 +1,13 @@
-import pandas as pd
+import warnings
+import pandas as pd
from scipy import interpolate
class Interpolation:
def __init__(self, dat... | Handling an edge case in interpolations where a continuous parameter column is passed in but the data does not have a sufficient number of parameter values to support the requested interpolation order | py |
diff --git a/tests/test_strtol.py b/tests/test_strtol.py
index <HASH>..<HASH> 100644
--- a/tests/test_strtol.py
+++ b/tests/test_strtol.py
@@ -19,6 +19,7 @@ def test_strtol():
expected_outputs = {"base 8 worked\n", "base +8 worked\n", "0x worked\n", "+0x worked\n", "base +10 worked\n",
"ba... | add an extra check to catch problems earlier | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -8,6 +8,12 @@ from setuptools import setup
SETUP_DIR = os.path.dirname(__file__)
README = os.path.join(SETUP_DIR, 'README.rst')
+# if python3 runtime and `setup.py install` is called
+if sys.version_info.major == 3 and sys... | feat: prevent python3-pip installation until py3 is supported | py |
diff --git a/tests/test_check_parallel.py b/tests/test_check_parallel.py
index <HASH>..<HASH> 100644
--- a/tests/test_check_parallel.py
+++ b/tests/test_check_parallel.py
@@ -76,10 +76,10 @@ class ThirdSequentialTestChecker(SequentialTestChecker):
class TestCheckParallelFramework:
"""Tests the check_parallel() fu... | review fixes| Conform to snake-case fixtures, supported by pytest (the legacy .unittest version was also supported) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -160,7 +160,7 @@ sources = list(glob("classylss/_gcl/python/*.i")) + ['classylss/gcl.i']
ext = Extension(name='classylss._gcl',
sources=['classylss/gcl.i'],
swig_opts=['-c++', '-Wall'],
- ... | remove extra flag suppresses warnings; not sure why we are getting compact warning | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,13 +2,21 @@ from setuptools import setup
setup(
name = 'language',
- packages = ['language'],
- version = '0.2',
+ packages = ['language.chars', 'language.tokens', 'language.ngrams'],
+ version = '0.5',
descrip... | Add submodules, licence and classifiers to setup | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ setup(
author="Pinax Team",
author_email="team@pinaxprojects.com",
description="a ratings app for Django",
- name="pinax-app",
+ name="pinax-ratings",
long_description=LONG_DESCRIPTION,... | Fixing setup.py app name | py |
diff --git a/niftypet/nimpa/prc/prc.py b/niftypet/nimpa/prc/prc.py
index <HASH>..<HASH> 100644
--- a/niftypet/nimpa/prc/prc.py
+++ b/niftypet/nimpa/prc/prc.py
@@ -92,6 +92,8 @@ def imsmooth(fim, fwhm=4, voxsize=1., fout='', output='image'):
return dctout
elif output=='image':
return imsmo
+ el... | fixed a bug in trimming/upsampling in prc.py; added small functionality of returning file path in imsmooth. | py |
diff --git a/src/ibmiotf/device.py b/src/ibmiotf/device.py
index <HASH>..<HASH> 100644
--- a/src/ibmiotf/device.py
+++ b/src/ibmiotf/device.py
@@ -817,9 +817,9 @@ class ManagedClient(Client):
if self.dmeActionCallback(pahoMessage.topic,data,reqId):
msg = "DME Action successfully completed from Callback"
t... | Fixed another indentation issue with device.py | py |
diff --git a/changes/changelog.py b/changes/changelog.py
index <HASH>..<HASH> 100644
--- a/changes/changelog.py
+++ b/changes/changelog.py
@@ -64,7 +64,7 @@ def generate_changelog(context):
git_log_content = None
git_log = 'log --oneline --no-merges --no-color'.split(' ')
try:
- git_log_tag = git_... | Add a list to a list | py |
diff --git a/superset/models/slice.py b/superset/models/slice.py
index <HASH>..<HASH> 100644
--- a/superset/models/slice.py
+++ b/superset/models/slice.py
@@ -133,7 +133,7 @@ class Slice(
if self.table:
return self.table.explore_url
datasource = self.datasource
- return datasource.... | fix: chart datasource explore URL showing datasource name for druid (#<I>) | py |
diff --git a/openquake/shapes.py b/openquake/shapes.py
index <HASH>..<HASH> 100644
--- a/openquake/shapes.py
+++ b/openquake/shapes.py
@@ -372,10 +372,10 @@ class Site(object):
return self.hash() == other.hash()
def __repr__(self):
- return self.__str__()
+ return "Site(%s, %s)" % (self.lo... | Removed the <> from Shape.__repr__, since it's perfectly possible to creare a Shape from its repr. | py |
diff --git a/tests/suppression/test_suppression.py b/tests/suppression/test_suppression.py
index <HASH>..<HASH> 100644
--- a/tests/suppression/test_suppression.py
+++ b/tests/suppression/test_suppression.py
@@ -24,4 +24,4 @@ class SuppressionTest(unittest.TestCase):
def test_ignore_enum_error(self):
file_... | Fix line ignore after pre-commit runs | py |
diff --git a/spyderlib/plugins/editor.py b/spyderlib/plugins/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/editor.py
+++ b/spyderlib/plugins/editor.py
@@ -274,6 +274,7 @@ class EditorTabWidget(Tabs):
txt = unicode(finfo.editor.get_text())
try:
finfo.encoding = encoding.w... | Editor/bugfix: encoding (status bar) was not refreshed on save | py |
diff --git a/stagger/specs.py b/stagger/specs.py
index <HASH>..<HASH> 100644
--- a/stagger/specs.py
+++ b/stagger/specs.py
@@ -396,10 +396,19 @@ class MultiSpec(Spec):
seq = []
while data:
record = []
- for s in self.specs:
- elem, data = s.read(frame, data)
- ... | specs.py (MultiSpec): Allow sequence to end with an invalid record (with a warning). | py |
diff --git a/openquake/baselib/__init__.py b/openquake/baselib/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/__init__.py
+++ b/openquake/baselib/__init__.py
@@ -23,7 +23,7 @@ from openquake.baselib.python3compat import configparser
from openquake.baselib.general import git_suffix
# the version is ... | update development version to <I> (postponed to release README.md mods) | py |
diff --git a/conversejs/utils.py b/conversejs/utils.py
index <HASH>..<HASH> 100644
--- a/conversejs/utils.py
+++ b/conversejs/utils.py
@@ -8,8 +8,11 @@ from .register import register_account
def get_conversejs_context(context, xmpp_login=False):
+
+ context['CONVERSEJS_ENABLED'] = conf.CONVERSEJS_ENABLED
+
... | Fixing bug on CONVERSEJS_ENABLED | py |
diff --git a/jira/client.py b/jira/client.py
index <HASH>..<HASH> 100644
--- a/jira/client.py
+++ b/jira/client.py
@@ -587,8 +587,9 @@ class JIRA(object):
url = self._get_url('issue')
r = self._session.post(url, headers={'content-type': 'application/json'}, data=json.dumps(data))
+ logging.in... | added debug code for Travis failure as we were not able to replicate same failure locally. | py |
diff --git a/pipeline/compressors/__init__.py b/pipeline/compressors/__init__.py
index <HASH>..<HASH> 100644
--- a/pipeline/compressors/__init__.py
+++ b/pipeline/compressors/__init__.py
@@ -5,7 +5,7 @@ import subprocess
from itertools import takewhile
-from django.utils.encoding import force_unicode
+from django.... | ensure we just don't mess around with encoding one more time | py |
diff --git a/dcard/forums.py b/dcard/forums.py
index <HASH>..<HASH> 100644
--- a/dcard/forums.py
+++ b/dcard/forums.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
import logging
try:
from dcard import api | Magic comments for utf8 characters in file | py |
diff --git a/test/test_properties.py b/test/test_properties.py
index <HASH>..<HASH> 100755
--- a/test/test_properties.py
+++ b/test/test_properties.py
@@ -144,6 +144,17 @@ class TestConfigPathProp(TestStringProp):
# any relevant change. So no further tests are implemented here.
+class TestListProp(unittest.Tes... | Add tests for ListProp class. | py |
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py
index <HASH>..<HASH> 100644
--- a/pyasn1/type/univ.py
+++ b/pyasn1/type/univ.py
@@ -227,7 +227,7 @@ class OctetString(base.AbstractSimpleAsn1Item):
tagSet = tag.initTagSet(
tag.Tag(tag.tagClassUniversal, tag.tagFormatSimple, 0x04)
)
- def ... | OctetsString.prettyPrint() does a single str() against its value eliminating an extra quotes. | py |
diff --git a/bcbio/ngsalign/tophat.py b/bcbio/ngsalign/tophat.py
index <HASH>..<HASH> 100644
--- a/bcbio/ngsalign/tophat.py
+++ b/bcbio/ngsalign/tophat.py
@@ -27,9 +27,9 @@ _out_fnames = ["accepted_hits.sam", "junctions.bed",
def _set_quality_flag(options, config):
qual_format = config["algorithm"].get("quality... | Default to solexa-quals if no quality format is provided. | py |
diff --git a/syncthing/__init__.py b/syncthing/__init__.py
index <HASH>..<HASH> 100644
--- a/syncthing/__init__.py
+++ b/syncthing/__init__.py
@@ -793,6 +793,15 @@ class Events(BaseAPI):
"""
return self._count
+ @property
+ def last_seen_id(self):
+ """ The id of the last seen event.
+
... | Expose last_seen_id as an Events property, update it after yielding all events in the batch | py |
diff --git a/GPy/core/sparse_gp.py b/GPy/core/sparse_gp.py
index <HASH>..<HASH> 100644
--- a/GPy/core/sparse_gp.py
+++ b/GPy/core/sparse_gp.py
@@ -149,7 +149,7 @@ class SparseGP(GP):
var_ = mdot(la.T, tmp, la)
p0 = psi0_star[i]
- t = self.posterior.woodbury_inv
+ ... | [sparse gp] prediction without missing data and uncertain inputs was bugged | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -66,7 +66,7 @@ develop = set([
])
docs = set([
- 'Sphinx',
+ 'Sphinx<=2.4.4',
'nbsphinx',
'sphinx_rtd_theme',
'ipython', | Limit version of Sphinx for doc build | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -25,7 +25,6 @@ import traceback
import re
import time
import random
-import multiprocessing
# Import salt libs
import salt.utils
@@ -36,6 +35,7 @@ import salt.fileclient
import salt.utils.dictupdate... | Change to multiprocessingProcess from salt utils | py |
diff --git a/gmn/src/d1_gmn/app/views/decorators.py b/gmn/src/d1_gmn/app/views/decorators.py
index <HASH>..<HASH> 100644
--- a/gmn/src/d1_gmn/app/views/decorators.py
+++ b/gmn/src/d1_gmn/app/views/decorators.py
@@ -85,8 +85,8 @@ def decode_id(f):
# this can be fixed. Update this accordingly.
@functools.wraps(f)
... | Fix decoding of PID in URLs | py |
diff --git a/src/saml2/response.py b/src/saml2/response.py
index <HASH>..<HASH> 100644
--- a/src/saml2/response.py
+++ b/src/saml2/response.py
@@ -82,6 +82,10 @@ class StatusError(Exception):
pass
+class UnsolicitedResponse(Exception):
+ pass
+
+
class StatusVersionMismatch(StatusError):
pass
@@ -45... | Use a custom exception for unsolicited response so we can capture it and show a nicer screen to the user than just an <I> error message | py |
diff --git a/salt/modules/ansiblegate.py b/salt/modules/ansiblegate.py
index <HASH>..<HASH> 100644
--- a/salt/modules/ansiblegate.py
+++ b/salt/modules/ansiblegate.py
@@ -180,10 +180,10 @@ class AnsibleModuleCaller(object):
timeout=self.timeout,
)
proc_out.run()
- if six.PY3:
- ... | Reverse the logic so Python 2 workaround is not the default | py |
diff --git a/cmsplugin_cascade/plugin_base.py b/cmsplugin_cascade/plugin_base.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/plugin_base.py
+++ b/cmsplugin_cascade/plugin_base.py
@@ -31,7 +31,7 @@ class CascadePluginBase(CMSPluginBase):
def __init__(self, model=None, admin_site=None, glossary_fields=None... | Enforce glossary_fields to be a list or tuple | py |
diff --git a/salt/states/ceph.py b/salt/states/ceph.py
index <HASH>..<HASH> 100644
--- a/salt/states/ceph.py
+++ b/salt/states/ceph.py
@@ -4,8 +4,12 @@ Manage ceph with salt.
.. versionadded:: Carbon
'''
+# Import Python Libs
+from __future__ import absolute_import
import logging
import json
+
+# Import Salt Libs... | salt.states.ceph: absolute_import Avoid unexpected behaviour with imports. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
import os
import re
-from setuptools import setup, find_packages
+from setuptools import setup
GITHUB_URL = 'https://github.com/Turbo87/aerofiles/'
@@ -50,5 +50,5 @@ setup(
'Programming Language ... | setup.py: List packages explicitly | 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.0a32"
+__version__ = "0.8.0a33" | release: <I>a<I> | py |
diff --git a/src/Rammbock/Rammbock.py b/src/Rammbock/Rammbock.py
index <HASH>..<HASH> 100755
--- a/src/Rammbock/Rammbock.py
+++ b/src/Rammbock/Rammbock.py
@@ -437,6 +437,12 @@ class Rammbock(object):
self._data = self._data[int(length):]
def read_integer_from_bits(self, length):
+ """
+ Re... | added documentation to 'read integer from bits' | py |
diff --git a/dbaas_credentials/models.py b/dbaas_credentials/models.py
index <HASH>..<HASH> 100644
--- a/dbaas_credentials/models.py
+++ b/dbaas_credentials/models.py
@@ -23,10 +23,7 @@ class CredentialType(BaseModel):
MONGODB = 8
DNSAPI = 9
ACLAPI = 10
- LAAS = 11
- LOGNIT = 12
NETWORKAPI = 1... | Removing LaaS, Lognit and Statsd | py |
diff --git a/deploy_stack.py b/deploy_stack.py
index <HASH>..<HASH> 100755
--- a/deploy_stack.py
+++ b/deploy_stack.py
@@ -39,7 +39,10 @@ def deploy_stack(environment, charm_prefix, already_bootstrapped):
return
env.wait_for_version(env.get_matching_agent_version())
env.juju('deploy', charm_prefix + ... | Hack deploy_stack to use one machine for services for the joyent provider. | py |
diff --git a/spyderlib/config.py b/spyderlib/config.py
index <HASH>..<HASH> 100644
--- a/spyderlib/config.py
+++ b/spyderlib/config.py
@@ -643,8 +643,8 @@ DEFAULTS = [
# ---- Scintilla ----
# Name Color Bold Italic
'scintilla/background': "#ffffff... | Edited online with Bitbucket (config.py) revert zenburn and scintilla current line and current cell colors. | py |
diff --git a/python/test/test_async.py b/python/test/test_async.py
index <HASH>..<HASH> 100644
--- a/python/test/test_async.py
+++ b/python/test/test_async.py
@@ -266,9 +266,15 @@ async def test_trades(exchange, symbol):
# ------------------------------------------------------------------------------
-
async def ... | test_async.py fetch_orders skipped exchanges | py |
diff --git a/pyrtl/simulation.py b/pyrtl/simulation.py
index <HASH>..<HASH> 100644
--- a/pyrtl/simulation.py
+++ b/pyrtl/simulation.py
@@ -508,9 +508,9 @@ def wave_trace_render(w, n, prior_val, current_val, symbol_len):
if len(w) > 1:
out = revstart
if current_val != prior_val:
- out +... | strip L from waveform for long wirevectors,fixes #<I> | py |
diff --git a/Panel.py b/Panel.py
index <HASH>..<HASH> 100644
--- a/Panel.py
+++ b/Panel.py
@@ -119,7 +119,7 @@ class ConsolePanel(Panel):
self.console = code.InteractiveConsole(locals)
lines = [
"from nion.swift import DocumentController",
- "from nion.swift.model import Docume... | Provide access to the api via the Python console window svn r<I> | py |
diff --git a/curdling/services/downloader.py b/curdling/services/downloader.py
index <HASH>..<HASH> 100644
--- a/curdling/services/downloader.py
+++ b/curdling/services/downloader.py
@@ -80,7 +80,9 @@ class AggregatingLocator(locators.AggregatingLocator):
pkg = util.parse_requirement(requirement)
for ... | AggregatingLocator.locate should try the next locator if the first one fails This stupid bug was caused in "e<I>a5ae<I>dad<I>a<I>a<I>a<I>fd5b<I>" during a terminology change. | py |
diff --git a/salt/modules/pkgin.py b/salt/modules/pkgin.py
index <HASH>..<HASH> 100644
--- a/salt/modules/pkgin.py
+++ b/salt/modules/pkgin.py
@@ -12,27 +12,30 @@ import salt.utils
log = logging.getLogger(__name__)
+def _check_pkgin():
+ '''
+ Looks to see if pkgin is present on the system
+ '''
+ retu... | Added Darwin support and get sure we don't override other packaging systems | py |
diff --git a/nidmresults/__init__.py b/nidmresults/__init__.py
index <HASH>..<HASH> 100644
--- a/nidmresults/__init__.py
+++ b/nidmresults/__init__.py
@@ -0,0 +1,5 @@
+import os
+
+latest_owlfile = os.path.join(
+ os.path.dirname(os.path.dirname(__file__)), 'nidmresults', 'owl',
+ "nidm-results_130-rc2.owl") | Path to latest owl file as an accessible variable | py |
diff --git a/carrot/messaging.py b/carrot/messaging.py
index <HASH>..<HASH> 100644
--- a/carrot/messaging.py
+++ b/carrot/messaging.py
@@ -165,7 +165,8 @@ class Consumer(object):
self.channel.basic_consume(queue=self.queue, no_ack=True,
callback=self._receive_callback,
consume... | Revert to the old version of Consumer.wait() Thanks Alexander Solovyov! | py |
diff --git a/backtrader/broker.py b/backtrader/broker.py
index <HASH>..<HASH> 100644
--- a/backtrader/broker.py
+++ b/backtrader/broker.py
@@ -194,7 +194,6 @@ class BrokerBack(object):
return self.size
def __init__(self):
-
self.orders = list() # will only be appending
self.pending... | Openposition order update - Correct to use absolute remaining size to avoid accumulation | py |
diff --git a/plugins/hanlp_common/hanlp_common/document.py b/plugins/hanlp_common/hanlp_common/document.py
index <HASH>..<HASH> 100644
--- a/plugins/hanlp_common/hanlp_common/document.py
+++ b/plugins/hanlp_common/hanlp_common/document.py
@@ -302,6 +302,11 @@ class Document(dict):
b... | Improve visualization: if the root label is shorter than the level number, extend it to the same length | py |
diff --git a/pyt/ast_helper.py b/pyt/ast_helper.py
index <HASH>..<HASH> 100644
--- a/pyt/ast_helper.py
+++ b/pyt/ast_helper.py
@@ -7,7 +7,7 @@ def generate_ast(path):
if os.path.isfile(path):
with open(path, 'r') as f:
return ast.parse(f.read())
- raise IOError('Input needs to be a file.')... | more helpful exception from ast_handler | py |
diff --git a/greg/greg.py b/greg/greg.py
index <HASH>..<HASH> 100755
--- a/greg/greg.py
+++ b/greg/greg.py
@@ -16,7 +16,7 @@
# along with Greg. If not, see <http://www.gnu.org/licenses/>.
import configparser, os, pickle, subprocess, sys, time, re
-from itertools import islice, filterfalse
+from itertools import fi... | I'm not using islice | py |
diff --git a/cumulusci/tasks/bulkdata/mapping_parser.py b/cumulusci/tasks/bulkdata/mapping_parser.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/bulkdata/mapping_parser.py
+++ b/cumulusci/tasks/bulkdata/mapping_parser.py
@@ -32,7 +32,7 @@ class MappingStep(CCIDictModel):
action: str = "insert"
oid_as_pk... | Do not include default step bulk_mode: get it from CCI config | py |
diff --git a/example/authmodule.py b/example/authmodule.py
index <HASH>..<HASH> 100644
--- a/example/authmodule.py
+++ b/example/authmodule.py
@@ -75,7 +75,7 @@ class AuthPolicy:
"""The principal used for the policy, this should be a unique identifier for the end user."""
version = "2012-10-17"
"""The po... | Fix syntax warnings due to comparison of literals using is. | py |
diff --git a/tensorboard/plugins/text/summary_v2.py b/tensorboard/plugins/text/summary_v2.py
index <HASH>..<HASH> 100644
--- a/tensorboard/plugins/text/summary_v2.py
+++ b/tensorboard/plugins/text/summary_v2.py
@@ -24,7 +24,7 @@ from tensorboard.util import tensor_util
def text(name, data, step=None, description=N... | Use an r-string so the \n doesn't break the site. (#<I>) Fixes: <URL> | py |
diff --git a/salt/utils/event.py b/salt/utils/event.py
index <HASH>..<HASH> 100644
--- a/salt/utils/event.py
+++ b/salt/utils/event.py
@@ -294,7 +294,7 @@ class Reactor(multiprocessing.Process, salt.state.Compiler):
Execute the reaction state
'''
for chunk in chunks:
- self.wrap.ru... | chunk, not low... This commit completes the circle, the reaction system works! | py |
diff --git a/tests/unit/nupic/algorithms/anomaly_likelihood_test.py b/tests/unit/nupic/algorithms/anomaly_likelihood_test.py
index <HASH>..<HASH> 100755
--- a/tests/unit/nupic/algorithms/anomaly_likelihood_test.py
+++ b/tests/unit/nupic/algorithms/anomaly_likelihood_test.py
@@ -22,6 +22,9 @@
"""Unit tests for anomal... | Resolved some pylint warnings in anomaly_likelihood_test.py. | py |
diff --git a/tests/test_phonetic.py b/tests/test_phonetic.py
index <HASH>..<HASH> 100644
--- a/tests/test_phonetic.py
+++ b/tests/test_phonetic.py
@@ -4072,6 +4072,7 @@ class SPFCTestCases(unittest.TestCase):
self.assertEqual(spfc('James Windsor'), '29765')
self.assertEqual(spfc('James Wenders'), '277... | added test to cover improbable branches | py |
diff --git a/manage.py b/manage.py
index <HASH>..<HASH> 100755
--- a/manage.py
+++ b/manage.py
@@ -8,6 +8,8 @@ class PyPi( pyman.Page ):
def init( self ):
self.add([
+ pyman.Action.Cmd( "Package Source", "python setup.py sdist" ),
+ pyman.Action.Cmd( "Package Wheel", "python setup.... | Updated manage.py to include generating source and wheel distribution packages | py |
diff --git a/tmpo/__init__.py b/tmpo/__init__.py
index <HASH>..<HASH> 100644
--- a/tmpo/__init__.py
+++ b/tmpo/__init__.py
@@ -1,5 +1,5 @@
__title__ = "tmpo"
-__version__ = "0.2.6"
+__version__ = "0.2.7"
__build__ = 0x000100
__author__ = "Bart Van Der Meerssche"
__license__ = "MIT"
@@ -449,10 +449,11 @@ class Sessi... | fix error where block is None Is is not the cursor that can be none, it is the result it returns ;-) | py |
diff --git a/elasticsearch/connection/base.py b/elasticsearch/connection/base.py
index <HASH>..<HASH> 100644
--- a/elasticsearch/connection/base.py
+++ b/elasticsearch/connection/base.py
@@ -65,7 +65,7 @@ class Connection(object):
logger.debug('> %s', body)
logger.debug('< %s', response)
- if... | hasHandlers is only valid since python <I> | py |
diff --git a/pymatgen/transformations/site_transformations.py b/pymatgen/transformations/site_transformations.py
index <HASH>..<HASH> 100644
--- a/pymatgen/transformations/site_transformations.py
+++ b/pymatgen/transformations/site_transformations.py
@@ -513,3 +513,28 @@ class PartialRemoveSitesTransformation(AbstractT... | Added AddSitePropertyTransformation to site_transformations from old repo | py |
diff --git a/ctd/__init__.py b/ctd/__init__.py
index <HASH>..<HASH> 100644
--- a/ctd/__init__.py
+++ b/ctd/__init__.py
@@ -7,8 +7,9 @@ from pandas import Index, Series, DataFrame
from ctd import asof, from_edf, from_cnv, from_fsi, rosette_summary
from processing import (data_conversion, align, despike, lp_filter,
... | Added `movingaverage` to __init__.py imports. | py |
diff --git a/localshop/settings.py b/localshop/settings.py
index <HASH>..<HASH> 100644
--- a/localshop/settings.py
+++ b/localshop/settings.py
@@ -38,7 +38,7 @@ def FileSettings(path):
class Base(Settings):
# Django settings for localshop project.
- PROJECT_ROOT = os.path.join(os.path.dirname(__file__), os.p... | Fix project root in settings This fixes a bug introduced when refactoring settings in 4c4d6fb1e<I>b0baf1f<I>bc<I>c4a5e. | py |
diff --git a/src/ifcfg/__init__.py b/src/ifcfg/__init__.py
index <HASH>..<HASH> 100644
--- a/src/ifcfg/__init__.py
+++ b/src/ifcfg/__init__.py
@@ -7,7 +7,7 @@ from . import tools
from . import exc
from . import parser
-__version__ = "0.11b1"
+__version__ = "0.11b2"
Log = tools.minimal_logger(__name__) | Bump to <I>b2 | py |
diff --git a/etesync/api.py b/etesync/api.py
index <HASH>..<HASH> 100644
--- a/etesync/api.py
+++ b/etesync/api.py
@@ -44,7 +44,7 @@ class EteSync:
if directory != '' and not os.path.exists(directory):
os.makedirs(directory)
- database = SqliteExtDatabase(db_path)
+ database = Sqli... | Sqlite: enforce foreign keys. Apparently sqlite doesn't do it by default. <URL> | py |
diff --git a/pyrogram/client/style/html.py b/pyrogram/client/style/html.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/style/html.py
+++ b/pyrogram/client/style/html.py
@@ -31,7 +31,7 @@ from . import utils
class HTML:
- HTML_RE = re.compile(r"<(\w+)(?: href=\"(.*)\")?>(.*)</\1>")
+ HTML_RE = re.compil... | Fix regex pattern not matching single quotes | py |
diff --git a/src/saml2/sigver.py b/src/saml2/sigver.py
index <HASH>..<HASH> 100644
--- a/src/saml2/sigver.py
+++ b/src/saml2/sigver.py
@@ -479,6 +479,14 @@ def rsa_loads(key):
M2Crypto.util.no_passphrase_callback)
+def rsa_eq(key1, key2):
+ # Check if two RSA keys are in ... | New function that checks if two RSA keys are actually the same. | py |
diff --git a/russell/russell.py b/russell/russell.py
index <HASH>..<HASH> 100755
--- a/russell/russell.py
+++ b/russell/russell.py
@@ -73,7 +73,8 @@ class Entry():
return
else:
# The time the file was created will be the pubdate.
- pubdate = datetime.fromtimestamp(os.path.getctime(path))
+ timestamp = m... | use the oldest of created/modified time | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ setup(
},
license="Apache License 2.0",
classifiers=(
- 'Development Status :: 1 - Planning',
+ 'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
... | Update classifier to alpha in setup.py | py |
diff --git a/pyverilog/ast_code_generator/codegen.py b/pyverilog/ast_code_generator/codegen.py
index <HASH>..<HASH> 100644
--- a/pyverilog/ast_code_generator/codegen.py
+++ b/pyverilog/ast_code_generator/codegen.py
@@ -348,7 +348,7 @@ class ASTCodeGenerator(ConvertVisitor):
def visit_Parameter(self, node):
... | del_param of Parameter and Localparam is removed, because their values are instances of Rvalue. | py |
diff --git a/hacking/core.py b/hacking/core.py
index <HASH>..<HASH> 100644
--- a/hacking/core.py
+++ b/hacking/core.py
@@ -258,7 +258,7 @@ def hacking_except_format(logical_line, physical_line):
@flake8ext
-def hacking_except_format_assert(logical_line):
+def hacking_except_format_assert(logical_line, physical_lin... | Make H<I> check honor pep8 #noqa comment Several other checks allow for skipping lines with the standard pep8 #noqa comment. This patch adds this for the H<I> rule (don't use assertRaises(Exception) as it may be too broad). Change-Id: I<I>c0a<I>aa5b<I>ea | py |
diff --git a/PyChromeDevTools/__init__.py b/PyChromeDevTools/__init__.py
index <HASH>..<HASH> 100644
--- a/PyChromeDevTools/__init__.py
+++ b/PyChromeDevTools/__init__.py
@@ -39,16 +39,17 @@ class ChromeInterface(object):
self.ws = None
self.tabs = None
self.timeout = timeout
- self.co... | Made slight tweak to help when working with multiple tabs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -119,12 +119,13 @@ class InstallLib(install_lib):
for package in subprocess.check_output(["pip", "freeze"]) \
.decode('utf-8'). \
splitlines():
- if "==" in package:
- ... | Check all comparators when looking for a package. | py |
diff --git a/src/python/pants/backend/jvm/ivy_utils.py b/src/python/pants/backend/jvm/ivy_utils.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/jvm/ivy_utils.py
+++ b/src/python/pants/backend/jvm/ivy_utils.py
@@ -175,7 +175,7 @@ class IvyUtils(object):
def identify(self, targets):
targets = list... | WikiArtifact instances also have provides; limit ivy to jvm This should never get hit unless you accidentally do goal compile on a wiki -- but maybe you do compile ...:: and hit it. Testing Done: Ran tests. Reviewed at <URL> | py |
diff --git a/grimoire/elk/enrich.py b/grimoire/elk/enrich.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/enrich.py
+++ b/grimoire/elk/enrich.py
@@ -669,8 +669,6 @@ class Enrich(object):
if sh_id_author and author_field != rol_author:
eitem_sh.update(self.get_item_sh_fields(sh_id=sh_id_author,
... | [enrich] Remove print used for debugging | py |
diff --git a/salt/daemons/flo/core.py b/salt/daemons/flo/core.py
index <HASH>..<HASH> 100644
--- a/salt/daemons/flo/core.py
+++ b/salt/daemons/flo/core.py
@@ -132,8 +132,6 @@ class SaltRaetRoadStackSetup(ioflo.base.deeding.Deed):
do salt raet road stack setup at enter
'''
- #import wingdbstu... | Remoted wingdbstub comment | py |
diff --git a/hpOneView/oneview_client.py b/hpOneView/oneview_client.py
index <HASH>..<HASH> 100644
--- a/hpOneView/oneview_client.py
+++ b/hpOneView/oneview_client.py
@@ -42,6 +42,9 @@ __copyright__ = '(C) Copyright (2012-2016) Hewlett Packard Enterprise ' \
__license__ = 'MIT'
__status__ = 'Development'
+import js... | Implements configuration loading from json file on OneViewClient | py |
diff --git a/txzmq/test/test_connection.py b/txzmq/test/test_connection.py
index <HASH>..<HASH> 100644
--- a/txzmq/test/test_connection.py
+++ b/txzmq/test/test_connection.py
@@ -50,7 +50,7 @@ class ZmqConnectionTestCase(unittest.TestCase):
def test_repr(self):
expected = ("ZmqTestReceiver(ZmqFactory(),... | Fix test on repr after moving to list for self.endpoints. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,11 @@
-from distutils.core import setup
+from setuptools import setup
setup(
name='masonite',
packages=['masonite',
'masonite.auth',
'masonite.facades',
],
- v... | changed pypi packaged to setuptools | py |
diff --git a/epydoc/doc/conf.py b/epydoc/doc/conf.py
index <HASH>..<HASH> 100644
--- a/epydoc/doc/conf.py
+++ b/epydoc/doc/conf.py
@@ -19,8 +19,9 @@ exclude_patterns = ['_build']
html_theme = 'default'
html_static_path = []
-intersphinx_mapping = {'http://docs.python.org/': None,
- 'http://sph... | Converted intersphinx mapping to sphinx <I> format and removed broken sphinx <I> inventory | py |
diff --git a/Algorithmia/client.py b/Algorithmia/client.py
index <HASH>..<HASH> 100644
--- a/Algorithmia/client.py
+++ b/Algorithmia/client.py
@@ -54,6 +54,10 @@ class Client(object):
def algo(self, algoRef):
return Algorithm(self, algoRef)
+ def username(self):
+ username = next(self.dir("").... | creating a method that allow a user to extract the username associated with an API key via the Algorithmia Client (#<I>) | py |
diff --git a/relic.py b/relic.py
index <HASH>..<HASH> 100644
--- a/relic.py
+++ b/relic.py
@@ -3,6 +3,7 @@ Python interface to the RELIC cryptographic library.
"""
import atexit, ctypes, sys
from common import *
+from os import path
# NOTE: This module was designed, built, and tested assuming that the RELIC
# ... | Fixed librelic loading to be relative to module path. | py |
diff --git a/cumulusci/tasks/salesforce/tests/test_UpdateAdminProfile.py b/cumulusci/tasks/salesforce/tests/test_UpdateAdminProfile.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/salesforce/tests/test_UpdateAdminProfile.py
+++ b/cumulusci/tasks/salesforce/tests/test_UpdateAdminProfile.py
@@ -143,7 +143,7 @@ def t... | Don't create dir in updateAdminProf deployment | py |
diff --git a/qdarkgraystyle/__init__.py b/qdarkgraystyle/__init__.py
index <HASH>..<HASH> 100644
--- a/qdarkgraystyle/__init__.py
+++ b/qdarkgraystyle/__init__.py
@@ -33,7 +33,7 @@ import logging
import platform
-__version__ = '1.0.0'
+__version__ = '0.0.1'
def _logger(): | [REF] Update version to <I> | py |
diff --git a/future/standard_library/__init__.py b/future/standard_library/__init__.py
index <HASH>..<HASH> 100644
--- a/future/standard_library/__init__.py
+++ b/future/standard_library/__init__.py
@@ -69,7 +69,6 @@ import contextlib
import types
import copy
import os
-import importlib
from future.utils import P... | Remove dependency on ``importlib`` for Py<I> support (issue #<I>) | py |
diff --git a/pecan/core.py b/pecan/core.py
index <HASH>..<HASH> 100644
--- a/pecan/core.py
+++ b/pecan/core.py
@@ -133,13 +133,15 @@ def render(template, namespace):
return state.app.render(template, namespace)
-def load_app(config):
+def load_app(config=None):
'''
Used to load a ``Pecan`` applicatio... | load_app can now work with no config param passed in | py |
diff --git a/tests/sanji/test_core.py b/tests/sanji/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/sanji/test_core.py
+++ b/tests/sanji/test_core.py
@@ -15,6 +15,7 @@ from voluptuous import Required
from voluptuous import All
from voluptuous import Length
from voluptuous import Range
+from voluptuous import RE... | Add testcase for schema with REMOVE_EXTRA. | py |
diff --git a/Exscript/protocols/ssh2.py b/Exscript/protocols/ssh2.py
index <HASH>..<HASH> 100644
--- a/Exscript/protocols/ssh2.py
+++ b/Exscript/protocols/ssh2.py
@@ -309,7 +309,7 @@ class SSH2(Protocol):
key_file = key.get_filename()
if key_file is None:
key_file = []
- elif isins... | Fix ssh key authentication Prevent errors such as: IOError: [Errno 2] No such file or directory: 'c' because key_file is a string instead of being an array. Closes #<I> Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org> | py |
diff --git a/geist/backends/fake.py b/geist/backends/fake.py
index <HASH>..<HASH> 100644
--- a/geist/backends/fake.py
+++ b/geist/backends/fake.py
@@ -3,9 +3,16 @@ from ..core import Location
class GeistFakeBackend(object):
- def __init__(self, w=800, h=600):
- self.image = np.zeros((h, w, 3))
- s... | Allow Fake Backend to take an image as the screen | py |
diff --git a/suds/sax/date.py b/suds/sax/date.py
index <HASH>..<HASH> 100644
--- a/suds/sax/date.py
+++ b/suds/sax/date.py
@@ -346,7 +346,7 @@ class Timezone:
pattern = re.compile('([zZ])|([\-\+][0-9]{2}:[0-9]{2})')
- LOCAL = ( 0-time.timezone/60/60 )
+ LOCAL = ( 0-time.timezone/60/60 ) + time.da... | Fix sax Date to account for daylight savings time. | py |
diff --git a/salt/states/host.py b/salt/states/host.py
index <HASH>..<HASH> 100644
--- a/salt/states/host.py
+++ b/salt/states/host.py
@@ -57,6 +57,18 @@ Or delete all existing names for an address:
host.only:
- hostnames: []
+You can also include comments:
+
+.. code-block:: yaml
+
+ server1:
... | Updating documention for host states to include an example of using comment. | py |
diff --git a/PyFunceble.py b/PyFunceble.py
index <HASH>..<HASH> 100755
--- a/PyFunceble.py
+++ b/PyFunceble.py
@@ -1836,6 +1836,7 @@ class Referer(object):
'pk',
'pn',
'py',
+ 'sd',
'sr',
'ss',
'sv',
@@ -2706,7 +2707,7 @@ if __name... | Introduction of `sd` into the list of ignored extensions cf: No whois server. | py |
diff --git a/shinken/modulesmanager.py b/shinken/modulesmanager.py
index <HASH>..<HASH> 100644
--- a/shinken/modulesmanager.py
+++ b/shinken/modulesmanager.py
@@ -71,9 +71,13 @@ The previous imported modules, if any, are cleaned before. """
for fname in modules_files:
try:
print("... | Add : filter module with daemons in the properties defined. | py |
diff --git a/wechatpy/work/client/api/external_contact.py b/wechatpy/work/client/api/external_contact.py
index <HASH>..<HASH> 100644
--- a/wechatpy/work/client/api/external_contact.py
+++ b/wechatpy/work/client/api/external_contact.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-from typing import Optional, List
+from typ... | Add Iterator typing for external_contact | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.