diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/whaaaaat/color_print.py b/whaaaaat/color_print.py
index <HASH>..<HASH> 100644
--- a/whaaaaat/color_print.py
+++ b/whaaaaat/color_print.py
@@ -3,7 +3,7 @@
provide colorized output
"""
from __future__ import print_function, unicode_literals
-
+import sys
from prompt_toolkit.shortcuts import print_tokens,... | added tests (cov <I>%) | py |
diff --git a/docker_squash/cli.py b/docker_squash/cli.py
index <HASH>..<HASH> 100644
--- a/docker_squash/cli.py
+++ b/docker_squash/cli.py
@@ -64,7 +64,7 @@ class CLI(object):
parser.add_argument(
'-f', '--from-layer', help='ID of the layer or image ID or image name. If not specified will squash a... | Fix misleading information in help about tagging If tag is not specified, no tag will be added. Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,8 @@ setup(
name='msm',
version='0.6.3',
packages=['msm'],
- install_requires=['GitPython', 'typing', 'fasteners', 'pyyaml', 'pako'],
+ install_requires=['GitPython', 'typing', 'fasteners', 'pyya... | Add lazy as requirement in setup.py | py |
diff --git a/udiskie/mount.py b/udiskie/mount.py
index <HASH>..<HASH> 100644
--- a/udiskie/mount.py
+++ b/udiskie/mount.py
@@ -202,10 +202,16 @@ class Mounter(object):
logger = logging.getLogger('udiskie.mount.eject_device')
drive = device.drive
if drive.is_drive and drive.is_ejectable:
- ... | Catch and log errors in eject_device, detach_device | py |
diff --git a/plugin_parser.py b/plugin_parser.py
index <HASH>..<HASH> 100755
--- a/plugin_parser.py
+++ b/plugin_parser.py
@@ -55,7 +55,7 @@ def add_plugins(plugin_url):
if filename == "modes.template":
check_modes = False
sh... | fix plugin_parser to handle template is not core or modes | py |
diff --git a/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py b/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
index <HASH>..<HASH> 100644
--- a/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
+++ b/gremlin-python/src/main/jython/tes... | TINKERPOP-<I> added a test to hit the renamed steps Deprecated steps are still being tested under the general test suite. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ setup(
install_requires=[
"Django>=1.8.0",
"djangorestframework>=3.2.0",
- "django-haystack>=2.4.0",
+ "django-haystack>=2.4.1",
"python-dateutil"
],
tests... | Need latest version of Haystack for <I> branch | py |
diff --git a/sherlock/transient_catalogue_crossmatch.py b/sherlock/transient_catalogue_crossmatch.py
index <HASH>..<HASH> 100644
--- a/sherlock/transient_catalogue_crossmatch.py
+++ b/sherlock/transient_catalogue_crossmatch.py
@@ -585,7 +585,7 @@ class transient_catalogue_crossmatch():
mag = decimal.Decima... | setting max threshold for bright star cut to <I> arcsec | py |
diff --git a/src/python/pants/goal/run_tracker.py b/src/python/pants/goal/run_tracker.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/goal/run_tracker.py
+++ b/src/python/pants/goal/run_tracker.py
@@ -222,7 +222,7 @@ class RunTracker(object):
"""Send timing results to URL specified in pants.ini"""
def e... | Prevent stat-uploading errors from polluting stdout The error/warning messages that occur during stat-uploading are currently being printed to stdout, which breaks scripts that use pants output (e.g. "./pants goal list ::" chained with "./pants goal compile"). This RB is a fix for this issue. Testing Done: Local test... | py |
diff --git a/exa/cms/editors/editor.py b/exa/cms/editors/editor.py
index <HASH>..<HASH> 100644
--- a/exa/cms/editors/editor.py
+++ b/exa/cms/editors/editor.py
@@ -477,11 +477,11 @@ def read_file(path, as_interned=False, encoding='utf-8'):
"""
lines = None
if path.endswith(".gz"):
- f = gzip.open(p... | Always read to bytes for py2 compat? | py |
diff --git a/test/spambl_test.py b/test/spambl_test.py
index <HASH>..<HASH> 100644
--- a/test/spambl_test.py
+++ b/test/spambl_test.py
@@ -263,6 +263,12 @@ class BaseDNSBLClientTest(unittest.TestCase):
self.base_dnsbl_client.dnsbl_services.append(dnsbl)
self.assertTrue(test_host in self.base... | Add test This commit adds a test for BaseDNSBLClientInstance not containing a test host | py |
diff --git a/spambl.py b/spambl.py
index <HASH>..<HASH> 100644
--- a/spambl.py
+++ b/spambl.py
@@ -90,7 +90,7 @@ class BaseDNSBL(object):
return AddressListItem(str(host), self._identifier, classification)
except UnknownCodeError as e:
- raise type(e), 'Source:'+str(self), exc... | Refactor reraising of UnknownCodeError The reraising of the exception is being refactored to use type object provided by exc_info and to reuse the message of the original exception. | py |
diff --git a/pods/datasets.py b/pods/datasets.py
index <HASH>..<HASH> 100644
--- a/pods/datasets.py
+++ b/pods/datasets.py
@@ -1112,11 +1112,11 @@ def drosophila_knirps(data_set="drosophila_protein"):
filename = os.path.join(dir_path, "becker_et_al.csv")
# in the csv file we have facts_kni and ext_kni. We tre... | udpate datasets.py with numpy conversion. | py |
diff --git a/datastore/google/cloud/datastore/client.py b/datastore/google/cloud/datastore/client.py
index <HASH>..<HASH> 100644
--- a/datastore/google/cloud/datastore/client.py
+++ b/datastore/google/cloud/datastore/client.py
@@ -580,8 +580,8 @@ class Client(ClientWithProject):
>>>
>>> first_... | Update datastore doctests to reflect change in cursor behavior. (#<I>) Follow up to #<I>. | py |
diff --git a/test/test.py b/test/test.py
index <HASH>..<HASH> 100755
--- a/test/test.py
+++ b/test/test.py
@@ -1047,7 +1047,7 @@ class TestCheckModule(unittest.TestCase):
def test_not_package(self):
self._mkfile('module.py')
- with self.assertRaisesRegexp(Exception, 'module is not a package'):
+ ... | Replace assertRaisesRegexp with assertRaisesRegex (#<I>) | py |
diff --git a/zstandard/cffi.py b/zstandard/cffi.py
index <HASH>..<HASH> 100644
--- a/zstandard/cffi.py
+++ b/zstandard/cffi.py
@@ -489,10 +489,6 @@ class ZstdCompressionWriter(object):
return False
def memory_size(self):
- if not self._entered:
- raise ZstdError('cannot determine size ... | compressionwriter: don't require active context manager to call memory_size() In preparation for making the context manager optional. | py |
diff --git a/websocket/_app.py b/websocket/_app.py
index <HASH>..<HASH> 100644
--- a/websocket/_app.py
+++ b/websocket/_app.py
@@ -325,7 +325,7 @@ class WebSocketApp(object):
def _callback(self, callback, *args):
if callback:
try:
- if inspect.ismethod(callback):
+ ... | pass proper arguments to method callbacks | py |
diff --git a/peyotl/phylesystem/phylesystem_umbrella.py b/peyotl/phylesystem/phylesystem_umbrella.py
index <HASH>..<HASH> 100644
--- a/peyotl/phylesystem/phylesystem_umbrella.py
+++ b/peyotl/phylesystem/phylesystem_umbrella.py
@@ -377,9 +377,9 @@ class _Phylesystem(_PhylesystemBase):
... | Accept curation comments on study deletion. This just accepts an additional 'commit_msg' argument in the Phylesystem.delete_study method. This still needs to be applied downstream to replace our generic 'Delete Study' commit msg in phylesystem. Addresses <URL> | py |
diff --git a/porespy/network_extraction/__init__.py b/porespy/network_extraction/__init__.py
index <HASH>..<HASH> 100644
--- a/porespy/network_extraction/__init__.py
+++ b/porespy/network_extraction/__init__.py
@@ -2,6 +2,7 @@ r"""
This module contains a variety of network extraction algorithms
"""
-from .__snow2__... | added some functions to the import of the network extraction module | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100755
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -117,7 +117,7 @@ class TestTerminal(unittest.TestCase):
self.assertEqual(self.term._get_pinblock('1234', 4000001234562000), '041234fedcba9dff')
def test_get_pinblock_length_4(self):
... | tests cardnumber changed to <I> | py |
diff --git a/repo/module/repo/module.py b/repo/module/repo/module.py
index <HASH>..<HASH> 100644
--- a/repo/module/repo/module.py
+++ b/repo/module/repo/module.py
@@ -396,6 +396,10 @@ def add(i):
ck.out('CK repo description path = '+px)
ck.out('CK repo UID = '+dx)
+ # Recache rep... | adding repo recaching after adding new repos (otherwise may unsync after dependency resolution) | py |
diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py
index <HASH>..<HASH> 100644
--- a/ryu/ofproto/ofproto_v1_4_parser.py
+++ b/ryu/ofproto/ofproto_v1_4_parser.py
@@ -5106,19 +5106,18 @@ class OFPGroupMod(MsgBase):
class OFPPortModPropEthernet(StringifyMixin):
- _PACK_STR = '!HHI... | of<I>: Remove _PACK_STR from port mod ethernet property Use OFP_PORT_MOD_PROP_ETHERNET_PACK_STR in and remove _PACK_STR from OFPPortModPropEthernet. | py |
diff --git a/girder/utility/s3_assetstore_adapter.py b/girder/utility/s3_assetstore_adapter.py
index <HASH>..<HASH> 100644
--- a/girder/utility/s3_assetstore_adapter.py
+++ b/girder/utility/s3_assetstore_adapter.py
@@ -572,9 +572,8 @@ def makeBotoConnectParams(accessKeyId, secret, service=None):
}
if se... | Boto3 expects endpoint_url to contain scheme | py |
diff --git a/holoviews/element/raster.py b/holoviews/element/raster.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/raster.py
+++ b/holoviews/element/raster.py
@@ -1,3 +1,4 @@
+from itertools import product
from collections import OrderedDict
import numpy as np
@@ -249,6 +250,16 @@ class HeatMap(Raster):
... | Added specialized dframe method to HeatMap | py |
diff --git a/djstripe/admin.py b/djstripe/admin.py
index <HASH>..<HASH> 100644
--- a/djstripe/admin.py
+++ b/djstripe/admin.py
@@ -596,7 +596,6 @@ class InvoiceAdmin(StripeModelAdmin):
"period_start",
"period_end",
)
- list_select_related = ("customer", "customer__subscriber")
search_fiel... | Overrode InvoiceAdmin.get_queryset() to prefetch Invoice model FK and m2m fields | py |
diff --git a/tests/test_data_request.py b/tests/test_data_request.py
index <HASH>..<HASH> 100644
--- a/tests/test_data_request.py
+++ b/tests/test_data_request.py
@@ -10,6 +10,7 @@ class TestDataRequest(TestSentinelHub):
bbox = BBox((8.655, 111.7, 8.688, 111.6), crs=CRS.WGS84)
data_request = WcsRequ... | added create_request method usage into tests | py |
diff --git a/python/tests/phonenumberutiltest.py b/python/tests/phonenumberutiltest.py
index <HASH>..<HASH> 100755
--- a/python/tests/phonenumberutiltest.py
+++ b/python/tests/phonenumberutiltest.py
@@ -26,6 +26,7 @@ from phonenumbers import PhoneNumberType, PhoneNumberFormat, NumberParseExceptio
from phonenumbers imp... | Add local import of u() to tests (needed in eval()) | py |
diff --git a/theanets/feedforward.py b/theanets/feedforward.py
index <HASH>..<HASH> 100644
--- a/theanets/feedforward.py
+++ b/theanets/feedforward.py
@@ -195,6 +195,7 @@ class Network(object):
noise=self.kwargs.get('hidden_noise', 0),
dropout=self.kwargs.get('hidden_dropouts', 0),
... | Fix bug! Hidden activation was being ignored. :-/ | py |
diff --git a/tempodb/client.py b/tempodb/client.py
index <HASH>..<HASH> 100644
--- a/tempodb/client.py
+++ b/tempodb/client.py
@@ -102,7 +102,7 @@ class Client(object):
tags = json.get('tags', [])
return Series(i, key, attr, tags)
- def read(self, start, end, interval="", function="", ids=[], key... | Add multi series read filtering by tags and attributes | py |
diff --git a/horizon/tables/base.py b/horizon/tables/base.py
index <HASH>..<HASH> 100644
--- a/horizon/tables/base.py
+++ b/horizon/tables/base.py
@@ -29,6 +29,7 @@ from django.template.defaultfilters import slugify
from django.template.defaultfilters import truncatechars
from django.template.loader import render_to_... | Truncate table size column cause the exception The truncate filter treat an integer as a string and failing. | py |
diff --git a/salt/states/win_lgpo.py b/salt/states/win_lgpo.py
index <HASH>..<HASH> 100644
--- a/salt/states/win_lgpo.py
+++ b/salt/states/win_lgpo.py
@@ -289,10 +289,13 @@ def set_(name,
) == {}
if not policies_are_equal:
+ additional_policy_commen... | add comments on user right assignment policies when they are already set and note if cumulative_rights_assignment is True that the particular user is already granted the right | py |
diff --git a/thinc/neural/_classes/model.py b/thinc/neural/_classes/model.py
index <HASH>..<HASH> 100644
--- a/thinc/neural/_classes/model.py
+++ b/thinc/neural/_classes/model.py
@@ -126,6 +126,7 @@ class Model(object):
self.check_input(X, expect_batch=True)
callbacks = []
for layer in self.l... | Make copies of activations and gradients, to avoid bugs from inplace ops | py |
diff --git a/fenix.py b/fenix.py
index <HASH>..<HASH> 100644
--- a/fenix.py
+++ b/fenix.py
@@ -177,6 +177,16 @@ class FenixAPISingleton(object):
def get_token_expires(self):
return self.exprires
+
+ #Logout
+ def logout(self):
+ self.access_token = ''
+
+ def user_is_authenticated(self):
+ if self.access_toke... | Created a logout and user_is_authenticated method. Closes #5 | py |
diff --git a/spyder/widgets/variableexplorer/utils.py b/spyder/widgets/variableexplorer/utils.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/variableexplorer/utils.py
+++ b/spyder/widgets/variableexplorer/utils.py
@@ -481,7 +481,6 @@ def make_remote_view(data, settings, more_excluded_names=None):
Make a remot... | Variable explorer: Remove assert which is no longer satisfied Commit da2aa<I> broke the assert. | py |
diff --git a/source/rafcon/utils/execution_log.py b/source/rafcon/utils/execution_log.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/utils/execution_log.py
+++ b/source/rafcon/utils/execution_log.py
@@ -9,11 +9,9 @@
# Franz Steinmetz <franz.steinmetz@dlr.de>
# Sebastian Brunner <sebastian.brunner@dlr.de>
# Sebas... | fix(execution_log): Do not rely on pandas | py |
diff --git a/jira/client.py b/jira/client.py
index <HASH>..<HASH> 100644
--- a/jira/client.py
+++ b/jira/client.py
@@ -1438,9 +1438,13 @@ class JIRA(object):
def _try_magic(self):
try:
import magic
- self._magic = magic.Magic(mime=True)
except ImportError:
sel... | be aware of wrong magic version (which has no keyword argument "mime") | py |
diff --git a/area4/__init__.py b/area4/__init__.py
index <HASH>..<HASH> 100644
--- a/area4/__init__.py
+++ b/area4/__init__.py
@@ -61,6 +61,10 @@ def div12():
def customdiv():
return custom_div
+def make_div(div, length=24):
+ repeats = length//len(div)
+ return (div*repeats)[0:length]
+
def area4info():... | Added custom div that repeats whole units up to given length | py |
diff --git a/epc/server.py b/epc/server.py
index <HASH>..<HASH> 100644
--- a/epc/server.py
+++ b/epc/server.py
@@ -116,6 +116,8 @@ class EPCHandler(SocketServer.StreamRequestHandler):
if self.server.debugger:
traceback = sys.exc_info()[2]
self.server.debugger.post_mortem(t... | Do not send error due to return-error/epc-error back | py |
diff --git a/wily/commands/build.py b/wily/commands/build.py
index <HASH>..<HASH> 100644
--- a/wily/commands/build.py
+++ b/wily/commands/build.py
@@ -95,7 +95,7 @@ def build(config, archiver, operators):
for root in roots:
# find all matching entries ... | match on the string version of the path | py |
diff --git a/polyglot/downloader.py b/polyglot/downloader.py
index <HASH>..<HASH> 100644
--- a/polyglot/downloader.py
+++ b/polyglot/downloader.py
@@ -205,15 +205,15 @@ class Package(object):
def fromcsobj(csobj):
attrs = csobj
id_ = attrs["id"]
- id_ = id_.split(path.sep)
+ id_ = id_.split('/')
... | Fix an issue with OS-dependent directory separators used for URI path | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ def read_relative_file(filename):
NAME = 'rst2rst'
README = read_relative_file('README.rst')
-VERSION = read_relative_file(os.path.join(NAME, 'version.txt').strip()
+VERSION = read_relative_file(os.path.join... | Refs #<I> - fixed syntax error in setup.py. | py |
diff --git a/payu.py b/payu.py
index <HASH>..<HASH> 100644
--- a/payu.py
+++ b/payu.py
@@ -19,7 +19,7 @@ execfile('/opt/Modules/default/init/python')
# Counter environment variable names
counter_env = 'count'
max_counter_env = 'max'
-archive_server = 'dcc.nci.org.au'
+archive_server = 'dc.nci.org.au'
#===========... | Archive server switched to dc | py |
diff --git a/nodeconductor/core/serializers.py b/nodeconductor/core/serializers.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/core/serializers.py
+++ b/nodeconductor/core/serializers.py
@@ -106,7 +106,7 @@ class GenericRelatedField(Field):
kwargs = {field: getattr(obj, field)}
bre... | Correct filtering by generic key bug - nc-<I> - Raise validation error if object with given URL does not exist | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100644
--- a/runtests.py
+++ b/runtests.py
@@ -26,7 +26,12 @@ DEFAULT_SETTINGS = {
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
),
- 'ROOT_URLCONF': 'tests.urls'
+ 'ROOT_URLCONF': 'tests... | <I> compat: disable AnonymousUser for tests | py |
diff --git a/img_proof/ipa_cloud.py b/img_proof/ipa_cloud.py
index <HASH>..<HASH> 100644
--- a/img_proof/ipa_cloud.py
+++ b/img_proof/ipa_cloud.py
@@ -241,7 +241,7 @@ class IpaCloud(object):
"""
key = ipa_utils.get_public_ssh_key(
self.ssh_private_key_file
- ).decode()
+ ).d... | Strip newline from key file if it exists. Otherwise an empty line will be echoed to the file. | py |
diff --git a/process/check.py b/process/check.py
index <HASH>..<HASH> 100644
--- a/process/check.py
+++ b/process/check.py
@@ -346,8 +346,9 @@ class ProcessCheck(AgentCheck):
with open(pid_file, 'r') as file_pid:
pid_line = file_pid.readline().strip()
pids = se... | added log line to confirm the check is failing on the missing file | py |
diff --git a/searx/engines/bing_videos.py b/searx/engines/bing_videos.py
index <HASH>..<HASH> 100644
--- a/searx/engines/bing_videos.py
+++ b/searx/engines/bing_videos.py
@@ -67,6 +67,10 @@ def request(query, params):
if params['time_range'] in time_range_dict:
params['url'] += time_range_string.format(in... | bugfix(!biv) : bing-video do not like "older" User-Agents When selecting other languages than 'en', bing-video did not handle the language correct and gave very bad results. Since User-Agent is normaly rotated in searx, the behavior of a !biv search was unpredictable and paging was broken. | py |
diff --git a/botstory/integrations/aiohttp/aiohttp.py b/botstory/integrations/aiohttp/aiohttp.py
index <HASH>..<HASH> 100644
--- a/botstory/integrations/aiohttp/aiohttp.py
+++ b/botstory/integrations/aiohttp/aiohttp.py
@@ -117,6 +117,8 @@ class AioHttpInterface:
async def delete(self, url, params=None, headers=N... | should set json header for delete | py |
diff --git a/openpnm/utils/misc.py b/openpnm/utils/misc.py
index <HASH>..<HASH> 100644
--- a/openpnm/utils/misc.py
+++ b/openpnm/utils/misc.py
@@ -1,4 +1,5 @@
import copy
+import json
import inspect
import warnings
import functools
@@ -120,11 +121,10 @@ class SettingsDict(PrintableDict):
__doc__ = ''
de... | Changed SettingsDict to only accept serializable objects | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ BinarySecurityToken specification.
setup(
name='soap_wsse',
- version='0.1.0',
+ version='0.1.1',
description=description,
install_requires=[
'dm.xmlsec.binding==1.3.2', | Update to <I> for license fix | py |
diff --git a/ceam/framework/engine.py b/ceam/framework/engine.py
index <HASH>..<HASH> 100644
--- a/ceam/framework/engine.py
+++ b/ceam/framework/engine.py
@@ -129,7 +129,7 @@ def event_loop(simulation, simulant_creator, end_emitter):
population_size = config.simulation_parameters.population_size
- if config... | Bugfix in parsing of config | py |
diff --git a/astrobase/periodbase/kbls.py b/astrobase/periodbase/kbls.py
index <HASH>..<HASH> 100644
--- a/astrobase/periodbase/kbls.py
+++ b/astrobase/periodbase/kbls.py
@@ -606,7 +606,7 @@ def bls_parallel_pfind(
# break up the tasks into chunks
frequencies = minfreq + nparange(nfreq)*stepsize
- ... | kbls: attempting fix for chunksize issue | py |
diff --git a/openquake/commonlib/logictree.py b/openquake/commonlib/logictree.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/logictree.py
+++ b/openquake/commonlib/logictree.py
@@ -655,8 +655,8 @@ class SourceModelLogicTree(object):
self.num_paths *= len(branchset.branches)
if number >... | Force a single branching level[demos] | py |
diff --git a/safe_qgis/dock.py b/safe_qgis/dock.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/dock.py
+++ b/safe_qgis/dock.py
@@ -17,7 +17,6 @@ __revision__ = '$Format:%H$'
__date__ = '10/01/2011'
__copyright__ = ('Copyright 2012, Australia Indonesia Facility for '
'Disaster Reduction')
-__type__ =... | Remove __type__ from dock | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -10,11 +10,15 @@ import unittest
def test_suite():
return unittest.TestLoader().discover('tests', pattern='test_*.py')
+with open('README.md', 'r') as fh:
+ long_description = fh.read()
setup(
name='spdx-too... | Add description that is missing on PyPi (#<I>) Display correct description on PyPi page | py |
diff --git a/axis/__init__.py b/axis/__init__.py
index <HASH>..<HASH> 100644
--- a/axis/__init__.py
+++ b/axis/__init__.py
@@ -57,6 +57,8 @@ class AxisDevice(object):
r = self.do_request(cgi, param)
except requests.ConnectionError:
return None
+ except requests.exceptions.HTTPE... | Added exception handling for unauthorized http error | py |
diff --git a/zipline/history/history_container.py b/zipline/history/history_container.py
index <HASH>..<HASH> 100644
--- a/zipline/history/history_container.py
+++ b/zipline/history/history_container.py
@@ -246,6 +246,13 @@ class HistoryContainer(object):
)
return rp
+ def convert_columns(self, v... | MAINT: Factor out column conversion in HistoryContainer. We can't be sure that security identifiers can be converted to int. In fact, most of the times they are strings. This adds an identity function that can be overwritten if such a conversion is necessary (as on Quantopian). | py |
diff --git a/src/new.py b/src/new.py
index <HASH>..<HASH> 100644
--- a/src/new.py
+++ b/src/new.py
@@ -175,7 +175,7 @@ class Files:
def _prepare_write_arrays(self):
projectPath = self._cwd + '/' + self._projectName
- self._string = [{
+ self._string_write_array = [{
'path': pr... | changed name of the file operations array to something more readable | py |
diff --git a/coupons/forms.py b/coupons/forms.py
index <HASH>..<HASH> 100644
--- a/coupons/forms.py
+++ b/coupons/forms.py
@@ -60,7 +60,7 @@ class CouponForm(forms.Form):
# only user bound coupons left and you don't have one
if coupon.user_limit is coupon.users.filter(user__isnull=Fals... | coupons are redeemed, when the date is NOT null | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ except (IOError, ImportError):
long_description = f.read()
-version = '0.1.2'
+version = '0.1.3'
setup(name="perceval-puppet", | Update version number to <I> | py |
diff --git a/pyqtree.py b/pyqtree.py
index <HASH>..<HASH> 100644
--- a/pyqtree.py
+++ b/pyqtree.py
@@ -343,4 +343,4 @@ class Index(_QuadTree):
Returns:
- A list of inserted items whose bounding boxes intersect with the input bbox.
"""
- return self._intersect(bbox)
+ return list... | Fix duplicate intersect items As suggested in #<I>. | py |
diff --git a/bunq/sdk/json/converter.py b/bunq/sdk/json/converter.py
index <HASH>..<HASH> 100644
--- a/bunq/sdk/json/converter.py
+++ b/bunq/sdk/json/converter.py
@@ -184,7 +184,7 @@ class JsonAdapter(object):
:rtype: T
"""
- instance = cls_target.__new__(cls_target, cls_target)
+ inst... | Do not pass anything to construcotre when converting. (bunq/sdk_python#<I>) | py |
diff --git a/image_scraper/utils.py b/image_scraper/utils.py
index <HASH>..<HASH> 100644
--- a/image_scraper/utils.py
+++ b/image_scraper/utils.py
@@ -25,6 +25,7 @@ class ImageScraper(object):
page_url = None
images = None
proxy_url = None
+ proxies = {}
def __init__(self):
url = None | :bug: Fixed error while running tests. | py |
diff --git a/iarm/arm_instructions/_meta.py b/iarm/arm_instructions/_meta.py
index <HASH>..<HASH> 100644
--- a/iarm/arm_instructions/_meta.py
+++ b/iarm/arm_instructions/_meta.py
@@ -33,7 +33,7 @@ class _Meta(iarm.cpu.RegisterCpu):
remove_comments = re.compile(r'^([^;\n]*);?.*$', re.MULTILINE)
code = ... | Labels all by themselves was failing because of the +. instructions are now optional | py |
diff --git a/pyvex/__init__.py b/pyvex/__init__.py
index <HASH>..<HASH> 100644
--- a/pyvex/__init__.py
+++ b/pyvex/__init__.py
@@ -4,7 +4,7 @@ For an introduction to VEX, take a look here: https://docs.angr.io/advanced-topi
"""
from typing import NewType, Any
-__version__ = (9, 0, "gitrolling")
+__version__ = (9, 1... | Fix version tuple for <I> [ci skip] | py |
diff --git a/tasklib/task.py b/tasklib/task.py
index <HASH>..<HASH> 100644
--- a/tasklib/task.py
+++ b/tasklib/task.py
@@ -245,7 +245,15 @@ class Task(TaskResource):
def _modified_fields(self):
writable_fields = set(self._data.keys()) - set(self.read_only_fields)
for key in writable_fields:
- ... | Task: Do not yield corner case of fake removals as modified field | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import find_packages
setup(
name='mots-vides',
- version='2015.2.4',
+ version='2015.2.5',
description='Python library for managing stop words in many languages.',
long_de... | Bumping to version <I> | py |
diff --git a/pupa/scrape/base.py b/pupa/scrape/base.py
index <HASH>..<HASH> 100644
--- a/pupa/scrape/base.py
+++ b/pupa/scrape/base.py
@@ -75,7 +75,8 @@ class Scraper(scrapelib.Scraper):
contact_details=obj._contact_details, role=getattr(obj, 'role', 'member'))
# remove placeholder _contac... | Only remove the role attribute if the object has it | py |
diff --git a/django_common/templatetags/custom_tags.py b/django_common/templatetags/custom_tags.py
index <HASH>..<HASH> 100644
--- a/django_common/templatetags/custom_tags.py
+++ b/django_common/templatetags/custom_tags.py
@@ -61,7 +61,19 @@ def render_form_field(parser, token):
@register.simple_tag
def active(requ... | updated active and added a active_starts template tag | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -6,6 +6,7 @@
import os
import sys
+import datetime
sys.path.insert(0, os.path.abspath(".."))
@@ -40,7 +41,8 @@ master_doc = "index"
# General information about the project.
project = "Adafruit BME2... | Keep copyright up to date in documentation | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -193,7 +193,7 @@ project = 'Salt'
copyright = '2016 SaltStack, Inc.'
version = salt.version.__version__
-latest_release = '2016.3.4' # latest release
+latest_release = '2016.11.0' # latest release
previous_r... | [<I>] Update version numbers in doc config for <I> release (#<I>) | py |
diff --git a/dirutility/walk/sequential.py b/dirutility/walk/sequential.py
index <HASH>..<HASH> 100644
--- a/dirutility/walk/sequential.py
+++ b/dirutility/walk/sequential.py
@@ -73,9 +73,17 @@ class Crawler:
root = root[len(str(directory)) + 1:]
self._printer(str(count.up) + ": Explor... | ADD non-empty-directory check to sequential processor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,9 @@ setup(
version='0.6.4',
packages=find_packages(),
python_requires='>=3.6',
- install_requires=['prettytable>=0.7.2', 'pysha3>=1.0.2', 'crytic-compile>=0.1.1'],
+ install_requires=['prettytable... | Use the master branch from crytic-compile | py |
diff --git a/indra/databases/ndex_client.py b/indra/databases/ndex_client.py
index <HASH>..<HASH> 100644
--- a/indra/databases/ndex_client.py
+++ b/indra/databases/ndex_client.py
@@ -7,7 +7,7 @@ logger = logging.getLogger('ndex')
ndex_base_url = 'http://52.37.175.128'
-def send_request(ndex_service_url, params, is... | Add GET option to NDEx client requests | py |
diff --git a/svgpathtools/svg_to_paths.py b/svgpathtools/svg_to_paths.py
index <HASH>..<HASH> 100644
--- a/svgpathtools/svg_to_paths.py
+++ b/svgpathtools/svg_to_paths.py
@@ -90,8 +90,13 @@ def rect2pathd(rect):
"".format(x0, y0, x1, y1, x2, y2, x3, y3))
return d
+
def line2pathd(l):
- return 'M' +... | Fixed crash in line2pathd() (#<I>) * Fixed crash in line2pathd(). * Further fixed to support implicit attributes | py |
diff --git a/ricecooker/utils/html.py b/ricecooker/utils/html.py
index <HASH>..<HASH> 100644
--- a/ricecooker/utils/html.py
+++ b/ricecooker/utils/html.py
@@ -18,7 +18,8 @@ basic_adapter = CacheControlAdapter(cache=cache)
sess.mount('http://', basic_adapter)
sess.mount('https://', basic_adapter)
-PHANTOMJS_PATH = o... | Update path and error-checking for PhantomJS | py |
diff --git a/lettuce/core.py b/lettuce/core.py
index <HASH>..<HASH> 100644
--- a/lettuce/core.py
+++ b/lettuce/core.py
@@ -1339,7 +1339,7 @@ class SummaryTotalResults(TotalResult):
"""Outputs the aggregated results for the TotalResult list
"""
- for partial_result in self.total_results:
+ ... | fix for feature results when there are no features found in a django app from harvest | py |
diff --git a/ask-sdk-dynamodb-persistence-adapter/setup.py b/ask-sdk-dynamodb-persistence-adapter/setup.py
index <HASH>..<HASH> 100644
--- a/ask-sdk-dynamodb-persistence-adapter/setup.py
+++ b/ask-sdk-dynamodb-persistence-adapter/setup.py
@@ -61,7 +61,8 @@ setup(
'Programming Language :: Python :: 2',
... | Add PyPI trove classifier for Python <I> to setup.py | py |
diff --git a/tests/unit/test_isort.py b/tests/unit/test_isort.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_isort.py
+++ b/tests/unit/test_isort.py
@@ -5562,3 +5562,21 @@ def test_find_imports_in_stream() -> None:
test_input = NonSeekableTestStream("import m2\n" "import m1\n" "not_import = 7")
identifi... | Add test to check for infinite loop on unmatched parenthesis | py |
diff --git a/warehouse/macaroons/models.py b/warehouse/macaroons/models.py
index <HASH>..<HASH> 100644
--- a/warehouse/macaroons/models.py
+++ b/warehouse/macaroons/models.py
@@ -60,6 +60,6 @@ class Macaroon(db.Model):
# default would be to generate a random key). However, it appears the
# PostgreSQL pgcrypto... | Fixed a typo in a comment (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,6 @@ setup(
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
- 'Programming Language :: Python :: 2.7',
'Programming Language :... | Removed <I> support (Datarum is 3+) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ setup(
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
- 'License :: MIT Approved :: MIT License (MIT)',
+ 'License :: OSI Approved ::... | setup.py changed license to be valid with pypi | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -208,6 +208,9 @@ class TestNSRunUtils(unittest.TestCase):
"""Check combining runs is consistent with combining threads."""
runs = [nestcheck.dummy_data.get_dummy_run(2,... | returning test coverage to <I>%£ | py |
diff --git a/tensor2tensor/utils/trainer_lib.py b/tensor2tensor/utils/trainer_lib.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/utils/trainer_lib.py
+++ b/tensor2tensor/utils/trainer_lib.py
@@ -338,11 +338,11 @@ class T2TExperiment(object):
"in train_hooks.")
self.train()
- def ... | Allow max_steps to be set during train() call. PiperOrigin-RevId: <I> | py |
diff --git a/bukuserver/server.py b/bukuserver/server.py
index <HASH>..<HASH> 100644
--- a/bukuserver/server.py
+++ b/bukuserver/server.py
@@ -214,7 +214,7 @@ def search_bookmarks():
return res
-def get_bool_from_env_var(key: str, default_value: bool)->bool:
+def get_bool_from_env_var(key: str, default_value: ... | fix: test: pylint | py |
diff --git a/ttp/ttp.py b/ttp/ttp.py
index <HASH>..<HASH> 100644
--- a/ttp/ttp.py
+++ b/ttp/ttp.py
@@ -265,7 +265,7 @@ class Parser(object):
# User defined formatters --------------------------------------------------
def format_tag(self, tag, text):
'''Return formatted HTML for a hashtag.'''
- ... | Updated format_tag with the correct new URL for Twitter API <I> hashtag search (old URL no longer functions) | py |
diff --git a/bquery/ctable.py b/bquery/ctable.py
index <HASH>..<HASH> 100644
--- a/bquery/ctable.py
+++ b/bquery/ctable.py
@@ -151,8 +151,6 @@ class ctable(bcolz.ctable):
carray_values.flush()
rm_file_or_dir(col_values_rootdir, ignore_errors=True)
shutil.move(col_value... | Remove unneeded tmp dir removal | py |
diff --git a/ezvis3d/_state.py b/ezvis3d/_state.py
index <HASH>..<HASH> 100644
--- a/ezvis3d/_state.py
+++ b/ezvis3d/_state.py
@@ -8,7 +8,7 @@ from ._config import VIS3D_OPTION_FILE, VIS3D_METHOD_FILE, VIS3D_DATASET_FILE, \
def load_resource(src):
_dir = os.path.dirname(__file__)
object_builder_file = os.pat... | correct file encoding (for windows) | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -41,7 +41,7 @@ master_doc = 'index'
# General information about the project.
project = u'Astroid'
-copyright = u'2013, Logilab S.A.'
+copyright = u'Logilab, PyCQA and contributors'
... | Update the docs (and test ReadTheDocs hook) | py |
diff --git a/fedmsg/consumers/ircbot.py b/fedmsg/consumers/ircbot.py
index <HASH>..<HASH> 100644
--- a/fedmsg/consumers/ircbot.py
+++ b/fedmsg/consumers/ircbot.py
@@ -175,6 +175,10 @@ class IRCBotConsumer(FedmsgConsumer):
def consume(self, msg):
""" Forward on messages from the bus to all IRC connections.... | Don't spam IRC with enormous base<I> creds. | py |
diff --git a/lazyconf/lazy/prompt.py b/lazyconf/lazy/prompt.py
index <HASH>..<HASH> 100644
--- a/lazyconf/lazy/prompt.py
+++ b/lazyconf/lazy/prompt.py
@@ -28,7 +28,7 @@ class Prompt():
### Prompts ###
# Returns the value from a validated bool prompt.
- def prompt_bool(self, label, default = False):
+ ... | renamed prompt bool func | py |
diff --git a/tests/testutils.py b/tests/testutils.py
index <HASH>..<HASH> 100644
--- a/tests/testutils.py
+++ b/tests/testutils.py
@@ -12,6 +12,8 @@ from holoviews import Store
from holoviews.util import output, opts, OutputSettings
from holoviews.core import OrderedDict
+from holoviews.core.options import OptionTr... | Updated options reset for opts utility tests | py |
diff --git a/legit/bootstrap.py b/legit/bootstrap.py
index <HASH>..<HASH> 100644
--- a/legit/bootstrap.py
+++ b/legit/bootstrap.py
@@ -45,21 +45,6 @@ if not config.has_section('legit'):
modified = False
-# Updates?
-
-# r = requests.get(settings.update_url)
-# parsed = omnijson.loads(r.content)
-
-# new_version = ... | take out modifying bootstrap for now | py |
diff --git a/tornado/httputil.py b/tornado/httputil.py
index <HASH>..<HASH> 100644
--- a/tornado/httputil.py
+++ b/tornado/httputil.py
@@ -132,6 +132,10 @@ class HTTPHeaders(dict):
dict.__delitem__(self, norm_name)
del self._as_list[norm_name]
+ def __contains__(self, name):
+ norm_name = ... | Make HTTPHeaders.__contains__() case-insensitive, like the rest of the object. | py |
diff --git a/iarm/arm.py b/iarm/arm.py
index <HASH>..<HASH> 100644
--- a/iarm/arm.py
+++ b/iarm/arm.py
@@ -59,9 +59,10 @@ class Arm(instructions.DataMovement, instructions.Arithmetic,
# Run the instruction, if it raised an error, roll back the labels
try:
instructi... | Getting the function now catches all exceptions, and says what instruction they came from | py |
diff --git a/visualops/cmd/stack/pull.py b/visualops/cmd/stack/pull.py
index <HASH>..<HASH> 100755
--- a/visualops/cmd/stack/pull.py
+++ b/visualops/cmd/stack/pull.py
@@ -46,10 +46,15 @@ class Pull(Command):
del stack_json['property']
#generate yaml
- app = {}
+ app = {... | [develop] add hosts_table in yaml | py |
diff --git a/mbed/mbed.py b/mbed/mbed.py
index <HASH>..<HASH> 100644
--- a/mbed/mbed.py
+++ b/mbed/mbed.py
@@ -1484,7 +1484,7 @@ class Program(object):
def post_action(self):
mbed_tools_path = self.get_tools_dir()
- if not mbed_tools_path and (self.is_classic or os.path.exists(os.path.join(self.p... | Import Mbed 2 tools only if mbed.bld is present | py |
diff --git a/testing/regextypesTest.py b/testing/regextypesTest.py
index <HASH>..<HASH> 100644
--- a/testing/regextypesTest.py
+++ b/testing/regextypesTest.py
@@ -2,21 +2,12 @@
from initSubdir import checkSubdirPath; checkSubdirPath(__name__)
import unittest
import re
+import itertools
import regextypes
impor... | Changed allCasings to be much simpler | py |
diff --git a/tmuxp/testsuite/cli.py b/tmuxp/testsuite/cli.py
index <HASH>..<HASH> 100644
--- a/tmuxp/testsuite/cli.py
+++ b/tmuxp/testsuite/cli.py
@@ -151,41 +151,6 @@ class FindConfigsTest(TestCase):
shutil.rmtree(TMUXP_DIR)
logger.debug('wiped %s' % TMUXP_DIR)
-sampleconfigdict = {
- 'sessi... | tests: cli.py remove an unused config fixture. | py |
diff --git a/sortinghat/_version.py b/sortinghat/_version.py
index <HASH>..<HASH> 100644
--- a/sortinghat/_version.py
+++ b/sortinghat/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.4.2"
+__version__ = "0.4.3" | Update version number to <I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.