diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/test/scenario_test/aspath_test.py b/test/scenario_test/aspath_test.py
index <HASH>..<HASH> 100644
--- a/test/scenario_test/aspath_test.py
+++ b/test/scenario_test/aspath_test.py
@@ -73,7 +73,12 @@ class GoBGPTestBase(unittest.TestCase):
def test_02_check_reject_as_loop(self):
def f():
- ... | test/aspath: check accepted and received numbers make sure that an adj-rib return the accepted and received numbers when it has an as-looped path. | py |
diff --git a/pandocxnos/core.py b/pandocxnos/core.py
index <HASH>..<HASH> 100644
--- a/pandocxnos/core.py
+++ b/pandocxnos/core.py
@@ -783,11 +783,11 @@ def process_refs_factory(name, patt, labels, warninglevel):
# pylint: disable=too-many-arguments,unused-argument
def replace_refs_factory(references, use_cleveref_... | Added option to strip id from reference before replacing cite.. | py |
diff --git a/ayrton/execute.py b/ayrton/execute.py
index <HASH>..<HASH> 100644
--- a/ayrton/execute.py
+++ b/ayrton/execute.py
@@ -19,6 +19,7 @@ import os
import sys
import io
from collections.abc import Iterable
+
import ayrton
encoding= sys.getdefaultencoding ()
@@ -272,15 +273,12 @@ class Command:
# ... | [-] removed references to logging. | py |
diff --git a/androguard/core/bytecodes/apk.py b/androguard/core/bytecodes/apk.py
index <HASH>..<HASH> 100644
--- a/androguard/core/bytecodes/apk.py
+++ b/androguard/core/bytecodes/apk.py
@@ -689,12 +689,20 @@ class APK(object):
for sitem in item.findall(".//action"):
val = sitem.ge... | Do not return `None` in list of main-activities. Description of the method states that it returns list of strings, so `None` should not be there. According to the [docs](<URL>), name must be specified, so it is logged at least. | py |
diff --git a/src/fonduer/utils/utils_table.py b/src/fonduer/utils/utils_table.py
index <HASH>..<HASH> 100644
--- a/src/fonduer/utils/utils_table.py
+++ b/src/fonduer/utils/utils_table.py
@@ -1,7 +1,9 @@
import itertools
from builtins import range
+from functools import lru_cache
+@lru_cache(maxsize=1024)
def _mi... | perf(utils_table): add caching to speed up row/col diff calculations | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,7 @@ setup(
name="appnexus-client",
version=get_version(),
author="Numberly",
+ author_email="alexandrebonnetain@1000mercis.com",
description="appnexus-client is a python wrapper for the Appnex... | Add author's email in packaging metadata | py |
diff --git a/openquake/commonlib/source.py b/openquake/commonlib/source.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/source.py
+++ b/openquake/commonlib/source.py
@@ -702,7 +702,7 @@ class CompositeSourceModel(collections.Sequence):
for src in sg.sources)
return new
- ... | Added a couple of comments [skip CI] | py |
diff --git a/stanza/utils/run_mwt.py b/stanza/utils/run_mwt.py
index <HASH>..<HASH> 100644
--- a/stanza/utils/run_mwt.py
+++ b/stanza/utils/run_mwt.py
@@ -1,3 +1,20 @@
+"""
+This script allows for training or testing on dev / test of the UD mwt tools.
+
+If run with a single treebank name, it will train or test that tr... | Add some comments to run_mwt | py |
diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/format.py
+++ b/pylint/checkers/format.py
@@ -1044,7 +1044,8 @@ class FormatChecker(BaseTokenChecker):
# allow empty lines
pass
elif line[len(st... | Use a col_offset as the length of the line with trailing spaces. Close #<I> | py |
diff --git a/OpenPNM/Base/__Controller__.py b/OpenPNM/Base/__Controller__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Base/__Controller__.py
+++ b/OpenPNM/Base/__Controller__.py
@@ -415,7 +415,7 @@ class Controller(dict):
comments = property(fget=_get_comments,fset=_set_comments)
- def clone_simulation(sel... | clone_object now accepts name for the new simulation which it appends onto the old name (i.e. net becomes net|clone) | py |
diff --git a/assess_add_cloud.py b/assess_add_cloud.py
index <HASH>..<HASH> 100755
--- a/assess_add_cloud.py
+++ b/assess_add_cloud.py
@@ -11,7 +11,7 @@ import yaml
from jujupy import (
AuthNotAccepted,
- EnvJujuClient,
+ ModelClient,
get_client_class,
InvalidEndpoint,
JujuData,
@@ -214,7 +... | Switch assess_add_cloud to ModelClient name. | py |
diff --git a/pymc3/stats.py b/pymc3/stats.py
index <HASH>..<HASH> 100644
--- a/pymc3/stats.py
+++ b/pymc3/stats.py
@@ -77,11 +77,14 @@ def dic(model, trace):
"""
Calculate the deviance information criterion of the samples in trace from model
"""
- if any(hasattr(rv.distribution, 'transform_used') for ... | Include a list of transformed RVs in DIC warning | py |
diff --git a/grade.py b/grade.py
index <HASH>..<HASH> 100644
--- a/grade.py
+++ b/grade.py
@@ -29,7 +29,7 @@ TEMPORARY_WANTS_CONFIG=True
@statsd.timed('open_ended_assessment.machine_learning.grader.time')
def grade(grader_path,grader_config,submission,sandbox=None):
- results = {'errors': [],'tests': [],'score':... | Add in support for returning ml confidence | py |
diff --git a/gns3server/controller/compute.py b/gns3server/controller/compute.py
index <HASH>..<HASH> 100644
--- a/gns3server/controller/compute.py
+++ b/gns3server/controller/compute.py
@@ -396,8 +396,9 @@ class Compute:
res = yield from self.http_query("GET", "/{}/images".format(type), timeout=120)
... | Send controller images only for qemu, iou and dynamips | py |
diff --git a/spyder/widgets/sourcecode/base.py b/spyder/widgets/sourcecode/base.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/sourcecode/base.py
+++ b/spyder/widgets/sourcecode/base.py
@@ -293,8 +293,8 @@ class TextEditBaseWidget(QPlainTextEdit, BaseEditMixin):
self.update_tab_stop_width_spaces()
... | Setting tab stop width by using the width of multiple spaces instead multiplying of width of single spaces | py |
diff --git a/django_airavata/apps/api/serializers.py b/django_airavata/apps/api/serializers.py
index <HASH>..<HASH> 100644
--- a/django_airavata/apps/api/serializers.py
+++ b/django_airavata/apps/api/serializers.py
@@ -457,7 +457,11 @@ class ExperimentSerializer(
ResourcePermissionType.WRITE)
def ge... | AIRAVATA-<I> moved get_rel_experiment_dir to user_storage in SDK | py |
diff --git a/tabular_predDB/timing_analysis/plot_parsed_output.py b/tabular_predDB/timing_analysis/plot_parsed_output.py
index <HASH>..<HASH> 100644
--- a/tabular_predDB/timing_analysis/plot_parsed_output.py
+++ b/tabular_predDB/timing_analysis/plot_parsed_output.py
@@ -34,7 +34,7 @@ def group_results(timing_rows, get_... | add "<I>" entry to num_cols_to_color | py |
diff --git a/www/src/Lib/sys.py b/www/src/Lib/sys.py
index <HASH>..<HASH> 100644
--- a/www/src/Lib/sys.py
+++ b/www/src/Lib/sys.py
@@ -17,6 +17,8 @@ byteorder='little'
def exc_info():
exc = __BRYTHON__.current_exception
+ if exc is None:
+ return(None, None, None)
return (exc.__class__,exc,exc.tr... | Fix bug in sys.exc_info | py |
diff --git a/cwltool/job.py b/cwltool/job.py
index <HASH>..<HASH> 100644
--- a/cwltool/job.py
+++ b/cwltool/job.py
@@ -1,5 +1,6 @@
from __future__ import absolute_import
import functools
+import io
import json
import logging
import os
@@ -440,7 +441,7 @@ def _job_popen(
rcode = sp.wait()
- if i... | cwltool/job.py: use io.IOBase rather than file class in isinstance() | py |
diff --git a/openquake/commonlib/calc.py b/openquake/commonlib/calc.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/calc.py
+++ b/openquake/commonlib/calc.py
@@ -438,6 +438,10 @@ class RuptureSerializer(object):
self.datastore.flush()
def close(self):
+ """
+ Save information abou... | Added docstring [skip CI] | py |
diff --git a/tests/test_common_pyvmomi.py b/tests/test_common_pyvmomi.py
index <HASH>..<HASH> 100644
--- a/tests/test_common_pyvmomi.py
+++ b/tests/test_common_pyvmomi.py
@@ -15,7 +15,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '../vCenterShell'))
from pycommon.logger import getLogger
from pycommon.l... | stop trying to log to log file under unittest | py |
diff --git a/programs/pmag_gui.py b/programs/pmag_gui.py
index <HASH>..<HASH> 100755
--- a/programs/pmag_gui.py
+++ b/programs/pmag_gui.py
@@ -450,7 +450,7 @@ class MagMainFrame(wx.Frame):
self.ErMagic_frame = ErMagicBuilder.MagIC_model_builder(self.WD, self, self.er_magic)#,self.Data,self.Data_hierarchy)
... | clarify Pmag GUI text about converting to <I> | py |
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py
index <HASH>..<HASH> 100755
--- a/howdoi/howdoi.py
+++ b/howdoi/howdoi.py
@@ -17,6 +17,7 @@ import appdirs
import re
from cachelib import FileSystemCache, NullCache
import requests
+import requests_cache
import sys
from . import __version__
@@ -29,6 +30,8 @@ from ... | installed test_requests_cache for tests | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -5,15 +5,8 @@
import sys
import os
-import sphinx_rtd_theme
from datetime import datetime
-
-try:
- import chatterbot
-except ImportError:
- import pip
- pip.main(['install', 'chatterbot'])
- i... | Don't install chatterbot from pypi when building docs | py |
diff --git a/spyderlib/widgets/dicteditorutils.py b/spyderlib/widgets/dicteditorutils.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/dicteditorutils.py
+++ b/spyderlib/widgets/dicteditorutils.py
@@ -212,7 +212,7 @@ def value_to_display(value, truncate=False, trunc_len=80, minmax=False):
try:
... | Variable Explorer: Fix hard freeze when binary strings can't be converted to unicode in PY2 Fixes #<I> | py |
diff --git a/deployutils/templatetags/deployutils_tags.py b/deployutils/templatetags/deployutils_tags.py
index <HASH>..<HASH> 100644
--- a/deployutils/templatetags/deployutils_tags.py
+++ b/deployutils/templatetags/deployutils_tags.py
@@ -69,12 +69,17 @@ def site_prefixed(path):
"""
if path is None:
... | avoid // in middle of path when juxtaposing a path after {{|site_prefixed}} | py |
diff --git a/tests/risk_tests.py b/tests/risk_tests.py
index <HASH>..<HASH> 100644
--- a/tests/risk_tests.py
+++ b/tests/risk_tests.py
@@ -938,6 +938,7 @@ class ClassicalPSHABasedTestCase(unittest.TestCase):
mixin.job_id = self.job_id
mixin.id = self.job_id
mixin.vuln_curves = {"ID": self.vul... | Add .params attribute to test job. | 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
from codecs import open
REPO_URL = "http://github.com/MatMaul/pynetgear"
-VERSION = "0.10.1"
+VERSION = "0.10.2"
with open("requirements.txt") as f:
required = f.read().spl... | bump to version <I> (#<I>) | py |
diff --git a/netpyne/simFuncs.py b/netpyne/simFuncs.py
index <HASH>..<HASH> 100644
--- a/netpyne/simFuncs.py
+++ b/netpyne/simFuncs.py
@@ -1394,7 +1394,7 @@ def gatherData ():
print(' Synaptic contacts: %i (%0.2f per cell)' % (sim.totalSynapses, sim.synsPerCell))
if 'runTime' in sim.timingData:
... | removed imembPtr and imembVec from cell to avoid error gathering | py |
diff --git a/vyper/context/validation/module.py b/vyper/context/validation/module.py
index <HASH>..<HASH> 100644
--- a/vyper/context/validation/module.py
+++ b/vyper/context/validation/module.py
@@ -162,8 +162,14 @@ class ModuleNodeVisitor(VyperNodeVisitorBase):
elif call_name == "public":
... | fix: annotate public variable with function type during type-checking | py |
diff --git a/syn/five/string.py b/syn/five/string.py
index <HASH>..<HASH> 100644
--- a/syn/five/string.py
+++ b/syn/five/string.py
@@ -4,12 +4,16 @@ STR = six.string_types
if six.PY2:
strf = unicode
+ unicode = unicode
+ unichr = unichr
else:
strf = str
+ unicode = str
+ unichr = chr
#-----... | Adding unicode and unichr to syn.five exports | py |
diff --git a/instaloader/instaloader.py b/instaloader/instaloader.py
index <HASH>..<HASH> 100644
--- a/instaloader/instaloader.py
+++ b/instaloader/instaloader.py
@@ -701,6 +701,8 @@ class Instaloader:
"""
Download the Posts returned by given Post Iterator.
+ ..versionadded:: 4.4
+
:... | Catch Exceptions raised during filter evaluation Closes #<I>. | py |
diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -3372,15 +3372,15 @@ class PubSubWorkerThread(threading.Thread):
self.daemon = daemon
self.pubsub = pubsub
self.sleep_time = sleep_time
- self._running = False
+ ... | Add an Event parameter to PubSubWorkerThread and run_in_thread so (#<I>) The PubSubWorkerThread now uses a `threading.Event` to control its life cycle. | py |
diff --git a/soundex/charmap.py b/soundex/charmap.py
index <HASH>..<HASH> 100644
--- a/soundex/charmap.py
+++ b/soundex/charmap.py
@@ -44,6 +44,10 @@ charmap={ \
def charCompare(char1, char2):
#Do a quick check
if char1 == char2 : return 0
+
+ char1 = char1.decode('utf-8') if type(char1).__name__ == 'str'... | Convert the character to unicode By default if str instance is passed the comparison with unicode character will fail. So convert char to unicode if it is string TODO: some of the characters in charmap for soundex are non unicde it should be converted it to unicode to avoid warning | py |
diff --git a/categories/tests/__init__.py b/categories/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/categories/tests/__init__.py
+++ b/categories/tests/__init__.py
@@ -1,4 +1,4 @@
-from categories.tests import views
+from categories.tests.category_import import *
from categories.tests.templatetags import *
_... | Changed the import to import from category_import | py |
diff --git a/django_auth_adfs/backend.py b/django_auth_adfs/backend.py
index <HASH>..<HASH> 100644
--- a/django_auth_adfs/backend.py
+++ b/django_auth_adfs/backend.py
@@ -211,6 +211,15 @@ class AdfsBackend(ModelBackend):
logger.debug("JWT payload:\n"+pformat(payload))
+ user = self.create_user(paylo... | split user creation in backend to make life easier to subclasses | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,11 @@ CLASSIFIERS = [
'Topic :: Software Development :: Libraries :: Python Modules']
-with open(path.join(path.dirname(__file__), 'README.txt')) as fd:
+README = 'README.txt'
+if not path.exists(README):
+ ... | Support using setup.py without Makefile. | py |
diff --git a/metpy/plots/_mpl.py b/metpy/plots/_mpl.py
index <HASH>..<HASH> 100644
--- a/metpy/plots/_mpl.py
+++ b/metpy/plots/_mpl.py
@@ -6,10 +6,11 @@ from __future__ import division
# See if we should monkey-patch Barbs for better pivot
import matplotlib
+import matplotlib.transforms as transforms
+import numpy ... | MNT: Fix import on matplotlib <I> With matplotlib <I> rc out, we no longer enter this block where a few imports take place, yet we're using them in other stuff. Move the imports up. | py |
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index <HASH>..<HASH> 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -1362,16 +1362,19 @@ class Gitlab(object):
else:
return False
- def listgroupmembers(self, group_id):
+ def listgroupmembers(self, group_id, page=1, per_pag... | Added page and per_page for listgroupmembers | py |
diff --git a/airflow/www/views.py b/airflow/www/views.py
index <HASH>..<HASH> 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1290,10 +1290,16 @@ class Airflow(BaseView):
elif children:
children_key = "_children"
+ def set_duration(tid):
+ if is... | [AIRFLOW-<I>] Show duration of task instances in ui At the moment mousing over a task instance in the Airflow tree view only shows the duration for completed task, and shows "Duration: null" for running tasks. Instead the UI should show the current task instance's duration for running tasks. This patch addresses this... | py |
diff --git a/salt/modules/virt.py b/salt/modules/virt.py
index <HASH>..<HASH> 100644
--- a/salt/modules/virt.py
+++ b/salt/modules/virt.py
@@ -2381,7 +2381,11 @@ def undefine(vm_, **kwargs):
'''
conn = __get_conn(**kwargs)
dom = _get_domain(conn, vm_)
- ret = dom.undefine() == 0
+ if getattr(libvir... | virt module: Allow NVRAM unlinking on DOM undefine UEFI-enabled VMs usually have pflash (NVRAM) devices attached, which require one additional libvirt flag to be passed at 'undefine'. This is usually the case for AArch<I> (arm<I>) VMs, where AAVMF (AA<I> UEFI) is the only supported guest bootloader. | py |
diff --git a/pyipmi/ipmitool.py b/pyipmi/ipmitool.py
index <HASH>..<HASH> 100755
--- a/pyipmi/ipmitool.py
+++ b/pyipmi/ipmitool.py
@@ -493,6 +493,9 @@ def parse_interface_options(interface_name, options):
interface_options['interface_type'] = value
else:
print('Warning: un... | ipmitool: add ipmbdev device path option parsing | py |
diff --git a/springboard/utils.py b/springboard/utils.py
index <HASH>..<HASH> 100644
--- a/springboard/utils.py
+++ b/springboard/utils.py
@@ -42,9 +42,34 @@ def ga_context(context_func):
def config_list(data):
+ """
+ A function that takes a string of values separated by newline characters
+ and returns ... | Added docstrings to util functions | py |
diff --git a/teneto/classes/bids.py b/teneto/classes/bids.py
index <HASH>..<HASH> 100644
--- a/teneto/classes/bids.py
+++ b/teneto/classes/bids.py
@@ -97,13 +97,13 @@ class TenetoBIDS:
self.sessions = []
if tasks == 'all' and self.raw_data_exists:
self.tasks = self.BIDS.get_tasks()
- ... | fixed set run and set task bug when raw data does not exist | py |
diff --git a/bigquery/nox.py b/bigquery/nox.py
index <HASH>..<HASH> 100644
--- a/bigquery/nox.py
+++ b/bigquery/nox.py
@@ -105,7 +105,7 @@ def system(session, py):
@nox.session
@nox.parametrize('py', ['2.7', '3.6'])
-def snippets_tests(session, py):
+def snippets(session, py):
"""Run the system test suite."""
... | shorten snippets test name (#<I>) | py |
diff --git a/glymur/jp2box.py b/glymur/jp2box.py
index <HASH>..<HASH> 100644
--- a/glymur/jp2box.py
+++ b/glymur/jp2box.py
@@ -2740,12 +2740,7 @@ class XMLBox(Jp2kBox):
def write(self, fptr):
"""Write an XML box to file.
"""
- try:
- read_buffer = ET.tostring(self.xml, encoding=... | Removed apparently unreachable XML code for <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -167,11 +167,11 @@ setup_params = dict(
""").strip().splitlines(),
extras_require={
"ssl:sys_platform=='win32'": "wincertstore==0.2",
- "certs": "certifi==2016.2.28",
+ "certs": "certifi==2... | setup.py: Bump `certifi` to version `<I>`. | py |
diff --git a/hrepr/h.py b/hrepr/h.py
index <HASH>..<HASH> 100644
--- a/hrepr/h.py
+++ b/hrepr/h.py
@@ -1,6 +1,7 @@
import re
import os.path
from html import escape
+from types import GeneratorType
# CSS for hrepr
@@ -134,7 +135,7 @@ class Tag:
return f'{k}="{res}"'
def convert_child(c):
... | Special-casing for children that are generators | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ setup(name='SAS_kernel',
#url='https://github.com/takluyver/bash_kernel',
packages=['sas_kernel'],
cmdclass={'install': install_with_kernelspec},
- install_requires=['pexpect>=3.3','sas... | update the install requirements for sas_kernel | py |
diff --git a/glymur/codestream.py b/glymur/codestream.py
index <HASH>..<HASH> 100644
--- a/glymur/codestream.py
+++ b/glymur/codestream.py
@@ -244,6 +244,12 @@ class Codestream(object):
while True:
read_buffer = fptr.read(2)
+ if len(read_buffer) < 2:
+ offset = fptr.te... | Error out when we cannot read enough bytes for a marker | py |
diff --git a/imtools/image_manipulation.py b/imtools/image_manipulation.py
index <HASH>..<HASH> 100644
--- a/imtools/image_manipulation.py
+++ b/imtools/image_manipulation.py
@@ -54,7 +54,7 @@ def get_nlabels(slab, labels, labels_meta=None, return_mode="num", return_first=
:param slab:
:param labels:
:pa... | documentation to "both" retutn mode | py |
diff --git a/motor/__init__.py b/motor/__init__.py
index <HASH>..<HASH> 100644
--- a/motor/__init__.py
+++ b/motor/__init__.py
@@ -288,6 +288,7 @@ class MotorPool(object):
give the number of callbacks allowed to wait for a socket at one
time.
"""
+ assert isinstance(pair, tuple... | Python <I>'s Pool.get_socket doesn't accept 'pair' argument. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@ SETUP_BASE = {
REQUIREMENTS = [
'google-cloud-bigquery >= 0.22.1, < 0.23dev',
'google-cloud-bigtable >= 0.22.0, < 0.23dev',
- 'google-cloud-core >= 0.22.1, < 0.23dev',
+ 'google-cloud-core >= 0.... | Bumping core dependency in umbrella package. (#<I>) Fixes #<I>. | py |
diff --git a/atmos/equations.py b/atmos/equations.py
index <HASH>..<HASH> 100644
--- a/atmos/equations.py
+++ b/atmos/equations.py
@@ -747,6 +747,12 @@ def Tlcl_from_T_e(T, e):
return ne.evaluate('2840./(3.5*log(T)-log(e)-4.805) + 55.')
+@autodoc(equation='T = theta (\frac{10^5}{p})^{-\frac{Rd}{Cpd}}')
+@assum... | added equation for T from p and theta | py |
diff --git a/Lib/fontMath/mathGuideline.py b/Lib/fontMath/mathGuideline.py
index <HASH>..<HASH> 100644
--- a/Lib/fontMath/mathGuideline.py
+++ b/Lib/fontMath/mathGuideline.py
@@ -73,6 +73,8 @@ def _findPair(guidelines1, guidelines2, pairs, attrs):
removeFromGuidelines1.append(guideline1)
guide... | Remove the guide from the list. Caused some hard to find problems when interpolating guides with identifiers. | py |
diff --git a/pyang/translators/dsdl.py b/pyang/translators/dsdl.py
index <HASH>..<HASH> 100644
--- a/pyang/translators/dsdl.py
+++ b/pyang/translators/dsdl.py
@@ -90,11 +90,9 @@ class DSDLPlugin(plugin.PyangPlugin):
def emit_dsdl(ctx, modules, fd):
# No errors are allowed
- for module in modules:
- fo... | DSDL: simplify handling of errors from the parser. | py |
diff --git a/project.py b/project.py
index <HASH>..<HASH> 100644
--- a/project.py
+++ b/project.py
@@ -173,6 +173,7 @@ class ToDoList(BasecampObject):
self._complete = node.findtext("complete")
self.completed_count = int(node.findtext("completed-count"))
self.uncompleted_count = int(node.find... | Added todolist description field. | py |
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index <HASH>..<HASH> 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -528,6 +528,7 @@ class EncryptCommand(Command):
ui.notify(e.message, priority='error')
continue
... | if :encrypt doesn't find any recipient set encrypt=False | py |
diff --git a/tests/test_api.py b/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -103,7 +103,7 @@ def test_array_sep():
def test_numpy_floats():
- import numpy as np
+ np = pytest.importorskip('numpy')
encoder = toml.TomlNumpyEncoder()
d = {'a': np... | Skip numpy tests when numpy is not available (#<I>) Make it possible to successfully run tests without numpy installed. This package is becoming quite hard profile, and being able to test it without building numpy first would be a nice feature. | py |
diff --git a/tests/test_object_proxy.py b/tests/test_object_proxy.py
index <HASH>..<HASH> 100644
--- a/tests/test_object_proxy.py
+++ b/tests/test_object_proxy.py
@@ -1178,5 +1178,36 @@ class TestObjectRepresentationObjectProxy(unittest.TestCase):
self.assertNotEqual(repr(value).find('ObjectProxy at'), -1)
... | Unit tests for manipulating as yet un-initialised base class in derived class __new__() and __init__(). | py |
diff --git a/host/tune_feedback.py b/host/tune_feedback.py
index <HASH>..<HASH> 100644
--- a/host/tune_feedback.py
+++ b/host/tune_feedback.py
@@ -127,8 +127,9 @@ class FeedbackTune(ScanBase):
logging.info("Binary search converged to non optimal value, take best measured value instead")
... | MAINT: deleting unfinished lnes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ from setuptools import setup
setup(
name='Flask-S3',
- version='0.1',
+ version='0.1.1',
url='http://github.com/e-dard/flask-s3',
license='WTFPL',
author='Edward Robinson', | bumped version for re-submission to Pypi | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ setup(
install_requires=[
"basescript",
"pymongo",
- "pynsq",
+ "nsq-py",
"pygtail==0.6.1",
],
package_dir={'logagg': 'logagg'}, | added nsq-py and remove pynsq at setup.py | py |
diff --git a/pysat/instruments/pysat_testing.py b/pysat/instruments/pysat_testing.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/pysat_testing.py
+++ b/pysat/instruments/pysat_testing.py
@@ -69,15 +69,15 @@ def init(self):
self.references = mm_test.refs
# work on file index if keyword present
- i... | BUG: propagating kwargs changes Propagated kwarg changes to testing instrument. | py |
diff --git a/chess/__init__.py b/chess/__init__.py
index <HASH>..<HASH> 100644
--- a/chess/__init__.py
+++ b/chess/__init__.py
@@ -1736,7 +1736,7 @@ class Board(BaseBoard):
"""
transposition_key = self._transposition_key()
repetitions = 1
- switchyard = collections.deque()
+ swi... | Use list for stacks (rather than deque) | py |
diff --git a/acme_tiny.py b/acme_tiny.py
index <HASH>..<HASH> 100644
--- a/acme_tiny.py
+++ b/acme_tiny.py
@@ -82,7 +82,7 @@ def get_crt(account_key, csr, acme_dir, log=LOGGER, CA=DEFAULT_CA):
log.info("Registering account...")
code, result = _send_signed_request(CA + "/acme/new-reg", {
"resource": "... | updated agreement URL since Let's Encrypt is now rejecting the old agreement | py |
diff --git a/datasette/app.py b/datasette/app.py
index <HASH>..<HASH> 100644
--- a/datasette/app.py
+++ b/datasette/app.py
@@ -315,7 +315,7 @@ async def favicon(request):
class DatabaseView(BaseView):
template = 'database.html'
- re_named_parameter = re.compile(':([a-zA-Z0-0_]+)')
+ re_named_parameter = r... | Fixed bug with params other than p0 p1 and upwards were not correctly extracted. | py |
diff --git a/platform/android/dist/build.py b/platform/android/dist/build.py
index <HASH>..<HASH> 100755
--- a/platform/android/dist/build.py
+++ b/platform/android/dist/build.py
@@ -10,7 +10,7 @@ def build(app, title, release):
if res != 0:
print "Failed to create android app"
return
- os.system('cp -r `ls -A ... | Exclude app folder with rsync instead of grep because it can remove js script for app with same title | py |
diff --git a/anonymoususage/api.py b/anonymoususage/api.py
index <HASH>..<HASH> 100644
--- a/anonymoususage/api.py
+++ b/anonymoususage/api.py
@@ -202,6 +202,11 @@ class UsageTrackerServer(AnonymousUsageTracker):
def index(self):
return 'Nothing to see here'
+ @cherrypy.expose
+ def setup_hq(self,... | added a view to set the HQ host and api key so that we don't have to keep it in a human readable text file | py |
diff --git a/trimesh/viewer/windowed.py b/trimesh/viewer/windowed.py
index <HASH>..<HASH> 100644
--- a/trimesh/viewer/windowed.py
+++ b/trimesh/viewer/windowed.py
@@ -11,7 +11,6 @@ import collections
import numpy as np
import pyglet
-import pyglet.gl as gl
from .trackball import Trackball
@@ -23,6 +22,8 @@ fro... | set shadow window before importing GL | py |
diff --git a/referral/models.py b/referral/models.py
index <HASH>..<HASH> 100644
--- a/referral/models.py
+++ b/referral/models.py
@@ -11,6 +11,8 @@ class Campaign(models.Model):
class Meta:
ordering = ['name']
+ verbose_name = _("Campaign")
+ verbose_name_plural = _("Campaigns")
de... | add verbose names for models | py |
diff --git a/ncbi_genome_download/__main__.py b/ncbi_genome_download/__main__.py
index <HASH>..<HASH> 100644
--- a/ncbi_genome_download/__main__.py
+++ b/ncbi_genome_download/__main__.py
@@ -38,7 +38,7 @@ def main():
else:
log_level = logging.WARNING
- logging.basicConfig(format='%(levelname)s: %(mes... | main: fix a typo in logging config | py |
diff --git a/hack/verify-flags-underscore.py b/hack/verify-flags-underscore.py
index <HASH>..<HASH> 100755
--- a/hack/verify-flags-underscore.py
+++ b/hack/verify-flags-underscore.py
@@ -35,7 +35,7 @@ def is_binary(pathname):
try:
with open(pathname, 'r') as f:
CHUNKSIZE = 1024
- w... | Refactoring: Change Inf Loop Condition (1 -> True) | py |
diff --git a/hwtypes/bit_vector.py b/hwtypes/bit_vector.py
index <HASH>..<HASH> 100644
--- a/hwtypes/bit_vector.py
+++ b/hwtypes/bit_vector.py
@@ -111,7 +111,7 @@ class Bit(AbstractBit):
return f'{type(self).__name__}({self._value})'
def __hash__(self) -> int:
- return hash(f"{type(self)}{self._v... | Hash using tuple of type and value | py |
diff --git a/torchtext/experimental/vectors.py b/torchtext/experimental/vectors.py
index <HASH>..<HASH> 100644
--- a/torchtext/experimental/vectors.py
+++ b/torchtext/experimental/vectors.py
@@ -286,7 +286,7 @@ class Vectors(nn.Module):
TypeError: if `vector` is not of data type `torch.float`.
"""... | Fixing error with printing dtype in experimental.vector (#<I>) | py |
diff --git a/afkak/test/test_failover_integration.py b/afkak/test/test_failover_integration.py
index <HASH>..<HASH> 100644
--- a/afkak/test/test_failover_integration.py
+++ b/afkak/test/test_failover_integration.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Cyan, Inc.
-# Copyright 2018 Ciena Corporation... | Don't leak java processes on failure | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,14 +22,15 @@ setup(
python_requires='>=3.5.4',
install_requires=install_requires,
classifiers=[
- "Development Status :: 1 - Alpha",
+ "Development Status :: 5 - Production/Stable",
"Topic :: Internet",... | Fixed: Invalid classifiers in setup.py | py |
diff --git a/easymoney.py b/easymoney.py
index <HASH>..<HASH> 100644
--- a/easymoney.py
+++ b/easymoney.py
@@ -54,7 +54,7 @@ class Money(Decimal):
@classmethod
def _format_currency(cls, number):
locale = Locale.parse(cls.LOCALE)
- format = cls.FORMAT or locale.currency_formats.get(None)
+ ... | Fix _format_currency method for situations where format is not explicitly set | py |
diff --git a/shinken/pyro_wrapper.py b/shinken/pyro_wrapper.py
index <HASH>..<HASH> 100644
--- a/shinken/pyro_wrapper.py
+++ b/shinken/pyro_wrapper.py
@@ -25,7 +25,11 @@
import select, errno
-import Pyro.core
+try:
+ import Pyro
+except ImportError: #ok, no Pyro3, maybe 4
+ import Pyro4 as Pyro
+
class ... | Manage Pyro<I> and higer. | py |
diff --git a/src/python/pants/backend/scala/bsp/rules.py b/src/python/pants/backend/scala/bsp/rules.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/scala/bsp/rules.py
+++ b/src/python/pants/backend/scala/bsp/rules.py
@@ -104,8 +104,8 @@ async def bsp_resolve_one_scala_build_target(
data_kind="sca... | [internal] BSP: swap scala versions to conform to spec (#<I>) I had the Scala version fields reversed. Swap them so we actually follow the spec. [ci skip-rust] [ci skip-build-wheels] | py |
diff --git a/pyroSAR/tests/test_spatial.py b/pyroSAR/tests/test_spatial.py
index <HASH>..<HASH> 100644
--- a/pyroSAR/tests/test_spatial.py
+++ b/pyroSAR/tests/test_spatial.py
@@ -72,8 +72,10 @@ def test_dissolve(tmpdir):
with Vector(bbox2_name) as bbox2:
assert intersect(bbox1, bbox2) is not None
... | test_dissolve: fixed bug in not writing file needed for non-travis test | py |
diff --git a/src/plotypus/periodogram.py b/src/plotypus/periodogram.py
index <HASH>..<HASH> 100644
--- a/src/plotypus/periodogram.py
+++ b/src/plotypus/periodogram.py
@@ -28,8 +28,7 @@ def LombScargle(time, scaled_mags, precision, min_period, max_period):
def rephase(data, period=1, col=0):
rephased = numpy.m... | Made rephase much faster... and much more obvious | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -10,11 +10,16 @@ requires = [
'python-dateutil>=2.1,<3.0.0']
+here = os.path.dirname(os.path.realpath(__file__))
+with open(os.path.join(here, 'README.rst')) as readme:
+ long_description = readme.read()
+
+
setup... | use restructured text for long_description The PyPI page currently has markdown and doesn't render. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,9 +33,9 @@ setup(
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
- 'Programming Language :: Python :: 2.7.12',
- 'Program... | fix setup python version name (#<I>) | py |
diff --git a/taskqueue/taskqueue.py b/taskqueue/taskqueue.py
index <HASH>..<HASH> 100644
--- a/taskqueue/taskqueue.py
+++ b/taskqueue/taskqueue.py
@@ -75,10 +75,9 @@ class RegisteredTask(with_metaclass(Meta)):
return self._id
def __repr__(self):
-
string = self.__class__.__name__ + "("
... | fix: python3 compatibility with python2 strings | py |
diff --git a/google/gax/retry.py b/google/gax/retry.py
index <HASH>..<HASH> 100644
--- a/google/gax/retry.py
+++ b/google/gax/retry.py
@@ -129,11 +129,9 @@ def retryable(a_func, retry_options, **kwargs):
exc = errors.RetryError(
'Retry total timeout exceeded with exception', except... | Make delay fluctuate betwen 0 and 2x. (#<I>) | py |
diff --git a/src/gogoutils/formats.py b/src/gogoutils/formats.py
index <HASH>..<HASH> 100644
--- a/src/gogoutils/formats.py
+++ b/src/gogoutils/formats.py
@@ -32,7 +32,7 @@ DEFAULT_FORMAT = {
'git_repo': '{raw_project}/{raw_repo}',
'iam_base': '{project}_{repo}',
'iam_group': '{project}',
- 'iam_lambd... | fixed bug with lambda role naming being off | py |
diff --git a/orb/data/piperecordset.py b/orb/data/piperecordset.py
index <HASH>..<HASH> 100644
--- a/orb/data/piperecordset.py
+++ b/orb/data/piperecordset.py
@@ -131,7 +131,11 @@ class PipeRecordSet(RecordSet):
for key, value in options.items():
q &= orb.Query(pipe, key) == value
- retur... | not assuming we always have a piped record | py |
diff --git a/elifetools/parseJATS.py b/elifetools/parseJATS.py
index <HASH>..<HASH> 100644
--- a/elifetools/parseJATS.py
+++ b/elifetools/parseJATS.py
@@ -1855,7 +1855,7 @@ def body_block_content(tag):
set_if_value(tag_content, "id", tag.get("id"))
set_if_value(tag_content, "label", label(tag, tag.nam... | Add supplementary material as sourceData to table blocks in the body. | py |
diff --git a/splinter/request_handler/status_code.py b/splinter/request_handler/status_code.py
index <HASH>..<HASH> 100644
--- a/splinter/request_handler/status_code.py
+++ b/splinter/request_handler/status_code.py
@@ -5,7 +5,8 @@ class HttpResponseError(Exception):
self.reason = reason.title()
class Status... | Added rest of http status errors in StatusCode class | py |
diff --git a/lhc/argparse/open_readable_file.py b/lhc/argparse/open_readable_file.py
index <HASH>..<HASH> 100644
--- a/lhc/argparse/open_readable_file.py
+++ b/lhc/argparse/open_readable_file.py
@@ -7,6 +7,8 @@ class OpenReadableFile(argparse.Action):
def __call__(self, parser, namespace, values, option_string=Non... | extended argparse open readable file to handle lists | py |
diff --git a/src/python/grpcio/grpc/_channel.py b/src/python/grpcio/grpc/_channel.py
index <HASH>..<HASH> 100644
--- a/src/python/grpcio/grpc/_channel.py
+++ b/src/python/grpcio/grpc/_channel.py
@@ -980,8 +980,9 @@ class Channel(grpc.Channel):
# for as long as they are in use and to close them after using them... | Handle missing globals in Python Channel destructors If the last reference to a Python object is at module scope, when its destructor is run before program termination it may find that the globals it requires no longer exist. Destructors of objects likely to be stored at module global scope need to check that globals ... | py |
diff --git a/mama_cas/tests/test_forms.py b/mama_cas/tests/test_forms.py
index <HASH>..<HASH> 100644
--- a/mama_cas/tests/test_forms.py
+++ b/mama_cas/tests/test_forms.py
@@ -24,6 +24,14 @@ class LoginFormTests(TestCase):
form = LoginForm(data={'username': 'ellen', 'password': 'mamas&papas'})
self.ass... | Create a test case for empty username and password | py |
diff --git a/backlash/tracing/errors/middleware.py b/backlash/tracing/errors/middleware.py
index <HASH>..<HASH> 100644
--- a/backlash/tracing/errors/middleware.py
+++ b/backlash/tracing/errors/middleware.py
@@ -3,7 +3,7 @@ from backlash.tbtools import get_current_traceback
from backlash.utils import RequestContext
... | Log also to logging to cope with systems swallowing wsgi.error | py |
diff --git a/indy_node/server/node.py b/indy_node/server/node.py
index <HASH>..<HASH> 100644
--- a/indy_node/server/node.py
+++ b/indy_node/server/node.py
@@ -354,5 +354,3 @@ class Node(PlenumNode, HasPoolManager):
self.idrCache.close()
if self.attributeStore:
self.attributeStore.clos... | [INDY-<I>] Move store closing into plenum | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -447,11 +447,15 @@ class Minion(object):
)
except TypeError as exc:
aspec = _getargs(minion_instance.functions[data['fun']])
- msg = 'Missin... | Only `format()` once. Don't create the debug message, just log it. | py |
diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py
index <HASH>..<HASH> 100644
--- a/openupgradelib/openupgrade.py
+++ b/openupgradelib/openupgrade.py
@@ -797,6 +797,11 @@ def rename_models(cr, model_spec):
"WHERE name LIKE %s",
(new, old + ',%'),
)
+ lo... | [FIX] rename references in ir.filters when renaming models | py |
diff --git a/git_repo/repo.py b/git_repo/repo.py
index <HASH>..<HASH> 100644
--- a/git_repo/repo.py
+++ b/git_repo/repo.py
@@ -8,7 +8,7 @@ Usage:
{self} [--path=<path>] [-v -v...] <target> create <user>/<repo> [--add]
{self} [--path=<path>] [-v -v...] <target> delete <user>/<repo> [-f]
{self} [--path=<pa... | Adding support for request ls (alias of list) | py |
diff --git a/pyisbn/__init__.py b/pyisbn/__init__.py
index <HASH>..<HASH> 100644
--- a/pyisbn/__init__.py
+++ b/pyisbn/__init__.py
@@ -58,6 +58,7 @@ books in their collection.
class Isbn(object):
+
"""Class for representing ISBN objects."""
__slots__ = ('_isbn', 'isbn')
@@ -174,11 +175,13 @@ class Isbn... | [QA] PEP-<I> class docstring compliance fixes. For some reason I always forget this one. | py |
diff --git a/hiyapyco/__init__.py b/hiyapyco/__init__.py
index <HASH>..<HASH> 100644
--- a/hiyapyco/__init__.py
+++ b/hiyapyco/__init__.py
@@ -1,5 +1,6 @@
#! /usr/bin/env python -tt
-
+# vim: set fileencoding=utf-8
+from __future__ import unicode_literals
"""
Hierarchical Yaml Python Config
========================... | utf-8 and unicode_literals | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.