diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/cloudvolume/datasource/precomputed/mesh/unsharded.py b/cloudvolume/datasource/precomputed/mesh/unsharded.py
index <HASH>..<HASH> 100644
--- a/cloudvolume/datasource/precomputed/mesh/unsharded.py
+++ b/cloudvolume/datasource/precomputed/mesh/unsharded.py
@@ -192,8 +192,7 @@ class UnshardedLegacyPrecomputedM... | refactor: use more robust toiter | py |
diff --git a/tests/test_notification.py b/tests/test_notification.py
index <HASH>..<HASH> 100644
--- a/tests/test_notification.py
+++ b/tests/test_notification.py
@@ -1,4 +1,4 @@
-import mock
+from unittest import mock
from jaraco.net import notification
class TestMailbox(object): | Assume mock is available in the stdlib | py |
diff --git a/tests/unit/modules/test_state.py b/tests/unit/modules/test_state.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_state.py
+++ b/tests/unit/modules/test_state.py
@@ -857,14 +857,10 @@ class StateTestCase(TestCase, LoaderModuleMockMixin):
True),
... | Fix unit test: wrong error types in side effect | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -390,6 +390,7 @@ setup (
'bin/hdfcoinc/pycbc_page_snrchi',
'bin/hdfcoinc/pycbc_page_segments',
'bin/hdfcoinc/pycbc_page_segtable',
+ 'bin/hdfcoinc/pycbc_page_segplo... | Added segplot to setup.py. | py |
diff --git a/pyvisa/compat/__init__.py b/pyvisa/compat/__init__.py
index <HASH>..<HASH> 100644
--- a/pyvisa/compat/__init__.py
+++ b/pyvisa/compat/__init__.py
@@ -51,3 +51,13 @@ try:
except ImportError:
from .check_output import check_output
+
+def with_metaclass(meta, *bases):
+ """Create a base class with ... | Added with_metaclass compatibility helper | py |
diff --git a/daemonocle/helpers.py b/daemonocle/helpers.py
index <HASH>..<HASH> 100644
--- a/daemonocle/helpers.py
+++ b/daemonocle/helpers.py
@@ -18,6 +18,6 @@ class ExecWorker(Callable):
if b'/' in self.prog:
self.prog = posixpath.realpath(self.prog)
- def __call__(self):
+ def __call__(... | Add "pragma: no cover" to function that can never return | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ class PyTest(TestCommand):
setup(
name='graphql-relay',
- version='0.4.1',
+ version='0.4.2',
description='Relay implementation for Python',
long_description=open('README.rst').read(),
... | Updated to version <I>. Use promise package | py |
diff --git a/cwltool/job.py b/cwltool/job.py
index <HASH>..<HASH> 100644
--- a/cwltool/job.py
+++ b/cwltool/job.py
@@ -19,6 +19,8 @@ class Job(object):
runtime = []
if self.container and self.container.get("type") == "docker":
+ if "uri" in self.container:
+ subprocess.call... | Fix uri in bwa example. Cwltool now runs "docker pull" before running the job. | py |
diff --git a/nidmresults/objects/inference.py b/nidmresults/objects/inference.py
index <HASH>..<HASH> 100644
--- a/nidmresults/objects/inference.py
+++ b/nidmresults/objects/inference.py
@@ -14,7 +14,6 @@ import shutil
from generic import *
import uuid
from math import erf, sqrt
-from pandas import DataFrame
cl... | No longer export as a panda DataFrame | py |
diff --git a/pwkit/colormaps.py b/pwkit/colormaps.py
index <HASH>..<HASH> 100644
--- a/pwkit/colormaps.py
+++ b/pwkit/colormaps.py
@@ -20,8 +20,10 @@ colors. If the input array has shape S, the returned value has a shape (S +
Example:
data = np.array ([<things between 0 and 1>])
- mapper = factory_map ('cube... | pwkit/colormaps.py: correct example invocation | py |
diff --git a/units.py b/units.py
index <HASH>..<HASH> 100644
--- a/units.py
+++ b/units.py
@@ -80,7 +80,10 @@ def converter(val, current_unit, destination_unit):
x = val
for dic in unit_dicts:
if current_unit in dic.keys() and destination_unit in dic.keys():
- native = eval(dic[current_uni... | Units converter try/except for conversion to native units | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,6 +27,7 @@ SETUP = {
"charmhelpers.contrib.saltstack",
"charmhelpers.contrib.hahelpers",
"charmhelpers.contrib.jujugui",
+ "charmhelpers.contrib.templating",
],
'scripts': [
... | Include templating package in setup.py. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -92,6 +92,7 @@ setup(
],
install_requires=[
"cffi>=1.0.0",
+ "enum34;python_version<'3.4'",
],
cffi_modules=["src/brotlicffi/_build.py:ffi"],
packages=find_packages('src'), | Explicitly depend on enum<I> for Python < <I> Add an explicit dependency on enum<I> for Python < <I> (notably <I> that is still seemingly supported). This is necessary for brotlicffi to seamlessly replace brotlipy in deps still claiming to support py<I>. The package's tests do not fail because enum<I> is brought i... | py |
diff --git a/spacy/ja/__init__.py b/spacy/ja/__init__.py
index <HASH>..<HASH> 100644
--- a/spacy/ja/__init__.py
+++ b/spacy/ja/__init__.py
@@ -51,9 +51,10 @@ def resolve_pos(token):
# PoS mappings.
if token.part_of_speech == '連体詞,*,*,*':
- # determiner-likes get DET, otherwise ADJ
if re.matc... | Fix pronoun handling Missed this case earlier. 連体詞 have three classes for UD purposes: - その -> DET - それ -> PRON - 同じ -> ADJ -POLM | py |
diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/views.py b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/views.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/views.py
+++ b/{{cookiecutter.project_slug}}/{{cookiecu... | Update ugettext_lazy to gettext_lazy in views.py | py |
diff --git a/nodeconductor/structure/admin.py b/nodeconductor/structure/admin.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/admin.py
+++ b/nodeconductor/structure/admin.py
@@ -84,9 +84,13 @@ class ProjectGroupAdmin(ProtectedModelMixin, ChangeReadonlyMixin, admin.ModelAdm
class ServiceSettingsAdmin(admin... | Exlcude state setting on creation only | py |
diff --git a/gwpy/data/series.py b/gwpy/data/series.py
index <HASH>..<HASH> 100644
--- a/gwpy/data/series.py
+++ b/gwpy/data/series.py
@@ -317,6 +317,14 @@ class TimeSeries(NDData):
return new
@classmethod
+ def from_lal(cls, lalts):
+ """Generate a new TimeSeries from a LAL TimeSeries of any ... | gwpy.data.TimeSeries: add from_lal class method - allows easy conversion from LAL XXXXTimeSeries | py |
diff --git a/toytree/__init__.py b/toytree/__init__.py
index <HASH>..<HASH> 100644
--- a/toytree/__init__.py
+++ b/toytree/__init__.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-__version__ = "0.0.2"
+__version__ = "0.0.3"
__author__ = "Deren Eaton" | "Updating toytree/__init__.py to version - <I> | py |
diff --git a/turrentine/admin.py b/turrentine/admin.py
index <HASH>..<HASH> 100644
--- a/turrentine/admin.py
+++ b/turrentine/admin.py
@@ -106,6 +106,7 @@ class PageAdmin(admin_base_class):
my_urls = patterns('',
(r'^add/preview$', self.admin_site.admin_view(PagePreviewView.as_view())),
... | Ensure that iframe previews work on revision pages as well. | py |
diff --git a/ipyrad/assemble/write_outputs.py b/ipyrad/assemble/write_outputs.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/write_outputs.py
+++ b/ipyrad/assemble/write_outputs.py
@@ -3,7 +3,7 @@
# py2/3 compatibility
from __future__ import print_function
try:
- from builtins import range
+ from builtin... | bytes py2/3 matching | py |
diff --git a/psiturk/experiment.py b/psiturk/experiment.py
index <HASH>..<HASH> 100644
--- a/psiturk/experiment.py
+++ b/psiturk/experiment.py
@@ -193,6 +193,7 @@ def check_worker_status():
return jsonify(**resp)
@app.route('/ad', methods=['GET'])
+@app.route('/pub', methods=['GET'])
@nocache
def advertis... | adding a `pub` alias for the `ad` route, to get around ad blockers. will need more work later to interface with the psiturk ad server | py |
diff --git a/angr/analyses/vfg.py b/angr/analyses/vfg.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/vfg.py
+++ b/angr/analyses/vfg.py
@@ -35,6 +35,9 @@ class VFG(Analysis, CFGBase):
# It maps function key to its states
self._function_initial_states = defaultdict(dict)
+ # All final state... | Added support for VFG.final_states. | py |
diff --git a/tests/management/commands/test_admin_generator.py b/tests/management/commands/test_admin_generator.py
index <HASH>..<HASH> 100644
--- a/tests/management/commands/test_admin_generator.py
+++ b/tests/management/commands/test_admin_generator.py
@@ -38,13 +38,14 @@ Available apps:
self.assertIn('from ... | changed TestModel into TestAdminModel name | py |
diff --git a/properties/base.py b/properties/base.py
index <HASH>..<HASH> 100644
--- a/properties/base.py
+++ b/properties/base.py
@@ -184,7 +184,9 @@ class HasProperties(with_metaclass(PropertyMetaclass, object)):
listener.func(self, change)
def _set(self, name, value):
- self._notify(dict(n... | Allow property validation functions to modify the value they validate This occurs after Property validation but before the backend value on the HasProperties class is set. | py |
diff --git a/gffutils/helpers.py b/gffutils/helpers.py
index <HASH>..<HASH> 100644
--- a/gffutils/helpers.py
+++ b/gffutils/helpers.py
@@ -61,10 +61,6 @@ def _choose_dialect(features):
# NOTE: can use helpers.dialect_compare if you need to make this more
# complex....
- # For now, this function favors th... | maintain backwards compatibility with dialect order detection | py |
diff --git a/src/pylexibank/db.py b/src/pylexibank/db.py
index <HASH>..<HASH> 100644
--- a/src/pylexibank/db.py
+++ b/src/pylexibank/db.py
@@ -179,6 +179,7 @@ def schema(ds):
c.separator,
cname == spec.primary_key,
cldf_name=c.header))
+ listvalued =... | fix problem with listvalued fks (#<I>) | py |
diff --git a/stripe/__init__.py b/stripe/__init__.py
index <HASH>..<HASH> 100644
--- a/stripe/__init__.py
+++ b/stripe/__init__.py
@@ -15,9 +15,9 @@ import types
# Use cStringIO if it's available. Otherwise, StringIO is fine.
try:
- import cStringIO as StringIO
+ import cStringIO as StringIO
except ImportErro... | Fix a small formatting inconsistency (four spaces instead of two). | py |
diff --git a/treeherder/model/models.py b/treeherder/model/models.py
index <HASH>..<HASH> 100644
--- a/treeherder/model/models.py
+++ b/treeherder/model/models.py
@@ -558,16 +558,14 @@ class Job(models.Model):
# classified this job.
return
- already_autoclassified = JobNote.objects.fi... | record event whenever a user verifies regardless of autoclassification | py |
diff --git a/tensorflow_datasets/text/lm1b.py b/tensorflow_datasets/text/lm1b.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/text/lm1b.py
+++ b/tensorflow_datasets/text/lm1b.py
@@ -108,7 +108,7 @@ class Lm1b(tfds.core.GeneratorBasedBuilder):
),
Lm1bConfig(
name="subwords8k",
- ... | Increment LM1B version because subwords changed PiperOrigin-RevId: <I> | py |
diff --git a/riak/tests/test_all.py b/riak/tests/test_all.py
index <HASH>..<HASH> 100644
--- a/riak/tests/test_all.py
+++ b/riak/tests/test_all.py
@@ -540,6 +540,7 @@ class BaseTestCase(object):
# Immediate test to see if 2i is even supported w/ the backend
try:
self.client.index('foo','b... | Handling extra exit condition - success. | py |
diff --git a/adnpy/api.py b/adnpy/api.py
index <HASH>..<HASH> 100644
--- a/adnpy/api.py
+++ b/adnpy/api.py
@@ -29,13 +29,14 @@ class API(requests.Session):
"""
@classmethod
- def build_api(cls, api_root='https://alpha-api.app.net/stream/0', access_token=None, verify_ssl=False):
+ def build_api(cls, ap... | add in the ability to set host headers | py |
diff --git a/www/tests/test_sys.py b/www/tests/test_sys.py
index <HASH>..<HASH> 100644
--- a/www/tests/test_sys.py
+++ b/www/tests/test_sys.py
@@ -90,7 +90,7 @@ if traces != expected:
print('same line', i, 'traces', line1, 'expected', line2)
else:
print('diff line', i, 'traces', line1, 'expected', li... | In test_sys.py, raise an exception if trace test does not give the expected result | py |
diff --git a/tryp/__init__.py b/tryp/__init__.py
index <HASH>..<HASH> 100644
--- a/tryp/__init__.py
+++ b/tryp/__init__.py
@@ -12,7 +12,7 @@ from tryp.anon import __
from tryp.env_vars import env
from tryp.task import Try
-development = False
+development = 'TRYP_DEVELOPMENT' in env
integration_test = 'TRYP_INTEGR... | set development flag if TRYP_DEVELOP is set | py |
diff --git a/funcserver/funcserver.py b/funcserver/funcserver.py
index <HASH>..<HASH> 100644
--- a/funcserver/funcserver.py
+++ b/funcserver/funcserver.py
@@ -361,6 +361,7 @@ class RPCHandler(BaseHandler):
fn=fn_name, args=args, kwargs=kwargs,
)
+ r.update(self.server.define_commo... | references #<I>, response contains common tags | py |
diff --git a/Lib/glyphs2ufo/builder.py b/Lib/glyphs2ufo/builder.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphs2ufo/builder.py
+++ b/Lib/glyphs2ufo/builder.py
@@ -695,13 +695,7 @@ def add_features_to_ufo(ufo, feature_prefixes, classes, features):
if disabled:
lines.append('# disabled')
... | [builder] Allow empty feature definitions makeotf didn't allow these, but feaLib does. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,8 @@ setup(
extras_require={
'docs': [
'sphinx~=4.2.0',
- 'sphinx-rtd-theme~=1.0.0'
+ 'sphinx-rtd-theme~=1.0.0',
+ 'sphinx-autodoc-typehints~=1.12.0'
... | Add to package file missing dependency for auto-generating docs. | py |
diff --git a/tests/instrumentation/django_tests/template_tests.py b/tests/instrumentation/django_tests/template_tests.py
index <HASH>..<HASH> 100644
--- a/tests/instrumentation/django_tests/template_tests.py
+++ b/tests/instrumentation/django_tests/template_tests.py
@@ -100,7 +100,7 @@ class TracesTest(TestCase):
... | Transaction traces should have 'transaction' kind. | py |
diff --git a/distutils_ui/build_ui.py b/distutils_ui/build_ui.py
index <HASH>..<HASH> 100644
--- a/distutils_ui/build_ui.py
+++ b/distutils_ui/build_ui.py
@@ -78,7 +78,7 @@ class build_tool(Command):
self.chdir = self.parse_arg('chdir', self.chdir or '')
# subprocess environment: run tools in posix lo... | Fix build_ui on Windows. The environment passed to subprocesses on Windows may only contain str, not bytes. | py |
diff --git a/d1_client_cli/src/d1_client_cli/dataone.py b/d1_client_cli/src/d1_client_cli/dataone.py
index <HASH>..<HASH> 100755
--- a/d1_client_cli/src/d1_client_cli/dataone.py
+++ b/d1_client_cli/src/d1_client_cli/dataone.py
@@ -976,7 +976,10 @@ class CLI(cmd.Cmd):
def do_allow(self, line):
'''allow <subjec... | Update help text (allow, log). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
'cryptography>=1.2.3',
'jsontokens>=0.0.2',
'keylib>=0.0.5',
- 'blockstack-zones>=0.14.0',
+ 'blockstack-zones>=0.14.1',
'warlock>=1.3.0'
],
cla... | require <I> of blockstack zones | py |
diff --git a/aerofiles/seeyou/writer.py b/aerofiles/seeyou/writer.py
index <HASH>..<HASH> 100644
--- a/aerofiles/seeyou/writer.py
+++ b/aerofiles/seeyou/writer.py
@@ -7,7 +7,7 @@ class Writer:
"""
A writer for SeeYou CUP files. Supports waypoints and tasks::
- with open('competition.cup', 'w') as fp:... | Update docs Needs wb for Python 3 | py |
diff --git a/plexapi/settings.py b/plexapi/settings.py
index <HASH>..<HASH> 100644
--- a/plexapi/settings.py
+++ b/plexapi/settings.py
@@ -22,7 +22,7 @@ class Settings(PlexObject):
def __getattr__(self, attr):
if attr.startswith('_'):
return self.__dict__[attr]
- return self.get(attr)
... | plex.settings.__getattr__ should return the value (not the object) | py |
diff --git a/test/acid.py b/test/acid.py
index <HASH>..<HASH> 100755
--- a/test/acid.py
+++ b/test/acid.py
@@ -50,7 +50,13 @@ def _detect_encoding(filename):
# Python 3
with open(filename, 'rb') as input_file:
import tokenize
- return tokenize.detect_encoding(input_file.readlin... | Add fall back in _detect_encoding() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,8 @@ setup(
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
+ 'Framework :: Django :: 1.10',
+ 'Framework :: Django :: 1.11',
'Inte... | Adjusted supported Django versions classifiers. | py |
diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/integration/__init__.py
+++ b/tests/integration/__init__.py
@@ -882,11 +882,16 @@ class ShellCaseCommonTestsMixIn(object):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
... | Show why git describe failed on the tests. | py |
diff --git a/pyuploadcare/api_resources.py b/pyuploadcare/api_resources.py
index <HASH>..<HASH> 100644
--- a/pyuploadcare/api_resources.py
+++ b/pyuploadcare/api_resources.py
@@ -502,7 +502,7 @@ class FileGroup(object):
for index, file_ in enumerate(files):
if isinstance(file_, File):
... | Replace file uuid by file cdn url in FileGroup.create | py |
diff --git a/spyder/plugins/editor/lsp/client.py b/spyder/plugins/editor/lsp/client.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/lsp/client.py
+++ b/spyder/plugins/editor/lsp/client.py
@@ -124,7 +124,8 @@ class LSPClient(QObject, LSPMethodProviderMixIn):
' '.join(self.server_args)))
... | LSP: Append flag instead of replacing | py |
diff --git a/cherrypy/wsgiserver/__init__.py b/cherrypy/wsgiserver/__init__.py
index <HASH>..<HASH> 100644
--- a/cherrypy/wsgiserver/__init__.py
+++ b/cherrypy/wsgiserver/__init__.py
@@ -8,7 +8,6 @@ __all__ = ['HTTPRequest', 'HTTPConnection', 'HTTPServer',
import sys
if sys.version_info < (3, 0):
- from wsgiserv... | Use uniform syntax for wsgiserver imports | py |
diff --git a/tinymce/widgets.py b/tinymce/widgets.py
index <HASH>..<HASH> 100644
--- a/tinymce/widgets.py
+++ b/tinymce/widgets.py
@@ -81,7 +81,7 @@ class TinyMCE(forms.Textarea):
if tinymce.settings.USE_COMPRESSOR:
js = [reverse('tinymce-compressor')]
else:
- js = tinymce.sett... | Fixed widget media property that was not always a list. | py |
diff --git a/usb/__init__.py b/usb/__init__.py
index <HASH>..<HASH> 100644
--- a/usb/__init__.py
+++ b/usb/__init__.py
@@ -48,7 +48,7 @@ version_info = (1, 0, 0, 'b2')
__version__ = '%d.%d.%d%s' % version_info
-__all__ = ['legacy', 'core', 'backend', 'util', 'libloader']
+__all__ = ['legacy', 'control', 'core', 'b... | Add 'control' module to the list exported by usb package. 'control' was not in the __all__ field for the 'usb' package. This means that from usb import * control.XXX would fail to find the module 'control'. | py |
diff --git a/tests/test_carddb.py b/tests/test_carddb.py
index <HASH>..<HASH> 100644
--- a/tests/test_carddb.py
+++ b/tests/test_carddb.py
@@ -36,3 +36,13 @@ def test_play_scripts():
assert card.type == CardType.HERO_POWER
elif card.scripts.play:
assert card.type not in (CardType.HERO, CardType.HERO_POWER, C... | Add a test for using card docstrings as names | py |
diff --git a/dwave/cloud/cli.py b/dwave/cloud/cli.py
index <HASH>..<HASH> 100644
--- a/dwave/cloud/cli.py
+++ b/dwave/cloud/cli.py
@@ -72,7 +72,7 @@ def cli():
@cli.command()
@click.option('--config-file', default=None, help='Config file path',
- type=click.Path(exists=True, dir_okay=False))
+ ... | CLI: configure accepts non-existing file as arg | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(name='gbdxtools',
install_requires=['requests==2.9.1',
'boto==2.39.0',
'gbdx-auth==0.1.2',
- 'Pillow>=3',
+ ... | reverted Pillow requirement to <I> until we decide what to do with it | py |
diff --git a/commands/reverse.py b/commands/reverse.py
index <HASH>..<HASH> 100755
--- a/commands/reverse.py
+++ b/commands/reverse.py
@@ -15,7 +15,17 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+args = ['logs', 'target']
+
def cmd(send, msg, args):
+ log = args['log'][... | allow reversing other people's messages | py |
diff --git a/phoebe/parameters/datasets.py b/phoebe/parameters/datasets.py
index <HASH>..<HASH> 100644
--- a/phoebe/parameters/datasets.py
+++ b/phoebe/parameters/datasets.py
@@ -525,7 +525,7 @@ def parse_rv(filenames,columns=None,components=None,full_output=False,**kwargs):
Extra keyword arguments are passe... | added missing packages to setup.py thanks to input from our first active user Michel Hillen (thanks!) | py |
diff --git a/opengem/hazard/opensha.py b/opengem/hazard/opensha.py
index <HASH>..<HASH> 100644
--- a/opengem/hazard/opensha.py
+++ b/opengem/hazard/opensha.py
@@ -94,15 +94,14 @@ class MonteCarloMixin: # pylint: disable=W0232
task.wait()
if task.status != 'SUCCESS':
... | Removed sanity check on key existence (redundant). | py |
diff --git a/custodian/vasp/validators.py b/custodian/vasp/validators.py
index <HASH>..<HASH> 100644
--- a/custodian/vasp/validators.py
+++ b/custodian/vasp/validators.py
@@ -81,9 +81,4 @@ def check_broken_chgcar(chgcar):
# a decent bunch of the values are negative
return True
- diff = chgcar_dat... | The second check incorrectly flags the centers of some heavy atoms | py |
diff --git a/gwpy/plotter/html.py b/gwpy/plotter/html.py
index <HASH>..<HASH> 100644
--- a/gwpy/plotter/html.py
+++ b/gwpy/plotter/html.py
@@ -219,7 +219,7 @@ def _map(data, axes, filename, href='#', mapname='points', popup=None,
transform = axes.transData
# get 2-d pixels
- pixels = transform.transform(... | plotter.html: two trivial improvements | py |
diff --git a/mordred/config.py b/mordred/config.py
index <HASH>..<HASH> 100644
--- a/mordred/config.py
+++ b/mordred/config.py
@@ -384,7 +384,7 @@ class Config():
def get_global_data_sources(cls):
""" Data sources than are collected and enriched globally """
- return ['bugzilla', 'bugzillarest', ... | [config] Add additional data sources that are loaded globally: confluece, jenkins, jira | py |
diff --git a/renku/cli/_exc.py b/renku/cli/_exc.py
index <HASH>..<HASH> 100644
--- a/renku/cli/_exc.py
+++ b/renku/cli/_exc.py
@@ -40,6 +40,9 @@ class IssueFromTraceback(click.Group):
try:
return super().main(*args, **kwargs)
except Exception:
+ if not (sys.stdin.isatty() and s... | cli: do not prompt with redirected streams | py |
diff --git a/kafka/conn.py b/kafka/conn.py
index <HASH>..<HASH> 100644
--- a/kafka/conn.py
+++ b/kafka/conn.py
@@ -106,14 +106,15 @@ class KafkaConnection(local):
def send(self, request_id, payload):
"Send a request to Kafka"
+
log.debug("About to send %d bytes to Kafka, request %d" % (len(payl... | socket.sendall should always raise an exception on error; remove extra return val check in KafkaConnection.send() | py |
diff --git a/cherrypy/__init__.py b/cherrypy/__init__.py
index <HASH>..<HASH> 100644
--- a/cherrypy/__init__.py
+++ b/cherrypy/__init__.py
@@ -97,11 +97,6 @@ from cherrypy import _cplogging
class _GlobalLogManager(_cplogging.LogManager):
- def __init__(self, appid=None):
- _cplogging.LogManager.__ini... | Rather than default to an error log file, we'll just default to screen. This circumvents any permission problems in the cherrypy install directory. | py |
diff --git a/pyls/workspace.py b/pyls/workspace.py
index <HASH>..<HASH> 100644
--- a/pyls/workspace.py
+++ b/pyls/workspace.py
@@ -103,10 +103,10 @@ class Workspace(object):
def _create_document(self, doc_uri, source=None, version=None):
path = uris.to_fs_path(doc_uri)
return Document(
- ... | Make workspace a required arg when calling Document in Workspace class (#<I>) | py |
diff --git a/chart/models.py b/chart/models.py
index <HASH>..<HASH> 100644
--- a/chart/models.py
+++ b/chart/models.py
@@ -11,6 +11,9 @@ class Chart(ModelBase):
def get_absolute_url(self):
return reverse('chart_object_detail', kwargs={'slug': self.slug})
+
+ def __unicode__(self):
+ ... | modified Chart model to include unicode method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,8 +8,8 @@ setup(
author="Jeffrey Gelens",
author_email="jeffrey@noppo.pro",
license="BSD",
- url="https://bitbucket.org/Jeffrey/gevent-socketio",
- download_url="https://bitbucket.org/Jeffrey/gevent-soc... | point to the abourget repo instead of bitbucket | py |
diff --git a/internetarchive/utils.py b/internetarchive/utils.py
index <HASH>..<HASH> 100644
--- a/internetarchive/utils.py
+++ b/internetarchive/utils.py
@@ -235,21 +235,21 @@ def recursive_file_count(files, item=None, checksum=False):
is_dir = False
if is_dir:
for x, _ in iter_d... | Fixed bug where md5 was being calculated for every upload. | py |
diff --git a/fut/core.py b/fut/core.py
index <HASH>..<HASH> 100644
--- a/fut/core.py
+++ b/fut/core.py
@@ -604,11 +604,12 @@ class Core(object):
:params resource_id: Resource id.
"""
# TODO: add referer to headers (futweb)
- return self.players[baseId(resource_id)]
- '''
- ... | core: fix cardInfo for not players | py |
diff --git a/basil/TL/SiTcp.py b/basil/TL/SiTcp.py
index <HASH>..<HASH> 100644
--- a/basil/TL/SiTcp.py
+++ b/basil/TL/SiTcp.py
@@ -10,7 +10,9 @@ import socket
import select
import struct
from array import array
-from threading import Thread, Lock
+from threading import Thread
+from threading import RLock as Lock
+
... | ENH: use RLock to prevent from filling up buffer in between reads | 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
@@ -139,6 +139,16 @@ def test_parse_curl_with_another_binary_data():
)""")
+def test_parse_curl_with_insecure_flag():
+ uncurl.parse("""curl 'https://pypi.python.org/pypi/uncurl' --inse... | Added unit test for fix #<I> | py |
diff --git a/mysql/toolkit/components/execute.py b/mysql/toolkit/components/execute.py
index <HASH>..<HASH> 100644
--- a/mysql/toolkit/components/execute.py
+++ b/mysql/toolkit/components/execute.py
@@ -40,7 +40,7 @@ class SQLScript:
self.split_func, self.split_char = split_func, split_char
# Dump f... | Refactored execute_commands method to execute and dump_failed_commands to dump_fails | py |
diff --git a/tests/integration/test_screenshots.py b/tests/integration/test_screenshots.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_screenshots.py
+++ b/tests/integration/test_screenshots.py
@@ -1,6 +1,7 @@
import os
import pytest
+import shutil
from selenium import webdriver
from selenium.common.... | test_screenshots after test delete report folder | py |
diff --git a/src/tonicdnscli/tests/test_converter.py b/src/tonicdnscli/tests/test_converter.py
index <HASH>..<HASH> 100644
--- a/src/tonicdnscli/tests/test_converter.py
+++ b/src/tonicdnscli/tests/test_converter.py
@@ -91,12 +91,13 @@ mx.example.org A 10.10.11.10 3600\n""",
self.assertListEqual(self.list4, o2.... | Update test for fix bug of separate processing | py |
diff --git a/openquake/db/models.py b/openquake/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/db/models.py
+++ b/openquake/db/models.py
@@ -877,7 +877,7 @@ class RiskCalculation(djm.Model):
# General parameters:
#####################
- # A description for this config proifile which is meaningf... | db/models: Fixed a typo in a comment. | py |
diff --git a/tests/report_tests/plugin_tests/networking.py b/tests/report_tests/plugin_tests/networking.py
index <HASH>..<HASH> 100644
--- a/tests/report_tests/plugin_tests/networking.py
+++ b/tests/report_tests/plugin_tests/networking.py
@@ -6,6 +6,7 @@
#
# See the LICENSE file in the source distribution for further... | [tests] Update networking test in suite Adds a new test to the networking plugin test to ensure we iterate correctly over network devices. | py |
diff --git a/beprof/curve.py b/beprof/curve.py
index <HASH>..<HASH> 100644
--- a/beprof/curve.py
+++ b/beprof/curve.py
@@ -45,7 +45,7 @@ class Curve(np.ndarray):
def __new__(cls, input_array, **meta):
# print("Here I am in Curve.__new__, cls:", cls)
obj = np.asarray(input_array).view(cls)
- ... | Cosmetical changes for testing purpose Nothing importand has changed in this file | py |
diff --git a/holoviews/core/io.py b/holoviews/core/io.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/io.py
+++ b/holoviews/core/io.py
@@ -565,8 +565,8 @@ class FileArchive(Archive):
def _single_file_archive(self, export_name, files, root):
((_, ext), entry) = files[0]
(data, info) = entry
- ... | Fixed bug in FileArchive._single_file_archive method | py |
diff --git a/tools/run_tests/run_xds_tests.py b/tools/run_tests/run_xds_tests.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_xds_tests.py
+++ b/tools/run_tests/run_xds_tests.py
@@ -21,7 +21,6 @@ import json
import logging
import os
import random
-import shlex
import socket
import subprocess
import sys
@... | In run_xds_tests.py, run clients in bash | py |
diff --git a/ryu/services/protocols/bgp/base.py b/ryu/services/protocols/bgp/base.py
index <HASH>..<HASH> 100644
--- a/ryu/services/protocols/bgp/base.py
+++ b/ryu/services/protocols/bgp/base.py
@@ -257,21 +257,24 @@ class Activity(object):
"""
hub.sleep(seconds)
- def _stop_child_activities(self... | BGPSpeaker/base: Stop child activity by name This patch enables Activity base to stop the child activity by name. | py |
diff --git a/gandi/cli/modules/iaas.py b/gandi/cli/modules/iaas.py
index <HASH>..<HASH> 100644
--- a/gandi/cli/modules/iaas.py
+++ b/gandi/cli/modules/iaas.py
@@ -276,11 +276,9 @@ class Iaas(GandiModule, SshkeyHelper):
@classmethod
def from_hostname(cls, hostname):
"""Retrieve virtual machine id asso... | Fixes vm post creation bug Introduced with pull request c<I>d<I>d9fc<I>a8bf<I>a<I>b<I>f1d7fe9b We must cast api parameter to string otherwise it fails and exit process. | py |
diff --git a/mimesis/providers/internet.py b/mimesis/providers/internet.py
index <HASH>..<HASH> 100644
--- a/mimesis/providers/internet.py
+++ b/mimesis/providers/internet.py
@@ -214,7 +214,6 @@ class Internet(BaseProvider):
:Example:
AMQP
"""
- # TODO: Refactoring.
layer ... | Removed forgotten TODO. (#<I>) | py |
diff --git a/superset/viz.py b/superset/viz.py
index <HASH>..<HASH> 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -1648,6 +1648,7 @@ class DistributionBarViz(BaseViz):
raise QueryObjectValidationError(_("Pick at least one metric"))
if not fd.get("groupby"):
raise QueryObjectVa... | add order by for bar charts (#<I>) | py |
diff --git a/uncompyle6/main.py b/uncompyle6/main.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/main.py
+++ b/uncompyle6/main.py
@@ -43,7 +43,7 @@ def _get_outstream(outfile):
mode = 'wb'
else:
mode = 'w'
- return open(outfile, mode)
+ return open(outfile, mode, encoding="utf-8")
def d... | support utf-8 chars | py |
diff --git a/py17track/__version__.py b/py17track/__version__.py
index <HASH>..<HASH> 100644
--- a/py17track/__version__.py
+++ b/py17track/__version__.py
@@ -1,2 +1,2 @@
"""Define a version constant."""
-__version__ = "2.2.2"
+__version__ = "2.2.3" | Bumped version to <I> | py |
diff --git a/salt/modules/win_pkg.py b/salt/modules/win_pkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_pkg.py
+++ b/salt/modules/win_pkg.py
@@ -160,7 +160,7 @@ def list_upgrades(refresh=True, saltenv='base', **kwargs): # pylint: disable=W0
ret = {}
for name, data in six.iteritems(get_repo_data(sal... | Pass saltenv to call to latest_version in list_upgrades function | py |
diff --git a/brothon/utils/file_tailer.py b/brothon/utils/file_tailer.py
index <HASH>..<HASH> 100644
--- a/brothon/utils/file_tailer.py
+++ b/brothon/utils/file_tailer.py
@@ -24,12 +24,13 @@ class FileTailer(object):
self._full_read = full_read
self._tail = tail
- def readlines(self):
+ def re... | adding an offline arg to readlines | py |
diff --git a/datajoint/declare.py b/datajoint/declare.py
index <HASH>..<HASH> 100644
--- a/datajoint/declare.py
+++ b/datajoint/declare.py
@@ -76,7 +76,7 @@ def compile_foreign_key(line, context, attributes, primary_key, attr_sql, foreig
# match new attributes and referenced attributes and create foreign keys
... | fixed the foreign key declaration bug described in issue #<I> | py |
diff --git a/tools/cluster.py b/tools/cluster.py
index <HASH>..<HASH> 100755
--- a/tools/cluster.py
+++ b/tools/cluster.py
@@ -12,6 +12,7 @@
# simultaneous invocations by the same user may have unpredictable results.
import sys
+from time import sleep
from subprocess import Popen, PIPE
# constants
@@ -21,7 +22... | Add option to wait for machines to become available. This option will allow hudson to start a process on an executor which runs until some other process completes, without having to have general-purpose process monitoring in place. (really written by nshectman) | py |
diff --git a/goose/crawler.py b/goose/crawler.py
index <HASH>..<HASH> 100644
--- a/goose/crawler.py
+++ b/goose/crawler.py
@@ -102,7 +102,7 @@ class Crawler(object):
article.cleaned_text = output_formatter.get_formatted_text(article)
# cleanup tmp file
- self.relase_resources(article)
+ ... | renamed relase_resources to release_sources | py |
diff --git a/poetry/installation/pip_installer.py b/poetry/installation/pip_installer.py
index <HASH>..<HASH> 100644
--- a/poetry/installation/pip_installer.py
+++ b/poetry/installation/pip_installer.py
@@ -105,12 +105,6 @@ class PipInstaller(BaseInstaller):
self.install(target, update=True)
def remove(... | pip: ensure vcs source is removed after package removal Relates-to: #<I> | py |
diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py
index <HASH>..<HASH> 100644
--- a/docs/gl_objects/projects.py
+++ b/docs/gl_objects/projects.py
@@ -229,7 +229,9 @@ f.content = 'new content'
f.save(branch_name='master', commit_message='Update testfile')
# or for binary data
-f.content = base64... | docs: add a note for python <I> for file content update The data passed to the JSON serializer must be a string with python 3. Document this in the exemples. Fix #<I> | py |
diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py
index <HASH>..<HASH> 100644
--- a/zipline/assets/assets.py
+++ b/zipline/assets/assets.py
@@ -831,6 +831,12 @@ class AssetFinder(object):
"""
Lookup a list of equities by symbol.
+ Equivalent to::
+
+ [finder.lookup_s... | DOC: Add note on lookup_symbols. | py |
diff --git a/ndio/ramon/enums.py b/ndio/ramon/enums.py
index <HASH>..<HASH> 100644
--- a/ndio/ramon/enums.py
+++ b/ndio/ramon/enums.py
@@ -24,7 +24,7 @@ eRAMONAnnoStatus = enum("DEFAULT",
PROCESSED=2,
IGNORED=3)
-DEFAULT_ID = -1
+DEFAULT_ID = 0
DEFAULT_CONFIDENCE = 0... | default id for ramons is None (0) | py |
diff --git a/pandas/tests/test_format.py b/pandas/tests/test_format.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/test_format.py
+++ b/pandas/tests/test_format.py
@@ -1,5 +1,5 @@
-from __future__ import print_function
# -*- coding: utf-8 -*-
+from __future__ import print_function
import re
from pandas.compat i... | BUG: moving the utf encoding line to the first line (before from __future ..) | py |
diff --git a/src/concurrent_log_handler/__init__.py b/src/concurrent_log_handler/__init__.py
index <HASH>..<HASH> 100644
--- a/src/concurrent_log_handler/__init__.py
+++ b/src/concurrent_log_handler/__init__.py
@@ -173,6 +173,7 @@ class ConcurrentRotatingFileHandler(BaseRotatingHandler):
self._debug = debug
... | Use buffering when gzipping files; fixes issues with gzip failing or high memory usage. | py |
diff --git a/jss/jamf_software_server.py b/jss/jamf_software_server.py
index <HASH>..<HASH> 100644
--- a/jss/jamf_software_server.py
+++ b/jss/jamf_software_server.py
@@ -62,7 +62,8 @@ class JSS(object):
# pylint: disable=too-many-arguments
def __init__(
self, jss_prefs=None, url=None, user=None, pas... | Handle deprecated args by ignoring them in JSS.__init__ | py |
diff --git a/docs/example/example.py b/docs/example/example.py
index <HASH>..<HASH> 100644
--- a/docs/example/example.py
+++ b/docs/example/example.py
@@ -28,13 +28,13 @@ config = parser.gccxml_configuration_t(
decls = parser.parse(['example.hpp'], config)
global_ns = declarations.get_global_namespace(decls)
-# ... | Fix space character in example.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,8 +40,7 @@ setup(
packages=['vcspull',
'vcspull.testsuite',
'vcspull.repo',
- 'vcspull._vendor',
- 'vcspull._vendor.colorama'],
+ ],
scripts=['pkg/vcspul... | remove vcspull._vendor from package | py |
diff --git a/msrest/serialization.py b/msrest/serialization.py
index <HASH>..<HASH> 100644
--- a/msrest/serialization.py
+++ b/msrest/serialization.py
@@ -453,7 +453,7 @@ class Serializer(object):
raise ValidationError("required", "body", True)
# Just in case this is a dict
- if data_type... | Enum are an Autorest subclass | py |
diff --git a/entity/__init__.py b/entity/__init__.py
index <HASH>..<HASH> 100644
--- a/entity/__init__.py
+++ b/entity/__init__.py
@@ -1,7 +1,4 @@
# flake8: noqa
-from .config import EntityConfig, entity_registry, register_entity
from .version import __version__
-from .signal_handlers import turn_on_syncing, turn_off... | do not import files that import models in init | py |
diff --git a/flask_restful_hal/resource.py b/flask_restful_hal/resource.py
index <HASH>..<HASH> 100644
--- a/flask_restful_hal/resource.py
+++ b/flask_restful_hal/resource.py
@@ -174,7 +174,8 @@ class Resource(rest.Resource): # type: ignore
for key in ('embed', 'include_links'):
del kwargs[key]
... | Handle `data` routines that can return `None` | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.