diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/pycut_test.py b/tests/pycut_test.py
index <HASH>..<HASH> 100644
--- a/tests/pycut_test.py
+++ b/tests/pycut_test.py
@@ -327,9 +327,9 @@ class PycutTest(unittest.TestCase):
gc.set_seeds(seeds)
gc.apriori = apriori
gc.run()
- import sed3
- ed = sed3.sed3(img, co... | visualization with sed3 removed from test | py |
diff --git a/spyder/plugins/editor/panels/indentationguides.py b/spyder/plugins/editor/panels/indentationguides.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/panels/indentationguides.py
+++ b/spyder/plugins/editor/panels/indentationguides.py
@@ -7,13 +7,12 @@
"""
This module contains the indentation guid... | Indent guides: Remove unused imports and variables | py |
diff --git a/salt/modules/pip.py b/salt/modules/pip.py
index <HASH>..<HASH> 100644
--- a/salt/modules/pip.py
+++ b/salt/modules/pip.py
@@ -303,7 +303,7 @@ def _process_requirements(requirements, cmd, cwd, saltenv, user):
# In Windows, just being owner of a file isn't enough. You also
#... | The loader uses win_dacl's virtual name | py |
diff --git a/spinoff/contrib/monitoring/monitor.py b/spinoff/contrib/monitoring/monitor.py
index <HASH>..<HASH> 100644
--- a/spinoff/contrib/monitoring/monitor.py
+++ b/spinoff/contrib/monitoring/monitor.py
@@ -139,19 +139,24 @@ class MonitorClient(Actor):
def receive(self, msg):
if 'ack' == msg:
- ... | Minor simplification and cleanup in spinoff.contrib.monitoring | py |
diff --git a/tests/test.py b/tests/test.py
index <HASH>..<HASH> 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -155,6 +155,7 @@ def test_number_smashing():
eq_(tokenize('1', 'en', combine_numbers=True), ['1'])
eq_(tokenize('3.14', 'en', combine_numbers=True), ['0.00'])
eq_(tokenize('24601', 'en', comb... | test that number-smashing still happens in freq lookups | py |
diff --git a/examples/outdoor.py b/examples/outdoor.py
index <HASH>..<HASH> 100755
--- a/examples/outdoor.py
+++ b/examples/outdoor.py
@@ -29,13 +29,13 @@ norms = []
for i in range(17):
row = []
for j in range(17):
- row.append(Vertex(0, 0, 0))
+ row.append(Vertex(0, 0, 1))
norms.append(ro... | Fixed disp map numbers in Outdoor sample map. It actually works\! (#8) | py |
diff --git a/bitshares/wallet.py b/bitshares/wallet.py
index <HASH>..<HASH> 100644
--- a/bitshares/wallet.py
+++ b/bitshares/wallet.py
@@ -118,6 +118,8 @@ class Wallet():
if "UNLOCK" in os.environ:
log.debug("Trying to use environmental variable to unlock wallet")
self.unlock(os.envir... | [password] fail if no password provided an non available in environment | py |
diff --git a/QUANTAXIS/QAUtil/QASetting.py b/QUANTAXIS/QAUtil/QASetting.py
index <HASH>..<HASH> 100644
--- a/QUANTAXIS/QAUtil/QASetting.py
+++ b/QUANTAXIS/QAUtil/QASetting.py
@@ -29,7 +29,7 @@ from QUANTAXIS.QAUtil import QA_util_log_info, QA_util_sql_mongo_setting
class QA_Setting():
QA_util_sql_mongo_ip = os.... | fix(QASetting): correct default port number | py |
diff --git a/pylutron/__init__.py b/pylutron/__init__.py
index <HASH>..<HASH> 100644
--- a/pylutron/__init__.py
+++ b/pylutron/__init__.py
@@ -244,7 +244,7 @@ class LutronXmlDbParser(object):
# other assets and attributes. Here we index the groups to be bound to
# Areas later.
groups = root.find('Occupa... | Fix xml iterators to be compatible with python 3 (#<I>) getiterator was deprecated in <I>. Python <I> has finally removed it. iter() is the appropriate method. | py |
diff --git a/django_coverage_plugin/plugin.py b/django_coverage_plugin/plugin.py
index <HASH>..<HASH> 100644
--- a/django_coverage_plugin/plugin.py
+++ b/django_coverage_plugin/plugin.py
@@ -163,14 +163,12 @@ class DjangoTemplatePlugin(
def file_reporter(self, filename):
return FileReporter(filename)
- ... | Rename hook, use generator and splitext instead of regex | py |
diff --git a/alertaclient/config.py b/alertaclient/config.py
index <HASH>..<HASH> 100644
--- a/alertaclient/config.py
+++ b/alertaclient/config.py
@@ -14,6 +14,7 @@ default_config = {
'timezone': 'Europe/London',
'timeout': 5.0,
'sslverify': True,
+ 'use_local': [], # eg. set to ['endpoint'] to preve... | Allow local config exclusions to prevent remote override (#<I>) | py |
diff --git a/mach9/config.py b/mach9/config.py
index <HASH>..<HASH> 100644
--- a/mach9/config.py
+++ b/mach9/config.py
@@ -18,6 +18,7 @@ _address_dict = {
LOGGING = {
'version': 1,
+ 'disable_existing_loggers': False,
'filters': {
'accessFilter': {
'()': DefaultFilter, | Add disable_existing_loggers (#<I>) | py |
diff --git a/pyforms/Controls/ControlEmptyWidget.py b/pyforms/Controls/ControlEmptyWidget.py
index <HASH>..<HASH> 100755
--- a/pyforms/Controls/ControlEmptyWidget.py
+++ b/pyforms/Controls/ControlEmptyWidget.py
@@ -40,6 +40,7 @@ class ControlEmptyWidget(ControlBase, QtGui.QWidget):
def value(self, value):
... | clear content if value is none, which means, if a control has no window, nothing is displayed | py |
diff --git a/oceansdb/etopo.py b/oceansdb/etopo.py
index <HASH>..<HASH> 100644
--- a/oceansdb/etopo.py
+++ b/oceansdb/etopo.py
@@ -67,22 +67,26 @@ class ETOPO_var_nc(object):
self.ncs.append(netCDF4.Dataset(s, 'r'))
self.load_dims(dims=['lat', 'lon'])
-
- def keys(self):
- return ['ele... | Cosmetics to make etopo conform with WOA & CARS. | py |
diff --git a/lark/parsers/earley_forest.py b/lark/parsers/earley_forest.py
index <HASH>..<HASH> 100644
--- a/lark/parsers/earley_forest.py
+++ b/lark/parsers/earley_forest.py
@@ -459,15 +459,20 @@ class PackedData():
that comes from the left child and the right child.
"""
+ class _NoData():
+ pass... | Fix IndexError (issue #<I>) | py |
diff --git a/quark/ipam.py b/quark/ipam.py
index <HASH>..<HASH> 100644
--- a/quark/ipam.py
+++ b/quark/ipam.py
@@ -980,13 +980,13 @@ class QuarkIpamBOTH(QuarkIpam):
reuse_after, version=None,
ip_address=None, segment_id=None,
... | Optimized reallocation for BOTH strategy JIRA:NCP-<I> Reallocation algorithm would originally attempt to reallocate an ip as both an ipv6 and an ipv4. This change sets the algorithm to only attempt to reallocate a given ip based on the given ip version or to attempt to reallocate an ipv4 given the parameters. | py |
diff --git a/seleniumbase/console_scripts/sb_install.py b/seleniumbase/console_scripts/sb_install.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/console_scripts/sb_install.py
+++ b/seleniumbase/console_scripts/sb_install.py
@@ -42,7 +42,7 @@ urllib3.disable_warnings()
DRIVER_DIR = os.path.dirname(os.path.realpath(d... | Update the default version of geckodriver installed | py |
diff --git a/xdot.py b/xdot.py
index <HASH>..<HASH> 100755
--- a/xdot.py
+++ b/xdot.py
@@ -676,10 +676,10 @@ class ZoomToAnimation(MoveToAnimation):
distance = math.hypot(self.source_x - self.target_x,
self.source_y - self.target_y)
rect = self.dot_widget.get_allocation(... | Fix unit mismatch in comparison. distance was in device units, visible was in pixels, the if condition made no sense. Also, I've essentially replaced the nonfunctional if with a working min(), so remove the now-redundant check anyway. From: Marius Gedminas <<EMAIL>> | py |
diff --git a/usb/backend/libusb0.py b/usb/backend/libusb0.py
index <HASH>..<HASH> 100644
--- a/usb/backend/libusb0.py
+++ b/usb/backend/libusb0.py
@@ -653,7 +653,7 @@ class _LibUSB(usb.backend.IBackend):
def __get_driver_name(self, dev_handle, intf):
if not hasattr(_lib, 'usb_get_driver_np'):
- ... | libusb0: differentiate when usb_get_driver_np is missing Fixes: #<I> Closes: #<I> | py |
diff --git a/salt/cloud/clouds/digital_ocean_v2.py b/salt/cloud/clouds/digital_ocean_v2.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/digital_ocean_v2.py
+++ b/salt/cloud/clouds/digital_ocean_v2.py
@@ -111,7 +111,7 @@ def avail_images(call=None):
ret[image['id']][item] = str(image[item])
... | Correctly detect additional pages in DigitalOcean API v2 | py |
diff --git a/sseclient.py b/sseclient.py
index <HASH>..<HASH> 100644
--- a/sseclient.py
+++ b/sseclient.py
@@ -14,7 +14,7 @@ import six
import requests
-__version__ = '0.0.24'
+__version__ = '0.0.25'
# Technically, we should support streams that mix line endings. This regex,
# however, assumes that a system w... | Updated version to <I> | py |
diff --git a/slackchat/models/channel.py b/slackchat/models/channel.py
index <HASH>..<HASH> 100644
--- a/slackchat/models/channel.py
+++ b/slackchat/models/channel.py
@@ -6,7 +6,6 @@ from urllib.parse import urljoin
from django.contrib.postgres.fields import JSONField
from django.db import models
from django.urls im... | increase api_id and team_id limits | py |
diff --git a/src/python/test/test_dxclient.py b/src/python/test/test_dxclient.py
index <HASH>..<HASH> 100755
--- a/src/python/test/test_dxclient.py
+++ b/src/python/test/test_dxclient.py
@@ -497,11 +497,6 @@ class TestDXBuildApp(DXTestCase):
with self.assertSubprocessFailure(stderr_regexp="make in target direc... | Remove redundant test. This test was broken due to an exit code change and is now redundant with test_build_applet_with_malformed_dxapp_json. | py |
diff --git a/datadog_checks_dev/tests/tooling/commands/test_create.py b/datadog_checks_dev/tests/tooling/commands/test_create.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/tests/tooling/commands/test_create.py
+++ b/datadog_checks_dev/tests/tooling/commands/test_create.py
@@ -24,7 +24,7 @@ def test_new_check_... | Ignore flags to ddev test (#<I>) | py |
diff --git a/gherkin/python/setup.py b/gherkin/python/setup.py
index <HASH>..<HASH> 100644
--- a/gherkin/python/setup.py
+++ b/gherkin/python/setup.py
@@ -1,7 +1,7 @@
# coding: utf-8
from distutils.core import setup
setup(name='gherkin-official',
- packages=['gherkin', 'gherkin.pickles'],
+ packages=['gher... | gherkin-python: Fix for #<I> | py |
diff --git a/command/upload.py b/command/upload.py
index <HASH>..<HASH> 100644
--- a/command/upload.py
+++ b/command/upload.py
@@ -186,7 +186,7 @@ class upload(PyPIRCCommand):
http.putheader('Authorization', auth)
http.endheaders()
http.send(body)
- except socket.error as e... | Issue #<I>: get rid of socket.error, replace with OSError | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,14 +1,12 @@
from setuptools import setup
-setup(name='greenwavecontrol',
- description='Greenwave Reality Smart Bulb Interface Library',
- version='0.1',
- url='https://github.com/dfiel/greenwavecontrol',
- ... | Update Setup.py to work | py |
diff --git a/src/richenum/enums.py b/src/richenum/enums.py
index <HASH>..<HASH> 100644
--- a/src/richenum/enums.py
+++ b/src/richenum/enums.py
@@ -2,6 +2,8 @@ import collections
import copy
import new
+from operator import itemgetter
+
class EnumConstructionException(Exception):
"""
@@ -28,12 +30,16 @@ def ... | Small fixups for simple enums For testability, return choices in a known order. Also, check that all enum values are hashable (otherwise enum blows up when trying to do a reverse lookup). | py |
diff --git a/exit_wrapper.py b/exit_wrapper.py
index <HASH>..<HASH> 100644
--- a/exit_wrapper.py
+++ b/exit_wrapper.py
@@ -87,8 +87,11 @@ class BBLStack(object):
self._stack_dict[addr] = []
def ret(self, addr):
- # Return from a function. Remove the corresponding stack
- del self._stack_di... | A bug fixing to make loop detection more robust. | py |
diff --git a/quantrisk/positions.py b/quantrisk/positions.py
index <HASH>..<HASH> 100644
--- a/quantrisk/positions.py
+++ b/quantrisk/positions.py
@@ -52,7 +52,7 @@ def get_portfolio_alloc(df_pos_vals):
return df_pos_alloc
-def get_long_short_pos(df_pos):
+def get_long_short_pos(df_pos, gross_lev=1.):
df_... | BUG Long/short/cash positions did not sum to 1. This commit fixes this issue by renormalizing. Also, and addition kwarg is added to allow rescaling to leverage as requested in #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -72,6 +72,7 @@ setup(
'admin = ceph_deploy.admin:make',
'pkg = ceph_deploy.pkg:make',
'calamari = ceph_deploy.calamari:make',
+ 'rgw = ceph_deploy.rgw:make',
],
... | Expose rgw CLI commands | py |
diff --git a/tests/core_test.py b/tests/core_test.py
index <HASH>..<HASH> 100644
--- a/tests/core_test.py
+++ b/tests/core_test.py
@@ -194,7 +194,7 @@ class CoreTest(jtu.JaxTestCase):
@parameterized.parameters(test_specs)
def test_vjp(self, f, args):
jtu.check_vjp(f, partial(vjp, f), args,
- ... | Relax test tolerance for core_test.py test_vjp to fix flakiness. | py |
diff --git a/werkzeug/contrib/cache.py b/werkzeug/contrib/cache.py
index <HASH>..<HASH> 100644
--- a/werkzeug/contrib/cache.py
+++ b/werkzeug/contrib/cache.py
@@ -58,6 +58,7 @@
"""
import os
import re
+import errno
import tempfile
from hashlib import md5
from time import time
@@ -590,8 +591,12 @@ class FileSystem... | add try-except for concurrent FileSystemCache initialization, fix #<I> | py |
diff --git a/testsuite.py b/testsuite.py
index <HASH>..<HASH> 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -781,15 +781,14 @@ g
# Test recursive 'source' detection
- got_syntax_exception = False
try:
Kconfig("Kconfiglib/tests/Krecursive1")
except KconfigSyntaxError:
- got_syntax... | Improve recursive 'source' test Check for incorrect exceptions instead of propagating them, and get rid of the flag. | py |
diff --git a/meshio/ply/_ply.py b/meshio/ply/_ply.py
index <HASH>..<HASH> 100644
--- a/meshio/ply/_ply.py
+++ b/meshio/ply/_ply.py
@@ -388,7 +388,9 @@ def write(filename, mesh, binary=True): # noqa: C901
if key not in cells:
continue
dat = cells[key]
- ... | fix for PLY ascii writes | py |
diff --git a/troposphere/ecs.py b/troposphere/ecs.py
index <HASH>..<HASH> 100644
--- a/troposphere/ecs.py
+++ b/troposphere/ecs.py
@@ -5,7 +5,9 @@ from .validators import boolean, network_port, positive_integer
class Cluster(AWSObject):
resource_type = "AWS::ECS::Cluster"
- props = {}
+ props = {
+ ... | Add new properties to ECS - Add Clustername property to Cluster - Add Family property to TaskDefinition | py |
diff --git a/trezor_agent/server.py b/trezor_agent/server.py
index <HASH>..<HASH> 100644
--- a/trezor_agent/server.py
+++ b/trezor_agent/server.py
@@ -89,7 +89,7 @@ def serve(public_keys, signer, sock_path=None):
def run_process(command, environ, use_shell=False):
- log.debug('running %r with %r', command, envi... | server: log command with INFO level | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup(
'versiontools >= 1.4',
],
install_requires = [
- 'phonenumbers',
+ 'phonenumbers >= 5.9b1',
],
long_description=open('README.rst').read(),
author='Stefan Fo... | Defining version for pip <I>+ PIP <I>+ treats version numbers which aren’t compliant with PEP<I> as pre-releases, and won’t use them… `phonenumbers` uses such version numbers. Setting a similarly non-compliant version gets around this (feel free to propose an alternative version to compare with). | py |
diff --git a/source/rafcon/mvc/mygaphas/items/ports.py b/source/rafcon/mvc/mygaphas/items/ports.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/mygaphas/items/ports.py
+++ b/source/rafcon/mvc/mygaphas/items/ports.py
@@ -479,7 +479,17 @@ class PortView(Model):
# self._port_side_size = 5.
-class I... | Derive IncomeView and OutcomeView from LogicalPortView | py |
diff --git a/jax/tools/jax_to_hlo.py b/jax/tools/jax_to_hlo.py
index <HASH>..<HASH> 100644
--- a/jax/tools/jax_to_hlo.py
+++ b/jax/tools/jax_to_hlo.py
@@ -61,7 +61,7 @@ This generates two BUILD targets:
//your/thing:prog_hlo.txt
You can then depend on one of these as a data dependency and invoke it using
-XLA's p... | Add link to XLA header in jax_to_hlo | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ setup(
name='NoseDjango',
version='0.6',
author='Victor Ng',
- author_email = 'victor@monkeybean.ca',
+ author_email = 'crankycoder@gmail.com',
description = 'nose plugin for easy testing... | oops. wrong email address in setup.py | py |
diff --git a/jax/util.py b/jax/util.py
index <HASH>..<HASH> 100644
--- a/jax/util.py
+++ b/jax/util.py
@@ -107,6 +107,7 @@ def curry(f):
def toposort(end_nodes):
if not end_nodes: return []
+ end_nodes = _remove_duplicates(end_nodes)
child_counts = {}
stack = list(end_nodes)
@@ -141,6 +142,15 @@ def chec... | Rm duplicates from end_nodes in toposort | py |
diff --git a/aiohttp_apispec/decorators.py b/aiohttp_apispec/decorators.py
index <HASH>..<HASH> 100644
--- a/aiohttp_apispec/decorators.py
+++ b/aiohttp_apispec/decorators.py
@@ -25,7 +25,8 @@ def docs(**kwargs):
"""
def wrapper(func):
- kwargs["produces"] = ["application/json"]
+ if not kwarg... | Allow to set content-type using docs decorator Currently, produces is forced to "application/json", which is clearly a reasonable default value. If the user sets it, pass it as-is to apispec. | py |
diff --git a/pyemu/mat/mat_handler.py b/pyemu/mat/mat_handler.py
index <HASH>..<HASH> 100644
--- a/pyemu/mat/mat_handler.py
+++ b/pyemu/mat/mat_handler.py
@@ -1701,7 +1701,10 @@ class Matrix(object):
#print("new binary format detected...")
data = np.fromfile(f, Matrix.coo_rec_dt, icount)
-
+... | sanity check for postive indices in from_binary() | py |
diff --git a/flask_github.py b/flask_github.py
index <HASH>..<HASH> 100644
--- a/flask_github.py
+++ b/flask_github.py
@@ -173,7 +173,17 @@ class GitHub(object):
raise GitHubError(response)
if response.headers['Content-Type'].startswith('application/json'):
- return response.json()
+ ... | manage pagniation when the response is splitted on several pages | py |
diff --git a/bokeh/tests/test_properties.py b/bokeh/tests/test_properties.py
index <HASH>..<HASH> 100644
--- a/bokeh/tests/test_properties.py
+++ b/bokeh/tests/test_properties.py
@@ -414,6 +414,14 @@ class TestProperties(unittest.TestCase):
self.assertFalse(prop.is_valid(np.int32(1)))
self.ass... | bokeh/tests/test_properties.py: Add some `numpy` based tests for `Bool` with unsigned integers. | py |
diff --git a/scratch.py b/scratch.py
index <HASH>..<HASH> 100755
--- a/scratch.py
+++ b/scratch.py
@@ -70,17 +70,18 @@ class Scratch:
raise TypeError('Expected a dict')
message = 'sensor-update'
for key in data.keys():
- message = message+' "'+key+'" '+str(data[key])
+ message = message+' "'+str(key)+'" '... | removed type requirement for input to broadcast(), converted messages to strings before sending to Scratch | py |
diff --git a/pydsl/Grammar/Symbol.py b/pydsl/Grammar/Symbol.py
index <HASH>..<HASH> 100644
--- a/pydsl/Grammar/Symbol.py
+++ b/pydsl/Grammar/Symbol.py
@@ -114,15 +114,6 @@ class StringTerminalSymbol(TerminalSymbol):
return "<StringTS: '" + self.definition + "'>"
-class CharTerminalSymbol(StringTerminalSymb... | deleted CharTerminalSymbol (II) | py |
diff --git a/message.py b/message.py
index <HASH>..<HASH> 100644
--- a/message.py
+++ b/message.py
@@ -22,12 +22,12 @@ class Message(object):
class TextMessage(Message):
def __init__(self, payload):
- super(TextMessage, self).__init__(OPCODE_TEXT, payload)
+ super(TextMessage, self).__init__(OPCOD... | Text messages payloads are not UTF-8 encoded automatically | py |
diff --git a/cleverhans/attacks.py b/cleverhans/attacks.py
index <HASH>..<HASH> 100644
--- a/cleverhans/attacks.py
+++ b/cleverhans/attacks.py
@@ -122,8 +122,14 @@ class Attack(object):
for name, value in feedable.items():
given_type = value.dtype
if isinstance(value, np.ndarray):
- new_shape ... | This PR closes #<I> (structural problems in SPSA) | py |
diff --git a/testapp/testapp/testmain/tests/test_webservices.py b/testapp/testapp/testmain/tests/test_webservices.py
index <HASH>..<HASH> 100644
--- a/testapp/testapp/testmain/tests/test_webservices.py
+++ b/testapp/testapp/testmain/tests/test_webservices.py
@@ -75,9 +75,10 @@ class AuthTicketTest(TestCase):
... | AFIP added a typo to an error message Integration tests was failing due to a message that was altered to now contain a typo (!?) | 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
@@ -138,7 +138,7 @@ def gid_to_group(gid):
try:
return grp.getgrgid(gid).gr_name
- except KeyError:
+ except (KeyError, NameError) as e:
return ''
... | catch NameError because of Windows | py |
diff --git a/src/bezier/_implicitization.py b/src/bezier/_implicitization.py
index <HASH>..<HASH> 100644
--- a/src/bezier/_implicitization.py
+++ b/src/bezier/_implicitization.py
@@ -846,7 +846,7 @@ def bezier_roots(coeffs):
def lu_companion(top_row, value):
- r"""Compute an LU-factored :math:`C - t I` and it's... | Using possessive form of its in docstring. | py |
diff --git a/build_libtcod.py b/build_libtcod.py
index <HASH>..<HASH> 100644
--- a/build_libtcod.py
+++ b/build_libtcod.py
@@ -95,10 +95,10 @@ define_macros = []
sources += walk_sources("tcod/")
sources += walk_sources("tdl/")
-sources += walk_sources("libtcod/src/libtcod")
+sources += ["libtcod/src/libtcod_c.c"]
+... | Switch builder back to using libtcod's static sources. | py |
diff --git a/hererocks.py b/hererocks.py
index <HASH>..<HASH> 100755
--- a/hererocks.py
+++ b/hererocks.py
@@ -148,7 +148,7 @@ def fetch(versions, version, temp_dir):
print("Using {} from {}".format(capitalize(name), version))
result_dir = os.path.join(temp_dir, name)
- shutil.copytree(versio... | Do not copy .git subdirectory when installing from local sources | py |
diff --git a/jupyter_server_proxy/handlers.py b/jupyter_server_proxy/handlers.py
index <HASH>..<HASH> 100644
--- a/jupyter_server_proxy/handlers.py
+++ b/jupyter_server_proxy/handlers.py
@@ -56,11 +56,16 @@ class RewritableResponse(HasTraits):
@observe('code')
def _observe_code(self, change):
- # Aut... | Improve comment on RewritableResponse observer | py |
diff --git a/mot/model_building/parameter_functions/transformations.py b/mot/model_building/parameter_functions/transformations.py
index <HASH>..<HASH> 100644
--- a/mot/model_building/parameter_functions/transformations.py
+++ b/mot/model_building/parameter_functions/transformations.py
@@ -108,6 +108,19 @@ class Identi... | Adds a positive constraint to the library | py |
diff --git a/atmos/equations.py b/atmos/equations.py
index <HASH>..<HASH> 100644
--- a/atmos/equations.py
+++ b/atmos/equations.py
@@ -894,7 +894,7 @@ Neglects density effects of liquid and solid water""")
@assumes()
@overridden_by_assumptions('low water vapor', 'Tv equals T')
def T_from_Tv_rv(Tv, rv):
- return n... | corrected typo in T_from_Tv* equations | py |
diff --git a/src/animanager/anime/db.py b/src/animanager/anime/db.py
index <HASH>..<HASH> 100644
--- a/src/animanager/anime/db.py
+++ b/src/animanager/anime/db.py
@@ -39,6 +39,7 @@ class AnimeDB:
self.dbfile = path
self.connect()
self._episode_types = None
+ self.cache = self.CacheDB()... | Add CacheDB This will be needed. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ from setuptools import setup
setup(
name='column',
version='0.2.0',
- url='https://www.vmware.com/products/openstack.html',
+ url='https://github.com/vmware/column',
license='BSD-2',
a... | Update website URL to point to Github | py |
diff --git a/estnltk/resolve_layer_dag.py b/estnltk/resolve_layer_dag.py
index <HASH>..<HASH> 100644
--- a/estnltk/resolve_layer_dag.py
+++ b/estnltk/resolve_layer_dag.py
@@ -76,13 +76,18 @@ from .taggers import ParagraphTokenizer
from .taggers.morph.morf import VabamorfTagger
from .taggers import MorphExtendedTagger... | Updated make_resolver: morph analysis default parameters are now taken from morf_common.py | py |
diff --git a/oauth2client/client.py b/oauth2client/client.py
index <HASH>..<HASH> 100644
--- a/oauth2client/client.py
+++ b/oauth2client/client.py
@@ -2092,7 +2092,8 @@ class OAuth2WebServerFlow(Flow):
@_helpers.positional(2)
def flow_from_clientsecrets(filename, scope, redirect_uri=None,
... | Pass prompt='consent' from flow_from_clientsecrets (#<I>) | py |
diff --git a/airflow/providers/http/hooks/http.py b/airflow/providers/http/hooks/http.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/http/hooks/http.py
+++ b/airflow/providers/http/hooks/http.py
@@ -113,10 +113,7 @@ class HttpHook(BaseHook):
session = self.get_conn(headers)
- if self.base_ur... | Split out confusing path combination logic to separate method (#<I>) * Split out confusing path combination logic to separate method * Fix argument type | py |
diff --git a/artifactory.py b/artifactory.py
index <HASH>..<HASH> 100755
--- a/artifactory.py
+++ b/artifactory.py
@@ -34,7 +34,10 @@ import re
import json
import dateutil.parser
import hashlib
-import requests.packages.urllib3 as urllib3
+try:
+ import requests.packages.urllib3 as urllib3
+except ImportError:
+ ... | make python <I>.x compatible requests on python >=<I> does not install urllib3 because it already exists in that version of python. This is the suggested workaround | py |
diff --git a/dynaphopy/analysis/thermal_properties.py b/dynaphopy/analysis/thermal_properties.py
index <HASH>..<HASH> 100644
--- a/dynaphopy/analysis/thermal_properties.py
+++ b/dynaphopy/analysis/thermal_properties.py
@@ -9,7 +9,7 @@ h_bar = 6.626070040e-22 # J * ps
warnings.simplefilter("ignore")
-def get_dos(t... | added normalization option to dos calculation | py |
diff --git a/test/augmenters/test_arithmetic.py b/test/augmenters/test_arithmetic.py
index <HASH>..<HASH> 100644
--- a/test/augmenters/test_arithmetic.py
+++ b/test/augmenters/test_arithmetic.py
@@ -3492,6 +3492,22 @@ class Test_solarize(unittest.TestCase):
assert observed.dtype.name == "uint8"
assert... | Add test to compare solarize() with PIL | py |
diff --git a/yfinance/base.py b/yfinance/base.py
index <HASH>..<HASH> 100644
--- a/yfinance/base.py
+++ b/yfinance/base.py
@@ -46,7 +46,7 @@ class TickerBase():
self.ticker = ticker.upper()
self.session = session or _requests
self._history = None
- self._base_url = 'https://query1.fina... | Switched to using query2.finance.yahoo.com, which used HTTP/<I> | py |
diff --git a/src/data_structures.py b/src/data_structures.py
index <HASH>..<HASH> 100644
--- a/src/data_structures.py
+++ b/src/data_structures.py
@@ -7,7 +7,7 @@ class Instance:
def __init__(self, features, target = None ):
self.features = np.array(features)
- if target:
+ if targ... | Fix: check whether the targets are equal to None | py |
diff --git a/photutils/aperture/mask.py b/photutils/aperture/mask.py
index <HASH>..<HASH> 100644
--- a/photutils/aperture/mask.py
+++ b/photutils/aperture/mask.py
@@ -154,9 +154,17 @@ class ApertureMask(object):
"""
data = np.asanyarray(data)
- cutout = data[self.bbox.slices]
- if cu... | Fix aperture mask cutout to handle corner case | py |
diff --git a/examples/HHTut/HHTut.py b/examples/HHTut/HHTut.py
index <HASH>..<HASH> 100644
--- a/examples/HHTut/HHTut.py
+++ b/examples/HHTut/HHTut.py
@@ -56,10 +56,10 @@ netParams['connParams'] = []
netParams['connParams'].append(
{'preTags': {'popLabel': 'PYR'}, 'postTags': {'popLabel': 'PYR'},
- 'connList... | finished fromListConn function; tested on simple HHTut example; added comments | py |
diff --git a/test/testio.py b/test/testio.py
index <HASH>..<HASH> 100755
--- a/test/testio.py
+++ b/test/testio.py
@@ -12,15 +12,12 @@ except ImportError:
def test_readline(rf, fn):
f = rf.open(fn)
- br = BufferedReader(f)
- tr = TextIOWrapper(br)
+ tr = TextIOWrapper(BufferedReader(f))
while 1:
... | testio: multiple close is not necessary | py |
diff --git a/pypot/robot/__init__.py b/pypot/robot/__init__.py
index <HASH>..<HASH> 100644
--- a/pypot/robot/__init__.py
+++ b/pypot/robot/__init__.py
@@ -8,5 +8,5 @@ except ImportError:
try:
from ..vrep import from_vrep
-except ImportError:
+except (ImportError, OSError):
pass | Prevent an import error when fafailing to load the v-rep dynamical library. | py |
diff --git a/pex/pip.py b/pex/pip.py
index <HASH>..<HASH> 100644
--- a/pex/pip.py
+++ b/pex/pip.py
@@ -603,10 +603,15 @@ class Pip(object):
manylinux=None, # type: Optional[str]
):
# type: (...) -> Job
+
# N.B.: Pip gives fair warning:
# WARNING: This command is only meant fo... | Suppress `pip debug` warning. (#<I>) Pex accepts this warning in order to implement the `--pex-repository` feature. User's should not have to see the warning since they are just along for the ride. | py |
diff --git a/master/buildbot/status/web/status_json.py b/master/buildbot/status/web/status_json.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/web/status_json.py
+++ b/master/buildbot/status/web/status_json.py
@@ -47,7 +47,7 @@ FLAGS = """\
amount of useless data sent.
- callback
- Enable us... | Update pointer to wikipedia JSONP page. | py |
diff --git a/testing/src/lib/abbreviation.py b/testing/src/lib/abbreviation.py
index <HASH>..<HASH> 100644
--- a/testing/src/lib/abbreviation.py
+++ b/testing/src/lib/abbreviation.py
@@ -1,7 +1,5 @@
import re
-__all__ = ["applySettings", "Abbreviation", "Expansion", "ABBREVIATION_OPTIONS"]
-
WORD_CHARS_REGEX_OPTION... | FIx bug where abbreviation appears more than once in buffer git-svn-id: <URL> | py |
diff --git a/jaraco/functools.py b/jaraco/functools.py
index <HASH>..<HASH> 100644
--- a/jaraco/functools.py
+++ b/jaraco/functools.py
@@ -92,7 +92,7 @@ def once(func):
return wrapper
-def method_cache(method, cache_wrapper=None):
+def method_cache(method, cache_wrapper=functools.lru_cache()):
"""
Wr... | method_cache just accepts the lru_cache as the default value. | py |
diff --git a/symfit/core/fit.py b/symfit/core/fit.py
index <HASH>..<HASH> 100644
--- a/symfit/core/fit.py
+++ b/symfit/core/fit.py
@@ -787,15 +787,8 @@ class TakesData(object):
for var, sigma in self.model.sigmas.items():
# print(var, sigma)
if not isinstance(self.data[sigma.name], It... | Somewhere, something went wrong merging | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,12 @@
-from setuptools import setup, find_packages
+import os
+import sys
+from setuptools import setup, find_packages, Command
+
+
+class Doctest(Command):
+ if sys.argv[-1] == 'test':
+ print("Running docs ... | Added doctest on setup.py test | py |
diff --git a/microcosm_postgres/operations.py b/microcosm_postgres/operations.py
index <HASH>..<HASH> 100644
--- a/microcosm_postgres/operations.py
+++ b/microcosm_postgres/operations.py
@@ -85,7 +85,8 @@ def recreate_all(graph):
drop_all(graph)
create_all(graph)
- _metadata = MetaData(bind=g... | Remove deprecated usage of `reflect` constructor param Usage is deprecated; users are expected to explicitly call reflect() on the Metadata instance. | 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
@@ -186,7 +186,8 @@ class QuantumInstance:
if os.environ.get('QISKIT_AQUA_CIRCUIT_CACHE', False) or circuit_caching:
... | re-use the original setting of skip qobj deepcopy | py |
diff --git a/abilian/services/indexing/service.py b/abilian/services/indexing/service.py
index <HASH>..<HASH> 100644
--- a/abilian/services/indexing/service.py
+++ b/abilian/services/indexing/service.py
@@ -76,6 +76,9 @@ class IndexServiceState(ServiceState):
class WhooshIndexService(Service):
+ """
+ Index docu... | indexing: use a custom ramstorage during tests this should fix race conditions seen when running tests in parallel (seen when parallel means different abilian based packages) | py |
diff --git a/eventsourcing/sqlite.py b/eventsourcing/sqlite.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/sqlite.py
+++ b/eventsourcing/sqlite.py
@@ -277,7 +277,7 @@ class SQLiteApplicationRecorder(
self.select_notifications_filter_topics_statement = (
f"SELECT rowid, * FROM {self.events_ta... | Fixed selection of notification in SQLite, to use IN clause, rather than single value. | py |
diff --git a/parsl/app/app.py b/parsl/app/app.py
index <HASH>..<HASH> 100644
--- a/parsl/app/app.py
+++ b/parsl/app/app.py
@@ -75,17 +75,6 @@ class AppBase(metaclass=ABCMeta):
pass
-def app_wrapper(func):
-
- def wrapper(*args, **kwargs):
- logger.debug("App wrapper begins")
- x = func(*ar... | Remove dead code: app_wrapper (#<I>) | py |
diff --git a/neurondm/neurondm/core.py b/neurondm/neurondm/core.py
index <HASH>..<HASH> 100644
--- a/neurondm/neurondm/core.py
+++ b/neurondm/neurondm/core.py
@@ -970,7 +970,7 @@ class Phenotype(graphBase): # this is really just a 2 tuple... # FIXME +/- nee
except ConnectionError:
... | neurondm check phenotype log message bugfix string, + string != string + string so use fstrings so you can't possibly mess it up | py |
diff --git a/holoviews/operation/element.py b/holoviews/operation/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/operation/element.py
+++ b/holoviews/operation/element.py
@@ -619,12 +619,11 @@ class gridmatrix(param.ParameterizedFunction):
# Creates a unified Columns.data attribute
# to draw t... | Minor fix to gridmatrix operation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-
+from setuptools import find_packages
try:
from setuptools import setup
except ImportError:
@@ -34,20 +34,19 @@ setup(
author="Wojciech Nowak",
... | updated setup.py to use find_packages, license update in setup.py | py |
diff --git a/better_exchook.py b/better_exchook.py
index <HASH>..<HASH> 100644
--- a/better_exchook.py
+++ b/better_exchook.py
@@ -35,6 +35,7 @@
from __future__ import print_function
import sys, os, os.path
+import threading
try:
from traceback import StackSummary, FrameSummary
except ImportError:
@@ -467,6 ... | do not show vars when at exit | py |
diff --git a/src/SLIP.py b/src/SLIP.py
index <HASH>..<HASH> 100644
--- a/src/SLIP.py
+++ b/src/SLIP.py
@@ -92,10 +92,6 @@ class Image:
self.N_Y = self.pe.N_Y # n_y
self.init()
- if not 'verbose' in self.pe.keys():
- self.pe.verbose = logging.WARN
- self.init_logging()
-
... | setting verbose level at init | py |
diff --git a/sepaxml/shared.py b/sepaxml/shared.py
index <HASH>..<HASH> 100644
--- a/sepaxml/shared.py
+++ b/sepaxml/shared.py
@@ -55,11 +55,13 @@ class SepaPaymentInitn:
def _finalize_batch(self):
raise NotImplementedError()
- def export(self, validate=True):
+ def export(self, validate=True, pre... | xml export: support pretty_print output (#<I>) | py |
diff --git a/organizations/models.py b/organizations/models.py
index <HASH>..<HASH> 100644
--- a/organizations/models.py
+++ b/organizations/models.py
@@ -5,16 +5,6 @@ from django.utils.translation import ugettext_lazy as _
from organizations.managers import OrgManager, ActiveOrgManager
-try:
- from django_exte... | Remove AutoSlugField with SlugField This conditional AutoSlugField/SlugField was a stupid design decision. If an organization slug exists already the user should be provided the option of changing it something else, rather than having it automatically incremented because the base slug already exists. Plus, it's an ad... | py |
diff --git a/src/toil/batchSystems/mesos/batchSystem.py b/src/toil/batchSystems/mesos/batchSystem.py
index <HASH>..<HASH> 100644
--- a/src/toil/batchSystems/mesos/batchSystem.py
+++ b/src/toil/batchSystems/mesos/batchSystem.py
@@ -424,8 +424,7 @@ class MesosBatchSystem(BatchSystemLocalSupport,
jobTypes = sel... | Remove linear-time bottleneck from Mesos batch system Previously the system had essentially 0 throughput when there were more than ~<I>-<I>k queued jobs. The existing check took linear time in the number of issued jobs, but was actually redundant for determining the number of queued jobs, because jobTypes contains *on... | py |
diff --git a/template_parser.py b/template_parser.py
index <HASH>..<HASH> 100755
--- a/template_parser.py
+++ b/template_parser.py
@@ -280,9 +280,9 @@ def read_template_types(template_type, container_cmd, path_dirs):
host_config_new["Links"] = ["core-aaa-rabbitmq:rabbitmq"]
... | be able to write out new files from plugins | py |
diff --git a/see.py b/see.py
index <HASH>..<HASH> 100644
--- a/see.py
+++ b/see.py
@@ -26,7 +26,13 @@ Licensed under the GNU General Public License v3. {{{
}}}
"""
-__author__ = 'Liam Cooke'
+__author__ = """\
+Liam Cooke
+Bob Farrell
+Charlie Nolan
+Ed Page
+Gabriel Genellina
+"""
__version__ = '0.5.2.1'
__copyr... | added authors + changed see() docstring | py |
diff --git a/blockcypher/utils.py b/blockcypher/utils.py
index <HASH>..<HASH> 100644
--- a/blockcypher/utils.py
+++ b/blockcypher/utils.py
@@ -12,7 +12,7 @@ HEX_CHARS_RE = re.compile('^[0-9a-f]*$')
def btc_to_satoshis(btc):
- return float(btc) * float(SATOSHIS_PER_BTC)
+ return int(float(btc) * SATOSHIS_PER_... | better handling of float->int | py |
diff --git a/three/core.py b/three/core.py
index <HASH>..<HASH> 100644
--- a/three/core.py
+++ b/three/core.py
@@ -220,9 +220,9 @@ class Three(object):
else:
files = None
url = self._create_path('requests')
- self.request = requests.post(url, data=kwargs, files=files)
- cont... | Do not override self.request in Three.post() requests.post() returns an object of Response type. Instead of overriding Three.request(), store the response with the name 'post_response'. | py |
diff --git a/zinnia/__init__.py b/zinnia/__init__.py
index <HASH>..<HASH> 100644
--- a/zinnia/__init__.py
+++ b/zinnia/__init__.py
@@ -1,5 +1,5 @@
"""Zinnia"""
-__version__ = '0.19.dev0'
+__version__ = '0.19'
__license__ = 'BSD License'
__author__ = 'Fantomas42' | Bumping to version <I> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -50,10 +50,17 @@ copyright = u'2009, The Werkzeug Team'
# built documents.
import re
+try:
+ import werkzeug
+except ImportError:
+ sys.path.append(os.path.abspath('../'))
from werkzeug import __vers... | fixed conf.py to allow building docs without a virtual environment | py |
diff --git a/blockstore/blockstored.py b/blockstore/blockstored.py
index <HASH>..<HASH> 100644
--- a/blockstore/blockstored.py
+++ b/blockstore/blockstored.py
@@ -32,7 +32,8 @@ log = logging.getLogger()
log.setLevel(logging.DEBUG if config.DEBUG else logging.INFO)
console = logging.StreamHandler()
console.setLevel(l... | Meaningful error messages: * in DEBUG logging priority, print module and line number * if blockstored attempts to connect to a bitcoind peer that has not processed our first block, then report a meaningful error that says so, as well as an example of how to verify that this is the case. | py |
diff --git a/tensorlayer/layers.py b/tensorlayer/layers.py
index <HASH>..<HASH> 100644
--- a/tensorlayer/layers.py
+++ b/tensorlayer/layers.py
@@ -1942,6 +1942,7 @@ class DeformableConv2dLayer(Layer):
## this layer
self.all_layers.extend([self.outputs])
+ self.all_params.extend([W, b])
def... | fix bug in deformable CNN fix bug in deformable CNN | py |
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
@@ -268,6 +268,7 @@ DISPLAY_NAME = {
'hmaps': 'Hazard Maps',
'uhs': 'Uniform Hazard Spectra',
'disagg': 'Disaggregation Output... | Added label Disaggregation Statistics [skip CI] | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.