diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/openquake/engine/bin/openquake_cli.py b/openquake/engine/bin/openquake_cli.py
index <HASH>..<HASH> 100755
--- a/openquake/engine/bin/openquake_cli.py
+++ b/openquake/engine/bin/openquake_cli.py
@@ -284,6 +284,10 @@ def list_calculations(job_manager):
print ('job_id | calc_id | status | ... | Fixed a bug in --list-risk-calculations | py |
diff --git a/tools/vis2.py b/tools/vis2.py
index <HASH>..<HASH> 100755
--- a/tools/vis2.py
+++ b/tools/vis2.py
@@ -42,7 +42,7 @@ def get_stats(hostname, port, days):
"""
conn = FastSerializer(hostname, port)
- proc = VoltProcedure(conn, 'BestOfPeriod_ab',
+ proc = VoltProcedure(conn, 'CenterAverageOfP... | Performance charts: use average of available samples instead of 'best' on combined branch charts | py |
diff --git a/astral/doc/conf.py b/astral/doc/conf.py
index <HASH>..<HASH> 100644
--- a/astral/doc/conf.py
+++ b/astral/doc/conf.py
@@ -150,7 +150,8 @@ html_logo = os.path.join('_static', 'earth_sun.png')
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Wind... | Only set custom favicon when not building on readthedocs | py |
diff --git a/openquake/hazardlib/gsim/chiou_youngs_2014.py b/openquake/hazardlib/gsim/chiou_youngs_2014.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/gsim/chiou_youngs_2014.py
+++ b/openquake/hazardlib/gsim/chiou_youngs_2014.py
@@ -45,7 +45,7 @@ class ChiouYoungs2014(GMPE):
])
#: Supported intens... | Fixed a link in a comment | py |
diff --git a/beets/mediafile.py b/beets/mediafile.py
index <HASH>..<HASH> 100644
--- a/beets/mediafile.py
+++ b/beets/mediafile.py
@@ -148,9 +148,15 @@ def _safe_cast(out_type, val):
# Image coding for ASF/WMA.
def _unpack_asf_image(data):
- """Unpack image data from a WM/Picture tag.
+ """Unpack image data f... | warning about _unpack_asf_image Original: beetbox/beets@ce7a<I>d | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -91,7 +91,7 @@ def make_extensions(extensions_list):
ext_modules = list(
Extension(
m, f,
- extra_compile_args=["-OO"]
+ extra_compile_args=["-O0"]
)
for m, f ... | Fix compilation optimization - set to zero | py |
diff --git a/integration_tests/blockstack_integration_tests/scenarios/blockstack_client/profile.py b/integration_tests/blockstack_integration_tests/scenarios/blockstack_client/profile.py
index <HASH>..<HASH> 100644
--- a/integration_tests/blockstack_integration_tests/scenarios/blockstack_client/profile.py
+++ b/integra... | blockstack_client is no longer in the python path | py |
diff --git a/Lib/fontParts/fontshell/image.py b/Lib/fontParts/fontshell/image.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/fontshell/image.py
+++ b/Lib/fontParts/fontshell/image.py
@@ -62,6 +62,6 @@ class RImage(RBaseObject, BaseImage):
images = image.font.images
fileName = images.findDu... | add .png extension while making an image file name (#<I>) | py |
diff --git a/param/version.py b/param/version.py
index <HASH>..<HASH> 100644
--- a/param/version.py
+++ b/param/version.py
@@ -104,10 +104,15 @@ class Version(object):
def git_fetch(self, cmd='git'):
cmd = [cmd, 'describe', '--long', '--match', 'v*.*', '--dirty']
- proc = subprocess.Popen(cmd, st... | Improved git_fetch to generate exception when no version tags found | py |
diff --git a/openquake/commonlib/calc.py b/openquake/commonlib/calc.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/calc.py
+++ b/openquake/commonlib/calc.py
@@ -295,7 +295,7 @@ def get_gmfs(dstore, precalc=None):
for s, sid in enumerate(haz_sitecol.sids):
for imti, imt in enumerate(oq.im... | Added one space [skip CI] | py |
diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py
index <HASH>..<HASH> 100644
--- a/ldapcherry/__init__.py
+++ b/ldapcherry/__init__.py
@@ -542,9 +542,10 @@ class LdapCherry(object):
if self.attributes.attributes[attr]['type'] == 'password':
pwd1 = attr + '1'
pw... | fix error if password is not in modified attributes | py |
diff --git a/tldr.py b/tldr.py
index <HASH>..<HASH> 100755
--- a/tldr.py
+++ b/tldr.py
@@ -16,7 +16,7 @@ from six.moves import map
# Required for Windows
import colorama
-DEFAULT_REMOTE = "http://raw.github.com/tldr-pages/tldr/master/pages"
+DEFAULT_REMOTE = "https://raw.github.com/tldr-pages/tldr/master/pages"
US... | Make default remote use HTTPS again (#<I>) #<I> made the remote use HTTPS, but then #<I> changed it back to HTTP when adding the flag. | py |
diff --git a/gprof2dot.py b/gprof2dot.py
index <HASH>..<HASH> 100755
--- a/gprof2dot.py
+++ b/gprof2dot.py
@@ -1927,7 +1927,7 @@ class PerfParser(LineParser):
self.consume()
return callchain
- call_re = re.compile(r'^\s+(?P<address>[0-9a-fA-F]+)\s+(?P<symbol>.*)\s+\((?P<module>[^)]*)\)$')
+ ... | Cope with parenthesis in module names from perf. Such as ... (/tmp/.xxxxxxx (deleted)) | py |
diff --git a/nbrsessionproxy/handlers.py b/nbrsessionproxy/handlers.py
index <HASH>..<HASH> 100644
--- a/nbrsessionproxy/handlers.py
+++ b/nbrsessionproxy/handlers.py
@@ -1,5 +1,6 @@
import os
import getpass
+import socket
import subprocess as sp
from tornado import web, gen, httpclient
@@ -54,7 +55,18 @@ class R... | Make port binding dynamic again This allows easier use by multiple users on the same machine | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import find_packages
import time
-_version = "0.1.dev%s" % int(time.time())
+_version = "0.2.dev%s" % int(time.time())
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "t... | Bumping dev version to <I> | py |
diff --git a/gns3server/schemas/dynamips_vm.py b/gns3server/schemas/dynamips_vm.py
index <HASH>..<HASH> 100644
--- a/gns3server/schemas/dynamips_vm.py
+++ b/gns3server/schemas/dynamips_vm.py
@@ -74,7 +74,6 @@ VM_CREATE_SCHEMA = {
"private_config": {
"description": "Path to the IOS private configur... | Fix issue with reloading a topologie with dynamips | py |
diff --git a/tests/unit/templates/jinja_test.py b/tests/unit/templates/jinja_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/templates/jinja_test.py
+++ b/tests/unit/templates/jinja_test.py
@@ -510,6 +510,16 @@ class TestCustomExtensions(TestCase):
with self.assertRaises(exceptions.TemplateNotFound):
... | Added unit test for the import_text tag | py |
diff --git a/whichcraft.py b/whichcraft.py
index <HASH>..<HASH> 100644
--- a/whichcraft.py
+++ b/whichcraft.py
@@ -2,20 +2,14 @@
__author__ = 'Daniel Roy Greenfeld'
__email__ = 'pydanny@gmail.com'
-__version__ = '0.3.1'
-
+__version__ = '0.4.0'
import os
-import sys
-
-PY3 = sys.version_info[0] == 3
-
-
-if PY3:... | Test for shutil.which directly Rather than checking for Python 3, this change checks the shutil module directly for a which attribute, and falls back to the backported implementation if it doesn't find one. | py |
diff --git a/cherrypy/lib/filter/nsgmlsfilter.py b/cherrypy/lib/filter/nsgmlsfilter.py
index <HASH>..<HASH> 100644
--- a/cherrypy/lib/filter/nsgmlsfilter.py
+++ b/cherrypy/lib/filter/nsgmlsfilter.py
@@ -73,9 +73,13 @@ class NsgmlsFilter(BaseFilter):
errList = err.splitlines()
newErrList = []
... | Another small change to nsgmlsfilter | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -44,6 +44,12 @@ if sys.version_info[0] == 3:
swig_opts.append('-py3')
swig_opts.append('-c++')
+
+# Create necessary cached files
+from preinstall import create_caches
+create_caches()
+
+
setup(
name="estnltk",
... | Updated setup.py: added create_caches | py |
diff --git a/hotdoc/core/doc_tool.py b/hotdoc/core/doc_tool.py
index <HASH>..<HASH> 100644
--- a/hotdoc/core/doc_tool.py
+++ b/hotdoc/core/doc_tool.py
@@ -285,6 +285,10 @@ class DocTool(object):
def get_symbol(self, name, prefer_class=False):
sym = self.__symbols.get(name)
+
+ if not self.increme... | Performance: further reduce amount of useless db queries. At first run, either a symbol will be present in doc_tool.symbols, or it will not be in the DB at all. | py |
diff --git a/src/apb/engine.py b/src/apb/engine.py
index <HASH>..<HASH> 100644
--- a/src/apb/engine.py
+++ b/src/apb/engine.py
@@ -508,7 +508,6 @@ def broker_request(broker, service_route, method, **kwargs):
try:
openshift_config.load_kube_config()
- token = openshift_client.configuration.api_key... | fixing issue <I> (#<I>) | py |
diff --git a/matrix_client/client.py b/matrix_client/client.py
index <HASH>..<HASH> 100644
--- a/matrix_client/client.py
+++ b/matrix_client/client.py
@@ -26,22 +26,13 @@ logger = logging.getLogger(__name__)
# Cache constants used when instantiating Matrix Client to specify level of caching
-class Enum(object):
- ... | Simplify yet enhance the Enum replacement So we can have full instances of our enum class instead of bare ints. | py |
diff --git a/fireplace/card.py b/fireplace/card.py
index <HASH>..<HASH> 100644
--- a/fireplace/card.py
+++ b/fireplace/card.py
@@ -234,7 +234,7 @@ class PlayableCard(BaseCard, Entity, TargetableByAuras):
# Proc the draw script, but only if we are past mulligan
actions = self.get_actions("draw")
if action... | Change draw script to a game trigger | py |
diff --git a/bcloud/HomePage.py b/bcloud/HomePage.py
index <HASH>..<HASH> 100644
--- a/bcloud/HomePage.py
+++ b/bcloud/HomePage.py
@@ -83,8 +83,8 @@ class PathBox(Gtk.Box):
button.set_tooltip_text(name)
if abspath == '/':
- home_img = Gtk.Image.new_from_icon_name('user-home-symbolic', Fal... | Change icon size to SMALL_TOOLBAR | py |
diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py
index <HASH>..<HASH> 100644
--- a/kubespawner/spawner.py
+++ b/kubespawner/spawner.py
@@ -861,16 +861,3 @@ class KubeSpawner(Spawner):
args[i] = '--hub-api-url="%s"' % (self.accessible_hub_api_url)
break
return args
... | removing get_env function within kubespawner falls back on the get_env in the base spawner. Intended to aid compatability of kubespawner with pre <I>x versions of jupyterhub | py |
diff --git a/python_modules/dagster/dagster_tests/execution_tests/test_interrupt.py b/python_modules/dagster/dagster_tests/execution_tests/test_interrupt.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster_tests/execution_tests/test_interrupt.py
+++ b/python_modules/dagster/dagster_tests/execution_tests... | deflake test_retry_policy (#<I>) This would fail sporaically when the file existed but the write had not yet been flushed to disk. ## Test Plan pytest python_modules/dagster/dagster_tests/execution_tests/test_interrupt.py::test_retry_policy --count <I> | py |
diff --git a/engine/plugin/prefix.py b/engine/plugin/prefix.py
index <HASH>..<HASH> 100644
--- a/engine/plugin/prefix.py
+++ b/engine/plugin/prefix.py
@@ -8,9 +8,24 @@
import tornado.web
+from engine.engine import Engine as dpEngine
+
+
+class PrefixURL(tornado.web.UIModule, dpEngine):
+ def render(self, static... | Support query building for prefix url. | py |
diff --git a/src/qinfer/distributions.py b/src/qinfer/distributions.py
index <HASH>..<HASH> 100644
--- a/src/qinfer/distributions.py
+++ b/src/qinfer/distributions.py
@@ -263,11 +263,19 @@ class SlantedNormalDistribution(Distribution):
return self._ranges[:, 0] +self._weight*z+np.random.rand(n)*self._ranges[:,... | Added docstring to LogNormalDistribution, and included default parameters of mu=0, sigma=1. | py |
diff --git a/src/livestreamer/stream/hds.py b/src/livestreamer/stream/hds.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer/stream/hds.py
+++ b/src/livestreamer/stream/hds.py
@@ -527,7 +527,12 @@ class HDSStream(Stream):
http://stream-recorder.com/forum/showpost.php?p=43761&postcount=13
"""
- ... | stream.hds: Handle pvtoken without extra params. | py |
diff --git a/mongonaut/mixins.py b/mongonaut/mixins.py
index <HASH>..<HASH> 100644
--- a/mongonaut/mixins.py
+++ b/mongonaut/mixins.py
@@ -54,8 +54,10 @@ class MongonautViewMixin(object):
def set_mongoadmin(self):
""" Returns the MongoAdmin object for an app_label/document_name style view
- ... | Optimization tweak on set_mongoadmin so it isn't trying to run itself countless times | py |
diff --git a/pygam.py b/pygam.py
index <HASH>..<HASH> 100644
--- a/pygam.py
+++ b/pygam.py
@@ -252,13 +252,6 @@ class LogisticGAM(object):
return dev / self.scale_
return dev
- def log_odds_(self, X=None, bases=None, b_=None):
- if bases is None:
- bases = self.bases_(X)
- ... | removed log_odds_ method since this is replaced by linear_predictor_ method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ except ImportError:
setup(
name="three",
- version="0.5.1",
+ version="0.6",
url="http://github.com/codeforamerica/three",
author="Zach Williams",
author_email="hey@zachwill.com", | Release <I> with all Open<I> cities | py |
diff --git a/pptx/spec.py b/pptx/spec.py
index <HASH>..<HASH> 100644
--- a/pptx/spec.py
+++ b/pptx/spec.py
@@ -605,7 +605,7 @@ autoshape_types = {
},
MAST.FOLDED_CORNER: {
'basename': 'Folded Corner',
- 'prst': 'folderCorner',
+ 'prst': 'foldedCorner',
'avLst': ()
... | spec: fix mis-spelling of prst 'foldedCorner' | py |
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/disaggregation.py
+++ b/openquake/calculators/disaggregation.py
@@ -248,8 +248,10 @@ class DisaggregationCalculator(base.HazardCalculator):
self.imts = list(oq.... | Fixed disagg with --hc [skip CI] | py |
diff --git a/openquake/server/db/actions.py b/openquake/server/db/actions.py
index <HASH>..<HASH> 100644
--- a/openquake/server/db/actions.py
+++ b/openquake/server/db/actions.py
@@ -345,7 +345,12 @@ def del_calc(db, job_id, user, force=False):
dependent = db(
"SELECT id FROM job WHERE hazard_calculation_... | Extended del_calc to job arrays [skip CI] | py |
diff --git a/airflow/utils/dag_processing.py b/airflow/utils/dag_processing.py
index <HASH>..<HASH> 100644
--- a/airflow/utils/dag_processing.py
+++ b/airflow/utils/dag_processing.py
@@ -1111,7 +1111,7 @@ class DagFileProcessorManager(LoggingMixin): # pylint: disable=too-many-instanc
for file_path, processor ... | [AIRFLOW-<I>] Log DAG processors timeout event at error level, not info (#<I>) This case prevents a DAG from being scheduled so should be an error. | py |
diff --git a/paramiko/pkey.py b/paramiko/pkey.py
index <HASH>..<HASH> 100644
--- a/paramiko/pkey.py
+++ b/paramiko/pkey.py
@@ -20,9 +20,6 @@
Common API for all public keys.
"""
-from abc import ABC
-from abc import abstractproperty
-from abc import abstractmethod
import base64
from binascii import unhexlify
impo... | Roll back ABC using kit from contributed patch - blew up good for me for reasons I don't entirely grok - also feels like too big of a change to do in a patch release - is not a critical piece of the bugfix - NotImplementedError is fine for now | py |
diff --git a/indra/databases/uniprot_client.py b/indra/databases/uniprot_client.py
index <HASH>..<HASH> 100644
--- a/indra/databases/uniprot_client.py
+++ b/indra/databases/uniprot_client.py
@@ -326,7 +326,7 @@ def _build_uniprot_hgnc():
uniprot_hgnc = {}
for row in rd:
hgnc_name = row[1]... | Fix indexing error in Uniprot client The previous index (row[5]) was getting the Ensembl ID and causing all Uniprot lookups to fail! | py |
diff --git a/allegedb/allegedb/graph.py b/allegedb/allegedb/graph.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/graph.py
+++ b/allegedb/allegedb/graph.py
@@ -134,7 +134,8 @@ class GraphMapping(AbstractEntityMapping):
self.graph = graph
def __iter__(self):
- return self.db._graph_val_cach... | Make the graph name show up in its stats It isn't writable, but it shows up the way networkx expects... | py |
diff --git a/java-containeranalysis/synth.py b/java-containeranalysis/synth.py
index <HASH>..<HASH> 100644
--- a/java-containeranalysis/synth.py
+++ b/java-containeranalysis/synth.py
@@ -18,6 +18,8 @@ import synthtool as s
import synthtool.gcp as gcp
import synthtool.languages.java as java
+AUTOSYNTH_MULTIPLE_COMMI... | chore: enable context aware commits (#<I>) | py |
diff --git a/etk/core.py b/etk/core.py
index <HASH>..<HASH> 100644
--- a/etk/core.py
+++ b/etk/core.py
@@ -107,7 +107,7 @@ class Core(object):
# to make sure we do not parse json_paths more times than needed, we define the following 2 properties
self.content_extraction_path = None
self.data_e... | load spacy only when needed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,10 +22,7 @@ setup(
license='BSD',
long_description=__doc__,
install_requires=[
- 'cassandra==0.1.4'
- ],
- dependency_links=[
- 'https://github.com/mattrobenolt/python-driver/archive/4faa... | cassandra-driver has been published to pypi | py |
diff --git a/tools/pyang_plugins/bgpyang2golang.py b/tools/pyang_plugins/bgpyang2golang.py
index <HASH>..<HASH> 100644
--- a/tools/pyang_plugins/bgpyang2golang.py
+++ b/tools/pyang_plugins/bgpyang2golang.py
@@ -733,15 +733,13 @@ def translate_type(key):
# 'hoge-hoge' -> 'HogeHoge'
def convert_to_golang(type_string):
... | pyang_plugins: Replace map() with list comprehension Mostly, using the list comprehension is more efficiently than map() with "lambda". This patch replaces map() + "lambda" by the list comprehension. | py |
diff --git a/django-openstack/django_openstack/api.py b/django-openstack/django_openstack/api.py
index <HASH>..<HASH> 100644
--- a/django-openstack/django_openstack/api.py
+++ b/django-openstack/django_openstack/api.py
@@ -396,8 +396,8 @@ def auth_api():
def swift_api(request):
LOG.debug('object store connection ... | Fix for issue <I> on launchpad -- use 'object-store' instead of 'swift' in service catalog lookups. | py |
diff --git a/benchexec/tools/metaval.py b/benchexec/tools/metaval.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/metaval.py
+++ b/benchexec/tools/metaval.py
@@ -79,8 +79,8 @@ class Tool(benchexec.tools.template.BaseTool):
def determine_result(self, returncode, returnsignal, output, isTimeout):
verif... | Fix "list index out of range" error in metaval | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ class DisabledTestCommand(Command):
raise RuntimeError("test command not supported on svg.charts. Use setup.py nosetests instead")
_this_dir = os.path.dirname(__file__)
-_long_description = open(os.path... | Fixed error when setup.py is exec'd from another file | py |
diff --git a/mschematool.py b/mschematool.py
index <HASH>..<HASH> 100755
--- a/mschematool.py
+++ b/mschematool.py
@@ -26,6 +26,9 @@ DEFAULT_CONFIG_MODULE_NAME = 'mschematool_config'
MIGRATION_PATTERN_SQL = 'm*.sql'
MIGRATION_PATTERN_PY = 'm*.py'
+# Look for a config module in cwd also
+sys.path.append(os.getcwd())... | Add CWD to sys.path | py |
diff --git a/sc2common/containers.py b/sc2common/containers.py
index <HASH>..<HASH> 100644
--- a/sc2common/containers.py
+++ b/sc2common/containers.py
@@ -137,7 +137,8 @@ class MultiType(object):
return self.code
############################################################################
def __long_... | - fixed Cost instantiation bug when invoking copy constructor - fixed MultiType bug when invoking __long__ between python 2/3 for test coverage purposes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ config = {
"matplotlib",
"nntoolkit",
"h5py",
- "flask",
+ "Flask",
"flask-bootstrap",
"requests",
"six" | Fix setup.py: It's 'Flask', not 'flask' | py |
diff --git a/src/apb/engine.py b/src/apb/engine.py
index <HASH>..<HASH> 100644
--- a/src/apb/engine.py
+++ b/src/apb/engine.py
@@ -9,7 +9,10 @@ import ruamel.yaml
import json
import requests
import urllib3
+from requests.packages.urllib3.exceptions import InsecureRequestWarning
+# Disable insecure request warnings f... | Disable InsecureRequestWarning from urllib3 and requests (#<I>) | py |
diff --git a/airflow/contrib/operators/gcs_download_operator.py b/airflow/contrib/operators/gcs_download_operator.py
index <HASH>..<HASH> 100644
--- a/airflow/contrib/operators/gcs_download_operator.py
+++ b/airflow/contrib/operators/gcs_download_operator.py
@@ -25,7 +25,6 @@ class GoogleCloudStorageDownloadOperator(Ba... | [AIRFLOW-<I>] Remove .sql template extension from GCS download operator Prior to this patch, if you use a templated file with a .sql extension, and it's templated, you'd receive an exception because Airflow would try and load the file (that hasn't yet been downloaded) to template it. This patch fixes that. Closes #<I... | py |
diff --git a/tests/pytests/integration/proxy/test_shell.py b/tests/pytests/integration/proxy/test_shell.py
index <HASH>..<HASH> 100644
--- a/tests/pytests/integration/proxy/test_shell.py
+++ b/tests/pytests/integration/proxy/test_shell.py
@@ -72,11 +72,11 @@ def test_service_list(salt_call_cli, service_name):
@slowTes... | Fix failing pytest on FreeBSD | py |
diff --git a/atom/ext/guardian/views.py b/atom/ext/guardian/views.py
index <HASH>..<HASH> 100644
--- a/atom/ext/guardian/views.py
+++ b/atom/ext/guardian/views.py
@@ -1,4 +1,4 @@
-from django.contrib.auth.mixins import LoginRequiredMixin
+from braces.mixins import LoginRequiredMixin # django.contrib.auth.mixins lack o... | Use django-braces in guardian.views | py |
diff --git a/mint/api.py b/mint/api.py
index <HASH>..<HASH> 100644
--- a/mint/api.py
+++ b/mint/api.py
@@ -196,7 +196,7 @@ class Mint:
budgets = {
'income' : response['data']['income'][str(max(map(int, response['data']['income'].keys())))]['bu'],
- 'expense' : response['data']['spending'][str(max(map(int, re... | Mint.get_budgets(): Renamed "expense" to "spend" in return value | py |
diff --git a/spyder_notebook/notebookplugin.py b/spyder_notebook/notebookplugin.py
index <HASH>..<HASH> 100644
--- a/spyder_notebook/notebookplugin.py
+++ b/spyder_notebook/notebookplugin.py
@@ -18,6 +18,7 @@ from qtpy.QtWidgets import QMessageBox, QVBoxLayout, QMenu
# Spyder imports
from spyder.api.plugins import Sp... | Plugin: Pass whether dark theme is enabled to widget | py |
diff --git a/instaLooter/core.py b/instaLooter/core.py
index <HASH>..<HASH> 100755
--- a/instaLooter/core.py
+++ b/instaLooter/core.py
@@ -47,7 +47,7 @@ class InstaLooter(object):
'width': lambda m: m.get('dimensions', dict()).get('width'),
'heigth': lambda m: m.get('dimensions', dict()).get('height')... | Fix commentscount being equal to likescount | py |
diff --git a/django_performance_testing/queries.py b/django_performance_testing/queries.py
index <HASH>..<HASH> 100644
--- a/django_performance_testing/queries.py
+++ b/django_performance_testing/queries.py
@@ -14,7 +14,6 @@ class QueryCollector(object):
return self
def __exit__(self, exc_type, exc_val,... | narrow scope - decorators can come later | py |
diff --git a/seqcluster/libs/tool.py b/seqcluster/libs/tool.py
index <HASH>..<HASH> 100644
--- a/seqcluster/libs/tool.py
+++ b/seqcluster/libs/tool.py
@@ -311,7 +311,8 @@ def _add_complete_cluster(idx, meta, clusters):
locilen_sorted = sorted(clus.iteritems(), key=operator.itemgetter(1), reverse=True)
maxidl ... | add all sequences to long clusters | py |
diff --git a/spark_parser/spark.py b/spark_parser/spark.py
index <HASH>..<HASH> 100644
--- a/spark_parser/spark.py
+++ b/spark_parser/spark.py
@@ -630,8 +630,12 @@ class GenericParser(object):
if self.profile_info is not None:
self.profile_rule(rule)
if lhs in self... | always create an AST when check_reduce needs it... We require however the cooperation of the subclass to set self.tokens | py |
diff --git a/tests/unit/models/geometry/ThroatAreaTest.py b/tests/unit/models/geometry/ThroatAreaTest.py
index <HASH>..<HASH> 100644
--- a/tests/unit/models/geometry/ThroatAreaTest.py
+++ b/tests/unit/models/geometry/ThroatAreaTest.py
@@ -33,6 +33,16 @@ class ThroatSurfaceAreaTest:
b = np.unique(self.geo['thro... | Added test for equivalent_area_spherical_pores model | py |
diff --git a/synapse/lib/config.py b/synapse/lib/config.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/config.py
+++ b/synapse/lib/config.py
@@ -1,7 +1,7 @@
'''
Central API for configurable objects within synapse.
'''
-import collections
+import copy
import synapse.common as s_common
import synapse.telepath as... | Make the defval a copy.deepcopy() result. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,19 +5,19 @@ try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
- long_description = open('README.md').read()
+ long_description = ''
setup(
na... | Update to not use description if pandoc is not available | py |
diff --git a/kuyruk/task.py b/kuyruk/task.py
index <HASH>..<HASH> 100644
--- a/kuyruk/task.py
+++ b/kuyruk/task.py
@@ -154,7 +154,7 @@ class Task(EventMixin):
def delay(self, *args, **kwargs):
"""Compatibility function for migrating existing Celery project to
Kuyruk."""
- self.__call__(*ar... | Return the call result in `delay` method Delay method should return a TaskResult instance. | py |
diff --git a/app.py b/app.py
index <HASH>..<HASH> 100644
--- a/app.py
+++ b/app.py
@@ -583,18 +583,14 @@ def regularpage(pagename=None):
# let's start
###########################################################
if __name__ == '__main__':
- if len(sys.argv) == 1:
- print "Useage: python webapp.py [initdb/se... | Removed redundant app.py interface. | py |
diff --git a/rfhub/kwdb.py b/rfhub/kwdb.py
index <HASH>..<HASH> 100644
--- a/rfhub/kwdb.py
+++ b/rfhub/kwdb.py
@@ -435,7 +435,7 @@ class KeywordTable(object):
cursor = self._execute(sql, (pattern,))
result = [(row[0], row[1], row[2], row[3], row[4])
for row in cursor.fetchall()]
- ... | Fixed that random test failure: Test, 'Verify that a query returns keyword documentation' could randomly fail with 'Documentation for Keyword #2 != Documentation for Keyword #1' as set() did not preserve the order of the original list returned by the database query. | py |
diff --git a/pwkit/environments/casa/util.py b/pwkit/environments/casa/util.py
index <HASH>..<HASH> 100644
--- a/pwkit/environments/casa/util.py
+++ b/pwkit/environments/casa/util.py
@@ -139,7 +139,11 @@ def datadir (*subdirs):
else:
data = os.path.join (os.path.dirname (casadef.task_directory), '... | pwkit/environments/casa/util.py: hack to get datadir working again There should be a better solution, but I want to get this working. | py |
diff --git a/cherrypy/test/test_conn.py b/cherrypy/test/test_conn.py
index <HASH>..<HASH> 100644
--- a/cherrypy/test/test_conn.py
+++ b/cherrypy/test/test_conn.py
@@ -215,8 +215,8 @@ class ConnectionTests(helper.CPWebCase):
self.persistent = True
conn = self.HTTP_CONN
# Make the s... | Reverting a change to test_conn. It really needs to pass with blocking sockets. | py |
diff --git a/salt/engines/__init__.py b/salt/engines/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/engines/__init__.py
+++ b/salt/engines/__init__.py
@@ -46,10 +46,22 @@ def start_engines(opts, proc_mgr, proxy=None):
engine, engine_opts = next(iter(engine.items()))
else:
engine_o... | Initial work to allow running multiple instances of a Salt engine. | py |
diff --git a/bcbio/qc/qualimap.py b/bcbio/qc/qualimap.py
index <HASH>..<HASH> 100644
--- a/bcbio/qc/qualimap.py
+++ b/bcbio/qc/qualimap.py
@@ -173,7 +173,8 @@ def _bed_to_bed6(orig_file, out_dir):
def _parse_metrics(metrics):
# skipped metrics can sometimes be in unicode, replace unicode with NA if it exists
- ... | Qualimap:remove unicode check. It is removing correct values | py |
diff --git a/lib/ansiblereview/utils/__init__.py b/lib/ansiblereview/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/ansiblereview/utils/__init__.py
+++ b/lib/ansiblereview/utils/__init__.py
@@ -87,7 +87,8 @@ def review(candidate, settings, lines=None):
continue
result = standard.check(can... | Tests that apply on a file basis should match range Some tests apply to a file as a whole rather than a line. We want to ensure we report such errors even when only a few lines have changed. | py |
diff --git a/skitai/__init__.py b/skitai/__init__.py
index <HASH>..<HASH> 100644
--- a/skitai/__init__.py
+++ b/skitai/__init__.py
@@ -1,6 +1,6 @@
# 2014. 12. 9 by Hans Roh hansroh@gmail.com
-__version__ = "0.26.12.3"
+__version__ = "0.26.12.4"
version_info = tuple (map (lambda x: not x.isdigit () and x or int (x),... | fix stop to kill chidren | py |
diff --git a/ford/utils.py b/ford/utils.py
index <HASH>..<HASH> 100644
--- a/ford/utils.py
+++ b/ford/utils.py
@@ -228,7 +228,7 @@ def sub_links(string,project):
if not match.group(4):
for key, val in SUBLINK_TYPES.items():
if val == 'constructor':
- ... | Fixed a bug where link substitution would try to analyze non-existent constructor functions. | py |
diff --git a/airtest/core/android/javacap.py b/airtest/core/android/javacap.py
index <HASH>..<HASH> 100644
--- a/airtest/core/android/javacap.py
+++ b/airtest/core/android/javacap.py
@@ -43,9 +43,9 @@ class Javacap(Yosemite):
line = nbsp.readline(timeout=5.0)
if line is None:
... | fix javacap in py3 | py |
diff --git a/tests/func/test_checkout.py b/tests/func/test_checkout.py
index <HASH>..<HASH> 100644
--- a/tests/func/test_checkout.py
+++ b/tests/func/test_checkout.py
@@ -764,7 +764,7 @@ def test_checkout_for_external_outputs(tmp_dir, dvc):
remote = Remote(S3Tree(dvc, {"url": S3.get_url()}))
file_path = rem... | tests: use s3 client instead of resource | py |
diff --git a/text/__init__.py b/text/__init__.py
index <HASH>..<HASH> 100644
--- a/text/__init__.py
+++ b/text/__init__.py
@@ -1,6 +1,6 @@
import os
-__version__ = '0.7.0'
+__version__ = '0.7.1-dev'
__license__ = 'MIT'
__author__ = "Steven Loria" | Update version number to <I>-dev | py |
diff --git a/test/test_thread_util.py b/test/test_thread_util.py
index <HASH>..<HASH> 100644
--- a/test/test_thread_util.py
+++ b/test/test_thread_util.py
@@ -68,7 +68,7 @@ class TestTimeoutableLock(unittest.TestCase):
self.assert_(lock.acquire())
before = time.time()
self.failIf(lock.acquire... | 2 decimal places was asking too much MINOR | py |
diff --git a/spyder/__init__.py b/spyder/__init__.py
index <HASH>..<HASH> 100644
--- a/spyder/__init__.py
+++ b/spyder/__init__.py
@@ -27,7 +27,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
"""
-version_info = (3, 1, 4)
+version_info = (3, 1, 5, "dev0")
__vers... | Back to work [ci skip] | py |
diff --git a/openquake/baselib/tests/general_test.py b/openquake/baselib/tests/general_test.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/tests/general_test.py
+++ b/openquake/baselib/tests/general_test.py
@@ -25,24 +25,11 @@ import mock
import unittest
from operator import attrgetter
from collections impor... | Removing test causing a conflict | py |
diff --git a/openquake/calculators/tests/event_based_test.py b/openquake/calculators/tests/event_based_test.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/tests/event_based_test.py
+++ b/openquake/calculators/tests/event_based_test.py
@@ -484,7 +484,11 @@ class EventBasedTestCase(CalculatorTestCase):
... | added more checking of liquefaction results | py |
diff --git a/pandas/core/series.py b/pandas/core/series.py
index <HASH>..<HASH> 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -437,7 +437,7 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
.. warning::
We recommend using :attr:`Series.array` or
- :Series:`Index.... | DOC: Fixed reference (#<I>) [ci skip] | py |
diff --git a/bin/fontbakery-fix-gasp.py b/bin/fontbakery-fix-gasp.py
index <HASH>..<HASH> 100755
--- a/bin/fontbakery-fix-gasp.py
+++ b/bin/fontbakery-fix-gasp.py
@@ -36,7 +36,12 @@ class GaspFixer():
table.gaspRange[65535] = value
self.saveit = True
except:
- print('ER: {}... | fix-gasp.py: Create gasp table if it does not exist | py |
diff --git a/cloudvolume/provenance.py b/cloudvolume/provenance.py
index <HASH>..<HASH> 100644
--- a/cloudvolume/provenance.py
+++ b/cloudvolume/provenance.py
@@ -69,7 +69,6 @@ layer_provenance_schema = {
"type": "object"
},
"minItems": 0,
- "uniqueItems": True,
},
# e.g. pro... | fix: remove uniqueItems from layer provenance schema Dict objects were crashing the uniqueness check because they are mutable objects that are unhashable. Resolves #<I> | py |
diff --git a/pyecharts/_version.py b/pyecharts/_version.py
index <HASH>..<HASH> 100644
--- a/pyecharts/_version.py
+++ b/pyecharts/_version.py
@@ -1,2 +1,2 @@
-__version__ = "1.6.0"
+__version__ = "1.6.1"
__author__ = "chenjiandongx" | change version from <I> to <I> | py |
diff --git a/salt/modules/disk.py b/salt/modules/disk.py
index <HASH>..<HASH> 100644
--- a/salt/modules/disk.py
+++ b/salt/modules/disk.py
@@ -10,6 +10,7 @@ import re
# Import salt libs
import salt.utils
+import salt.utils.decorators as decorators
from salt.exceptions import CommandExecutionError
@@ -194,9 +19... | test for blkid before running disk.blkid | py |
diff --git a/MC6809/example6809.py b/MC6809/example6809.py
index <HASH>..<HASH> 100644
--- a/MC6809/example6809.py
+++ b/MC6809/example6809.py
@@ -24,6 +24,7 @@
import binascii
import string
import time
+import sys
from MC6809.components.cpu6809 import CPU
from MC6809.components.memory import Memory
@@ -126,6 +1... | bugfix example to run with py2 and py3 | py |
diff --git a/raiden/raiden_service.py b/raiden/raiden_service.py
index <HASH>..<HASH> 100644
--- a/raiden/raiden_service.py
+++ b/raiden/raiden_service.py
@@ -384,7 +384,7 @@ class RaidenService(Runnable):
super().start()
- def _run(self):
+ def _run(self, *args, **kwargs): # pylint: disable=method-... | pylint: fixed warning for inherited _run [skip ci] | py |
diff --git a/lib/svtplay_dl/subtitle/__init__.py b/lib/svtplay_dl/subtitle/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/subtitle/__init__.py
+++ b/lib/svtplay_dl/subtitle/__init__.py
@@ -2,10 +2,9 @@ import xml.etree.ElementTree as ET
import json
import re
from svtplay_dl.log import log
-from svtplay... | subtitle: use HTTP from utils instead of requets. | py |
diff --git a/bin/test.py b/bin/test.py
index <HASH>..<HASH> 100755
--- a/bin/test.py
+++ b/bin/test.py
@@ -83,6 +83,7 @@ def get_test_results(model_folder, basename, test_file):
logfile = os.path.join(project_root,
"logs/%s-error-evaluation.log" %
... | bin/test.py: Show where the logfile is | py |
diff --git a/rest_framework_jwt/compat.py b/rest_framework_jwt/compat.py
index <HASH>..<HASH> 100644
--- a/rest_framework_jwt/compat.py
+++ b/rest_framework_jwt/compat.py
@@ -9,7 +9,9 @@ if StrictVersion(rest_framework.VERSION) < StrictVersion('3.0.0'):
class PasswordField(CharField):
widget = widgets.Pas... | Flake8 Fix Added comment and fixed flake8 issue of missing blank line | py |
diff --git a/synapse/cortex.py b/synapse/cortex.py
index <HASH>..<HASH> 100644
--- a/synapse/cortex.py
+++ b/synapse/cortex.py
@@ -2765,7 +2765,10 @@ class Cortex(s_cell.Cell):
'''
A simple non-streaming way to return a list of nodes.
'''
- return [n async for n in self.eval(text, opts... | Convert Cortex.nodes from a direct call to a schedCoro based call. (#<I>) | py |
diff --git a/aversion.py b/aversion.py
index <HASH>..<HASH> 100644
--- a/aversion.py
+++ b/aversion.py
@@ -475,7 +475,7 @@ class AVersion(object):
if result.ctype:
request.environ['aversion.response_type'] = result.ctype
request.environ['aversion.orig_response_type'] = result.orig_cty... | Act gracefully if 'Accept' header is not present. | py |
diff --git a/fault/wrapper.py b/fault/wrapper.py
index <HASH>..<HASH> 100644
--- a/fault/wrapper.py
+++ b/fault/wrapper.py
@@ -33,6 +33,7 @@ class Wrapper:
# Hack to stage this after __init__ has been run, should redefine this
# method in a metaclass?
try:
+ assert not isinstance(s... | Add assertion to block infinite recursion | py |
diff --git a/python/test/test_async.py b/python/test/test_async.py
index <HASH>..<HASH> 100644
--- a/python/test/test_async.py
+++ b/python/test/test_async.py
@@ -11,9 +11,7 @@ from os import _exit
from traceback import format_tb
# ------------------------------------------------------------------------------
-
-lo... | removed excessive logging from test_async.py | py |
diff --git a/salt/modules/schedule.py b/salt/modules/schedule.py
index <HASH>..<HASH> 100644
--- a/salt/modules/schedule.py
+++ b/salt/modules/schedule.py
@@ -90,7 +90,7 @@ def list_(show_all=False, return_yaml=True):
else:
return schedule
else:
- return None
+ return {'schedule... | schedule.list should return an empty dictionary, not None | py |
diff --git a/pwnypack/shellcode/arm/__init__.py b/pwnypack/shellcode/arm/__init__.py
index <HASH>..<HASH> 100644
--- a/pwnypack/shellcode/arm/__init__.py
+++ b/pwnypack/shellcode/arm/__init__.py
@@ -1,6 +1,5 @@
import six
-from pwnypack.packing import U32
from pwnypack.shellcode.base import BaseEnvironment
from pw... | Remove now unnecessary import of U<I> in ARM. | py |
diff --git a/symfit/api.py b/symfit/api.py
index <HASH>..<HASH> 100644
--- a/symfit/api.py
+++ b/symfit/api.py
@@ -3,7 +3,7 @@ import symfit.core.operators
# Expose useful objects.
from symfit.core.fit import (
- Fit, FitResults, Model,
+ Fit, FitResults, Model, Constraint,
LinearLeastSquares, NonLinearL... | Added Constraint objects to the public API | py |
diff --git a/cerberus/__init__.py b/cerberus/__init__.py
index <HASH>..<HASH> 100644
--- a/cerberus/__init__.py
+++ b/cerberus/__init__.py
@@ -1,3 +1,3 @@
__version__ = "0.0.1"
-from cerberus import Validator
+from cerberus import Validator, ValidationError, SchemaError | ValidationError and SchemaError now available from package root | py |
diff --git a/s3conf/storage/files.py b/s3conf/storage/files.py
index <HASH>..<HASH> 100644
--- a/s3conf/storage/files.py
+++ b/s3conf/storage/files.py
@@ -31,10 +31,11 @@ class File:
# IOBase
def flush(self) -> None:
- self.file.flush()
- self._buffer.seek(0)
- logger.debug('Writing buf... | fixing problem when trying to write on read-only files | py |
diff --git a/perceval/utils.py b/perceval/utils.py
index <HASH>..<HASH> 100644
--- a/perceval/utils.py
+++ b/perceval/utils.py
@@ -62,7 +62,8 @@ def check_compressed_file_type(filepath):
def compressed_file_type(content):
magic_dict = {
b'\x1f\x8b\x08': 'gz',
- b'\x42\x5a\x68': 'bz... | [utils] Add support for zip compressed file type This code adds the zip format to the compressed file types supported. This change allows to deal with mbox archives compressed using zip (groups.io archives). | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.