diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/schiene/schiene.py b/schiene/schiene.py
index <HASH>..<HASH> 100755
--- a/schiene/schiene.py
+++ b/schiene/schiene.py
@@ -9,7 +9,7 @@ def parse_connections(html):
soup = BeautifulSoup(html, "lxml")
connections = list()
- for row in soup.find_all("td", class_="overview timelink")[1:]:
+ fo... | prase connections from first table row | py |
diff --git a/hebel/layers/logistic_layer.py b/hebel/layers/logistic_layer.py
index <HASH>..<HASH> 100644
--- a/hebel/layers/logistic_layer.py
+++ b/hebel/layers/logistic_layer.py
@@ -214,20 +214,16 @@ class LogisticLayer(TopLayer):
delta = self.get_temp_object('delta',
activations.shape, activ... | Caching in LogisticLayer.backprop | py |
diff --git a/hydra_base/db/__init__.py b/hydra_base/db/__init__.py
index <HASH>..<HASH> 100644
--- a/hydra_base/db/__init__.py
+++ b/hydra_base/db/__init__.py
@@ -88,12 +88,14 @@ def connect(db_url=None):
if db_url is None:
db_url = config.get('mysqld', 'url')
+
+ db_url = "{}?charset=utf8&use_unicod... | added the utf8 encoding | py |
diff --git a/core/parts.py b/core/parts.py
index <HASH>..<HASH> 100644
--- a/core/parts.py
+++ b/core/parts.py
@@ -95,7 +95,7 @@ class BUS(object):
"""
self._lock = True
- if(offset >= self.current_max_offset):
+ if(offset > self.current_max_offset):
raise BUSError("Offset({}) exceeds address space of BU... | fixed a bug in the address checking of the BUS | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -150,10 +150,17 @@ class install(_install):
def distutils_dir_name(dname):
"""Returns the name of a distutils build directory"""
- f = "{dirname}.{platform}-{cache_tag}"
- return f.format(dirname=dname,
- ... | Fix setup.py to work with setuptools newer and older than <I> | py |
diff --git a/edisgo/io/generators_import.py b/edisgo/io/generators_import.py
index <HASH>..<HASH> 100755
--- a/edisgo/io/generators_import.py
+++ b/edisgo/io/generators_import.py
@@ -629,7 +629,7 @@ def _update_grids(
# iterate over new generators and create them
number_new_gens = len(new_gens_mv)
- for ... | Sort generators in grid integration to get reproducible grid topologies | py |
diff --git a/pycbc/types/array.py b/pycbc/types/array.py
index <HASH>..<HASH> 100644
--- a/pycbc/types/array.py
+++ b/pycbc/types/array.py
@@ -825,7 +825,6 @@ class Array(object):
def roll(self, shift):
"""shift vector
"""
- self._saved = LimitedSizeDict(size_limit=2**5)
new_arr =... | Reset _saved in roll-function. (#<I>) | py |
diff --git a/authorization_django/middleware.py b/authorization_django/middleware.py
index <HASH>..<HASH> 100644
--- a/authorization_django/middleware.py
+++ b/authorization_django/middleware.py
@@ -222,7 +222,7 @@ def authorization_middleware(get_response):
x_unique_id = request.META.get('HTTP_X_UNIQUE_ID... | Taiga #<I> - No need to check authorization for MIN_SCOPE if MIN_SCOPE == 0 | py |
diff --git a/subliminal/services/podnapisiweb.py b/subliminal/services/podnapisiweb.py
index <HASH>..<HASH> 100644
--- a/subliminal/services/podnapisiweb.py
+++ b/subliminal/services/podnapisiweb.py
@@ -74,13 +74,12 @@ class PodnapisiWeb(ServiceBase):
def list_checked(self, video, languages):
if isinsta... | Remove keywords parameter in PodnapisiWeb as it is not supported | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100644
--- a/runtests.py
+++ b/runtests.py
@@ -8,7 +8,6 @@ this_dir = os.path.abspath(os.path.dirname(__file__))
if this_dir not in sys.path:
sys.path.insert(0, this_dir)
-import django
from django.test.utils import get_runner
from django.conf import... | Cleaned up runtests.py | py |
diff --git a/psiturk/psiturk_shell.py b/psiturk/psiturk_shell.py
index <HASH>..<HASH> 100644
--- a/psiturk/psiturk_shell.py
+++ b/psiturk/psiturk_shell.py
@@ -272,8 +272,9 @@ class PsiturkShell(Cmd, object):
port = self.config.get( 'Server Parameters', 'adserver_revproxy_port')
else:
... | cast adserver_revproxy_port else to str Fixes a bug where if adserver_revproxy_port is not set, there is an attempt to concat an int with a str, which caused an explosion. Thanks @braingineer for noticing | py |
diff --git a/tests/unit/modules/zfs_test.py b/tests/unit/modules/zfs_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/zfs_test.py
+++ b/tests/unit/modules/zfs_test.py
@@ -107,6 +107,17 @@ class ZfsTestCase(TestCase):
with patch.dict(zfs.__salt__, {'cmd.run': mock_cmd}):
self.assertEqua... | Adding another unit test to check for zfs.create failure if the parent datasets do not exist | py |
diff --git a/cmsplugin_cascade/migrations/0027_version_1.py b/cmsplugin_cascade/migrations/0027_version_1.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/migrations/0027_version_1.py
+++ b/cmsplugin_cascade/migrations/0027_version_1.py
@@ -76,7 +76,7 @@ def forwards(apps, schema_editor):
if cascade_elem... | Bugfix: Database migration <I> missed image migration | py |
diff --git a/stricttuple/__init__.py b/stricttuple/__init__.py
index <HASH>..<HASH> 100644
--- a/stricttuple/__init__.py
+++ b/stricttuple/__init__.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# @Author: codykochmann
# @Date: 2017-04-06 13:35:45
-# @Last Modified time: 2017-09-27 09:18:23
+# @Last Modified time: 2... | added a backup function for stricttuple.__repr__ | py |
diff --git a/AWSScout2/rules/preprocessing.py b/AWSScout2/rules/preprocessing.py
index <HASH>..<HASH> 100644
--- a/AWSScout2/rules/preprocessing.py
+++ b/AWSScout2/rules/preprocessing.py
@@ -689,6 +689,7 @@ def get_lb_attack_surface(aws_config, current_config, path, current_path, elb_id
public_dns = current_co... | Fix classic ELB attack surface (#<I>) | py |
diff --git a/src/livestreamer/stream/__init__.py b/src/livestreamer/stream/__init__.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer/stream/__init__.py
+++ b/src/livestreamer/stream/__init__.py
@@ -41,9 +41,10 @@ class StreamProcess(Stream):
return str(self.cmd.bake(**self.params))
def open(self):
... | stream.StreamProcess: Stop reading when process dies instead of timing out. | py |
diff --git a/aiosparql/__init__.py b/aiosparql/__init__.py
index <HASH>..<HASH> 100644
--- a/aiosparql/__init__.py
+++ b/aiosparql/__init__.py
@@ -1,2 +1,2 @@
-__version__ = version = "0.1.2"
+__version__ = version = "0.2.0"
version_info = tuple([int(d) for d in version.split("-")[0].split(".")]) | Bumped to version <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,7 @@ validate_dependencies = [
"Flask-Sockets>=0.2,<1",
"Flask>=1,<2", # TODO: Flask-Sockets is not yet compatible with Flask 2.x
"Werkzeug<2", # TODO: Flask-Sockets is not yet compatible with Flask ... | Fix build failures due to itsdangerous package release | py |
diff --git a/python/pyspark/streaming/dstream.py b/python/pyspark/streaming/dstream.py
index <HASH>..<HASH> 100644
--- a/python/pyspark/streaming/dstream.py
+++ b/python/pyspark/streaming/dstream.py
@@ -421,10 +421,12 @@ class DStream(object):
def _validate_window_param(self, window, slide):
duration = se... | [MINOR] update dstream.py with more accurate exceptions ### What changes were proposed in this pull request? Reopened from <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ setup(name="wormhole-sync",
url="https://github.com/warner/wormhole-sync",
package_dir={"": "src"},
packages=["wormhole"],
- install_requires=["spake2", "requests"],
+ install_requ... | depend on pynacl, for encryption of exchanged data | py |
diff --git a/bibliopixel/animation/matrix.py b/bibliopixel/animation/matrix.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/animation/matrix.py
+++ b/bibliopixel/animation/matrix.py
@@ -4,7 +4,7 @@ from .. layout import Matrix
class BaseMatrixAnim(BaseAnimation):
- def __init__(self, layout, width=0, height=0,... | Remove startX and startY (fix #<I>) | py |
diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py
index <HASH>..<HASH> 100644
--- a/paramiko/hostkeys.py
+++ b/paramiko/hostkeys.py
@@ -19,7 +19,6 @@
import binascii
import os
-import ssh_exception
from hashlib import sha1
from hmac import HMAC
@@ -36,6 +35,7 @@ from paramiko.dsskey import DSSKey
from p... | No idea why this only tanked tests on Python 3, ugh @ our old crusty test suite | py |
diff --git a/src/you_get/extractors/youtube.py b/src/you_get/extractors/youtube.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/youtube.py
+++ b/src/you_get/extractors/youtube.py
@@ -439,6 +439,7 @@ class YouTube(VideoExtractor):
except:
# VEVO
if not self.html5player: ret... | [youtube] unescape html5player URLs for some videos | py |
diff --git a/httprunner/loader/check.py b/httprunner/loader/check.py
index <HASH>..<HASH> 100644
--- a/httprunner/loader/check.py
+++ b/httprunner/loader/check.py
@@ -197,4 +197,8 @@ def is_testcase_path(path):
if not os.path.exists(path):
return False
+ file_suffix = os.path.splitext(pat... | feat: check if testfile path, should be json or yaml file | py |
diff --git a/molo/core/api/endpoints.py b/molo/core/api/endpoints.py
index <HASH>..<HASH> 100644
--- a/molo/core/api/endpoints.py
+++ b/molo/core/api/endpoints.py
@@ -86,4 +86,5 @@ class LanguagesAPIEndpoint(BaseAPIEndpoint):
Only serve site-specific languages
'''
request = self.request
- ... | Order language endpoint results by pk | py |
diff --git a/modeltranslation/tests/__init__.py b/modeltranslation/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/tests/__init__.py
+++ b/modeltranslation/tests/__init__.py
@@ -1486,6 +1486,21 @@ class TestManager(ModeltranslationTestBase):
self.assertEqual(n.visits_en, 11)
... | Added a simple test that catches the descending order problem. | py |
diff --git a/test_webapp.py b/test_webapp.py
index <HASH>..<HASH> 100644
--- a/test_webapp.py
+++ b/test_webapp.py
@@ -17,7 +17,7 @@ ROUTES = [
("/", index),
("/squares", squares),
("/file", lambda wr, req: (yield from picoweb.sendfile(wr, "picoweb.py"))),
- (re.compile("^/"), index),
+ (re.compile... | test_webapp.py: Make sure it's possible to demo <I> handling. | py |
diff --git a/jnrbase/httplib2_certs.py b/jnrbase/httplib2_certs.py
index <HASH>..<HASH> 100644
--- a/jnrbase/httplib2_certs.py
+++ b/jnrbase/httplib2_certs.py
@@ -49,14 +49,17 @@ def find_certs():
:return: Path to SSL certificates
:raise RuntimeError: When no suitable certificates are found
"""
- bund... | [Tr] Add comments to branching in certs finder Things which seem obvious now… | py |
diff --git a/scss/compiler.py b/scss/compiler.py
index <HASH>..<HASH> 100644
--- a/scss/compiler.py
+++ b/scss/compiler.py
@@ -300,8 +300,8 @@ class Compilation(object):
self.rules = self.apply_extends(self.rules)
output, total_selectors = self.create_css(self.rules)
- if total_selectors >= 4... | fix IE's rules limit - log as warning As far as I know [1] IE <I> supports <I> rules. BTW fix logging class from error to warning [2]. [1] <URL> | py |
diff --git a/src/future/backports/socket.py b/src/future/backports/socket.py
index <HASH>..<HASH> 100644
--- a/src/future/backports/socket.py
+++ b/src/future/backports/socket.py
@@ -410,7 +410,10 @@ def getfqdn(name=''):
return name
-_GLOBAL_DEFAULT_TIMEOUT = object()
+# Re-use the same sentinel as in the Pyt... | Use the same sentinel as in the stdlib ``socket.py`` for ``create_connection()`` in ``future.backports.socket`` | py |
diff --git a/holoviews/core/element.py b/holoviews/core/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/element.py
+++ b/holoviews/core/element.py
@@ -716,6 +716,15 @@ class GridSpace(UniformNdMapping):
return self.clone(overlayed_items)
+ def __lshift__(self, other):
+ if isinstance(... | Allowed adjoining to a GridSpace | py |
diff --git a/test/test_response.py b/test/test_response.py
index <HASH>..<HASH> 100644
--- a/test/test_response.py
+++ b/test/test_response.py
@@ -26,7 +26,7 @@ def test_response_reference():
foo = bar.foo
# This used to cause an exception about invalid pointers because the response got garbage collected
- ... | Add asserts to test_response.py | py |
diff --git a/OpenPNM/Base/__Controller__.py b/OpenPNM/Base/__Controller__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Base/__Controller__.py
+++ b/OpenPNM/Base/__Controller__.py
@@ -57,20 +57,18 @@ class Controller(dict):
return temp
def clear(self):
- temp = self.copy()
- sim = self.new(... | Removed the ability to spawn a new controller object. It was an ill conceived idea considering controllers are 'singletons' | py |
diff --git a/pfr/finders/GamePlayFinder.py b/pfr/finders/GamePlayFinder.py
index <HASH>..<HASH> 100644
--- a/pfr/finders/GamePlayFinder.py
+++ b/pfr/finders/GamePlayFinder.py
@@ -36,7 +36,8 @@ def GamePlayFinder(**kwargs):
data = [
[
''.join(
- [c if isinstance(... | uses IDs again, not hrefs | py |
diff --git a/test/testfunctions/__init__.py b/test/testfunctions/__init__.py
index <HASH>..<HASH> 100644
--- a/test/testfunctions/__init__.py
+++ b/test/testfunctions/__init__.py
@@ -27,7 +27,6 @@ __all__ = [
'legends',
'loglogplot',
'logplot',
- 'subplot4x4',
'subplots',
'text_overlay'
]
@@ -38,3 +3... | travis: disable subplot4x4 from tests | py |
diff --git a/wrappers.py b/wrappers.py
index <HASH>..<HASH> 100644
--- a/wrappers.py
+++ b/wrappers.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
-
+#
# This file is part of Invenio.
-# Copyright (C) 2011, 2012, 2013, 2014 CERN.
+# Copyright (C) 2011, 2012, 2013, 2014, 2015 CERN.
#
# Invenio is free software; you can ... | global: url_for unicode compatibility fix * INCOMPATIBLE Changes url_for behaviour to return always a unicode string. (addresses #<I>) * INCOMPATIBLE Deprecates invenio.config hack for legacy code. (addresses #<I>) | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100644
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -157,7 +157,6 @@ class DagBag(LoggingMixin):
# If the dag is absent or expired
orm_dag = DagModel.get_current(dag_id)
- found_dags = []
if orm_dag and (
... | Fixing a bug where some dags can't be retrived from DagBag.get_dag | py |
diff --git a/Evtx/BinaryParser.py b/Evtx/BinaryParser.py
index <HASH>..<HASH> 100644
--- a/Evtx/BinaryParser.py
+++ b/Evtx/BinaryParser.py
@@ -597,12 +597,12 @@ class Block(object):
o = self._offset + offset
try:
- _bin = self._buf[o:o + 16]
+ _bin = bytes(self._buf[o:o + 16])
... | BinaryParser: explicitly use bytes | py |
diff --git a/datalab/ml/_tensorboard.py b/datalab/ml/_tensorboard.py
index <HASH>..<HASH> 100644
--- a/datalab/ml/_tensorboard.py
+++ b/datalab/ml/_tensorboard.py
@@ -17,6 +17,7 @@ except ImportError:
raise Exception('This module can only be loaded in ipython.')
import argparse
+import pandas as pd
import psutil... | Return a DataFrame from TensorBoard.list() so it can work as a programming API. (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -11,6 +11,7 @@ setup(
version = version,
packages = [app_name],
+ package_data = {app_name: ['templates/tinymce/*']},
author = "Joost Cassee",
author_email = "joost@cassee.net", | Updated setup.py to include Django templates as package data. | py |
diff --git a/mbuild/tests/test_compound.py b/mbuild/tests/test_compound.py
index <HASH>..<HASH> 100755
--- a/mbuild/tests/test_compound.py
+++ b/mbuild/tests/test_compound.py
@@ -118,11 +118,11 @@ class TestCompound(BaseTest):
port = mb.Port()
assert np.allclose(port.center, np.array([0.0, 0.0, 2.5e-3... | Skip visualization if running on CI | 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
@@ -62,7 +62,12 @@ _TEST_CASES = [
# aren't enabled automatically for all languages.
#
# TODO: Move them into _TEST_CASES when sup... | Enable running circuit_breaking_test_advanced. | py |
diff --git a/pyang/statements.py b/pyang/statements.py
index <HASH>..<HASH> 100644
--- a/pyang/statements.py
+++ b/pyang/statements.py
@@ -1625,12 +1625,13 @@ def v_reference_deviation(ctx, stmt):
stmt.i_target_node = find_target_node(ctx, stmt)
_singleton_keywords = {
+ 'type':True,
'units':True,
... | fixed deviation problem reported by Andy Bierman | py |
diff --git a/scripts/tag_and_release.py b/scripts/tag_and_release.py
index <HASH>..<HASH> 100644
--- a/scripts/tag_and_release.py
+++ b/scripts/tag_and_release.py
@@ -66,7 +66,7 @@ def main():
subprocess.check_call(['git', 'branch', '--set-upstream-to', branch_spec])
print('pushing tags')
subprocess.chec... | 'latest' is reused so we have to '-f' but what about <URL> | py |
diff --git a/dipper/sources/IMPC.py b/dipper/sources/IMPC.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/IMPC.py
+++ b/dipper/sources/IMPC.py
@@ -710,7 +710,8 @@ class IMPC(Source):
provenance_model.add_study_to_measurements(
study_bnode, measurements.keys())
self.graph.addTriple(
- ... | revert to a term I had lost track of | py |
diff --git a/editor/settings.py b/editor/settings.py
index <HASH>..<HASH> 100644
--- a/editor/settings.py
+++ b/editor/settings.py
@@ -4,4 +4,6 @@ import django
DJANGO10_COMPAT = django.VERSION[0] < 1 or (django.VERSION[0] == 1 and django.VERSION[1] < 1)
STATIC_URL = getattr(settings, 'STATIC_URL', settings.MEDIA_U... | STATIC_URL seems to be returning as None even when not defined | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,6 @@ setup(
url="http://github.com/anandology/warc",
packages=["warc"],
platforms=["any"],
- package_data={'': ['LICENSE']},
classifiers=[
'Development Status :: 4 - Beta',
'E... | package_data doesn't seems to be working as I expected. Removed it for now. | py |
diff --git a/pmagpy/validate_upload2.py b/pmagpy/validate_upload2.py
index <HASH>..<HASH> 100644
--- a/pmagpy/validate_upload2.py
+++ b/pmagpy/validate_upload2.py
@@ -43,14 +43,14 @@ def get_data_model():
print "-I- getting data model, please be patient"
url = 'http://earthref.org/services/MagIC-data-model.tx... | never try to get MagIC data model <I> from Earthref | py |
diff --git a/async_annotations.py b/async_annotations.py
index <HASH>..<HASH> 100644
--- a/async_annotations.py
+++ b/async_annotations.py
@@ -199,8 +199,10 @@ class BatchAnnotatorUDF(UDF):
nonzero_kvs = [(k,v) for k,v in self.anno_generator(candidate) if v != 0]
if nonzero_kvs:
... | Storing empty array for zero vector annotations | py |
diff --git a/src/cr/cube/__init__.py b/src/cr/cube/__init__.py
index <HASH>..<HASH> 100644
--- a/src/cr/cube/__init__.py
+++ b/src/cr/cube/__init__.py
@@ -2,4 +2,4 @@
"""Initialization module for crunch-cube package."""
-__version__ = "3.0.10a"
+__version__ = "3.0.10a1" | release: prepare <I>a1 release | py |
diff --git a/salt/modules/network.py b/salt/modules/network.py
index <HASH>..<HASH> 100644
--- a/salt/modules/network.py
+++ b/salt/modules/network.py
@@ -1307,7 +1307,10 @@ def default_route(family=None):
ret = []
for route in _routes:
if family:
+ log.info(route)
if route['d... | fixup network.default_route with family set on SunOS #<I> | py |
diff --git a/queries/results.py b/queries/results.py
index <HASH>..<HASH> 100644
--- a/queries/results.py
+++ b/queries/results.py
@@ -41,12 +41,10 @@ class Results(object):
:rtype: mixed
"""
- if not self.cursor.rowcount:
- raise StopIteration
-
- self._rewind()
- fo... | Update generator for Python <I> StopIteration is a runtime error in Python <I>. This change eliminates that while preserving compatibility down to Python <I>. | py |
diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py
index <HASH>..<HASH> 100644
--- a/openupgradelib/openupgrade.py
+++ b/openupgradelib/openupgrade.py
@@ -2078,11 +2078,15 @@ def add_fields(env, field_spec):
# Add SQL column
if not table_name:
table_name = env[mode... | [FIX] add_fields: Respect sql_type and build safe query - Until now, `sql_type` was being ignored. Fix #<I> and respect it. - Use safe sql builder. If, i.e. one column was called "select", previous implementation with `AsIs()` would fail. | py |
diff --git a/tensorbase/stoch.py b/tensorbase/stoch.py
index <HASH>..<HASH> 100644
--- a/tensorbase/stoch.py
+++ b/tensorbase/stoch.py
@@ -108,7 +108,10 @@ class GaussianLayerConv(StochLayer):
x must be 2D. [batch_size * eqsamples* iwsamples, num_latent]
"""
mu, std, h, w = self.params
- ... | convnet and deconvnet | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,14 +4,14 @@ import setuptools
setup(
name = 'proximityhash',
py_modules = ['proximityhash'],
- version = '0.0.1',
+ version = '0.0.3',
description = 'Geohashes in proximity',
long_description = open('README.r... | setup.py updated for new version | py |
diff --git a/grimoire/elk/kitsune.py b/grimoire/elk/kitsune.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/kitsune.py
+++ b/grimoire/elk/kitsune.py
@@ -108,7 +108,7 @@ class KitsuneEnrich(Enrich):
if kind == 'question':
eitem['type'] = kind
# metadata fields to copy
- co... | [kietsune][enrich] Add offset field needed for incremental enrich. Useful as numberic unique id also. | py |
diff --git a/models.py b/models.py
index <HASH>..<HASH> 100644
--- a/models.py
+++ b/models.py
@@ -132,8 +132,8 @@ class HMM(ModelGibbsSampling, ModelEM, ModelMAPEM):
### generation
- def generate(self,T,keep=True):
- tempstates = self._states_class(model=self,T=T,initialize_from_prior=True)
+ def... | added kwargs to generate | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -4429,19 +4429,16 @@ def _expr_depends_on(expr, sym):
if right is sym:
left, right = right, left
-
- if left is not sym:
+ elif left is not sym:
return Fal... | Clean up _expr_depends_on() a bit 'left' is guaranteed to be 'sym' if the preceding conditional was true. | py |
diff --git a/tests/views.py b/tests/views.py
index <HASH>..<HASH> 100644
--- a/tests/views.py
+++ b/tests/views.py
@@ -78,6 +78,24 @@ class SudoViewTestCase(BaseTestCase):
self.assertEqual(response.status_code, 302)
self.assertEqual(response['Location'], REDIRECT_URL)
+ def test_redirect_after_su... | Add a test of session based sudo redirects. | py |
diff --git a/dallinger/deployment.py b/dallinger/deployment.py
index <HASH>..<HASH> 100644
--- a/dallinger/deployment.py
+++ b/dallinger/deployment.py
@@ -406,7 +406,12 @@ class DebugDeployment(HerokuLocalDeployment):
dashboard_url = self.with_proxy_port("{}/dashboard/".format(base_url))
... | Open dashboard window asynchronously (#<I>) Modified `dallinger debug` to open the dashboard asynchronously. | py |
diff --git a/moto/s3/responses.py b/moto/s3/responses.py
index <HASH>..<HASH> 100755
--- a/moto/s3/responses.py
+++ b/moto/s3/responses.py
@@ -432,8 +432,19 @@ class ResponseObject(_TemplateEnvironmentMixin):
else:
if body:
+ # us-east-1, the default AWS region behaves a bit diffe... | feat(#<I>): LocationConstraint us-east-1 is not accepted by the CreateBucket operation | py |
diff --git a/karaage/datastores/ldap_datastore.py b/karaage/datastores/ldap_datastore.py
index <HASH>..<HASH> 100644
--- a/karaage/datastores/ldap_datastore.py
+++ b/karaage/datastores/ldap_datastore.py
@@ -42,8 +42,10 @@ class PersonalDataStore(base.PersonalDataStore):
conn = LDAPClient()
c... | Set django password to unusable once user has password in ldap | py |
diff --git a/pcef/modes/cc.py b/pcef/modes/cc.py
index <HASH>..<HASH> 100644
--- a/pcef/modes/cc.py
+++ b/pcef/modes/cc.py
@@ -300,6 +300,7 @@ class CodeCompletionMode(Mode):
cr.setX(cr.x() - len(completionPrefix) * charWidth)
cr.setWidth(400)
c.complete(cr) # popup it up!
+ ... | CC bug fix: on windows space was inserted when doing ctrl+space | py |
diff --git a/datafilters/extra_lookup.py b/datafilters/extra_lookup.py
index <HASH>..<HASH> 100644
--- a/datafilters/extra_lookup.py
+++ b/datafilters/extra_lookup.py
@@ -1,4 +1,3 @@
-
class Extra(object):
def __init__(self, where=None, tables=None):
@@ -21,4 +20,4 @@ class Extra(object):
# little magic
... | Add a magic member __nonzero__ to Extra | py |
diff --git a/test/system/test_cql.py b/test/system/test_cql.py
index <HASH>..<HASH> 100644
--- a/test/system/test_cql.py
+++ b/test/system/test_cql.py
@@ -591,3 +591,13 @@ class TestCql(ThriftTester):
""", "test_escaped_quotes")
assert (len(r) == 1) and (len(r[0]) == 1), "wrong number of results"
... | stubbed functional test-case for typed keys Patch by eevans git-svn-id: <URL> | py |
diff --git a/ckanutils.py b/ckanutils.py
index <HASH>..<HASH> 100644
--- a/ckanutils.py
+++ b/ckanutils.py
@@ -32,7 +32,7 @@ from pprint import pprint
from ckanapi import NotFound, NotAuthorized, ValidationError
from tabutils import process as pr, io, fntools as ft, convert as cv
-__version__ = '0.14.6'
+__version_... | Bump to version <I> | py |
diff --git a/data_exports/templatetags/getter_tags.py b/data_exports/templatetags/getter_tags.py
index <HASH>..<HASH> 100644
--- a/data_exports/templatetags/getter_tags.py
+++ b/data_exports/templatetags/getter_tags.py
@@ -22,7 +22,10 @@ def getattribute(model, item):
"""
elements = item.split('.')
eleme... | Handle DoesNotExist (and others) | py |
diff --git a/gns3server/compute/docker/docker_vm.py b/gns3server/compute/docker/docker_vm.py
index <HASH>..<HASH> 100644
--- a/gns3server/compute/docker/docker_vm.py
+++ b/gns3server/compute/docker/docker_vm.py
@@ -361,7 +361,7 @@ class DockerVM(BaseNode):
try:
yield from s... | Fix an error when logging Docker container fail to start | py |
diff --git a/delphin/commands.py b/delphin/commands.py
index <HASH>..<HASH> 100644
--- a/delphin/commands.py
+++ b/delphin/commands.py
@@ -365,7 +365,7 @@ def _lines_to_records(lineiter, colnames, split, fields):
i_ids = set()
for i, line in enumerate(lineiter, 1):
- colvals = split(line)
+ co... | Avoid inserting newlines into item files w/ mkprof | py |
diff --git a/telemetry/telemetry/core/chrome/tab_list_backend.py b/telemetry/telemetry/core/chrome/tab_list_backend.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/chrome/tab_list_backend.py
+++ b/telemetry/telemetry/core/chrome/tab_list_backend.py
@@ -37,8 +37,7 @@ class TabListBackend(object):
retu... | [Telemetry] Fix tab crash handling. I broke some unit tests in <URL> | py |
diff --git a/OpenPNM/GEN/__CustomGenerator__.py b/OpenPNM/GEN/__CustomGenerator__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/GEN/__CustomGenerator__.py
+++ b/OpenPNM/GEN/__CustomGenerator__.py
@@ -58,7 +58,11 @@ class Custom(GenericGenerator):
self._net_img = image_shape
self._Lc = lattice... | Enabled 2D images as input in CustomGenerator Former-commit-id: fb2b<I>c<I>e0a3ea6f<I>bf<I>dfc2ae6 Former-commit-id: 2a<I>dbecd<I>c8e6df7c3e<I>ff<I>a<I>b7b3c | py |
diff --git a/hitcount/admin.py b/hitcount/admin.py
index <HASH>..<HASH> 100644
--- a/hitcount/admin.py
+++ b/hitcount/admin.py
@@ -2,7 +2,7 @@
from __future__ import unicode_literals
from django.contrib import admin
from django.core.exceptions import PermissionDenied
-from django.utils.translation import ugettext_la... | Update admin.py RemovedInDjango<I>Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy() | py |
diff --git a/varify/samples/management/subcommands/gene_ranks.py b/varify/samples/management/subcommands/gene_ranks.py
index <HASH>..<HASH> 100644
--- a/varify/samples/management/subcommands/gene_ranks.py
+++ b/varify/samples/management/subcommands/gene_ranks.py
@@ -111,7 +111,7 @@ class Command(BaseCommand):
... | Use correct comparison operator for checking if sample is up to date | py |
diff --git a/hn/hn.py b/hn/hn.py
index <HASH>..<HASH> 100644
--- a/hn/hn.py
+++ b/hn/hn.py
@@ -203,14 +203,20 @@ class Story(object):
"""
For the story, builds and returns a list of Comment objects.
"""
- '''
+
if not self.rank:
# this post has not b... | stil trying to figure out the design for by id | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -1507,8 +1507,6 @@ class ResponseFuture(object):
retry_type, consistency = retry
if retry_type is RetryPolicy.RETRY:
- if s... | Correctly count all retry attempts | py |
diff --git a/shinken/external_command.py b/shinken/external_command.py
index <HASH>..<HASH> 100644
--- a/shinken/external_command.py
+++ b/shinken/external_command.py
@@ -1114,7 +1114,7 @@ class ExternalCommandManager:
# ENABLE_SVC_NOTIFICATIONS;<host_name>;<service_description>
def ENABLE_SVC_NOTIFICATIONS... | fix a type. thanks jean | py |
diff --git a/dvc/config.py b/dvc/config.py
index <HASH>..<HASH> 100644
--- a/dvc/config.py
+++ b/dvc/config.py
@@ -382,6 +382,9 @@ class Config(object): # pylint: disable=too-many-instance-attributes
cache[self.PRIVATE_CWD] = os.path.dirname(fname)
def _resolve_paths(self, config, fname):
+ if f... | config: handle run outside of dvc repo | py |
diff --git a/colorlog/logging.py b/colorlog/logging.py
index <HASH>..<HASH> 100644
--- a/colorlog/logging.py
+++ b/colorlog/logging.py
@@ -10,7 +10,7 @@ from colorlog.colorlog import ColoredFormatter
BASIC_FORMAT = "%(log_color)s%(levelname)s%(reset)s:%(name)s:%(message)s"
-def basicConfig(style='%', log_colors=No... | Change basicConfig to original call and use pop instead to maintain similar code as the python logging module. | py |
diff --git a/rootpy/logger/color.py b/rootpy/logger/color.py
index <HASH>..<HASH> 100644
--- a/rootpy/logger/color.py
+++ b/rootpy/logger/color.py
@@ -56,6 +56,18 @@ class CustomColoredFormatter(CustomFormatter):
record.asctime = self.formatTime(record, self.datefmt)
return self._fmt.format(**record._... | Add a more robust check whether the default logger's handler is attached to a terminal | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,8 @@
from setuptools import setup
+import sys
+
+if sys.version_info[0] == 2:
+ sys.exit("Sorry, Python 2 is no longer supported. Please use a version of Qhue < 2.0.")
major_version = 2
minor_version = 0
@@ -11... | Give a helpful hint if people try to install under Python 2. | py |
diff --git a/yaka/web/frontend.py b/yaka/web/frontend.py
index <HASH>..<HASH> 100644
--- a/yaka/web/frontend.py
+++ b/yaka/web/frontend.py
@@ -276,9 +276,11 @@ class Module(object):
bc = self.bread_crumbs()
# TODO: should be an instance variable.
- table_view = AjaxMainTableView(columns=self.list_view_co... | Module listing: set ajaxtable view name, in order to have bstatesave activated | py |
diff --git a/pmagpy/new_builder.py b/pmagpy/new_builder.py
index <HASH>..<HASH> 100644
--- a/pmagpy/new_builder.py
+++ b/pmagpy/new_builder.py
@@ -397,7 +397,8 @@ class Contribution(object):
self.tables[table].df.replace("^[Nn]ot [Ss]pecified", '',
regex=True, inp... | make contribution propagate lithology values from samples —> specimens even if nothing is available in sites | py |
diff --git a/openquakeserver/settings.py b/openquakeserver/settings.py
index <HASH>..<HASH> 100644
--- a/openquakeserver/settings.py
+++ b/openquakeserver/settings.py
@@ -1,3 +1,5 @@
+import os
+
from openquake.engine import settings as oqe_settings
DEBUG = True
@@ -110,6 +112,9 @@ TEMPLATE_DIRS = (
# Put stri... | settings: Settings can now find form templates in the `templates/` dir. | py |
diff --git a/salt/states/mdadm.py b/salt/states/mdadm.py
index <HASH>..<HASH> 100644
--- a/salt/states/mdadm.py
+++ b/salt/states/mdadm.py
@@ -107,7 +107,8 @@ def present(name,
new_devices.append(dev)
if len(uuid_dict) > 1:
- ret['comment'] = 'Devices are a mix of RAID constituents with multi... | Minor bugfixes - do not try to add devices if assemble failed - sort uuid list in error message | py |
diff --git a/psiturk/dashboard_server.py b/psiturk/dashboard_server.py
index <HASH>..<HASH> 100644
--- a/psiturk/dashboard_server.py
+++ b/psiturk/dashboard_server.py
@@ -88,15 +88,10 @@ def at_a_glance_model():
def verify_aws():
"""
"""
- print "Verifying aws login, dashboard_server 1."
services = D... | Removed needless debugging lines. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -48,9 +48,9 @@ copyright = u'2011, Brian K. Jones'
# built documents.
#
# The short X.Y version.
-version = '0.9'
+version = '1.0.0'
# The full version, including alpha/beta/rc tags.
-release = '0.9'
+relea... | Bumped version in Sphinx config :/ | py |
diff --git a/datadog_checks_base/datadog_checks/base/stubs/aggregator.py b/datadog_checks_base/datadog_checks/base/stubs/aggregator.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_base/datadog_checks/base/stubs/aggregator.py
+++ b/datadog_checks_base/datadog_checks/base/stubs/aggregator.py
@@ -234,7 +234,9 @@ class... | Print similar metrics when asserting metric has tag (#<I>) * Print similar metrics when asserting metric has tag | py |
diff --git a/webview/cocoa.py b/webview/cocoa.py
index <HASH>..<HASH> 100755
--- a/webview/cocoa.py
+++ b/webview/cocoa.py
@@ -325,12 +325,18 @@ class BrowserView:
else:
self.loaded.set()
+ config = self.webkit.configuration()
+ try:
+ config.preferences().setValue_forKe... | [Cocoa] Disable delete key nav via preference flag More direct and robust than the current method. Works for internal links as well. And this seems to be the method used by Safari. But the flag is available only from macOS <I>+. | py |
diff --git a/pebble/common.py b/pebble/common.py
index <HASH>..<HASH> 100644
--- a/pebble/common.py
+++ b/pebble/common.py
@@ -22,7 +22,6 @@ import signal
from threading import Thread
from traceback import format_exc
-from multiprocessing import Process
from concurrent.futures import Future
@@ -135,8 +134,9 @@... | issue #<I>, common: add `multiprocessing` context in `launch_process` | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ setup(
platforms="Posix; MacOS X",
url="https://github.com/widdowquinn/pyani", # project home page
download_url="https://github.com/widdowquinn/pyani/releases",
- scripts=[],
+ scripts=['av... | setup.py: Added average_nucleotide_identity.py script to setup.py so now installs to $PATH | py |
diff --git a/opaque_keys/edx/keys.py b/opaque_keys/edx/keys.py
index <HASH>..<HASH> 100644
--- a/opaque_keys/edx/keys.py
+++ b/opaque_keys/edx/keys.py
@@ -141,6 +141,13 @@ class UsageKey(CourseObjectMixin, OpaqueKey):
"""
raise NotImplementedError()
+ @property
+ def block_id(self):
+ "... | Add an abstract block_id property | py |
diff --git a/citrination_client/models/tests/test_models_client.py b/citrination_client/models/tests/test_models_client.py
index <HASH>..<HASH> 100644
--- a/citrination_client/models/tests/test_models_client.py
+++ b/citrination_client/models/tests/test_models_client.py
@@ -177,7 +177,7 @@ def test_can_submit_run_with_... | Updating reason for limiting test to public | py |
diff --git a/tensor2tensor/utils/metrics.py b/tensor2tensor/utils/metrics.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/utils/metrics.py
+++ b/tensor2tensor/utils/metrics.py
@@ -201,12 +201,13 @@ def two_class_log_likelihood(predictions, labels, weights_fn=None):
"""
del weights_fn
float_labels = tf.cast(... | Prevent float-type mismatches by converting predictions to float<I>. (The labels had already been so converted.) PiperOrigin-RevId: <I> | py |
diff --git a/playhouse/dataset.py b/playhouse/dataset.py
index <HASH>..<HASH> 100644
--- a/playhouse/dataset.py
+++ b/playhouse/dataset.py
@@ -18,10 +18,11 @@ from playhouse.reflection import Introspector
if sys.version_info[0] == 3:
basestring = str
from functools import reduce
-
-
-def open_file(f, mode, e... | <I> compat fix for open() change in dataset. | py |
diff --git a/flask_dance/contrib/gitlab.py b/flask_dance/contrib/gitlab.py
index <HASH>..<HASH> 100644
--- a/flask_dance/contrib/gitlab.py
+++ b/flask_dance/contrib/gitlab.py
@@ -51,9 +51,9 @@ def make_gitlab_blueprint(
client_id=client_id,
client_secret=client_secret,
scope=scope,
- b... | Fix bad copypasta in gitlab blueprint factory. | py |
diff --git a/indra/tests/test_pubmed_client.py b/indra/tests/test_pubmed_client.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_pubmed_client.py
+++ b/indra/tests/test_pubmed_client.py
@@ -204,3 +204,13 @@ def test_get_supplementary_annotations():
assert supp_ann['type'] == 'supplementary'
assert supp_a... | Moved tests to pubmed_client | py |
diff --git a/mythril/disassembler/callgraph.py b/mythril/disassembler/callgraph.py
index <HASH>..<HASH> 100644
--- a/mythril/disassembler/callgraph.py
+++ b/mythril/disassembler/callgraph.py
@@ -100,17 +100,15 @@ def serialize(_svm, color_map):
nodes = []
edges = []
- print(_svm.nodes)
+ for node_key ... | Update CFG generator to new node format | py |
diff --git a/guiconfig.py b/guiconfig.py
index <HASH>..<HASH> 100755
--- a/guiconfig.py
+++ b/guiconfig.py
@@ -1475,9 +1475,8 @@ def _toggle_showall(_):
def _do_showall():
# Updates the UI for the current show-all setting
- # Don't allow turning off show-all if we're in single-menu mode and the
- # curren... | guiconfig: Check for visible nodes before turning off show-all in full-tree mode If there are no visible nodes in the entire tree, guiconfig automatically starts in show-all mode. Previously, there was no check for visible nodes when turning off show-all in full-tree mode in this case, leading to errors. Fix it by ch... | py |
diff --git a/testkit/backend.py b/testkit/backend.py
index <HASH>..<HASH> 100644
--- a/testkit/backend.py
+++ b/testkit/backend.py
@@ -3,12 +3,15 @@ Executed in Java driver container.
Assumes driver and backend has been built.
Responsible for starting the test backend.
"""
-import os, subprocess
+import os
+import s... | TestKit backend output goes to stdout/stderr (#<I>) From there, TestKit can pick it up and write it into logfiles if desired. <URL> | py |
diff --git a/salt/fileserver/hgfs.py b/salt/fileserver/hgfs.py
index <HASH>..<HASH> 100644
--- a/salt/fileserver/hgfs.py
+++ b/salt/fileserver/hgfs.py
@@ -324,7 +324,7 @@ def update():
log.error(
'Exception {0} caught while updating hgfs remote {1}'
.format(exc, repo['uri'... | Use `exc_info_on_loglevel` instead of `exc_info` | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.