diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/invenio_kwalitee/kwalitee.py b/invenio_kwalitee/kwalitee.py
index <HASH>..<HASH> 100644
--- a/invenio_kwalitee/kwalitee.py
+++ b/invenio_kwalitee/kwalitee.py
@@ -249,6 +249,7 @@ def pull_request(pull_request_url, status_url, config):
check_pep8 = config.get("CHECK_PEP8", True)
check_pyflakes = co... | Read PEP8 ignore from config | py |
diff --git a/thumbor/engines/extensions/pil.py b/thumbor/engines/extensions/pil.py
index <HASH>..<HASH> 100644
--- a/thumbor/engines/extensions/pil.py
+++ b/thumbor/engines/extensions/pil.py
@@ -429,7 +429,7 @@ class GifWriter:
# Gather info
data = getdata(im)
- imdes,... | Fix broken gif output with pillow <I>.x They changed number of elements output in getdata function: <URL> | py |
diff --git a/buildutils/bundle.py b/buildutils/bundle.py
index <HASH>..<HASH> 100644
--- a/buildutils/bundle.py
+++ b/buildutils/bundle.py
@@ -35,8 +35,8 @@ pjoin = os.path.join
# Constants
#-----------------------------------------------------------------------------
-bundled_version = (0,5,2)
-libcapnp = "capnpro... | Bump bundled capnp version to <I> | py |
diff --git a/pandas/tests/indexes/datetimes/test_tools.py b/pandas/tests/indexes/datetimes/test_tools.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/indexes/datetimes/test_tools.py
+++ b/pandas/tests/indexes/datetimes/test_tools.py
@@ -1035,6 +1035,12 @@ class TestToDatetime:
result = pd.to_datetime(expecte... | TST: add test for #<I> (#<I>) | py |
diff --git a/PyFunceble/cli/utils/testing.py b/PyFunceble/cli/utils/testing.py
index <HASH>..<HASH> 100644
--- a/PyFunceble/cli/utils/testing.py
+++ b/PyFunceble/cli/utils/testing.py
@@ -236,6 +236,9 @@ def get_subjects_from_line(
if checker_type.lower() != "syntax":
for index, subject in enumerate(resu... | Fix issue when a subject in the list is empty. This patch fixes #<I>. Indeed, before this patch, we assumed that the list was perfectly formatted. Contributors: * @spirillen | py |
diff --git a/mygeotab/api.py b/mygeotab/api.py
index <HASH>..<HASH> 100644
--- a/mygeotab/api.py
+++ b/mygeotab/api.py
@@ -243,7 +243,10 @@ class MyGeotabException(Exception):
self.stack_trace = main_error['stackTrace']
def __str__(self):
- return '{0}\n{1}\n\nStacktrace:\n{2}'.format(self.name, ... | Don't show stacktrace heading if there isn't a stacktrace | py |
diff --git a/perceval/backends/core/bugzillarest.py b/perceval/backends/core/bugzillarest.py
index <HASH>..<HASH> 100644
--- a/perceval/backends/core/bugzillarest.py
+++ b/perceval/backends/core/bugzillarest.py
@@ -60,7 +60,7 @@ class BugzillaREST(Backend):
:param tag: label used to mark the data
:param archi... | [bugzillarest] Set category when calling fetch and fetch_from_archive This patch adds to the params of the fetch_items method the category. Thus, it allows to handle fetching operations (fetch and fetch_from_archive) with multiple categories | py |
diff --git a/alot/db/utils.py b/alot/db/utils.py
index <HASH>..<HASH> 100644
--- a/alot/db/utils.py
+++ b/alot/db/utils.py
@@ -57,7 +57,7 @@ def add_signature_headers(mail, sigs, error_msg):
)
-def get_params(mail, failobj=None, header='content-type', unquote=True):
+def get_params(mail, failobj=list(), header... | Fix the default failobj of get_params Formerly None was used as failobj, but None is not iterable and that is all that get_params does. Use list() instead which is iterable. Closes #<I>. | py |
diff --git a/pythainlp/tokenize/__init__.py b/pythainlp/tokenize/__init__.py
index <HASH>..<HASH> 100644
--- a/pythainlp/tokenize/__init__.py
+++ b/pythainlp/tokenize/__init__.py
@@ -122,17 +122,25 @@ def sent_tokenize(text: str, engine: str = "whitespace+newline") -> List[str]:
def subword_tokenize(text: str, engine:... | include etcc in subword_tokenize module as advertised on README.md | py |
diff --git a/tests/test_parts/test_pandabox/test_pandaboxchildpart.py b/tests/test_parts/test_pandabox/test_pandaboxchildpart.py
index <HASH>..<HASH> 100644
--- a/tests/test_parts/test_pandabox/test_pandaboxchildpart.py
+++ b/tests/test_parts/test_pandabox/test_pandaboxchildpart.py
@@ -26,7 +26,8 @@ class PandABoxChild... | Update test_pandaboxchildpart.py Forgot that Mocks have a special meaning for "name" | py |
diff --git a/mordred/_base/result.py b/mordred/_base/result.py
index <HASH>..<HASH> 100644
--- a/mordred/_base/result.py
+++ b/mordred/_base/result.py
@@ -118,7 +118,7 @@ class Result(object):
>>> from rdkit import Chem
>>> result = Calculator(descriptors)(Chem.MolFromSmiles("C1CCCCC1"))
>>> ... | fix doctest of Result.name | py |
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py
index <HASH>..<HASH> 100644
--- a/wkhtmltopdf/views.py
+++ b/wkhtmltopdf/views.py
@@ -66,7 +66,7 @@ class PDFTemplateResponse(TemplateResponse, PDFResponse):
self.override_settings = override_settings
def render_to_temporary_file(self, template_na... | .html default suffix for render_to_temporary_file It's expected by wkhtmltopdf that the files should end in .html, so it may as well be the default. | py |
diff --git a/spacy/tests/vocab/test_intern.py b/spacy/tests/vocab/test_intern.py
index <HASH>..<HASH> 100644
--- a/spacy/tests/vocab/test_intern.py
+++ b/spacy/tests/vocab/test_intern.py
@@ -96,7 +96,7 @@ def test_pickle_string_store(sstore):
def test_dump_load(sstore):
id_ = sstore[u'qqqqq']
- with tempfile... | * Fix mode on text file for Python3 in strings test | py |
diff --git a/stanza/utils/training/run_mwt.py b/stanza/utils/training/run_mwt.py
index <HASH>..<HASH> 100644
--- a/stanza/utils/training/run_mwt.py
+++ b/stanza/utils/training/run_mwt.py
@@ -33,7 +33,7 @@ def check_mwt(filename):
"""
Checks whether or not there are MWTs in the given conll file
"""
- d... | Fix MWT training from the earlier doc writing changes | py |
diff --git a/parsl/tests/test_providers/test_local_provider.py b/parsl/tests/test_providers/test_local_provider.py
index <HASH>..<HASH> 100644
--- a/parsl/tests/test_providers/test_local_provider.py
+++ b/parsl/tests/test_providers/test_local_provider.py
@@ -1,5 +1,6 @@
import os
import pathlib
+import pytest
import... | Make provider tests run in local mode (#<I>) | py |
diff --git a/amqpstorm/channel0.py b/amqpstorm/channel0.py
index <HASH>..<HASH> 100644
--- a/amqpstorm/channel0.py
+++ b/amqpstorm/channel0.py
@@ -150,5 +150,5 @@ class Channel0(object):
'consumer_cancel_notify': True,
'authentication_failure_close': True,
},
-... | Updated channel0 information with a link to github | py |
diff --git a/pyvisa/ctwrapper/functions.py b/pyvisa/ctwrapper/functions.py
index <HASH>..<HASH> 100644
--- a/pyvisa/ctwrapper/functions.py
+++ b/pyvisa/ctwrapper/functions.py
@@ -796,7 +796,10 @@ def lock(library, session, lock_type, timeout, requested_key=None):
else:
access_key = create_string_buffer(25... | lock_excl bug fix (ctwrapper/functions lock was failing when access_key was None) | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -22,12 +22,6 @@ import sys
open(os.path.join('..', '__init__.py'), 'a')
sys.path.insert(0, os.path.abspath(os.path.join('..')))
sys.path.insert(0, os.path.abspath(os.path.join('..', 'controller')))
-# create... | ref(docs): remove local_settings.py hack for secret key Doc generation creates a local_settings.py file, because at one time having SECRET_KEY unset caused an error when importing Django code. That was essentially a temp file that was never cleaned up, and it no longer seems to be necessary. | py |
diff --git a/backtrader/broker.py b/backtrader/broker.py
index <HASH>..<HASH> 100644
--- a/backtrader/broker.py
+++ b/backtrader/broker.py
@@ -126,6 +126,19 @@ class BrokerBase(with_metaclass(MetaBroker, object)):
fundvalue = property(get_fundvalue)
+ def set_fundmode(self, fundmode, fundstartval=None):
+ ... | Provide default fundmode methods for all brokers | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -120,6 +120,8 @@ class ConnectionTests(TestCase):
obj = conn.get('cn=External Anonymous',
base_dn='ou=Groups,dc=ucdavis,dc=edu')
self.assertTrue(conn.compare(ob... | Added a test for compare that returns False, refs #4. | py |
diff --git a/auto/src/rabird/auto/window/win32.py b/auto/src/rabird/auto/window/win32.py
index <HASH>..<HASH> 100644
--- a/auto/src/rabird/auto/window/win32.py
+++ b/auto/src/rabird/auto/window/win32.py
@@ -29,6 +29,7 @@ class Window(common.Window):
def get_title(cls, handle):
return win32gui.GetWindowTex... | Fixed all functions that related with find(), because the return value type changed by find(). | py |
diff --git a/tests/test_repo_interactions.py b/tests/test_repo_interactions.py
index <HASH>..<HASH> 100644
--- a/tests/test_repo_interactions.py
+++ b/tests/test_repo_interactions.py
@@ -3,11 +3,18 @@ import os
import chartpress
def test_git_repo_fixture(git_repo):
+ # assert we use the git repo as our current w... | Test successful gh-pages branch setup | py |
diff --git a/django_q/tasks.py b/django_q/tasks.py
index <HASH>..<HASH> 100644
--- a/django_q/tasks.py
+++ b/django_q/tasks.py
@@ -449,6 +449,7 @@ class Iter(object):
self.args.append(args)
if self.started:
self.started = False
+ return self.length()
def run(self):
... | returns the size of the chain or iter on append | py |
diff --git a/fcn/datasets/pascal.py b/fcn/datasets/pascal.py
index <HASH>..<HASH> 100644
--- a/fcn/datasets/pascal.py
+++ b/fcn/datasets/pascal.py
@@ -4,6 +4,7 @@ from __future__ import print_function
import cPickle as pickle
import os.path as osp
+import shutil
import tempfile
import chainer
@@ -44,7 +45,8 @@ ... | Remove db_path at deletion | py |
diff --git a/peewee_async.py b/peewee_async.py
index <HASH>..<HASH> 100644
--- a/peewee_async.py
+++ b/peewee_async.py
@@ -328,6 +328,12 @@ class AsyncQueryResult:
def __iter__(self):
return iter(self._result)
+ def __getitem__(self, key):
+ return self._result[key]
+
+ def __len__(self):
+... | some facilities for AsyncQueryResult | py |
diff --git a/agents/tools/wrappers.py b/agents/tools/wrappers.py
index <HASH>..<HASH> 100644
--- a/agents/tools/wrappers.py
+++ b/agents/tools/wrappers.py
@@ -118,7 +118,7 @@ class FrameHistory(object):
self._past_indices = past_indices
self._step = 0
self._buffer = None
- self._capacity = max(past_in... | Fix off-by-one bug in FrameHistory environment wrapper (#<I>) | py |
diff --git a/src/scriptworker/cot/verify.py b/src/scriptworker/cot/verify.py
index <HASH>..<HASH> 100644
--- a/src/scriptworker/cot/verify.py
+++ b/src/scriptworker/cot/verify.py
@@ -2070,13 +2070,13 @@ SCRIPTWORKER_GITHUB_OAUTH_TOKEN to an OAUTH token with read permissions to the r
log.setLevel(level)
loggin... | Log tmpdir path before running cot verify In theory we should log where the files are in the `finally` block, but for some reason this wasn't working for me. Working around this by logging the path before we run cot verify. | py |
diff --git a/mongoframes/frames.py b/mongoframes/frames.py
index <HASH>..<HASH> 100644
--- a/mongoframes/frames.py
+++ b/mongoframes/frames.py
@@ -1,5 +1,4 @@
from blinker import signal
-from bson.code import Code
from bson.objectid import ObjectId
from copy import deepcopy
from datetime import date, datetime, time... | Removed import of bson Code as this was breaking in latest version of pymongo | py |
diff --git a/dustmaps/sfd.py b/dustmaps/sfd.py
index <HASH>..<HASH> 100644
--- a/dustmaps/sfd.py
+++ b/dustmaps/sfd.py
@@ -30,7 +30,7 @@ import astropy.io.fits as fits
from scipy.ndimage import map_coordinates
from .std_paths import *
-from .map_base import DustMap, ensure_flat_galactic
+from .map_base import DustM... | Added web query for SFD. | py |
diff --git a/chatterbot/adapters/logic/closest_meaning.py b/chatterbot/adapters/logic/closest_meaning.py
index <HASH>..<HASH> 100644
--- a/chatterbot/adapters/logic/closest_meaning.py
+++ b/chatterbot/adapters/logic/closest_meaning.py
@@ -8,8 +8,8 @@ from nltk import word_tokenize
class ClosestMeaningAdapter(LogicAd... | ClosestMeaningAdapter wasn't useable TypeError: __init__() got an unexpected keyword argument 'logic_adapter because chatterbot.py initializes the logic adapters with his kwargs. The Closestmatch adapter uses the __init__() from logic.py | py |
diff --git a/pyked/chemked.py b/pyked/chemked.py
index <HASH>..<HASH> 100644
--- a/pyked/chemked.py
+++ b/pyked/chemked.py
@@ -227,6 +227,22 @@ class DataPoint(object):
setattr(self, prop.replace('-', '_'), None)
self.composition = properties['composition']
+ self.composition_type = s... | :sparkles: Check that composition is properly specified Each DataPoint should use one of mole-fraction, mass-fraction or mole-percent for each of the species, and not mix within a DataPoint. In addition, the sum of the values should be <I> or <I>, depending on the choice | py |
diff --git a/Lib/glyphs2ufo/interpolation.py b/Lib/glyphs2ufo/interpolation.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphs2ufo/interpolation.py
+++ b/Lib/glyphs2ufo/interpolation.py
@@ -57,6 +57,7 @@ def interpolate(rfonts, master_dir, out_dir, designspace_path,
ufo = OpenFont(path)
set_custom_params... | Save instance UFOs after setting custom params This way, the UFOs returned by the interpolate function are consistent with what's saved on disk. | py |
diff --git a/xray/plot/plot.py b/xray/plot/plot.py
index <HASH>..<HASH> 100644
--- a/xray/plot/plot.py
+++ b/xray/plot/plot.py
@@ -285,9 +285,10 @@ def _color_palette(cmap, n_colors):
try:
from seaborn.apionly import color_palette
pal = color_palette(cmap, n_colors=n_colors)
- except (TypeErro... | begrudgingly handle seaborn exception when jet is used as colormap | py |
diff --git a/pyjarowinkler/distance.py b/pyjarowinkler/distance.py
index <HASH>..<HASH> 100644
--- a/pyjarowinkler/distance.py
+++ b/pyjarowinkler/distance.py
@@ -12,7 +12,7 @@ __author__ = 'Jean-Bernard Ratte - jean.bernard.ratte@unary.ca'
"""
-def get_jaro_distance(first, second):
+def get_jaro_distance(first, s... | added ability to unable or disable winkler ajustment | py |
diff --git a/squad/settings.py b/squad/settings.py
index <HASH>..<HASH> 100644
--- a/squad/settings.py
+++ b/squad/settings.py
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
+import sys
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.pat... | settings: don't use whitenoise when running tests it seems that whitenoise would require collectstatic to be run before running the tests, which is somewhat inconvenient in development | py |
diff --git a/example/app.py b/example/app.py
index <HASH>..<HASH> 100644
--- a/example/app.py
+++ b/example/app.py
@@ -30,9 +30,14 @@ def create_users():
('joe@lp.com', 'password', ['editor'], True),
('jill@lp.com', 'password', ['author'], True),
('tiya@lp.com', 'password... | Try and fix an issue with python <I> | py |
diff --git a/test/test_big_phi.py b/test/test_big_phi.py
index <HASH>..<HASH> 100644
--- a/test/test_big_phi.py
+++ b/test/test_big_phi.py
@@ -114,5 +114,5 @@ def test_big_mip_big_network(big_subsys_all):
assert len(mip.partitioned_constellation) == 17
options.PRECISION = initial_precision
-def test_complex... | Comment-out test_complexes for now | py |
diff --git a/setup3.py b/setup3.py
index <HASH>..<HASH> 100755
--- a/setup3.py
+++ b/setup3.py
@@ -13,7 +13,7 @@ from distutils.unixccompiler import UnixCCompiler
def updateDocHeader(input, output):
docstrings = {}
- execfile(input, docstrings)
+ exec(compile(open(input, "rb").read(), input, 'exec'), docstrings)
... | execfile is deprecated in python 3 | py |
diff --git a/microdrop/feedback.py b/microdrop/feedback.py
index <HASH>..<HASH> 100755
--- a/microdrop/feedback.py
+++ b/microdrop/feedback.py
@@ -2271,8 +2271,8 @@ class FeedbackCalibrationController():
ind = mlab.find(np.logical_and(V_hv[:, i], V_fb[:, i]))
if len(ind):
lege... | Fix scaling of device capacitance (FB calibration) | py |
diff --git a/tests/test_querysetsequence.py b/tests/test_querysetsequence.py
index <HASH>..<HASH> 100644
--- a/tests/test_querysetsequence.py
+++ b/tests/test_querysetsequence.py
@@ -139,10 +139,17 @@ class TestQuerySequence(TestBase):
self.assertTrue(
options.app_label.startswith('queryset_sequen... | Fix tests for Django <I>. | py |
diff --git a/holoviews/core/layout.py b/holoviews/core/layout.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/layout.py
+++ b/holoviews/core/layout.py
@@ -338,6 +338,7 @@ class Layout(AttrTree, Dimensioned):
path = path[:2]
pl = len(path)
count = counts[path[:-1]]
+ ... | Fixes for Layout/Overlay path resolution | py |
diff --git a/utils/Sfile_util.py b/utils/Sfile_util.py
index <HASH>..<HASH> 100644
--- a/utils/Sfile_util.py
+++ b/utils/Sfile_util.py
@@ -141,7 +141,7 @@ def readheader(sfilename):
sfilename_header.time=UTCDateTime(int(topline[1:5]),int(topline[6:8]),
int(topline[8... | Correct timing in header Former-commit-id: <I>b<I>f1c<I>ae3fa<I>de6e<I>fc<I>e | py |
diff --git a/pysat/_meta.py b/pysat/_meta.py
index <HASH>..<HASH> 100644
--- a/pysat/_meta.py
+++ b/pysat/_meta.py
@@ -51,6 +51,20 @@ class Meta(object):
return True
return False
+ def __repr__(self):
+ # cover 1D parameters
+ output_str = 'Metadata for 1D parameters\n'
+ ... | Added __repr__ to Meta object. | py |
diff --git a/openpnm/topotools/_plottools.py b/openpnm/topotools/_plottools.py
index <HASH>..<HASH> 100644
--- a/openpnm/topotools/_plottools.py
+++ b/openpnm/topotools/_plottools.py
@@ -142,6 +142,7 @@ def plot_connections(network,
color = mcolors.to_rgb(color) + tuple([alpha])
# Override colors with color_b... | added automatic assignment of colors based on throats indices (instead of raising error) | py |
diff --git a/holoviews/core/settings.py b/holoviews/core/settings.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/settings.py
+++ b/holoviews/core/settings.py
@@ -223,6 +223,8 @@ class SettingsTree(AttrTree):
raise AttributeError("Settings object needs to have a group name specified.")
elif is... | Allowed setting subtrees on SettingsTree | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,14 +2,14 @@ from setuptools import setup, find_packages
setup(
name='edx-opaque-keys',
- version='0.3.0',
+ version='0.3.1',
author='edX',
url='https://github.com/edx/opaque-keys',
packages=find... | Pinning requirements We definitely need a later version of six to support python_2_unicode_compatible. Pinning the other requirements to avoid potential issues with major version bumps breaking this library. ECOM-<I> | py |
diff --git a/salt/modules/bsd_shadow.py b/salt/modules/bsd_shadow.py
index <HASH>..<HASH> 100644
--- a/salt/modules/bsd_shadow.py
+++ b/salt/modules/bsd_shadow.py
@@ -50,10 +50,14 @@ def info(name):
'name': '',
'passwd': ''}
- # Get password aging info on FreeBSD
- # TODO: Implement th... | Implement password aging info for all BSDs. | py |
diff --git a/ratcave/graphics/window.py b/ratcave/graphics/window.py
index <HASH>..<HASH> 100644
--- a/ratcave/graphics/window.py
+++ b/ratcave/graphics/window.py
@@ -54,11 +54,9 @@ class Window(visual.Window):
# Assign data to window after OpenGL context initialization
self.active_scene = active_sc... | extended Window.resize() to operate on virtual_scene as well, removing that property, too. | py |
diff --git a/batchpath.py b/batchpath.py
index <HASH>..<HASH> 100644
--- a/batchpath.py
+++ b/batchpath.py
@@ -30,7 +30,7 @@ class GeneratePaths:
if os.path.isfile(path):
if isvalid(path, self.access, self.extensions,
minsize=self.minsize):
- ... | Ensure GeneratePaths() methods always return absolute paths | py |
diff --git a/salt/states/esxcluster.py b/salt/states/esxcluster.py
index <HASH>..<HASH> 100644
--- a/salt/states/esxcluster.py
+++ b/salt/states/esxcluster.py
@@ -60,12 +60,29 @@ try:
except ImportError:
HAS_JSONSCHEMA = False
+try:
+ from pyVmomi import VmomiSupport
+ HAS_PYVMOMI = True
+except ImportErr... | Added python/pyvmomi compatibility check to salt.states.esxcluster | py |
diff --git a/lib/external_authentication_robot.py b/lib/external_authentication_robot.py
index <HASH>..<HASH> 100644
--- a/lib/external_authentication_robot.py
+++ b/lib/external_authentication_robot.py
@@ -1,20 +1,20 @@
# -*- coding: utf-8 -*-
##
-## This file is part of CDS Invenio.
+## This file is part of Invenio... | WebAccess: replace CDS Invenio by Invenio | py |
diff --git a/ignite/contrib/engines/common.py b/ignite/contrib/engines/common.py
index <HASH>..<HASH> 100644
--- a/ignite/contrib/engines/common.py
+++ b/ignite/contrib/engines/common.py
@@ -117,7 +117,7 @@ def _setup_common_training_handlers(
if to_save is not None:
if output_path is None:
r... | Update common.py (#<I>) Set require_empty=False to ModelCheckpoint in `setup_common_training_handlers`. Thus, we can restore from a checkpoint in a folder and continue write in the same folder | py |
diff --git a/phy/cluster/default_settings.py b/phy/cluster/default_settings.py
index <HASH>..<HASH> 100644
--- a/phy/cluster/default_settings.py
+++ b/phy/cluster/default_settings.py
@@ -149,8 +149,13 @@ cluster_manual_config = [
def _select_clusters(gui, args):
- args = list(map(int, args.split(' ')))
- gui... | Added range support in select-cluster snippet. | py |
diff --git a/pyes/es.py b/pyes/es.py
index <HASH>..<HASH> 100644
--- a/pyes/es.py
+++ b/pyes/es.py
@@ -142,7 +142,6 @@ class ES(object):
self.bulk_items = 0
self.info = {} #info about the current server
- self.mappings = None #track mapping
self.encoder = encoder
if self.enc... | Mapper does not work for all mappings and is not used by the ES class. Remove so that the break get_mapping. It can always be created explicitly. | py |
diff --git a/treetime/wrappers.py b/treetime/wrappers.py
index <HASH>..<HASH> 100644
--- a/treetime/wrappers.py
+++ b/treetime/wrappers.py
@@ -817,14 +817,14 @@ def estimate_clock_model(params):
res = myTree.reroot(params.reroot,
force_positive=not params.allow_negative_rate)
- ... | update clock command to handle covariance | py |
diff --git a/shinken/modules/livestatus_broker/livestatus.py b/shinken/modules/livestatus_broker/livestatus.py
index <HASH>..<HASH> 100644
--- a/shinken/modules/livestatus_broker/livestatus.py
+++ b/shinken/modules/livestatus_broker/livestatus.py
@@ -5117,6 +5117,7 @@ class LiveStatus:
return sum(float... | Oups: bad commit line (bad bash :) ), was max, min and cod functions in lviestatus return 0 for a void entry. | py |
diff --git a/distributions.py b/distributions.py
index <HASH>..<HASH> 100644
--- a/distributions.py
+++ b/distributions.py
@@ -3352,7 +3352,7 @@ class GammaCompoundDirichlet(CRP):
if counts.sum() == 0:
return 0, 0
else:
- m = sample_crp_tablecounts(self.concentration,counts,wei... | fix typo in concentration resampling code | py |
diff --git a/rest_api/api.py b/rest_api/api.py
index <HASH>..<HASH> 100644
--- a/rest_api/api.py
+++ b/rest_api/api.py
@@ -554,6 +554,8 @@ def get_evidence_for_stmts():
return stmts
stmts_out = _get_matching_stmts(stmt)
+ agent_name_list = [ag.name for ag in stmt.agent_list()]
+ stmts_out = stmts ... | rudimentary filter using agent name for database statements - previously returned statements containing at least one of the agents - changed so now we only get back statements containing both agents from the source statement for which we are seeking evidence in the db | py |
diff --git a/pyinaturalist/formatters.py b/pyinaturalist/formatters.py
index <HASH>..<HASH> 100644
--- a/pyinaturalist/formatters.py
+++ b/pyinaturalist/formatters.py
@@ -44,6 +44,7 @@ from pyinaturalist.models import (
User,
get_lazy_attrs,
)
+from pyinaturalist.pagination import Paginator
def enable_l... | Update pprint() to handle Paginator objects | py |
diff --git a/astroid/test_utils.py b/astroid/test_utils.py
index <HASH>..<HASH> 100644
--- a/astroid/test_utils.py
+++ b/astroid/test_utils.py
@@ -29,7 +29,7 @@ def require_version(minver: str = "0.0.0", maxver: str = "4.0.0") -> Callable:
Skip the test if older.
"""
- def parse(python_version: str) -> T... | Fix got "Tuple[int, ...]", expected "Tuple[int]" | py |
diff --git a/salt/modules/win_useradd.py b/salt/modules/win_useradd.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_useradd.py
+++ b/salt/modules/win_useradd.py
@@ -319,10 +319,10 @@ def _get_userprofile_from_registry(user, sid):
we can get it from the registry
'''
profile_dir = __salt__['reg.read_... | fix error when Windows users has unicode character | py |
diff --git a/aioconsole/stream.py b/aioconsole/stream.py
index <HASH>..<HASH> 100644
--- a/aioconsole/stream.py
+++ b/aioconsole/stream.py
@@ -210,7 +210,7 @@ async def ainput(prompt="", *, streams=None, use_stderr=False, loop=None):
async def aprint(
- *values, sep=None, end="\n", flush=False, streams=None, us... | Update default: `aprint(flush=False)` for `aprint(flush=True)` Before the update, `writer.drain()` was being called implicitly despite of value passed with `flush` parameter. It was reasonable in most of cases, so now `flush=True` by default | py |
diff --git a/src/translate/generator.py b/src/translate/generator.py
index <HASH>..<HASH> 100644
--- a/src/translate/generator.py
+++ b/src/translate/generator.py
@@ -62,8 +62,14 @@ class CTypesGenerator(object):
# Load library
if platform.system() == 'Windows':
- ... | Fixed DLL loading in Python >= <I>. Python <I> introduces a new handling of the DLL loading on Windows, which basically means it no longer respects the PATH env. variable, but uses only system path. New function `os.add_dll_directory` has been added to support the DLL load path change. <URL> | py |
diff --git a/MicroTokenizer/train/train_crf.py b/MicroTokenizer/train/train_crf.py
index <HASH>..<HASH> 100644
--- a/MicroTokenizer/train/train_crf.py
+++ b/MicroTokenizer/train/train_crf.py
@@ -8,17 +8,19 @@ from tqdm import tqdm
def train_crf(input_files_list, output_dir):
crf_trainer = CRFTrainer()
+ outp... | Fix: should using model_dir instead of model_file | py |
diff --git a/pywal/export.py b/pywal/export.py
index <HASH>..<HASH> 100644
--- a/pywal/export.py
+++ b/pywal/export.py
@@ -48,7 +48,7 @@ def every(colors, output_dir=CACHE_DIR):
for file in os.scandir(MODULE_DIR / "templates"):
template(all_colors, file.path, output_dir / file.name)
- print(f"export:... | general: Remove pointless f-string | py |
diff --git a/screamshot/__init__.py b/screamshot/__init__.py
index <HASH>..<HASH> 100644
--- a/screamshot/__init__.py
+++ b/screamshot/__init__.py
@@ -6,4 +6,5 @@ app_settings = dict({
'CAPTURE_ALLOWED_IPS': ('127.0.0.1',),
'CLI_ARGS': [],
'CASPERJS_CMD': None,
+ 'PHANTOMJS_CMD': None,
}, **getattr(s... | ref #<I> submodule django-streamshot as a tool for screen capture with customization of PHANTOMJS_CMD as configuration | py |
diff --git a/pypi_download_stats/dataquery.py b/pypi_download_stats/dataquery.py
index <HASH>..<HASH> 100644
--- a/pypi_download_stats/dataquery.py
+++ b/pypi_download_stats/dataquery.py
@@ -143,6 +143,11 @@ Resource-class.html>`_
datasetId=self._DATASET_ID)
while request is not ... | fix KeyError when number of results is evenly divisible by page size, and 'tables' key is missing | py |
diff --git a/haproxy/tests/test_haproxy_log_line.py b/haproxy/tests/test_haproxy_log_line.py
index <HASH>..<HASH> 100644
--- a/haproxy/tests/test_haproxy_log_line.py
+++ b/haproxy/tests/test_haproxy_log_line.py
@@ -212,3 +212,14 @@ class HaproxyLogLineTest(unittest.TestCase):
self.assertTrue(log_line.valid)
... | added unittest to check for host name | py |
diff --git a/lib/autokey/gtkui/__main__.py b/lib/autokey/gtkui/__main__.py
index <HASH>..<HASH> 100644
--- a/lib/autokey/gtkui/__main__.py
+++ b/lib/autokey/gtkui/__main__.py
@@ -8,3 +8,6 @@ def main():
a = Application()
a.main()
+
+if __name__ == '__main__':
+ main() | Allow autokey-gtk to be run directly from the source directory. It can be launched from lib/ using 'python3 -m autokey.gtkui [-lc]' | py |
diff --git a/trepan/processor/command/deparse.py b/trepan/processor/command/deparse.py
index <HASH>..<HASH> 100644
--- a/trepan/processor/command/deparse.py
+++ b/trepan/processor/command/deparse.py
@@ -88,7 +88,6 @@ See also:
text = out.getvalue()
pass
except:
- ... | Remove debug stmt | py |
diff --git a/py/code/frame.py b/py/code/frame.py
index <HASH>..<HASH> 100644
--- a/py/code/frame.py
+++ b/py/code/frame.py
@@ -50,6 +50,9 @@ class Frame(object):
"""
retval = []
for arg in self.code.getargs():
- retval.append((arg, self.f_locals[arg]))
+ try:
+ ... | [svn r<I>] Fix for a corner case: when the arguments are 'del'-eted from the local scope. This can also occur when using Psyco because f_locals is then empty. --HG-- branch : trunk | py |
diff --git a/pyghmi/ipmi/console.py b/pyghmi/ipmi/console.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/console.py
+++ b/pyghmi/ipmi/console.py
@@ -285,6 +285,7 @@ class Console(object):
while not (self.connected or self.broken):
session.Session.wait_for_rsp(timeout=10)
if not self.ipm... | Print SOL error on broken ipmi session If we detect a broken ipmi session on send, induce calling code to do error handling. Change-Id: I<I>a6fc6bf<I>e<I>f6c<I>b<I>e<I>b<I>a2ca | py |
diff --git a/cmsplugin_cascade/plugin_base.py b/cmsplugin_cascade/plugin_base.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/plugin_base.py
+++ b/cmsplugin_cascade/plugin_base.py
@@ -226,8 +226,8 @@ class CascadePluginBase(six.with_metaclass(CascadePluginBaseMetaclass, CMSPlugin
This differs from get_p... | Access plugin children by list index rather than by get() | py |
diff --git a/tests/myapp/__main__.py b/tests/myapp/__main__.py
index <HASH>..<HASH> 100644
--- a/tests/myapp/__main__.py
+++ b/tests/myapp/__main__.py
@@ -1,4 +1,7 @@
import sys
from .cli import main
+
+from hupper.compat import PY64, OS64
+print('PY64=%s\nOS64=%s' % (PY64, OS64))
sys.exit(main(sys.argv[1:]) or 0) | dummy to discover what appveyor is running | py |
diff --git a/nodeconductor/cost_tracking/models.py b/nodeconductor/cost_tracking/models.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/cost_tracking/models.py
+++ b/nodeconductor/cost_tracking/models.py
@@ -303,13 +303,6 @@ class ConsumptionDetails(core_models.UuidMixin, TimeStampedModel):
_consumed[co... | Delete unused method - nc-<I> | py |
diff --git a/discord/member.py b/discord/member.py
index <HASH>..<HASH> 100644
--- a/discord/member.py
+++ b/discord/member.py
@@ -264,6 +264,22 @@ class Member(discord.abc.Messageable):
return False
+ def permissions_in(self, channel):
+ """An alias for :meth:`Channel.permissions_for`.
+
+ ... | Fix Member.permissions_in passing in the wrong self parameter. | py |
diff --git a/delorean/dates.py b/delorean/dates.py
index <HASH>..<HASH> 100644
--- a/delorean/dates.py
+++ b/delorean/dates.py
@@ -15,7 +15,7 @@ utc = timezone("UTC")
def get_total_second(td):
"""
This method takes a timedelta and return the number of seconds it
- represents with the resolution of 10 **6
... | Removes weird link generated by Sphinx This commit fixes issue #<I> | py |
diff --git a/tests/test_graph_api.py b/tests/test_graph_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_graph_api.py
+++ b/tests/test_graph_api.py
@@ -145,10 +145,7 @@ def test_get_with_retries():
}
})
- try:
- graph.get('me', retry=3)
- except GraphAPI.FacebookError:
- pass
+ ... | Refactor test_get_with_retries with assert_raises | py |
diff --git a/pandas/tests/series/indexing/test_setitem.py b/pandas/tests/series/indexing/test_setitem.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/series/indexing/test_setitem.py
+++ b/pandas/tests/series/indexing/test_setitem.py
@@ -405,6 +405,18 @@ class TestSetitemWithExpansion:
tm.assert_series_equal(... | Series with dtype=object does unexpected type conversion (#<I>) | py |
diff --git a/neo.py b/neo.py
index <HASH>..<HASH> 100755
--- a/neo.py
+++ b/neo.py
@@ -407,7 +407,7 @@ class Repo(object):
print self.name, 'unmodified'
return
- with open(self.lib, 'w') as f:
+ with open(self.lib, 'wb') as f:
f.write(self.url + '\n... | Standardized to \n for newlines in lib files | py |
diff --git a/emma2/__init__.py b/emma2/__init__.py
index <HASH>..<HASH> 100644
--- a/emma2/__init__.py
+++ b/emma2/__init__.py
@@ -7,11 +7,6 @@ import msm
import pmm
import util
-""" global logging support. See documentation of python library
-logging module for more information"""
-from util.log import log
-
-
# ... | removed global log instance, use getLogger instead | py |
diff --git a/raiden/network/transport/matrix/transport.py b/raiden/network/transport/matrix/transport.py
index <HASH>..<HASH> 100644
--- a/raiden/network/transport/matrix/transport.py
+++ b/raiden/network/transport/matrix/transport.py
@@ -1366,6 +1366,10 @@ class MatrixTransport(Runnable):
for user_id ... | Check that at least one userid is online | py |
diff --git a/pynlpir/__init__.py b/pynlpir/__init__.py
index <HASH>..<HASH> 100644
--- a/pynlpir/__init__.py
+++ b/pynlpir/__init__.py
@@ -145,7 +145,7 @@ def segment(s, pos_tagging=True, pos_names='parent', pos_english=True):
logger.debug("Segmenting text with%s POS tagging: %s." %
('' if pos_ta... | Fixes decoding problem in helper functions. | py |
diff --git a/bcbio/utils.py b/bcbio/utils.py
index <HASH>..<HASH> 100644
--- a/bcbio/utils.py
+++ b/bcbio/utils.py
@@ -113,7 +113,14 @@ def s3_handle(fname):
bucket, key = s3_bucket_key(fname)
s3 = boto.connect_s3()
- s3b = s3.get_bucket(bucket)
+ try:
+ s3b = s3.get_bucket(bucket)
+ except ... | Enable streaming of files from buckets without access permissions. Fix for getting HiSeq X Ten data | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -55,6 +55,9 @@ if sys.version_info < (2, 7) or (
# module (appears in Python 2.7 and Python 3.1)
test_requirements.append('unittest2')
+if sys.version_info < (2, 6):
+ test_requirements.append('simplejson')
+
i... | Simplejson is required for some backends on Python <I> | py |
diff --git a/delphin/mrs/xmrs.py b/delphin/mrs/xmrs.py
index <HASH>..<HASH> 100644
--- a/delphin/mrs/xmrs.py
+++ b/delphin/mrs/xmrs.py
@@ -316,11 +316,12 @@ class Xmrs(LnkMixin):
def __hash__(self):
# isomorphic MRSs should hash to the same thing, but
# calculating isomorphism is expensive. Appro... | Fix bug in Xmrs hash function. | py |
diff --git a/httpretty/core.py b/httpretty/core.py
index <HASH>..<HASH> 100644
--- a/httpretty/core.py
+++ b/httpretty/core.py
@@ -123,7 +123,7 @@ class HTTPrettyRequest(BaseHTTPRequestHandler, BaseClass):
internal `parse_request` method.
It also replaces the `rfile` and `wfile` attributes with StringIO
- ... | correct spelling mistake (#<I>) | py |
diff --git a/irco/scripts/data_import.py b/irco/scripts/data_import.py
index <HASH>..<HASH> 100644
--- a/irco/scripts/data_import.py
+++ b/irco/scripts/data_import.py
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import argparse
from sqlalchemy import create_engine
@@ -27,6 +29,7 @@ def import_records(en... | PEP8, python3 and cleanup sessions. | py |
diff --git a/elifetools/parseJATS.py b/elifetools/parseJATS.py
index <HASH>..<HASH> 100644
--- a/elifetools/parseJATS.py
+++ b/elifetools/parseJATS.py
@@ -920,9 +920,9 @@ def format_contributor(contrib_tag, soup, detail="brief"):
elif rid.startswith('fn'):
add_to_list_dictionary(co... | Support rid naming in the new kitchen sink for dataset and funding xref tags. | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -81,7 +81,7 @@ class TestDjango(TestCase):
self.assertEqual(result, data)
def test_context_autoescape_off(self):
- """Test that the use can disable autoescape by providing a Conte... | Fix a typo in a docstring. | py |
diff --git a/openpnm/network/CubicDual.py b/openpnm/network/CubicDual.py
index <HASH>..<HASH> 100644
--- a/openpnm/network/CubicDual.py
+++ b/openpnm/network/CubicDual.py
@@ -125,7 +125,8 @@ class CubicDual(GenericNetwork):
# Finally, scale network to requested spacing
net['pore.coords'] *= spacing
... | Fix bug in add_boundary_pores that ignored lattice spacing and update labels argument to be consistent with Cubic | py |
diff --git a/snakebite/client.py b/snakebite/client.py
index <HASH>..<HASH> 100644
--- a/snakebite/client.py
+++ b/snakebite/client.py
@@ -797,7 +797,7 @@ class Client(object):
return data[max(0, len(data)-1024):len(data)]
def test(self, path, exists=False, directory=False, zero_length=False):
- ... | Fix a typo in a comment in client.py | py |
diff --git a/falafel/tests/integration.py b/falafel/tests/integration.py
index <HASH>..<HASH> 100644
--- a/falafel/tests/integration.py
+++ b/falafel/tests/integration.py
@@ -7,15 +7,21 @@ def integration_test(module, test_func, input_data, expected):
test_func(tests.integrate(input_data, module), expected)
+d... | Allowing integration.generate_tests to be called multiple times once for each package that contains @archive_provider tests. | py |
diff --git a/fault/system_verilog_target.py b/fault/system_verilog_target.py
index <HASH>..<HASH> 100644
--- a/fault/system_verilog_target.py
+++ b/fault/system_verilog_target.py
@@ -286,8 +286,8 @@ end;
if check_timestamp:
new_stat_result = os.stat(tb_file)
new_times = (new_stat_resu... | handle case when the timestamp just keeps increasing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name = "django-user-accounts",
- version = "1.0b5",
+ version = "1.0b6",
author = "Brian Rosner",
author_email = "brosner@gmail.com",
... | Bumped version to reflect the current state | py |
diff --git a/src/requirementslib/__init__.py b/src/requirementslib/__init__.py
index <HASH>..<HASH> 100644
--- a/src/requirementslib/__init__.py
+++ b/src/requirementslib/__init__.py
@@ -1,5 +1,5 @@
# -*- coding=utf-8 -*-
-__version__ = '1.1.7'
+__version__ = '1.1.8.dev0'
from .exceptions import RequirementError | Prebump to <I>.dev0 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ setup_args.update(dict(
name='param',
version='1.0',
description='Declarative Python programming using Parameters.',
- long_description=open('README.txt').read(),
+ long_description=open('RE... | fix setup.py install README.txt moved to .rst | py |
diff --git a/jchart/tests.py b/jchart/tests.py
index <HASH>..<HASH> 100644
--- a/jchart/tests.py
+++ b/jchart/tests.py
@@ -35,8 +35,8 @@ class LineChart(Chart):
class LineChartParameterized(LineChart):
def get_datasets(self, currency_type):
- eur_data = range(10)
- do_data = range(10, 20)
+ ... | ranges are not json serializable | py |
diff --git a/chess_py/core/algebraic/converter.py b/chess_py/core/algebraic/converter.py
index <HASH>..<HASH> 100644
--- a/chess_py/core/algebraic/converter.py
+++ b/chess_py/core/algebraic/converter.py
@@ -130,7 +130,7 @@ def incomplete_alg(alg_str, input_color, position):
if len(alg_str) == 3:
possible_... | Fix piece conversion bug Use piece type in move.piece instead of string representation | py |
diff --git a/hug/types.py b/hug/types.py
index <HASH>..<HASH> 100644
--- a/hug/types.py
+++ b/hug/types.py
@@ -127,8 +127,8 @@ class InlineDictionary(Type):
"""A single line dictionary, where items are separted by commas and key:value are separated by a pipe"""
__slots__ = ()
- def __call__(self, value):... | Fix error that caused Cython not to compile | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.