diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/zhon/pinyin.py b/zhon/pinyin.py
index <HASH>..<HASH> 100644
--- a/zhon/pinyin.py
+++ b/zhon/pinyin.py
@@ -12,7 +12,7 @@ _o = 'o\u014D\u00F3\u01D2\u00F2'
_u = 'u\u016B\u00FA\u01D4\u00F9'
_v = 'v\u00FC\u01D6\u01D8\u01DA\u01DC'
-_lowercase_vowels = _a + _e + _i + _o + _u + _v[1:]
+_lowercase_vowels = _a +... | Adds v and V to Pinyin constants. | py |
diff --git a/pyontutils/utils.py b/pyontutils/utils.py
index <HASH>..<HASH> 100644
--- a/pyontutils/utils.py
+++ b/pyontutils/utils.py
@@ -19,6 +19,8 @@ from pyontutils.closed_namespaces import *
from pyontutils import closed_namespaces as cnses
rdflib.plugin.register('nifttl', rdflib.serializer.Serializer, 'pyontu... | utils.py added new serializers | py |
diff --git a/hellosign_sdk/hsclient.py b/hellosign_sdk/hsclient.py
index <HASH>..<HASH> 100644
--- a/hellosign_sdk/hsclient.py
+++ b/hellosign_sdk/hsclient.py
@@ -686,7 +686,7 @@ class HSClient(object):
signing_options (dict, optional): Allows the requester to specify the types allowed for creating a sig... | Fix for issue #<I> Commit based on PR #<I> that was never merged. Added code to incorporate functionality for attachments with signer requests | py |
diff --git a/pre_commit/languages/docker.py b/pre_commit/languages/docker.py
index <HASH>..<HASH> 100644
--- a/pre_commit/languages/docker.py
+++ b/pre_commit/languages/docker.py
@@ -14,6 +14,8 @@ from pre_commit.util import cmd_output
ENVIRONMENT_DIR = 'docker'
PRE_COMMIT_LABEL = 'PRE_COMMIT'
+FALLBACK_UID = 1000
... | Use fallback uid and gid if os.getuid() and os.getgid() are unavailable | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2643,7 +2643,7 @@ class Symbol(object):
Equal in effect to assigning the value to the symbol within a .config
file. For bool and tristate symbols, use the 'assignable' attribute to
... | Fix outdated comments referencing user_str/tri_value Ended up with just user_value in the end before releasing Kconfiglib 2. | py |
diff --git a/src/landslide/generator.py b/src/landslide/generator.py
index <HASH>..<HASH> 100644
--- a/src/landslide/generator.py
+++ b/src/landslide/generator.py
@@ -71,7 +71,7 @@ class Generator(object):
"""
self.copy_theme = kwargs.get('copy_theme', False)
self.debug = kwargs.get('debug', ... | self.destination_file get the wrong argument (direct) -> get destination_file | py |
diff --git a/boozelib/boozelib.py b/boozelib/boozelib.py
index <HASH>..<HASH> 100644
--- a/boozelib/boozelib.py
+++ b/boozelib/boozelib.py
@@ -128,7 +128,11 @@ __license__ = 'GNU General Public License v3 or above - '\
'http://www.opensource.org/licenses/gpl-3.0.html'
-#__all__ = ( 'get_bac', 'get_de... | changed __all__ to include all functions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,14 +12,17 @@ setup(
url = 'https://github.com/askedrelic/libgreader',
license = open("LICENSE.txt").read(),
- packages = find_packages(),
+ packages = ['libgreader'],... | simplify the package incantation, so we don't include tests/ in the build | py |
diff --git a/datavision.py b/datavision.py
index <HASH>..<HASH> 100644
--- a/datavision.py
+++ b/datavision.py
@@ -73,14 +73,6 @@ class Matrix(list):
# plot
self._array = np.array(self)
self._plotNumber = shijian.uniqueNumber()
- self._plotFigure, \
- self._plotAxes ... | remove automatic plot procedure on matrix instantiation | py |
diff --git a/src/jaraco/media/dvd_info.py b/src/jaraco/media/dvd_info.py
index <HASH>..<HASH> 100644
--- a/src/jaraco/media/dvd_info.py
+++ b/src/jaraco/media/dvd_info.py
@@ -67,8 +67,9 @@ class MetaTitleParser(type):
_all_parsers = set()
def __init__(cls, name, bases, attrs):
- if name == 'TitleParser': ret... | Updated dvd_info metaclass definition to be more less specific | py |
diff --git a/gyp/pylib/gyp/generator/make.py b/gyp/pylib/gyp/generator/make.py
index <HASH>..<HASH> 100644
--- a/gyp/pylib/gyp/generator/make.py
+++ b/gyp/pylib/gyp/generator/make.py
@@ -1883,11 +1883,13 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
"""Returns the location of the final output for a... | gyp: always install into $PRODUCT_DIR | py |
diff --git a/dougrain/document.py b/dougrain/document.py
index <HASH>..<HASH> 100644
--- a/dougrain/document.py
+++ b/dougrain/document.py
@@ -310,7 +310,7 @@ class Document(object):
href_filter = lambda x: x == href
links = self.o['_links']
- links_for_rel = links[rel]
+ links_for... | Stop KeyError when deleting links for non-existent rel. | py |
diff --git a/tests/unit/utils/test_dns.py b/tests/unit/utils/test_dns.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/test_dns.py
+++ b/tests/unit/utils/test_dns.py
@@ -280,7 +280,7 @@ class DNSlookupsCase(TestCase):
@skipIf(not salt.utils.dns.HAS_DIG, 'dig is not available')
def test_dig_options(self... | In case the test machine can't resolve With -v option, dig does not attemp to resolve while verifying all the given options. | py |
diff --git a/pods/util.py b/pods/util.py
index <HASH>..<HASH> 100644
--- a/pods/util.py
+++ b/pods/util.py
@@ -58,10 +58,11 @@ def download_url(url, dir_name='.', save_name=None, store_directory=None, messag
file_size_dl += len(buff)
f.write(buff)
sys.stdout.write(" "*(len(status)... | Work around for wrong meta data causing huge overflows | py |
diff --git a/django_airavata/settings.py b/django_airavata/settings.py
index <HASH>..<HASH> 100644
--- a/django_airavata/settings.py
+++ b/django_airavata/settings.py
@@ -91,8 +91,12 @@ CUSTOM_DJANGO_APPS = []
# )
#
for entry_point in iter_entry_points(group='airavata.djangoapp'):
- CUSTOM_DJANGO_APPS.append(e... | AIRAVATA-<I> Create path to AppConfig class | py |
diff --git a/recordlinkage/comparing.py b/recordlinkage/comparing.py
index <HASH>..<HASH> 100644
--- a/recordlinkage/comparing.py
+++ b/recordlinkage/comparing.py
@@ -135,8 +135,8 @@ class Compare(object):
labels_b = [labels_b] if not isinstance(labels_b, (tuple, list)) else labels_b
labels_a = [labels_a] if no... | Fix stupid bug (broken resampling) | py |
diff --git a/salt/modules/debbuild.py b/salt/modules/debbuild.py
index <HASH>..<HASH> 100644
--- a/salt/modules/debbuild.py
+++ b/salt/modules/debbuild.py
@@ -584,8 +584,8 @@ def make_repo(repodir,
retrc = 0
if gnupghome and env is None:
- env = {}
- env['GNUPGHOME'] = gnupghome
+ ... | Removed extra spaces for pylint | py |
diff --git a/src/livestreamer/plugins/drdk.py b/src/livestreamer/plugins/drdk.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer/plugins/drdk.py
+++ b/src/livestreamer/plugins/drdk.py
@@ -22,8 +22,7 @@ _url_re = re.compile(r"""
live/(?P<channel>[^/]+)
)?
(?:
- se/([^/]+/)?
-... | plugins.drdk: Fix URL regex. Last path part of the URL is the program ID and there can be none or more parts before that. Resolves #<I>. | py |
diff --git a/zipline/finance/slippage.py b/zipline/finance/slippage.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/slippage.py
+++ b/zipline/finance/slippage.py
@@ -29,7 +29,8 @@ from zipline.finance.shared import AllowedAssetMarker, FinancialModelMeta
from zipline.finance.transaction import create_transaction
... | MAINT: use expect_bounded to check basis_points | py |
diff --git a/fireplace/game.py b/fireplace/game.py
index <HASH>..<HASH> 100644
--- a/fireplace/game.py
+++ b/fireplace/game.py
@@ -177,11 +177,21 @@ class BaseGame(Entity):
def queue_actions(self, source, actions):
"""
Queue a list of \a actions for processing from \a source.
+ Triggers an aura refresh afterwa... | Separate the trigger logic from queue_actions into trigger_actions() This lets us call the raw triggering logic without dealing with auras. | py |
diff --git a/src/saml2/client.py b/src/saml2/client.py
index <HASH>..<HASH> 100644
--- a/src/saml2/client.py
+++ b/src/saml2/client.py
@@ -222,7 +222,7 @@ class Saml2Client(object):
def authenticate(self, spentityid=None, location="", service_url="",
my_name="", relay_state="",
... | Allow for application to decide on sign/not sign | py |
diff --git a/performanceplatform/collector/ga/plugins/department.py b/performanceplatform/collector/ga/plugins/department.py
index <HASH>..<HASH> 100644
--- a/performanceplatform/collector/ga/plugins/department.py
+++ b/performanceplatform/collector/ga/plugins/department.py
@@ -258,6 +258,7 @@ DEPARTMENT_MAPPING = {
... | Adding Government Office of Science 'department' key GO-Science was not included in the 'department' mappings so am adding it here. They want a web traffic dashboard. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,8 @@
# -*- coding: utf-8 -*-
import setuptools
-from setuptools import setup, Extension
+from setuptools import setup
+from distutils.extension import Extension
from Cython.Build import cythonize
import numpy | Change from setuptools to distutils Extension for compatibility with Cython | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -83,7 +83,7 @@ setup(
'console_scripts': ['buku=buku:main', 'bukuserver=bukuserver.server:cli']
},
extras_require={
- 'tests': tests_require,
+ 'tests': tests_require + server_require,
... | new: test: test require server package | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -65,7 +65,7 @@ def find_fann():
return True
raise Exception("Couldn't find FANN source libs!")
else:
- dirs = [os.environ.get('PREFIX','')+'/lib','/lib', '/usr/lib', '/usr/local/lib', ... | Update setup.py to restore /usr/lib<I> | py |
diff --git a/dataset/table.py b/dataset/table.py
index <HASH>..<HASH> 100644
--- a/dataset/table.py
+++ b/dataset/table.py
@@ -77,10 +77,6 @@ class Table(object):
self._columns[key] = name
return self._columns
- def _flush_metadata(self):
- with self.db.lock:
- s... | Get rid of the flush statement, but I'm not sure this has no side effects | py |
diff --git a/supersmoother/supersmoother.py b/supersmoother/supersmoother.py
index <HASH>..<HASH> 100644
--- a/supersmoother/supersmoother.py
+++ b/supersmoother/supersmoother.py
@@ -63,5 +63,6 @@ class SuperSmoother(LinearSmoother):
LinearSmoother._fit(self, t, y, dy)
def _cv_values(self, cv=True):
+ ... | BUG: make sure span is valid in supersmoother | py |
diff --git a/examples/python/example-simple.py b/examples/python/example-simple.py
index <HASH>..<HASH> 100644
--- a/examples/python/example-simple.py
+++ b/examples/python/example-simple.py
@@ -3,7 +3,8 @@ from infomap import infomap
myInfomap = infomap.Infomap("--two-level --verbose")
# Add weight as an optional ... | Start fix python with refactor to internal network config | py |
diff --git a/azure-mgmt/tests/test_mgmt_resource.py b/azure-mgmt/tests/test_mgmt_resource.py
index <HASH>..<HASH> 100644
--- a/azure-mgmt/tests/test_mgmt_resource.py
+++ b/azure-mgmt/tests/test_mgmt_resource.py
@@ -87,7 +87,7 @@ class MgmtResourceTest(AzureMgmtTestCase):
self.assertGreater(len(result_list), 0)... | Adapt tests to msrest <I> | py |
diff --git a/tests/place_and_route/place/sa/test_algorithm.py b/tests/place_and_route/place/sa/test_algorithm.py
index <HASH>..<HASH> 100644
--- a/tests/place_and_route/place/sa/test_algorithm.py
+++ b/tests/place_and_route/place/sa/test_algorithm.py
@@ -2,6 +2,8 @@ import pytest
from mock import Mock
+from collec... | Makes the SA algorithm callback test deterministic. Previously this test was not deterministic leaving a small probability that it would result in a false negative in certain unlikely, but possible, situations. | py |
diff --git a/packages/vaex-core/vaex/core/_version.py b/packages/vaex-core/vaex/core/_version.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/core/_version.py
+++ b/packages/vaex-core/vaex/core/_version.py
@@ -1,2 +1,2 @@
-__version_tuple__ = (0, 9, 2)
-__version__ = '0.9.2'
+__version_tuple__ = (1, 0, 0)
... | Release <I> of vaex-core | py |
diff --git a/cbamf/test/nbody.py b/cbamf/test/nbody.py
index <HASH>..<HASH> 100644
--- a/cbamf/test/nbody.py
+++ b/cbamf/test/nbody.py
@@ -108,7 +108,7 @@ class BrownianHardSphereSimulation(object):
self.vel += forces*self.dt
self.pos += self.vel*self.dt
- def step(self, steps=100):
+ def ... | masking in simulation to move select particles | py |
diff --git a/visidata/mainloop.py b/visidata/mainloop.py
index <HASH>..<HASH> 100644
--- a/visidata/mainloop.py
+++ b/visidata/mainloop.py
@@ -89,7 +89,11 @@ def run(self, scr):
except Exception as e:
exceptionCaught(e)
- self.keystrokes += keystroke
+ if ke... | [keys] detect too many prefixes and fail | py |
diff --git a/fedmsg/commands/tail.py b/fedmsg/commands/tail.py
index <HASH>..<HASH> 100644
--- a/fedmsg/commands/tail.py
+++ b/fedmsg/commands/tail.py
@@ -180,7 +180,7 @@ class TailCommand(BaseCommand):
name = proc.__name__.lower()
lines = []
- for user, obj in itertoo... | Fix a typo caught by puiterwijk | py |
diff --git a/neo4j/io/__init__.py b/neo4j/io/__init__.py
index <HASH>..<HASH> 100644
--- a/neo4j/io/__init__.py
+++ b/neo4j/io/__init__.py
@@ -878,35 +878,6 @@ class Neo4jPool(IOPool):
log.debug("[#0000] C: <ROUTING> table=%r", self.routing_table)
-# TODO: remove in 2.0
-def _last_bookmark(b0, b1):
- "... | Removed bookmark function Removed old function not used. | py |
diff --git a/ricecooker/classes/nodes.py b/ricecooker/classes/nodes.py
index <HASH>..<HASH> 100644
--- a/ricecooker/classes/nodes.py
+++ b/ricecooker/classes/nodes.py
@@ -839,9 +839,8 @@ class SlideshowNode(ContentNode):
Args: file (SlideshowNode or ThumbnailFile): file model to add to node
Returns: N... | misc cleanup, assert that files are of SlideshowImage or Thumbnail in node | py |
diff --git a/pachyderm/yaml.py b/pachyderm/yaml.py
index <HASH>..<HASH> 100644
--- a/pachyderm/yaml.py
+++ b/pachyderm/yaml.py
@@ -181,7 +181,9 @@ def numpy_from_yaml(constructor: Constructor, data: ruamel.yaml.nodes.SequenceNo
else:
# Binary encoded numpy. Decode and load it.
b = data.value.enco... | Fix loading numpy array The defaults changed for newer version of numpy, so we explicitly allow pickle when loading to successfully load arrays | py |
diff --git a/frog/views/__init__.py b/frog/views/__init__.py
index <HASH>..<HASH> 100644
--- a/frog/views/__init__.py
+++ b/frog/views/__init__.py
@@ -76,7 +76,7 @@ def login_(request):
user = None
if email:
- user = authenticate(username=email, password=password)
+ user = authenticate(request... | HTTP Request is now forwarded to authentication * So that django-axes can be used to throttle logins * When using this authentication setup: AUTHENTICATION_BACKENDS = [ 'axes.backends.AxesModelBackend', 'django.contrib.auth.backends.ModelBackend', ] | py |
diff --git a/openquake/engine/db/models.py b/openquake/engine/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/db/models.py
+++ b/openquake/engine/db/models.py
@@ -35,9 +35,13 @@ from datetime import datetime
import numpy
from scipy import interpolate
+import django
+try:
+ django.setup() # for D... | Support for Django >= <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -70,8 +70,9 @@ def check_compiler(compiler, extensions, compiler_name):
print("**platform=%s***" %(plat))
print("**platform_version=%s***" %(plat_ver))
- if plat == 'Windows':
+ if plat == 'Windows':
+ # ... | Trying to fix Issue #<I> | py |
diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/test_algos.py
+++ b/pandas/tests/test_algos.py
@@ -266,7 +266,7 @@ class TestFactorize(object):
# arrays that include the NA default for that type, but isn't used.
l, u = algos.factorize... | COMPAT: <I>-bit compat for testing (#<I>) xref #<I> | py |
diff --git a/gidgethub/httpx.py b/gidgethub/httpx.py
index <HASH>..<HASH> 100644
--- a/gidgethub/httpx.py
+++ b/gidgethub/httpx.py
@@ -2,7 +2,7 @@ import asyncio
from typing import Mapping, Tuple, Any
try:
- from httpx import AsyncClient as Client # type: ignore
+ from httpx import AsyncClient as Client
exc... | Fix httpx support (#<I>) Closes #<I> | py |
diff --git a/monolithic.py b/monolithic.py
index <HASH>..<HASH> 100644
--- a/monolithic.py
+++ b/monolithic.py
@@ -47,15 +47,15 @@ class build_monolithic(Command):
out = open(filepath, 'w')
- first = True
+ show_copyright = True
for filename in self.files:
f = open(filen... | This commit marks <I>. Descriptive variable rename. | py |
diff --git a/osmnx/_api.py b/osmnx/_api.py
index <HASH>..<HASH> 100644
--- a/osmnx/_api.py
+++ b/osmnx/_api.py
@@ -32,6 +32,7 @@ from .graph import graph_from_point
from .graph import graph_from_polygon
from .graph import graph_from_xml
from .io import load_graphml
+from .io import load_graphml_stream
from .io impo... | Update _api.py import load_graphml_stream from io | py |
diff --git a/glooey/drawing/color.py b/glooey/drawing/color.py
index <HASH>..<HASH> 100644
--- a/glooey/drawing/color.py
+++ b/glooey/drawing/color.py
@@ -32,9 +32,9 @@ class Color:
def from_str(str):
# If the given string is to the name of a known color, return that
# color. Otherwise, treat t... | fix: correct how named colors are looked up | py |
diff --git a/dosagelib/plugins/a.py b/dosagelib/plugins/a.py
index <HASH>..<HASH> 100644
--- a/dosagelib/plugins/a.py
+++ b/dosagelib/plugins/a.py
@@ -104,6 +104,14 @@ class AltermetaOld(Altermeta):
prevSearch = compile(r'<a href="([^"]+)">Back')
+class AmazingSuperPowers(_BasicScraper):
+ latestUrl = 'http... | Added AmazingSuperPowers comic. | py |
diff --git a/giotto/demo.py b/giotto/demo.py
index <HASH>..<HASH> 100644
--- a/giotto/demo.py
+++ b/giotto/demo.py
@@ -1,4 +1,4 @@
-demo_application = '''from giotto import GiottoProgram
+demo_application = '''from giotto.programs import GiottoProgram
from giotto.views import GiottoTemplateView
class ColoredMultipl... | demo imports giotto.programs | py |
diff --git a/pqhelper/base.py b/pqhelper/base.py
index <HASH>..<HASH> 100644
--- a/pqhelper/base.py
+++ b/pqhelper/base.py
@@ -42,12 +42,13 @@ class Tile(object):
'9': ('r', 'g', 'b', 'y',
'2', '3', '4', '5', '6', '7', '8', '9')}
+ # distribution used to generate a random ti... | Removed skullbombs from random Tile distribution to reduce computation. Minor reduction of simulation accuracy for a potentially large reduction in computation (lots of possibilities introduced by randomly filling the hole caused by a skull bomb). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup(
'twisted>=12.0',
'txcoroutine',
'txzmq',
- ],
+ ],
author="Erik Allik",
author_email="erik.allik@skype.net", | PEP8 in setup.py | py |
diff --git a/wsproto/__init__.py b/wsproto/__init__.py
index <HASH>..<HASH> 100644
--- a/wsproto/__init__.py
+++ b/wsproto/__init__.py
@@ -12,7 +12,7 @@ from .events import Event
from .handshake import H11Handshake
from .typing import Headers
-__version__ = "0.15.0"
+__version__ = "0.15.0+dev"
class WSConnecti... | Following the release of <I> bump to +dev | py |
diff --git a/txaws/client/ssl.py b/txaws/client/ssl.py
index <HASH>..<HASH> 100644
--- a/txaws/client/ssl.py
+++ b/txaws/client/ssl.py
@@ -16,11 +16,11 @@ __all__ = ["VerifyingContextFactory", "get_ca_certs"]
# Multiple defaults are supported; just add more paths, separated by colons.
if sys.platform == "darwin":
-... | Remove ":" from sample variables for the certificate directory lookup. | py |
diff --git a/flink-python/pyflink/table/tests/test_table_environment_api.py b/flink-python/pyflink/table/tests/test_table_environment_api.py
index <HASH>..<HASH> 100644
--- a/flink-python/pyflink/table/tests/test_table_environment_api.py
+++ b/flink-python/pyflink/table/tests/test_table_environment_api.py
@@ -555,7 +55... | [hotfix][python] Fix flake8 check E<I> error for format method has unused arguments (#<I>) | py |
diff --git a/pytorch_pretrained_bert/convert_hf_checkpoint_to_tf.py b/pytorch_pretrained_bert/convert_hf_checkpoint_to_tf.py
index <HASH>..<HASH> 100644
--- a/pytorch_pretrained_bert/convert_hf_checkpoint_to_tf.py
+++ b/pytorch_pretrained_bert/convert_hf_checkpoint_to_tf.py
@@ -108,4 +108,4 @@ if __name__ == "__main__"... | update to hf->tf args | py |
diff --git a/awis/__init__.py b/awis/__init__.py
index <HASH>..<HASH> 100644
--- a/awis/__init__.py
+++ b/awis/__init__.py
@@ -37,7 +37,8 @@ __copyright__ = u'Copyright 2014, Atamert \xd6l\xe7gen'
__credits__ = [u'Atamert \xd6l\xe7gen',
u'Egor Balyshev',
u'Oscar Ibatullin',
- ... | Added tuftedocelot to credits. | py |
diff --git a/flask_slither.py b/flask_slither.py
index <HASH>..<HASH> 100644
--- a/flask_slither.py
+++ b/flask_slither.py
@@ -229,7 +229,12 @@ class BaseAPI(MethodView):
def _get_instance(self, args):
current_app.logger.debug("GETting instance")
+ print args
+ if '_id' in args and isinsta... | getting instance by oid works | py |
diff --git a/haas/tests/mocks.py b/haas/tests/mocks.py
index <HASH>..<HASH> 100644
--- a/haas/tests/mocks.py
+++ b/haas/tests/mocks.py
@@ -1,13 +1,12 @@
-import itertools
-import traceback
-
-
class MockDateTime(object):
def __init__(self, ret):
try:
self.ret = iter(ret)
except Type... | Raise error in mock if there are not enough mock datetime values | py |
diff --git a/tofu/version.py b/tofu/version.py
index <HASH>..<HASH> 100644
--- a/tofu/version.py
+++ b/tofu/version.py
@@ -1,2 +1,2 @@
# Do not edit, pipeline versioning governed by git tags!
-__version__ = '1.4.8'
+__version__ = '1.4.9' | [master] update version nnumber to <I> | py |
diff --git a/holoviews/core/util.py b/holoviews/core/util.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/util.py
+++ b/holoviews/core/util.py
@@ -93,7 +93,7 @@ class sanitize_identifier(param.ParameterizedFunction):
Trait_names due to an inconvenient getattr check (during
tab-completion).""")
- ... | Moved underscore into prefix definition in sanitize_identifier | py |
diff --git a/regions/shapes/rectangle.py b/regions/shapes/rectangle.py
index <HASH>..<HASH> 100644
--- a/regions/shapes/rectangle.py
+++ b/regions/shapes/rectangle.py
@@ -86,7 +86,7 @@ class RectanglePixelRegion(PixelRegion):
def bounding_box(self):
"""
The minimal bounding box (`~regions.Boundin... | Minor wording change [skip ci] | py |
diff --git a/jaraco/mongodb/oplog.py b/jaraco/mongodb/oplog.py
index <HASH>..<HASH> 100644
--- a/jaraco/mongodb/oplog.py
+++ b/jaraco/mongodb/oplog.py
@@ -116,6 +116,17 @@ def _full_rename(args):
)
+def _resolve_shard(client):
+ """
+ TODO:
+ The destination cannot be a mongoS instance, as applyOps is... | Capture the need for resolving a replica set in a sharded environment, or at least catch an invalid connection early. | py |
diff --git a/sdl2hl/gfx.py b/sdl2hl/gfx.py
index <HASH>..<HASH> 100644
--- a/sdl2hl/gfx.py
+++ b/sdl2hl/gfx.py
@@ -40,4 +40,4 @@ class GfxPrimitives(object):
Raises:
SDLError: If an error is encountered.
"""
- check_int_err(lib.arcRGBA(self._ptr, x, y, r, start, end, color[0], colo... | It's better if it compiles. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ setup(
author = "Eldarion",
author_email = "development@eldarion.com",
description = "a reusable Django badges application",
- long_description = open("README").read(),
+ long_description = op... | Point setup.py to README.md | py |
diff --git a/tensor2tensor/utils/trainer_utils.py b/tensor2tensor/utils/trainer_utils.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/utils/trainer_utils.py
+++ b/tensor2tensor/utils/trainer_utils.py
@@ -34,7 +34,6 @@ from tensor2tensor.utils import model_builder
from tensor2tensor.utils import registry
import t... | Reference ProfilerHook directly (to solve issue #<I>). PiperOrigin-RevId: <I> | py |
diff --git a/kucoin/client.py b/kucoin/client.py
index <HASH>..<HASH> 100644
--- a/kucoin/client.py
+++ b/kucoin/client.py
@@ -837,7 +837,7 @@ class Client(object):
:param coin: Name of coin
:type coin: string
- :param status: optional - Status of withdrawal
+ :param status: optional -... | Add details to get_withdrawals | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -25,8 +25,8 @@ class PyTest(TestCommand):
def version():
- import gocd
- return gocd.__version__
+ import gocd_cli
+ return gocd_cli.__version__
setup( | Set the version from gocd_cli instead of gocd | py |
diff --git a/esptool.py b/esptool.py
index <HASH>..<HASH> 100755
--- a/esptool.py
+++ b/esptool.py
@@ -340,7 +340,7 @@ if __name__ == '__main__':
print 'Erasing flash...'
esp.flash_begin(len(image), args.address)
seq = 0
- blocks = math.ceil(len(image)/esp.ESP_FLASH_BLOCK)
+ blo... | Fixed a bug that would make flashing tiny images fail | py |
diff --git a/tensorlayer/nlp.py b/tensorlayer/nlp.py
index <HASH>..<HASH> 100644
--- a/tensorlayer/nlp.py
+++ b/tensorlayer/nlp.py
@@ -360,6 +360,7 @@ def create_vocab(sentences, word_counts_output_file, min_word_count=1):
# Filter uncommon words and sort by descending count.
word_counts = [x for x in counter... | nlp/creat_vocab , PAD as 0 | py |
diff --git a/pyxray/sql/base.py b/pyxray/sql/base.py
index <HASH>..<HASH> 100644
--- a/pyxray/sql/base.py
+++ b/pyxray/sql/base.py
@@ -147,7 +147,7 @@ class SelectMixin:
subbuilder.add_select('xray_transitionset', 'count')
subbuilder.add_from(subtable)
subbuilder.add_j... | Fix bug in xray_transitionset(...) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name = 'mschematool',
version = '0.6.3',
- packages = ['mschematool'],
+ packages = ['mschematool', 'mschematool.executors'],
... | add missing package to setup.py | py |
diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py
index <HASH>..<HASH> 100644
--- a/IPython/html/widgets/widget.py
+++ b/IPython/html/widgets/widget.py
@@ -100,7 +100,7 @@ class BaseWidget(LoggingConfigurable):
@property
def model_id(self):
- return self._comm.comm_id
+... | Fixed typo in model_id property | py |
diff --git a/datajoint/heading.py b/datajoint/heading.py
index <HASH>..<HASH> 100644
--- a/datajoint/heading.py
+++ b/datajoint/heading.py
@@ -213,7 +213,7 @@ class Heading:
attr['dtype'] = numeric_types[(t, is_unsigned)]
self.attributes = OrderedDict([(q['name'], Attribute(**q)) for q in ... | minor: changed default argument value from {} to None. | py |
diff --git a/master/buildbot/test/unit/test_worker_transition.py b/master/buildbot/test/unit/test_worker_transition.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_worker_transition.py
+++ b/master/buildbot/test/unit/test_worker_transition.py
@@ -35,8 +35,7 @@ class CompatNameGeneration(unittest.Tes... | looks like assertRaises doesn't work as context manager in some Twisted versions | py |
diff --git a/shoebot/__init__.py b/shoebot/__init__.py
index <HASH>..<HASH> 100644
--- a/shoebot/__init__.py
+++ b/shoebot/__init__.py
@@ -117,7 +117,8 @@ class Box:
width = width - x
height = height - y
elif self.opt.rectmode == CENTER:
- raise NotImplementedError
+ ... | Sorted out rect() to work with rectmodes | py |
diff --git a/grimoire/elk/enrich.py b/grimoire/elk/enrich.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/enrich.py
+++ b/grimoire/elk/enrich.py
@@ -123,8 +123,12 @@ class Enrich(object):
self.type_name = "items" # type inside the index to store items enriched
# To add the gelk version to enriche... | [enrich] If p2o is not executed from the git repository, gelk version field is "Unknown" | py |
diff --git a/python/dllib/src/bigdl/dllib/utils/utils.py b/python/dllib/src/bigdl/dllib/utils/utils.py
index <HASH>..<HASH> 100644
--- a/python/dllib/src/bigdl/dllib/utils/utils.py
+++ b/python/dllib/src/bigdl/dllib/utils/utils.py
@@ -37,7 +37,7 @@ def to_sample_rdd(x, y, sc, num_slices=None):
def get_node_ip():
... | upgrade ray to <I> (#<I>) * upgrade ray to <I> fix automl ray port * fix tests * fix bug * fix bug * fix tests * fix example * fix example * fix tests * change back * comment out test * upate setup | py |
diff --git a/discord/message.py b/discord/message.py
index <HASH>..<HASH> 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -1361,6 +1361,7 @@ class PartialMessage(Hashable):
'clear_reactions',
'reply',
'to_reference',
+ 'to_message_reference_dict',
)
def __init__... | Export to_message_reference_dict to make PartialMessage.reply work | py |
diff --git a/pyramid_kvs/tests/test_session.py b/pyramid_kvs/tests/test_session.py
index <HASH>..<HASH> 100644
--- a/pyramid_kvs/tests/test_session.py
+++ b/pyramid_kvs/tests/test_session.py
@@ -52,8 +52,6 @@ class SessionTestCase(unittest.TestCase):
self.assertEqual(request.response_callbacks, [session.save_s... | Don't hide test method name with docstring | py |
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1309,6 +1309,8 @@ class DataFrameGroupBy(GroupBy[DataFrame]):
fast_path, slow_path = self._define_paths(func, *args, **kwargs)
... | REF: Skip all empty groups in _transform_general (#<I>) | py |
diff --git a/asv/plugins/conda.py b/asv/plugins/conda.py
index <HASH>..<HASH> 100644
--- a/asv/plugins/conda.py
+++ b/asv/plugins/conda.py
@@ -98,7 +98,9 @@ class Conda(environment.Environment):
'--yes',
'-p',
self._path,
- 'python={0}'.format(self._pyth... | Don't have Conda do any network fetching | py |
diff --git a/Python/setup.py b/Python/setup.py
index <HASH>..<HASH> 100644
--- a/Python/setup.py
+++ b/Python/setup.py
@@ -19,7 +19,7 @@ class PostInstall(install):
install.run(self)
here = path.abspath(path.dirname(__file__))
-version = '0.2.0.0'
+version = '0.2.0.1'
# Read the readme file contents into... | Removed old modules from the dependencies list. | py |
diff --git a/tests/system/test_topen.py b/tests/system/test_topen.py
index <HASH>..<HASH> 100644
--- a/tests/system/test_topen.py
+++ b/tests/system/test_topen.py
@@ -135,6 +135,24 @@ class Test_topen(unittest.TestCase):
assert contents[1].get('id') == '2'
assert contents[1].get('name') == '中国人'
+ ... | [#<I>] added json-headers test | py |
diff --git a/engineer/plugins/core.py b/engineer/plugins/core.py
index <HASH>..<HASH> 100644
--- a/engineer/plugins/core.py
+++ b/engineer/plugins/core.py
@@ -55,9 +55,13 @@ class PluginMount(type):
class PluginMixin(object):
@classmethod
+ def get_name(cls):
+ return '.'.join([cls.__module__, cls.__n... | Expose simple way to get a plugin's name. | py |
diff --git a/dipper-etl.py b/dipper-etl.py
index <HASH>..<HASH> 100755
--- a/dipper-etl.py
+++ b/dipper-etl.py
@@ -61,7 +61,7 @@ def main():
'reactome': 'Reactome',
'udp': 'UDP',
'mgi-slim': 'MGISlim',
- 'zfin-slim': 'ZFINSlim',
+ 'zfinslim': 'ZFINSlim',
'bgee': 'Bgee',... | make ingest name comply, comment out broken trailing field till next time | py |
diff --git a/extra_views/contrib/mixins.py b/extra_views/contrib/mixins.py
index <HASH>..<HASH> 100644
--- a/extra_views/contrib/mixins.py
+++ b/extra_views/contrib/mixins.py
@@ -89,7 +89,7 @@ class SearchableListMixin(object):
filters.extend([Q(**{field_name: dt}) for field_name in self.search... | Querysets don't self update | py |
diff --git a/spacy/language_data/punctuation.py b/spacy/language_data/punctuation.py
index <HASH>..<HASH> 100644
--- a/spacy/language_data/punctuation.py
+++ b/spacy/language_data/punctuation.py
@@ -25,12 +25,12 @@ _QUOTES = r"""
_PUNCT = r"""
… , : ; \! \? ¿ ¡ \( \) \[ \] \{ \} < > _ # \* &
-。 ? ! , 、 ; : ~
+。 ? !... | Update punctuation.py In Chinese, `~` and `——` is hyphens, `·` is intermittent symbol | py |
diff --git a/detectem/ws.py b/detectem/ws.py
index <HASH>..<HASH> 100644
--- a/detectem/ws.py
+++ b/detectem/ws.py
@@ -1,16 +1,16 @@
import sys
import json
-from detectem.exceptions import SplashError, NoPluginsError
-
try:
+ import bottle
from bottle import run, post, request
except ImportError:
- pri... | Add debug mode to webservice Add main function to avoid executing the webserver in tests Reorder imports | py |
diff --git a/pylint/checkers/refactoring/recommendation_checker.py b/pylint/checkers/refactoring/recommendation_checker.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/refactoring/recommendation_checker.py
+++ b/pylint/checkers/refactoring/recommendation_checker.py
@@ -9,10 +9,6 @@ from pylint import checkers, int... | Inline a private function that was used only once | py |
diff --git a/baselines/common/running_mean_std.py b/baselines/common/running_mean_std.py
index <HASH>..<HASH> 100644
--- a/baselines/common/running_mean_std.py
+++ b/baselines/common/running_mean_std.py
@@ -26,9 +26,9 @@ def update_mean_var_count_from_moments(mean, var, count, batch_mean, batch_var,
new_mean = me... | Update running_mean_std.py (#<I>) | py |
diff --git a/pods/google.py b/pods/google.py
index <HASH>..<HASH> 100644
--- a/pods/google.py
+++ b/pods/google.py
@@ -122,8 +122,8 @@ if gdata_available:
def _repr_html_(self):
url = self.url + '/pubhtml?widget=true&headers=false'
- nb.iframe_url(url, width=500, height=300)
- ... | Added functionality to google.py | py |
diff --git a/messaging_client/tests/test_messaging_client.py b/messaging_client/tests/test_messaging_client.py
index <HASH>..<HASH> 100644
--- a/messaging_client/tests/test_messaging_client.py
+++ b/messaging_client/tests/test_messaging_client.py
@@ -14,6 +14,9 @@ class DummySocket(ClientSocket):
def connect(self,... | Added a print_debug_message to dummy client | py |
diff --git a/src/python/pants/backend/python/interpreter_cache.py b/src/python/pants/backend/python/interpreter_cache.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/python/interpreter_cache.py
+++ b/src/python/pants/backend/python/interpreter_cache.py
@@ -156,6 +156,9 @@ class PythonInterpreterCache(obje... | Improve PythonInterpreterCache logging (#<I>) When users have issues building their Python interpreter cache, they are often very confused because does not currently log much about the process to help users debug. Here we add log lines describing what/where Pants looks to build the interpreter cache, and the results o... | py |
diff --git a/coveralls/api.py b/coveralls/api.py
index <HASH>..<HASH> 100644
--- a/coveralls/api.py
+++ b/coveralls/api.py
@@ -128,6 +128,10 @@ class Coveralls(object):
if service_name:
self.config['service_name'] = service_name
+ flag_name = os.environ.get('COVERALLS_FLAG_NAME')
+ ... | feat(flags): add ability to add named job (#<I>) | py |
diff --git a/prawcore/auth.py b/prawcore/auth.py
index <HASH>..<HASH> 100644
--- a/prawcore/auth.py
+++ b/prawcore/auth.py
@@ -101,13 +101,15 @@ class Authorizer(object):
def _request_token(self, **data):
url = (self._authenticator._requestor.reddit_url +
const.ACCESS_TOKEN_PATH)
+ ... | Consider access tokens as expired ten seconds earlier. In practice InvalidAccessToken exceptions were being raised right as the access token expiration was about to occur. To error on the safe side this commit subtracts ten seconds from the total duration in addition to computing the base time prior to the time when t... | py |
diff --git a/pyphi/log.py b/pyphi/log.py
index <HASH>..<HASH> 100644
--- a/pyphi/log.py
+++ b/pyphi/log.py
@@ -16,6 +16,10 @@ class ProgressBar(tqdm.tqdm):
_lock = threading.RLock()
+ def __new__(cls, *args, **kwargs):
+ with cls._lock:
+ return super().__new__(cls, *args, **kwargs)
+
... | Lock `ProgressBar.__new__` Fix race condition when a `tqdm` instance is created in `__new__` and added to the `_instances` class variable, but not yet initialized, and `write` is called by the log thread. | py |
diff --git a/lambdas/es/indexer/index.py b/lambdas/es/indexer/index.py
index <HASH>..<HASH> 100644
--- a/lambdas/es/indexer/index.py
+++ b/lambdas/es/indexer/index.py
@@ -107,8 +107,8 @@ class DocumentQueue:
"comment": derived_meta["comment"],
"content": text,# field for full-text search
... | Touch up #<I> (#<I>) | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -1443,7 +1443,8 @@ def uncomment(name, regex, char='#', backup='.bak'):
ret['comment'] = 'Pattern already uncommented'
ret['result'] = True
return ret
- ... | Strip the ^ in every case for file.uncomment Whoops, missed one in my previous pull request. | py |
diff --git a/raiden/network/upnpsock.py b/raiden/network/upnpsock.py
index <HASH>..<HASH> 100644
--- a/raiden/network/upnpsock.py
+++ b/raiden/network/upnpsock.py
@@ -15,7 +15,7 @@ NON_MAPPABLE = [
def valid_mappable_ipv4(address):
- if unicode(address, errors='ignore') in NON_MAPPABLE:
+ if unicode(address)... | workaround for error on IP address encoding at UPnP setup | py |
diff --git a/orpsoc/simulator/simulator.py b/orpsoc/simulator/simulator.py
index <HASH>..<HASH> 100644
--- a/orpsoc/simulator/simulator.py
+++ b/orpsoc/simulator/simulator.py
@@ -80,7 +80,7 @@ class Simulator(object):
def run(self, args):
logger.debug('run() *Entered*')
- parser = argparse.Argume... | simulator.py: Handle several cores registering the same plusarg | py |
diff --git a/firefox/src/py/utils.py b/firefox/src/py/utils.py
index <HASH>..<HASH> 100644
--- a/firefox/src/py/utils.py
+++ b/firefox/src/py/utils.py
@@ -108,14 +108,14 @@ def _default_windows_location():
def get_firefox_start_cmd():
"""Return the command to start firefox."""
-
+ start_cmd = ""
if... | DavidBurns added Firefox 4 to potential file names r<I> | py |
diff --git a/src/chemcoord/cartesian_coordinates/_cartesian_class_core.py b/src/chemcoord/cartesian_coordinates/_cartesian_class_core.py
index <HASH>..<HASH> 100644
--- a/src/chemcoord/cartesian_coordinates/_cartesian_class_core.py
+++ b/src/chemcoord/cartesian_coordinates/_cartesian_class_core.py
@@ -1041,6 +1041,8 @@... | DOC: Improved inertia docstring | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.