diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/cihai/testsuite/test_unihan.py b/cihai/testsuite/test_unihan.py
index <HASH>..<HASH> 100644
--- a/cihai/testsuite/test_unihan.py
+++ b/cihai/testsuite/test_unihan.py
@@ -44,9 +44,10 @@ class UnihanTable(TestCase):
self.assertIsInstance(table, sqlalchemy.Table)
def test_returns_metadata_has_... | see if doing a metadata.reflect() does the trick. | py |
diff --git a/test/test_idgens.py b/test/test_idgens.py
index <HASH>..<HASH> 100644
--- a/test/test_idgens.py
+++ b/test/test_idgens.py
@@ -109,7 +109,7 @@ class TestHashGen(unittest.TestCase, SimpleKVTest):
key2 = self.store.put_file(None, tmpfile.name)
self.assertEqual(key2, hash)
fi... | Check for the existance of the file, not the existance of os.path.exists. | py |
diff --git a/pmagpy/pmagplotlib.py b/pmagpy/pmagplotlib.py
index <HASH>..<HASH> 100644
--- a/pmagpy/pmagplotlib.py
+++ b/pmagpy/pmagplotlib.py
@@ -2879,7 +2879,7 @@ def add_borders(Figs, titles, border_color, text_color, con_id=""):
border_ax.set_yticks([])
# add a border
- border_ax.text(-0.... | fix small formatting issues with plots for server, #<I> | py |
diff --git a/brabeion/tests/tests.py b/brabeion/tests/tests.py
index <HASH>..<HASH> 100644
--- a/brabeion/tests/tests.py
+++ b/brabeion/tests/tests.py
@@ -1,5 +1,3 @@
-from contextlib import contextmanager
-
from django.conf import settings
from django.contrib.auth.models import User
from django.db import connection... | Work with python<I>, losing the context manager hotness is sad. | py |
diff --git a/storage/google/cloud/storage/_helpers.py b/storage/google/cloud/storage/_helpers.py
index <HASH>..<HASH> 100644
--- a/storage/google/cloud/storage/_helpers.py
+++ b/storage/google/cloud/storage/_helpers.py
@@ -43,7 +43,7 @@ def _validate_name(name):
if name is None:
return
- # The first ... | cleanup(storage): fix typo in '_helpers.py' (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,4 @@
+import glob
import os
import sys
@@ -157,15 +158,6 @@ lib_srcs += [ '%s/python/f90/coulomb_dispatch.f90' % (srcdir),
mods2, fns2 = get_module_list(metadata, 'potentials',
finte... | Have setup.py install command-line tools. | py |
diff --git a/pcef/core/editor.py b/pcef/core/editor.py
index <HASH>..<HASH> 100644
--- a/pcef/core/editor.py
+++ b/pcef/core/editor.py
@@ -1190,10 +1190,13 @@ class QCodeEdit(QtGui.QPlainTextEdit):
top = int(self.blockBoundingGeometry(block).translated(
self.contentOffset()).top())
bottom... | Optimize update visible blocks: break when a block is out of the bounding rect | py |
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/element.py
+++ b/holoviews/plotting/bokeh/element.py
@@ -1286,6 +1286,9 @@ class ElementPlot(BokehPlot, GenericElementPlot):
self.handles['selected'] = source.select... | Fixed bug with clashing legend_field and legend_label (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ ryu_plugin_config_path = 'etc/quantum/plugins/ryu'
DataFiles = [
(config_path,
- ['etc/quantum.conf']),
+ ['etc/quantum.conf', 'etc/api-paste.ini', 'etc/policy.json']),
(init_path, ['e... | Remove paste configuration details to a seperate file. blueprint use-common-cfg In addition this ensures that the cisco extension units are working with the common cfg code. Change-Id: I8c1f<I>e<I>e7ed<I>f0b<I>efeeb<I>b<I> | py |
diff --git a/tests/end_to_end/test_g2p.py b/tests/end_to_end/test_g2p.py
index <HASH>..<HASH> 100644
--- a/tests/end_to_end/test_g2p.py
+++ b/tests/end_to_end/test_g2p.py
@@ -6,6 +6,7 @@ import unittest
import ga4gh.protocol as protocol
import ga4gh.frontend as frontend
+import tests.paths as paths
class TestG... | Fixes problem with symlinks and data file path | py |
diff --git a/tests_tf/test_mnist_tutorial_jsma.py b/tests_tf/test_mnist_tutorial_jsma.py
index <HASH>..<HASH> 100644
--- a/tests_tf/test_mnist_tutorial_jsma.py
+++ b/tests_tf/test_mnist_tutorial_jsma.py
@@ -17,8 +17,10 @@ class TestMNISTTutorialJSMA(unittest.TestCase):
report = mnist_tutorial_jsma.mnist_tutori... | Loosen JSMA test constant (test_attacks.py now tests JSMA directly | py |
diff --git a/py/dynesty/dynamicsampler.py b/py/dynesty/dynamicsampler.py
index <HASH>..<HASH> 100644
--- a/py/dynesty/dynamicsampler.py
+++ b/py/dynesty/dynamicsampler.py
@@ -1056,7 +1056,7 @@ class DynamicSampler(object):
# in that case the sample technically won't be
# uniform
s... | fix the problem when some weights are zero and the required number of poitns can't be selected | py |
diff --git a/salt/modules/mysql.py b/salt/modules/mysql.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mysql.py
+++ b/salt/modules/mysql.py
@@ -1718,7 +1718,7 @@ def grant_exists(grant,
if grant_tokens['user'] == target_tokens['user'] and \
grant_tokens['database'] == target_tokens[... | Update mysql.py Fixes mysql.grant_exists bug If a user both have select, update privilege,when check one privilege will return False | py |
diff --git a/formats/folia.py b/formats/folia.py
index <HASH>..<HASH> 100644
--- a/formats/folia.py
+++ b/formats/folia.py
@@ -5496,6 +5496,7 @@ class Document(object):
print("[PyNLPl FoLiA DEBUG] Processing Annotation Declarations",file=stderr)
self.declareprocessed = True
for subnode in... | fix in parsing declaration XML, failed on an XML comment | py |
diff --git a/caravel/utils.py b/caravel/utils.py
index <HASH>..<HASH> 100644
--- a/caravel/utils.py
+++ b/caravel/utils.py
@@ -7,6 +7,7 @@ from __future__ import unicode_literals
import functools
import json
import logging
+import numpy
from datetime import datetime
import parsedatetime
@@ -221,6 +222,12 @@ def ... | utils: add special serializer for numpy.int<I> (#<I>) It looks like COUNT(*) returns a numpy.int<I> value that the default JSONEncoder does not handle. While at if we get a type we are not handling make it easier to debug the issue by throwing a TypeError exception with useful data. Fix #<I> | py |
diff --git a/tests/parser/test_parser.py b/tests/parser/test_parser.py
index <HASH>..<HASH> 100644
--- a/tests/parser/test_parser.py
+++ b/tests/parser/test_parser.py
@@ -209,8 +209,13 @@ def test_spacy_non_english_languages(caplog):
for _ in parser_udf.apply((doc, text)):
pass
- # TODO: Add more uni... | Add unit tests for a Japanese document | py |
diff --git a/test/test_autopep8.py b/test/test_autopep8.py
index <HASH>..<HASH> 100644
--- a/test/test_autopep8.py
+++ b/test/test_autopep8.py
@@ -1997,12 +1997,11 @@ correct = 'good syntax ?' in dict()
self._inner_setup(line)
self.assertEqual(self.result, fixed)
- # Doesn't work because pep8 doe... | Enable test with mixed line endings | py |
diff --git a/pycbc/ahope/segment_utils.py b/pycbc/ahope/segment_utils.py
index <HASH>..<HASH> 100644
--- a/pycbc/ahope/segment_utils.py
+++ b/pycbc/ahope/segment_utils.py
@@ -500,7 +500,14 @@ def create_segs_from_cats_job(cp, out_dir, ifoString, tag=None):
else:
proxy = "/tmp/x509up_u%d" % os.getuid()
... | add error message when certificate is not found | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -16,7 +16,6 @@ DB_NAME = 'bigchain_test_{}'.format(os.getpid())
CONFIG = {
'database': {
- 'backend': 'rethinkdb',
'name': DB_NAME,
},
'keypair': { | Remove unnecessary 'backend' setting from test's configuration as it's provided now by a pytest option | py |
diff --git a/galpy/orbit_src/planarOrbit.py b/galpy/orbit_src/planarOrbit.py
index <HASH>..<HASH> 100644
--- a/galpy/orbit_src/planarOrbit.py
+++ b/galpy/orbit_src/planarOrbit.py
@@ -813,6 +813,8 @@ def _integrateOrbit(vxvv,pot,t,method):
out[:,1]= intOut[:,1]
out[:,3]= intOut[:,2]
out[:,2]= ... | raise error when the integration method does not exist | py |
diff --git a/salt/states/git.py b/salt/states/git.py
index <HASH>..<HASH> 100644
--- a/salt/states/git.py
+++ b/salt/states/git.py
@@ -74,6 +74,10 @@ def latest(name,
Force a checkout even if there might be overwritten changes
(Default: False)
+ force_reset
+ Force the checkout to ``--rese... | reset to remote branch, add doc for force_reset | py |
diff --git a/src/busio.py b/src/busio.py
index <HASH>..<HASH> 100755
--- a/src/busio.py
+++ b/src/busio.py
@@ -11,7 +11,7 @@ from adafruit_blinka import Enum, Lockable, agnostic
from adafruit_blinka.agnostic import board_name
import adafruit_platformdetect.board as ap_board
-SUPPORTED_BOARDS = (
+EMBEDDED_LINUX_BOA... | s/SUPPORTED_BOARDS/EMBEDDED_LINUX_BOARDS/ ...but really this should live in PlatformDetect itself, will move it there. | py |
diff --git a/synapse/lib/storm.py b/synapse/lib/storm.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/storm.py
+++ b/synapse/lib/storm.py
@@ -1464,7 +1464,7 @@ class Runtime(Configable):
limt = self.getLiftLimitHelp(opts.get('limit'))
if isinstance(limt.limit, int) and limt.limit < 0:
- ... | Use correct oper name in raising BadOperArg | py |
diff --git a/gtkmvco/gtkmvc/model.py b/gtkmvco/gtkmvc/model.py
index <HASH>..<HASH> 100644
--- a/gtkmvco/gtkmvc/model.py
+++ b/gtkmvco/gtkmvc/model.py
@@ -345,3 +345,20 @@ class TextBufferModel (Model, gtk.TextBuffer):
return
pass
+
+
+# --------------------------------------------------------------... | FEATURE Adding new ase class for models deriving from InheritableSQLObject This is still experimental [RC] | py |
diff --git a/shinken/macroresolver.py b/shinken/macroresolver.py
index <HASH>..<HASH> 100644
--- a/shinken/macroresolver.py
+++ b/shinken/macroresolver.py
@@ -156,24 +156,6 @@ class MacroResolver(Borg):
env['NAGIOS__' + o.__class__.__name__.upper() + cmacro[1:].upper()] = o.customs[cmacro]
... | *forgot to remove leftover code before the ast commit. | py |
diff --git a/hearthstone/cardxml.py b/hearthstone/cardxml.py
index <HASH>..<HASH> 100644
--- a/hearthstone/cardxml.py
+++ b/hearthstone/cardxml.py
@@ -118,6 +118,7 @@ class CardXML(object):
self.entourage = []
self.powers = []
self.triggered_power_history_info = []
+ self.version = 2
self.locale = locale... | cardxml: Serialize CardDefs version from .version attribute | py |
diff --git a/openfisca_core/taxscales.py b/openfisca_core/taxscales.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/taxscales.py
+++ b/openfisca_core/taxscales.py
@@ -26,12 +26,15 @@
from __future__ import division
from bisect import bisect_left, bisect_right
+import copy
import logging
import itertools
im... | When scaling a TaxScalesTree don't modify existing one. | py |
diff --git a/jf_agent/git/gitlab_adapter.py b/jf_agent/git/gitlab_adapter.py
index <HASH>..<HASH> 100644
--- a/jf_agent/git/gitlab_adapter.py
+++ b/jf_agent/git/gitlab_adapter.py
@@ -138,10 +138,12 @@ class GitLabAdapter(GitAdapter):
)
total_failed = len(repos_that_failed_to_download)
... | add logger line for internal use (#<I>) | py |
diff --git a/pkgconfig/pkgconfig.py b/pkgconfig/pkgconfig.py
index <HASH>..<HASH> 100644
--- a/pkgconfig/pkgconfig.py
+++ b/pkgconfig/pkgconfig.py
@@ -58,8 +58,8 @@ def _convert_error(func):
def _wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
- except OSError:
- ... | Include original OSError in convert_error An OSError could be there for other reasons. It's nice to report back what the actual cause was. | py |
diff --git a/.travis/complementary/reputation.py b/.travis/complementary/reputation.py
index <HASH>..<HASH> 100644
--- a/.travis/complementary/reputation.py
+++ b/.travis/complementary/reputation.py
@@ -6,7 +6,9 @@ import PyFunceble
import PyFunceble.cli
PyFunceble.cli.initiate_colorama(True)
-PyFunceble.load_confi... | Fix issue with the download of the upstream data. | py |
diff --git a/plexapi/video.py b/plexapi/video.py
index <HASH>..<HASH> 100644
--- a/plexapi/video.py
+++ b/plexapi/video.py
@@ -78,7 +78,6 @@ class Video(PlexPartialObject):
self.reload()
-
@utils.registerPlexObject
class Movie(Video, Playable):
""" Represents a single Movie. | Remove style error enforced by travis. | py |
diff --git a/native_tags/__init__.py b/native_tags/__init__.py
index <HASH>..<HASH> 100644
--- a/native_tags/__init__.py
+++ b/native_tags/__init__.py
@@ -1 +1,2 @@
+from registry import register
__version__ = '0.2'
\ No newline at end of file | register needs to be imported for adding to builtins | py |
diff --git a/ternary/plotting.py b/ternary/plotting.py
index <HASH>..<HASH> 100644
--- a/ternary/plotting.py
+++ b/ternary/plotting.py
@@ -128,8 +128,19 @@ def heatmap(d, steps, cmap_name=None):
#Colorbar hack continued.
pyplot.colorbar(CS3)
+## Convenience Functions ##
+
def plot_heatmap(func, steps=4... | Convenience function for plotting multiple curves | py |
diff --git a/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py b/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py
index <HASH>..<HASH> 100644
--- a/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py
+++ b/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py
@@ -3,13 +3,16 @@
# Python version sys.version_info(major=2, minor=7, micro=2, releaselevel='final',... | also check socket.has_ipv6 to see if IPv6 is available | py |
diff --git a/ansible/modules/hashivault/hashivault_aws_role_create.py b/ansible/modules/hashivault/hashivault_aws_role_create.py
index <HASH>..<HASH> 100644
--- a/ansible/modules/hashivault/hashivault_aws_role_create.py
+++ b/ansible/modules/hashivault/hashivault_aws_role_create.py
@@ -164,8 +164,12 @@ def hashivault_i... | added a check before applying the role | py |
diff --git a/uncompyle6/parsers/parse30.py b/uncompyle6/parsers/parse30.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/parsers/parse30.py
+++ b/uncompyle6/parsers/parse30.py
@@ -56,7 +56,7 @@ class Python30Parser(Python31Parser):
iflaststmt ::= testexpr c_stmts_opt JUMP_ABSOLUTE COME_FROM
iflastst... | Adjust <I> iflastsmtl rule | py |
diff --git a/salt/modules/quota.py b/salt/modules/quota.py
index <HASH>..<HASH> 100644
--- a/salt/modules/quota.py
+++ b/salt/modules/quota.py
@@ -64,9 +64,7 @@ def _parse_quota(mount, opts):
continue
comps = line.split()
if mode == 'header':
- if 'Report for' in line:
- ... | Remove pylint resulting in no-op overhead | py |
diff --git a/util.py b/util.py
index <HASH>..<HASH> 100644
--- a/util.py
+++ b/util.py
@@ -405,7 +405,7 @@ def execute (func, args, msg=None, verbose=0, dry_run=0):
log.info(msg)
if not dry_run:
- apply(func, args)
+ func(*args)
def strtobool (val): | Merged revisions <I> via svnmerge from svn+ssh://<EMAIL>/python/trunk ........ r<I> | florent.xicluna | <I>-<I>-<I> <I>:<I>:<I> <I> (Sun, <I> Mar <I>) | 2 lines Fix some py3k warnings in the standard library. ........ | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -15,6 +15,24 @@
import sys
import os
+from mock import Mock as MagicMock
+
+class Mock(MagicMock):
+ __all__ = []
+
+ @classmethod
+ def __getattr__(cls, name):
+ ... | Add mocking of numpy for Sphinx build with minimal dependencies | py |
diff --git a/salt/utils/event.py b/salt/utils/event.py
index <HASH>..<HASH> 100644
--- a/salt/utils/event.py
+++ b/salt/utils/event.py
@@ -175,6 +175,10 @@ class SaltEvent(object):
self.pending_events = []
self.__load_cache_regex()
+ # since ZMQ connect() has no gaurantees about the socket a... | Workaround for race condition in SaltEvent() creation and the zmq socket actually connecting | py |
diff --git a/client/deis.py b/client/deis.py
index <HASH>..<HASH> 100755
--- a/client/deis.py
+++ b/client/deis.py
@@ -1473,7 +1473,7 @@ class DeisClient(object):
with open(key_path, 'w') as f:
f.write(layer['ssh_private_key'])
ssh_args = ['-o UserKnownHostsFile=/dev/null', '-... | fix ssh_username not being read in 'deis ssh' | py |
diff --git a/test_elasticsearch/test_server/__init__.py b/test_elasticsearch/test_server/__init__.py
index <HASH>..<HASH> 100644
--- a/test_elasticsearch/test_server/__init__.py
+++ b/test_elasticsearch/test_server/__init__.py
@@ -2,20 +2,23 @@ from elasticsearch.helpers.test import get_test_client, ElasticsearchTestCa... | Allow test client to be created with kwargs | py |
diff --git a/pyquil/gates.py b/pyquil/gates.py
index <HASH>..<HASH> 100644
--- a/pyquil/gates.py
+++ b/pyquil/gates.py
@@ -175,6 +175,17 @@ Produces a PHASE instruction. This is the same as the RZ gate.
:returns: A Gate object.
"""
+CZ = _make_gate("CZ", 2)()
+"""
+Produces a CZ instruction.
+This gate applies to t... | Add CZ to gates.py and STANDARD_GATES | py |
diff --git a/crispy/gui/quanty/axes.py b/crispy/gui/quanty/axes.py
index <HASH>..<HASH> 100644
--- a/crispy/gui/quanty/axes.py
+++ b/crispy/gui/quanty/axes.py
@@ -43,7 +43,7 @@ class Broadening(DoubleItem):
class Lorentzian(Broadening):
- MINIMUM = 0.01
+ MINIMUM = 0.1
def __init__(self, parent=None, ... | Increase gamma and the number of points | py |
diff --git a/salt/beacons/log.py b/salt/beacons/log.py
index <HASH>..<HASH> 100644
--- a/salt/beacons/log.py
+++ b/salt/beacons/log.py
@@ -73,7 +73,7 @@ def beacon(config):
ret = []
if 'file' not in config:
- event = SKEL.copy
+ event = SKEL.copy()
event['tag'] = 'global'
eve... | Fixing bug in log.py - used .copy instead of .copy() Typo mistake which was fixed | py |
diff --git a/threadedcomments/templatetags/threadedcomments_tags.py b/threadedcomments/templatetags/threadedcomments_tags.py
index <HASH>..<HASH> 100644
--- a/threadedcomments/templatetags/threadedcomments_tags.py
+++ b/threadedcomments/templatetags/threadedcomments_tags.py
@@ -224,14 +224,9 @@ class RenderCommentFormN... | Use `context.flatten()` to handle new render_to_string() requirements This function is not available for Django <I>, but doesn't have to be. Request is not passed, as the context already has all processor data. | py |
diff --git a/salt/states/user.py b/salt/states/user.py
index <HASH>..<HASH> 100644
--- a/salt/states/user.py
+++ b/salt/states/user.py
@@ -545,6 +545,14 @@ def present(name,
' {1}'.format(name, expire)
ret['result'] = False
ret['cha... | Fixed user.present to create password in windows | py |
diff --git a/openquake/calculators/ucerf_classical.py b/openquake/calculators/ucerf_classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/ucerf_classical.py
+++ b/openquake/calculators/ucerf_classical.py
@@ -134,13 +134,12 @@ class UcerfPSHACalculator(PSHACalculator):
).reduce(self.agg_dicts... | Cleanup [skip CI] | py |
diff --git a/dynaconf/loaders/vault_loader.py b/dynaconf/loaders/vault_loader.py
index <HASH>..<HASH> 100644
--- a/dynaconf/loaders/vault_loader.py
+++ b/dynaconf/loaders/vault_loader.py
@@ -58,7 +58,7 @@ def get_client(obj):
"Vault authentication error: is VAULT_TOKEN_FOR_DYNACONF or "
"VAULT_ROLE_ID... | Fix #<I> of kv property depreciation from client object (#<I>) | py |
diff --git a/dask_ml/metrics/pairwise.py b/dask_ml/metrics/pairwise.py
index <HASH>..<HASH> 100644
--- a/dask_ml/metrics/pairwise.py
+++ b/dask_ml/metrics/pairwise.py
@@ -56,6 +56,9 @@ def pairwise_distances(X, Y, metric="euclidean", n_jobs=None, **kwargs):
def euclidean_distances(
X, Y=None, Y_norm_squared=None,... | Bug: Handle a value not being passed for Y in euclidian distance. For euclidian distance calculation: Added handling of not passing a value for Y and initialising it to X. | py |
diff --git a/src/salicml/metrics/finance/itens_orcamentarios.py b/src/salicml/metrics/finance/itens_orcamentarios.py
index <HASH>..<HASH> 100644
--- a/src/salicml/metrics/finance/itens_orcamentarios.py
+++ b/src/salicml/metrics/finance/itens_orcamentarios.py
@@ -26,7 +26,7 @@ def itens_orcamentarios(pronac, dt):
r... | Fix expected value in itens_orcamentarios | py |
diff --git a/ailment/expression.py b/ailment/expression.py
index <HASH>..<HASH> 100644
--- a/ailment/expression.py
+++ b/ailment/expression.py
@@ -362,9 +362,9 @@ class BinaryOp(Op):
for op in self.operands:
if identity and op == atom:
return True
- if not identity and ... | Guard .likes() and .has_atom() with isinstance(..., Atom). | py |
diff --git a/scripts/maf_extract_ranges_indexed.py b/scripts/maf_extract_ranges_indexed.py
index <HASH>..<HASH> 100755
--- a/scripts/maf_extract_ranges_indexed.py
+++ b/scripts/maf_extract_ranges_indexed.py
@@ -103,7 +103,7 @@ def main():
if sliced.get_component_by_src(src).size < 1:
... | fix maf_extract_ranges_indexed for 'e' lines with size 0 | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -718,6 +718,7 @@ FAKE_PRODUCT = {
"object": "product",
"active": True,
"name": "Fake Product",
+ "type": "service",
} | Add required "type" field to FAKE_PRODUCT | py |
diff --git a/tests/test_nationstates_obj.py b/tests/test_nationstates_obj.py
index <HASH>..<HASH> 100644
--- a/tests/test_nationstates_obj.py
+++ b/tests/test_nationstates_obj.py
@@ -143,7 +143,10 @@ class nationstates_object(unittest.TestCase):
unicode
except NameError:
unicode = str... | Python 2 fix, for real this time | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -74,7 +74,7 @@ class retext_upload(upload):
full_version = re.search(r'ReText-([\d\.]+)\.tar\.gz', filename).group(1)
new_path = ('mandriver@frs.sourceforge.net:/home/frs/project/r/re/retext/ReText-%s/%s' %
... | setup.py: Upload ASC file to SourceForge as well | py |
diff --git a/fault/verilator_target.py b/fault/verilator_target.py
index <HASH>..<HASH> 100644
--- a/fault/verilator_target.py
+++ b/fault/verilator_target.py
@@ -133,6 +133,10 @@ class VerilatorTarget(VerilogTarget):
debug_name = name
elif isinstance(action.port, SelectPath):
name = ... | Add debug includes for expect with select path | py |
diff --git a/kuyruk/config.py b/kuyruk/config.py
index <HASH>..<HASH> 100644
--- a/kuyruk/config.py
+++ b/kuyruk/config.py
@@ -1,3 +1,4 @@
+import importlib
import os
import sys
import ast
@@ -59,6 +60,13 @@ class Config(object):
def from_object(self, obj):
"""Load values from an object."""
+ ... | Enhanced `Config.from_object` so it can handle a string object as an object name to import | py |
diff --git a/src/dashboards/SummaryDashboard.py b/src/dashboards/SummaryDashboard.py
index <HASH>..<HASH> 100644
--- a/src/dashboards/SummaryDashboard.py
+++ b/src/dashboards/SummaryDashboard.py
@@ -85,18 +85,22 @@ class SummaryDashboard(object):
return data
+ def remove_graph_from_dashboard(self, widget_id, ... | Add a separate function to remove and delete individual graphs from a dashboard. | py |
diff --git a/pandas/tests/io/xml/test_xml.py b/pandas/tests/io/xml/test_xml.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/io/xml/test_xml.py
+++ b/pandas/tests/io/xml/test_xml.py
@@ -1102,6 +1102,10 @@ def test_unsuported_compression(datapath, parser):
@tm.network
@td.skip_if_no("s3fs")
@td.skip_if_no("lxml")
+@... | CI/TST: Skip external s3 bucket test that hangs on min build (#<I>) * Debug/CI: Min build * Skip the s3 tests * Remove -v | py |
diff --git a/source/clique/collection.py b/source/clique/collection.py
index <HASH>..<HASH> 100644
--- a/source/clique/collection.py
+++ b/source/clique/collection.py
@@ -251,15 +251,25 @@ class Collection(object):
else:
data['padding'] = '%d'
- if self.indexes:
+ if '{holes}' in p... | [#<I>] Avoid redundant and potentially infinitely recursive computation in Collection.format. | py |
diff --git a/macroeco/models/_distributions.py b/macroeco/models/_distributions.py
index <HASH>..<HASH> 100644
--- a/macroeco/models/_distributions.py
+++ b/macroeco/models/_distributions.py
@@ -206,6 +206,22 @@ class rv_discrete_meco(rv_discrete):
"""{0}"""
return self.ppf((np.arange(1, n+1) - 0.5) /... | Added alternative way to compute random variables | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ setup(
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
- 'Development Status :: 4 - Beta',
+ 'Development Status :: 5 - Production/Stable',
# Indicate who... | Updated to stable, python <I> | py |
diff --git a/salt/utils/templates.py b/salt/utils/templates.py
index <HASH>..<HASH> 100644
--- a/salt/utils/templates.py
+++ b/salt/utils/templates.py
@@ -14,6 +14,7 @@ import traceback
# Import third party libs
import jinja2
+import jinja2.ext
# Import salt libs
import salt.utils
@@ -85,7 +86,9 @@ def render_j... | Fix issue when extensions are not installed with jinja2 | py |
diff --git a/oauth2client/crypt.py b/oauth2client/crypt.py
index <HASH>..<HASH> 100644
--- a/oauth2client/crypt.py
+++ b/oauth2client/crypt.py
@@ -136,10 +136,17 @@ try:
if parsed_pem_key:
pkey = crypto.load_privatekey(crypto.FILETYPE_PEM, parsed_pem_key)
else:
+ # OpenSSL 0.13 needs passw... | Trying to handle both OpenSSL <I> and <I>. Major change in load_pkcs<I>: <I>: Need str <I>: Need bytes | py |
diff --git a/cauldron/test/test_runner.py b/cauldron/test/test_runner.py
index <HASH>..<HASH> 100644
--- a/cauldron/test/test_runner.py
+++ b/cauldron/test/test_runner.py
@@ -1,4 +1,5 @@
import os
+import time
import cauldron as cd
from cauldron import cli
@@ -71,6 +72,10 @@ class TestRunner(scaffolds.ResultsTest)... | Library Refresh Test Race Condition Resolution Add delay inside library reloading test to prevent write race conditions from erroneously causing test failures. | py |
diff --git a/pymacaron/__init__.py b/pymacaron/__init__.py
index <HASH>..<HASH> 100644
--- a/pymacaron/__init__.py
+++ b/pymacaron/__init__.py
@@ -310,7 +310,7 @@ def letsgo(name, callback=None):
# Start celeryd and redis?
if with_async:
from pymacaron_async import start_celery
- ... | Start 2 workers by default, instead of 1, to avoid bottlenecks when testing locally | py |
diff --git a/cherrypy/test/test_session.py b/cherrypy/test/test_session.py
index <HASH>..<HASH> 100755
--- a/cherrypy/test/test_session.py
+++ b/cherrypy/test/test_session.py
@@ -140,6 +140,7 @@ class SessionTest(helper.CPWebCase):
if fname.startswith(sessions.FileSession.SESSION_PREFIX):
... | Mark test as xfail as it fails intermittently. Ref #<I>. | py |
diff --git a/glue/lal.py b/glue/lal.py
index <HASH>..<HASH> 100644
--- a/glue/lal.py
+++ b/glue/lal.py
@@ -81,11 +81,12 @@ class LIGOTimeGPS(object):
Return an ASCII string representation of a LIGOTimeGPS.
"""
if (self.seconds >= 0) or (self.nanoseconds == 0):
- return "%d.%09u" % (self.seconds, self.nanosec... | Trim unneeded fractional part from string representation. | py |
diff --git a/airflow/utils/logging.py b/airflow/utils/logging.py
index <HASH>..<HASH> 100644
--- a/airflow/utils/logging.py
+++ b/airflow/utils/logging.py
@@ -147,7 +147,7 @@ class GCSLog(object):
'airflow[gcp_api] is installed and the GCS connection '
'exists.'.format(remote_c... | Don't return error when writing files to Google cloud storage. | py |
diff --git a/tests/test_config.py b/tests/test_config.py
index <HASH>..<HASH> 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -89,3 +89,7 @@ class TestConfig(unittest.TestCase):
configpath = "/etc/xdg/dwave/dwave.conf"
with mock.patch("os.path.exists", lambda path: path == configpath):... | Add test for config detection, file not found case | py |
diff --git a/FlowCal/mef.py b/FlowCal/mef.py
index <HASH>..<HASH> 100644
--- a/FlowCal/mef.py
+++ b/FlowCal/mef.py
@@ -620,7 +620,7 @@ def get_transform_fxn(data_beads,
2. The fluorescence of each subpopulation is calculated, for each
channel in `mef_channels`.
3. Some subpopulations are then discarde... | Fixed typo in mef.get_transform_fxn's docstring. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ iPOPO installation script
"""
# Module version
-__version_info__ = (0, 5, 6)
+__version_info__ = (0, 5, 7)
__version__ = ".".join(str(x) for x in __version_info__)
# Documentation strings format
@@ -91,5... | Added an optional dependency on SleekXMPP Will be necessary for XMPP bundles | py |
diff --git a/ipyvolume/test_all.py b/ipyvolume/test_all.py
index <HASH>..<HASH> 100644
--- a/ipyvolume/test_all.py
+++ b/ipyvolume/test_all.py
@@ -116,7 +116,7 @@ def test_bokeh():
scatter = p3.scatter(x, y, z)
tools = "wheel_zoom,box_zoom,box_select,lasso_select,help,reset,"
- p = figure(title="E Lz spa... | test: fix: dont use the webgl backend, bokeh changed that api | py |
diff --git a/yotta/lib/cmakegen.py b/yotta/lib/cmakegen.py
index <HASH>..<HASH> 100644
--- a/yotta/lib/cmakegen.py
+++ b/yotta/lib/cmakegen.py
@@ -374,6 +374,10 @@ class CMakeGen(object):
add_own_subdirs = []
for f in manual_subdirs:
if os.path.isfile(os.path.join(component.pa... | never build tests of test dependencies, even if they are defined by custom CMake | py |
diff --git a/git/test/test_index.py b/git/test/test_index.py
index <HASH>..<HASH> 100644
--- a/git/test/test_index.py
+++ b/git/test/test_index.py
@@ -595,7 +595,7 @@ class TestIndex(TestBase):
self._assert_entries(entries)
self._assert_fprogress(entries)
self.assertEqual(len(entries), 1)
- ... | Replace deprecated assertNotEquals alias with assertNotEqual In TestIndex.test_index_mutation | py |
diff --git a/webview/winforms.py b/webview/winforms.py
index <HASH>..<HASH> 100644
--- a/webview/winforms.py
+++ b/webview/winforms.py
@@ -12,6 +12,7 @@ import logging
from ctypes import windll
import clr
+import ctypes
clr.AddReference("System.Windows.Forms")
clr.AddReference("System.Threading")
import System.W... | Fix toggle_fullscreen functionality in winforms | py |
diff --git a/rebound/simulation.py b/rebound/simulation.py
index <HASH>..<HASH> 100644
--- a/rebound/simulation.py
+++ b/rebound/simulation.py
@@ -1198,7 +1198,7 @@ class Variation(Structure):
class reb_simulation_integrator_hermes(Structure):
_fields_ = [("mini", POINTER(Simulation)),
- ("global... | Added pointer for Hermes Global simulation | py |
diff --git a/teneto/neuroimagingtools/bidsutils.py b/teneto/neuroimagingtools/bidsutils.py
index <HASH>..<HASH> 100644
--- a/teneto/neuroimagingtools/bidsutils.py
+++ b/teneto/neuroimagingtools/bidsutils.py
@@ -150,7 +150,7 @@ def exclude_runs(sidecar, confounds, confound_name, exclusion_criteria, confound
relfunc... | fixing erroneous func call | py |
diff --git a/openfisca_core/taxbenefitsystems.py b/openfisca_core/taxbenefitsystems.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/taxbenefitsystems.py
+++ b/openfisca_core/taxbenefitsystems.py
@@ -38,6 +38,7 @@ __all__ = [
class AbstractTaxBenefitSystem(object):
+ _real_reference = None
column_by_nam... | Add real_reference property to tax-benefit systems. | py |
diff --git a/tornado/test/netutil_test.py b/tornado/test/netutil_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/netutil_test.py
+++ b/tornado/test/netutil_test.py
@@ -32,6 +32,13 @@ else:
class _ResolverTestMixin(object):
+ def skipOnCares(self):
+ # Some DNS-hijacking ISPs (e.g. Time Warner) ret... | Disable the "bad_host" tests on CaresResolver This is an unfortunate hack, but c-ares doesn't handle fake NXDOMAIN responses in the same way as other resolvers. | py |
diff --git a/nanoplotter/nanoplotter.py b/nanoplotter/nanoplotter.py
index <HASH>..<HASH> 100644
--- a/nanoplotter/nanoplotter.py
+++ b/nanoplotter/nanoplotter.py
@@ -155,7 +155,7 @@ def scatter(x, y, names, path, color, figformat, plots, stat=None, log=False, mi
plt.close("all")
-def check_valid_time(df, time... | renamed function to check_valid_time_and_sort | py |
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index <HASH>..<HASH> 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2123,8 +2123,12 @@ class Cmd(cmd.Cmd):
if self.use_rawinput:
try:
if sys.stdin.isatty():
- # A prompt is about to be drawn. Allow asynchronous changes ... | Handling case of releasing _terminal_lock before its been locked | py |
diff --git a/motivation/commands.py b/motivation/commands.py
index <HASH>..<HASH> 100644
--- a/motivation/commands.py
+++ b/motivation/commands.py
@@ -75,8 +75,7 @@ def jm(client, event, channel, nick, rest):
'imasu!) - {emoji}'.format(**vars())
)
-@command('danke', aliases=('dankeschoen','ds','gm','g... | split german motivate into separate command, separate from danke schon | py |
diff --git a/simpleai/search/viewers.py b/simpleai/search/viewers.py
index <HASH>..<HASH> 100644
--- a/simpleai/search/viewers.py
+++ b/simpleai/search/viewers.py
@@ -79,7 +79,7 @@ class ConsoleViewer(object):
self.output(description)
def output(self, text):
- if not self.output_enabled:
+ ... | The logic to hide output was inverted -_- | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -1856,10 +1856,8 @@ def line(path, content, match=None, mode=None, location=None,
if changed:
if show_changes:
with salt.utils.fopen(path, 'r') as fp_:... | Fix file.line diff formatting. Using _splitlines_preserving_trailing_newline() strips off line endings, mangling the unified_diff output. Switching to splitlines with the keepends option resolves this issue, while still preserving trailing newline. Fixes #<I> | py |
diff --git a/slave/buildslave/test/unit/test_commands_transfer.py b/slave/buildslave/test/unit/test_commands_transfer.py
index <HASH>..<HASH> 100644
--- a/slave/buildslave/test/unit/test_commands_transfer.py
+++ b/slave/buildslave/test/unit/test_commands_transfer.py
@@ -215,9 +215,10 @@ class TestSlaveDirectoryUpload(C... | strip trailing '/' from archive names in tar; close files | py |
diff --git a/tools/run_tests/dockerjob.py b/tools/run_tests/dockerjob.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/dockerjob.py
+++ b/tools/run_tests/dockerjob.py
@@ -55,7 +55,7 @@ def docker_mapped_port(cid, port, timeout_seconds=15):
while time.time() - started < timeout_seconds:
try:
output = ... | prevent polluting output by subprocesses | py |
diff --git a/spikeextractors/extractors/nwbextractors/nwbextractors.py b/spikeextractors/extractors/nwbextractors/nwbextractors.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/extractors/nwbextractors/nwbextractors.py
+++ b/spikeextractors/extractors/nwbextractors/nwbextractors.py
@@ -86,9 +86,6 @@ class NwbRecord... | rmv get_num_channels | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -59,6 +59,9 @@ setup(name=packageName,
packages=find_packages() + ['twisted.plugins'],
test_suite=packageName + ".test",
+
+ install_requires=dependencies,
+
cmdclass={'test': Tox},
zip_safe=... | Use setup.py dependencies as install_requires | py |
diff --git a/tests/test_model.py b/tests/test_model.py
index <HASH>..<HASH> 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -43,18 +43,18 @@ def test_model_fields_allow_empty():
@pytest.mark.parametrize('empty_value', (None, '', 0))
-def test_model_fields_allow_empty_error(empty_value):
+def test_mod... | Fix tests to validate fields only on creation | py |
diff --git a/doitlive/keyboard.py b/doitlive/keyboard.py
index <HASH>..<HASH> 100644
--- a/doitlive/keyboard.py
+++ b/doitlive/keyboard.py
@@ -1,14 +1,15 @@
# -*- coding: utf-8 -*-
import os
+import shlex
import subprocess
from tempfile import NamedTemporaryFile
import click
from click import getchar
-from do... | Use shlex.split for tokenizing command | py |
diff --git a/mangopay/resources.py b/mangopay/resources.py
index <HASH>..<HASH> 100644
--- a/mangopay/resources.py
+++ b/mangopay/resources.py
@@ -531,7 +531,8 @@ class RecurringPayInCIT(RecurringPayIn):
verbose_name = 'recurring_payin'
verbose_name_plural = 'recurring_payins'
url = {
- ... | MPSDK-<I>: fixed this issue | py |
diff --git a/pyontutils/core.py b/pyontutils/core.py
index <HASH>..<HASH> 100644
--- a/pyontutils/core.py
+++ b/pyontutils/core.py
@@ -31,9 +31,9 @@ def relative_resources(pathstring, failover='nifstd/resources'):
github location (usually for prov purposes) """
if working_dir is None:
- return Pa... | core relative_resources resolve paths to avoid symlink mismatches | py |
diff --git a/splinter/driver/lxmldriver.py b/splinter/driver/lxmldriver.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/lxmldriver.py
+++ b/splinter/driver/lxmldriver.py
@@ -4,12 +4,12 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-import os.path
impo... | Fix lxmldriver url join when form action is empty (#<I>) | py |
diff --git a/testing/test_doctest.py b/testing/test_doctest.py
index <HASH>..<HASH> 100644
--- a/testing/test_doctest.py
+++ b/testing/test_doctest.py
@@ -80,6 +80,8 @@ class TestDoctests:
assert isinstance(items[0].parent, DoctestModule)
assert items[0].parent is items[1].parent
+ @pytes... | with pypy this tests leaks one FD but it's probably a residual effect of the testing machinery and Pypy's lazy GC. | py |
diff --git a/featureflow/__init__.py b/featureflow/__init__.py
index <HASH>..<HASH> 100644
--- a/featureflow/__init__.py
+++ b/featureflow/__init__.py
@@ -30,6 +30,8 @@ from persistence import PersistenceSettings
from iteratornode import IteratorNode
+from eventlog import EventLog, RedisChannel
+
try:
from n... | Add EventLog stuff to package-level exports | py |
diff --git a/matplotlib_scalebar/scalebar.py b/matplotlib_scalebar/scalebar.py
index <HASH>..<HASH> 100644
--- a/matplotlib_scalebar/scalebar.py
+++ b/matplotlib_scalebar/scalebar.py
@@ -316,6 +316,7 @@ class ScaleBar(Artist):
if self.fixed_value is None:
length_px = abs(xlim[1] - xlim[0]) * lengt... | Fix error in length of scale bar (#<I>). The bar was drawn with an edge around it which made it longer than the actual size. | py |
diff --git a/c7n/filters/iamanalyzer.py b/c7n/filters/iamanalyzer.py
index <HASH>..<HASH> 100644
--- a/c7n/filters/iamanalyzer.py
+++ b/c7n/filters/iamanalyzer.py
@@ -52,7 +52,7 @@ class AccessAnalyzer(ValueFilter):
client, analyzer_arn,
[r for r in resources if self.analysis_annotation not in... | aws - iam access analyzer - use a getter to account for resource w/o finding result (#<I>) | py |
diff --git a/mythril/laser/ethereum/instructions.py b/mythril/laser/ethereum/instructions.py
index <HASH>..<HASH> 100644
--- a/mythril/laser/ethereum/instructions.py
+++ b/mythril/laser/ethereum/instructions.py
@@ -929,7 +929,7 @@ class Instruction:
for b in state.memory[index : index + length]:
... | Correctly append annotations in sha3 instruction | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.