diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/stockcrawler/tests/test_loaders.py b/stockcrawler/tests/test_loaders.py
index <HASH>..<HASH> 100644
--- a/stockcrawler/tests/test_loaders.py
+++ b/stockcrawler/tests/test_loaders.py
@@ -575,3 +575,21 @@ class TestReportItemLoader(unittest.TestCase):
'equity': 13309000000.0,
'cash'... | Test FB <I> annual report. | py |
diff --git a/holoviews/__init__.py b/holoviews/__init__.py
index <HASH>..<HASH> 100644
--- a/holoviews/__init__.py
+++ b/holoviews/__init__.py
@@ -9,6 +9,7 @@ __version__ = param.Version(release=(0,8,1), fpath=__file__,
from .core.dimension import Dimension # pyflakes:ignore (API import)
from .core.bounding... | Added Options and Store to top level namespace | py |
diff --git a/blockstack_cli_0.14.1/blockstack_client/storage.py b/blockstack_cli_0.14.1/blockstack_client/storage.py
index <HASH>..<HASH> 100644
--- a/blockstack_cli_0.14.1/blockstack_client/storage.py
+++ b/blockstack_cli_0.14.1/blockstack_client/storage.py
@@ -260,7 +260,8 @@ def get_immutable_data( data_hash, data_u... | elaborate on how hints are used in get_immutable_data() | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -2459,13 +2459,21 @@ def is_profile_configured(opts, provider, profile_name):
.. versionadded:: 2015.8.0
'''
# Standard dict keys required by all drivers.
- required_keys = ['image', '... | image argument not mandatory for vmware cloud driver. Fixes #<I> | 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
@@ -24,6 +24,7 @@
from __future__ import print_function
+import django
import os
import sys
@@ -37,6 +38,8 @@ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'openstack_dashboard.s... | Fix docs translation import errors When building docs, there are a ton of errors in this format: AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time. Starting in Django <I>, standalone scripts, su... | py |
diff --git a/metrique/utils.py b/metrique/utils.py
index <HASH>..<HASH> 100644
--- a/metrique/utils.py
+++ b/metrique/utils.py
@@ -31,6 +31,7 @@ import cPickle
import cProfile as profiler
import csv
from datetime import datetime, date
+
try:
from dateutil.parser import parse as dt_parse
HAS_DATEUTIL = Tru... | handle datetime.date types as datetime.datetime type | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -68,7 +68,11 @@ def process_pth(base, file_name):
def add_site_dir(dir_name):
- # Add dir to sys.path (if not already there).
+ # Don't so anything if the folder doesn't exist.
+ if not os.path.ex... | Don't scan directories which dont exist | py |
diff --git a/src/toil/common.py b/src/toil/common.py
index <HASH>..<HASH> 100644
--- a/src/toil/common.py
+++ b/src/toil/common.py
@@ -633,7 +633,7 @@ class Toil(object):
elif name == 'azure':
from toil.jobStores.azureJobStore import AzureJobStore
account, namePrefix = rest.split(':',... | Update Azure job store constructor invocation (resolves #<I>) | py |
diff --git a/source/rafcon/gui/helpers/state_machine.py b/source/rafcon/gui/helpers/state_machine.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/helpers/state_machine.py
+++ b/source/rafcon/gui/helpers/state_machine.py
@@ -127,9 +127,11 @@ def open_library_state_separately():
state_models = state_machine_m... | fix(open library state separately): add missing return after warning and info messages | py |
diff --git a/ibis/client.py b/ibis/client.py
index <HASH>..<HASH> 100644
--- a/ibis/client.py
+++ b/ibis/client.py
@@ -126,6 +126,7 @@ class SQLClient(Client):
if limit is not None:
for query in reversed(ast.queries):
if (isinstance(query, ddl.Select) and
+ ... | BUG: don't add limit to scalar exprs | py |
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -1183,6 +1183,18 @@ def test_groupby_dtype_inference_empty():
tm.assert_frame_equal(result, expected, by_bloc... | TST verify groupby doesn't alter unit<I>s to floats #<I> (#<I>) | py |
diff --git a/imgaug/augmenters/blend.py b/imgaug/augmenters/blend.py
index <HASH>..<HASH> 100644
--- a/imgaug/augmenters/blend.py
+++ b/imgaug/augmenters/blend.py
@@ -688,8 +688,13 @@ class AlphaElementwise(Alpha):
for _ in sm.xrange(nb_channels)]
mask = np.stack(mask, axis=-1).astype(np.f... | Fix AlphaElementwise sampling wrong for per_channel=False | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,19 +34,15 @@ setup(
keywords='assembling models from text',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
install_requires=[
- 'flask',
'tqdm',
'networkx... | removed flask and requests from setup.py install_requires | py |
diff --git a/visidata/vd.py b/visidata/vd.py
index <HASH>..<HASH> 100755
--- a/visidata/vd.py
+++ b/visidata/vd.py
@@ -1448,6 +1448,7 @@ def clipstr(s, dispw):
if w > dispw-len(options.disp_truncator)+1:
ret = ret[:-2] + options.disp_truncator # replace final char with ellipsis
w += ... | Improve performance with truncated long cells. | py |
diff --git a/tests/test_app/tests/test_dump.py b/tests/test_app/tests/test_dump.py
index <HASH>..<HASH> 100644
--- a/tests/test_app/tests/test_dump.py
+++ b/tests/test_app/tests/test_dump.py
@@ -32,10 +32,7 @@ class BasicDumpTestCase(TestCase):
p.save()
def normalize(self, out):
- data = json.loa... | Remove workaround for Django < <I> | py |
diff --git a/javaobj.py b/javaobj.py
index <HASH>..<HASH> 100644
--- a/javaobj.py
+++ b/javaobj.py
@@ -341,15 +341,27 @@ class JavaArray(list, JavaObject):
self.classdesc = classdesc
-class JavaByteArray(bytearray, JavaObject):
+class JavaByteArray(JavaObject):
"""
Represents the special case of ... | Avoid using bytearray for JavaByteArray Bytes in Java are between -<I> and <I> whereas Python bytearray excepts values between 0 and <I>. See #<I> for references. | py |
diff --git a/pybar/scans/scan_ext_trigger.py b/pybar/scans/scan_ext_trigger.py
index <HASH>..<HASH> 100644
--- a/pybar/scans/scan_ext_trigger.py
+++ b/pybar/scans/scan_ext_trigger.py
@@ -20,7 +20,7 @@ class ExtTriggerScan(Fei4RunBase):
_default_run_conf = {
"trig_count": 0, # FE-I4 trigger count, number... | MAINT: decrease trigger delay for TDC trigger input | py |
diff --git a/sos/plugins/logs.py b/sos/plugins/logs.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/logs.py
+++ b/sos/plugins/logs.py
@@ -35,6 +35,8 @@ class Logs(Plugin):
self.add_copy_spec("/var/log/cloud-init*", sizelimit=self.limit)
self.add_journal(boot="this")
self.add_journal(boot="th... | [logs] Add gathering of systemd journal from previous boot This is very useful to debug RHEL7 shutdown issues. To have the logs be collected, it expects the customer to have Persistent Storage for the journal turned on. Resolves: #<I> | py |
diff --git a/blockstack_cli_0.14.1/blockstore/storage.py b/blockstack_cli_0.14.1/blockstore/storage.py
index <HASH>..<HASH> 100644
--- a/blockstack_cli_0.14.1/blockstore/storage.py
+++ b/blockstack_cli_0.14.1/blockstore/storage.py
@@ -319,6 +319,9 @@ def get_immutable_data( data_key ):
log.exception( e )
... | Interpret returning None from storage as an error. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ history = open('HISTORY.rst').read().replace('.. :changelog:', '')
setup(
name='clarify_python',
- version='1.0.1',
+ version='1.0.0',
description='The Clarify Python 3 Helper Library wraps th... | Changed version number to <I> | py |
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/disaggregation.py
+++ b/openquake/calculators/disaggregation.py
@@ -338,8 +338,9 @@ class DisaggregationCalculator(base.HazardCalculator):
allargs = []
... | Fixed maxweight [skip hazardlib] | py |
diff --git a/src/kba/pipeline/_taggers.py b/src/kba/pipeline/_taggers.py
index <HASH>..<HASH> 100644
--- a/src/kba/pipeline/_taggers.py
+++ b/src/kba/pipeline/_taggers.py
@@ -220,6 +220,7 @@ the output path to create.
_child = subprocess.Popen(cmd, stderr=subprocess.PIPE, shell=True)
except OSErro... | Allowing config to have a tagger exit gracefully when out of memory so condor stops running it. If condor restarts it, we lose the log and it is hard to go look at what caused the memory leak. | py |
diff --git a/eventsourcing/infrastructure/transcoding.py b/eventsourcing/infrastructure/transcoding.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/infrastructure/transcoding.py
+++ b/eventsourcing/infrastructure/transcoding.py
@@ -144,7 +144,7 @@ class SequencedItemMapper(AbstractSequencedItemMapper):
Recr... | Refined assertion, to report incorrect type on failure. | py |
diff --git a/snap7/logo.py b/snap7/logo.py
index <HASH>..<HASH> 100644
--- a/snap7/logo.py
+++ b/snap7/logo.py
@@ -256,7 +256,7 @@ class Logo(object):
:param tsap_logo: TSAP Logo Server (e.g. 20.00 = 0x2000)
"""
assert re.match(ipv4, ip_address), '%s is invalid ipv4' % ip_address
- res... | Compatibility issue with Python3 (#<I>) ip_address.encode() | py |
diff --git a/lib/svtplay_dl/service/viaplay.py b/lib/svtplay_dl/service/viaplay.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/viaplay.py
+++ b/lib/svtplay_dl/service/viaplay.py
@@ -76,10 +76,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
yield ServiceError("Excluding video")
r... | viaplay: we should get the subtitle after we set name fixes #<I> | py |
diff --git a/shop_stripe/modifiers.py b/shop_stripe/modifiers.py
index <HASH>..<HASH> 100644
--- a/shop_stripe/modifiers.py
+++ b/shop_stripe/modifiers.py
@@ -14,6 +14,9 @@ class StripePaymentModifier(PaymentModifier):
def get_choice(self):
return (self.identifier, _("Credit Card"))
+ def is_disabled... | use is_disabled for carts with total=0 | py |
diff --git a/xblock/core.py b/xblock/core.py
index <HASH>..<HASH> 100644
--- a/xblock/core.py
+++ b/xblock/core.py
@@ -127,7 +127,7 @@ class XBlock(Plugin):
:param field_data: Interface used by the XBlock fields to access their data
from wherever it is persisted
- :type field_data: :class... | Fix docstring pointer to FieldData | py |
diff --git a/plenum/common/version.py b/plenum/common/version.py
index <HASH>..<HASH> 100644
--- a/plenum/common/version.py
+++ b/plenum/common/version.py
@@ -134,7 +134,7 @@ class GenericVersion(VersionBase):
return version
-class PEP440BasedVersion(VersionBase):
+class PEP440BasedVersion(GenericVersion):... | makes PEP<I>BasedVersion a child of GenericVersion | py |
diff --git a/bayes_opt/bayesian_optimization.py b/bayes_opt/bayesian_optimization.py
index <HASH>..<HASH> 100644
--- a/bayes_opt/bayesian_optimization.py
+++ b/bayes_opt/bayesian_optimization.py
@@ -337,7 +337,7 @@ class BayesianOptimization(object):
:return: None
"""
- import pandas as pd
- ... | Added method points_to_csv that saves known data points to csv file | py |
diff --git a/tests/export/hazard_test.py b/tests/export/hazard_test.py
index <HASH>..<HASH> 100644
--- a/tests/export/hazard_test.py
+++ b/tests/export/hazard_test.py
@@ -270,7 +270,7 @@ class EventBasedExportTestCase(BaseExportTestCase):
# Check for the correct number of GMFs in the file:
t... | tests/export/hazard_test: Updated the expected number of GMFs. There are more now because we added one additional seismic source (characteristic multi-surface) to the model. Former-commit-id: <I>f8c9f<I>c<I>ddf<I>fddb<I>fb<I>aade3a<I>d0 | py |
diff --git a/talon/utils.py b/talon/utils.py
index <HASH>..<HASH> 100644
--- a/talon/utils.py
+++ b/talon/utils.py
@@ -47,8 +47,8 @@ def to_unicode(str_or_unicode, precise=False):
u'привет'
If `precise` flag is True, tries to guess the correct encoding first.
"""
- encoding = quick_detect_encoding... | Move encoding detection inside if condition. | py |
diff --git a/grip/command.py b/grip/command.py
index <HASH>..<HASH> 100644
--- a/grip/command.py
+++ b/grip/command.py
@@ -43,6 +43,7 @@ Options:
from __future__ import print_function
import sys
+import mimetypes
from docopt import docopt
from getpass import getpass
@@ -57,13 +58,15 @@ usage = '\n\n\n'.join(__d... | Fix SVG on Python <I> and below. | py |
diff --git a/tests/test_orbits.py b/tests/test_orbits.py
index <HASH>..<HASH> 100644
--- a/tests/test_orbits.py
+++ b/tests/test_orbits.py
@@ -531,3 +531,13 @@ def test_plotting():
o.plotvT(d1='z')
o.plotz(d1='vz')
return None
+
+def test_integrate_method_warning():
+ """ Test Orbits.integrate raises ... | Test that Orbits.integrate raises error when non-existing integration method is requested | py |
diff --git a/pywws/Localisation.py b/pywws/Localisation.py
index <HASH>..<HASH> 100644
--- a/pywws/Localisation.py
+++ b/pywws/Localisation.py
@@ -12,6 +12,7 @@ def GetTranslation(params):
langs = []
lang = params.get('config', 'language', lc)
if lang:
+ locale.setlocale(locale.LC_ALL, lang)
... | Fix bug in localisation (see issue <I>). | py |
diff --git a/numina/array/display/ximshow.py b/numina/array/display/ximshow.py
index <HASH>..<HASH> 100644
--- a/numina/array/display/ximshow.py
+++ b/numina/array/display/ximshow.py
@@ -399,7 +399,7 @@ Toggle y axis scale (log/linear): l when mouse is over an axes
im_show = plt.imshow(image2d[(ns1 - 1):ns2, (nc1 ... | Replace origin='low' by origin='lower' in ximshow.py | py |
diff --git a/filer/models/imagemodels.py b/filer/models/imagemodels.py
index <HASH>..<HASH> 100644
--- a/filer/models/imagemodels.py
+++ b/filer/models/imagemodels.py
@@ -163,6 +163,11 @@ class Image(File):
return ''
def get_admin_url_path(self):
return urlresolvers.reverse('admin:filer_image... | added support for using Image model instances as easy-thumbnails source | py |
diff --git a/post_office/lockfile.py b/post_office/lockfile.py
index <HASH>..<HASH> 100644
--- a/post_office/lockfile.py
+++ b/post_office/lockfile.py
@@ -20,6 +20,7 @@
import os
import time
+import platform
class FileLocked(Exception):
@@ -122,7 +123,7 @@ class FileLock(object):
os.write(pid_file, st... | Added a check to see if platform is Windows (#<I>) | py |
diff --git a/scripts/importer/importer.py b/scripts/importer/importer.py
index <HASH>..<HASH> 100644
--- a/scripts/importer/importer.py
+++ b/scripts/importer/importer.py
@@ -120,10 +120,9 @@ def import_main(args=None, **kwargs):
mod = importlib.import_module('.' + mod_name, package='scripts')
# event... | MAINT: improve logging during main loop; remove 'return' statement (there for testing). | py |
diff --git a/sdcclient/_common.py b/sdcclient/_common.py
index <HASH>..<HASH> 100644
--- a/sdcclient/_common.py
+++ b/sdcclient/_common.py
@@ -11,7 +11,7 @@ class SysdigHTTPAdapter(HTTPAdapter):
retry_strategy = Retry(
total=3,
status_forcelist=[403, 404, 429, 500, 502, 503, 504],
- ... | fix: Solve deprecation warning on retry policy (#<I>) | py |
diff --git a/sharepoint/lists/__init__.py b/sharepoint/lists/__init__.py
index <HASH>..<HASH> 100644
--- a/sharepoint/lists/__init__.py
+++ b/sharepoint/lists/__init__.py
@@ -254,6 +254,7 @@ class SharePointList(object):
raise TypeError("row must be a dict or an instance of SharePointList.Row, not SharePoi... | Fix bug when trying to append to a list we haven't yet retreived. | py |
diff --git a/src/sentry_slack/plugin.py b/src/sentry_slack/plugin.py
index <HASH>..<HASH> 100644
--- a/src/sentry_slack/plugin.py
+++ b/src/sentry_slack/plugin.py
@@ -81,7 +81,7 @@ class SlackPlugin(notify.NotificationPlugin):
'attachments': [{
'color': self.color_for_group(group),
... | Title should now be escaped (handled by Slack) | py |
diff --git a/future/tests/test_httplib.py b/future/tests/test_httplib.py
index <HASH>..<HASH> 100644
--- a/future/tests/test_httplib.py
+++ b/future/tests/test_httplib.py
@@ -151,7 +151,7 @@ class HeaderTests(TestCase):
conn = client.HTTPConnection('example.com')
conn.sock = FakeSocket(None)
... | Fold in cleanups to test_httplib from Py<I> | py |
diff --git a/pybundle/bundle.py b/pybundle/bundle.py
index <HASH>..<HASH> 100644
--- a/pybundle/bundle.py
+++ b/pybundle/bundle.py
@@ -4,13 +4,20 @@ import sys
from inspect import stack
+def frozen_bundle():
+ if getattr(sys, 'frozen', False):
+ # Running in a bundle
+ return True
+ else:
+ ... | Added frozen_bundle function Returns True if running in a 'frozen' environment (executable) and return False if we are in a development environment | py |
diff --git a/urlutils.py b/urlutils.py
index <HASH>..<HASH> 100644
--- a/urlutils.py
+++ b/urlutils.py
@@ -117,7 +117,12 @@ def redirect_to_url(req, url, redirection_type=None):
req.err_headers_out["Pragma"] = "no-cache"
if req.headers_out.has_key("Set-Cookie"):
- req.err_headers_out["Set-Cookie"... | Using table.add to set a cookie in order to be able to set multiple cookies. | py |
diff --git a/spyder_kernels/comms/frontendcomm.py b/spyder_kernels/comms/frontendcomm.py
index <HASH>..<HASH> 100644
--- a/spyder_kernels/comms/frontendcomm.py
+++ b/spyder_kernels/comms/frontendcomm.py
@@ -126,7 +126,8 @@ class FrontendComm(CommBase):
"""Wait until the frontend replies to a request."""
... | Avoid waiting on comm thread from comm thread | py |
diff --git a/bin/receive_text.py b/bin/receive_text.py
index <HASH>..<HASH> 100644
--- a/bin/receive_text.py
+++ b/bin/receive_text.py
@@ -1,13 +1,15 @@
from __future__ import print_function
-import sys, json
+import time, sys, json
from wormhole.transcribe import Receiver
APPID = "lothar.com/wormhole/text-xfer"
... | bin/receive_text: print elapsed time | py |
diff --git a/couchbase/tests/cases/connection_t.py b/couchbase/tests/cases/connection_t.py
index <HASH>..<HASH> 100644
--- a/couchbase/tests/cases/connection_t.py
+++ b/couchbase/tests/cases/connection_t.py
@@ -48,7 +48,8 @@ class ConnectionTest(CouchbaseTestCase):
def test_bucket_not_found(self):
conna... | connection_t: a missing bucket results in either BucketNotFound... or AuthError Change-Id: I9ba<I>e8e5da<I>db0c<I>d<I>b<I>eb9ac<I>a6a Reviewed-on: <URL> | py |
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -692,9 +692,6 @@ class Plugin(object):
if result['status'] == 126 or result['status'] == 127:
return None
- if result['status'] == 1:
-... | [Pugin] revert <I>eb4ab (do not return output from failed commands) Revert this commit: individual plugins must test the command status (if they care): plugins that attempt to access command output without testing command status are buggy and need to be fixed. Resolves: #<I>. | py |
diff --git a/qualysapi/api_actions.py b/qualysapi/api_actions.py
index <HASH>..<HASH> 100644
--- a/qualysapi/api_actions.py
+++ b/qualysapi/api_actions.py
@@ -319,10 +319,10 @@ class QGActions:
if repData.find("TEXT") == "New report launched":
report_id = repData.find("ITEM_LIST").find("ITEM").f... | Add more flexibility to the launchReport() function Currently only "New report launched" response is being processed, but responses like "No scannable assets match selected tag(s)." (and others) should not return None, there may be several different answers, depending on which the further operation of the program may ... | py |
diff --git a/src/nupic/algorithms/anomaly_likelihood.py b/src/nupic/algorithms/anomaly_likelihood.py
index <HASH>..<HASH> 100644
--- a/src/nupic/algorithms/anomaly_likelihood.py
+++ b/src/nupic/algorithms/anomaly_likelihood.py
@@ -731,9 +731,11 @@ def nullDistribution(verbosity=0):
def normalProbability(x, distribut... | Update comment to reflect the new implementation of the normal probability calculation in the anomaly likelihood. fixes #<I> and replaces #<I> | py |
diff --git a/stagpy/rprof.py b/stagpy/rprof.py
index <HASH>..<HASH> 100644
--- a/stagpy/rprof.py
+++ b/stagpy/rprof.py
@@ -12,7 +12,8 @@ def _plot_rprof_list(sdat, lovs, rprofs, metas, stepstr, rads=None):
if rads is None:
rads = {}
for vfig in lovs:
- fig, axes = plt.subplots(ncols=len(vfig),... | Adapt size of rprof figures to number of plots | py |
diff --git a/test/amqp-integration-test.py b/test/amqp-integration-test.py
index <HASH>..<HASH> 100644
--- a/test/amqp-integration-test.py
+++ b/test/amqp-integration-test.py
@@ -64,15 +64,16 @@ def run_node_test():
return 0
-
def run_client_tests():
- assert "LETSENCRYPT_PATH" in os.environ
- root = os... | Pass SERVER to letsencrypt integration test, fix review comments. | py |
diff --git a/bids/modeling/statsmodels.py b/bids/modeling/statsmodels.py
index <HASH>..<HASH> 100644
--- a/bids/modeling/statsmodels.py
+++ b/bids/modeling/statsmodels.py
@@ -125,7 +125,7 @@ class BIDSStatsModelsGraph:
for edge in edges:
src_node, dst_node = nodes[edge['source']], nodes[edge['de... | FIX: Filters are objects, not arrays | py |
diff --git a/lands/plates.py b/lands/plates.py
index <HASH>..<HASH> 100644
--- a/lands/plates.py
+++ b/lands/plates.py
@@ -12,10 +12,6 @@ import platec
def generate_plates_simulation(seed, width, height, sea_level=0.65, erosion_period=60,
folding_ratio=0.02, aggr_overlap_abs=1000000, ag... | removing outdated comment Former-commit-id: <I>b8aab<I>dddfa<I>ca<I>ff<I>eff1c<I> | py |
diff --git a/pecan/tests/test_conf.py b/pecan/tests/test_conf.py
index <HASH>..<HASH> 100644
--- a/pecan/tests/test_conf.py
+++ b/pecan/tests/test_conf.py
@@ -110,26 +110,22 @@ class TestConf(TestCase):
from pecan import configuration
path = ('doesnotexist.py',)
configuration.Config({})
- ... | trying to fix RuntimeError tests | py |
diff --git a/scipydirect/__init__.py b/scipydirect/__init__.py
index <HASH>..<HASH> 100644
--- a/scipydirect/__init__.py
+++ b/scipydirect/__init__.py
@@ -112,7 +112,6 @@ def minimize(func, bounds=None, nvar=None, args=(), disp=False,
fglper=0.01,
volper=-1.0,
sigmaper=-1.0,
... | no log files and output only for disp=True | py |
diff --git a/test/test_validate.py b/test/test_validate.py
index <HASH>..<HASH> 100644
--- a/test/test_validate.py
+++ b/test/test_validate.py
@@ -24,6 +24,17 @@ def test_validate_tpm_nonbinary_nodes():
assert validate.tpm(tpm)
+def test_validate_tpm_conditional_independence():
+ tpm = np.array([
+ ... | Test that validate.tpm checks conditional independence | py |
diff --git a/ores/wsgi/routes.py b/ores/wsgi/routes.py
index <HASH>..<HASH> 100644
--- a/ores/wsgi/routes.py
+++ b/ores/wsgi/routes.py
@@ -1,7 +1,8 @@
import traceback
from collections import defaultdict
-from flask import jsonify, render_template, request
+from flask import render_template, request
+from flask.ext... | Add support for jsonp to the scorer | py |
diff --git a/sos/plugins/block.py b/sos/plugins/block.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/block.py
+++ b/sos/plugins/block.py
@@ -22,14 +22,17 @@ class Block(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
plugin_name = 'block'
def setup(self):
- # legacy location for non-/run distrib... | Add partition data to block plug-in and tidy blkid code Collect /proc/partitions in the block plug-in where it belongs (not in the cluster or file system plug-ins where it has hidden in the past!). | py |
diff --git a/test/test_host.py b/test/test_host.py
index <HASH>..<HASH> 100644
--- a/test/test_host.py
+++ b/test/test_host.py
@@ -61,7 +61,7 @@ class TestExtensionManager(TestCase):
assert extensions[1] in extensions
assert extensions[2] in extensions
- assert extensions[0] in iter(manager)
+ assert extens... | Huh, apparently iter was not a thing in py<I>. | py |
diff --git a/holoviews/core/operation.py b/holoviews/core/operation.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/operation.py
+++ b/holoviews/core/operation.py
@@ -23,19 +23,16 @@ class Operation(param.ParameterizedFunction):
Operation. By default this should match the operation name.""")
- def ge... | Operation get_views method is now called search_overlay | py |
diff --git a/cloudaux/aws/sts.py b/cloudaux/aws/sts.py
index <HASH>..<HASH> 100644
--- a/cloudaux/aws/sts.py
+++ b/cloudaux/aws/sts.py
@@ -89,6 +89,11 @@ def boto3_cached_conn(service, service_type='client', future_expiration_minutes=
role = None
if assume_role:
sts = boto3.client('sts')
+
+ #... | Add a thrown exception for missing arguments (#<I>) This commit throws a ValueError if sts.assume_role doesn't have the required parameters to form a valid ARN. | py |
diff --git a/GCR.py b/GCR.py
index <HASH>..<HASH> 100644
--- a/GCR.py
+++ b/GCR.py
@@ -2,7 +2,7 @@
Contains the base class for a generic catalog (BaseGenericCatalog).
"""
__all__ = ['BaseGenericCatalog', 'dict_to_numpy_array', 'GCRQuery']
-__version__ = '0.6.3'
+__version__ = '0.6.4'
__author__ = 'Yao-Yuan Mao'
... | add option to allow string-like native filter | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@ setup(
'flake8-mutable', 'flake8-pep3101', 'flake8-print', 'flake8-quotes',
'pep8-naming',
'vcrpy~=1.5,!=1.7.0,!=1.7.1,!=1.7.2,!=1.7.3', 'xarray>=0.6'],
- ... | [MNT] Do not allow sphinx <I> | py |
diff --git a/openquake/hazardlib/calc/hazard_curve.py b/openquake/hazardlib/calc/hazard_curve.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/calc/hazard_curve.py
+++ b/openquake/hazardlib/calc/hazard_curve.py
@@ -152,6 +152,7 @@ def classical(group, src_filter, gsims, param, monitor=Monitor()):
p... | Now working - Still need to fix the tests Former-commit-id: <I>ae<I>cb5a<I>eb3c9eb<I>d<I>f<I>f<I>a1 | py |
diff --git a/tests/jenkins.py b/tests/jenkins.py
index <HASH>..<HASH> 100644
--- a/tests/jenkins.py
+++ b/tests/jenkins.py
@@ -71,10 +71,11 @@ def run(platform, provider, commit, clean):
stdout, stderr = proc.communicate()
if stderr:
print(stderr)
- print(stdout)
+ if stdout:
+ print(std... | If no output, it's also a failure. | py |
diff --git a/qiskit/transpiler/passes/routing/stochastic_swap.py b/qiskit/transpiler/passes/routing/stochastic_swap.py
index <HASH>..<HASH> 100644
--- a/qiskit/transpiler/passes/routing/stochastic_swap.py
+++ b/qiskit/transpiler/passes/routing/stochastic_swap.py
@@ -85,7 +85,7 @@ class StochasticSwap(TransformationPass... | wrong error in stochastic_swap.py (#<I>) | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -54,8 +54,6 @@ class isValidBadInput(unittest.TestCase):
self.assertTrue(valid_edtf.is_valid("1984-11-2u/1999-01-01"))
self.assertTrue(valid_edtf.is_valid("1984-11-12/1984-11-uu"))
... | Only level 0 specifies negative dates and that doesn't allow unspecified chars | py |
diff --git a/expfactory/views/main.py b/expfactory/views/main.py
index <HASH>..<HASH> 100644
--- a/expfactory/views/main.py
+++ b/expfactory/views/main.py
@@ -50,7 +50,7 @@ from expfactory.utils import (
)
-from expfactory.database import generate_subid
+from expfactory.database import save_data
from expfactory.s... | modified: expfactory/views/main.py | py |
diff --git a/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py b/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py
index <HASH>..<HASH> 100644
--- a/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py
+++ b/gremlin-python/src/main/jython/gremlin_python/... | forgot to push this in my last push. | py |
diff --git a/tests/test_bukuDb.py b/tests/test_bukuDb.py
index <HASH>..<HASH> 100644
--- a/tests/test_bukuDb.py
+++ b/tests/test_bukuDb.py
@@ -1060,6 +1060,8 @@ def test_update_rec_update_all_bookmark(caplog, read_in_retval):
assert caplog.records[0].getMessage() == \
"update_rec query: " ... | chg: test: test caplog for other inputs | py |
diff --git a/pybar/online_monitor.py b/pybar/online_monitor.py
index <HASH>..<HASH> 100644
--- a/pybar/online_monitor.py
+++ b/pybar/online_monitor.py
@@ -141,7 +141,7 @@ class OnlineMonitorApplication(QtGui.QMainWindow):
super(OnlineMonitorApplication, self).closeEvent(event)
# wait for thread
... | ENH: longer wait needed to close QThread | py |
diff --git a/container/utils/__init__.py b/container/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/container/utils/__init__.py
+++ b/container/utils/__init__.py
@@ -102,7 +102,7 @@ def metadata_to_image_config(metadata):
def ports_to_exposed_ports(list_of_ports):
to_return = {}
- for port_s... | Apply text_type to ports (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ setup(name='SPADE',
author_email='jpalanca@gmail.com',
url='http://spade2.googlecode.com',
package_dir={'spade': 'spade'},
- packages=['spade','spade.mtp', 'xmpp', 'xmppd', 'xmppd.modules', 'xm... | fixed setup.py from mtp to mtps | py |
diff --git a/Lib/fontbakery/reporters/ghmarkdown.py b/Lib/fontbakery/reporters/ghmarkdown.py
index <HASH>..<HASH> 100644
--- a/Lib/fontbakery/reporters/ghmarkdown.py
+++ b/Lib/fontbakery/reporters/ghmarkdown.py
@@ -42,15 +42,9 @@ class GHMarkdownReporter(SerializeReporter):
if self.succinct or not "rationale" ... | We don't need a markdown parser, we're already markdown | py |
diff --git a/tests/test_sources.py b/tests/test_sources.py
index <HASH>..<HASH> 100644
--- a/tests/test_sources.py
+++ b/tests/test_sources.py
@@ -8,7 +8,7 @@ import logging
from pandasdmx.api import Request
from pandasdmx.exceptions import HTTPError, ParseError
-from pandasdmx.source import endpoints, sources
+fro... | Correctly skip structure tests for JSON sources | py |
diff --git a/Lib/pyhsm/cmd.py b/Lib/pyhsm/cmd.py
index <HASH>..<HASH> 100644
--- a/Lib/pyhsm/cmd.py
+++ b/Lib/pyhsm/cmd.py
@@ -36,7 +36,10 @@ class YHSM_Cmd():
# uint8_t cmd; // YSM_xxx command
# uint8_t payload[YSM_MAX_PKT_SIZE]; // Payload
# } YSM_PKT;
- c... | YHSM_NULL command should NOT have byte count prepended. | py |
diff --git a/chess/gaviota.py b/chess/gaviota.py
index <HASH>..<HASH> 100644
--- a/chess/gaviota.py
+++ b/chess/gaviota.py
@@ -38,10 +38,6 @@ LOGGER = logging.getLogger(__name__)
NOSQUARE = 64
NOINDEX = -1
-WHITES = 1 << 6
-BLACKS = 1 << 7
-
-NOPIECE = 0
PAWN = 1
KNIGHT = 2
BISHOP = 3
@@ -49,20 +45,6 @@ ROOK = 4... | Remove unused constants from chess.gaviota | py |
diff --git a/qpth/solvers/pdipm/batch.py b/qpth/solvers/pdipm/batch.py
index <HASH>..<HASH> 100644
--- a/qpth/solvers/pdipm/batch.py
+++ b/qpth/solvers/pdipm/batch.py
@@ -27,7 +27,7 @@ to get a version that disables pivoting on the GPU.
INACC_ERR = """
--------
-qpth warning: Returning an inaccurate and potentially... | fix typo: solutino -> solution | py |
diff --git a/src/scout_apm/core/samplers/__init__.py b/src/scout_apm/core/samplers/__init__.py
index <HASH>..<HASH> 100644
--- a/src/scout_apm/core/samplers/__init__.py
+++ b/src/scout_apm/core/samplers/__init__.py
@@ -31,7 +31,8 @@ class Samplers():
try:
if cls._thread_lock.acquire(True) is True:... | Disable CPU Sampler Due to issue #9 | py |
diff --git a/beekeeper.py b/beekeeper.py
index <HASH>..<HASH> 100644
--- a/beekeeper.py
+++ b/beekeeper.py
@@ -1,7 +1,7 @@
import urllib.parse
import urllib.request
import json
-from parsers import JSONParser, RawParser
+import parsers
from functools import partial
import copy
from variable_types import header, u... | Switching to a more realistic import/usage structure for parsers | py |
diff --git a/src/urh/awre/components/Address.py b/src/urh/awre/components/Address.py
index <HASH>..<HASH> 100644
--- a/src/urh/awre/components/Address.py
+++ b/src/urh/awre/components/Address.py
@@ -59,6 +59,7 @@ class Address(Component):
# as it starts with a leading 1 in all messages.
... | add comment why address for bob is so weird | py |
diff --git a/cumulusci/cli/cli.py b/cumulusci/cli/cli.py
index <HASH>..<HASH> 100644
--- a/cumulusci/cli/cli.py
+++ b/cumulusci/cli/cli.py
@@ -317,8 +317,9 @@ cli.add_command(service)
@click.command(name='init',
help="Initialize a new project for use with the cumulusci toolbelt",
)
+@cl... | Add --extend option to cci project init to easily configure extensions of other CumulusCI Github repositories | py |
diff --git a/examples/terminal.py b/examples/terminal.py
index <HASH>..<HASH> 100755
--- a/examples/terminal.py
+++ b/examples/terminal.py
@@ -46,7 +46,7 @@ def main():
term.println("Progress bar")
term.println("------------")
- for mill in range(0, 10000, 31):
+ for mi... | Make progress bar to complete to <I>% - fixes #<I> | py |
diff --git a/matgendb/creator.py b/matgendb/creator.py
index <HASH>..<HASH> 100644
--- a/matgendb/creator.py
+++ b/matgendb/creator.py
@@ -130,7 +130,7 @@ class VaspToDbTaskDrone(AbstractDrone):
self.update_duplicates = update_duplicates
self.mapi_key = mapi_key
if not simulate_mode:
- ... | Enable journalling in VasptoTaskDrone. | py |
diff --git a/deployment/update/update.py b/deployment/update/update.py
index <HASH>..<HASH> 100644
--- a/deployment/update/update.py
+++ b/deployment/update/update.py
@@ -35,6 +35,11 @@ def pre_update(ctx, ref=settings.UPDATE_REF):
with ctx.lcd(th_service_src):
ctx.local('git fetch --quiet origin %s' % re... | Bug <I> - Fail early if stage/prod grunt build forgotten This prevents <I>s on the UI if the output from `grunt build` hasn't been committed to the repo prior to deploying to stage/prod. | py |
diff --git a/O365/attachment.py b/O365/attachment.py
index <HASH>..<HASH> 100644
--- a/O365/attachment.py
+++ b/O365/attachment.py
@@ -159,6 +159,6 @@ class Attachment( object ):
log.error('tried to give me an attachment as a base64 and it is not.')
raise
self.json['ContentBytes'] = val
- return true
+ ret... | Update attachment.py Fixed capitalization error | py |
diff --git a/gruvi/compat.py b/gruvi/compat.py
index <HASH>..<HASH> 100644
--- a/gruvi/compat.py
+++ b/gruvi/compat.py
@@ -22,7 +22,7 @@ PY3 = sys.version_info[0] == 3
if PY26:
memoryview = buffer # read-only but close enough for us
- bytes_types = (bytes, bytearray, buffer) # flake8: noqa
+ bytes_type... | No need for a global noqa on compat.py | py |
diff --git a/rapport/cli.py b/rapport/cli.py
index <HASH>..<HASH> 100644
--- a/rapport/cli.py
+++ b/rapport/cli.py
@@ -49,6 +49,7 @@ class CLI(object):
self.timeframe = rapport.timeframe.init_from_config()
def create(self):
+ results = {}
with futures.ThreadPoolExecutor(max_workers=4) as... | Sort output by plugin config order Avoids random shuffling during consecutive runs and seems more obvious | py |
diff --git a/law/target/remote.py b/law/target/remote.py
index <HASH>..<HASH> 100644
--- a/law/target/remote.py
+++ b/law/target/remote.py
@@ -547,7 +547,7 @@ class RemoteFileSystem(FileSystem):
self.validate_copy = validate_copy
# set the cache
- if cache_config:
+ if cache_config and... | Allow to disable remote cache completely via config. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+
import os
from codecs import open
from setuptools import setup
@@ -36,11 +37,8 @@ setup(
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent'... | Updates classifiers in setup.py | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -90,9 +90,3 @@ def session(request, server):
assert TEST_SESSION_NAME != "tmuxp"
return session
-
-
-@pytest.fixture()
-def tmpdir(tmpdir_factory):
- fn = tmpdir_factory.mktem... | tests: Remove tmpdir fixture (unused) | py |
diff --git a/openquake/calculators/tests/disagg_test.py b/openquake/calculators/tests/disagg_test.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/tests/disagg_test.py
+++ b/openquake/calculators/tests/disagg_test.py
@@ -130,12 +130,18 @@ class DisaggregationTestCase(CalculatorTestCase):
... | [skip CI] Improved test | py |
diff --git a/spyder/plugins/projects/plugin.py b/spyder/plugins/projects/plugin.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/projects/plugin.py
+++ b/spyder/plugins/projects/plugin.py
@@ -900,7 +900,13 @@ class Projects(SpyderDockablePlugin):
project_type_id = EmptyProject.ID
if osp.isfile(fpa... | Projects: Catch any error when reading workspace config file | py |
diff --git a/txmongo/connection.py b/txmongo/connection.py
index <HASH>..<HASH> 100755
--- a/txmongo/connection.py
+++ b/txmongo/connection.py
@@ -339,9 +339,9 @@ class ConnectionPool(object):
###
class MongoConnection(ConnectionPool):
- def __init__(self, host='127.0.0.1', port=27017, pool_size=1, ssl_context_f... | Remove ssl_context_factory on legacy MongoConnection | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup
-version = '1.0.9'
+version = '1.0.10'
setup(
name='grail', | Release <I> Changes: skip step verification has been disabled in export mode | py |
diff --git a/tests/providers/test_misc.py b/tests/providers/test_misc.py
index <HASH>..<HASH> 100644
--- a/tests/providers/test_misc.py
+++ b/tests/providers/test_misc.py
@@ -24,3 +24,15 @@ class TestMisc(unittest.TestCase):
uuid4 = self.factory.uuid4(cast_to=lambda x: x)
assert uuid4
assert ... | Add tests for uuid4 seedability (#<I>) | py |
diff --git a/colin/checks/best_practices.py b/colin/checks/best_practices.py
index <HASH>..<HASH> 100644
--- a/colin/checks/best_practices.py
+++ b/colin/checks/best_practices.py
@@ -72,21 +72,6 @@ class HelpFileOrReadmeCheck(FileSystemCheck):
all_must_be_present=False)
-class HelpFileCheck(F... | Remove help_file_required check (we can overwrite the help_file_or_readme) | py |
diff --git a/auditok/io.py b/auditok/io.py
index <HASH>..<HASH> 100644
--- a/auditok/io.py
+++ b/auditok/io.py
@@ -504,7 +504,7 @@ class RawAudioSource(_FileAudioSource, Rewindable):
def open(self):
if self._audio_stream is None:
- self._audio_stream = open(self._file)
+ self._audi... | Open raw and wave files with binary flags | py |
diff --git a/tests/support/case.py b/tests/support/case.py
index <HASH>..<HASH> 100644
--- a/tests/support/case.py
+++ b/tests/support/case.py
@@ -149,17 +149,19 @@ class ShellTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
arg_str,
with_retcode=False,
catch_std... | Remove async keyword, moving it into the kwargs. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.