diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/siggen/generator.py b/siggen/generator.py
index <HASH>..<HASH> 100644
--- a/siggen/generator.py
+++ b/siggen/generator.py
@@ -68,6 +68,8 @@ class SignatureGenerator:
}
for rule in self.pipeline:
+ rule_name = rule.__class__.__name__
+
try:
if rul... | Make rule_name a var since we use it often | py |
diff --git a/django_zappa/management/commands/update.py b/django_zappa/management/commands/update.py
index <HASH>..<HASH> 100644
--- a/django_zappa/management/commands/update.py
+++ b/django_zappa/management/commands/update.py
@@ -79,11 +79,18 @@ class Command(BaseCommand):
#Add this environment's Django setti... | Add domain support to update code, fixing #<I> | py |
diff --git a/openquake/hazardlib/poe.py b/openquake/hazardlib/poe.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/poe.py
+++ b/openquake/hazardlib/poe.py
@@ -167,6 +167,9 @@ class PoeCurve(object):
def __invert__(self):
return self.__class__(self.slicedic, 1. - self.array)
+ def __nonzero__(... | Added a method PoeCurve.__nonzero__ | py |
diff --git a/configuration.py b/configuration.py
index <HASH>..<HASH> 100644
--- a/configuration.py
+++ b/configuration.py
@@ -166,18 +166,7 @@ class Configuration(Mapping):
:return: a value, as either an actual value or a `.Configuration`
instance (`.NotConfigured` in case of an unconfigured 'ste... | Remove redundant code __getattr__ uses get, which includes the Mapping to Configuration check. | py |
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py
index <HASH>..<HASH> 100644
--- a/spyderlib/spyder.py
+++ b/spyderlib/spyder.py
@@ -975,7 +975,7 @@ class MainWindow(QMainWindow):
self.tour_menu_actions = []
# TODO: Only show intro tour for now. When we are close to finish
... | Main Window: Simplify how the intro tour is selected (for now) | py |
diff --git a/djmoney_rates/utils.py b/djmoney_rates/utils.py
index <HASH>..<HASH> 100644
--- a/djmoney_rates/utils.py
+++ b/djmoney_rates/utils.py
@@ -51,7 +51,8 @@ def base_convert_money(amount, currency_from, currency_to):
if isinstance(amount, float):
amount = Decimal(amount).quantize(Decimal('.000001'... | When base converting, only return Decimal with two points. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -53,7 +53,7 @@ REQUIREMENTS = ['ipykernel>=4.8.2',
'pyzmq>=17',
'jupyter-client>=5.2.3',
'cloudpickle',
- 'wurlitzer']
+ 'wurlitzer;platform_syst... | Setup.py: Demand Wurlitzer only on Posix systems | py |
diff --git a/mintapi/api.py b/mintapi/api.py
index <HASH>..<HASH> 100644
--- a/mintapi/api.py
+++ b/mintapi/api.py
@@ -365,30 +365,34 @@ def main():
options = cmdline.parse_args()
- # Handle Python 3's raw_input change.
+ if options.keyring and not keyring:
+ cmdline.error('--keyring can only be u... | Added a backwards-compatible path for trying to use the keyring password even if the --keyring argument is not specified. | py |
diff --git a/tests/actions/test_validation_operators_in_data_context.py b/tests/actions/test_validation_operators_in_data_context.py
index <HASH>..<HASH> 100644
--- a/tests/actions/test_validation_operators_in_data_context.py
+++ b/tests/actions/test_validation_operators_in_data_context.py
@@ -191,6 +191,7 @@ def test_... | Updated the expected project dir structure to make the test pass | py |
diff --git a/dcompiler.py b/dcompiler.py
index <HASH>..<HASH> 100755
--- a/dcompiler.py
+++ b/dcompiler.py
@@ -823,6 +823,8 @@ class LDCDCompiler(DCompiler):
self._exeLinkOpts = []
# _linkOpts
self._SharedLinkOpts = ['-shared']
+ if _isPlatOSX:
+ self._SharedLinkOpts.app... | explicitly link to python on OS X w/ ldc | py |
diff --git a/tests/java_unittest.py b/tests/java_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/java_unittest.py
+++ b/tests/java_unittest.py
@@ -90,10 +90,14 @@ class JvmMaxMemTestCase(unittest.TestCase):
def test_jvm_memmax_setting_is_not_passed(self):
"""Do not pass -Xmx to the jvm."""
wi... | Make sure that startJVM() gets called Former-commit-id: 9e<I>bf<I>e<I>cb6f<I>a9eda<I>fde<I>e [formerly b<I>da<I>b<I>d<I>ec<I>e8c6] Former-commit-id: fe9f<I>f8cd8c<I>ecb<I>e<I> | py |
diff --git a/searchtweets/credentials.py b/searchtweets/credentials.py
index <HASH>..<HASH> 100644
--- a/searchtweets/credentials.py
+++ b/searchtweets/credentials.py
@@ -31,7 +31,7 @@ def _load_yaml_credentials(filename=None, yaml_key=None):
"""
try:
with open(os.path.expanduser(filename)) as f:
- ... | yaml.load() to yaml.safe_load() Details: <URL>-Deprecation PyYAML's load function has been unsafe since the first release in May <I>. It has always been documented that way in bold type: PyYAMLDocumentation. PyYAML has always provided a safe_load function that can load a subset of YAML without exploit. | py |
diff --git a/pyicloud/cmdline.py b/pyicloud/cmdline.py
index <HASH>..<HASH> 100755
--- a/pyicloud/cmdline.py
+++ b/pyicloud/cmdline.py
@@ -33,7 +33,7 @@ def create_pickled_data(idevice, filename):
def main(args=None):
if args is None:
- args = sys.argv
+ args = sys.argv[1:]
""" Main Functi... | Properly send use only arguments following the first. | py |
diff --git a/taskcluster/aio/asyncclient.py b/taskcluster/aio/asyncclient.py
index <HASH>..<HASH> 100644
--- a/taskcluster/aio/asyncclient.py
+++ b/taskcluster/aio/asyncclient.py
@@ -221,7 +221,7 @@ class AsyncBaseClient(BaseClient):
try:
await response.release()
return aw... | The exception raised by async .json() call has changed. | py |
diff --git a/dataviews/collector.py b/dataviews/collector.py
index <HASH>..<HASH> 100644
--- a/dataviews/collector.py
+++ b/dataviews/collector.py
@@ -52,6 +52,9 @@ class AttrTree(object):
fixed_error = 'AttrTree attribute access disabled with fixed=True'
self.__dict__['_fixed_error'] = fixed_error
... | Added an __iter__ method to AttrTree | py |
diff --git a/remotecv/detectors/__init__.py b/remotecv/detectors/__init__.py
index <HASH>..<HASH> 100644
--- a/remotecv/detectors/__init__.py
+++ b/remotecv/detectors/__init__.py
@@ -36,7 +36,7 @@ class CascadeLoaderDetector(BaseDetector):
def get_features(self, image):
min_size = self.get_min_size_for(im... | Increasing number of minimum neighbors for face detection | py |
diff --git a/girder/utility/server.py b/girder/utility/server.py
index <HASH>..<HASH> 100644
--- a/girder/utility/server.py
+++ b/girder/utility/server.py
@@ -209,8 +209,9 @@ def setup(test=False, plugins=None, curConfig=None):
# Mount static files
cherrypy.tree.mount(None, routeTable[constants.GIRDER_STATIC_... | Fix a CherryPy checker error when the static files are not built | py |
diff --git a/src/parsy/__init__.py b/src/parsy/__init__.py
index <HASH>..<HASH> 100644
--- a/src/parsy/__init__.py
+++ b/src/parsy/__init__.py
@@ -22,8 +22,8 @@ class ParseError(RuntimeError):
def line_info(self):
try:
return '{}:{}'.format(*line_info_at(self.stream, self.index))
- exc... | more explicit oob error message and catch not-a-string earlier | py |
diff --git a/andes/models/synchronous.py b/andes/models/synchronous.py
index <HASH>..<HASH> 100644
--- a/andes/models/synchronous.py
+++ b/andes/models/synchronous.py
@@ -424,8 +424,8 @@ class GENROUModel(object):
self.Se0 = ConstService(tex_name=r"S_{e0}",
v_str='(psi20_abs>=S... | Patched the tex_name of `_a` and `_b` in GENROU. | py |
diff --git a/scapy/layers/dns.py b/scapy/layers/dns.py
index <HASH>..<HASH> 100644
--- a/scapy/layers/dns.py
+++ b/scapy/layers/dns.py
@@ -52,7 +52,6 @@ class DNSStrField(StrField):
class DNSRRCountField(ShortField):
- holds_packets=1
def __init__(self, name, default, rr):
ShortField.__init__(self... | Remove hold_packets attribute from DNSRRCountField DNSRRCountField is a counter for DNSRRField fields and do not hold packets. --HG-- branch : issue-<I> | py |
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/base.py
+++ b/openquake/calculators/base.py
@@ -792,9 +792,10 @@ class RiskCalculator(HazardCalculator):
haz = ', '.join(imtls)
raise ValueError('The IMTs in the r... | Cleanup [skip CI] | py |
diff --git a/src/extract-dicom.py b/src/extract-dicom.py
index <HASH>..<HASH> 100644
--- a/src/extract-dicom.py
+++ b/src/extract-dicom.py
@@ -41,7 +41,7 @@ def main():
args = parse_args()
logging.debug("[START]")
- start_time = time.time()
+ start_time = time.clock()
logging.info("Connecting t... | use clock instead of time to monitor performance | py |
diff --git a/parsl/executors/high_throughput/interchange.py b/parsl/executors/high_throughput/interchange.py
index <HASH>..<HASH> 100644
--- a/parsl/executors/high_throughput/interchange.py
+++ b/parsl/executors/high_throughput/interchange.py
@@ -361,8 +361,8 @@ class Interchange(object):
msg['... | fixing an exception message in interchange (#<I>) | py |
diff --git a/pooled_pika.py b/pooled_pika.py
index <HASH>..<HASH> 100644
--- a/pooled_pika.py
+++ b/pooled_pika.py
@@ -11,7 +11,7 @@ from twisted.internet.protocol import ClientCreator
__all__ = ["VERSION", "PooledConn"]
-VERSION = "0.1.3"
+VERSION = "0.1.4"
logger = logging.getLogger(__name__)
@@ -169,7 +169... | fix a potential bug getting a closed connection | py |
diff --git a/visidata/_input.py b/visidata/_input.py
index <HASH>..<HASH> 100644
--- a/visidata/_input.py
+++ b/visidata/_input.py
@@ -117,7 +117,7 @@ class HistoryState:
if self.hist_idx > 0:
self.hist_idx -= 1
v = self.history[self.hist_idx]
- i = len(v)
+ i = len(str(... | [input-] handle history for non-str input values Needed since <I>d3 Closes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,5 +41,4 @@ The project documentation can be found at http://natural.rtfd.org/
url='https://github.com/tehmaze/natural',
packages=['natural'],
package_data={'natural': ['locale/*/LC_MESSAGES/*.mo']},
- use... | Do not use 2to3 It does bad things regarding locale import. | py |
diff --git a/pyfastaq/sequences.py b/pyfastaq/sequences.py
index <HASH>..<HASH> 100644
--- a/pyfastaq/sequences.py
+++ b/pyfastaq/sequences.py
@@ -470,7 +470,7 @@ class Fasta:
This method ignores N when calculating the length of the sequence.
It does not, however ignore other ambiguous bases. ... | make loop more efficient. Fix Martin's crazy grammar requirements. | py |
diff --git a/responders/Gmail/gmail.py b/responders/Gmail/gmail.py
index <HASH>..<HASH> 100755
--- a/responders/Gmail/gmail.py
+++ b/responders/Gmail/gmail.py
@@ -83,7 +83,7 @@ class Gmail(Responder):
observable["tags"].extend("gmail_trash:{}".format(result["id"]))
# Update observables with messag... | replaced variable to fit new helper functions | py |
diff --git a/ldapcherry/backend/backendAD.py b/ldapcherry/backend/backendAD.py
index <HASH>..<HASH> 100644
--- a/ldapcherry/backend/backendAD.py
+++ b/ldapcherry/backend/backendAD.py
@@ -180,14 +180,14 @@ class Backend(ldapcherry.backend.backendLdap.Backend):
ldap_client = self._bind()
- dn = str('C... | Fix encoding issues in AD backend | py |
diff --git a/kaggle/api/kaggle_api_extended.py b/kaggle/api/kaggle_api_extended.py
index <HASH>..<HASH> 100644
--- a/kaggle/api/kaggle_api_extended.py
+++ b/kaggle/api/kaggle_api_extended.py
@@ -69,7 +69,7 @@ class KaggleApi(KaggleApi):
CONFIG_NAME_PATH = 'path'
CONFIG_NAME_USER = 'username'
CONFIG_NAME_... | change ca_certs to ssl_ca_cert | py |
diff --git a/hdl_toolkit/hdlObjects/types/booleanVal.py b/hdl_toolkit/hdlObjects/types/booleanVal.py
index <HASH>..<HASH> 100644
--- a/hdl_toolkit/hdlObjects/types/booleanVal.py
+++ b/hdl_toolkit/hdlObjects/types/booleanVal.py
@@ -63,8 +63,12 @@ class BooleanVal(Value):
if isinstance(self, Value):
... | fix: ternary evaluation with non valid condition | py |
diff --git a/package/cloudshell/cp/vcenter/common/vcenter/model_auto_discovery.py b/package/cloudshell/cp/vcenter/common/vcenter/model_auto_discovery.py
index <HASH>..<HASH> 100644
--- a/package/cloudshell/cp/vcenter/common/vcenter/model_auto_discovery.py
+++ b/package/cloudshell/cp/vcenter/common/vcenter/model_auto_di... | fixed autoload of vCenter after task waiter refactor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ setup(
download_url='https://github.com/Kuniwak/vint/archive/v{version}.tar.gz'.format(version=VERSION),
install_requires=install_requires(),
tests_require=test_requires(),
- packages=find_pack... | Properly exclude all modules under test/ directory Without an asterisk only the topmost 'test' module is excluded. | py |
diff --git a/tests/test_inner_formatting_grouper.py b/tests/test_inner_formatting_grouper.py
index <HASH>..<HASH> 100644
--- a/tests/test_inner_formatting_grouper.py
+++ b/tests/test_inner_formatting_grouper.py
@@ -207,3 +207,22 @@ def test_nested_grouping_after_endl():
('RIGHT_SQUARE_BRACKET', ']'),
... | [fix] add a test for case fixed by previous commit | py |
diff --git a/var_log_dieta/var_log_dieta.py b/var_log_dieta/var_log_dieta.py
index <HASH>..<HASH> 100755
--- a/var_log_dieta/var_log_dieta.py
+++ b/var_log_dieta/var_log_dieta.py
@@ -83,14 +83,16 @@ def process_log(path, ingredients):
else:
log_parts = sorted(os.listdir(path))
- parts = []
... | report: showing __init__ ingredients at the end of the parent parts | py |
diff --git a/salt/states/mongodb_user.py b/salt/states/mongodb_user.py
index <HASH>..<HASH> 100644
--- a/salt/states/mongodb_user.py
+++ b/salt/states/mongodb_user.py
@@ -112,8 +112,6 @@ def present(name,
users = __salt__['mongodb.user_find'](name, user, password, host, port, database, authdb)
if len(users) >... | Do not do the same request twice. Found during code review. Originally there was 2 different functions to check is user there and to fetch the users list. Then the first one was replaced by more efficient that is the same that the second one. Removed the unneeded second call. | py |
diff --git a/airflow/contrib/operators/gcs_to_bq.py b/airflow/contrib/operators/gcs_to_bq.py
index <HASH>..<HASH> 100644
--- a/airflow/contrib/operators/gcs_to_bq.py
+++ b/airflow/contrib/operators/gcs_to_bq.py
@@ -133,7 +133,7 @@ class GoogleCloudStorageToBigQueryOperator(BaseOperator):
Not applicable for ext... | [AIRFLOW-<I>] Change back autodetect default value from False to True in GoogleCloudStorageToBigQueryOperator. (#<I>) Set autodetect default value from false to be true to avoid breaking downstream services using GoogleCloudStorageToBigQueryOperator but not aware of the newly added autodetect field. This is to fi... | py |
diff --git a/buildbot/status/builder.py b/buildbot/status/builder.py
index <HASH>..<HASH> 100644
--- a/buildbot/status/builder.py
+++ b/buildbot/status/builder.py
@@ -491,11 +491,8 @@ class LogFile:
if self.openfile:
# we don't do an explicit close, because there might be readers
# sh... | Don't do os.fsync when we're done with a log. | py |
diff --git a/explorer/tests/test_utils.py b/explorer/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/explorer/tests/test_utils.py
+++ b/explorer/tests/test_utils.py
@@ -70,8 +70,8 @@ class TestParams(TestCase):
self.assertEqual(expected, param('foo'))
def test_params_get_swapped(self):
- sq... | tests for pull request #<I> | py |
diff --git a/tensorflow_probability/python/distributions/jax_transformation_test.py b/tensorflow_probability/python/distributions/jax_transformation_test.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/jax_transformation_test.py
+++ b/tensorflow_probability/python/distributions/jax_tran... | After suppressing jit(Independent.log_prob), Hypothesis finds the same failure in jit(MixtureSameFamily.log_prob). Suppressing that too. PiperOrigin-RevId: <I> | py |
diff --git a/test/acid.py b/test/acid.py
index <HASH>..<HASH> 100755
--- a/test/acid.py
+++ b/test/acid.py
@@ -230,7 +230,7 @@ def _disassemble(code):
def process_args():
"""Return processed arguments (options and positional arguments)."""
- compare_bytecode_ignore = 'E71,E721,W601,W602,W604'
+ compare_by... | Ignore more under bytecode testing | py |
diff --git a/faker/providers/internet/__init__.py b/faker/providers/internet/__init__.py
index <HASH>..<HASH> 100644
--- a/faker/providers/internet/__init__.py
+++ b/faker/providers/internet/__init__.py
@@ -57,7 +57,7 @@ class Provider(BaseProvider):
)
image_placeholder_services = (
'https://placehol... | Fix typo Replace unicode '×' symbol by x litter in image placeholder url | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,9 @@ else:
def version_to_int(version):
version = re.search(r'((?:\d+\.)+\d+)', version).group()
# Split the groups on ".", take only the first one, and print each group with leading 0 if needed
- versi... | Update setup.py also handle cases where groups are added or removed in the version string | py |
diff --git a/pydoop/mapreduce/api.py b/pydoop/mapreduce/api.py
index <HASH>..<HASH> 100644
--- a/pydoop/mapreduce/api.py
+++ b/pydoop/mapreduce/api.py
@@ -66,6 +66,18 @@ class JobConf(dict):
'1'
>>> jc.get_int('a')
1
+
+ .. warning::
+
+ For the most part, a JobConf object behaves like a :c... | JobConf docs: added warning about the differences with dict [ci skip] | py |
diff --git a/gui/riab.py b/gui/riab.py
index <HASH>..<HASH> 100644
--- a/gui/riab.py
+++ b/gui/riab.py
@@ -70,7 +70,7 @@ class Riab:
self.iface = iface
self.translator = None
self.setupI18n()
- print QCoreApplication.translate('Riab', 'Translations loaded')
+ #print QCoreApplica... | Commented out print statement left from testing | py |
diff --git a/tests/test_sql_copy.py b/tests/test_sql_copy.py
index <HASH>..<HASH> 100644
--- a/tests/test_sql_copy.py
+++ b/tests/test_sql_copy.py
@@ -36,7 +36,7 @@ TABLE_CONTENTS = [
]
COPY_FROM_QUERY = (
- 'COPY carto_python_sdk_copy_test (the_geom, name, age) FROM stdin WITH ',
+ 'COPY carto_python_sdk_cop... | Remove uneeded trailing commas | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,4 @@
from setuptools import setup
-import generate
-
-generate.run()
setup(
name='nnpy',
@@ -26,6 +23,7 @@ setup(
'Programming Language :: Python :: Implementation :: CPython',
],
packages=[... | Use setup_requires and cffi_modules variable for build | py |
diff --git a/mordred/task_collection.py b/mordred/task_collection.py
index <HASH>..<HASH> 100644
--- a/mordred/task_collection.py
+++ b/mordred/task_collection.py
@@ -287,7 +287,7 @@ class TaskRawDataArthurCollection(Task):
ajson = {"tasks": [{}]}
# This is the perceval tag
ajson["tasks"][0][... | [task_collection] Support that the name of a backend section could include a suffix In mordred the backend sections have sometimes the format like "remo:activities" so we can have for the same data source, several entries with different config. | py |
diff --git a/indy_node/test/api/helper.py b/indy_node/test/api/helper.py
index <HASH>..<HASH> 100644
--- a/indy_node/test/api/helper.py
+++ b/indy_node/test/api/helper.py
@@ -238,7 +238,7 @@ def sdk_write_context(looper, sdk_pool_handle, sdk_wallet_steward, context_array
set_context_txn_json = json.dumps(raw_jso... | fix id in get context tests | py |
diff --git a/tests/end2end/test_cpc.py b/tests/end2end/test_cpc.py
index <HASH>..<HASH> 100644
--- a/tests/end2end/test_cpc.py
+++ b/tests/end2end/test_cpc.py
@@ -90,7 +90,7 @@ def test_cpc_find_list(hmc_session): # noqa: F811
hd = hmc_session.hmc_definition
for cpc_name in hd.cpcs:
- print("Testing... | Cleaned up CPC display in CPC end2end tests | py |
diff --git a/segno/scripts/cmd.py b/segno/scripts/cmd.py
index <HASH>..<HASH> 100644
--- a/segno/scripts/cmd.py
+++ b/segno/scripts/cmd.py
@@ -47,7 +47,7 @@ def make_parser():
parser.add_argument('content', help='The content to encode')
parser.add_argument('--version', '-v', help='(Micro) QR Code version: 1 .... | Fixed error correction docs: "L" is Segno's default | py |
diff --git a/spillway/renderers.py b/spillway/renderers.py
index <HASH>..<HASH> 100644
--- a/spillway/renderers.py
+++ b/spillway/renderers.py
@@ -4,7 +4,7 @@ from wsgiref.util import FileWrapper
import zipfile
from django.contrib.gis.shortcuts import compress_kml
-from django.conf import settings
+from django.core... | Look for mapfiles in default storage root | py |
diff --git a/openshift/helper/base.py b/openshift/helper/base.py
index <HASH>..<HASH> 100644
--- a/openshift/helper/base.py
+++ b/openshift/helper/base.py
@@ -275,7 +275,7 @@ class BaseObjectHelper(object):
if not namespace:
try:
if 'body' in inspect.getargspec(delete_method).args... | Bug <I> - Add foreground propagation policy | py |
diff --git a/tools/static/hooks/hook-pycbc.py b/tools/static/hooks/hook-pycbc.py
index <HASH>..<HASH> 100644
--- a/tools/static/hooks/hook-pycbc.py
+++ b/tools/static/hooks/hook-pycbc.py
@@ -14,7 +14,7 @@ from PyInstaller.hooks.hookutils import (collect_data_files, collect_submodules)
needs_assets = ['pycbc_make_html_... | Add additional program to list of those needing XML | py |
diff --git a/examples/multiple_logging.py b/examples/multiple_logging.py
index <HASH>..<HASH> 100644
--- a/examples/multiple_logging.py
+++ b/examples/multiple_logging.py
@@ -21,7 +21,7 @@ LOGGER = logging.getLogger('enlighten')
DATACENTERS = 5
SYSTEMS = (10, 20) # Range
-FILES = (100, 1000) # Range
+FILES = (10,... | Use less granular time in examples | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ setup(
version="0.3dev",
packages=find_packages(),
- data_files=[('twisted', ['plugins/startnode.py'])],
+ data_files=[('twisted/plugins', ['twisted/plugins/startnode.py'])],
install_requi... | Fixed data_files in setup.py | py |
diff --git a/keen/api.py b/keen/api.py
index <HASH>..<HASH> 100644
--- a/keen/api.py
+++ b/keen/api.py
@@ -50,7 +50,8 @@ class KeenApi(object):
# self says it belongs to KeenApi/andOr is the object passed into KeenApi
# __init__ create keenapi object whenever KeenApi class is invoked
def __init__(self, p... | add master_key to KeenApi class | py |
diff --git a/salt/modules/mongodb.py b/salt/modules/mongodb.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mongodb.py
+++ b/salt/modules/mongodb.py
@@ -172,8 +172,8 @@ def version(user=None, password=None, host=None, port=None, database='admin', au
'''
conn = _connect(user, password, host, port, authdb=aut... | Fix indentation. Replaced tabs with spaces | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,12 +31,6 @@ setup(
]},
include_package_data=True,
- entry_points = {
- 'neutronclient.extension': [
- 'a10_appliance=a10_neutron_lbaas_client.a10_appliance'
- ]
- },
-
script... | client entrypoint isn't here anymore | py |
diff --git a/citrination_client/client.py b/citrination_client/client.py
index <HASH>..<HASH> 100644
--- a/citrination_client/client.py
+++ b/citrination_client/client.py
@@ -514,7 +514,7 @@ class CitrinationClient(object):
return self._check_response_for_errors(result)
def _check_response_for_errors(se... | Support <I> return for query timeout as well as <I> | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -548,6 +548,7 @@ class Minion(object):
try:
socks = dict(poller.poll(self.opts['sub_timeout'] * 1000))
if socket in socks and socks[socket] == ... | only do a check for module refreshes before executing This improves the idle nature of the minion | py |
diff --git a/stanfordnlp/models/common/doc.py b/stanfordnlp/models/common/doc.py
index <HASH>..<HASH> 100644
--- a/stanfordnlp/models/common/doc.py
+++ b/stanfordnlp/models/common/doc.py
@@ -166,7 +166,7 @@ class Document:
assert isinstance(contents, list), "Must provide contents as a list (one item per line).... | small bug fixed for set: & -> and | py |
diff --git a/eventsourcing/__init__.py b/eventsourcing/__init__.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/__init__.py
+++ b/eventsourcing/__init__.py
@@ -1 +1 @@
-__version__ = "9.1.7dev"
+__version__ = "9.1.7" | Increased version to <I>. | py |
diff --git a/ignite/engine/__init__.py b/ignite/engine/__init__.py
index <HASH>..<HASH> 100644
--- a/ignite/engine/__init__.py
+++ b/ignite/engine/__init__.py
@@ -33,7 +33,7 @@ __all__ = [
def _prepare_batch(
batch: Sequence[torch.Tensor], device: Optional[Union[str, torch.device]] = None, non_blocking: bool = Fa... | Fix typo (#<I>) Closes #<I> | py |
diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py
index <HASH>..<HASH> 100644
--- a/aiohttp/client_reqrep.py
+++ b/aiohttp/client_reqrep.py
@@ -215,7 +215,7 @@ class ClientRequest:
if match:
raise ValueError(
f"Method cannot contain non-token characters {method!r} "... | Fix issue probably-meant-fstring found at <URL> | py |
diff --git a/Lib/glyphs2ufo/torf.py b/Lib/glyphs2ufo/torf.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphs2ufo/torf.py
+++ b/Lib/glyphs2ufo/torf.py
@@ -94,14 +94,6 @@ def to_robofab(data, italic=False, include_instances=False, debug=False):
continue
rfont = rfonts[layer_id]
-
- ... | Remove this check as the name is not always saved in the layer. | 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='msm',
- version='0.5.10',
+ version='0.5.11',
packages=['msm'],
install_requires=['GitPython', 'typing'],
url='https://github.com/MycroftAI/my... | Increment version to <I> | py |
diff --git a/examples/allwatcher.py b/examples/allwatcher.py
index <HASH>..<HASH> 100644
--- a/examples/allwatcher.py
+++ b/examples/allwatcher.py
@@ -11,12 +11,14 @@ import logging
from juju import loop
from juju.client import client
-from juju.client.connection import Connection
+from juju.model import Model
... | Fix all watcher example The example for the all watcher was out of date, so it would help if we brought that up to speed, so others can see how to correctly use it. | py |
diff --git a/jax/random.py b/jax/random.py
index <HASH>..<HASH> 100644
--- a/jax/random.py
+++ b/jax/random.py
@@ -1227,8 +1227,21 @@ def logistic(key, shape=(), dtype=onp.float64):
@partial(jit, static_argnums=(1, 2))
def _logistic(key, shape, dtype):
+ # Mathematically, we can compute the distribution by generat... | Update random.logistic() to prevent infinities (#<I>) | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -13,23 +13,3 @@ if __name__ == "__main__":
test_runner = TestRunner()
failures = test_runner.run_tests(["tests"])
sys.exit(bool(failures))
-#
-#
-#
-# import os
-# import sys
-# import django
-# from... | cleans runtests.py | py |
diff --git a/_pytest/doctest.py b/_pytest/doctest.py
index <HASH>..<HASH> 100644
--- a/_pytest/doctest.py
+++ b/_pytest/doctest.py
@@ -295,7 +295,18 @@ def _get_allow_bytes_flag():
return doctest.register_optionflag('ALLOW_BYTES')
+def _get_report_choices_keys():
+ """
+ Returns the report choices keys. ... | adds a bit of doctest hint on why the key and value getters are separate functions. | py |
diff --git a/realtime/make_local_map.py b/realtime/make_local_map.py
index <HASH>..<HASH> 100644
--- a/realtime/make_local_map.py
+++ b/realtime/make_local_map.py
@@ -6,10 +6,13 @@ from shake_event import ShakeEvent
if __name__ == '__main__':
SHAKE_ID = '20131105060809'
-
- shake_event = ShakeEvent(
- ... | [Realtime] Add id locale on making the report to ensure the translation is working properly on realtime. | py |
diff --git a/torchvision/datasets/stl10.py b/torchvision/datasets/stl10.py
index <HASH>..<HASH> 100644
--- a/torchvision/datasets/stl10.py
+++ b/torchvision/datasets/stl10.py
@@ -55,8 +55,7 @@ class STL10(VisionDataset):
if download:
self.download()
-
- if not self._check_integrity():
+ ... | STL<I>: don't check integrity twice when download=True (#<I>) | py |
diff --git a/looper/models.py b/looper/models.py
index <HASH>..<HASH> 100644
--- a/looper/models.py
+++ b/looper/models.py
@@ -277,12 +277,17 @@ def merge_sample(sample, merge_table, data_sources=None, derived_columns=None):
for _, row in this_sample_rows.iterrows():
rowdata = row.to_dict()
- ... | don't modify dictionary over which iteration is occurring | py |
diff --git a/BarkTracker/bin/BarkTracker.py b/BarkTracker/bin/BarkTracker.py
index <HASH>..<HASH> 100644
--- a/BarkTracker/bin/BarkTracker.py
+++ b/BarkTracker/bin/BarkTracker.py
@@ -18,7 +18,7 @@ while True:
#convert to NumPy array
samps = numpy.fromstring(rawsamps, dtype = numpy.int16)
#output to user
- print a... | Commented out default print ...For added readability. | py |
diff --git a/pycannon/connection.py b/pycannon/connection.py
index <HASH>..<HASH> 100644
--- a/pycannon/connection.py
+++ b/pycannon/connection.py
@@ -6,7 +6,7 @@ class Connection:
Connection to go-cannon for sending emails.
"""
- def __init__(self, tls=False, host='localhost', port=8025, username=None,
... | Added /send method. | py |
diff --git a/lark/lark.py b/lark/lark.py
index <HASH>..<HASH> 100644
--- a/lark/lark.py
+++ b/lark/lark.py
@@ -202,7 +202,7 @@ class Lark:
if rel_to:
basepath = os.path.dirname(rel_to)
grammar_filename = os.path.join(basepath, grammar_filename)
- with open(grammar_filename) as ... | Lark grammars are now utf8 by default (Issue #<I>) | py |
diff --git a/holoviews/plotting/mpl/element.py b/holoviews/plotting/mpl/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/element.py
+++ b/holoviews/plotting/mpl/element.py
@@ -308,7 +308,7 @@ class ElementPlot(GenericElementPlot, MPLPlot):
data_ratio = 1./(ysize/xsize)
if aspect != ... | Ensure mpl aspect is regular float avoiding warnings | py |
diff --git a/src/livestreamer/plugins/gomexp.py b/src/livestreamer/plugins/gomexp.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer/plugins/gomexp.py
+++ b/src/livestreamer/plugins/gomexp.py
@@ -5,7 +5,7 @@ This plugin is using the same API as the mobile app.
from livestreamer.plugin import Plugin
from livestre... | plugins.gomexp: Fix encoding issue on Python 2. | py |
diff --git a/metaseq/results_table.py b/metaseq/results_table.py
index <HASH>..<HASH> 100644
--- a/metaseq/results_table.py
+++ b/metaseq/results_table.py
@@ -318,8 +318,10 @@ class ResultsTable(object):
# one-to-one line, if kwargs were specified
if one_to_one:
- ax.plot([xmin, xmax],
- ... | one-to-one line uses min of maxes, max of mins | py |
diff --git a/atomicpuppy/atomicpuppy.py b/atomicpuppy/atomicpuppy.py
index <HASH>..<HASH> 100644
--- a/atomicpuppy/atomicpuppy.py
+++ b/atomicpuppy/atomicpuppy.py
@@ -373,7 +373,7 @@ class EventRaiser:
self._callback(msg)
try:
self._counter[msg.stream] = msg.sequen... | fix usage of CircuitBreakerError This was failing with: NameError: name 'CircuitBreakerError' is not defined | py |
diff --git a/egg/_gui.py b/egg/_gui.py
index <HASH>..<HASH> 100644
--- a/egg/_gui.py
+++ b/egg/_gui.py
@@ -1,6 +1,7 @@
import time as _t
import os as _os
import numpy as _n
+import scipy.special as _scipy_special
from sys import platform as _platform
import spinmob as _spinmob
@@ -408,6 +409,9 @@ cl... | added scipy.special to DataboxPlot scripts | py |
diff --git a/birdhousebuilder/recipe/supervisor/__init__.py b/birdhousebuilder/recipe/supervisor/__init__.py
index <HASH>..<HASH> 100644
--- a/birdhousebuilder/recipe/supervisor/__init__.py
+++ b/birdhousebuilder/recipe/supervisor/__init__.py
@@ -3,6 +3,7 @@
"""Recipe conda"""
+import os
from mako.template import... | write output to anaconda supervisor conf.d folder | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,7 @@ def setup_package():
license='GPLv2',
install_requires=['numpy>=1.6, <2.0', 'scipy'],
extras_require={'testing': ['nose'], 'plotting': ['matplotlib'], 'parallelization': ['mpi4py']},
-... | [setup] Bump development status to Production/Stable | py |
diff --git a/statuspage/statuspage.py b/statuspage/statuspage.py
index <HASH>..<HASH> 100644
--- a/statuspage/statuspage.py
+++ b/statuspage/statuspage.py
@@ -305,7 +305,7 @@ def get_files(repo):
"""
Get a list of all files.
"""
- return [file.path for file in repo.get_dir_contents("/", ref="gh-pages"... | chore: pygithub has depreciated get_dir_contents (#<I>) | py |
diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/networking.py
+++ b/sos/plugins/networking.py
@@ -103,6 +103,7 @@ class Networking(Plugin):
"ip mroute show",
"ip maddr show",
"ip neigh show",
+ "ip netns",... | [networking] Collect a list of active network namespaces. Useful in Openstack environments. Fixes #<I> | py |
diff --git a/mknotebooks/plugin.py b/mknotebooks/plugin.py
index <HASH>..<HASH> 100644
--- a/mknotebooks/plugin.py
+++ b/mknotebooks/plugin.py
@@ -54,7 +54,9 @@ class Plugin(mkdocs.plugins.BasePlugin):
def on_files(self, files, config):
files = Files(
[
- NotebookFile(f, **conf... | Fix failing if paths are from pathlib | py |
diff --git a/O365/message.py b/O365/message.py
index <HASH>..<HASH> 100644
--- a/O365/message.py
+++ b/O365/message.py
@@ -60,15 +60,15 @@ class Message( object ):
return False
headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
-# message = {}
-# message['Subject'] = self.subject
-# mess... | I need to figure out a nice way to work with some of these thigns. the truth is that the JSON is good yes, but it is far from convenient for the user of the library. I think I may set up the super annoying get+set statements. Or maybe I can do some gypse magic with python's weak reference class. But right now I changed... | py |
diff --git a/rest_framework_json_api/utils.py b/rest_framework_json_api/utils.py
index <HASH>..<HASH> 100644
--- a/rest_framework_json_api/utils.py
+++ b/rest_framework_json_api/utils.py
@@ -261,7 +261,8 @@ def extract_relationships(fields, resource, resource_instance):
continue
try:
- ... | edit utils.extract_relationships to take into account fields with explicitly defined source | py |
diff --git a/uvicorn/protocols/http.py b/uvicorn/protocols/http.py
index <HASH>..<HASH> 100644
--- a/uvicorn/protocols/http.py
+++ b/uvicorn/protocols/http.py
@@ -172,11 +172,13 @@ class HttpProtocol(asyncio.Protocol):
self.write_paused = False
def pause_reading(self):
- self.transport.pause_read... | Graceful handling of pause/resume when transport is closed | py |
diff --git a/kubernetes/base/stream/ws_client.py b/kubernetes/base/stream/ws_client.py
index <HASH>..<HASH> 100644
--- a/kubernetes/base/stream/ws_client.py
+++ b/kubernetes/base/stream/ws_client.py
@@ -179,7 +179,7 @@ class WSClient:
# efficient as epoll. Will work for fd numbers above 1024.... | Check availability of poll method before using When eventlet is monkey patched, select.poll is removed since it is not thread safe. So check availability of `poll` method before using it. | py |
diff --git a/coaster/utils.py b/coaster/utils.py
index <HASH>..<HASH> 100644
--- a/coaster/utils.py
+++ b/coaster/utils.py
@@ -10,6 +10,7 @@ import hashlib
import string
import re
from urlparse import urlparse
+import email.utils
from collections import namedtuple, OrderedDict
import bcrypt
@@ -415,7 +416,7 @@ d... | Use email.utils.parseaddr for more reliable email parsing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,12 +13,13 @@ install_requires = [
test_requires = [
'nose2',
'pandas',
- 'pathlib',
- 'anndata',
'coverage',
'coveralls'
]
+if sys.version_info[0] == 3:
+ test_requires += ['anndata']
+
do... | don't install anndata on python2 | py |
diff --git a/angr/analyses/cfg/cfg_fast.py b/angr/analyses/cfg/cfg_fast.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfg_fast.py
+++ b/angr/analyses/cfg/cfg_fast.py
@@ -1493,8 +1493,9 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method
for mo in regex.finditer(byt... | use mva instead of rva (#<I>) | py |
diff --git a/pyGenClean/run_data_clean_up.py b/pyGenClean/run_data_clean_up.py
index <HASH>..<HASH> 100644
--- a/pyGenClean/run_data_clean_up.py
+++ b/pyGenClean/run_data_clean_up.py
@@ -27,10 +27,10 @@ import ConfigParser
from glob import glob
from collections import namedtuple, Counter
-import pyGenClean
import ... | Now only import the version from the main module | py |
diff --git a/py/h2o_glm.py b/py/h2o_glm.py
index <HASH>..<HASH> 100644
--- a/py/h2o_glm.py
+++ b/py/h2o_glm.py
@@ -202,7 +202,8 @@ def simpleCheckGLM(self, glm, colX, allowFailWarning=False, allowZeroCoeff=False
submodels = glm['glm_model']['submodels']
# FIX! this isn't right if we have multiple lamb... | print out the bad thresholds list on error | py |
diff --git a/conference_scheduler/scheduler.py b/conference_scheduler/scheduler.py
index <HASH>..<HASH> 100644
--- a/conference_scheduler/scheduler.py
+++ b/conference_scheduler/scheduler.py
@@ -42,6 +42,14 @@ def is_valid_solution(
return violations == 0
+def _schedule_to_solution(items, shape):
+ pass
+
+... | [#<I>] Create function stubs | py |
diff --git a/kafka/conn.py b/kafka/conn.py
index <HASH>..<HASH> 100644
--- a/kafka/conn.py
+++ b/kafka/conn.py
@@ -55,12 +55,11 @@ class KafkaConnection(local):
self._raise_connection_error()
(size,) = struct.unpack('>i', resp)
- messagesize = size - 4
- log.debug("About to read %d... | Read the correct number of bytes from kafka. According to the protocol documentation, the 4 byte integer at the beginning of a response represents the size of the payload only, not including those bytes. See <URL> | py |
diff --git a/squad/run/worker.py b/squad/run/worker.py
index <HASH>..<HASH> 100644
--- a/squad/run/worker.py
+++ b/squad/run/worker.py
@@ -11,7 +11,6 @@ def main():
'-A', 'squad',
'worker',
'--queues=celery,' + ','.join(queues),
- '--concurrency=1',
'--max-tasks-per-child=5000... | worker: don't constrain concurrency by default When no concurrency is specified, celery starts one worker thread for each CPU thread available (i.e. `nproc`). In a production environment, one most likely wants to utilize as much processing as possible, so requiring an explicit parameter for that is silly. For the cas... | py |
diff --git a/lyricsgenius/artist.py b/lyricsgenius/artist.py
index <HASH>..<HASH> 100644
--- a/lyricsgenius/artist.py
+++ b/lyricsgenius/artist.py
@@ -28,6 +28,7 @@ class Artist(object):
self._id = self._body['id']
self._songs = []
self._num_songs = len(self._songs)
+ self._songs_dropp... | Returning correct songs added to file When printing the number of songs added to the file, it returns the total number of songs found without subtracting the number of songs skipped. Initialized a zeroed variable that will count as songs are skipped and subtract from the total songs found. Not <I>% positive this is t... | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.