diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pycbc/inference/burn_in.py b/pycbc/inference/burn_in.py
index <HASH>..<HASH> 100644
--- a/pycbc/inference/burn_in.py
+++ b/pycbc/inference/burn_in.py
@@ -253,8 +253,10 @@ class MCMCBurnInTests(object):
Since we calculate the acls, this will also store it to the sampler.
"""
acls ... | only use acl from nacl test if it is the only test being done (#<I>) | py |
diff --git a/zounds/spectral/spectral.py b/zounds/spectral/spectral.py
index <HASH>..<HASH> 100644
--- a/zounds/spectral/spectral.py
+++ b/zounds/spectral/spectral.py
@@ -106,10 +106,10 @@ class DCTIV(Node):
l = data.shape[1]
tf = np.arange(0, l)
z = np.zeros((len(data), l * 2))
- z[:,... | Resolve implicit complex to real cast warning from DCT-IV code | py |
diff --git a/lifelines/tests/test_estimation.py b/lifelines/tests/test_estimation.py
index <HASH>..<HASH> 100644
--- a/lifelines/tests/test_estimation.py
+++ b/lifelines/tests/test_estimation.py
@@ -522,14 +522,14 @@ class TestRegressionFitters():
aaf = AalenAdditiveFitter()
aaf.fit(X, 'T', event_co... | explicitly ignore series name. This passed for Pandas <I>, but failed for <I> | py |
diff --git a/loam/manager.py b/loam/manager.py
index <HASH>..<HASH> 100644
--- a/loam/manager.py
+++ b/loam/manager.py
@@ -200,9 +200,9 @@ class ConfigurationManager:
@property
def sub_cmds_(self):
- """Path of config file.
+ """Subcommands description.
- It is None or a pathlib.Path ... | Update sub_cmds_ docstring | py |
diff --git a/pychromecast/socket_client.py b/pychromecast/socket_client.py
index <HASH>..<HASH> 100644
--- a/pychromecast/socket_client.py
+++ b/pychromecast/socket_client.py
@@ -237,10 +237,16 @@ class SocketClient(threading.Thread):
event.set()
for handler in self._handlers.values():
-... | Catch any exceptions which might occur when tearing down controllers and closing channels All controllers must be allowed to tear down even if one or more of them triggers an exception. Similar for closing the channels. | py |
diff --git a/src/pybel/struct/graph.py b/src/pybel/struct/graph.py
index <HASH>..<HASH> 100644
--- a/src/pybel/struct/graph.py
+++ b/src/pybel/struct/graph.py
@@ -972,18 +972,14 @@ class BELGraph(nx.MultiDiGraph):
:rtype: list[tuple[str,float]]
"""
number_nodes = self.number_of_nodes()
- ... | Update src/pybel/struct/graph.py Always write warnings, even if there are zero | py |
diff --git a/tests/query_test.py b/tests/query_test.py
index <HASH>..<HASH> 100644
--- a/tests/query_test.py
+++ b/tests/query_test.py
@@ -48,11 +48,11 @@ class QueryTestCase (unittest.TestCase):
manager.add_ngram(id5, 'we', 2, 1)
manager.add_ngram(id5, 'el', 2, 1)
manager.add_ngram(id5, 'll'... | Corrected test after change to process for adding n-grams. | py |
diff --git a/plex_metadata/core/defaults.py b/plex_metadata/core/defaults.py
index <HASH>..<HASH> 100644
--- a/plex_metadata/core/defaults.py
+++ b/plex_metadata/core/defaults.py
@@ -2,18 +2,19 @@ DEFAULT_TYPES = ['movie', 'show', 'season', 'episode']
DEFAULT_GUID_MAP = {
# Multi
- 'mcm': ('thet... | Changed final parsed guid source names | py |
diff --git a/salt/cloud/clouds/openstack.py b/salt/cloud/clouds/openstack.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/openstack.py
+++ b/salt/cloud/clouds/openstack.py
@@ -462,7 +462,7 @@ def create(vm_):
# otherwise, attempt to obtain list without specifying pool
# this is the same as 'nov... | How did those tabs get in there? | py |
diff --git a/spacy/compat.py b/spacy/compat.py
index <HASH>..<HASH> 100644
--- a/spacy/compat.py
+++ b/spacy/compat.py
@@ -16,6 +16,11 @@ try:
except ImportError:
import copyreg as copy_reg
+pickle = pickle
+copy_reg = copy_reg
+CudaStream = CudaStream
+cupy = cupy
+fix_text = ftfy.fix_text
is_python2 = six.... | Reorganise and explicitly state what's importable | py |
diff --git a/pysat/tests/instrument_test_class.py b/pysat/tests/instrument_test_class.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/instrument_test_class.py
+++ b/pysat/tests/instrument_test_class.py
@@ -184,7 +184,10 @@ class InstTestClass():
if hasattr(getattr(self.inst_loc, name), 'list_remote_files'):... | TST: support user and password in remote_file_list tests | py |
diff --git a/dusty/daemon.py b/dusty/daemon.py
index <HASH>..<HASH> 100644
--- a/dusty/daemon.py
+++ b/dusty/daemon.py
@@ -21,6 +21,7 @@ def _listen_on_socket(socket_path):
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
sock.bind(socket_path)
+ os.chmod(socket_path, 0777) # don't delete the 0, ... | Fix socket permissions so users can talk to Dusty | py |
diff --git a/explorer/forms.py b/explorer/forms.py
index <HASH>..<HASH> 100644
--- a/explorer/forms.py
+++ b/explorer/forms.py
@@ -23,7 +23,6 @@ class SqlField(Field):
if error:
raise ValidationError(
_(error),
- params={'value': value},
code="Inval... | fixing a really weird edge case bug with queries ending in ...like '%foo%' | py |
diff --git a/src/_pytest/monkeypatch.py b/src/_pytest/monkeypatch.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/monkeypatch.py
+++ b/src/_pytest/monkeypatch.py
@@ -262,7 +262,7 @@ class MonkeyPatch:
# A call to syspathinsert() usually means that the caller wants to
# import some dynamically created... | Fix typo in doc with syspath_prepend | py |
diff --git a/polyaxon/docker_images/image_info.py b/polyaxon/docker_images/image_info.py
index <HASH>..<HASH> 100644
--- a/polyaxon/docker_images/image_info.py
+++ b/polyaxon/docker_images/image_info.py
@@ -66,7 +66,9 @@ def get_notebook_image_info(project, job):
def get_image_name(build_job):
- return '{}/{}'.... | Force docker image name to be lower case | py |
diff --git a/openquake/calculators/extract.py b/openquake/calculators/extract.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/extract.py
+++ b/openquake/calculators/extract.py
@@ -381,3 +381,16 @@ def extract_aggcurves(dstore, what):
curves = _filter_agg(dstore['assetcol'], losses, tags)
vars(curve... | Added extraction of losses_by_asset [skip hazardlib] | py |
diff --git a/posttroll/subscriber.py b/posttroll/subscriber.py
index <HASH>..<HASH> 100644
--- a/posttroll/subscriber.py
+++ b/posttroll/subscriber.py
@@ -235,8 +235,11 @@ class Subscriber(object):
"""
self.stop()
for sub in list(self.subscribers) + self._hooks:
- sub.setsockopt(LI... | Do not crash when closing a subscriber multiple times | py |
diff --git a/pyang/statements.py b/pyang/statements.py
index <HASH>..<HASH> 100644
--- a/pyang/statements.py
+++ b/pyang/statements.py
@@ -2185,7 +2185,8 @@ class Statement(object):
return path
def pprint(self, indent='', f=None):
- print indent + self.keyword + " " + self.arg
+ """debug f... | applied patch from hiroto.shibuya to pretty print unknown statements | py |
diff --git a/CSHLDAP.py b/CSHLDAP.py
index <HASH>..<HASH> 100755
--- a/CSHLDAP.py
+++ b/CSHLDAP.py
@@ -1,5 +1,5 @@
#!/usr/bin/python
-# written for python 2.7
+# written for python 2.7, tested on 2.6
import ldap as pyldap
import ldap.sasl as sasl | Added comment about testing on <I> | py |
diff --git a/airlock/handlers.py b/airlock/handlers.py
index <HASH>..<HASH> 100644
--- a/airlock/handlers.py
+++ b/airlock/handlers.py
@@ -138,8 +138,8 @@ class OAuth2CallbackHandler(Handler):
error = self.request.get('error')
if error:
message = self.request.get('error_description', error)
- text... | Do not display error in response output. | py |
diff --git a/virtualchain/lib/indexer.py b/virtualchain/lib/indexer.py
index <HASH>..<HASH> 100644
--- a/virtualchain/lib/indexer.py
+++ b/virtualchain/lib/indexer.py
@@ -1719,7 +1719,11 @@ def sqlite3_backup(src_path, dest_path):
# not a valid sqlite3 file
log.error("File {} i... | log failures in a catch-all branch | py |
diff --git a/bika/lims/content/analysisservice.py b/bika/lims/content/analysisservice.py
index <HASH>..<HASH> 100644
--- a/bika/lims/content/analysisservice.py
+++ b/bika/lims/content/analysisservice.py
@@ -24,7 +24,8 @@ from bika.lims import PMF, bikaMessageFactory as _
from bika.lims.utils import to_utf8 as _c
from... | LIMS-<I> AS Setup. File attachment field tag is missing | py |
diff --git a/cbamf/comp/psfs.py b/cbamf/comp/psfs.py
index <HASH>..<HASH> 100644
--- a/cbamf/comp/psfs.py
+++ b/cbamf/comp/psfs.py
@@ -97,9 +97,13 @@ class PSF(object):
self._rlen = np.sqrt(rx**2 + ry**2 + rz**2)
def _min_to_tile(self):
- d = ((self.tile.shape - self._min_support)/2)
+ d =... | fixing even-odd lattice size problems | py |
diff --git a/mhctools/mhcflurry.py b/mhctools/mhcflurry.py
index <HASH>..<HASH> 100644
--- a/mhctools/mhcflurry.py
+++ b/mhctools/mhcflurry.py
@@ -20,6 +20,7 @@ from numpy import nan
from .base_predictor import BasePredictor
from .binding_prediction import BindingPrediction
from .binding_prediction_collection import... | have MHCflurry raise UnsupportedAllele | py |
diff --git a/beets/mediafile.py b/beets/mediafile.py
index <HASH>..<HASH> 100644
--- a/beets/mediafile.py
+++ b/beets/mediafile.py
@@ -109,7 +109,7 @@ def _safe_cast(out_type, val):
else:
try:
if isinstance(val, mutagen.asf.ASFBoolAttribute):
- return bool(val)
... | fix conversion of ASFBoolAttribute to bool (#<I>) Original: beetbox/beets@<I>ab | py |
diff --git a/thoth/python/source.py b/thoth/python/source.py
index <HASH>..<HASH> 100644
--- a/thoth/python/source.py
+++ b/thoth/python/source.py
@@ -253,7 +253,7 @@ class Source:
def get_sorted_package_versions(
self, package_name: str, graceful: bool = False, reverse: bool = True, # default to newest ... | Adjust docstring (#<I>) | py |
diff --git a/tests/unit/legacy/api/test_simple.py b/tests/unit/legacy/api/test_simple.py
index <HASH>..<HASH> 100644
--- a/tests/unit/legacy/api/test_simple.py
+++ b/tests/unit/legacy/api/test_simple.py
@@ -143,7 +143,6 @@ class TestSimpleDetail:
def test_with_files_with_version_multi_digit(self, db_request):
... | Fix bug in test suite (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,8 +21,8 @@ setup(
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
- 'Programming Language :: Python :: 2.6',
... | Add python3 support in setup.py classifiers | py |
diff --git a/src/protean/fields/basic.py b/src/protean/fields/basic.py
index <HASH>..<HASH> 100644
--- a/src/protean/fields/basic.py
+++ b/src/protean/fields/basic.py
@@ -171,6 +171,7 @@ class List(Field):
Integer,
String,
Text,
+ Dict,
]:
raise Va... | Allow Lists to contain Dicts | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,7 @@ setup(name='pandocfilters',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
- 'Topic :: Text Processing... | added `Programming Language :: Python :: 3` | py |
diff --git a/registry.py b/registry.py
index <HASH>..<HASH> 100644
--- a/registry.py
+++ b/registry.py
@@ -48,8 +48,9 @@ class Registry:
for service_name in self._pending_services:
depends_on = self._service_dependencies[service_name]
should_activate = True
- for app, servi... | Changing how registration packet is parsed | py |
diff --git a/area4/__init__.py b/area4/__init__.py
index <HASH>..<HASH> 100644
--- a/area4/__init__.py
+++ b/area4/__init__.py
@@ -29,6 +29,12 @@ def div3():
def div4():
print(divider4)
+def div5():
+ print(divider5)
+
+def div6():
+ print(divider6)
+
def customdiv():
print(custom_div) | Added functions for new dividers | py |
diff --git a/zeno/common/util.py b/zeno/common/util.py
index <HASH>..<HASH> 100644
--- a/zeno/common/util.py
+++ b/zeno/common/util.py
@@ -351,8 +351,9 @@ def checkPortAvailable(ha):
try:
sock.bind(ha)
except:
+ logging.warning("Checked port availability for opening "
+ ... | Removed unsed pass in checkPortAvailable function | py |
diff --git a/dex/dex.py b/dex/dex.py
index <HASH>..<HASH> 100755
--- a/dex/dex.py
+++ b/dex/dex.py
@@ -124,7 +124,8 @@ class Dex:
profile_parser = ProfileParser()
databases = self._get_requested_databases()
connection = pymongo.MongoClient(self._db_uri,
- ... | add read_preference=primaryPreferred Allows connections to slave in replica sets | py |
diff --git a/pecan/testing.py b/pecan/testing.py
index <HASH>..<HASH> 100644
--- a/pecan/testing.py
+++ b/pecan/testing.py
@@ -2,13 +2,15 @@ from pecan import load_app
from webtest import TestApp
-def load_test_app(config):
+def load_test_app(config=None):
"""
Used for functional tests where you need to ... | testing will load an app with no config arg passed in | py |
diff --git a/dev_tools/pr_monitor.py b/dev_tools/pr_monitor.py
index <HASH>..<HASH> 100644
--- a/dev_tools/pr_monitor.py
+++ b/dev_tools/pr_monitor.py
@@ -32,6 +32,7 @@ def get_pr_size_label(tot_changes: int) -> str:
while i < len(PR_SIZES):
if tot_changes < PR_SIZES[i]:
ret = PR_SIZE_LABELS[... | Fix XL size labeling everywhere. (#<I>) | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100644
--- a/runtests.py
+++ b/runtests.py
@@ -2,8 +2,6 @@
import os
import sys
-import django
-
from django.conf import settings
try:
from django.utils.functional import empty
@@ -34,9 +32,6 @@ def setup_test_environment():
'ratelimitbacke... | Removed some leftover stuff from django <I> compat | py |
diff --git a/openquake/server/dbserver.py b/openquake/server/dbserver.py
index <HASH>..<HASH> 100644
--- a/openquake/server/dbserver.py
+++ b/openquake/server/dbserver.py
@@ -23,6 +23,7 @@ import sqlite3
import logging
import threading
import subprocess
+import multiprocessing
from openquake.baselib import config... | Changed the task streamer into a process [demos] Former-commit-id: aeecd<I>a4dd7d8a<I>cea2bdc<I>d<I>d<I>aa | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-knockout-modeler',
- version='0.1.0',
+ version='0.3.0',
packages=['knockout_modeler'],
in... | fuck it, calling this <I> | py |
diff --git a/edisgo/opf/timeseries_reduction.py b/edisgo/opf/timeseries_reduction.py
index <HASH>..<HASH> 100644
--- a/edisgo/opf/timeseries_reduction.py
+++ b/edisgo/opf/timeseries_reduction.py
@@ -92,8 +92,9 @@ def get_linked_steps(cluster_params, num_steps):
def get_steps_curtailment(edisgo_obj, percentage=0.5):
... | Clean up time series reduction comments This fixes a typo in the time series reduction and adds some extra information | py |
diff --git a/selenium_test/steps/general.py b/selenium_test/steps/general.py
index <HASH>..<HASH> 100644
--- a/selenium_test/steps/general.py
+++ b/selenium_test/steps/general.py
@@ -5,8 +5,9 @@ from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
import seleniu... | Work around a selenium bug. | py |
diff --git a/matrix_client/room.py b/matrix_client/room.py
index <HASH>..<HASH> 100644
--- a/matrix_client/room.py
+++ b/matrix_client/room.py
@@ -85,17 +85,14 @@ class Room(object):
# Member display names without me
members = [u.get_display_name() for u in self.get_joined_members() if
... | add lexicographic sort to room displayname calculation Also some style improvements. | py |
diff --git a/synchro/synchrotest.py b/synchro/synchrotest.py
index <HASH>..<HASH> 100644
--- a/synchro/synchrotest.py
+++ b/synchro/synchrotest.py
@@ -67,6 +67,10 @@ excluded_tests = [
'TestClient.test_from_uri',
'TestReplicaSetClient.test_properties',
+ # MotorClient(uri).open() doesn't raise Configurat... | open() won't raise auth errors. | py |
diff --git a/src/pyipmi/msgs/message.py b/src/pyipmi/msgs/message.py
index <HASH>..<HASH> 100644
--- a/src/pyipmi/msgs/message.py
+++ b/src/pyipmi/msgs/message.py
@@ -15,6 +15,8 @@ class BaseField:
raise NotImplementedError()
def encode(self, obj, data):
+ if getattr(obj, self.name) == None:
+ ... | msgs: various fixes Optional returns None on creation. Optional sets field to None if not present. Field name is checked within each field now. | py |
diff --git a/tweepy/api.py b/tweepy/api.py
index <HASH>..<HASH> 100644
--- a/tweepy/api.py
+++ b/tweepy/api.py
@@ -299,14 +299,14 @@ class API:
chunk_size = max(min(chunk_size, MAX_CHUNKSIZE), MIN_CHUNKSIZE)
fsize = os.path.getsize(filename)
- nloops = int(fsize / chunk_size / 102... | Improve variable names in API.chunked_upload | py |
diff --git a/src/configupdater/section.py b/src/configupdater/section.py
index <HASH>..<HASH> 100644
--- a/src/configupdater/section.py
+++ b/src/configupdater/section.py
@@ -222,10 +222,15 @@ class Section(Block, Container[Content], MutableMapping[str, "Option"]):
@property
def raw_comment(self):
+ ... | Add docstrings to raw_comment Thanks, Anderson! | py |
diff --git a/scopus/utils/get_encoded_text.py b/scopus/utils/get_encoded_text.py
index <HASH>..<HASH> 100644
--- a/scopus/utils/get_encoded_text.py
+++ b/scopus/utils/get_encoded_text.py
@@ -28,6 +28,6 @@ def get_encoded_text(container, xpath):
result : str
"""
try:
- return container.find(xpath, ... | Use itertext() to skip children in elements with text | py |
diff --git a/salt/states/virtualenv_mod.py b/salt/states/virtualenv_mod.py
index <HASH>..<HASH> 100644
--- a/salt/states/virtualenv_mod.py
+++ b/salt/states/virtualenv_mod.py
@@ -48,7 +48,8 @@ def managed(name,
proxy=None,
use_vt=False,
env_vars=None,
- pip_upgrade=Fals... | allow passing list of pip packages to virtualenv.managed | py |
diff --git a/socketclusterclient/Socketcluster.py b/socketclusterclient/Socketcluster.py
index <HASH>..<HASH> 100644
--- a/socketclusterclient/Socketcluster.py
+++ b/socketclusterclient/Socketcluster.py
@@ -150,10 +150,10 @@ class socket(Emitter.emitter):
# print "result is" + str(result)
if r... | Fixed double subscribe issue subscriptions made in the OnAuthentication callback where added to the channels variable, causing them to be immediately re-subscribed to once subscribechannels was called. This just does the subscribechannels call before the OnAuthentication call | py |
diff --git a/test/test_autopep8.py b/test/test_autopep8.py
index <HASH>..<HASH> 100755
--- a/test/test_autopep8.py
+++ b/test/test_autopep8.py
@@ -659,8 +659,6 @@ sys.maxint
def test_priority_key_with_non_existent_key(self):
pep8_result = {'id': 'foobar'}
self.assertGreater(autopep8._priority_key... | Modify due to change to "_priority_key()" behavior | py |
diff --git a/django_extensions/management/modelviz.py b/django_extensions/management/modelviz.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/modelviz.py
+++ b/django_extensions/management/modelviz.py
@@ -270,7 +270,7 @@ def generate_dot(app_labels, **kwargs):
'abstract': field in... | Fixed: when a base class would have a many_to_many relation, all inheriting classes were also depicted with that relation | py |
diff --git a/bumpr/helpers.py b/bumpr/helpers.py
index <HASH>..<HASH> 100644
--- a/bumpr/helpers.py
+++ b/bumpr/helpers.py
@@ -4,9 +4,6 @@ from __future__ import print_function, unicode_literals
import logging
import shlex
import subprocess
-import sys
-
-IS_PY26 = sys.version_info[:2] == (2, 6)
class BumprErro... | Drop some py<I> specific code | py |
diff --git a/txaws/route53/client.py b/txaws/route53/client.py
index <HASH>..<HASH> 100644
--- a/txaws/route53/client.py
+++ b/txaws/route53/client.py
@@ -205,7 +205,7 @@ class _Route53Client(object):
args.append(("maxitems", u"{}".format(maxitems)))
if name:
args.append(("name", unic... | Constructed the query wrong ... Pointed out by integration test. | py |
diff --git a/clkhash/rest_client.py b/clkhash/rest_client.py
index <HASH>..<HASH> 100644
--- a/clkhash/rest_client.py
+++ b/clkhash/rest_client.py
@@ -162,7 +162,7 @@ def watch_run_status(server, project, run, apikey, timeout=None, update_period=1
if status['state'] in {'error', 'completed'}:
# No... | Bugfix in restclient - generators should terminate with return not StopIteration | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,7 @@ setup(
'coverage',
'django',
'pep8',
+ 'argparse',
],
classifiers=[
"Programming Language :: Python", | python <<I> does not have argparse in stdlib | py |
diff --git a/treeherder/model/models.py b/treeherder/model/models.py
index <HASH>..<HASH> 100644
--- a/treeherder/model/models.py
+++ b/treeherder/model/models.py
@@ -815,8 +815,9 @@ class JobNote(models.Model):
return
for bug_number in add_bugs:
- classification, _ = text_log_error.s... | Create ClassifiedFailures from bugs only where necessary Since ClassifiedFailures are only created from a bug number in one place we can make set_classification more specific by pulling that functionality out to where the bug numbers are handled. | py |
diff --git a/statsd/__init__.py b/statsd/__init__.py
index <HASH>..<HASH> 100644
--- a/statsd/__init__.py
+++ b/statsd/__init__.py
@@ -19,7 +19,7 @@ __all__ = [
]
__package_name__ = 'python-statsd'
-__version__ = '1.6.4'
+__version__ = '1.7.0'
__author__ = 'Rick van Hattem'
__author_email__ = 'Wolph@wol.ph'
__de... | Pushed out new release for #<I>. | py |
diff --git a/ga4gh/datarepo.py b/ga4gh/datarepo.py
index <HASH>..<HASH> 100644
--- a/ga4gh/datarepo.py
+++ b/ga4gh/datarepo.py
@@ -1213,8 +1213,7 @@ class SqlDataRepository(AbstractDataRepository):
self._createVariantSetTable(cursor)
self._createVariantAnnotationSetTable(cursor)
self._createF... | Adds phenotype association set table methods to load and init | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -19,6 +19,7 @@
import ast
import os
import sys
+import codecs
from setuptools import setup, find_packages
@@ -42,10 +43,9 @@ def read_version():
return finder.version
-def local_file( *f):
- if sys.version_... | always loading files as utf-8 in setup.py | 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 setup
setup(
name="rocketchat_API",
- version="1.10.0",
+ version="1.10.1",
packages=["rocketchat_API", "rocketchat_API.APIExceptions"],
url="https://github.com/jadol... | Update version to try the new publish workflow | py |
diff --git a/fastavro.py b/fastavro.py
index <HASH>..<HASH> 100755
--- a/fastavro.py
+++ b/fastavro.py
@@ -225,9 +225,9 @@ READERS = {
def read_data(fo, schema):
st = type(schema)
- if st == dict:
+ if st is dict:
record_type = schema['type']
- elif st == list:
+ elif st is list:
r... | "is" is faster than == | py |
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py
index <HASH>..<HASH> 100644
--- a/tools/interop_matrix/client_matrix.py
+++ b/tools/interop_matrix/client_matrix.py
@@ -275,7 +275,7 @@ LANG_RELEASE_MATRIX = {
('v1.41.1', ReleaseInfo()),
('v1.42.1', Rel... | interop_matrix: add java <I> to the matrix (#<I>) | py |
diff --git a/gcimagebundle/gcimagebundlelib/utils.py b/gcimagebundle/gcimagebundlelib/utils.py
index <HASH>..<HASH> 100644
--- a/gcimagebundle/gcimagebundlelib/utils.py
+++ b/gcimagebundle/gcimagebundlelib/utils.py
@@ -56,7 +56,7 @@ class LoadDiskImage(object):
devs.append('/dev/mapper/' + split_line[2])
... | Remove sleeps from kpartx commands, now relying on sync. | py |
diff --git a/quantecon/compute_fp.py b/quantecon/compute_fp.py
index <HASH>..<HASH> 100644
--- a/quantecon/compute_fp.py
+++ b/quantecon/compute_fp.py
@@ -10,8 +10,8 @@ import time
import numpy as np
-def _print_after_skip(skip, iter=None, dist=None, etime=None):
- if iter is None:
+def _print_after_skip(skip, ... | STY: changed argument name from `iter` to `it` This avoids conflict with the python builtin `iter` | py |
diff --git a/master/buildbot/steps/vstudio.py b/master/buildbot/steps/vstudio.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/steps/vstudio.py
+++ b/master/buildbot/steps/vstudio.py
@@ -39,7 +39,7 @@ class MSLogLineObserver(LogLineObserver):
_re_delimitor = re.compile(r'^(\d+>)?-{5}.+-{5}$')
_re_file = r... | vstudio: catch compile errors and nonzero exits Patch as posted to #<I>. Fixes #<I>. | py |
diff --git a/SimpleAudioIndexer/__init__.py b/SimpleAudioIndexer/__init__.py
index <HASH>..<HASH> 100755
--- a/SimpleAudioIndexer/__init__.py
+++ b/SimpleAudioIndexer/__init__.py
@@ -21,7 +21,7 @@ from __future__ import absolute_import, division, print_function
from ast import literal_eval
from collections import def... | Defining ContextDecorator for Python <I> within the file to avoid adding a dependency | py |
diff --git a/pysat/utils/io.py b/pysat/utils/io.py
index <HASH>..<HASH> 100644
--- a/pysat/utils/io.py
+++ b/pysat/utils/io.py
@@ -626,7 +626,7 @@ def inst_to_netcdf(inst, fname, base_instrument=None, epoch_name='Epoch',
export_nan = inst.meta._export_nan
# Ensure the metadata is set and updated to netC... | MAINT: renamed function Renamed a function to better reflect its behaviour. | py |
diff --git a/charmhelpers/contrib/network/ip.py b/charmhelpers/contrib/network/ip.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/network/ip.py
+++ b/charmhelpers/contrib/network/ip.py
@@ -138,7 +138,7 @@ def _get_for_address(address, key):
return addresses[netifaces.AF_INET][0][key]
... | Ensure fe<I> is used with startswith rather than in | py |
diff --git a/test_umsgpack.py b/test_umsgpack.py
index <HASH>..<HASH> 100644
--- a/test_umsgpack.py
+++ b/test_umsgpack.py
@@ -669,8 +669,10 @@ class TestUmsgpack(unittest.TestCase):
with self.assertRaises(NotImplementedError):
umsgpack.unpackb(b"\xd4\x21\x00")
- # Unregister Ext serializ... | fix deregistration of Ext serializable classes in unit tests | py |
diff --git a/menuconfig.py b/menuconfig.py
index <HASH>..<HASH> 100755
--- a/menuconfig.py
+++ b/menuconfig.py
@@ -1422,10 +1422,10 @@ def _shown_nodes(menu):
# Note: Named choices are pretty broken in the C tools, and this is
# super obscure, so you probably won't find much that relies on this.
- ... | menuconfig: Improve comment re. multiply-defined choice symbols The thing it's talking about usually happens when some file with a named choice is included multiple times with different dependencies. | py |
diff --git a/tests/unit/modules/test_network.py b/tests/unit/modules/test_network.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_network.py
+++ b/tests/unit/modules/test_network.py
@@ -524,6 +524,7 @@ default via 192.168.0.1 dev wlp59s0 proto dhcp metric 600
192.240.157.233 via 10.16.119.224 dev gpd0
20... | Added test keywords which should be ignored by IPv4 and IPv6 | py |
diff --git a/neomodel/core.py b/neomodel/core.py
index <HASH>..<HASH> 100644
--- a/neomodel/core.py
+++ b/neomodel/core.py
@@ -75,8 +75,8 @@ class StructuredNodeMeta(type):
# support for 'magic' properties
if hasattr(value, 'setup') and hasattr(value.setup, '__call__'):
... | bug fix for shared index after 3+ level hierarchy In the following case, the shared index hierarchy will fail to use the index in the neo4j, when saving any instance of **C** creating the **C** index when not necessary. ```python class A(SemiStructedNode) __index__ = CustomIndex class B(A) pass class C(B) ... | py |
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index <HASH>..<HASH> 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -776,7 +776,7 @@ class Mastodon:
###
# Writing data: Media
###
- def media_post(self, media_file, mime_type=None):
+ def media_post(self, media_file, mime_ty... | Added optional media description This works with the new alt text support in mastodon <I>. | py |
diff --git a/tests/unit/modules/test_vagrant.py b/tests/unit/modules/test_vagrant.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_vagrant.py
+++ b/tests/unit/modules/test_vagrant.py
@@ -30,7 +30,7 @@ class VagrantTestCase(TestCase, LoaderModuleMockMixin):
def tearDownClass(cls):
try:
... | lint: must not use bare except: even in teardown | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,7 @@ if __name__ == '__main__':
install_requires=[
'numpy>=1.7',
'pandas>=0.13.1',
- 'pyensembl>=0.6.1,<0.7.0',
+ 'pyensembl>=0.6.2,<0.7.0',
'biop... | require range of pyensembl | py |
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/base.py
+++ b/openquake/calculators/base.py
@@ -693,7 +693,8 @@ class RiskCalculator(HazardCalculator):
getter = riskinput.GmfDataGetter(dstore, sids)
... | Restored reading GMFs from workers [skip CI] | py |
diff --git a/salt/states/rabbitmq_plugin.py b/salt/states/rabbitmq_plugin.py
index <HASH>..<HASH> 100644
--- a/salt/states/rabbitmq_plugin.py
+++ b/salt/states/rabbitmq_plugin.py
@@ -24,10 +24,9 @@ def __virtual__():
'''
Only load if RabbitMQ is installed.
'''
- name = 'rabbitmq_plugin'
- if not __... | Not renaming, return a boolean in `__virtual__()`. | py |
diff --git a/tools/oqbugs.py b/tools/oqbugs.py
index <HASH>..<HASH> 100644
--- a/tools/oqbugs.py
+++ b/tools/oqbugs.py
@@ -189,17 +189,19 @@ def arg_parse():
# after partial check, force -t/--time as required parameter
#parser._actions[0].required = True
- if args.time:
- if len(remaining_argv):
+... | only if there is remaining_argv, do stuff Former-commit-id: <I>bc<I>f6a<I>d<I>cdff<I>f<I> | py |
diff --git a/premailer/tests/test_premailer.py b/premailer/tests/test_premailer.py
index <HASH>..<HASH> 100644
--- a/premailer/tests/test_premailer.py
+++ b/premailer/tests/test_premailer.py
@@ -2237,3 +2237,36 @@ class Tests(unittest.TestCase):
p = Premailer(html, disable_validation=True)
result_html... | Adding a test for turning off the cache | py |
diff --git a/scripts/reservations.py b/scripts/reservations.py
index <HASH>..<HASH> 100755
--- a/scripts/reservations.py
+++ b/scripts/reservations.py
@@ -312,7 +312,7 @@ def spider(last_pid):
Print("Duplicate sequence? {} {}".format(seq, url))
else:
... | ignore pure numbers > 1e6 in textfile reservations yoyo has reserved higher starting numbers fix <I>a<I>b because I forgot that python needs proper intendation | py |
diff --git a/scheduler/fleet.py b/scheduler/fleet.py
index <HASH>..<HASH> 100644
--- a/scheduler/fleet.py
+++ b/scheduler/fleet.py
@@ -116,6 +116,9 @@ class FleetHTTPClient(object):
entrypoint = kwargs.get('entrypoint')
if entrypoint:
l.update({'entrypoint': '{}'.format(entrypoint)})
+ ... | fix(client): encode unicode properly for apps:run | py |
diff --git a/madison_axi/axi.py b/madison_axi/axi.py
index <HASH>..<HASH> 100644
--- a/madison_axi/axi.py
+++ b/madison_axi/axi.py
@@ -77,8 +77,8 @@ def move_to(x, y):
"""Moves the pen to a particular position.
Arguments:
- x - a number between -250 and 250.
- y - a number between -180 and 180... | Update x and y size Updated documentation for x direction from <I> to <I> and for y direction from <I> to <I>. | py |
diff --git a/salt/modules/launchctl.py b/salt/modules/launchctl.py
index <HASH>..<HASH> 100644
--- a/salt/modules/launchctl.py
+++ b/salt/modules/launchctl.py
@@ -49,6 +49,10 @@ def _available_services():
file_path = os.path.join(root, filename)
# Follow symbolic links of files in _lau... | ignore broken symlinks in _launchd_paths | py |
diff --git a/tests/commands/envelope_test.py b/tests/commands/envelope_test.py
index <HASH>..<HASH> 100644
--- a/tests/commands/envelope_test.py
+++ b/tests/commands/envelope_test.py
@@ -170,10 +170,10 @@ class TestSignCommand(unittest.TestCase):
@staticmethod
def _make_ui_mock():
"""Create a mock fo... | fix envelope tests This instantiates an actual Envelope object instead of a Mock object for use in the tests for envelope commands. The tests then do not fail when they hit implicit getters of the form envelope['From']. | py |
diff --git a/aerofiles/flarmcfg/writer.py b/aerofiles/flarmcfg/writer.py
index <HASH>..<HASH> 100644
--- a/aerofiles/flarmcfg/writer.py
+++ b/aerofiles/flarmcfg/writer.py
@@ -2,12 +2,15 @@
class Writer:
"""
- A writer for the Flarm configuration file format.
+ A writer for the Flarm configuration file for... | flarmcfg.writer: Improved class docstring | py |
diff --git a/pysat/_meta.py b/pysat/_meta.py
index <HASH>..<HASH> 100644
--- a/pysat/_meta.py
+++ b/pysat/_meta.py
@@ -225,9 +225,13 @@ class Meta(object):
@ho_data.setter
def ho_data(self, new_dict):
self._ho_data = new_dict
-
+
+ @property
def empty(self):
"""Ret... | accounted for empty Meta instances in __setitem__ | py |
diff --git a/gwpy/data/series.py b/gwpy/data/series.py
index <HASH>..<HASH> 100644
--- a/gwpy/data/series.py
+++ b/gwpy/data/series.py
@@ -438,7 +438,7 @@ class Series(Array):
else:
self.xindex[:-other.shape[0]] = self.xindex[other.shape[0]:]
try:
- self.xindex[... | Series.append: fixed bug in appending xindex - don't use value, let astropy sort out the units - use the private variable to raise attributeerror when needed | py |
diff --git a/tests/test_filters.py b/tests/test_filters.py
index <HASH>..<HASH> 100644
--- a/tests/test_filters.py
+++ b/tests/test_filters.py
@@ -37,6 +37,9 @@ def test_filter_sinc():
yield __test, filt, window, num_zeros, precision, rolloff
+def test_filter_load():
+ half_win, precisio... | added dummy test for loading precomputed filters | py |
diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py
index <HASH>..<HASH> 100644
--- a/gns3server/compute/qemu/qemu_vm.py
+++ b/gns3server/compute/qemu/qemu_vm.py
@@ -1723,10 +1723,13 @@ class QemuVM(BaseNode):
patched_qemu = False
if self._legacy_networking:
- ... | Disallow using "legacy networking mode" with Qemu >= <I> | py |
diff --git a/gbdxtools/interface.py b/gbdxtools/interface.py
index <HASH>..<HASH> 100644
--- a/gbdxtools/interface.py
+++ b/gbdxtools/interface.py
@@ -14,9 +14,12 @@ from gbdx_auth import gbdx_auth
class Interface():
gbdx_connection = None
- def __init__(self):
- # This will throw an exception if your .ini fi... | allow explicit credential passing in instantiation | py |
diff --git a/tasks.py b/tasks.py
index <HASH>..<HASH> 100644
--- a/tasks.py
+++ b/tasks.py
@@ -104,7 +104,7 @@ namespace.add_task(docs)
@invoke.task()
def doc8(context):
"Check documentation with doc8"
- context.run('doc8 docs --ignore-path _build')
+ context.run('doc8 docs --ignore-path docs/_build')
nam... | Fix incorrect path in doc8 task | py |
diff --git a/nomenclate/version.py b/nomenclate/version.py
index <HASH>..<HASH> 100644
--- a/nomenclate/version.py
+++ b/nomenclate/version.py
@@ -1 +1 @@
-__version__ = '1.1.5'
+__version__ = '1.1.7' | versioned up to <I> | py |
diff --git a/examples/simple_editor.py b/examples/simple_editor.py
index <HASH>..<HASH> 100644
--- a/examples/simple_editor.py
+++ b/examples/simple_editor.py
@@ -21,6 +21,11 @@ class SimpleEditorWindow(QtGui.QMainWindow, Ui_MainWindow):
QtGui.QMainWindow.__init__(self)
Ui_MainWindow.__init__(self)
... | Move start_server to the top and explain why | py |
diff --git a/scripts/pricefeeds/feedsources.py b/scripts/pricefeeds/feedsources.py
index <HASH>..<HASH> 100644
--- a/scripts/pricefeeds/feedsources.py
+++ b/scripts/pricefeeds/feedsources.py
@@ -40,11 +40,15 @@ class FeedSource() :
return feed
except Exception as e:
print("\n{1} We en... | [feed] !allowFailure should not use the cache | py |
diff --git a/GPflow/tf_wraps.py b/GPflow/tf_wraps.py
index <HASH>..<HASH> 100644
--- a/GPflow/tf_wraps.py
+++ b/GPflow/tf_wraps.py
@@ -25,7 +25,7 @@ from ._settings import settings
import numpy as np
-def eye(N):
+def eye(N): # pragma: no cover
"""
An identitiy matrix
""" | removing deprecated functinos from coverage | py |
diff --git a/pipeline/compilers/__init__.py b/pipeline/compilers/__init__.py
index <HASH>..<HASH> 100644
--- a/pipeline/compilers/__init__.py
+++ b/pipeline/compilers/__init__.py
@@ -29,14 +29,16 @@ class Compiler(object):
compiler = compiler(self.verbose)
if compiler.match_file(path):... | don't compile not outdated file, for fastest development | py |
diff --git a/tests/remotes/s3.py b/tests/remotes/s3.py
index <HASH>..<HASH> 100644
--- a/tests/remotes/s3.py
+++ b/tests/remotes/s3.py
@@ -30,7 +30,13 @@ class S3(Base, CloudURLInfo):
@staticmethod
def _get_storagepath():
- return TEST_AWS_REPO_BUCKET + "/" + str(uuid.uuid4())
+ return (
+ ... | tests: real_s3 fixture: use specific path (#<I>) | py |
diff --git a/is_core/main.py b/is_core/main.py
index <HASH>..<HASH> 100644
--- a/is_core/main.py
+++ b/is_core/main.py
@@ -602,7 +602,11 @@ class UIRESTModelISCore(UIRESTISCoreMixin, RESTModelISCore, UIModelISCore):
def get_list_actions(self, request, obj):
list_actions = super(UIRESTModelISCore, self).... | Fixed generate list actions, edit should be showed only if edit view is available | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ except ImportError:
setup(
name='caliendo',
- version='v2.0.4',
+ version='v2.0.5',
packages=find_packages(),
author='Andrew Kelleher',
author_email='andrew.kelleher@buzzfeed.com', | bumped version to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,18 +1,24 @@
from setuptools import setup
+try:
+ import pypandoc
+ long_description = pypandoc.convert('README.md', 'rst', 'markdown')
+except (ImportError, FileNotFoundError, RuntimeError):
+ #ImportError: pypa... | setup.py now uses pypandoc * setup.py now attempts to use pypandoc to convert README.md to rst for pypi | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.