diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/salt/states/mdadm.py b/salt/states/mdadm.py
index <HASH>..<HASH> 100644
--- a/salt/states/mdadm.py
+++ b/salt/states/mdadm.py
@@ -63,6 +63,9 @@ def present(name,
devices
A list of devices used to build the array.
+
+ kwargs
+ Optional arguments to be passed to mdadm.
Ex... | Note kwags for mdadm in state already documented in module, just copy over | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,7 @@ setup(
'Topic :: System :: Filesystems',
'Topic :: Utilities'],
platforms=['any'],
- packages=find_packages(exclude=['dist', 'build', 'docs', 'tests']),
+ packages=find_packages(excl... | setup.py: Exclude 'examples' from being installed as a global pkg | py |
diff --git a/peewee_async.py b/peewee_async.py
index <HASH>..<HASH> 100644
--- a/peewee_async.py
+++ b/peewee_async.py
@@ -630,8 +630,8 @@ async def count(query, clear_limit=False):
:return: number of objects in ``select()`` query
"""
+ clone = query.clone()
if query._distinct or query._group_by or ... | "order by" is not needed for count query (#<I>) | py |
diff --git a/pyperclip/clipboards.py b/pyperclip/clipboards.py
index <HASH>..<HASH> 100644
--- a/pyperclip/clipboards.py
+++ b/pyperclip/clipboards.py
@@ -106,8 +106,8 @@ def init_klipper_clipboard():
clipboardContents = stdout.decode('utf-8')
assert len(clipboardContents) > 0 # even if blank, Klip... | Refactor clipboards to use endswith() in the klipper function. Code from drakulavich. Thanks Anton! | py |
diff --git a/salt/modules/service.py b/salt/modules/service.py
index <HASH>..<HASH> 100644
--- a/salt/modules/service.py
+++ b/salt/modules/service.py
@@ -53,7 +53,7 @@ def __virtual__():
if __grains__['kernel'] != 'Linux':
return (False, 'Non Linux OSes are not supported')
# SUSE >=12.0 uses systemd... | fix case in os_family for Suse | py |
diff --git a/spyder/plugins/completion/languageserver/client.py b/spyder/plugins/completion/languageserver/client.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/completion/languageserver/client.py
+++ b/spyder/plugins/completion/languageserver/client.py
@@ -304,10 +304,7 @@ class LSPClient(QObject, LSPMethodProvid... | LSP: Simplify code to check if transport or server processes are alive | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ setup(
name='requests-jwt',
version='0.5.1',
url='https://github.com/tgs/requests-jwt',
- modules=['requests_jwt'],
+ py_modules=['requests_jwt'],
install_requires=[ 'requests', 'PyJWT' ]... | Fix setup.py, should fix #4 | py |
diff --git a/beeper.py b/beeper.py
index <HASH>..<HASH> 100644
--- a/beeper.py
+++ b/beeper.py
@@ -3,7 +3,6 @@
__version__ = '0.3.3'
import subprocess, os, sys
-import yaml
import os
import click
@@ -22,6 +21,7 @@ class cd(object):
def parse_yaml(file):
+ import yaml
with open(file, 'rb') as f:
... | Try to load yaml but not treat it as neccessary. | py |
diff --git a/bin/configurator.py b/bin/configurator.py
index <HASH>..<HASH> 100755
--- a/bin/configurator.py
+++ b/bin/configurator.py
@@ -64,6 +64,7 @@ def main():
'configuration', 'local'))
initial = {
'yoconfigurator': {
+ 'app': option... | Stash the app we are configuring in the seed config Companion to yola/yodeploy@de<I>e<I> | py |
diff --git a/gwpy/plotter/decorators.py b/gwpy/plotter/decorators.py
index <HASH>..<HASH> 100644
--- a/gwpy/plotter/decorators.py
+++ b/gwpy/plotter/decorators.py
@@ -21,6 +21,7 @@
import threading
from matplotlib.figure import Figure
+from matplotlib.axes import Axes
from .decorator import decorator
@@ -42,7 ... | plotter.decorators: removed unused import | py |
diff --git a/djangosaml2/views.py b/djangosaml2/views.py
index <HASH>..<HASH> 100644
--- a/djangosaml2/views.py
+++ b/djangosaml2/views.py
@@ -282,14 +282,13 @@ def logout_service(request, config_loader=DEFAULT_CONFIG_LOADER,
raise Http404('No SAMLResponse or SAMLRequest parameter found')
-DEFAULT_VALID_FO... | Use the same pattern for reading a custom setting and using a sane default if it is empty, as the attribute mappings one | py |
diff --git a/datapackage/package.py b/datapackage/package.py
index <HASH>..<HASH> 100644
--- a/datapackage/package.py
+++ b/datapackage/package.py
@@ -147,6 +147,12 @@ class Package(object):
"""
return [resource.name for resource in self.resources]
+ @property
+ def base_path(self):
+ "... | Move `package.base_path` to the main API (#<I>) | py |
diff --git a/postgres/setup.py b/postgres/setup.py
index <HASH>..<HASH> 100644
--- a/postgres/setup.py
+++ b/postgres/setup.py
@@ -28,7 +28,7 @@ def get_dependencies():
return f.readlines()
-CHECKS_BASE_REQ = 'datadog-checks-base>=21.2.0'
+CHECKS_BASE_REQ = 'datadog-checks-base>=23.0.0'
setup(
name... | update datadog checks base version for postgres (#<I>) | py |
diff --git a/eemeter/transform.py b/eemeter/transform.py
index <HASH>..<HASH> 100644
--- a/eemeter/transform.py
+++ b/eemeter/transform.py
@@ -385,8 +385,8 @@ def get_baseline_data(data, start=None, end=None, max_days=365):
Returns
-------
- baseline_data : :any:`pandas.DataFrame`
- Data for only ... | Fix docs for baseline and reporting period | py |
diff --git a/angr/surveyor.py b/angr/surveyor.py
index <HASH>..<HASH> 100644
--- a/angr/surveyor.py
+++ b/angr/surveyor.py
@@ -283,8 +283,6 @@ class Surveyor(object):
l.debug("Ticking path %s", p)
successors = self.tick_path(p)
- #if len(successors) > 1:
- # import ip... | moved the commented-out break to a better place | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -358,7 +358,7 @@ def parse_jsargs():
if '--build_js' in sys.argv:
if not installing:
- print("Error: Option '--build_js' only valid with 'install', 'develop' or 'sdist', exiting.")
+ print... | setup.py: Note that this also works with `develop`. | py |
diff --git a/mmcv/image/photometric.py b/mmcv/image/photometric.py
index <HASH>..<HASH> 100644
--- a/mmcv/image/photometric.py
+++ b/mmcv/image/photometric.py
@@ -14,7 +14,7 @@ def imnormalize(img, mean, std, to_rgb=True):
Returns:
ndarray: The normalized image.
"""
- img = np.float32(img) if img.... | Force copy of input img (#<I>) | py |
diff --git a/planet/scripts/v1.py b/planet/scripts/v1.py
index <HASH>..<HASH> 100644
--- a/planet/scripts/v1.py
+++ b/planet/scripts/v1.py
@@ -22,7 +22,6 @@ from .cli import (
)
from .opts import (
asset_type_option,
- item_type_option,
bundle_option,
asset_type_perms,
filter_opts,
@@ -35,7 +34... | fix order creation to de-couple item type option from data quick search | py |
diff --git a/haigha/classes/basic_class.py b/haigha/classes/basic_class.py
index <HASH>..<HASH> 100644
--- a/haigha/classes/basic_class.py
+++ b/haigha/classes/basic_class.py
@@ -182,7 +182,7 @@ class BasicClass(ProtocolClass):
rbuf_frames.appendleft( content_frame )
body.extend( content_frame.pay... | Fix very stupid frame rebuffering stooopid | py |
diff --git a/tests/unit/test_costs.py b/tests/unit/test_costs.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_costs.py
+++ b/tests/unit/test_costs.py
@@ -64,6 +64,8 @@ class TestCosts(unittest.TestCase):
self.assertEqual(total.columns, COLUMNS)
self.assertEqual(total.values('ProductName'), SERVIC... | Adding a couple simple assertions to unit tests. | py |
diff --git a/girder/api/v1/resource.py b/girder/api/v1/resource.py
index <HASH>..<HASH> 100644
--- a/girder/api/v1/resource.py
+++ b/girder/api/v1/resource.py
@@ -59,7 +59,7 @@ class Resource(BaseResource):
'prefix-based search.', enum=('text', 'prefix'), required=False,
default='text')
... | girder/api/vi/resource: Fix example of types associated with search route The only valid form for the search "types" is a list of double quoted strings. | py |
diff --git a/testutils.py b/testutils.py
index <HASH>..<HASH> 100644
--- a/testutils.py
+++ b/testutils.py
@@ -49,6 +49,7 @@ def warn_user_about_tests():
if '--yes-i-know' in sys.argv:
return
+
sys.stderr.write("""\
**********************************************************************
** ... | Added hidden cli flag for forcing w3c validation. | py |
diff --git a/querybuilder/query.py b/querybuilder/query.py
index <HASH>..<HASH> 100644
--- a/querybuilder/query.py
+++ b/querybuilder/query.py
@@ -837,7 +837,7 @@ class Query(object):
# build each part of the query
sql = ''
- # sql += self.build_withs()
+ sql += self.build_withs()
... | * Added in support for with clauses | py |
diff --git a/py3status/module.py b/py3status/module.py
index <HASH>..<HASH> 100644
--- a/py3status/module.py
+++ b/py3status/module.py
@@ -86,9 +86,13 @@ class Module(Thread):
"""
Start the module running.
"""
- # Call modules init() method if it has one
+ # Modules can define a... | better comments for post_config_hook | py |
diff --git a/kik_unofficial/client.py b/kik_unofficial/client.py
index <HASH>..<HASH> 100644
--- a/kik_unofficial/client.py
+++ b/kik_unofficial/client.py
@@ -57,6 +57,7 @@ class KikClient:
self.connected = False
self.authenticated = False
self.connection = None
+ self.is_expecting_con... | Removed the "connection lost" log when it's expected | py |
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py
index <HASH>..<HASH> 100644
--- a/spyderlib/spyder.py
+++ b/spyderlib/spyder.py
@@ -2755,7 +2755,10 @@ class MainWindow(QMainWindow):
env['SPYDER_PID'] = str(pid)
env['SPYDER_IS_BOOTSTRAP'] = str(is_bootstrap)
env['SPYDER_RESET'] = str(... | Using current sys.path to restart app | py |
diff --git a/fontaine/font.py b/fontaine/font.py
index <HASH>..<HASH> 100644
--- a/fontaine/font.py
+++ b/fontaine/font.py
@@ -15,6 +15,15 @@ from fontaine.cmap import library
from fontaine.const import *
+def lookup_languages(unichar):
+ for charmap in library.charmaps:
+ glyphs = getattr(charmap, 'glyp... | make ability to find charmaps with given unicode character | py |
diff --git a/pelix/framework.py b/pelix/framework.py
index <HASH>..<HASH> 100644
--- a/pelix/framework.py
+++ b/pelix/framework.py
@@ -1475,10 +1475,10 @@ class FrameworkFactory(object):
:return: A Pelix instance
"""
- # Normalize sys.path
- normalize_path()
if cls.__singlet... | Issue #<I>: Bugfix of growing sys.path in normalize_path(). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ setup(
description='Literate BDD assertions in Python with no magic',
long_description=open('README.rst').read(),
install_requires=install_requires,
- packages = find_packages(),
+ packages ... | use find_packages but exclude tests | py |
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py
index <HASH>..<HASH> 100644
--- a/gitlab/v4/cli.py
+++ b/gitlab/v4/cli.py
@@ -366,3 +366,6 @@ def run(gl, what, action, args, verbose, output, fields):
printer.display(get_dict(data, fields), verbose=verbose, obj=data)
elif isinstance(data, six.string_types... | [cli] Output: handle bytes in API responses Closes #<I> | py |
diff --git a/librosa/sequence.py b/librosa/sequence.py
index <HASH>..<HASH> 100644
--- a/librosa/sequence.py
+++ b/librosa/sequence.py
@@ -282,6 +282,9 @@ def viterbi_discriminative(prob, transition, p_state=None, p_init=None, return_l
This example constructs a simple, template-based discriminative chord estimator... | added disclaimer [ci skip] | py |
diff --git a/cmudict/__init__.py b/cmudict/__init__.py
index <HASH>..<HASH> 100644
--- a/cmudict/__init__.py
+++ b/cmudict/__init__.py
@@ -30,11 +30,11 @@ def _string(resource_name):
return string
-def _entries(stream, comments = False, comment_string = None):
+def _entries(stream, comment_string = None):
... | reduced optional comment paramaters to one, default None | py |
diff --git a/securesystemslib/keys.py b/securesystemslib/keys.py
index <HASH>..<HASH> 100755
--- a/securesystemslib/keys.py
+++ b/securesystemslib/keys.py
@@ -192,6 +192,12 @@ def generate_rsa_key(bits=_DEFAULT_RSA_KEY_BITS, scheme='rsassa-pss-sha256'):
# securesystemslib.formats.RSAKEYBITS_SCHEMA.check_match().
... | Make sure to strip leading and trailing newline character ... before generating the keyid in generate_rsa_key(). This is done so that the KEYID generated from imported keys matches. Imported PEM keys are stripped of any leading and trailing newline characters. | py |
diff --git a/tests/test_s3_calling_format.py b/tests/test_s3_calling_format.py
index <HASH>..<HASH> 100644
--- a/tests/test_s3_calling_format.py
+++ b/tests/test_s3_calling_format.py
@@ -1,4 +1,5 @@
import boto
+import inspect
import os
import pytest
@@ -272,7 +273,15 @@ def test_cipher_suites():
# seems to b... | Test compatability with newer boto New Boto versions require a 'port' argument be supplied to get_http_connection. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ from pysoa import __version__
install_requires = [
'conformity~=1.9',
- 'six~=1.10.0',
+ 'six~=1.10',
'attrs~=17.4',
'currint~=1.6',
'redis~=2.10', | Relax version spec for Six to reduce version conflicts | py |
diff --git a/mailchimp3/mailchimpclient.py b/mailchimp3/mailchimpclient.py
index <HASH>..<HASH> 100644
--- a/mailchimp3/mailchimpclient.py
+++ b/mailchimp3/mailchimpclient.py
@@ -273,11 +273,17 @@ class MailChimpOAuth(requests.auth.AuthBase):
raise e
else:
r.raise_for_status()
- ... | Add missing error catching on MailChimpOAuth methods Add a check for the token 'error' in the json output of the get_metadata() method. This check will raise a RequestException with the value of the error as the message. This also updates the get_base_url() method to reraise any RequestException brought by using the g... | py |
diff --git a/faker/providers/lv_LV/person.py b/faker/providers/lv_LV/person.py
index <HASH>..<HASH> 100644
--- a/faker/providers/lv_LV/person.py
+++ b/faker/providers/lv_LV/person.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals | lv_LV removed shebang | py |
diff --git a/openquake/engine/shapes.py b/openquake/engine/shapes.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/shapes.py
+++ b/openquake/engine/shapes.py
@@ -21,16 +21,12 @@
import hashlib
import json
import math
-import numpy
-from itertools import izip
from numpy import zeros
-from numpy import allcl... | shapes: Removed some unused imports. Former-commit-id: 8ff6df<I>c<I>bf<I>de<I>d<I>f<I>c | py |
diff --git a/vyked/registry.py b/vyked/registry.py
index <HASH>..<HASH> 100644
--- a/vyked/registry.py
+++ b/vyked/registry.py
@@ -25,7 +25,6 @@ class Registry:
def _rfactory(self):
from vyked.jsonprotocol import RegistryProtocol
-
return RegistryProtocol(self)
def start(self): | Reformatting and removing blank lines | py |
diff --git a/client.py b/client.py
index <HASH>..<HASH> 100644
--- a/client.py
+++ b/client.py
@@ -29,6 +29,8 @@ def send_growl(options,message=None):
notice.add_header('Notification-Sticky',options.sticky)
if options.priority:
notice.add_header('Notification-Priority',options.priority)
+ if options.icon:
+ no... | Add option for icon in client script. Requested by <URL> | py |
diff --git a/astroid/tests/unittest_inference.py b/astroid/tests/unittest_inference.py
index <HASH>..<HASH> 100644
--- a/astroid/tests/unittest_inference.py
+++ b/astroid/tests/unittest_inference.py
@@ -4318,7 +4318,6 @@ class CallSiteTest(unittest.TestCase):
self.assertIn('f', site.duplicated_keywords)
-@... | Remove expected failure causing unexpected success This may be the result of _explicit_inference (inference stacking) only using the last added inference_tip | py |
diff --git a/pyfilemail/users.py b/pyfilemail/users.py
index <HASH>..<HASH> 100644
--- a/pyfilemail/users.py
+++ b/pyfilemail/users.py
@@ -2,6 +2,7 @@ from calendar import timegm
from datetime import datetime, timedelta
from requests import Session
+import pyfilemail as pm
from pyfilemail import logger, login_requ... | if no pasword is passed, check for netrc password | py |
diff --git a/firecloud/api.py b/firecloud/api.py
index <HASH>..<HASH> 100755
--- a/firecloud/api.py
+++ b/firecloud/api.py
@@ -1020,6 +1020,26 @@ def get_submission(namespace, workspace,
return requests.get(uri, headers=headers)
+def get_workflow_metadata(namespace, workspace,
+ submission_id, ... | Added wrapper for Submissions/workflowMetadata | py |
diff --git a/messages/email_.py b/messages/email_.py
index <HASH>..<HASH> 100644
--- a/messages/email_.py
+++ b/messages/email_.py
@@ -108,10 +108,6 @@ class Email(Message):
self.sent_messages = deque()
- def __repr__(self):
- return '<messages.Email class> at: ' + str(id(self))
-
-
def __st... | removes __repr__ and instead inherits it from the base Message class | py |
diff --git a/tchannel/tornado/tchannel.py b/tchannel/tornado/tchannel.py
index <HASH>..<HASH> 100644
--- a/tchannel/tornado/tchannel.py
+++ b/tchannel/tornado/tchannel.py
@@ -44,8 +44,8 @@ class TChannel(object):
raise tornado.gen.Return(peer)
- def request(self, hostport):
- return TChannelClien... | python - allow service name in request | py |
diff --git a/core/rigid_transformations.py b/core/rigid_transformations.py
index <HASH>..<HASH> 100644
--- a/core/rigid_transformations.py
+++ b/core/rigid_transformations.py
@@ -843,7 +843,7 @@ class SimilarityTransform(RigidTransform):
The inverse of this SimilarityTransform.
"""
inv_po... | Fixed a bug in STF inverse which was pointing at the old non-class matrix from rigid transformations function | py |
diff --git a/parsl/executors/high_throughput/process_worker_pool.py b/parsl/executors/high_throughput/process_worker_pool.py
index <HASH>..<HASH> 100755
--- a/parsl/executors/high_throughput/process_worker_pool.py
+++ b/parsl/executors/high_throughput/process_worker_pool.py
@@ -150,7 +150,7 @@ class Manager(object):
... | Log *what* the manager is connected to (#<I>) | py |
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py
index <HASH>..<HASH> 100644
--- a/tools/interop_matrix/client_matrix.py
+++ b/tools/interop_matrix/client_matrix.py
@@ -220,6 +220,7 @@ LANG_RELEASE_MATRIX = {
('v1.28.1', ReleaseInfo()),
('v1.29.0', Rel... | Add grpc-java <I> to interop test client matrix | py |
diff --git a/openquake/db/models.py b/openquake/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/db/models.py
+++ b/openquake/db/models.py
@@ -1440,6 +1440,14 @@ class SESRupture(djm.Model):
lats = fields.PickleField()
depths = fields.PickleField()
result_grp_ordinal = djm.IntegerField()
+ # N... | db/models: Added better doc to the SESRupture.rupture_ordinal field. Former-commit-id: 2f<I>f4c<I>c<I>d<I>e<I>ab<I>db<I>dc<I> | py |
diff --git a/eloquent/connectors/postgres_connector.py b/eloquent/connectors/postgres_connector.py
index <HASH>..<HASH> 100644
--- a/eloquent/connectors/postgres_connector.py
+++ b/eloquent/connectors/postgres_connector.py
@@ -1,7 +1,10 @@
# -*- coding: utf-8 -*-
-import psycopg2
-import psycopg2.extras
+try:
+ i... | Fixes an ImportError when loading ConnectionFactory | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ setup(
test_suite='docido.sdk.test.suite',
zip_safe=True,
install_requires=[
- 'elasticsearch>=1.6.0',
+ 'elasticsearch==1.6.0',
'Flask-OAuthlib>=0.8.0',
'ProxyType... | Freeze Elasticsearch pkg to <I> Version <I> has just been released, and API has changed. | py |
diff --git a/holidays.py b/holidays.py
index <HASH>..<HASH> 100644
--- a/holidays.py
+++ b/holidays.py
@@ -1973,7 +1973,8 @@ class Czech(HolidayBase):
"Nový rok"
e = easter(year)
- self[e - rd(days=2)] = "Velký pátek"
+ if year <= 1951 or year >= 2016:
+ self[e - rd(days... | CZ: Good Friday was holiday only <= <I> and now from <I> | py |
diff --git a/astroid/tests/unittest_python3.py b/astroid/tests/unittest_python3.py
index <HASH>..<HASH> 100644
--- a/astroid/tests/unittest_python3.py
+++ b/astroid/tests/unittest_python3.py
@@ -245,6 +245,20 @@ class Python3TC(unittest.TestCase):
node = extract_node(code)
self.assertEqual(node.as_str... | Add test for underscores in numeral literal (Python <I>) | py |
diff --git a/Geometry/ellipse.py b/Geometry/ellipse.py
index <HASH>..<HASH> 100644
--- a/Geometry/ellipse.py
+++ b/Geometry/ellipse.py
@@ -135,7 +135,7 @@ class Ellipse(object):
def __hash__(self):
'''
'''
- # this will cause circles to hash to points
+ # this will cause circles/ell... | added method Ellipse.__contains__ | py |
diff --git a/aliyun/log/logclient_operator.py b/aliyun/log/logclient_operator.py
index <HASH>..<HASH> 100644
--- a/aliyun/log/logclient_operator.py
+++ b/aliyun/log/logclient_operator.py
@@ -2,6 +2,7 @@ from __future__ import print_function
from .logexception import LogException
import six
import json
+import os
fr... | use os.path.expandvar for opening file | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -80,6 +80,19 @@ class AddressTest(unittest.TestCase):
self.assertTrue(addr.apartment == None)
self.assertTrue(addr.building == None)
+ def test_hash_apartment(self):
+ addr = Address("407 West Dot... | Guessing the vast majority of addresses. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,6 +27,16 @@ with open('README.rst', 'r', 'utf-8') as f: # type: StreamReader
##
+# Declare test dependencies separately, so that they can be installed
+# either automatically (``python setup.py test``) or manually
+# ... | `test-runner` extra now also installs nose, et al. To make it easier for devs to execute individual tests. | py |
diff --git a/civicpy/civic.py b/civicpy/civic.py
index <HASH>..<HASH> 100644
--- a/civicpy/civic.py
+++ b/civicpy/civic.py
@@ -669,6 +669,19 @@ class User(CivicRecord):
_COMPLEX_FIELDS = CivicRecord._COMPLEX_FIELDS.union(_OPTIONAL_FIELDS)
+ def __init__(self, **kwargs):
+ self._created_at = None
+ ... | make `User.created_at` timestamp resolve as a datetime object | py |
diff --git a/tcconfig/_tc_command_helper.py b/tcconfig/_tc_command_helper.py
index <HASH>..<HASH> 100644
--- a/tcconfig/_tc_command_helper.py
+++ b/tcconfig/_tc_command_helper.py
@@ -27,6 +27,16 @@ def check_tc_command_installation():
sys.exit(errno.ENOENT)
+def get_required_capabilities(command):
+ require... | Extract a function that get required capabilities from commands | py |
diff --git a/superset/views.py b/superset/views.py
index <HASH>..<HASH> 100755
--- a/superset/views.py
+++ b/superset/views.py
@@ -2624,4 +2624,11 @@ app.url_map.converters['regex'] = RegexConverter
@app.route('/<regex("panoramix\/.*"):url>')
def panoramix(url): # noqa
return redirect(request.full_path.replace(... | Redirect URL requests with "caravel" to "superset" (#<I>) * Redirect URL requests with "caravel" to "superset" * Adding extra line break | py |
diff --git a/tests/test_webhooks.py b/tests/test_webhooks.py
index <HASH>..<HASH> 100644
--- a/tests/test_webhooks.py
+++ b/tests/test_webhooks.py
@@ -227,7 +227,9 @@ class TestWebhookEventTrigger(TestCase):
invalid_event["id"] = "evt_invalid"
invalid_event["data"]["valid"] = "not really"
- r... | Do not pollute the console with an expected warning | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -40,7 +40,7 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
nitpicky = True
# We need a recent sphinx because of the last update format.
-# needs_sphinx = '1.4'
+needs_sphinx = '1.4'
html_last_u... | Reintroduce hard-requirement on Sphinx. Everything seems fine on RTD side. | py |
diff --git a/hiddenlayer/tf_builder.py b/hiddenlayer/tf_builder.py
index <HASH>..<HASH> 100644
--- a/hiddenlayer/tf_builder.py
+++ b/hiddenlayer/tf_builder.py
@@ -21,7 +21,9 @@ FRAMEWORK_TRANSFORMS = [
ht.Prune("Variable"),
ht.PruneBranch("Assign"),
ht.PruneBranch("AssignSub"),
+ ht.PruneBranch("Assig... | Additional graph simplification rules for TF | py |
diff --git a/pieshell/pipeline.py b/pieshell/pipeline.py
index <HASH>..<HASH> 100644
--- a/pieshell/pipeline.py
+++ b/pieshell/pipeline.py
@@ -59,7 +59,11 @@ class RunningPipeline(object):
self.processes = processes
self.pipeline = pipeline
def __iter__(self):
- return iterio.LineInputHand... | Properly close pipeline when reaching end of iteration | py |
diff --git a/currencies/models.py b/currencies/models.py
index <HASH>..<HASH> 100644
--- a/currencies/models.py
+++ b/currencies/models.py
@@ -41,6 +41,10 @@ class Currency(models.Model):
if self.is_default is True:
self.__class__._default_manager.filter(is_default=True).update(is_default=False)
... | make sure default / base curreny is active | py |
diff --git a/python/dllib/src/bigdl/dllib/nn/layer.py b/python/dllib/src/bigdl/dllib/nn/layer.py
index <HASH>..<HASH> 100644
--- a/python/dllib/src/bigdl/dllib/nn/layer.py
+++ b/python/dllib/src/bigdl/dllib/nn/layer.py
@@ -5684,6 +5684,30 @@ class RoiAlign(Layer):
pooled_h,
... | feat: Feature Pyramid Networks Forward (#<I>) | py |
diff --git a/angr/analyses/cfg/cfb.py b/angr/analyses/cfg/cfb.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfb.py
+++ b/angr/analyses/cfg/cfb.py
@@ -297,3 +297,4 @@ class CFBlanket(Analysis):
from angr.analyses import AnalysesHub
AnalysesHub.register_default('CFB', CFBlanket)
+AnalysesHub.register_default... | Add alternate name for cfblanket..? | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -276,6 +276,8 @@ setup(name = "javatools",
"scripts/manifest",
"scripts/distpatchgen"],
+ requires = ["Cheetah"],
+
cmdclass = {'build_py': build_py,
'pylint... | denote the Cheetah requirement | py |
diff --git a/ELiDE/rulesview.py b/ELiDE/rulesview.py
index <HASH>..<HASH> 100644
--- a/ELiDE/rulesview.py
+++ b/ELiDE/rulesview.py
@@ -2,16 +2,17 @@
# Copyright (C) 2013-2014 Zachary Spector, ZacharySpector@gmail.com
"""Widget to enable browsing rules and the functions that make them."""
from functools import partia... | split the former RulesView into three parts FuncsView, for the three lists of functions that may be used in making a rule; RulesView, for the one list of rules, which may be added to, edited, deleted from, disabled from; RulesBench, which contains the above two views | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -141,6 +141,7 @@ fast sources.
import os
import re
import sys
+import gzip
import time
import socket
import signal
@@ -234,7 +235,8 @@ c... | Compressing the data transferred [skip CI] | py |
diff --git a/otree_redwood/models.py b/otree_redwood/models.py
index <HASH>..<HASH> 100644
--- a/otree_redwood/models.py
+++ b/otree_redwood/models.py
@@ -9,7 +9,6 @@ import json
from jsonfield import JSONField
import logging
from otree.models import BaseGroup
-from otree.views.abstract import get_redis_lock
from o... | remove get_redis_lock from models this function was removed in the latest oTree revision and wasn't being used anyways | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -111,7 +111,6 @@ setup(
"matplotlib",
"gammapy>=0.18",
"healpy",
- "astropy-healpix",
- "fermitools"
+ "astropy-healpix"
],
) | fermitools not in pip | py |
diff --git a/niftypet/nimpa/prc/imio.py b/niftypet/nimpa/prc/imio.py
index <HASH>..<HASH> 100644
--- a/niftypet/nimpa/prc/imio.py
+++ b/niftypet/nimpa/prc/imio.py
@@ -338,6 +338,10 @@ def dcminfo(dcmvar, Cnt=None):
for s in dtype) or cmmnt == 'Listmode' or csatype == 'MRPETLM_LARGE':
out = ['raw'... | added sinogram dtype in dcminfo function | py |
diff --git a/{{cookiecutter.repo_name}}/config/wsgi.py b/{{cookiecutter.repo_name}}/config/wsgi.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.repo_name}}/config/wsgi.py
+++ b/{{cookiecutter.repo_name}}/config/wsgi.py
@@ -20,7 +20,10 @@ from django.core.wsgi import get_wsgi_application
from whitenoise.django impo... | Fix for wsgi.py for Raven in dev | py |
diff --git a/src/googleclouddebugger/__init__.py b/src/googleclouddebugger/__init__.py
index <HASH>..<HASH> 100644
--- a/src/googleclouddebugger/__init__.py
+++ b/src/googleclouddebugger/__init__.py
@@ -50,9 +50,7 @@ def _StartDebugger():
_hub_client = gcp_hub_client.GcpHubClient()
_breakpoints_manager = breakpoi... | Enable logpoints in Python Cloud Debugger agent for AppEngine ------------- Created by MOE: <URL> | py |
diff --git a/parsl/app/bash.py b/parsl/app/bash.py
index <HASH>..<HASH> 100644
--- a/parsl/app/bash.py
+++ b/parsl/app/bash.py
@@ -26,6 +26,8 @@ def remote_side_bash_executor(func, *args, **kwargs):
func_name = func.__name__
+ partial_cmdline = None
+
# Try to run the func to compose the commandline
... | Fix incorrect access of sometimes-undefined partial_cmdline | py |
diff --git a/zipline/finance/risk.py b/zipline/finance/risk.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/risk.py
+++ b/zipline/finance/risk.py
@@ -543,6 +543,12 @@ class RiskMetricsIterative(RiskMetricsBase):
self.benchmark_volatility = []
self.algorithm_period_returns = []
self.bench... | MAINT: Add empty values for risk metric calculated components. eigen vales, covariance, etc. are not calculated until the first return is passed through, so initialize this values to None, so that `repr` and its ilk work on a freshly created `RiskMetricsIterative` object. | py |
diff --git a/git/compat.py b/git/compat.py
index <HASH>..<HASH> 100644
--- a/git/compat.py
+++ b/git/compat.py
@@ -204,7 +204,7 @@ def replace_surrogate_encode(mystring):
# The following magic comes from Py3.3's Python/codecs.c file:
if not 0xD800 <= code <= 0xDCFF:
# Not a surrogate. Fai... | BF: there is no exc variable, raising NotASurrogateError if that is the right thing todo | py |
diff --git a/sovrin_client/test/cli/test_command_reg_ex.py b/sovrin_client/test/cli/test_command_reg_ex.py
index <HASH>..<HASH> 100644
--- a/sovrin_client/test/cli/test_command_reg_ex.py
+++ b/sovrin_client/test/cli/test_command_reg_ex.py
@@ -208,6 +208,14 @@ def testProofReqRegEx(grammar):
assertCliTokens(matched... | First impl of send proof request.py | py |
diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index <HASH>..<HASH> 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -917,11 +917,9 @@ class DataFrameGroupBy(GroupBy):
result = DataFrame(result)
else:
if len(self.groupings) > 1:
- try:
-... | ENH: delete item_by_item branch in groupby | py |
diff --git a/salt/queues/pgjsonb_queue.py b/salt/queues/pgjsonb_queue.py
index <HASH>..<HASH> 100644
--- a/salt/queues/pgjsonb_queue.py
+++ b/salt/queues/pgjsonb_queue.py
@@ -14,8 +14,8 @@ config. These are the defaults:
queue.pgjsonb.host: 'salt'
queue.pgjsonb.user: 'salt'
- queue.pgjsonb.pass: 'salt'
-... | Porting PR #<I> to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,7 @@ setup(
'graphene>=1.0',
'SQLAlchemy',
'singledispatch>=3.4.0.3',
+ 'iso8601',
],
tests_require=[
'pytest>=2.7.2', | Added dependency to iso<I> needed for datetime handling | py |
diff --git a/airflow/jobs/scheduler_job.py b/airflow/jobs/scheduler_job.py
index <HASH>..<HASH> 100644
--- a/airflow/jobs/scheduler_job.py
+++ b/airflow/jobs/scheduler_job.py
@@ -1358,8 +1358,8 @@ class SchedulerJob(BaseJob):
def _find_zombies(self, session):
"""
Find zombie task instances, which... | Small docstring clarification in _find_zombies (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ billy-util = billy.bin.util:main
"name_tools>=0.1.2",
"nose",
"pymongo>=2.2",
- "scrapelib>=0.7.0",
+ "scrapelib<=1.0",
"unicodecsv!=0.9.3",
... | keep scrapelib from going to <I> | py |
diff --git a/cpt/runner.py b/cpt/runner.py
index <HASH>..<HASH> 100644
--- a/cpt/runner.py
+++ b/cpt/runner.py
@@ -148,7 +148,7 @@ class DockerCreateRunner(object):
pip_install=None,
config_url=None,
printer=None,
- upload_dependencies=None,
+ ... | Upload dependencies is a list by default | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -60,18 +60,18 @@ class PyTest(TestCommand):
sys.exit(errcode)
-setup(name='watson-developer-cloud',
+setup(name='ibm-watson',
version=__version__,
description='Client library to use the IBM Watson Se... | BREAKING CHANGE(setup): Update setup to point to latest package thsi is a BREAKING CHANGE | py |
diff --git a/pyqode/core/widgets/filesystem_treeview.py b/pyqode/core/widgets/filesystem_treeview.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/widgets/filesystem_treeview.py
+++ b/pyqode/core/widgets/filesystem_treeview.py
@@ -469,9 +469,15 @@ class FileSystemHelper:
QtWidgets.QLineEdit.Normal, name)
... | FSTreeView: fix file_renamed signal not emitted for child file when a parent directory has been renamed | py |
diff --git a/landslide/generator.py b/landslide/generator.py
index <HASH>..<HASH> 100644
--- a/landslide/generator.py
+++ b/landslide/generator.py
@@ -177,8 +177,7 @@ class Generator(object):
self.log(u"Adding %s (%s)" % (source, parser.format))
file_contents = codecs.open(source, encoding... | Temporary fix for slides after <I> | py |
diff --git a/tube.py b/tube.py
index <HASH>..<HASH> 100644
--- a/tube.py
+++ b/tube.py
@@ -1,5 +1,5 @@
from testtube.helpers import pep8_all, pyflakes_all, nosetests_all
PATTERNS = (
- (r'.*\.py', [pep8_all, pyflakes_all, nosetests_all]),
+ (r'.*\.py', [nosetests_all, pep8_all, pyflakes_all]),
) | Reconfigure testtube so nosetests are run first The test suite output was too long and that was causing pep8 and pyflakes output to be pushed above the fold. | py |
diff --git a/aioice/ice.py b/aioice/ice.py
index <HASH>..<HASH> 100644
--- a/aioice/ice.py
+++ b/aioice/ice.py
@@ -259,7 +259,7 @@ class Connection:
@property
def local_candidates(self):
"""
- Local candidates, automatically set by gather_candidates().
+ Local candidates, automatically ... | [docs] improve some docstrings | py |
diff --git a/telethon_generator/tl_generator.py b/telethon_generator/tl_generator.py
index <HASH>..<HASH> 100755
--- a/telethon_generator/tl_generator.py
+++ b/telethon_generator/tl_generator.py
@@ -312,8 +312,8 @@ class TLGenerator:
builder.end_block()
# Write the to_dict(self) method
- buil... | Fix extra line being appended on empty .to_dict()'s | py |
diff --git a/fc/io.py b/fc/io.py
index <HASH>..<HASH> 100644
--- a/fc/io.py
+++ b/fc/io.py
@@ -909,7 +909,7 @@ class FCSData(np.ndarray):
Acquisition start time, as a python time or datetime object.
`acquisition_start_time` is taken from the $BTIM keyword parameter
- in the text section of th... | changed 'text section' to 'TEXT segment' in FCSData's docstrings. | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100755
--- a/tests.py
+++ b/tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python
# vim: set encoding='utf-8'
"""Test module to test massedit.""" | fixed shee bang to not use python3. Added check for python 2.X usage to bail quickly | py |
diff --git a/samples/dumpit.py b/samples/dumpit.py
index <HASH>..<HASH> 100755
--- a/samples/dumpit.py
+++ b/samples/dumpit.py
@@ -225,7 +225,7 @@ for s in slots:
print("Dumping attributes:")
for q, a in zip(all_attributes, attributes):
- if a == None:
+ if a is... | samples/dumpit.py: fix PEP8 warning dumpit.py:<I>:<I>: E<I> comparison to None should be 'if cond is None:' | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,14 +10,13 @@ with io.open('README.rst', encoding='utf8') as readme:
setup(
name='django-improved-user',
- version='0.1.0',
+ version='0.1.1',
description='A custom Django user model for best practices em... | Release <I> - remove email (#8) | py |
diff --git a/master/buildbot/test/util/integration.py b/master/buildbot/test/util/integration.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/util/integration.py
+++ b/master/buildbot/test/util/integration.py
@@ -119,7 +119,7 @@ class RunMasterBase(unittest.TestCase):
worker_dir.createDirectory()... | fix usePTY usage in local worker tests | py |
diff --git a/cirq/ops/raw_types_test.py b/cirq/ops/raw_types_test.py
index <HASH>..<HASH> 100644
--- a/cirq/ops/raw_types_test.py
+++ b/cirq/ops/raw_types_test.py
@@ -460,8 +460,17 @@ def test_tagged_operation():
def test_circuit_diagram():
+
+ class TaggyTag:
+ """Tag with a custom repr function to test... | Add test for non-string tag for TaggedOperation circuit diagrams (#<I>) | py |
diff --git a/endpoints/endpointscfg.py b/endpoints/endpointscfg.py
index <HASH>..<HASH> 100755
--- a/endpoints/endpointscfg.py
+++ b/endpoints/endpointscfg.py
@@ -323,7 +323,7 @@ def _GenSwaggerSpec(service_class_names, output_path, hostname=None,
config_string_generator=swagger_generator.SwaggerGenerator(),
... | Change filename of Swagger spec output (#<I>) | py |
diff --git a/django_extensions/management/commands/shell_plus.py b/django_extensions/management/commands/shell_plus.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/shell_plus.py
+++ b/django_extensions/management/commands/shell_plus.py
@@ -1,4 +1,5 @@
import os
+import six
import time
from... | fix python 2.x compatibility by using six.exec_ | py |
diff --git a/pyrogram/api/errors/__init__.py b/pyrogram/api/errors/__init__.py
index <HASH>..<HASH> 100644
--- a/pyrogram/api/errors/__init__.py
+++ b/pyrogram/api/errors/__init__.py
@@ -17,3 +17,4 @@
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
from .exceptions import *
+from .error import U... | Expose UnknownError class | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.