diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/multiqc/modules/fastqc/fastqc.py b/multiqc/modules/fastqc/fastqc.py
index <HASH>..<HASH> 100755
--- a/multiqc/modules/fastqc/fastqc.py
+++ b/multiqc/modules/fastqc/fastqc.py
@@ -862,6 +862,7 @@ class MultiqcModule(BaseMultiqcModule):
data[s_name]["top_overrepresented"] = 0
... | FastQC Overrepresented sequences - delete sample key if section not found. Also clean up minor HTML anchor typo. | py |
diff --git a/holoviews/interface/seaborn.py b/holoviews/interface/seaborn.py
index <HASH>..<HASH> 100644
--- a/holoviews/interface/seaborn.py
+++ b/holoviews/interface/seaborn.py
@@ -48,15 +48,6 @@ class TimeSeries(Element2D):
super(TimeSeries, self).__init__(data, **params)
- def __getitem__(self, slc)... | Removed __getitem__ from seaborn Elements | py |
diff --git a/test/test_mapper.py b/test/test_mapper.py
index <HASH>..<HASH> 100644
--- a/test/test_mapper.py
+++ b/test/test_mapper.py
@@ -47,6 +47,7 @@ class TestLinker():
assert res == links
+
class TestCover():
def test_cube_count(self):
data = np.arange(30).reshape(10,3)
@@ -132,7 +133,9... | test shows that projections in fit_transform works | py |
diff --git a/src/ossos-pipeline/ossos/gui/context.py b/src/ossos-pipeline/ossos/gui/context.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/ossos/gui/context.py
+++ b/src/ossos-pipeline/ossos/gui/context.py
@@ -66,7 +66,7 @@ class LocalDirectoryWorkingContext(WorkingContext):
return os.path.exists(self... | Correct previous mistake where the lock file was being opened in read only mode. | py |
diff --git a/tests/test_modules/test_pva/test_pvaservercomms.py b/tests/test_modules/test_pva/test_pvaservercomms.py
index <HASH>..<HASH> 100644
--- a/tests/test_modules/test_pva/test_pvaservercomms.py
+++ b/tests/test_modules/test_pva/test_pvaservercomms.py
@@ -1,4 +1,5 @@
import unittest
+from mock import MagicMock
... | pvaservercomms: add test for makeChannel | py |
diff --git a/harpy/entry.py b/harpy/entry.py
index <HASH>..<HASH> 100644
--- a/harpy/entry.py
+++ b/harpy/entry.py
@@ -17,7 +17,10 @@ class Entry(object):
self.request = request.Request(self.raw["request"])
self.response = response.Response(self.raw["response"])
self.cache = cache.Cache(self.... | browsermob proxy doesnt always send timings for entries | py |
diff --git a/epyc/resultset.py b/epyc/resultset.py
index <HASH>..<HASH> 100644
--- a/epyc/resultset.py
+++ b/epyc/resultset.py
@@ -92,14 +92,7 @@ class ResultSet(object):
JOBID : Final[str] = 'epyc.resultset.pending-jobid' #: Column name for pending result job identifier.
# Typing
- TypeMapping : Dic... | Fixed type mapping, moved to late setup | py |
diff --git a/scripts/refdoc/conf.py b/scripts/refdoc/conf.py
index <HASH>..<HASH> 100644
--- a/scripts/refdoc/conf.py
+++ b/scripts/refdoc/conf.py
@@ -37,3 +37,6 @@ language = None
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_pa... | fix smartquotes issues (#<I>) | py |
diff --git a/tests/risk/upload_answer_key.py b/tests/risk/upload_answer_key.py
index <HASH>..<HASH> 100644
--- a/tests/risk/upload_answer_key.py
+++ b/tests/risk/upload_answer_key.py
@@ -53,5 +53,11 @@ def main():
print("Uploaded to key: {key}".format(key=key.key))
print("Download link: {download_link}".forma... | TST: Update answer key checksums on upload. Automate the updating of the answer key when a new key is uploaded to S3, so that keeping the latest value in sync is more likely. | py |
diff --git a/src/vivarium/framework/state_machine.py b/src/vivarium/framework/state_machine.py
index <HASH>..<HASH> 100644
--- a/src/vivarium/framework/state_machine.py
+++ b/src/vivarium/framework/state_machine.py
@@ -61,7 +61,7 @@ def _groupby_new_state(index, outputs, decisions):
"""
output_map = {o: i for... | get values from series, these are the real index | py |
diff --git a/restclients_core/util/mock.py b/restclients_core/util/mock.py
index <HASH>..<HASH> 100644
--- a/restclients_core/util/mock.py
+++ b/restclients_core/util/mock.py
@@ -143,3 +143,10 @@ def attempt_open_query_permutations(url, orig_file_path):
if (intended_filename == filenames[0]):
path... | Added exception for the case wherein there are multiple files with the same params | py |
diff --git a/pfr/utils.py b/pfr/utils.py
index <HASH>..<HASH> 100644
--- a/pfr/utils.py
+++ b/pfr/utils.py
@@ -336,7 +336,10 @@ def parsePlayDetails(details):
extraPointRE = re.compile(extraPointREstr, re.IGNORECASE)
# create 2pt conversion regex
- twoPointREstr = r'Two Point Attempt: (?P<twoPoint>.*)'
+... | added twoPointSuccess to 2 point conversions | py |
diff --git a/openquake/engine/tests/export/risk_test.py b/openquake/engine/tests/export/risk_test.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/tests/export/risk_test.py
+++ b/openquake/engine/tests/export/risk_test.py
@@ -304,6 +304,8 @@ class EventBasedExportTestCase(BaseExportTestCase):
loss_cur... | Added test for the loss_fraction exporter Former-commit-id: b<I>f3c1c<I>f3b<I>e<I>b<I>f<I>a<I>cb<I> | py |
diff --git a/pysat/tests/classes/cls_instrument_property.py b/pysat/tests/classes/cls_instrument_property.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/classes/cls_instrument_property.py
+++ b/pysat/tests/classes/cls_instrument_property.py
@@ -482,8 +482,6 @@ class InstPropertyTests(object):
... | BUG: remove init from tests | py |
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py
index <HASH>..<HASH> 100644
--- a/alot/widgets/thread.py
+++ b/alot/widgets/thread.py
@@ -7,7 +7,7 @@ Widgets specific to thread mode
import logging
import urwid
-from urwidtrees import Tree, SimpleTree, CollapsibleTree
+from urwidtrees import Tree, Simpl... | Use ArrowTree to indent mime tree | py |
diff --git a/datatableview/views/base.py b/datatableview/views/base.py
index <HASH>..<HASH> 100644
--- a/datatableview/views/base.py
+++ b/datatableview/views/base.py
@@ -45,8 +45,8 @@ class DatatableJSONResponseMixin(object):
draw = escape_uri_path(draw)
response_data = {
'draw': dra... | pagination fix, per datatables api recordsTotal is total before filtering, recordsFiltered is total after filtering | py |
diff --git a/app.py b/app.py
index <HASH>..<HASH> 100644
--- a/app.py
+++ b/app.py
@@ -1,7 +1,7 @@
from flask import Flask, render_template
from flask_restful import Api
-from handlers import SearchTermsHandler
+from handlers import SearchTermsHandler, WordGraphValidatorHandler
app = Flask(__name__)
api = Api(a... | Added a route for the words | py |
diff --git a/scripts/experiments/remote.py b/scripts/experiments/remote.py
index <HASH>..<HASH> 100755
--- a/scripts/experiments/remote.py
+++ b/scripts/experiments/remote.py
@@ -9,8 +9,8 @@ def remote_command(argv):
#prep_project_mvn("erma", "install", True)
prep_project_mvn("optimize", "install", True)
... | Switching back to pacaya | py |
diff --git a/logging/google/cloud/logging/handlers/handlers.py b/logging/google/cloud/logging/handlers/handlers.py
index <HASH>..<HASH> 100644
--- a/logging/google/cloud/logging/handlers/handlers.py
+++ b/logging/google/cloud/logging/handlers/handlers.py
@@ -39,7 +39,7 @@ class CloudLoggingHandler(logging.StreamHandler... | Logging: fix class reference in docstring (#<I>) | py |
diff --git a/src/sagemaker/estimator.py b/src/sagemaker/estimator.py
index <HASH>..<HASH> 100644
--- a/src/sagemaker/estimator.py
+++ b/src/sagemaker/estimator.py
@@ -349,6 +349,9 @@ class EstimatorBase(with_metaclass(ABCMeta, object)): # pylint: disable=too-man
self.profiler_config = profiler_config
... | fix: disable profiler by default for regions not support it (#<I>) | py |
diff --git a/hacking/core.py b/hacking/core.py
index <HASH>..<HASH> 100755
--- a/hacking/core.py
+++ b/hacking/core.py
@@ -788,10 +788,14 @@ class GitCheck(GlobalCheck):
def _get_commit_title(self):
# Check if we're inside a git checkout
- subp = subprocess.Popen(
- ['git', 'rev-parse'... | Don't crash on tests when git is not installed When running tests as part of packing the sdist'ed tarball, we don't have git installed anymore. Fixes LP Bug #<I> Change-Id: I3fc<I>a<I>d<I>aa8fb2b<I>c3a<I>a<I>ea9 | py |
diff --git a/tests/integration/shell/matcher.py b/tests/integration/shell/matcher.py
index <HASH>..<HASH> 100644
--- a/tests/integration/shell/matcher.py
+++ b/tests/integration/shell/matcher.py
@@ -1,4 +1,5 @@
# Import python libs
+import re
import sys
import yaml
@@ -118,7 +119,7 @@ class MatchTest(integration.S... | Fix test if there the host has multiple subnets. | py |
diff --git a/sonnet/python/modules/util.py b/sonnet/python/modules/util.py
index <HASH>..<HASH> 100644
--- a/sonnet/python/modules/util.py
+++ b/sonnet/python/modules/util.py
@@ -472,8 +472,7 @@ def _get_vars_to_collections(variables):
if isinstance(variables, dict):
variables = list(v for _, v in variable_map_... | Use graph.collections instead of graph._collections in util.py. PiperOrigin-RevId: <I> | py |
diff --git a/holoviews/plotting/mpl/util.py b/holoviews/plotting/mpl/util.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/util.py
+++ b/holoviews/plotting/mpl/util.py
@@ -67,7 +67,7 @@ def axis_overlap(ax1, ax2):
"""
b1, t1 = ax1.get_position().intervaly
b2, t2 = ax2.get_position().intervaly
... | Made axis_overlap non-inclusive | py |
diff --git a/bit/network/services.py b/bit/network/services.py
index <HASH>..<HASH> 100644
--- a/bit/network/services.py
+++ b/bit/network/services.py
@@ -2,6 +2,7 @@ import requests
import json
from decimal import Decimal, getcontext
+from bit.constants import BTC
from bit.network import currency_to_satoshi
from... | Uses units constants to convert btc to satoshis | py |
diff --git a/dallinger/command_line/docker.py b/dallinger/command_line/docker.py
index <HASH>..<HASH> 100644
--- a/dallinger/command_line/docker.py
+++ b/dallinger/command_line/docker.py
@@ -17,7 +17,6 @@ from dallinger.command_line.utils import log
from dallinger.command_line.utils import require_exp_directory
from ... | The docker dependency is an extra, not always installed: import it at function level | py |
diff --git a/pyvex/block.py b/pyvex/block.py
index <HASH>..<HASH> 100644
--- a/pyvex/block.py
+++ b/pyvex/block.py
@@ -357,12 +357,12 @@ class IRSB(VEXObject):
else:
c_irsb = pvc.vex_block_bytes(vex_arch, self.arch.vex_archinfo, c_bytes + bytes_offset, self._addr, num_bytes, 1)
- ... | Fixed bug where pyvex block.py would in some cases not be reset to None but instead remained `unpickleable`. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -31,6 +31,7 @@ setup(
},
install_requires=[
'OpenFisca-Core >= 3.0.0, < 4.0',
+ 'notebook',
],
packages=find_packages(exclude=['openfisca_senegal.tests*']),
test_suite='nose.col... | Add jupyter notebook dependency | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ setup(
packages=['phylotoast', 'phylotoast.test'],
include_package_data=True,
url='https://github.com/smdabdoub/phylotoast',
- #install_requires=requires,
+ install_requires=requires,
scripts=scrip... | Re-enables 'requires' section in setup. | py |
diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py
index <HASH>..<HASH> 100644
--- a/zipline/assets/assets.py
+++ b/zipline/assets/assets.py
@@ -556,10 +556,6 @@ class AssetFinder(object):
if isinstance(first_identifier, Integral):
return index
- # If symbols or Assets are p... | MAINT: AssetFinder should not write to db | py |
diff --git a/aiolifx/aiolifx.py b/aiolifx/aiolifx.py
index <HASH>..<HASH> 100644
--- a/aiolifx/aiolifx.py
+++ b/aiolifx/aiolifx.py
@@ -1080,8 +1080,15 @@ class Light(Device):
elif resp:
if self.color_zones is None:
self.color_zones = [None] * resp.count
- for i in range... | Attempting to solve issue #<I> by extending color_zone if it needs to be. NOT TESTED. Do not have compatible device to test. | py |
diff --git a/power/tests.py b/power/tests.py
index <HASH>..<HASH> 100644
--- a/power/tests.py
+++ b/power/tests.py
@@ -18,7 +18,7 @@ class TestPowerManagementCommon(unittest.TestCase):
estimate = power.PowerManagement().get_time_remaining_estimate()
self.assertIsNotNone(estimate)
self.assertI... | Update tests.py Use constants not magic numbers. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, Extension
import numpy as np
import platform
-version = '0.1.2'
+version = '0.1.3'
ext_modules = [] | bump to version <I> and release to pip | py |
diff --git a/homu/server.py b/homu/server.py
index <HASH>..<HASH> 100644
--- a/homu/server.py
+++ b/homu/server.py
@@ -260,6 +260,8 @@ def buildbot():
if row['event'] == 'buildFinished':
info = row['payload']['build']
+ if 'retry' in info['text']: continue
+
found = False... | Ignore status updates from Buildbot caused by automatic retry If one of the slaves that were testing a PR is lost, Buildbot automatically allocates the build to another slave, so we should not consider it as a failure. Fixes #<I>. | py |
diff --git a/observed_test.py b/observed_test.py
index <HASH>..<HASH> 100644
--- a/observed_test.py
+++ b/observed_test.py
@@ -225,7 +225,7 @@ class TestBasics:
"""Test that observers are called when the observed object is called."""
@classmethod
- def setup_class(self):
+ def setup_method(self):
... | Use setup_method to clean pre-state for more reliable testing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ description = "Command line script that automatically searches for video subtitl
setup(
name = "ss",
- version = "1.2.rc2",
+ version = "1.2rc3",
packages = [],
scripts = ['ss.py'],
... | Bumping version to <I>rc3 | py |
diff --git a/indy_node/test/helper.py b/indy_node/test/helper.py
index <HASH>..<HASH> 100644
--- a/indy_node/test/helper.py
+++ b/indy_node/test/helper.py
@@ -129,7 +129,7 @@ def sdk_rotate_verkey(looper, sdk_pool_handle, wh,
return verkey
-def start_stopped_node(stopped_node, looper, tconf, tdir, allPluginsPa... | [ST-<I>] modify helper in tests | py |
diff --git a/test/test_process_pool_fork.py b/test/test_process_pool_fork.py
index <HASH>..<HASH> 100644
--- a/test/test_process_pool_fork.py
+++ b/test/test_process_pool_fork.py
@@ -590,7 +590,7 @@ class TestProcessPoolDeadlockOnNewFutures(unittest.TestCase):
pool = pebble.ProcessPool(max_workers=1, conte... | tests: more time relaxation MAC OS PyPy keeps behaving oddly. | py |
diff --git a/src/python/dxpy/bindings/dxfile.py b/src/python/dxpy/bindings/dxfile.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/bindings/dxfile.py
+++ b/src/python/dxpy/bindings/dxfile.py
@@ -36,7 +36,7 @@ DXFILE_HTTP_THREADS = NUM_HTTP_THREADS
if dxpy.JOB_ID:
# Increase HTTP request buffer sizes when we a... | Increase buffer size to <I> MB on workers With the increase to 8 threads, we have to watch out for OOM. Hopefully this won't crash. | py |
diff --git a/jaide/cli.py b/jaide/cli.py
index <HASH>..<HASH> 100644
--- a/jaide/cli.py
+++ b/jaide/cli.py
@@ -14,6 +14,7 @@ https://github.com/NetworkAutomation/jaide
"""
from __future__ import print_function
# standard modules
+import os
from os import path, popen
import multiprocessing
import re
@@ -720,13 +72... | only check tty width on posix systems | py |
diff --git a/seed_message_sender/settings.py b/seed_message_sender/settings.py
index <HASH>..<HASH> 100644
--- a/seed_message_sender/settings.py
+++ b/seed_message_sender/settings.py
@@ -230,7 +230,7 @@ CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_ACCEPT_CONTENT = ['json']
CELERY_IGNORE_R... | Reduced default to <I> | py |
diff --git a/Mixtape/markovstatemodel.py b/Mixtape/markovstatemodel.py
index <HASH>..<HASH> 100644
--- a/Mixtape/markovstatemodel.py
+++ b/Mixtape/markovstatemodel.py
@@ -218,7 +218,7 @@ class MarkovStateModel(BaseEstimator):
def _get_eigensystem(self):
if not self.is_dirty:
- return self._ei... | Cached eigensystem results weren't being used | py |
diff --git a/oauthlib/oauth1/rfc5849/__init__.py b/oauthlib/oauth1/rfc5849/__init__.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth1/rfc5849/__init__.py
+++ b/oauthlib/oauth1/rfc5849/__init__.py
@@ -33,6 +33,8 @@ class Client(object):
signature_method=SIGNATURE_HMAC,
signature_type=SIGNATU... | Rename sign_request to sign | py |
diff --git a/src/hamster/utils/stuff.py b/src/hamster/utils/stuff.py
index <HASH>..<HASH> 100644
--- a/src/hamster/utils/stuff.py
+++ b/src/hamster/utils/stuff.py
@@ -322,6 +322,21 @@ class Fact(object):
self.end_time = end_time or self.end_time or None
+ def __iter__(self):
+ keys = {
+ ... | added __iter__ so that the fact can be serialized in a dict | py |
diff --git a/tfatool/command.py b/tfatool/command.py
index <HASH>..<HASH> 100644
--- a/tfatool/command.py
+++ b/tfatool/command.py
@@ -91,7 +91,16 @@ def _decode_time(date_val: int, time_val: int):
hour = time_val >> 11
minute = ((time_val >> 5) & 0b111111)
second = (time_val & 0b11111) * 2
- return a... | added bounds checks for invalid datetime decoding If we neglect to set the FTIME parameter during our upload procedure, we'll get a new file on FlashAir with a date of <I>-<I>-<I> <I>:<I>, which is, of course, invalid. When `arrow` attempts to decode that date, it'll crash. We just need to be sure that the month and d... | py |
diff --git a/pypump/models/__init__.py b/pypump/models/__init__.py
index <HASH>..<HASH> 100644
--- a/pypump/models/__init__.py
+++ b/pypump/models/__init__.py
@@ -404,9 +404,9 @@ class Deleteable(object):
self._post_activity(activity)
-class Postable(object):
- """ Adds methods to set to, cc and soon bc... | Split Postable into Addressable/Postable Addressable adds to,cc,bto,bcc properties and ways to serialize recipients Postable inherits Addressable and adds .send() | py |
diff --git a/numerapi/numerapi.py b/numerapi/numerapi.py
index <HASH>..<HASH> 100644
--- a/numerapi/numerapi.py
+++ b/numerapi/numerapi.py
@@ -93,8 +93,8 @@ class NumerAPI(base_api.Api):
dest_path = filename
# if directories are used, ensure they exist
- if "/" in dest_path:
- ... | fix Directory check in download_dataset (#<I>) | py |
diff --git a/happenings/utils/calendars.py b/happenings/utils/calendars.py
index <HASH>..<HASH> 100644
--- a/happenings/utils/calendars.py
+++ b/happenings/utils/calendars.py
@@ -31,7 +31,10 @@ class GenericCalendar(LocaleHTMLCalendar):
if len(args) < 2:
args = args + (CALENDAR_LOCALE, )
... | proper processing of locale when it's of type tuple | py |
diff --git a/holoviews/plotting/bokeh/graphs.py b/holoviews/plotting/bokeh/graphs.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/graphs.py
+++ b/holoviews/plotting/bokeh/graphs.py
@@ -96,6 +96,8 @@ class GraphPlot(CompositeElementPlot, ColorbarPlot, LegendPlot):
point_data.update(cdata)
... | Ensure Graph node colors persist when updated (#<I>) | py |
diff --git a/properties/basic.py b/properties/basic.py
index <HASH>..<HASH> 100644
--- a/properties/basic.py
+++ b/properties/basic.py
@@ -597,6 +597,32 @@ class Array(Property):
return value
+ def error(self, instance, value, error=None, extra=''):
+ """Generates a ValueError on setting property... | Better error message for array properties. They no longer print the entire array, just the shape and type. | py |
diff --git a/MAVProxy/tools/mavflightview.py b/MAVProxy/tools/mavflightview.py
index <HASH>..<HASH> 100755
--- a/MAVProxy/tools/mavflightview.py
+++ b/MAVProxy/tools/mavflightview.py
@@ -423,6 +423,9 @@ def mavflightview_mav(mlog, options=None, flightmode_selections=[]):
(lat, lng) = (m.Lat, m.Lng)
... | mavflightview: add GUID plotting | py |
diff --git a/app.py b/app.py
index <HASH>..<HASH> 100644
--- a/app.py
+++ b/app.py
@@ -89,6 +89,7 @@ class BaseView(HTTPMethodView):
data = self.data(request, name, hash, **kwargs)
if as_json:
r = response.json(data)
+ r.headers['Access-Control-Allow-Origin'] = '*'
els... | CORS headers for JSON responses Access-Control-Allow-Origin: * | py |
diff --git a/salt/modules/lxc.py b/salt/modules/lxc.py
index <HASH>..<HASH> 100644
--- a/salt/modules/lxc.py
+++ b/salt/modules/lxc.py
@@ -1445,6 +1445,12 @@ def edit_conf(conf_file, out_format='simple', **kwargs):
data.append({
key: kwargs[key]
})
+ del kwargs[key]... | Need to add new items to the conf file too | py |
diff --git a/rest_auth/views.py b/rest_auth/views.py
index <HASH>..<HASH> 100644
--- a/rest_auth/views.py
+++ b/rest_auth/views.py
@@ -1,5 +1,6 @@
from django.contrib.auth import login, logout
from django.conf import settings
+from django.core.exceptions import ObjectDoesNotExist
from rest_framework import status
... | Fixed try/catch in logout view | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -27,6 +27,9 @@ class TweepyAPITests(unittest.TestCase):
def testpublictimeline(self):
self.api.public_timeline()
+ def testhometimeline(self):
+ self.api.home_timeline()
+
def testfriendstimeline... | Add some tests for retweet methods. | py |
diff --git a/maspy/_proteindb_refactoring.py b/maspy/_proteindb_refactoring.py
index <HASH>..<HASH> 100644
--- a/maspy/_proteindb_refactoring.py
+++ b/maspy/_proteindb_refactoring.py
@@ -391,7 +391,6 @@ def fastaParserSpectraClusterPy(header):
:returns: dict, parsed header
"""
-
isUniprot = lambda h: h... | Python 2 to 3 compatibility issue, replaced fu.next() with next(fu) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,6 +6,7 @@ from os import path
class BinaryDistribution(Distribution):
+ @staticmethod
def has_ext_modules(foo):
return True
@@ -22,7 +23,7 @@ setup(
# Versions should comply with PEP440. For a ... | setup.py version bump and small cleanup. | py |
diff --git a/table_fu/__init__.py b/table_fu/__init__.py
index <HASH>..<HASH> 100644
--- a/table_fu/__init__.py
+++ b/table_fu/__init__.py
@@ -68,7 +68,10 @@ class TableFu(object):
parsed by Python's csv module (using csv.reader)
"""
if hasattr(table, 'next'): # for file-like objects
- ... | csv-dialect as constructor option added | py |
diff --git a/docserver.py b/docserver.py
index <HASH>..<HASH> 100644
--- a/docserver.py
+++ b/docserver.py
@@ -13,13 +13,12 @@ symlink.
"""
-@app.route('/static/<path:filename>')
-def bokeh_static(filename):
- static_dir = os.path.join(_basedir,"bokeh/server/static/")
- print filename
- print static_dir
-... | updated the documentation server for the new build process | py |
diff --git a/drivers/python/rethinkdb/net.py b/drivers/python/rethinkdb/net.py
index <HASH>..<HASH> 100644
--- a/drivers/python/rethinkdb/net.py
+++ b/drivers/python/rethinkdb/net.py
@@ -116,7 +116,7 @@ class Connection(object):
def _end(self, orig_query, orig_term):
query = p.Query()
- query.typ... | fixes #<I>, END instead of STOP in py driver | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,5 +21,5 @@ setup(
packages=_packages,
install_requires=['pylint', 'astroid', 'pylint-plugin-utils'],
license='GPLv2',
- keywords=('pylint', 'django', 'plugin')
+ keywords='pylint django plugin'
) | Fixing keywords in setup.py | py |
diff --git a/src/main/python/rlbot/utils/public_utils.py b/src/main/python/rlbot/utils/public_utils.py
index <HASH>..<HASH> 100644
--- a/src/main/python/rlbot/utils/public_utils.py
+++ b/src/main/python/rlbot/utils/public_utils.py
@@ -4,6 +4,10 @@ External code is encouraged to use these functions directly. It is part ... | Adding network check utility (#<I>) | py |
diff --git a/teslajsonpy/__version__.py b/teslajsonpy/__version__.py
index <HASH>..<HASH> 100644
--- a/teslajsonpy/__version__.py
+++ b/teslajsonpy/__version__.py
@@ -6,4 +6,4 @@ For more details about this api, please refer to the documentation at
https://github.com/zabuldon/teslajsonpy
"""
-__version__ = "0.10.1"... | <I> Automatically generated by python-semantic-release | py |
diff --git a/pyaavso/formats/visual.py b/pyaavso/formats/visual.py
index <HASH>..<HASH> 100644
--- a/pyaavso/formats/visual.py
+++ b/pyaavso/formats/visual.py
@@ -2,4 +2,9 @@ from __future__ import unicode_literals
class VisualFormatWriter(object):
- pass
+ """
+ A class responsible for writing observatio... | Added a basic docstring to VisualFormatWriter. | py |
diff --git a/holoviews/core/ndmapping.py b/holoviews/core/ndmapping.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/ndmapping.py
+++ b/holoviews/core/ndmapping.py
@@ -213,7 +213,10 @@ class MultiDimensionalMapping(Dimensioned):
"""
if not isinstance(key, tuple):
key = (key,)
- ... | Support Ellipsis when indexing NdMapping types | py |
diff --git a/pymc3/tests/test_distributions_timeseries.py b/pymc3/tests/test_distributions_timeseries.py
index <HASH>..<HASH> 100644
--- a/pymc3/tests/test_distributions_timeseries.py
+++ b/pymc3/tests/test_distributions_timeseries.py
@@ -22,10 +22,9 @@ from pymc3.model import Model
from pymc3.sampling import sample, ... | Use xfail mark in pymc3.tests.test_distributions_timeseries | py |
diff --git a/gandi/conf.py b/gandi/conf.py
index <HASH>..<HASH> 100644
--- a/gandi/conf.py
+++ b/gandi/conf.py
@@ -152,7 +152,7 @@ class GandiModule(object):
cls.echo("saving key '%s' with value '%s' to scope %s" %
(key, val, scope))
key = key.split(separator)
- value = cls._c... | Fixes bug when no local configuration was found | py |
diff --git a/python/test_gumath.py b/python/test_gumath.py
index <HASH>..<HASH> 100644
--- a/python/test_gumath.py
+++ b/python/test_gumath.py
@@ -57,6 +57,8 @@ except ImportError:
SKIP_LONG = True
SKIP_BRUTE_FORCE = True
+ARCH = platform.architecture()[0]
+
gm.set_max_threads(1)
@@ -598,6 +600,7 @@ class Test... | Skip unary tests on <I>-bit Windows. - Here numpy errors appear to be large sometimes. | py |
diff --git a/tarbell/app.py b/tarbell/app.py
index <HASH>..<HASH> 100644
--- a/tarbell/app.py
+++ b/tarbell/app.py
@@ -50,7 +50,10 @@ class TarbellSite:
# Register as flask blueprint
try:
- self.app.register_blueprint(project.blueprint, url_prefix='/' + path)
+ ... | fix url prefixing for root blueprint | py |
diff --git a/salt/states/pbm.py b/salt/states/pbm.py
index <HASH>..<HASH> 100644
--- a/salt/states/pbm.py
+++ b/salt/states/pbm.py
@@ -97,20 +97,34 @@ PyVmomi can be installed via pip:
from __future__ import absolute_import
import logging
import copy
+import sys
# Import Salt Libs
from salt.exceptions import Com... | Added python/pyvmomi compatibility check to salt.states.pbm + removed reference to Python <I> | py |
diff --git a/raiden/api/python.py b/raiden/api/python.py
index <HASH>..<HASH> 100644
--- a/raiden/api/python.py
+++ b/raiden/api/python.py
@@ -395,13 +395,19 @@ class RaidenAPI:
token_network_proxy.proxy.contract.functions.
channel_participant_deposit_limit().call()
)
- ... | Fix deposit amount decreased crash In development mode we unfortunately seem to still have limits as we can see from the code <URL> | py |
diff --git a/discord/user.py b/discord/user.py
index <HASH>..<HASH> 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -768,6 +768,8 @@ class User(BaseUser, discord.abc.Messageable):
def relationship(self):
"""Optional[:class:`Relationship`]: Returns the :class:`Relationship` with this user if applicab... | deprecate User.relationships | py |
diff --git a/stimela/__init__.py b/stimela/__init__.py
index <HASH>..<HASH> 100644
--- a/stimela/__init__.py
+++ b/stimela/__init__.py
@@ -418,7 +418,10 @@ def main(argv):
args = parser.parse_args(argv)
# Command is help and no other commands following
- main_help = (args.command[0] == "help" and len(arg... | print help if stimela is executed with no arguments | py |
diff --git a/transactions.py b/transactions.py
index <HASH>..<HASH> 100644
--- a/transactions.py
+++ b/transactions.py
@@ -409,9 +409,9 @@ class Transactions():
# Create Edit Popover
self.editButton = Gtk.Button()
self.editPopover = Gtk.Popover.new(self.editButton)
- se... | Added clarifying variable to edit_popover. | py |
diff --git a/restapi_logging_handler/restapi_logging_handler.py b/restapi_logging_handler/restapi_logging_handler.py
index <HASH>..<HASH> 100644
--- a/restapi_logging_handler/restapi_logging_handler.py
+++ b/restapi_logging_handler/restapi_logging_handler.py
@@ -16,7 +16,7 @@ class RestApiHandler(logging.Handler):
... | Decrease thread count. <I> is crazy high. The total should probably be a parameter in a later commit. | py |
diff --git a/src/SALib/test_functions/Ishigami.py b/src/SALib/test_functions/Ishigami.py
index <HASH>..<HASH> 100755
--- a/src/SALib/test_functions/Ishigami.py
+++ b/src/SALib/test_functions/Ishigami.py
@@ -1,7 +1,5 @@
from __future__ import division
-import math
-
import numpy as np
@@ -12,12 +10,15 @@ ... | Use numpy functions to allow future vectorization | py |
diff --git a/examples/hpss_beats.py b/examples/hpss_beats.py
index <HASH>..<HASH> 100755
--- a/examples/hpss_beats.py
+++ b/examples/hpss_beats.py
@@ -41,7 +41,7 @@ def hpss_beats(input_file, output_csv):
harmonic, percussive = librosa.decompose.hpss(D)
# Construct onset envelope from percussive component
-... | fixed typo in hpss_beats example | py |
diff --git a/bokeh/models/layouts.py b/bokeh/models/layouts.py
index <HASH>..<HASH> 100644
--- a/bokeh/models/layouts.py
+++ b/bokeh/models/layouts.py
@@ -59,7 +59,7 @@ class LayoutDOM(Model):
``plot_width/plot_height`` is maintained. A plot with ``"scale_height"`` mode needs
to be wrapped in a ``Row`` or ``C... | #<I>: Fix a typo in LayoutDOM (#<I>) * Fixed a NumberSpec typo * #<I> new_height should be based on @ch not @cw * Fix a typo in LayoutDOM #<I> | py |
diff --git a/test/test_rpc.py b/test/test_rpc.py
index <HASH>..<HASH> 100644
--- a/test/test_rpc.py
+++ b/test/test_rpc.py
@@ -626,7 +626,7 @@ def test_reply_queue_removed_on_expiry(
@skip_if_no_toxiproxy
-class TestDisconnectedWhileWaitingForReply(object):
+class TestDisconnectedWhileWaitingForReply(object): # p... | pragma: no cover on test we don't expect to run | py |
diff --git a/tests/tools/pg_importer_test.py b/tests/tools/pg_importer_test.py
index <HASH>..<HASH> 100644
--- a/tests/tools/pg_importer_test.py
+++ b/tests/tools/pg_importer_test.py
@@ -184,7 +184,7 @@ $out2 1 \N gmf-rlz-2 gmf 2013-04-11 03:08:47
# the fake job is unfortunately needed in GmfSet.iter_gmfs
... | Fixed an ordering bug in pg_importer_test.py | py |
diff --git a/ftw/http.py b/ftw/http.py
index <HASH>..<HASH> 100755
--- a/ftw/http.py
+++ b/ftw/http.py
@@ -6,6 +6,7 @@ import errno
import time
import StringIO
import gzip
+import os
import sys
import re
import base64
@@ -367,6 +368,9 @@ class HttpUA(object):
Get the response from the socket
"""... | Fixing issue with windows nonblocking sockets | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,7 @@
-from pip.req import parse_requirements
+try: # for pip >= 10
+ from pip._internal.req import parse_requirements
+except ImportError: # for pip <= 9.0.3
+ from pip.req import parse_requirements
from setup... | pip <I> support. | py |
diff --git a/src/python/dxpy/scripts/dx_build_app.py b/src/python/dxpy/scripts/dx_build_app.py
index <HASH>..<HASH> 100755
--- a/src/python/dxpy/scripts/dx_build_app.py
+++ b/src/python/dxpy/scripts/dx_build_app.py
@@ -339,6 +339,8 @@ def main(**kwargs):
# options through to the interior call of dx_build_app(l... | Fail on --remote --overwrite since it didn't work as expected anyway. | py |
diff --git a/tests/test_routing.py b/tests/test_routing.py
index <HASH>..<HASH> 100644
--- a/tests/test_routing.py
+++ b/tests/test_routing.py
@@ -574,6 +574,20 @@ def test_build_append_multidict():
assert set(b.split('&')) == set('y=2.0&x=1.0&x=3.0'.split('&'))
+def test_build_drop_none():
+ map = r.Map([
... | add failing test for None-dropping | py |
diff --git a/apitools/scripts/oauth2l_test.py b/apitools/scripts/oauth2l_test.py
index <HASH>..<HASH> 100644
--- a/apitools/scripts/oauth2l_test.py
+++ b/apitools/scripts/oauth2l_test.py
@@ -35,11 +35,14 @@ class _FakeResponse(object):
def __init__(self, status_code, scopes=None):
self.status_code = sta... | Synthesize response mock with slightly greater fidelity | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -86,7 +86,7 @@ setup(
],
# Code
version=version,
- packages=find_packages(exclude=["test", "doc", "scripts", "examples"]),
+ packages=find_packages(exclude=["test*", "doc", "scripts", "examples"]),
sc... | Exclude all test packages, not just toplevel (#<I>) | py |
diff --git a/spyder/widgets/findinfiles.py b/spyder/widgets/findinfiles.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/findinfiles.py
+++ b/spyder/widgets/findinfiles.py
@@ -781,7 +781,6 @@ class FileProgressBar(QWidget):
self.spinner = QWaitingSpinner(self, centerOnParent=False)
self.spinner.se... | Start/stop find in files waiting spinner when is shown/hidden. | py |
diff --git a/src/pyglet2d.py b/src/pyglet2d.py
index <HASH>..<HASH> 100644
--- a/src/pyglet2d.py
+++ b/src/pyglet2d.py
@@ -231,9 +231,6 @@ class Shape:
If not passed, the center of the shape is used.
"""
- if np.any(factor == 0):
- return
-
factor = np.asarray(factor)
... | don't check for zero divide in scale | py |
diff --git a/tests/test_basic.py b/tests/test_basic.py
index <HASH>..<HASH> 100644
--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -37,6 +37,7 @@ class FakeAWSObject(AWSObject):
'callincorrect': (call_incorrect, False),
'singlelist': (list, False),
'multilist': ([bool, int, float], Fal... | Add test for matching against a tuple of types | py |
diff --git a/PyFunceble.py b/PyFunceble.py
index <HASH>..<HASH> 100755
--- a/PyFunceble.py
+++ b/PyFunceble.py
@@ -1295,7 +1295,8 @@ class Lookup(object):
try:
try:
try:
- socket.gethostbyaddr(Settings.domain)
+ socket.getaddrinfo(
+ ... | Review of the way we implement `nslookup` | py |
diff --git a/odl/tomo/analytic/filtered_back_projection.py b/odl/tomo/analytic/filtered_back_projection.py
index <HASH>..<HASH> 100644
--- a/odl/tomo/analytic/filtered_back_projection.py
+++ b/odl/tomo/analytic/filtered_back_projection.py
@@ -15,6 +15,7 @@ import numpy as np
import scipy as sp
from odl.discr import R... | ENH/BUG: update in fbp to handle unweighted range of ray transform. | py |
diff --git a/src/openaccess_epub/utils/inputs.py b/src/openaccess_epub/utils/inputs.py
index <HASH>..<HASH> 100644
--- a/src/openaccess_epub/utils/inputs.py
+++ b/src/openaccess_epub/utils/inputs.py
@@ -85,7 +85,7 @@ def url_input(url_string, download=True):
if download:
with open(filename, 'wb') ... | corrected the return of the downloaded XML file root name | py |
diff --git a/natsort.py b/natsort.py
index <HASH>..<HASH> 100644
--- a/natsort.py
+++ b/natsort.py
@@ -150,6 +150,10 @@ def index_natsorted(seq):
index_seq_pair.sort(key=lambda x: natsort_key(x[1]))
return [x[0] for x in index_seq_pair]
+def test():
+ from doctest import DocTestSuite
+ return DocTestS... | Added unit test capabilities from the dockets | py |
diff --git a/saltcloud/clouds/aws.py b/saltcloud/clouds/aws.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/aws.py
+++ b/saltcloud/clouds/aws.py
@@ -529,17 +529,11 @@ def _toggle_term_protect(name, enabled):
endpoint = service.get_endpoint(region)
# get the instance-id for the supplied node name
- ... | use libcloud to get EC2 instance_id, not salt ec2_info grain | py |
diff --git a/safe_qgis/test_impact_functions_doc.py b/safe_qgis/test_impact_functions_doc.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/test_impact_functions_doc.py
+++ b/safe_qgis/test_impact_functions_doc.py
@@ -17,6 +17,7 @@ __date__ = '14/09/2012'
__copyright__ = ('Copyright 2012, Australia Indonesia Facility for... | Skip reset test which hangs jenkins | py |
diff --git a/cerberus/tests/tests.py b/cerberus/tests/tests.py
index <HASH>..<HASH> 100644
--- a/cerberus/tests/tests.py
+++ b/cerberus/tests/tests.py
@@ -70,6 +70,11 @@ class TestValidator(TestBase):
errors.ERROR_UNKNOWN_RULE % ('unknown_rule', field)
)
+ def test_empty_field_definition(self... | Add test for validation of empty field definition | py |
diff --git a/telemetry/telemetry/core/memory_cache_http_server.py b/telemetry/telemetry/core/memory_cache_http_server.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/memory_cache_http_server.py
+++ b/telemetry/telemetry/core/memory_cache_http_server.py
@@ -72,7 +72,7 @@ def Main():
port = int(sys.arg... | [Telemetry] Avoid prompt about allowing python to accept incoming connections. BUG=<I> TEST=intl1 page cycler on mac TBR=<EMAIL> NOTRY=True Review URL: <URL> | py |
diff --git a/wafer/settings.py b/wafer/settings.py
index <HASH>..<HASH> 100644
--- a/wafer/settings.py
+++ b/wafer/settings.py
@@ -107,6 +107,7 @@ MIDDLEWARE_CLASSES = (
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middle... | Add redirects to wafer's app list | py |
diff --git a/telethon/network/connection/connection.py b/telethon/network/connection/connection.py
index <HASH>..<HASH> 100644
--- a/telethon/network/connection/connection.py
+++ b/telethon/network/connection/connection.py
@@ -136,9 +136,12 @@ class Connection(abc.ABC):
await self._writer.drain()
... | Expect ConnectionError in the send loop | py |
diff --git a/src/feat/test/integration/test_idatabase_client.py b/src/feat/test/integration/test_idatabase_client.py
index <HASH>..<HASH> 100644
--- a/src/feat/test/integration/test_idatabase_client.py
+++ b/src/feat/test/integration/test_idatabase_client.py
@@ -437,6 +437,7 @@ class PaisleySpecific(object):
@common... | Unskip coverage for paisley intergration tests. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.