diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/yandextank/core/util.py b/yandextank/core/util.py
index <HASH>..<HASH> 100644
--- a/yandextank/core/util.py
+++ b/yandextank/core/util.py
@@ -4,6 +4,8 @@ Common utilities
import threading as th
import httplib
import logging
+from paramiko import \
+ SSHClient, AutoAddPolicy, AuthenticationException, ... | securedshell class moved to ...core.util, imports | py |
diff --git a/cs/__init__.py b/cs/__init__.py
index <HASH>..<HASH> 100644
--- a/cs/__init__.py
+++ b/cs/__init__.py
@@ -102,7 +102,7 @@ def main():
try:
response = json.loads(response.text)
- except json.decoder.JSONDecodeError:
+ except ValueError:
sys.stderr.write(res... | cli: JSONDecodeError is Python3+ | py |
diff --git a/GradientFeatureAuditor.py b/GradientFeatureAuditor.py
index <HASH>..<HASH> 100644
--- a/GradientFeatureAuditor.py
+++ b/GradientFeatureAuditor.py
@@ -9,7 +9,7 @@ import time
import os
import json
-ENABLE_MULTIPROCESSING = True
+ENABLE_MULTIPROCESSING = False
class GradientFeatureAuditor(object):
... | Changed GFA multiprocessing again. | py |
diff --git a/pyrap_images/trunk/pyrap/images/image.py b/pyrap_images/trunk/pyrap/images/image.py
index <HASH>..<HASH> 100644
--- a/pyrap_images/trunk/pyrap/images/image.py
+++ b/pyrap_images/trunk/pyrap/images/image.py
@@ -111,3 +111,6 @@ class image(Image):
outshape, coordsys.dict()... | added copy constructor use to subimage | py |
diff --git a/photons/__init__.py b/photons/__init__.py
index <HASH>..<HASH> 100644
--- a/photons/__init__.py
+++ b/photons/__init__.py
@@ -1,5 +1 @@
-from .lightprotocol import *
-from .lightclient import *
from .lights import *
-from .matrix import *
-from .lightserver import * | do not auto import client and server-related modules | py |
diff --git a/polysquarelinter/linter.py b/polysquarelinter/linter.py
index <HASH>..<HASH> 100644
--- a/polysquarelinter/linter.py
+++ b/polysquarelinter/linter.py
@@ -647,7 +647,7 @@ def _apply_replacement(error, found_file, file_lines):
# Only fix one error at a time
found_file.seek(0)
- found_file.writ... | linter: Also write as bytes | py |
diff --git a/aiodns/__init__.py b/aiodns/__init__.py
index <HASH>..<HASH> 100644
--- a/aiodns/__init__.py
+++ b/aiodns/__init__.py
@@ -34,7 +34,7 @@ class DNSResolver(object):
kwargs.pop('sock_state_cb', None)
self._channel = pycares.Channel(sock_state_cb=self._sock_state_cb, **kwargs)
if nam... | Use nameservers getter/setter | py |
diff --git a/src/shinken-arbiter.py b/src/shinken-arbiter.py
index <HASH>..<HASH> 100755
--- a/src/shinken-arbiter.py
+++ b/src/shinken-arbiter.py
@@ -451,12 +451,14 @@ class Arbiter(Daemon):
self.dispatcher.dispatch()
#Now create the external commander
- e = ExternalCommand(self.conf, 'disp... | Do not open fifo on windows... | py |
diff --git a/src/you_get/extractors/nanagogo.py b/src/you_get/extractors/nanagogo.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/nanagogo.py
+++ b/src/you_get/extractors/nanagogo.py
@@ -35,6 +35,7 @@ def nanagogo_download(url, output_dir='.', merge=True, info_only=False, **kwargs
... | [<I>] do not fail the whole process | py |
diff --git a/bokeh/__init__.py b/bokeh/__init__.py
index <HASH>..<HASH> 100644
--- a/bokeh/__init__.py
+++ b/bokeh/__init__.py
@@ -124,21 +124,13 @@ from .serverconfig import Server, Cloud
def _print_versions():
"""Returns all the versions of software that Bokeh relies on."""
import platform as pt
- impor... | Made print_version more clean and simple. | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -85,7 +85,7 @@ todo_include_todos = False
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
-html_theme = 'alabaster'
+html_theme = 'classic'
# Theme op... | Switch docs theme from alabaster to classic | py |
diff --git a/shap/utils/transformers.py b/shap/utils/transformers.py
index <HASH>..<HASH> 100644
--- a/shap/utils/transformers.py
+++ b/shap/utils/transformers.py
@@ -30,6 +30,14 @@ MODELS_FOR_CAUSAL_LM = [
"transformers.ProphetNetForCausalLM",
]
+SENTENCEPIECE_TOKENIZERS = [
+ "transformers.MarianTo... | Added tokenizer class constants belonging to sentence piece tokenizers | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -65,7 +65,7 @@ setup(
maintainer_email='devops@openquake.org',
description=("Computes hazard, risk and socio-economic impact of "
"earthquakes."),
- license="GNU AGPL v3",
+ license="AGPL3",
... | setup.py: license should be 'AGPL3' only' | py |
diff --git a/txtwitter/tests/test_fake_twitter.py b/txtwitter/tests/test_fake_twitter.py
index <HASH>..<HASH> 100644
--- a/txtwitter/tests/test_fake_twitter.py
+++ b/txtwitter/tests/test_fake_twitter.py
@@ -93,6 +93,8 @@ class TestFakeStream(TestCase):
stream.add_message_type('ham', lambda data: data.get('eggs... | Assert that a messages matching a different message type's predicate are rejected in FakeStream.accept's test for multiple message types | py |
diff --git a/dallinger/deployment.py b/dallinger/deployment.py
index <HASH>..<HASH> 100644
--- a/dallinger/deployment.py
+++ b/dallinger/deployment.py
@@ -310,11 +310,11 @@ def deploy_sandbox_shared_setup(log, verbose=True, app=None, exp_config=None):
log("Waiting for Redis...")
ready = False
while not r... | Wait for redis URL on heroku before connecting | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ setup(name='thefuck',
url='https://github.com/nvbn/thefuck',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples',
- 'tests', 'release']... | Exclude recursively tests packages | py |
diff --git a/subliminal/services/podnapisi.py b/subliminal/services/podnapisi.py
index <HASH>..<HASH> 100644
--- a/subliminal/services/podnapisi.py
+++ b/subliminal/services/podnapisi.py
@@ -103,7 +103,7 @@ class Podnapisi(ServiceBase):
if results['status'] != 200:
raise DownloadFailedError()
... | Fix download method in Podnapisi | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -431,7 +431,7 @@ class FileClient(object):
'cmd': '_file_hash'}
payload['load'] = self.auth.crypticle.dumps(load)
self.socket.send_pyobj(payload)
- return self.... | bah! I missed a self | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -42,7 +42,7 @@ templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This... | Disable html_static_path until we have static content | py |
diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -19,8 +19,6 @@ from redis.exceptions import (
SYM_EMPTY = b('')
-"THIS IS A FAILURE ON PURPOSE TO TEST PEP8 INTEGRATION WITH TRAVIS-CI BLAH BALH BALH BALH"
-
def list_or_args(keys, args):
... | remove offending pep8 line, travis ci should pass now | py |
diff --git a/py/misc/_dist.py b/py/misc/_dist.py
index <HASH>..<HASH> 100644
--- a/py/misc/_dist.py
+++ b/py/misc/_dist.py
@@ -138,7 +138,7 @@ def setup(pkg, **kw):
print "precompiling greenlet module"
try:
x = py.magic.greenlet()
- except ImportError:
+ except (RuntimeError, ImportError):
... | [svn r<I>] being yet more ignorant about build problems of c-extensions --HG-- branch : trunk | py |
diff --git a/tests/unit/states/openstack_config_test.py b/tests/unit/states/openstack_config_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/openstack_config_test.py
+++ b/tests/unit/states/openstack_config_test.py
@@ -22,7 +22,7 @@ ensure_in_syspath('../../')
from salt.states import openstack_config
op... | Mock test key in __opts__ dict | py |
diff --git a/autobahn_autoreconnect/__init__.py b/autobahn_autoreconnect/__init__.py
index <HASH>..<HASH> 100644
--- a/autobahn_autoreconnect/__init__.py
+++ b/autobahn_autoreconnect/__init__.py
@@ -172,7 +172,7 @@ class ApplicationRunner(object):
txaio.use_asyncio()
txaio.config.loop = self._loop
-... | fix syntax error async is a python keyword. the way to make asyncio submit a coroutine to a loop is run_coroutine_threadsafe() | py |
diff --git a/tests/test_orbits.py b/tests/test_orbits.py
index <HASH>..<HASH> 100644
--- a/tests/test_orbits.py
+++ b/tests/test_orbits.py
@@ -5,11 +5,15 @@ import astropy.units as u
import astropy.coordinates as apycoords
import pytest
from galpy import potential
+import astropy
+_APY3= astropy.__version__ > '3'
... | Only run SkyCoord setup tests for Orbits for Python 3, because Python 2 doesn't support the SkyCoord functionality that we need | py |
diff --git a/AegeanTools/running_percentile.py b/AegeanTools/running_percentile.py
index <HASH>..<HASH> 100644
--- a/AegeanTools/running_percentile.py
+++ b/AegeanTools/running_percentile.py
@@ -2,7 +2,7 @@
import bisect
import math
import numpy as np
-from blist import *
+from blist import blist
class RunningP... | removed import *, replaced with specific imports | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,7 @@ from distutils import log
from setuptools import setup, Command
from distutils.command.build import build
from setuptools.command.sdist import sdist
+from distutils.errors import LinkError
from cy_build im... | Symbol conflicts should result in a build error As all Cython shared objects are loaded into the Python runtime simultaneously, these conflicts are really akin to a link error within one extension. As all pre-existing conflicts have now been resolved, we can make this check imply build failure. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,16 @@
#!/usr/bin/env python
-from setuptools import setup
import os
+import sys
+from setuptools import setup
+try:
+ from setuptools import find_namespace_packages
+except ImportError:
+ # the user has a dow... | add setuptools version check for overall setup.py | py |
diff --git a/manticore/core/cpu/arm.py b/manticore/core/cpu/arm.py
index <HASH>..<HASH> 100644
--- a/manticore/core/cpu/arm.py
+++ b/manticore/core/cpu/arm.py
@@ -626,9 +626,9 @@ class Armv7Cpu(Cpu):
@instruction
def PUSH(cpu, *regs):
- high_to_low_regs = regs[::-1]
+ high_to_low_regs = [r.rea... | Fix arm PUSH (#<I>) If sp is in the list, it gets pushed incorrectly because it gets updated by the stack_pushes for registers that occur before it | py |
diff --git a/nanoget/nanoget.py b/nanoget/nanoget.py
index <HASH>..<HASH> 100644
--- a/nanoget/nanoget.py
+++ b/nanoget/nanoget.py
@@ -74,7 +74,7 @@ def get_input(source, files, threads=4, readtype="1D",
dfs=[out for out in executor.map(extration_function, files)],
names=names or files,
... | gotta first check if readIDs are part of the df :) | py |
diff --git a/dingo/core/__init__.py b/dingo/core/__init__.py
index <HASH>..<HASH> 100644
--- a/dingo/core/__init__.py
+++ b/dingo/core/__init__.py
@@ -196,18 +196,12 @@ class NetworkDingo:
id_db=id,
geo_data=wkt_loads(row['geom']))
- # T... | assign peak load of LVGD to LV station | py |
diff --git a/safe/definitions/reports/infographic.py b/safe/definitions/reports/infographic.py
index <HASH>..<HASH> 100644
--- a/safe/definitions/reports/infographic.py
+++ b/safe/definitions/reports/infographic.py
@@ -76,7 +76,7 @@ map_overview_header = {
population_chart_header = {
'id': 'population-chart-heade... | change infographic text, affected -> exposed | py |
diff --git a/papyrus/renderers.py b/papyrus/renderers.py
index <HASH>..<HASH> 100644
--- a/papyrus/renderers.py
+++ b/papyrus/renderers.py
@@ -43,7 +43,7 @@ class GeoJSON(object):
The GeoJSON renderer supports `JSONP <http://en.wikipedia.org/wiki/JSONP>`_:
- If there is a parameter in the request's HTTP que... | Edited papyrus/renderers.py via GitHub | py |
diff --git a/openpnm/models/misc/statistical_distributions.py b/openpnm/models/misc/statistical_distributions.py
index <HASH>..<HASH> 100644
--- a/openpnm/models/misc/statistical_distributions.py
+++ b/openpnm/models/misc/statistical_distributions.py
@@ -133,9 +133,10 @@ def normal(target, seeds, scale, loc):
be u... | changed example to numy, as sp.rand is depreciated [ci skip] | py |
diff --git a/maildir-deduplicate.py b/maildir-deduplicate.py
index <HASH>..<HASH> 100755
--- a/maildir-deduplicate.py
+++ b/maildir-deduplicate.py
@@ -27,8 +27,6 @@
You can give a list of mail headers to ignore when comparing mails between each others.
I used this script to clean up a messed maildir folder af... | Don't track last update time of scripts: let this task to Git. | py |
diff --git a/timeside/core/processor.py b/timeside/core/processor.py
index <HASH>..<HASH> 100644
--- a/timeside/core/processor.py
+++ b/timeside/core/processor.py
@@ -76,6 +76,9 @@ class MetaProcessor(MetaComponent):
return new_class
+ def __repr__(self):
+ return self.id()
+
class Processor(C... | [core] add __repr__ method to MetaProcessor | py |
diff --git a/gtkmvco/gtkmvc/support/metaclasses.py b/gtkmvco/gtkmvc/support/metaclasses.py
index <HASH>..<HASH> 100644
--- a/gtkmvco/gtkmvc/support/metaclasses.py
+++ b/gtkmvco/gtkmvc/support/metaclasses.py
@@ -98,7 +98,9 @@ class PropertyMeta (type):
# processes now all names in __observables__
fo... | BUG FIX Fixed a bug in metaclass that made impossible to inherit observable properties and keep their default values. [RC] | py |
diff --git a/src/nlpia/web.py b/src/nlpia/web.py
index <HASH>..<HASH> 100644
--- a/src/nlpia/web.py
+++ b/src/nlpia/web.py
@@ -218,7 +218,7 @@ def get_response_confirmation_token(response):
return None
-def save_response_content(response, filename=filename, destination=os.path.curdir, chunksize=32768):
+def sa... | web.py needs cleanup. first google download subfun | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,6 +37,7 @@ setup(
'deform',
'fanstatic',
'js.jquery',
+ 'js.jquery-form',
'js.jquery_maskedinput',
'js.jquery_maskmoney',
'js.jquery_timepicker_addon', | Added missing dependency js.deform imports from js.jquery_form but did not declare its dependency. | py |
diff --git a/helper-scripts/wsgi-loader.py b/helper-scripts/wsgi-loader.py
index <HASH>..<HASH> 100644
--- a/helper-scripts/wsgi-loader.py
+++ b/helper-scripts/wsgi-loader.py
@@ -191,7 +191,7 @@ class RequestHandler:
env['wsgi.version'] = (1, 0)
env['wsgi.multithread'] = False
env['wsgi.multiprocess'] = ... | set run_once to False in the wsgi loader As suggested by @snaury in #<I>. This should improve wsgi app performance as this setting is used to indicate to wsgi apps to skip caching. | py |
diff --git a/spyder/plugins/editor/lsp/transport/common/consumer.py b/spyder/plugins/editor/lsp/transport/common/consumer.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/lsp/transport/common/consumer.py
+++ b/spyder/plugins/editor/lsp/transport/common/consumer.py
@@ -124,6 +124,8 @@ class IncomingMessageThre... | Prevent crashes due to header malformation | py |
diff --git a/tests/test_mirror.py b/tests/test_mirror.py
index <HASH>..<HASH> 100644
--- a/tests/test_mirror.py
+++ b/tests/test_mirror.py
@@ -98,6 +98,8 @@ def test_R_unchanged_ipynb(nb_file):
compare(r, r_ref)
+@pytest.mark.skipif(sys.version_info < (3, 6),
+ reason="unordered dict result ... | Dict order required for testing #<I> | py |
diff --git a/faker/utils/distribution.py b/faker/utils/distribution.py
index <HASH>..<HASH> 100644
--- a/faker/utils/distribution.py
+++ b/faker/utils/distribution.py
@@ -20,7 +20,7 @@ def choice_distribution(a, p):
cdf = list(cumsum(p))
normal = cdf[-1]
- cdf2 = [i / normal for i in cdf]
+ cdf2 = [fl... | Ensure choice_distribution always uses floats Fixes a bug in versions of Python in which `integer / integer` returns another integer instead of a float. Closes joke2k/faker#<I> | py |
diff --git a/odl/solvers/functional/functional.py b/odl/solvers/functional/functional.py
index <HASH>..<HASH> 100644
--- a/odl/solvers/functional/functional.py
+++ b/odl/solvers/functional/functional.py
@@ -1379,13 +1379,13 @@ class BregmanDistance(Functional):
>>> l2_squared = odl.solvers.L2NormSquared(space)... | TST: minor update to BregmanDistance doc-test | py |
diff --git a/plexapi/client.py b/plexapi/client.py
index <HASH>..<HASH> 100644
--- a/plexapi/client.py
+++ b/plexapi/client.py
@@ -173,8 +173,10 @@ class PlexClient(object):
def timeline(self):
return self.sendCommand('timeline/poll', **{'wait':1, 'commandID':4})
- def isPlayingMedia(self):
+ def ... | Option to include paused content when requesting is media is playing. | py |
diff --git a/tableprint/metadata.py b/tableprint/metadata.py
index <HASH>..<HASH> 100644
--- a/tableprint/metadata.py
+++ b/tableprint/metadata.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Version info
-__version__ = '0.8.0'
+__version__ = '0.7.1'
__license__ = 'MIT'
# Project description(s) | Updating version to <I> | py |
diff --git a/btfxwss/classes.py b/btfxwss/classes.py
index <HASH>..<HASH> 100644
--- a/btfxwss/classes.py
+++ b/btfxwss/classes.py
@@ -407,7 +407,10 @@ class BtfxWss:
"initiating restart")
self.cmd_q.put('restart')
- self._check_heartbe... | caught connection reset error in process thread, previously overlooked | py |
diff --git a/treetime/treeanc.py b/treetime/treeanc.py
index <HASH>..<HASH> 100644
--- a/treetime/treeanc.py
+++ b/treetime/treeanc.py
@@ -66,6 +66,13 @@ class TreeAnc(object):
def gtr(self):
return self._gtr
+ @gtr.setter
+ def gtr(self, value):
+ if not isinstance(value, GTR):
+ ... | Added setter for GTR, which takes only GTR type instance | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ setup(
description="Simple command runner",
license="GPLv2",
keywords="run command bash shell",
- url="http://python.falesnik.net/Run",
+ url="https://github.com/mfalesni/Run",
packages... | Modified url to github | py |
diff --git a/ReText/webenginepreview.py b/ReText/webenginepreview.py
index <HASH>..<HASH> 100644
--- a/ReText/webenginepreview.py
+++ b/ReText/webenginepreview.py
@@ -54,6 +54,8 @@ class ReTextWebEnginePage(QWebEnginePage):
print("level=%r message=%r lineNumber=%r sourceId=%r" % (level, message, lineNumber, so... | webenginepreview: Handle data: URLs internally Otherwise preview does not work because it tried to delegate data:text/html;... URL to an external application. | py |
diff --git a/angr/procedures/java_jni/GetArrayElements.py b/angr/procedures/java_jni/GetArrayElements.py
index <HASH>..<HASH> 100644
--- a/angr/procedures/java_jni/GetArrayElements.py
+++ b/angr/procedures/java_jni/GetArrayElements.py
@@ -9,6 +9,8 @@ class GetArrayElements(JNISimProcedure):
array_ref = self.st... | Fix case if isCopy is null | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ import os
from setuptools import setup, find_packages
-version = '1.0.0a5'
+version = '1.0.0'
def read_file(name):
return open(os.path.join(os.path.dirname(__file__), | bumped version to a stable number (<I>) because (as of buildout version <I>) only final releases of buildout itself and extensions are installed. | py |
diff --git a/scanpy/tests/test_docs.py b/scanpy/tests/test_docs.py
index <HASH>..<HASH> 100644
--- a/scanpy/tests/test_docs.py
+++ b/scanpy/tests/test_docs.py
@@ -21,16 +21,19 @@ def test_function_headers(f):
assert f.__doc__ is not None, f"{name} has no docstring"
lines = getattr(f, "__orig_doc__", f.__doc__... | Ignore blank lines in docstring test (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ import io
from setuptools import setup, find_packages
NAME = "AnyQt"
-VERSION = "0.0.2"
+VERSION = "0.0.3.dev0"
AUTHOR = "Aleš Erjavec"
AUTHOR_EMAIL = "ales.erjavec@fri.uni-lj.si"
URL = "https://github.com/... | Bump dev version to <I>.dev0 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -80,7 +80,7 @@ setuptools.setup(
# Location where the package may be downloaded:
download_url='https://pypi.org/project/harvesters/',
# A list of required Python modules:
- install_requires=['genicam2<1', 'nu... | Resolve issue #<I> | py |
diff --git a/PyFunceble/config.py b/PyFunceble/config.py
index <HASH>..<HASH> 100644
--- a/PyFunceble/config.py
+++ b/PyFunceble/config.py
@@ -61,7 +61,6 @@ License:
# pylint: enable=line-too-long
import PyFunceble
from PyFunceble.helpers import Dict, Directory, Download, File
-from PyFunceble.iana import IANA
from... | Deletion of the import of implicitly already imported classes | py |
diff --git a/python_modules/dagster/dagster_tests/utils_tests/test_temp_file.py b/python_modules/dagster/dagster_tests/utils_tests/test_temp_file.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster_tests/utils_tests/test_temp_file.py
+++ b/python_modules/dagster/dagster_tests/utils_tests/test_temp_file.... | fix windows tests (#<I>) | py |
diff --git a/queryset_sequence/__init__.py b/queryset_sequence/__init__.py
index <HASH>..<HASH> 100644
--- a/queryset_sequence/__init__.py
+++ b/queryset_sequence/__init__.py
@@ -41,6 +41,16 @@ def cumsum(seq):
yield s
+# Bridge the Django >= 1.11 Iterable object back to the Query object being an
+# iterat... | Fix iterating in Django >= <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ except ImportError:
config = {
'name': 'hwrt',
- 'version': '0.1.209',
+ 'version': '0.1.211',
'author': 'Martin Thoma',
'author_email': 'info@martin-thoma.de',
'maintainer': 'Martin T... | setup.py: Uploaded latest setup.py to prevent more questions on SO | py |
diff --git a/vmo/utils/nuxmv/model.py b/vmo/utils/nuxmv/model.py
index <HASH>..<HASH> 100644
--- a/vmo/utils/nuxmv/model.py
+++ b/vmo/utils/nuxmv/model.py
@@ -245,7 +245,8 @@ def print_pitches(oracle, nuxmv_state_name='s'):
"""Print chromagram oracle"""
-def print_oracle(oracle, nuxmv_state_name='s', init_state=No... | Reflected addition of include_rsfx option in analysis. | py |
diff --git a/tests/test_pystmark.py b/tests/test_pystmark.py
index <HASH>..<HASH> 100644
--- a/tests/test_pystmark.py
+++ b/tests/test_pystmark.py
@@ -363,7 +363,7 @@ class MessageTest(SenderTestBase):
cc='dog,cat', bcc='foo,bar', subject='dogs',
track_opens=True, headers=[dict(N... | Fixes test that compares fields to include template_alias | py |
diff --git a/visidata/vdobj.py b/visidata/vdobj.py
index <HASH>..<HASH> 100644
--- a/visidata/vdobj.py
+++ b/visidata/vdobj.py
@@ -17,6 +17,9 @@ def asyncthread(func):
'Function decorator, to make calls to `func()` spawn a separate thread if available.'
@wraps(func)
def _execAsync(*args, **kwargs):
+ ... | [async] allow cancel of async methods on Sheet #<I> | py |
diff --git a/craftai/pandas/client.py b/craftai/pandas/client.py
index <HASH>..<HASH> 100644
--- a/craftai/pandas/client.py
+++ b/craftai/pandas/client.py
@@ -45,6 +45,14 @@ class Client(VanillaClient):
index=pd.to_datetime([operation["timestamp"] for operation in operations_list], unit="s")
)
+ def get_... | add get state history for panda client | py |
diff --git a/photon.py b/photon.py
index <HASH>..<HASH> 100644
--- a/photon.py
+++ b/photon.py
@@ -291,7 +291,7 @@ def is_link(url):
conclusion = False # whether the the url should be crawled or not
if url not in processed: # if the url hasn't been crawled already
- if ('.png' or '.jpg' or '.jpeg' or... | Resolves #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,8 @@
from setuptools import setup
+from maltego_trx.maltego import VERSION
setup(name='maltego-trx',
- version='1.3',
+ version=VERSION,
description='Python library used to develop Maltego transfor... | Import version number from main maltego script | py |
diff --git a/foyer/forcefield.py b/foyer/forcefield.py
index <HASH>..<HASH> 100755
--- a/foyer/forcefield.py
+++ b/foyer/forcefield.py
@@ -434,7 +434,9 @@ class Forcefield(app.ForceField):
#kwargs['switchDistance'] = None
#system = self.createSystem(topology, *args, **kwargs)
# Option 2: Expl... | Make a default kwarg in foyer.FF.createSystem() for switchDistance that gets included in the args that get passed to force.createForce(). I like this option more | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100755
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -3149,7 +3149,7 @@ class DAG(BaseDag, LoggingMixin):
d['pickle_len'] = len(pickled)
d['pickling_duration'] = "{}".format(datetime.now() - dttm)
except Exce... | [AIRFLOW-<I>] Set pickle_info log to debug pickle_info tries to pickle. If it catches an exception it is assumed that the DAG is not pickable and continues. Therefore, it should log to debug instead and not provide a full stacktrace. Closes #<I> from bolkedebruin/AIRFLOW-<I> | py |
diff --git a/tests/unit/models/physics/DiffusiveConductanceTest.py b/tests/unit/models/physics/DiffusiveConductanceTest.py
index <HASH>..<HASH> 100644
--- a/tests/unit/models/physics/DiffusiveConductanceTest.py
+++ b/tests/unit/models/physics/DiffusiveConductanceTest.py
@@ -26,9 +26,9 @@ class DiffusiveConductanceTest:... | DiffusiveConductanceTests working | py |
diff --git a/vex/run.py b/vex/run.py
index <HASH>..<HASH> 100644
--- a/vex/run.py
+++ b/vex/run.py
@@ -3,6 +3,7 @@
import os
import platform
import subprocess
+import distutils.spawn
from vex import exceptions
@@ -69,6 +70,10 @@ def run(command, env, cwd):
assert command
if cwd:
assert os.pat... | attempted fix of windows totally disregarding PATH in Popen | py |
diff --git a/Lib/glyphsLib/builder/glyph.py b/Lib/glyphsLib/builder/glyph.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphsLib/builder/glyph.py
+++ b/Lib/glyphsLib/builder/glyph.py
@@ -261,6 +261,8 @@ def to_glyphs_glyph(self, ufo_glyph, ufo_layer, master): # noqa: C901
def to_ufo_glyph_height_and_vertical_origin(s... | Add comment mentioning where implementation came from | py |
diff --git a/shoebot/data/bezier.py b/shoebot/data/bezier.py
index <HASH>..<HASH> 100644
--- a/shoebot/data/bezier.py
+++ b/shoebot/data/bezier.py
@@ -163,7 +163,6 @@ class BezierPath(Grob):
if self._center:
return self._center
-
# get the center point
(x1,y1,x2,y2) = se... | Make bounds a property, as nodebox-gl does | py |
diff --git a/examples/step-by-step/sbs_motion_commander.py b/examples/step-by-step/sbs_motion_commander.py
index <HASH>..<HASH> 100644
--- a/examples/step-by-step/sbs_motion_commander.py
+++ b/examples/step-by-step/sbs_motion_commander.py
@@ -86,7 +86,6 @@ def move_linear_simple(scf):
def take_off_simple(scf):
wi... | update the example to fit the tutorial in the docs | py |
diff --git a/py/selenium/webdriver/blackberry/webdriver.py b/py/selenium/webdriver/blackberry/webdriver.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/blackberry/webdriver.py
+++ b/py/selenium/webdriver/blackberry/webdriver.py
@@ -52,6 +52,11 @@ class WebDriver(RemoteWebDriver):
"""
def __init__(s... | [py] Deprecate Blackberry Driver support | py |
diff --git a/tools/voltdb-install.py b/tools/voltdb-install.py
index <HASH>..<HASH> 100755
--- a/tools/voltdb-install.py
+++ b/tools/voltdb-install.py
@@ -292,7 +292,7 @@ Provides: %(provides)s
Conflicts: %(conflicts)s
Requires: libgcc >= 4.1.2, libstdc++ >= 4.1.2, python >= 2.6
Requires: java >= 1:1.7.0
-Requires: ... | for rpm fix dependency for java-devel jdk | py |
diff --git a/bitex/api/rest.py b/bitex/api/rest.py
index <HASH>..<HASH> 100644
--- a/bitex/api/rest.py
+++ b/bitex/api/rest.py
@@ -14,8 +14,6 @@ try:
import pyjwt as jwt
jwt = True
except ImportError:
- logging.getLogger().error("Could not find PYJWT! Please download from "
- ... | made import jwt check quiet, only raises when attempted to load Quoine api and pyjwt is not installed | py |
diff --git a/uni_form/helpers.py b/uni_form/helpers.py
index <HASH>..<HASH> 100644
--- a/uni_form/helpers.py
+++ b/uni_form/helpers.py
@@ -3,6 +3,9 @@
elements, and UI elements to forms generated via the uni_form template tag.
"""
+import logging
+import sys
+
from django.core.urlresolvers import reverse, NoRe... | Missed importing the logging and sys libraries | py |
diff --git a/discord/client.py b/discord/client.py
index <HASH>..<HASH> 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -389,6 +389,12 @@ class Client:
"""|coro|
Logs out of Discord and closes all connections.
+
+ .. note::
+
+ This is just an alias to :meth:`close`. If y... | Add note about overriding Client.close vs Client.logout | py |
diff --git a/usb/legacy.py b/usb/legacy.py
index <HASH>..<HASH> 100644
--- a/usb/legacy.py
+++ b/usb/legacy.py
@@ -303,7 +303,11 @@ class Device(object):
self.deviceClass = dev.bDeviceClass
self.deviceSubClass = dev.bDeviceSubClass
self.deviceProtocol = dev.bDeviceProtocol
- self.devic... | Return deviceVersion and usbVersion as strings PyUSB <I> sets deviceVerion and usbVersion attributes as strings. So do it for the legacy module. | py |
diff --git a/pysle/isletool.py b/pysle/isletool.py
index <HASH>..<HASH> 100644
--- a/pysle/isletool.py
+++ b/pysle/isletool.py
@@ -302,7 +302,6 @@ def _parsePronunciation(pronunciationStr):
'''
retList = []
for syllableTxt in pronunciationStr.split("#"):
- syllableTxt = syllableTxt.strip()
... | BUGFIX: Wasn't properly detecting syllable boundaries However, the only syllable boundaries that were being detected were wrong--syllable boundaries that also appear at word boundaries. Only four appeared in the ISLEdict | py |
diff --git a/astrodbkit/astrodb.py b/astrodbkit/astrodb.py
index <HASH>..<HASH> 100755
--- a/astrodbkit/astrodb.py
+++ b/astrodbkit/astrodb.py
@@ -1285,7 +1285,7 @@ def convert_spectrum(File):
try:
# Get the data
spectrum, header = pf.getdata(File, cache=True, header=True)... | Fixed __get_spec() method so that wavelength arrays are properly generated from FITS files with one axis. | py |
diff --git a/ryu/controller/ofp_handler.py b/ryu/controller/ofp_handler.py
index <HASH>..<HASH> 100644
--- a/ryu/controller/ofp_handler.py
+++ b/ryu/controller/ofp_handler.py
@@ -206,14 +206,6 @@ class OFPHandler(ryu.base.app_manager.RyuApp):
else:
datapath.ports = {}
- ofproto = datapath... | ofp_handler: Remove sending SET_CONFIG message Because Ryu always sends SET_CONFIG message when a datapath connecting, the switch configurations of user applications will be overwritten by the default values of Ryu when the datapath re-connecting. This patch removes sending SET_CONFIG message from ofp_handler and avo... | py |
diff --git a/leaflet_storage/base_models.py b/leaflet_storage/base_models.py
index <HASH>..<HASH> 100644
--- a/leaflet_storage/base_models.py
+++ b/leaflet_storage/base_models.py
@@ -369,7 +369,7 @@ class BaseFeature(NamedModel):
def to_geojson(self):
# transitional method
- properties = self.opt... | Old options have to go in _storage_options key (cf yohanboniface/Leaflet.Storage#<I>) | py |
diff --git a/isaExplorer/tests/test_exploreISA.py b/isaExplorer/tests/test_exploreISA.py
index <HASH>..<HASH> 100644
--- a/isaExplorer/tests/test_exploreISA.py
+++ b/isaExplorer/tests/test_exploreISA.py
@@ -22,8 +22,7 @@ class TestAppendStudytoISA(TestCase):
def test_AppendStudytoISA(self):
pathToISATABFi... | fixed unittests .. now all pass | py |
diff --git a/pybrightcove/video.py b/pybrightcove/video.py
index <HASH>..<HASH> 100644
--- a/pybrightcove/video.py
+++ b/pybrightcove/video.py
@@ -370,8 +370,11 @@ class Video(object):
self.shortDescription = data.get('shortDescription', None)
self.longDescription = data.get('longDescription',... | fixed bug in how full length video Rendiitons were getting set | py |
diff --git a/src/jottalib/JFS.py b/src/jottalib/JFS.py
index <HASH>..<HASH> 100644
--- a/src/jottalib/JFS.py
+++ b/src/jottalib/JFS.py
@@ -158,7 +158,7 @@ class JFSFolder(object):
def up(self, fileobj_or_path, filename=None):
'Upload a file to current folder and return the new JFSFile'
if not isi... | dont mess about with file system encoding | py |
diff --git a/sdk/eventhub/azure-eventhubs/tests/livetest/synctests/test_eventprocessor.py b/sdk/eventhub/azure-eventhubs/tests/livetest/synctests/test_eventprocessor.py
index <HASH>..<HASH> 100644
--- a/sdk/eventhub/azure-eventhubs/tests/livetest/synctests/test_eventprocessor.py
+++ b/sdk/eventhub/azure-eventhubs/tests... | Join thread after it's done (#<I>) | py |
diff --git a/src/collectors/ntpd/ntpd.py b/src/collectors/ntpd/ntpd.py
index <HASH>..<HASH> 100644
--- a/src/collectors/ntpd/ntpd.py
+++ b/src/collectors/ntpd/ntpd.py
@@ -76,6 +76,7 @@ class NtpdCollector(diamond.collector.Collector):
data['poll'] = {'val': parts[5], 'precision': 0}
data['reac... | Add offset data to ntpd.py Its really easy to gather offset data to send on, by just grabbing in the ntpq query | py |
diff --git a/masonite/drivers/QueueAmqpDriver.py b/masonite/drivers/QueueAmqpDriver.py
index <HASH>..<HASH> 100644
--- a/masonite/drivers/QueueAmqpDriver.py
+++ b/masonite/drivers/QueueAmqpDriver.py
@@ -117,7 +117,10 @@ class QueueAmqpDriver(BaseQueueDriver, QueueContract, HasColoredCommands):
except Attri... | fixed issue where unicode fix was removed | py |
diff --git a/luigi/__init__.py b/luigi/__init__.py
index <HASH>..<HASH> 100644
--- a/luigi/__init__.py
+++ b/luigi/__init__.py
@@ -2,6 +2,7 @@ import task, file, scheduler, parameter, interface, target
Task = task.Task
ExternalTask = task.ExternalTask
+Target = target.Target
File = file.File
LocalTarget = File ... | bugfixes related to the restructuring | py |
diff --git a/statbank/request.py b/statbank/request.py
index <HASH>..<HASH> 100644
--- a/statbank/request.py
+++ b/statbank/request.py
@@ -31,10 +31,14 @@ class Request:
try:
# parse error body as json and use message property as error message
parsed = self._parsejson(erro... | Fix raising of exceptions with no context as of PEP <I> | py |
diff --git a/fabric/connection.py b/fabric/connection.py
index <HASH>..<HASH> 100644
--- a/fabric/connection.py
+++ b/fabric/connection.py
@@ -217,13 +217,13 @@ class Connection(object):
return self.client.open_sftp()
def get(self, *args, **kwargs):
- """
- Get a remote file to the local fil... | Not sure how this got mis-indented | py |
diff --git a/GPy/kern/__init__.py b/GPy/kern/__init__.py
index <HASH>..<HASH> 100644
--- a/GPy/kern/__init__.py
+++ b/GPy/kern/__init__.py
@@ -10,7 +10,7 @@ from _src.independent_outputs import IndependentOutputs, Hierarchical
from _src.coregionalize import Coregionalize
from _src.ssrbf import SSRBF # TODO: ZD: did y... | removed import of non-added file (Mu) | py |
diff --git a/tests/serialize/test_io.py b/tests/serialize/test_io.py
index <HASH>..<HASH> 100644
--- a/tests/serialize/test_io.py
+++ b/tests/serialize/test_io.py
@@ -22,3 +22,19 @@ def test_read_write(EN):
assert r1.string == doc1.string
assert r2.string == doc2.string
+
+
+@pytest.mark.models
+def test_le... | * Add test to check parse is being deserialized properly | py |
diff --git a/src/hunter/util.py b/src/hunter/util.py
index <HASH>..<HASH> 100644
--- a/src/hunter/util.py
+++ b/src/hunter/util.py
@@ -199,9 +199,7 @@ def safe_repr(obj, maxdepth=5):
# (we don't trust subclasses to do the right thing in __repr__)
return repr(obj)
elif isinstance(obj, types.Method... | Dooh ... __self__ is available since python <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ def read(fname):
return io.open(file_path, encoding='utf-8').read()
-version = '0.4.1.dev0'
+version = '0.5.0'
setuptools.setup( | Preparing release <I> | py |
diff --git a/axiom/scheduler.py b/axiom/scheduler.py
index <HASH>..<HASH> 100644
--- a/axiom/scheduler.py
+++ b/axiom/scheduler.py
@@ -122,7 +122,6 @@ class SchedulerMixin:
workUnitsPerformed = 0
errors = 0
while workBeingDone and workUnitsPerformed < MAX_WORK_PER_TICK:
- workUnits... | Correct value for workUnitsPerformed in the scheduler Author: Ed Rahn Reviewer: glyph Fixes #<I> | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100644
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -568,6 +568,7 @@ class TaskInstance(Base):
self.priority_weight = task.priority_weight_total
self.try_number = 1
self.test_mode = False # can be changed when call... | Making force a task instance member, so it becomes available for operators in runtime. | py |
diff --git a/cas_server/admin.py b/cas_server/admin.py
index <HASH>..<HASH> 100644
--- a/cas_server/admin.py
+++ b/cas_server/admin.py
@@ -59,7 +59,7 @@ class ServicePatternAdmin(admin.ModelAdmin):
ReplaceAttributValueInline,
FilterAttributValueInline
)
- list_display = ('pos', 'name', 'patter... | add restrict_users to service pattern list_display | py |
diff --git a/src/requirementslib/models/lockfile.py b/src/requirementslib/models/lockfile.py
index <HASH>..<HASH> 100644
--- a/src/requirementslib/models/lockfile.py
+++ b/src/requirementslib/models/lockfile.py
@@ -29,7 +29,7 @@ class Lockfile(plette.lockfiles.Lockfile):
self.dev_requirements = kwargs.pop("dev... | Update lockfile init to creat plette lockfile | py |
diff --git a/python_modules/dagster/dagster_tests/core_tests/storage_tests/test_addresses_for_version.py b/python_modules/dagster/dagster_tests/core_tests/storage_tests/test_addresses_for_version.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster_tests/core_tests/storage_tests/test_addresses_for_versio... | fix test_addresses_for_version on windows Test Plan: pray Reviewers: alangenfeld, cdecarolis, yuhan Reviewed By: alangenfeld Differential Revision: <URL> | py |
diff --git a/ginga/rv/main.py b/ginga/rv/main.py
index <HASH>..<HASH> 100644
--- a/ginga/rv/main.py
+++ b/ginga/rv/main.py
@@ -501,7 +501,7 @@ class ReferenceViewer(object):
menu_name = "%s [G]" % (plugin_name)
spec = Bunch(name=plugin_name, module=plugin_name,
... | Assign plugins loaded from the command line to the "Custom" category | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.