diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/openquake/server/db/actions.py b/openquake/server/db/actions.py
index <HASH>..<HASH> 100644
--- a/openquake/server/db/actions.py
+++ b/openquake/server/db/actions.py
@@ -290,7 +290,7 @@ def del_calc(db, job_id, user):
try:
os.remove(fname)
except OSError as exc: # permission error
- ... | added return forgot [skip CI] Former-commit-id: df1a<I>af8f8acfce0d5d<I>b8f<I>b<I>a<I>ec2 | py |
diff --git a/analyzers/DNSLookingglass/DNSLookingglass_lookup.py b/analyzers/DNSLookingglass/DNSLookingglass_lookup.py
index <HASH>..<HASH> 100644
--- a/analyzers/DNSLookingglass/DNSLookingglass_lookup.py
+++ b/analyzers/DNSLookingglass/DNSLookingglass_lookup.py
@@ -18,12 +18,18 @@ class DNSLookingglassAnalyzer(Analyze... | Ipv6 artifacts | py |
diff --git a/django_extensions/management/commands/sync_media_s3.py b/django_extensions/management/commands/sync_media_s3.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/sync_media_s3.py
+++ b/django_extensions/management/commands/sync_media_s3.py
@@ -37,7 +37,6 @@ import optparse
import os
... | allow FILTER_LIST to be overridden | py |
diff --git a/tests/test_boto_store.py b/tests/test_boto_store.py
index <HASH>..<HASH> 100644
--- a/tests/test_boto_store.py
+++ b/tests/test_boto_store.py
@@ -34,10 +34,10 @@ class TestBotoStorage(BasicStore, UrlStore):
def store(self, bucket, prefix):
return BotoStore(bucket, prefix)
- def test_get_... | Use key fixture in boto tests. | py |
diff --git a/angr/storage/memory_mixins/conditional_store_mixin.py b/angr/storage/memory_mixins/conditional_store_mixin.py
index <HASH>..<HASH> 100644
--- a/angr/storage/memory_mixins/conditional_store_mixin.py
+++ b/angr/storage/memory_mixins/conditional_store_mixin.py
@@ -10,6 +10,9 @@ class ConditionalMixin(MemoryMi... | ConditionalStoreMixin: Consider the global condition. | py |
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py
index <HASH>..<HASH> 100755
--- a/misc/log-analytics/import_logs.py
+++ b/misc/log-analytics/import_logs.py
@@ -1447,9 +1447,10 @@ class Parser(object):
# check the format using the file (for formats like the IIS one)
f... | Refs #<I> increase to <I>,<I>, it takes ~ 6 seconds on my box on a file with <I>k lines, so still fast enough to fail. If a file has more than <I>k wrong lines there's defnitely something wrong with it. | py |
diff --git a/tests/supervisor_unittest.py b/tests/supervisor_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/supervisor_unittest.py
+++ b/tests/supervisor_unittest.py
@@ -30,6 +30,10 @@ CONFIG_FILE = "config.gem"
class SupervisorTestCase(unittest.TestCase):
def setUp(self):
+ # Patch a few methods he... | Added comment to setUp regarding mocks | py |
diff --git a/sandman/__init__.py b/sandman/__init__.py
index <HASH>..<HASH> 100644
--- a/sandman/__init__.py
+++ b/sandman/__init__.py
@@ -7,6 +7,7 @@ a completely new system based on your existing data, using HATEOAS."""
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
+app.... | Add secret_key so that form actions work properly (closes #<I>) | py |
diff --git a/actstream/gfk.py b/actstream/gfk.py
index <HASH>..<HASH> 100644
--- a/actstream/gfk.py
+++ b/actstream/gfk.py
@@ -74,14 +74,17 @@ class GFKQuerySet(QuerySet):
for item in qs:
for gfk in gfk_fields:
- if getattr(item, gfk.fk_field) != None:
- ct_id_f... | Added try/ catch to avoid stream dying on one invalid item | py |
diff --git a/helusers/tunnistamo_oidc.py b/helusers/tunnistamo_oidc.py
index <HASH>..<HASH> 100644
--- a/helusers/tunnistamo_oidc.py
+++ b/helusers/tunnistamo_oidc.py
@@ -40,7 +40,13 @@ class TunnistamoOIDCAuth(OpenIdConnectAuth):
url = self.END_SESSION_URL or \
self.oidc_config().get('end_session... | AD end_session endpoint does not like id_token_hint, make configurable | py |
diff --git a/aospy/calc.py b/aospy/calc.py
index <HASH>..<HASH> 100644
--- a/aospy/calc.py
+++ b/aospy/calc.py
@@ -1091,7 +1091,10 @@ class Calc(object):
if archive:
self._save_to_archive(dtype_out_time,
dtype_out_vert=dtype_out_vert)
- print('\t%s' % self... | Fixed print statements for saving files in `xray` mode so that they have the correct .nc extension. | py |
diff --git a/py_linq/py_linq.py b/py_linq/py_linq.py
index <HASH>..<HASH> 100644
--- a/py_linq/py_linq.py
+++ b/py_linq/py_linq.py
@@ -340,7 +340,7 @@ class Enumerable(object):
grouped = itertools.groupby(ordered, key)
for k, g in grouped:
can_enumerate = isinstance(k, list) or isinstance... | PEP8 coding style on main branch completed. Only one PEP8 complaint left due to Python3 compatibility import | py |
diff --git a/binaryornot/helpers.py b/binaryornot/helpers.py
index <HASH>..<HASH> 100644
--- a/binaryornot/helpers.py
+++ b/binaryornot/helpers.py
@@ -42,7 +42,7 @@ if bytes is str:
else:
# Python 3 means bytes accepts integer input directly
_printable_ascii = _control_chars + bytes(range(32, 127))
- _pri... | Fixed code to run on Python 3.x | py |
diff --git a/thinc/extra/datasets.py b/thinc/extra/datasets.py
index <HASH>..<HASH> 100644
--- a/thinc/extra/datasets.py
+++ b/thinc/extra/datasets.py
@@ -43,7 +43,7 @@ def ancora_pos_tags(encode_words=False): # pragma: no cover
def ewtb_pos_tags(encode_tags=False, encode_words=False): # pragma: no cover
- da... | Fix location of UD_English-EWT dataset | py |
diff --git a/tests/test_cli.py b/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -4,6 +4,7 @@ import sys
from unittest.mock import patch
import pytest
+import conftest
import click
from click import Context
@@ -111,6 +112,7 @@ def test_check_type_badType():
# TE... | skips test_get_body if on travis-ci due to issues with py<I>, py<I> | py |
diff --git a/geomet/wkt.py b/geomet/wkt.py
index <HASH>..<HASH> 100644
--- a/geomet/wkt.py
+++ b/geomet/wkt.py
@@ -181,7 +181,7 @@ def _round_and_pad(value, decimals):
:param value:
The value to round
:param decimals:
- Number of places to round to
+ Number of decimals places which shou... | Alter docstrings for _dump_point to reflect changes and _round_and_pad to be clearer. | py |
diff --git a/contrib/sysinfo.py b/contrib/sysinfo.py
index <HASH>..<HASH> 100644
--- a/contrib/sysinfo.py
+++ b/contrib/sysinfo.py
@@ -65,18 +65,26 @@ class RemoteInfo:
def getcpuinfo(self):
if self.islinux():
- return self.exreceive("""
- numcpus = 0
- model = ... | [svn r<I>] A hyperthreaded cpu core should only count as 1, although it is present as 2 entries in /proc/cpuinfo. Counting it as 2 is misleading because it is *by far* not as efficient as two independent cores. --HG-- branch : trunk | py |
diff --git a/pandas/tests/io/test_gcs.py b/pandas/tests/io/test_gcs.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/io/test_gcs.py
+++ b/pandas/tests/io/test_gcs.py
@@ -99,12 +99,13 @@ def test_to_read_gcs(gcs_buffer, format):
def assert_equal_zip_safe(result: bytes, expected: bytes):
"""
- We would like t... | TST: make flaky zip check less strict (#<I>) | py |
diff --git a/tests/test_distances.py b/tests/test_distances.py
index <HASH>..<HASH> 100644
--- a/tests/test_distances.py
+++ b/tests/test_distances.py
@@ -53,4 +53,4 @@ def test_distance(reference_perturbed, p, bounds):
diff = diff.reshape((len(diff), -1))
desired = np.linalg.norm(diff, ord=p, axis=-1)
- ... | relax distance tests for tensorflow on cpu | py |
diff --git a/jax/numpy/lax_numpy.py b/jax/numpy/lax_numpy.py
index <HASH>..<HASH> 100644
--- a/jax/numpy/lax_numpy.py
+++ b/jax/numpy/lax_numpy.py
@@ -2558,7 +2558,7 @@ def tensordot(a, b, axes=2, precision=None):
@_wraps(onp.einsum, lax_description=_PRECISION_DOC)
def einsum(*operands, **kwargs):
- optimize = kwa... | try optimize=True with einsum closes #<I> can revert if this ends up problematic for some reason! | py |
diff --git a/rapport/template.py b/rapport/template.py
index <HASH>..<HASH> 100644
--- a/rapport/template.py
+++ b/rapport/template.py
@@ -37,6 +37,8 @@ def init():
loader = jinja2.FileSystemLoader(_get_template_dirs(type))
env = jinja2.Environment(loader=loader,
exte... | enable line statement/comment prefixes to allow more legible templates | py |
diff --git a/oandapyV20/oandapyV20.py b/oandapyV20/oandapyV20.py
index <HASH>..<HASH> 100644
--- a/oandapyV20/oandapyV20.py
+++ b/oandapyV20/oandapyV20.py
@@ -213,7 +213,7 @@ class API(object):
the 'request' method after it has determined which
call applies: regular or streaming.
"""
- ... | and the ones mist in the previous commit: _ to __ | py |
diff --git a/pyiso.py b/pyiso.py
index <HASH>..<HASH> 100644
--- a/pyiso.py
+++ b/pyiso.py
@@ -837,7 +837,7 @@ class PrimaryVolumeDescriptor(object):
if len(app_use) > 512:
raise PyIsoException("The maximum length for the application use is 512")
- self.application_use = app_use
+ ... | Make sure to pad out application use to <I>. | py |
diff --git a/setuptools_markdown.py b/setuptools_markdown.py
index <HASH>..<HASH> 100644
--- a/setuptools_markdown.py
+++ b/setuptools_markdown.py
@@ -22,7 +22,7 @@ def long_description_markdown_filename(dist, attr, value):
output = pypandoc.convert(markdown_filename, 'rst')
except OSError:
outpu... | Paranoia: make sure we get what we are expecting. | py |
diff --git a/andes/routines/tds.py b/andes/routines/tds.py
index <HASH>..<HASH> 100644
--- a/andes/routines/tds.py
+++ b/andes/routines/tds.py
@@ -99,7 +99,7 @@ class TDS(BaseRoutine):
"""
out = list()
out.append('-> Time Domain Simulation Summary:')
- out.append(f'Sparse Solver: {self... | Fixed the solver name in TDS.summary | py |
diff --git a/neo4jrestclient/client.py b/neo4jrestclient/client.py
index <HASH>..<HASH> 100644
--- a/neo4jrestclient/client.py
+++ b/neo4jrestclient/client.py
@@ -1290,7 +1290,7 @@ class Path(object):
node = Node(dic["nodes"][i])
self._nodes.append(node)
relationship = Relationshi... | Fixing an error retrieving relationships in paths. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,6 @@ setup(
# PEP 566, PyPI Warehouse, setuptools>=38.6.0 make markdown possible
long_description_content_type='text/markdown',
url='https://github.com/GhostofGoes/getmac',
- download_url='https://p... | Remove download_url (it's redundant since it's downloaded from PyPI anyway) | py |
diff --git a/forecastiopy/FIOHourly.py b/forecastiopy/FIOHourly.py
index <HASH>..<HASH> 100644
--- a/forecastiopy/FIOHourly.py
+++ b/forecastiopy/FIOHourly.py
@@ -22,9 +22,9 @@ class FIOHourly(object):
self.hourly = forecast_io.get_hourly()
for item in forecast_io.get_hourly().keys():
... | Fix wrong hour ids for Hourly | py |
diff --git a/aloe_django/__init__.py b/aloe_django/__init__.py
index <HASH>..<HASH> 100644
--- a/aloe_django/__init__.py
+++ b/aloe_django/__init__.py
@@ -50,4 +50,9 @@ def django_url(step):
"""
testclass = step.testclass
- return testclass.live_server_url.__get__(testclass)
+ try:
+ # In Djang... | Fix accessing live_server_url in Django <I> | py |
diff --git a/georasters/georasters.py b/georasters/georasters.py
index <HASH>..<HASH> 100755
--- a/georasters/georasters.py
+++ b/georasters/georasters.py
@@ -1459,7 +1459,7 @@ def squares(row, georaster=None):
(row.x,row.y+georaster.y_cell_size)])
return geometry
-def to_geopandas(raste... | name option added to to_pandas | py |
diff --git a/distutils/tests/test_sysconfig.py b/distutils/tests/test_sysconfig.py
index <HASH>..<HASH> 100644
--- a/distutils/tests/test_sysconfig.py
+++ b/distutils/tests/test_sysconfig.py
@@ -49,7 +49,8 @@ class TestSysconfig:
assert isinstance(cvars, dict)
assert cvars
- @unittest.skip('sysco... | Convert unconditional skip to conditional skip. Mark test as xfail because it's failing. | py |
diff --git a/satpy/composites/__init__.py b/satpy/composites/__init__.py
index <HASH>..<HASH> 100644
--- a/satpy/composites/__init__.py
+++ b/satpy/composites/__init__.py
@@ -1483,6 +1483,8 @@ class BackgroundCompositor(GenericCompositor):
# Use alpha channel as weight and blend the two composites
... | Add a note that the alpha band will be removed by design | py |
diff --git a/rejester/workers.py b/rejester/workers.py
index <HASH>..<HASH> 100644
--- a/rejester/workers.py
+++ b/rejester/workers.py
@@ -391,7 +391,7 @@ class SingleWorker(Worker):
return False
try:
if set_title:
- setproctitle('rejester worker {} {}'
+ ... | setproctitle() in a way that doesn't fail if work unit keys have \0 bytes | py |
diff --git a/wolframalpha/test_client.py b/wolframalpha/test_client.py
index <HASH>..<HASH> 100644
--- a/wolframalpha/test_client.py
+++ b/wolframalpha/test_client.py
@@ -62,3 +62,9 @@ def test_unsuccessful(client):
assert not res
assert len(res) == 0
assert list(res.info) == []
+
+
+def test_from_env(mo... | Ensure line <I> is covered | py |
diff --git a/dvc/utils/collections.py b/dvc/utils/collections.py
index <HASH>..<HASH> 100644
--- a/dvc/utils/collections.py
+++ b/dvc/utils/collections.py
@@ -8,7 +8,14 @@ def compact(args):
def apply_diff(src, dest):
- """Recursively apply changes from stc to dest"""
+ """Recursively apply changes from src ... | dvc: improve apply_diff() docstring - explain how it works and why is it needed - fix typo | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ else:
os.system("python {0}/generate_man.py > {0}/manpages/cocaine-tool.5".format(BASE_DIR))
tools_requires = ['opster >= 4.0']
tools_packages = ["cocaine.tools", "cocaine.tools.helpers"]
- if ... | Install bash_completion only in with deb package. | py |
diff --git a/src/cypher/run.py b/src/cypher/run.py
index <HASH>..<HASH> 100644
--- a/src/cypher/run.py
+++ b/src/cypher/run.py
@@ -198,11 +198,16 @@ class ResultSet(list, ColumnGuesserMixin):
graph = nx.MultiGraph()
for item in self._results.graph:
for node in item['nodes']:
- ... | Updated for Python <I> support | py |
diff --git a/mtspec/tests/test_multitaper.py b/mtspec/tests/test_multitaper.py
index <HASH>..<HASH> 100644
--- a/mtspec/tests/test_multitaper.py
+++ b/mtspec/tests/test_multitaper.py
@@ -346,7 +346,7 @@ class MtSpecTestCase(unittest.TestCase):
one_hz_sin = np.sin(np.arange(0, sampling_rate, dtype='float32') /
... | Getting rid of another numpy deprecation warning | py |
diff --git a/mutagen/mp3/__init__.py b/mutagen/mp3/__init__.py
index <HASH>..<HASH> 100644
--- a/mutagen/mp3/__init__.py
+++ b/mutagen/mp3/__init__.py
@@ -187,8 +187,8 @@ class MPEGFrame(object):
if xing.frames != -1:
samples = frame_size * xing.frames
if xing.bytes != -1 ... | mp3: keep bitrate an int | py |
diff --git a/metpy/calc/basic.py b/metpy/calc/basic.py
index <HASH>..<HASH> 100644
--- a/metpy/calc/basic.py
+++ b/metpy/calc/basic.py
@@ -110,7 +110,7 @@ def windchill(temperature, speed, face_level_winds=False, mask_undefined=True):
Parameters
----------
- temp : array_like
+ temperature : array_lik... | Make param names in docstring match function def. | py |
diff --git a/tests/test_collection.py b/tests/test_collection.py
index <HASH>..<HASH> 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -39,6 +39,22 @@ class Test_pytest_collect_file(object):
assert "hastests.py" in stdout
assert "_util.py" not in stdout
+ def test_skips_und... | Failing test for a missing feature - skipping underscored DIRECTORIES So e.g. _support dirs in my other projects get scanned for .py files | py |
diff --git a/pdfwatermarker/watermark/watermark.py b/pdfwatermarker/watermark/watermark.py
index <HASH>..<HASH> 100644
--- a/pdfwatermarker/watermark/watermark.py
+++ b/pdfwatermarker/watermark/watermark.py
@@ -35,10 +35,6 @@ class Watermark:
self.pdf = WatermarkAdd(pdf, watermark)
if encrypt:
- ... | Added encrypt parameter to watermark class, when set the watermarked PDF will be encrypted with the parameters declared by EncryptParams | py |
diff --git a/torchvision/models/inception.py b/torchvision/models/inception.py
index <HASH>..<HASH> 100644
--- a/torchvision/models/inception.py
+++ b/torchvision/models/inception.py
@@ -70,9 +70,9 @@ class Inception3(nn.Module):
def forward(self, x):
if self.transform_input:
x = x.clone()
- ... | Fix inception v3 input transform (#<I>) First dimension is batch size, channel is the second | py |
diff --git a/server.py b/server.py
index <HASH>..<HASH> 100644
--- a/server.py
+++ b/server.py
@@ -147,7 +147,7 @@ class OpenIDServer(object):
except TypeError:
raise ProtocolError('no secret found for %r' % assoc_handle)
- if expiry < time.time():
+ if not expiry:
... | [project @ checkid looking for positive expiry rather than expiry < time.time() in checkid] | py |
diff --git a/pypet/utils/ptcompat.py b/pypet/utils/ptcompat.py
index <HASH>..<HASH> 100644
--- a/pypet/utils/ptcompat.py
+++ b/pypet/utils/ptcompat.py
@@ -95,15 +95,16 @@ def _make_pt2_array(hdf5_file, *args, **kwargs):
def _read_array(array):
res = array.read()
try:
- if res.size == 1 and res.ndim ==... | faster checking for empty arrays in ptcompat | py |
diff --git a/looper/models.py b/looper/models.py
index <HASH>..<HASH> 100644
--- a/looper/models.py
+++ b/looper/models.py
@@ -145,6 +145,10 @@ class AttributeDict(MutableMapping):
self[key] = value
+ def __setattr__(self, key, value):
+ self.__setitem__(key, value)
+
+
def __getattr__(s... | test PASS; delegate attribute setting to item setter | py |
diff --git a/chainer_ui/views/result.py b/chainer_ui/views/result.py
index <HASH>..<HASH> 100644
--- a/chainer_ui/views/result.py
+++ b/chainer_ui/views/result.py
@@ -14,7 +14,7 @@ class ResultAPI(MethodView):
def get(self, id=None):
""" get """
- results = DB_SESSION.query(Result).all()
+ ... | response only not unregistered results at get results API | py |
diff --git a/preconditions.py b/preconditions.py
index <HASH>..<HASH> 100644
--- a/preconditions.py
+++ b/preconditions.py
@@ -3,4 +3,8 @@ class PreconditionError (TypeError):
def preconditions(*precs):
- pass # stub.
+ def decorate(f):
+ def g(*a, **kw):
+ return f(*a, **kw)
+ retur... | Implement a stub decorator factory. | py |
diff --git a/excel_helper/__init__.py b/excel_helper/__init__.py
index <HASH>..<HASH> 100644
--- a/excel_helper/__init__.py
+++ b/excel_helper/__init__.py
@@ -493,8 +493,7 @@ class ExcelParameterLoader(object):
excel_handler_instance = None
if excel_handler == 'openpyxl':
excel_handler_in... | removed xlsx2csv | py |
diff --git a/spinoff/actor/remoting.py b/spinoff/actor/remoting.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/remoting.py
+++ b/spinoff/actor/remoting.py
@@ -23,6 +23,7 @@ from spinoff.actor.events import Events, DeadLetter
from spinoff.util.logging import Logging, logstring
+# TODO: use shorter messages outs... | Added a TODO note to optimise the remoting.{PING, PONG} constants for reduced bandwidth outside of TESTING | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ if __name__ == "__main__":
setup(
name="soaplite",
url="https://github.com/SINGROUP/SOAPLite",
- version="0.14.6",
+ version="0.14.7",
description=("fast lightweight... | Merged the prefactor change and updated version number. | py |
diff --git a/aiger/aig.py b/aiger/aig.py
index <HASH>..<HASH> 100644
--- a/aiger/aig.py
+++ b/aiger/aig.py
@@ -331,7 +331,7 @@ class AIG:
f.write(repr(self))
def _modify_leafs(self, func):
- @fn.memoize
+ @fn.memoize(key_func=id)
def _mod(node):
if isinstance(node... | Compose using key_func=id to avoid expensive hashing. | py |
diff --git a/tests/unit/lago/test_utils.py b/tests/unit/lago/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/unit/lago/test_utils.py
+++ b/tests/unit/lago/test_utils.py
@@ -14,11 +14,10 @@ def deep_compare(original_obj, copy_obj):
if isinstance(original_obj, dict):
assert copy_obj is not original_... | tests: fix test_nested_mixed Similar issue to <I>bf6f, the ordering of the elements in the dict was not promised, so comparing keys instead. | py |
diff --git a/psidialogs/plugins/wxpython_wrapper.py b/psidialogs/plugins/wxpython_wrapper.py
index <HASH>..<HASH> 100644
--- a/psidialogs/plugins/wxpython_wrapper.py
+++ b/psidialogs/plugins/wxpython_wrapper.py
@@ -78,7 +78,7 @@ class Backend(IPlugin):
)
else:
result = self.wx.lib.dia... | wx fix: use FD_OPEN | py |
diff --git a/acos_client/v30/slb/service_group.py b/acos_client/v30/slb/service_group.py
index <HASH>..<HASH> 100644
--- a/acos_client/v30/slb/service_group.py
+++ b/acos_client/v30/slb/service_group.py
@@ -51,6 +51,11 @@ class ServiceGroup(base.BaseV30):
def _set(self, name, protocol=None, lb_method=None, hm_na... | hm disassociation fix, <I> | py |
diff --git a/solvebio/cli/ipython.py b/solvebio/cli/ipython.py
index <HASH>..<HASH> 100644
--- a/solvebio/cli/ipython.py
+++ b/solvebio/cli/ipython.py
@@ -45,7 +45,7 @@ def launch_ipython_5_shell(args):
c.InteractiveShell.banner1 = 'SolveBio Python shell started.\n'
c.InteractiveShellApp.exec_files = ['... | fix issue with ipython embed + args | py |
diff --git a/test/regression/test_189_issue.py b/test/regression/test_189_issue.py
index <HASH>..<HASH> 100644
--- a/test/regression/test_189_issue.py
+++ b/test/regression/test_189_issue.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from test.test_base import TestBase
-from ambry.mprlib import PostgreSQLBackend
+from... | Broken tests fixed. #<I>. | py |
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/base_case.py
+++ b/seleniumbase/fixtures/base_case.py
@@ -4955,12 +4955,6 @@ class BaseCase(unittest.TestCase):
""" >>> "pip install -r requirement... | For the test time-limit feature, start the clock at the end of setUp() | py |
diff --git a/semantic_version/base.py b/semantic_version/base.py
index <HASH>..<HASH> 100644
--- a/semantic_version/base.py
+++ b/semantic_version/base.py
@@ -91,13 +91,13 @@ class Version(object):
return int(value)
def next_major(self):
- if self.prerelease and self.minor is 0 and self.patch is ... | Don't use `is` for integer comparisons. Closes #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@ setup(
"Development Status :: 4 - Beta",
"Environment :: Console",
"Topic :: Utilities",
- "License :: OSI Approved :: GNU General Public License (GPLv3)",
+ "License :: ... | fixed license string to be compatible with pypi | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setup(name='rhaptos.cnxmlutils',
zip_safe=False,
install_requires=[
'setuptools',
- 'lxml',
+ #'lxml',
#'argparse',
# -*- Extra requirements: -*-
... | Removed lxml dependency | py |
diff --git a/socialoauth/__init__.py b/socialoauth/__init__.py
index <HASH>..<HASH> 100644
--- a/socialoauth/__init__.py
+++ b/socialoauth/__init__.py
@@ -3,7 +3,7 @@
from socialoauth.exception import SocialConfigError
-version_info = (0, 2, 2)
+version_info = (0, 2, 4)
VERSION = __version__ = '.'.join( map(str, ... | fix a mistake: self.get_site_class_by_id => self.get_site_name_by_id | py |
diff --git a/rtree/index.py b/rtree/index.py
index <HASH>..<HASH> 100644
--- a/rtree/index.py
+++ b/rtree/index.py
@@ -341,13 +341,12 @@ class Index(object):
"""
p_mins, p_maxs = self.get_coordinate_pointers(coordinates)
+ data = ctypes.c_ubyte(0)
+ size = 0
+ pyserialized = Non... | clean up logic to expect non-data inserts by default for insert() | py |
diff --git a/MAVProxy/modules/mavproxy_cmdlong.py b/MAVProxy/modules/mavproxy_cmdlong.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_cmdlong.py
+++ b/MAVProxy/modules/mavproxy_cmdlong.py
@@ -345,13 +345,15 @@ class CmdlongModule(mp_module.MPModule):
def cmd_command_int(self, args):
'''ex... | cmdlong: correct use-before-set bug with frame, improve debug | py |
diff --git a/salt/modules/grains.py b/salt/modules/grains.py
index <HASH>..<HASH> 100644
--- a/salt/modules/grains.py
+++ b/salt/modules/grains.py
@@ -206,8 +206,11 @@ def setvals(grains, destructive=False):
if val is None and destructive is True:
if key in grains:
del grains[key]... | fix grains.setvals: also update loaded grains Fixes #<I> | py |
diff --git a/sphinxcontrib/katex.py b/sphinxcontrib/katex.py
index <HASH>..<HASH> 100644
--- a/sphinxcontrib/katex.py
+++ b/sphinxcontrib/katex.py
@@ -20,7 +20,6 @@ from textwrap import dedent
from sphinx.locale import _
from sphinx.errors import ExtensionError
from sphinx.util.osutil import copyfile
-from sphinx.ex... | Remove deprecated Sphinx setup_math (#<I>) | py |
diff --git a/test_pytest_cov.py b/test_pytest_cov.py
index <HASH>..<HASH> 100644
--- a/test_pytest_cov.py
+++ b/test_pytest_cov.py
@@ -422,3 +422,22 @@ def test_coveragerc_dist(testdir):
assert result.ret == 0
result.stdout.fnmatch_lines(
['test_coveragerc_dist * %s' % EXCLUDED_RESULT])
+
+
+CLEAR_EN... | Added test for clearing environ in tests. | py |
diff --git a/sensorimotor/sensorimotor/general_temporal_memory.py b/sensorimotor/sensorimotor/general_temporal_memory.py
index <HASH>..<HASH> 100644
--- a/sensorimotor/sensorimotor/general_temporal_memory.py
+++ b/sensorimotor/sensorimotor/general_temporal_memory.py
@@ -337,6 +337,6 @@ class GeneralTemporalMemoryConnec... | Updated general temporal memory to match refactor in temporal memory | py |
diff --git a/src/OpenAccess_EPUB/ops/opsplos.py b/src/OpenAccess_EPUB/ops/opsplos.py
index <HASH>..<HASH> 100644
--- a/src/OpenAccess_EPUB/ops/opsplos.py
+++ b/src/OpenAccess_EPUB/ops/opsplos.py
@@ -367,13 +367,13 @@ class OPSPLoS(OPSMeta):
abstract.node.tagName = 'div'
abstract.node.s... | fixed bad calls of removeAllAttributes | py |
diff --git a/grab/util/module.py b/grab/util/module.py
index <HASH>..<HASH> 100644
--- a/grab/util/module.py
+++ b/grab/util/module.py
@@ -114,8 +114,8 @@ def build_spider_registry(config):
for path in config.get('SPIDER_MODULES'):
try:
mod = __import__(path, None, None, ['foo'])
- exc... | Add verbose logging to build_spider_registry function | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,6 +48,7 @@ setup(
url=about["__project_url__"],
author=about["__author__"],
+ author_email=about["__email__"],
license=about["__license__"],
packages=find_packages(), | Add author_email to setup.py | py |
diff --git a/spikeylab/gui/control.py b/spikeylab/gui/control.py
index <HASH>..<HASH> 100644
--- a/spikeylab/gui/control.py
+++ b/spikeylab/gui/control.py
@@ -528,8 +528,6 @@ class MainWindow(ControlWindow):
spectrum = calc_db(spectrum)
spectrum[0] = 0
peakspl = np.amax(spectrum)
- sel... | forgot to remote spl widgets | py |
diff --git a/websocket/_core.py b/websocket/_core.py
index <HASH>..<HASH> 100644
--- a/websocket/_core.py
+++ b/websocket/_core.py
@@ -723,13 +723,13 @@ class WebSocket(object):
return ABNF(fin, rsv1, rsv2, rsv3, opcode, has_mask, payload)
- def send_close(self, status=STATUS_NORMAL, reason=""):
+ de... | Update _core.py re-fixed issue #<I> | py |
diff --git a/test/test_crud.py b/test/test_crud.py
index <HASH>..<HASH> 100644
--- a/test/test_crud.py
+++ b/test/test_crud.py
@@ -102,7 +102,7 @@ def create_test(scenario_def, test, ignore_result):
if expected_c is not None:
expected_name = expected_c.get('name')
if expec... | Redundant assignment in test_crud.py. | py |
diff --git a/lib/crtomo/grid.py b/lib/crtomo/grid.py
index <HASH>..<HASH> 100644
--- a/lib/crtomo/grid.py
+++ b/lib/crtomo/grid.py
@@ -675,7 +675,8 @@ class crt_grid(object):
"""
centroids = self.get_element_centroids()
- Wm = scipy.sparse.csr((self.nr_of_elements, self.nr_of_elements))
+ ... | fix issue with sparse matrix-use | py |
diff --git a/crosscat/tests/plot_timing_analysis.py b/crosscat/tests/plot_timing_analysis.py
index <HASH>..<HASH> 100644
--- a/crosscat/tests/plot_timing_analysis.py
+++ b/crosscat/tests/plot_timing_analysis.py
@@ -23,4 +23,4 @@ if __name__ == '__main__':
# read in the data
all_configs = read_all_configs(dirn... | BUGFIX: pass vary_what to plot_results | py |
diff --git a/src/powershift/resources/base.py b/src/powershift/resources/base.py
index <HASH>..<HASH> 100644
--- a/src/powershift/resources/base.py
+++ b/src/powershift/resources/base.py
@@ -61,6 +61,9 @@ class Resource(object):
def __setitem__(self, name, value):
self.__dict__[name] = value
+ def __... | Add means to iterate over keys in default resource object. | 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
@@ -8,7 +8,7 @@ from __future__ import absolute_import
try:
from shlex import quote as _cmd_quote # pylint: disable=E0611
-except:
+except: # p... | Commented out a pylint error | py |
diff --git a/browsertime/visualmetrics-portable.py b/browsertime/visualmetrics-portable.py
index <HASH>..<HASH> 100644
--- a/browsertime/visualmetrics-portable.py
+++ b/browsertime/visualmetrics-portable.py
@@ -137,7 +137,7 @@ def resize(img, width, height):
def scale(img, maxsize):
"""Scale an image to the given... | Add Python <I>+ requirement to visualmetrics-portable.py. (#<I>) * Add a float conversion to prevent a 0 ratio when scaling. * Add Python <I>+ requirement to visualmetrics-portable.py. | py |
diff --git a/qiskit/qobj/qobj.py b/qiskit/qobj/qobj.py
index <HASH>..<HASH> 100644
--- a/qiskit/qobj/qobj.py
+++ b/qiskit/qobj/qobj.py
@@ -57,7 +57,7 @@ class QobjItem(SimpleNamespace):
if isinstance(obj, sympy.Symbol):
return str(obj)
if isinstance(obj, sympy.Basic):
- if obj.... | fixes bug on some backends where real params (#<I>) get mapped to list of [re, im]. | py |
diff --git a/pyfolio/utils.py b/pyfolio/utils.py
index <HASH>..<HASH> 100644
--- a/pyfolio/utils.py
+++ b/pyfolio/utils.py
@@ -17,10 +17,10 @@ from __future__ import division
import warnings
-import empyrical
import numpy as np
import pandas as pd
from IPython.display import display
+from empyrical.utils import... | direct import empyrical functions in utils | py |
diff --git a/salt/pillar/vmware_pillar.py b/salt/pillar/vmware_pillar.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/vmware_pillar.py
+++ b/salt/pillar/vmware_pillar.py
@@ -370,7 +370,8 @@ def ext_pillar(minion_id, pillar, **kwargs): # pylint: disable=W0613
vmware_pillar[pillar_key] = {}
try:
... | Default vmware pillar to verify SSL | py |
diff --git a/alerta/auth/basic.py b/alerta/auth/basic.py
index <HASH>..<HASH> 100644
--- a/alerta/auth/basic.py
+++ b/alerta/auth/basic.py
@@ -108,13 +108,11 @@ def forgot():
try:
email = request.json['email']
except KeyError:
- raise ApiError("must supply 'email'", 401)
+ raise ApiErro... | Improve password reset flow (#<I>) | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -586,6 +586,8 @@ def cli_bin_dir(tempdir,
Return the path to the CLI script directory to use
'''
tmp_cli_scripts_dir = tempdir.join('cli-scrips-bin')
+ # Make sure we re-wr... | Wipe the CLI scripts on start | py |
diff --git a/h2o-py/tests/testdir_jira/h2o.init_test_HOQE-16.py b/h2o-py/tests/testdir_jira/h2o.init_test_HOQE-16.py
index <HASH>..<HASH> 100644
--- a/h2o-py/tests/testdir_jira/h2o.init_test_HOQE-16.py
+++ b/h2o-py/tests/testdir_jira/h2o.init_test_HOQE-16.py
@@ -28,11 +28,11 @@ except H2OConnectionError:
# The serve... | Disable version check in h2o.init_test_HOQE-<I>.py because apparently setting up an environment variable is too hard | py |
diff --git a/openquake/commonlib/riskmodels.py b/openquake/commonlib/riskmodels.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/riskmodels.py
+++ b/openquake/commonlib/riskmodels.py
@@ -75,7 +75,7 @@ class VulnerabilityNode(LiteralNode):
assetCategory=str,
# the assetCategory here has nothing... | Removed constraint on lossCategory | py |
diff --git a/dev/tests.py b/dev/tests.py
index <HASH>..<HASH> 100644
--- a/dev/tests.py
+++ b/dev/tests.py
@@ -81,7 +81,7 @@ def run(matcher=None, repeat=1):
suite.addTest(test)
result = unittest.TextTestRunner(stream=stream, verbosity=verbosity).run(suite)
- if len(result.errors) > 0:
+ ... | Fix issue with tests return value not always being correct | py |
diff --git a/tests/runtests.py b/tests/runtests.py
index <HASH>..<HASH> 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -225,11 +225,18 @@ class SaltTestsuiteParser(SaltCoverageTestingParser):
'''
Execute the unit tests
'''
- if not self.options.unit:
+ if not self.opt... | Finish what was started on f<I>fca<I> | py |
diff --git a/hebel/layers/hidden_layer.py b/hebel/layers/hidden_layer.py
index <HASH>..<HASH> 100644
--- a/hebel/layers/hidden_layer.py
+++ b/hebel/layers/hidden_layer.py
@@ -48,6 +48,9 @@ class HiddenLayer(object):
activation_function : {``sigmoid``, ``tanh``, ``relu``, ``linear``}, optional
Which activa... | Add dropout doc to HiddenLayer | py |
diff --git a/src/sdk/pynni/nni/nas/tensorflow/mutator.py b/src/sdk/pynni/nni/nas/tensorflow/mutator.py
index <HASH>..<HASH> 100644
--- a/src/sdk/pynni/nni/nas/tensorflow/mutator.py
+++ b/src/sdk/pynni/nni/nas/tensorflow/mutator.py
@@ -66,7 +66,12 @@ class Mutator(BaseMutator):
if reduction_type == 'mean':
... | Udpated concat axis to match image_data_format in keras (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@ create_caches()
setup(
name="estnltk",
- version="1.6.7beta",
+ version="1.6.7b0",
packages=find_packages(exclude=exclude_package_dirs),
include_package_data=True, | Updated setup.py : hint taken about normalizing version | py |
diff --git a/eppy/idfreader.py b/eppy/idfreader.py
index <HASH>..<HASH> 100644
--- a/eppy/idfreader.py
+++ b/eppy/idfreader.py
@@ -26,9 +26,9 @@ def iddversiontuple(afile):
def versiontuple(vers):
"""version tuple"""
return tuple([int(num) for num in vers.split(".")])
- if type(afile) == str:
... | Avoid explicitly testing for `str` when opening an IDF Instead this uses a try/except block and catches the type error. This pattern is py2 / py3 compliant (and the original py2 test should have been against `basestring`). | py |
diff --git a/example/tests/test_views.py b/example/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/example/tests/test_views.py
+++ b/example/tests/test_views.py
@@ -145,6 +145,22 @@ class TestRelationshipView(APITestCase):
response = self.client.delete(url, data=json.dumps(request_data), content_type='ap... | Added a relationship deletion unit test To delete a relationship, the corresponding value is being overriden with None. Eg: { 'data': { 'type': 'posts', 'relationships': { 'blog': { 'data': None } } } } | py |
diff --git a/pptx/opc/packaging.py b/pptx/opc/packaging.py
index <HASH>..<HASH> 100644
--- a/pptx/opc/packaging.py
+++ b/pptx/opc/packaging.py
@@ -54,7 +54,7 @@ class Package(object):
Return a list of :class:`pptx.packaging.Part` corresponding to the
parts in this package.
"""
- return... | reorg: Package.__walkparts to single underscore | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -448,12 +448,13 @@ def copyDbFrom(config_name = False):
# drush has no predictable behaviour
if source_config['supportsZippedBackups']:
- sql_name_source += '.gz'
sql_name_target += '.gz'
... | fix zipped copyDbFrom | py |
diff --git a/src/rammbock/Encode.py b/src/rammbock/Encode.py
index <HASH>..<HASH> 100644
--- a/src/rammbock/Encode.py
+++ b/src/rammbock/Encode.py
@@ -10,4 +10,4 @@ def _get_headers_from_msg_object(message):
return " ".join(x for _ , x in message.header)
def _get_ie_from_msg_object(message):
- return " ".joi... | fixed a bug. now sending http get is really in that format what it should be | py |
diff --git a/master/buildbot/status/status_gerrit.py b/master/buildbot/status/status_gerrit.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/status_gerrit.py
+++ b/master/buildbot/status/status_gerrit.py
@@ -292,6 +292,7 @@ class GerritStatusPush(StatusReceiverMultiService, buildset.BuildSetSummaryNotif
... | provide build itself for those who need it Summary callback differs from the review build callback in lack of the actual build instance: the former only gets particular information about builds. In some situations, the build itself is required to do some magic. | py |
diff --git a/bika/lims/upgrade/to1101.py b/bika/lims/upgrade/to1101.py
index <HASH>..<HASH> 100644
--- a/bika/lims/upgrade/to1101.py
+++ b/bika/lims/upgrade/to1101.py
@@ -21,7 +21,7 @@ def upgrade(tool):
mp = portal.manage_permission
mp(AddAnalysisSpec, ['Manager', 'Owner', 'LabManager', 'LabClerk'], 1)
... | Fix permission name in upgrade-<I> | py |
diff --git a/peyotl/api/wrapper.py b/peyotl/api/wrapper.py
index <HASH>..<HASH> 100644
--- a/peyotl/api/wrapper.py
+++ b/peyotl/api/wrapper.py
@@ -48,8 +48,7 @@ def log_request_as_curl(curl_log, url, verb, headers, params, data):
if data:
if isinstance(data, str) or isinstance(data, unicode):
... | partial fix of my hacky curl generator | py |
diff --git a/gns3server/modules/dynamips/__init__.py b/gns3server/modules/dynamips/__init__.py
index <HASH>..<HASH> 100644
--- a/gns3server/modules/dynamips/__init__.py
+++ b/gns3server/modules/dynamips/__init__.py
@@ -710,10 +710,12 @@ class Dynamips(BaseManager):
"""
image_dir = self.get_images_di... | Fix a crash if you create a file named IOS in the image dir Fix #<I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.