diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/rencode/rencode_orig.py b/rencode/rencode_orig.py
index <HASH>..<HASH> 100644
--- a/rencode/rencode_orig.py
+++ b/rencode/rencode_orig.py
@@ -243,7 +243,7 @@ def make_fixed_length_list_decoders():
def make_decoder(slen):
def f(x, f):
r, f = [], f+1
- for i in range(sle... | Remove unusued variables i and j | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(name = "artist",
- version = "0.11.0",
+ version = "0.12.0",
packages = find_packages(),
url = "http://github.com/davidfokkema/artist/"... | Bump to version <I> | py |
diff --git a/src/python/twitter/common/python/http/crawler.py b/src/python/twitter/common/python/http/crawler.py
index <HASH>..<HASH> 100644
--- a/src/python/twitter/common/python/http/crawler.py
+++ b/src/python/twitter/common/python/http/crawler.py
@@ -51,6 +51,7 @@ class CrawlerBase(object):
for url in urls:
... | Merge fixes round 1 - pull in related pants python ripple. (sapling split of ea7a<I>defb8cbd1dca<I>d<I>b<I>d1d7d0) | py |
diff --git a/spyder/plugins/editor/widgets/base.py b/spyder/plugins/editor/widgets/base.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/base.py
+++ b/spyder/plugins/editor/widgets/base.py
@@ -1084,12 +1084,20 @@ class TextEditBaseWidget(QPlainTextEdit, BaseEditMixin):
def insert_completion(se... | move to beginning of word before selecting word | py |
diff --git a/lenses/identity.py b/lenses/identity.py
index <HASH>..<HASH> 100644
--- a/lenses/identity.py
+++ b/lenses/identity.py
@@ -8,6 +8,11 @@ class Identity(object):
def __repr__(self):
return '{}({!r})'.format(self.__class__.__qualname__, self.item)
+ def __eq__(self, other):
+ if not i... | added __eq__ to Identity | py |
diff --git a/skitai/server/http_server.py b/skitai/server/http_server.py
index <HASH>..<HASH> 100644
--- a/skitai/server/http_server.py
+++ b/skitai/server/http_server.py
@@ -481,15 +481,15 @@ def hQUITWORKER (signum, frame):
lifetime.shutdown (0, 30.0)
def DO_SHUTDOWN (sig):
- global SURVAIL, PID
- SURVAIL = Fal... | handle KeyboardInterrupt on posix | py |
diff --git a/mautrix/util/network_retry.py b/mautrix/util/network_retry.py
index <HASH>..<HASH> 100644
--- a/mautrix/util/network_retry.py
+++ b/mautrix/util/network_retry.py
@@ -32,7 +32,7 @@ async def call_with_net_retry(func: Callable, *args: Any, _action: str, _attempt
try:
return await func(*... | Include <I> in call_with_net_retry error codes | py |
diff --git a/helpers/generate_corpus.py b/helpers/generate_corpus.py
index <HASH>..<HASH> 100644
--- a/helpers/generate_corpus.py
+++ b/helpers/generate_corpus.py
@@ -5,11 +5,11 @@ Playground to generarte the cable corpus
import os
from cablemap.core import handle_source, predicates as pred
from cablemap.core.handle... | Applied changes from the .nlp package | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ setuptools.setup(
],
extras_require={
'api': [
- 'djangorestframework',
+ 'djangorestframework<3.4', # For compatibility with Django < 1.8
],
'brightco... | Fix Django <I> tests, when `api` extra is installed. | py |
diff --git a/netsnmpagent.py b/netsnmpagent.py
index <HASH>..<HASH> 100644
--- a/netsnmpagent.py
+++ b/netsnmpagent.py
@@ -236,6 +236,11 @@ class netsnmpAgent(object):
self._asntype,
self._flags
)
+
+ # Explicitly set netsnmp_watcher_info structure's
+ # max_size parameter. netsnmp_crea... | Explicitly comment why we set watcher_info struct's max_size manually | py |
diff --git a/tibber/__init__.py b/tibber/__init__.py
index <HASH>..<HASH> 100644
--- a/tibber/__init__.py
+++ b/tibber/__init__.py
@@ -836,9 +836,9 @@ class TibberHome:
if grid_company and "glitre" in grid_company.lower():
now = now.astimezone(pytz.timezone("Europe/Oslo"))
if now.mont... | Update __init__.py (#<I>) Grid prices seems to change all the time now. Glitre has lowered winter grid price to <I> NOK/kWh and summer grid price to <I> NOK/kWh. In addition Norwegian government has decided to reduce the consumer fee with <I> NOK/kWh in January, February and March. This consumer fee reduction might... | py |
diff --git a/cookiecutter/main.py b/cookiecutter/main.py
index <HASH>..<HASH> 100755
--- a/cookiecutter/main.py
+++ b/cookiecutter/main.py
@@ -39,10 +39,9 @@ def cookiecutter(input_dir, checkout=None, no_input=False):
if input_dir.endswith('.git'):
got_repo_arg = True
repo_dir = git_clone(input_d... | Fix more tests that the pull req broke - don't copy input_dir to temp location. | py |
diff --git a/nashvegas/management/commands/upgradedb.py b/nashvegas/management/commands/upgradedb.py
index <HASH>..<HASH> 100644
--- a/nashvegas/management/commands/upgradedb.py
+++ b/nashvegas/management/commands/upgradedb.py
@@ -170,9 +170,10 @@ class Command(BaseCommand):
])
elif migrat... | use execfile to run Python scripts over __import__ to avoid import overhead and pyc files | py |
diff --git a/thinc/neural/_classes/hash_embed.py b/thinc/neural/_classes/hash_embed.py
index <HASH>..<HASH> 100644
--- a/thinc/neural/_classes/hash_embed.py
+++ b/thinc/neural/_classes/hash_embed.py
@@ -59,8 +59,7 @@ class HashEmbed(Model):
keys = self.ops.hash(ids, self.seed) % self.nV
d_vect... | Revert hash_embed change | py |
diff --git a/src/bezier/_surface_helpers.py b/src/bezier/_surface_helpers.py
index <HASH>..<HASH> 100644
--- a/src/bezier/_surface_helpers.py
+++ b/src/bezier/_surface_helpers.py
@@ -2253,7 +2253,7 @@ def basic_interior_combine(
while unused:
start = unused.pop()
curr_node = start
- next_n... | Variable rename for clarity. | py |
diff --git a/tests/test_run.py b/tests/test_run.py
index <HASH>..<HASH> 100644
--- a/tests/test_run.py
+++ b/tests/test_run.py
@@ -51,12 +51,12 @@ def test_parse_arguments(capsys, tmpdir):
with pytest.raises(SystemExit):
run.parse_arguments(["-v"])
out, err = capsys.readouterr()
- assert __version... | Remove '\n' from for version strings for test_parse_arguments test. | py |
diff --git a/arviz/stats/stats.py b/arviz/stats/stats.py
index <HASH>..<HASH> 100644
--- a/arviz/stats/stats.py
+++ b/arviz/stats/stats.py
@@ -395,7 +395,6 @@ def hpd(ary, credible_interval=None, circular=False, multimodal=False, skipna=Fa
hpd_intervals = np.array(hpd_intervals)
else:
- ary = ary... | Remove hpd redundant copy (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,10 +8,10 @@ setup(
description='User interface widgets for use with Pygame',
py_modules=['pygwidgets'],
package_dir = {'': 'src'},
+ license="BSD",
url='https://github.com/IrvKalb/pygwidgets',
cl... | Update setup.py Changed license entries | py |
diff --git a/workalendar/tests/test_core.py b/workalendar/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/workalendar/tests/test_core.py
+++ b/workalendar/tests/test_core.py
@@ -65,3 +65,24 @@ class CalendarTest(GenericCalendarTest):
Calendar.get_last_weekday_in_month(2013, 1, THU),
date(... | test on add_workdays for more than a year (spanned over 2 years). closes #4 | py |
diff --git a/acceptancetests/assess_cloud_display.py b/acceptancetests/assess_cloud_display.py
index <HASH>..<HASH> 100755
--- a/acceptancetests/assess_cloud_display.py
+++ b/acceptancetests/assess_cloud_display.py
@@ -59,7 +59,7 @@ def remove_display_attributes(cloud):
def get_clouds(client):
cloud_list = yaml... | Use --client in "juju clouds" test instead of --local (gone in <I>) | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -641,7 +641,7 @@ class Kconfig(object):
# Build Symbol._dependents for all symbols
self._build_dep()
- self._warn_no_prompt = False
+ self._warn_no_prompt = True
@pr... | Reenable accidentally disabled no-prompt warning Warnings for assignments to promptless symbols should be enabled directly after Kconfig parsing. Braino from inverting the meaning of the flag earlier. The flag got properly reset after loading a .config. | py |
diff --git a/flow/structures.py b/flow/structures.py
index <HASH>..<HASH> 100644
--- a/flow/structures.py
+++ b/flow/structures.py
@@ -7,6 +7,8 @@ class Operation(object):
"""
Defines an operation that can be applied to items in a stream.
"""
+ __metaclass__ = abc.ABCMeta
+
@abc.abstractmethod
... | Made Operations, Predicates and Functions all abstract. | py |
diff --git a/heartbeat/heartbeat.py b/heartbeat/heartbeat.py
index <HASH>..<HASH> 100644
--- a/heartbeat/heartbeat.py
+++ b/heartbeat/heartbeat.py
@@ -138,6 +138,9 @@ class Heartbeat(object):
:param num: Number of blocks to pick
:param root_seed: Seed with which begin picking blocks.
"""
+ ... | Ensure num is greater than 0, or raise custom HeartbeatError | py |
diff --git a/nionswift_plugin/nion_instrumentation_ui/ScanAcquisition.py b/nionswift_plugin/nion_instrumentation_ui/ScanAcquisition.py
index <HASH>..<HASH> 100755
--- a/nionswift_plugin/nion_instrumentation_ui/ScanAcquisition.py
+++ b/nionswift_plugin/nion_instrumentation_ui/ScanAcquisition.py
@@ -96,7 +96,7 @@ class C... | Ensure large format is a bool (not a numpy.bool_). | py |
diff --git a/project_sample/settings.py b/project_sample/settings.py
index <HASH>..<HASH> 100644
--- a/project_sample/settings.py
+++ b/project_sample/settings.py
@@ -117,6 +117,6 @@ def get_events(request, calendar):
(e.g. from multiple calendars or with permission-based filter)
Imports have to be pl... | bugfix - sample event getter function failed | py |
diff --git a/lib/gruvi/fibers.py b/lib/gruvi/fibers.py
index <HASH>..<HASH> 100644
--- a/lib/gruvi/fibers.py
+++ b/lib/gruvi/fibers.py
@@ -149,12 +149,13 @@ class Fiber(fibers.Fiber):
def spawn(func, *args, **kwargs):
"""Spawn a new fiber.
- A new :class:`Fiber` is created with main function *func* and suppl... | fibers: pass kwargs to spawn() to Fiber Change fiber.spawn() so that only positional arguments get passed to the fiber's main function, all others are passed to the Fiber constructor. This makes it symmetric to other functions in Gruvi that accept callbacks (e.g. add_done_callback(), Hub.run_callback().) | py |
diff --git a/trimesh/path/exchange/dxf.py b/trimesh/path/exchange/dxf.py
index <HASH>..<HASH> 100644
--- a/trimesh/path/exchange/dxf.py
+++ b/trimesh/path/exchange/dxf.py
@@ -555,16 +555,11 @@ def export_dxf(path, layers=None):
subs : dict
Has keys 'COLOR', 'LAYER', 'NAME'
"""
+ # TO... | fix color reference in DXF export | py |
diff --git a/gevent_openssl/SSL.py b/gevent_openssl/SSL.py
index <HASH>..<HASH> 100644
--- a/gevent_openssl/SSL.py
+++ b/gevent_openssl/SSL.py
@@ -36,7 +36,7 @@ class Connection(object):
def accept(self):
sock, addr = self._sock.accept()
- client = OpenSSL.SSL.Connection(sock._context, sock)
+ ... | Fixed bug in accept() _context is on self not sock | py |
diff --git a/src/sphinx_autobuild/cli.py b/src/sphinx_autobuild/cli.py
index <HASH>..<HASH> 100644
--- a/src/sphinx_autobuild/cli.py
+++ b/src/sphinx_autobuild/cli.py
@@ -44,6 +44,10 @@ def get_ignore_handler(args):
return IgnoreHandler(regular, regex_based)
+def get_watcher(args):
+ return LivereloadWatchd... | Factor out logic for creating the watcher | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -104,7 +104,8 @@ class PyTest(Command):
print sys.path
# use pytest to run tests
pytest = __import__('pytest')
- pytest.main(['-n', '8', '-s', 'src'])
+ if pytest.main(['-n', '8', '-s',... | python setup.py test should exit with non-zero exit code if tests fail | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,6 +49,7 @@ setup(name='autolab_perception',
'sphinx_rtd_theme'
],
'ros' : [
+ 'primesense',
... | Add primesense to requirements for ros | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -12,6 +12,7 @@
# serve to show the default.
import sys, os
+import psutil
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the... | Fix Sphinx build failing due to missing psutil import. | py |
diff --git a/api/opentrons/drivers/rpi_drivers/gpio.py b/api/opentrons/drivers/rpi_drivers/gpio.py
index <HASH>..<HASH> 100755
--- a/api/opentrons/drivers/rpi_drivers/gpio.py
+++ b/api/opentrons/drivers/rpi_drivers/gpio.py
@@ -1,4 +1,5 @@
from os import system
+from sys import platform
"""
Raspberry Pi GPIO control ... | Redirect gpio stderr to null sink | py |
diff --git a/mbed_cloud/__init__.py b/mbed_cloud/__init__.py
index <HASH>..<HASH> 100644
--- a/mbed_cloud/__init__.py
+++ b/mbed_cloud/__init__.py
@@ -29,6 +29,15 @@ class BaseAPI(object):
api.configuration.api_key_prefix['Authorization'] = 'Bearer'
if config.get('host'):
api.configuratio... | Fix Python bug when uploading multipart forms | py |
diff --git a/linkGrabber/__init__.py b/linkGrabber/__init__.py
index <HASH>..<HASH> 100644
--- a/linkGrabber/__init__.py
+++ b/linkGrabber/__init__.py
@@ -79,7 +79,7 @@ class Links(object):
if filters is None:
filters = {}
- search = self._soup.findAll('a', **filters)
+ search = se... | fix crash when find links with duplicates=False with pages contains anchor without href attr | py |
diff --git a/ReText/fakevimeditor.py b/ReText/fakevimeditor.py
index <HASH>..<HASH> 100644
--- a/ReText/fakevimeditor.py
+++ b/ReText/fakevimeditor.py
@@ -132,7 +132,7 @@ class BlockSelection (QWidget):
self.__lineWidth = 4
def updateSelection(self, tc):
- # block selection rectagle
+ # block selection rectang... | docs: fix simple typo, rectagle -> rectangle There is a small typo in ReText/fakevimeditor.py. Should read `rectangle` rather than `rectagle`. | py |
diff --git a/thermohw/convert_thermo_hw.py b/thermohw/convert_thermo_hw.py
index <HASH>..<HASH> 100644
--- a/thermohw/convert_thermo_hw.py
+++ b/thermohw/convert_thermo_hw.py
@@ -196,7 +196,7 @@ def process(hw_num: int,
---------
hw_num
The number of this homework
- problems, optional
+ problem... | Fix a typo for a variable name in a docstring | py |
diff --git a/launch_control/tests/test_dashboard_bundle_format_1_0.py b/launch_control/tests/test_dashboard_bundle_format_1_0.py
index <HASH>..<HASH> 100644
--- a/launch_control/tests/test_dashboard_bundle_format_1_0.py
+++ b/launch_control/tests/test_dashboard_bundle_format_1_0.py
@@ -2,7 +2,7 @@
Module with unit tes... | Fix test_dashboard_bundle_format_1_0 module to use TestCase from unittest not from own models This makes all the unit tests in the module start to be picked up by TestLoader | py |
diff --git a/ELiDE/stores.py b/ELiDE/stores.py
index <HASH>..<HASH> 100644
--- a/ELiDE/stores.py
+++ b/ELiDE/stores.py
@@ -227,9 +227,7 @@ class FuncsEditor(StoreEditor):
self._editor = FunctionInput(
font_name=self.font_name,
font_size=self.font_size,
- name=self.selection... | can't initialize an absence of data | py |
diff --git a/great_expectations/data_asset/base.py b/great_expectations/data_asset/base.py
index <HASH>..<HASH> 100644
--- a/great_expectations/data_asset/base.py
+++ b/great_expectations/data_asset/base.py
@@ -20,7 +20,7 @@ from great_expectations.dataset.autoinspect import columns_exist
class DataAsset(object):
... | Add support for config and name arguments to DataAsset (#<I>) | py |
diff --git a/grid_frame.py b/grid_frame.py
index <HASH>..<HASH> 100644
--- a/grid_frame.py
+++ b/grid_frame.py
@@ -297,6 +297,14 @@ class GridFrame(wx.Frame):
if 'age' in self.parent.Parent.validation_mode:
self.grid.paint_invalid_cells(self.parent.Parent.warn_dict['age'])
... | make_magic: solution for age grid not showing up | py |
diff --git a/angr/analyses/cfg_fast.py b/angr/analyses/cfg_fast.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg_fast.py
+++ b/angr/analyses/cfg_fast.py
@@ -1524,7 +1524,7 @@ class CFGFast(ForwardAnalysis, CFGBase):
return False, None
# Perform a backward slicing from the jump target
- ... | limit max_level to 2 for now when calling Blade to resolve jumptables | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,7 @@ def find_version(*file_paths):
raise RuntimeError("Unable to find version string.")
WATCHDOG = 'watchdog >= 0.8.3'
+ICALENDAR = 'icalendar'
setup(
name = "topydo",
@@ -37,9 +38,9 @@ setup(
... | iCalendar is needed for running tests | py |
diff --git a/src/python/gen_factory.py b/src/python/gen_factory.py
index <HASH>..<HASH> 100644
--- a/src/python/gen_factory.py
+++ b/src/python/gen_factory.py
@@ -280,6 +280,7 @@ subroutine python_%s_energy_and_forces(this_cptr, p_cptr, nl_cptr, &
"""
s += """
error = ERROR_NONE
+ epot = 0.0_D... | MAINT: Set epot explicitly to zero | py |
diff --git a/visidata/loaders/fixed_width.py b/visidata/loaders/fixed_width.py
index <HASH>..<HASH> 100644
--- a/visidata/loaders/fixed_width.py
+++ b/visidata/loaders/fixed_width.py
@@ -53,7 +53,10 @@ class FixedWidthColumnsSheet(Sheet):
self.columns = []
# compute fixed width columns
for i,... | [fixed] include rest of line in final column; fixes #<I> | py |
diff --git a/h2o-py/h2o/h2o.py b/h2o-py/h2o/h2o.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/h2o.py
+++ b/h2o-py/h2o/h2o.py
@@ -86,7 +86,6 @@ def connect(server=None, url=None, ip=None, port=None, https=None, verify_ssl_ce
auth=auth, verify_ssl_certificates=verify_ssl_certificat... | PUBDEV-<I>: remove comment which documented the removal of some code. | py |
diff --git a/proselint/checks/butterick/symbols.py b/proselint/checks/butterick/symbols.py
index <HASH>..<HASH> 100644
--- a/proselint/checks/butterick/symbols.py
+++ b/proselint/checks/butterick/symbols.py
@@ -76,7 +76,7 @@ def check_multiplication_symbol(text):
u"""Use the multiplcation symbol ×, not the lowerca... | Allow no space around x in multiplication | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -75,7 +75,8 @@ setup(name='mxnet',
description=open(os.path.join(CURRENT_DIR, 'README.md')).read(),
packages=[
'mxnet', 'mxnet.module', 'mxnet._ctypes', 'mxnet.rnn',
- ... | Resolve a problem when import mxnet in python : ‘cannot import name gluon’ (#<I>) * Update setup.py * Update setup.py | py |
diff --git a/bcbio/variation/recalibrate.py b/bcbio/variation/recalibrate.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/recalibrate.py
+++ b/bcbio/variation/recalibrate.py
@@ -56,7 +56,7 @@ def _get_downsample_pct(runner, in_bam):
This identifies large files and calculates the fraction to downsample to.
... | Increase input counts for recalibration on whole genomes to include additional data and keep recal/re-write times in sync | py |
diff --git a/aiosocks/protocols.py b/aiosocks/protocols.py
index <HASH>..<HASH> 100644
--- a/aiosocks/protocols.py
+++ b/aiosocks/protocols.py
@@ -65,8 +65,17 @@ class BaseSocksProtocol(asyncio.StreamReaderProtocol):
self._negotiate_done = True
if self._ssl:
+ # Creating a ssl... | Close previous transport and add asyncio bug info | py |
diff --git a/pygmsh/built_in/geometry.py b/pygmsh/built_in/geometry.py
index <HASH>..<HASH> 100644
--- a/pygmsh/built_in/geometry.py
+++ b/pygmsh/built_in/geometry.py
@@ -184,8 +184,7 @@ class Geometry(object):
e,
(
Point,
- Line,
- ... | LineBase covers Line & CircleArc, & missing EllipseArc, fixes #<I> | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -138,6 +138,10 @@ def in_venv(venv, framework):
if expected_output != output:
sys.stderr.write("ERROR Wrong output, check the differences between " + expected_output_file + " and " + actual_output_file + "\n")
... | test.py: print diff on test failure | py |
diff --git a/qiskit/aqua/quantum_instance.py b/qiskit/aqua/quantum_instance.py
index <HASH>..<HASH> 100644
--- a/qiskit/aqua/quantum_instance.py
+++ b/qiskit/aqua/quantum_instance.py
@@ -15,6 +15,7 @@
import copy
import logging
import time
+import os
from qiskit import __version__ as terra_version
from qiskit.as... | use cache for testing only and allow to overwrite the cache setting via env variable | py |
diff --git a/src/wormhole/scripts/cmd_receive_blocking.py b/src/wormhole/scripts/cmd_receive_blocking.py
index <HASH>..<HASH> 100644
--- a/src/wormhole/scripts/cmd_receive_blocking.py
+++ b/src/wormhole/scripts/cmd_receive_blocking.py
@@ -153,6 +153,7 @@ def receive_blocking(args):
assert received == xfersize
... | cmd_receive: close the file before renaming I'm always forgetting this one. It's more obvious on windows. | py |
diff --git a/krypy/tests/test_utils.py b/krypy/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/krypy/tests/test_utils.py
+++ b/krypy/tests/test_utils.py
@@ -152,7 +152,8 @@ def run_projection(X, Y, B, iterations):
assert(numpy.linalg.norm(P.operator_complement()*z - P.apply_complement(z))
== 0)
... | [tests] adapt Projection unit test | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,4 +27,16 @@ setup(
'sphinx',
],
},
+ classifiers=[
+ 'Development Status :: 2 - Pre-Alpha',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: MIT License'... | Add some Trove classifiers to setup.py They help adding proper tags/topics when it is published to PyPI. Here's the full list: <URL> | py |
diff --git a/cr8/run_crate.py b/cr8/run_crate.py
index <HASH>..<HASH> 100644
--- a/cr8/run_crate.py
+++ b/cr8/run_crate.py
@@ -228,7 +228,7 @@ def _from_versions_json(key):
with gzip.open(r, 'rt') as r:
versions = json.loads(r.read())
else:
- versions = ... | Fix non-gzipped response retrieve | py |
diff --git a/yweather.py b/yweather.py
index <HASH>..<HASH> 100644
--- a/yweather.py
+++ b/yweather.py
@@ -130,7 +130,14 @@ class Client(object):
link = rss.find("channel/link").text
except AttributeError:
return None
- lid = link.split("/forecast/")[1].split("_")[0]
+
+ ... | using regex to parse for LID in fetch_lid | py |
diff --git a/autolab_core/rigid_transformations.py b/autolab_core/rigid_transformations.py
index <HASH>..<HASH> 100644
--- a/autolab_core/rigid_transformations.py
+++ b/autolab_core/rigid_transformations.py
@@ -7,6 +7,7 @@ import os
import numpy as np
+import utils
from points import BagOfPoints, BagOfVectors, Po... | Added adjoint and vectorized version of poses | py |
diff --git a/tests/unit/cloud/clouds/test_saltify.py b/tests/unit/cloud/clouds/test_saltify.py
index <HASH>..<HASH> 100644
--- a/tests/unit/cloud/clouds/test_saltify.py
+++ b/tests/unit/cloud/clouds/test_saltify.py
@@ -8,7 +8,10 @@ from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support... | Update unit test for Saltify with credential verification | py |
diff --git a/nose/test_orbit.py b/nose/test_orbit.py
index <HASH>..<HASH> 100644
--- a/nose/test_orbit.py
+++ b/nose/test_orbit.py
@@ -2284,6 +2284,7 @@ def test_physical_output_off():
# back on by turn_physical_on
def test_physical_output_on():
from galpy.potential import LogarithmicHaloPotential
+ from astr... | Further tests of turn_physical_on for orbits | py |
diff --git a/src/collectors/cpu/cpu.py b/src/collectors/cpu/cpu.py
index <HASH>..<HASH> 100644
--- a/src/collectors/cpu/cpu.py
+++ b/src/collectors/cpu/cpu.py
@@ -153,7 +153,7 @@ class CPUCollector(diamond.collector.Collector):
# Get Metric Name
metric_name = '.'.join([cpu, s])... | Fixes #<I>, this fixes the issue where the config bool is parsed as a string | py |
diff --git a/openquake/risklib/scientific.py b/openquake/risklib/scientific.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/scientific.py
+++ b/openquake/risklib/scientific.py
@@ -403,7 +403,7 @@ class EpsilonProvider(object):
Here is an example without correlation:
>>> ep = EpsilonProvider(num_asset... | Improved readability of a doctest | py |
diff --git a/MEA_package/ProgramFiles/setup.py b/MEA_package/ProgramFiles/setup.py
index <HASH>..<HASH> 100644
--- a/MEA_package/ProgramFiles/setup.py
+++ b/MEA_package/ProgramFiles/setup.py
@@ -14,7 +14,7 @@ setup(
'means.simulation',
'means.util',
'means.tests'],
- pack... | setup.py to take the new src/ dir into account | py |
diff --git a/indra/explanation/model_checker/pybel.py b/indra/explanation/model_checker/pybel.py
index <HASH>..<HASH> 100644
--- a/indra/explanation/model_checker/pybel.py
+++ b/indra/explanation/model_checker/pybel.py
@@ -75,6 +75,25 @@ class PybelModelChecker(ModelChecker):
def process_subject(self, subj):
... | Find more specific agents if no exact match | py |
diff --git a/art/art.py b/art/art.py
index <HASH>..<HASH> 100644
--- a/art/art.py
+++ b/art/art.py
@@ -224,9 +224,9 @@ def tsave(
files_list = os.listdir(os.getcwd())
extension = ".txt"
splitted_filename = filename.split(".")
- name = splitted_filename[0]
+ name = filename[:-1 *... | fix : More than one dot filename saving issue fixed | py |
diff --git a/remote/client/src/py/webdriver.py b/remote/client/src/py/webdriver.py
index <HASH>..<HASH> 100644
--- a/remote/client/src/py/webdriver.py
+++ b/remote/client/src/py/webdriver.py
@@ -279,6 +279,10 @@ class WebDriver(object):
def forward(self):
"""Goes forward in browser history."""
se... | JasonLeyba: Adding the refresh() command to the remote python bindings. r<I> | py |
diff --git a/bucketcache/keymakers.py b/bucketcache/keymakers.py
index <HASH>..<HASH> 100644
--- a/bucketcache/keymakers.py
+++ b/bucketcache/keymakers.py
@@ -62,10 +62,7 @@ class StreamingDefaultKeyMaker(DefaultKeyMaker):
json.dump(
obj, f, sort_keys=self.sort_keys, cls=_AnyObjectJSONEnco... | Use pythonic file iteration | py |
diff --git a/spyderlib/utils/dochelpers.py b/spyderlib/utils/dochelpers.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/dochelpers.py
+++ b/spyderlib/utils/dochelpers.py
@@ -159,7 +159,7 @@ def isdefined(obj, force_import=False, namespace=None):
return False
import __builtin__
if base not in _... | Object inspector/bugfix (workaround) -- utils.dochelpers.isdefined (force_import=True): do not import module if it's a setup module (may crash the introspection thread) | py |
diff --git a/openquake/engine/calculators/hazard/general.py b/openquake/engine/calculators/hazard/general.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/hazard/general.py
+++ b/openquake/engine/calculators/hazard/general.py
@@ -67,7 +67,8 @@ def make_gsim_lt(hc, trts):
"""
fname = os.path.j... | Reflected changes in commonlib.logictree | py |
diff --git a/src/diamond/handler/Handler.py b/src/diamond/handler/Handler.py
index <HASH>..<HASH> 100644
--- a/src/diamond/handler/Handler.py
+++ b/src/diamond/handler/Handler.py
@@ -18,7 +18,7 @@ class Handler(object):
# Initialize Data
self.config = config
# Initialize Lock
- self.lo... | Change to using threading.Lock instead of threading.Condition, and check lock state before trying to release it during the finally block | py |
diff --git a/edisgo/grid/connect.py b/edisgo/grid/connect.py
index <HASH>..<HASH> 100644
--- a/edisgo/grid/connect.py
+++ b/edisgo/grid/connect.py
@@ -247,7 +247,7 @@ def _connect_mv_node(network, node, target_obj):
node_source=adj_node1,
... | fix line length bug in MV connect (m->km) | py |
diff --git a/glimix_core/lmm/_mt_core.py b/glimix_core/lmm/_mt_core.py
index <HASH>..<HASH> 100644
--- a/glimix_core/lmm/_mt_core.py
+++ b/glimix_core/lmm/_mt_core.py
@@ -1,5 +1,10 @@
from __future__ import division
+try:
+ from itertools import izip as zip
+except ImportError:
+ pass
+
from numpy import all ... | test working for py<I> | py |
diff --git a/tests/test_project/settings.py b/tests/test_project/settings.py
index <HASH>..<HASH> 100644
--- a/tests/test_project/settings.py
+++ b/tests/test_project/settings.py
@@ -52,7 +52,7 @@ MIDDLEWARE_CLASSES = (
# 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messag... | Remove security middleware from tests config. | py |
diff --git a/apigpio/apigpio.py b/apigpio/apigpio.py
index <HASH>..<HASH> 100644
--- a/apigpio/apigpio.py
+++ b/apigpio/apigpio.py
@@ -425,12 +425,21 @@ class _callback_handler(object):
new_level = 1
if cb.edge ^ new_level:
cb.func(cb.gp... | Fix handling of watchdog and keepalive notifications These notification were ignored do to an erroneous indentation, which was not spotted because 'for ... else' is a valid construct in python (argh ..) ! | py |
diff --git a/pymux/process.py b/pymux/process.py
index <HASH>..<HASH> 100644
--- a/pymux/process.py
+++ b/pymux/process.py
@@ -404,14 +404,14 @@ def get_cwd_for_pid(pid):
"""
Return the current working directory for a given process ID.
"""
- if sys.platform in ('linux', 'linux2'):
+ if sys.platform... | Added cygwin support. (For pane titles.) | py |
diff --git a/kurt/__init__.py b/kurt/__init__.py
index <HASH>..<HASH> 100644
--- a/kurt/__init__.py
+++ b/kurt/__init__.py
@@ -43,11 +43,7 @@ USAGE:
Scratch is created by the Lifelong Kindergarten Group at the MIT Media Lab.
See their website: http://scratch.mit.edu/
"""
-# TODO:
-# - Fill out all the _fi... | Remove Todo from __init__. Have readme anyway... | py |
diff --git a/stl/stl.py b/stl/stl.py
index <HASH>..<HASH> 100644
--- a/stl/stl.py
+++ b/stl/stl.py
@@ -177,12 +177,6 @@ class BaseStl(base.BaseMesh):
return b(line)
line = get()
- if not line.startswith(b('solid ')) and line.startswith(b('solid')):
- cls.warning('ASCII STL ... | fixed #<I> - Loading ASCII STL with empty name prints a warning | py |
diff --git a/test/test_plugins/test_image.py b/test/test_plugins/test_image.py
index <HASH>..<HASH> 100644
--- a/test/test_plugins/test_image.py
+++ b/test/test_plugins/test_image.py
@@ -22,13 +22,3 @@ def test_unicode():
with vcr.use_cassette('test/fixtures/image_unicode.yaml'):
ret = on_message({"text":... | don't need the unescape tests any longer | py |
diff --git a/pysat/_files.py b/pysat/_files.py
index <HASH>..<HASH> 100644
--- a/pysat/_files.py
+++ b/pysat/_files.py
@@ -239,7 +239,6 @@ class Files(object):
# _load. We start here with the first directory for cases where there
# are no files.
self.data_path = self.data_paths[0]
-
... | MAINT: PEP8 update Fixed PEP8 error caused by merge interface. | py |
diff --git a/mackup/appsdb.py b/mackup/appsdb.py
index <HASH>..<HASH> 100644
--- a/mackup/appsdb.py
+++ b/mackup/appsdb.py
@@ -57,7 +57,7 @@ class ApplicationsDatabase(object):
e.g. /usr/lib/mackup/applications/bash.cfg
Returns:
- - list of string
+ set of strings.
"""... | No need for a list here, a set is better | py |
diff --git a/python_jsonschema_objects/classbuilder.py b/python_jsonschema_objects/classbuilder.py
index <HASH>..<HASH> 100644
--- a/python_jsonschema_objects/classbuilder.py
+++ b/python_jsonschema_objects/classbuilder.py
@@ -4,10 +4,14 @@ import python_jsonschema_objects.validators as validators
import collections
... | Tweak protocol mapping to include 'long' types as well, and ensure compatibility with python3. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -47,7 +47,7 @@ master_doc = 'index'
# General information about the project.
project = u'Silo'
-copyright = u'2012, Janne Vanhala'
+copyright = u'2014, Janne Vanhala'
# The version info for the project y... | Update copyright year in docs | py |
diff --git a/egoio/db_tables/calc_ego_substation.py b/egoio/db_tables/calc_ego_substation.py
index <HASH>..<HASH> 100644
--- a/egoio/db_tables/calc_ego_substation.py
+++ b/egoio/db_tables/calc_ego_substation.py
@@ -159,3 +159,10 @@ class SubstationDummy(Base):
subst_id = Column(Integer, primary_key=True)
subs... | changed table definitions from local script to egoio | py |
diff --git a/tests/test_number.py b/tests/test_number.py
index <HASH>..<HASH> 100644
--- a/tests/test_number.py
+++ b/tests/test_number.py
@@ -41,3 +41,20 @@ class TestNumber(unittest.TestCase):
self.assertEqual('Haarlem', number.region)
self.assertEqual(["sms", "voice"], number.features)
+ def t... | added tests for delete_number call | py |
diff --git a/hamster/charting.py b/hamster/charting.py
index <HASH>..<HASH> 100644
--- a/hamster/charting.py
+++ b/hamster/charting.py
@@ -439,7 +439,7 @@ class Chart(gtk.DrawingArea):
#push graph to the right, so it doesn't overlap, and add little padding aswell
graph_x = int(rect.x + max_e... | minus was for max label i guess svn path=/trunk/; revision=<I> | py |
diff --git a/tests/integration/api_container_test.py b/tests/integration/api_container_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration/api_container_test.py
+++ b/tests/integration/api_container_test.py
@@ -1251,7 +1251,7 @@ class AttachContainerTest(BaseAPIIntegrationTest):
output = self.client.at... | Increase timeout on test with long sleeps | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ with open(path.join(here, 'README.md'), encoding='utf-8') as f:
setup(
name='rehive',
- version='0.2.4',
+ version='0.2.5',
description='Rehive SDK for Python',
long_description=long_desc... | incremented version for env hotfix | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -70,7 +70,7 @@ setup(
keywords='crypto pki tls ssl x509 certificate encrypt decrypt sign verify rsa dsa ec dh',
- install_requires=['asn1crypto>=0.18'],
+ install_requires=['asn1crypto>=0.18.1'],
packages=f... | Require the latest version of asn1crypto | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,6 +31,13 @@ class build_fsps(build_ext):
if os.path.basename(f) not in ["autosps.o", "simple.o",
"lesssimple.o"]]
+ # Check to make sure that all of t... | check for compiled FSPS before building | py |
diff --git a/src/Exscript/protocols/Transport.py b/src/Exscript/protocols/Transport.py
index <HASH>..<HASH> 100644
--- a/src/Exscript/protocols/Transport.py
+++ b/src/Exscript/protocols/Transport.py
@@ -824,6 +824,9 @@ class Transport(object):
@type command: string
@param command: The data that is ... | Exscript.protocols.Transport: expect_prompt() and execute() now return whatever expect() returns. | py |
diff --git a/intake/catalog/remote.py b/intake/catalog/remote.py
index <HASH>..<HASH> 100644
--- a/intake/catalog/remote.py
+++ b/intake/catalog/remote.py
@@ -227,7 +227,8 @@ class RemoteDataSourceProxied(DataSource):
self._source_id = None
def __getstate__(self):
- return self._init_args
+ ... | Forgot to save source id when pickling remote data source | py |
diff --git a/run_doctests.py b/run_doctests.py
index <HASH>..<HASH> 100644
--- a/run_doctests.py
+++ b/run_doctests.py
@@ -22,20 +22,15 @@ from __future__ import print_function, division, absolute_import
from future import standard_library
standard_library.install_aliases()
-import nose
import sys
+import odl
+imp... | Port doctest-only test run file to py.test | py |
diff --git a/timepiece/entries/tests/test_timesheet.py b/timepiece/entries/tests/test_timesheet.py
index <HASH>..<HASH> 100644
--- a/timepiece/entries/tests/test_timesheet.py
+++ b/timepiece/entries/tests/test_timesheet.py
@@ -1317,7 +1317,14 @@ class CreateEditEntry(ViewTestMixin, TestCase):
response = self.c... | fixed tests to account for super user and non attempting to edit invoiced entry | py |
diff --git a/wikiquotes/wikiquotes.py b/wikiquotes/wikiquotes.py
index <HASH>..<HASH> 100644
--- a/wikiquotes/wikiquotes.py
+++ b/wikiquotes/wikiquotes.py
@@ -14,7 +14,7 @@ def search(author, raw_language):
language = language_manager.LanguageManager(raw_language).language
try:
search_results = api_m... | Changing NoTitle to TitleNotfound | py |
diff --git a/salt/states/at.py b/salt/states/at.py
index <HASH>..<HASH> 100644
--- a/salt/states/at.py
+++ b/salt/states/at.py
@@ -83,9 +83,9 @@ def present(name, timespec, tag=None, user=None, job=None):
ret['comment'] = 'User: {0} is not exists'.format(user)
ret['result'] = False
... | fix at.present Because cmd contains a pipe, it must be run by a real shell. | py |
diff --git a/src/armet/resources/resource/options.py b/src/armet/resources/resource/options.py
index <HASH>..<HASH> 100644
--- a/src/armet/resources/resource/options.py
+++ b/src/armet/resources/resource/options.py
@@ -71,6 +71,11 @@ class ResourceOptions(object):
# Something went wrong; just use the c... | Allow the name option to be a callable. | py |
diff --git a/Lib/ufo2ft/outlineCompiler.py b/Lib/ufo2ft/outlineCompiler.py
index <HASH>..<HASH> 100644
--- a/Lib/ufo2ft/outlineCompiler.py
+++ b/Lib/ufo2ft/outlineCompiler.py
@@ -893,7 +893,8 @@ class BaseOutlineCompiler(object):
from fontTools.colorLib.builder import buildCOLR
layerInfo = self.ufo.... | outlineCompiler: don't add empty COLR table | py |
diff --git a/zk/base.py b/zk/base.py
index <HASH>..<HASH> 100644
--- a/zk/base.py
+++ b/zk/base.py
@@ -65,7 +65,7 @@ class ZK_helper(object):
import subprocess, platform
# Ping parameters as function of OS
- ping_str = "-n 1" if platform.system().lower()=="windows" else "-c 1"
+ ping_... | added timeout for ping in linux | py |
diff --git a/zproc/exceptions.py b/zproc/exceptions.py
index <HASH>..<HASH> 100644
--- a/zproc/exceptions.py
+++ b/zproc/exceptions.py
@@ -4,8 +4,8 @@ class ProcessWaitError(Exception):
"""
def __init__(self, *args: object, **kwargs: object) -> None:
- super().__init__(*args, **kwargs)
try:
... | fix bug with ProcessWaitError | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.