diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/examples/timeseries/qscan.py b/examples/timeseries/qscan.py
index <HASH>..<HASH> 100644
--- a/examples/timeseries/qscan.py
+++ b/examples/timeseries/qscan.py
@@ -58,6 +58,6 @@ ax.colorbar(cmap='viridis', label='Normalized energy')
plot.show()
# Here we can clearly see the trace of a compact binary coal... | examples: trivial improvement to example text | py |
diff --git a/janitor/policy.py b/janitor/policy.py
index <HASH>..<HASH> 100644
--- a/janitor/policy.py
+++ b/janitor/policy.py
@@ -25,7 +25,7 @@ def load(options, path, format='yaml'):
if format == 'yaml':
data = utils.yaml_load(fh.read())
elif format == 'json':
- data = utils.... | more undoing of diet minimization, read json file before parse | py |
diff --git a/openpnm/algorithms/_advection_diffusion.py b/openpnm/algorithms/_advection_diffusion.py
index <HASH>..<HASH> 100644
--- a/openpnm/algorithms/_advection_diffusion.py
+++ b/openpnm/algorithms/_advection_diffusion.py
@@ -88,7 +88,7 @@ class AdvectionDiffusion(ReactiveTransport):
# Calculating A[i,i... | Fixed in _advection_diffusion | py |
diff --git a/cookiecutter/replay.py b/cookiecutter/replay.py
index <HASH>..<HASH> 100644
--- a/cookiecutter/replay.py
+++ b/cookiecutter/replay.py
@@ -13,3 +13,6 @@ from .compat import is_string
def dump(template_name, context):
if not is_string(template_name):
raise TypeError('Template name is required ... | Raise a TypeError if context is not a dict | py |
diff --git a/dipper/sources/ClinVarXML_alpha.py b/dipper/sources/ClinVarXML_alpha.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/ClinVarXML_alpha.py
+++ b/dipper/sources/ClinVarXML_alpha.py
@@ -517,7 +517,8 @@ def write_review_status_scores():
by completing the form that can be downloaded from our ftp site.
... | Actually write out triples to relate review status to score | py |
diff --git a/portend.py b/portend.py
index <HASH>..<HASH> 100644
--- a/portend.py
+++ b/portend.py
@@ -72,13 +72,15 @@ def _check_free_info(af, socktype, proto, canonname, sa, timeout):
# fail fast with a small timeout
s.settimeout(timeout)
s.connect(sa)
- s.close()
except socket.error:
+ return
+ finally:... | Use try/finally to unconditionally close the socket. | py |
diff --git a/tests/unit_tests/context_paths.py b/tests/unit_tests/context_paths.py
index <HASH>..<HASH> 100644
--- a/tests/unit_tests/context_paths.py
+++ b/tests/unit_tests/context_paths.py
@@ -2,5 +2,5 @@ import os
import sys
# Add additional module search paths for the python interpreter to look in
-sys.path.ins... | reorder context paths to allow for class overrides | py |
diff --git a/synapse/lib/storm.py b/synapse/lib/storm.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/storm.py
+++ b/synapse/lib/storm.py
@@ -668,12 +668,7 @@ class Runtime(Configable):
query = Query(data=data, maxtime=maxtime)
- try:
-
- self._runOperFuncs(query, opers)
-
- excep... | Remove a try/except block which called a function which is itself a try/except block. | py |
diff --git a/impala/_thrift_api.py b/impala/_thrift_api.py
index <HASH>..<HASH> 100644
--- a/impala/_thrift_api.py
+++ b/impala/_thrift_api.py
@@ -428,6 +428,9 @@ def get_http_transport(host, port, http_path, timeout=None, use_ssl=False,
transport.setGetCustomHeadersFunc(get_auth_headers)
+ # Without bu... | Add buffering to hs2-http (#<I>) This can lead to ~6x speed up when fetching a large amount of data. For details see: <URL> | py |
diff --git a/tensor2tensor/utils/trainer_lib.py b/tensor2tensor/utils/trainer_lib.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/utils/trainer_lib.py
+++ b/tensor2tensor/utils/trainer_lib.py
@@ -314,7 +314,8 @@ def create_estimator(model_name,
use_tpu=use_tpu,
train_batch_size=batch_size,
... | Default experimental_export_device_assignment to True. This is a workaround for fixing the default graph mismatch (ValueError: prediction values with "inputs: DatasetToSingleElement:0" must be from the default graph.) raised during exporting TPU models. PiperOrigin-RevId: <I> | py |
diff --git a/registrasion/reporting/views.py b/registrasion/reporting/views.py
index <HASH>..<HASH> 100644
--- a/registrasion/reporting/views.py
+++ b/registrasion/reporting/views.py
@@ -236,17 +236,17 @@ def credit_notes(request, form):
@report_view("Attendee", form_type=forms.UserIdForm)
-def attendee(request, f... | Attendee view now uses user_id, like the rest of the app | py |
diff --git a/mutagen/_id3specs.py b/mutagen/_id3specs.py
index <HASH>..<HASH> 100644
--- a/mutagen/_id3specs.py
+++ b/mutagen/_id3specs.py
@@ -333,7 +333,11 @@ class VolumeAdjustmentSpec(Spec):
return value/512.0, data[2:]
def write(self, frame, value):
- return pack('>h', int(round(value * 512))... | tests: fix a test with <I>. struct.pack doesn't raise on overflow there | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,5 +23,13 @@ setup(
# packages=['simpycity','test'],
include_package_data=True,
zip_safe=False,
+ classifiers=[
+ "Development Status :: 4 - Beta",
+ "Intended Audience :: Developers",
+ ... | Adding the classifiers information to the setup.py. | py |
diff --git a/librosa/__init__.py b/librosa/__init__.py
index <HASH>..<HASH> 100644
--- a/librosa/__init__.py
+++ b/librosa/__init__.py
@@ -203,19 +203,25 @@ def logamplitude(S, amin=1e-10, top_db=80.0):
#-- UTILITIES --#
-def frames_to_time(frames, sr=22050, hop_length=64):
+def frames_to_time(frames, sr=22050, ho... | added window-centering to frames_to_time | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -111,12 +111,9 @@ Drop by our `Gitter chat
room <https://gitter.im/PraatParselmouth/Lobby>`__ if you have any
question, remarks, or requests!
-*More information on the
-`**installation** <https://github.com/YannickJadoul/P... | Fixing reStructuredText's unsupported features in setup.py's 'long_description' | py |
diff --git a/hearthstone/enums.py b/hearthstone/enums.py
index <HASH>..<HASH> 100644
--- a/hearthstone/enums.py
+++ b/hearthstone/enums.py
@@ -659,6 +659,7 @@ class MetaDataType(IntEnum):
DAMAGE = 1
HEALING = 2
JOUST = 3
+ CLIENT_HISTORY = 4
# Renamed in 9786 from PowerHistoryMetaData.Type
META_TARGET = TAR... | enums: Add various missing enums members from <I> | py |
diff --git a/plenum/test/restart/test_restart_to_inconsistent_state.py b/plenum/test/restart/test_restart_to_inconsistent_state.py
index <HASH>..<HASH> 100644
--- a/plenum/test/restart/test_restart_to_inconsistent_state.py
+++ b/plenum/test/restart/test_restart_to_inconsistent_state.py
@@ -115,4 +115,4 @@ def test_rest... | Decrease number of pool checking reqs | py |
diff --git a/openquake/risklib/tests/vulnerability_function_test.py b/openquake/risklib/tests/vulnerability_function_test.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/tests/vulnerability_function_test.py
+++ b/openquake/risklib/tests/vulnerability_function_test.py
@@ -143,6 +143,22 @@ class VulnerabilityFunct... | tests/vulnerability_function_test: Added a test to exercise the error condition which is raised when a vuln function has a loss ratio = <I> and a corresponding CoV > <I>. This case is mathematically impossible, so an explicit error should be raised here. | py |
diff --git a/topydo/lib/TodoList.py b/topydo/lib/TodoList.py
index <HASH>..<HASH> 100644
--- a/topydo/lib/TodoList.py
+++ b/topydo/lib/TodoList.py
@@ -124,9 +124,7 @@ class TodoList(TodoListBase):
"""
if config().append_parent_projects():
for project in p_from_todo.projects() ... | Use the append method for adding a project. | py |
diff --git a/mapchete/io_utils/io_funcs.py b/mapchete/io_utils/io_funcs.py
index <HASH>..<HASH> 100644
--- a/mapchete/io_utils/io_funcs.py
+++ b/mapchete/io_utils/io_funcs.py
@@ -98,6 +98,10 @@ def file_bbox(
else:
with rasterio.open(input_file) as inp:
inp_crs = inp.crs
+ try:
+ ... | raise Exception if CRS from input file cannot be read | py |
diff --git a/yt_array.py b/yt_array.py
index <HASH>..<HASH> 100644
--- a/yt_array.py
+++ b/yt_array.py
@@ -339,7 +339,11 @@ class YTArray(np.ndarray):
"""
if obj is None and hasattr(self, 'units'):
return
- self.units = getattr(obj, 'units', None)
+ units = getattr(obj, 'uni... | Ensuring that YTArrays are always attached to a valid unit object. --HG-- branch : yt | py |
diff --git a/_pydevd_bundle/pydevd_api.py b/_pydevd_bundle/pydevd_api.py
index <HASH>..<HASH> 100644
--- a/_pydevd_bundle/pydevd_api.py
+++ b/_pydevd_bundle/pydevd_api.py
@@ -292,8 +292,18 @@ class PyDevdAPI(object):
Removes all the breakpoints from a given file or from all files if filename == '*'.
'... | Fix issue removing breakpoints. | py |
diff --git a/GPy/examples/regression.py b/GPy/examples/regression.py
index <HASH>..<HASH> 100644
--- a/GPy/examples/regression.py
+++ b/GPy/examples/regression.py
@@ -32,6 +32,9 @@ def rogers_girolami_olympics(max_nb_eval_optim=100):
# create simple GP model
m = GPy.models.GP_regression(data['X'],data['Y'])
... | modified the regression demos r they all seem to work now. | py |
diff --git a/salt/returners/couchdb_return.py b/salt/returners/couchdb_return.py
index <HASH>..<HASH> 100644
--- a/salt/returners/couchdb_return.py
+++ b/salt/returners/couchdb_return.py
@@ -198,23 +198,31 @@ def ensure_views():
return set_salt_view( )
# Determine if any views are missing from the desig... | working on get_valid_salt_views. | py |
diff --git a/src/_pytest/setuponly.py b/src/_pytest/setuponly.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/setuponly.py
+++ b/src/_pytest/setuponly.py
@@ -67,11 +67,7 @@ def _show_fixture_action(fixturedef, msg):
tw.write(" (fixtures used: {})".format(", ".join(deps)))
if hasattr(fixturedef, "ca... | Use saferepr for all types | py |
diff --git a/pydsl/Grammar/Definition.py b/pydsl/Grammar/Definition.py
index <HASH>..<HASH> 100644
--- a/pydsl/Grammar/Definition.py
+++ b/pydsl/Grammar/Definition.py
@@ -70,6 +70,7 @@ class RegularExpressionDefinition(GrammarDefinition):
if isinstance(regexp, retype):
self.regexp = regexp
... | Regexps gets the flags from the input regular expression | py |
diff --git a/safe/report/processors/default.py b/safe/report/processors/default.py
index <HASH>..<HASH> 100644
--- a/safe/report/processors/default.py
+++ b/safe/report/processors/default.py
@@ -231,13 +231,7 @@ def create_qgis_template_output(output_path, layout):
context = QgsReadWriteContext()
context.setP... | Use native method to save layout as template | py |
diff --git a/salt/states/group.py b/salt/states/group.py
index <HASH>..<HASH> 100644
--- a/salt/states/group.py
+++ b/salt/states/group.py
@@ -24,6 +24,11 @@ def present(name, gid=None, system=False):
gid
The group id to assign to the named group; if left empty, then the next
available group id w... | salt.states.group.present system arg undocumented | py |
diff --git a/tibiapy/abc.py b/tibiapy/abc.py
index <HASH>..<HASH> 100644
--- a/tibiapy/abc.py
+++ b/tibiapy/abc.py
@@ -14,10 +14,10 @@ class Serializable(abc.ABC):
def __slots_inherited__(cls):
slots = []
for base in cls.__bases__:
- for slot in base.__slots__:
+ for slot in... | Fixed bug with Serializable in Py <I> and lower | py |
diff --git a/api/opentrons/robot/robot.py b/api/opentrons/robot/robot.py
index <HASH>..<HASH> 100755
--- a/api/opentrons/robot/robot.py
+++ b/api/opentrons/robot/robot.py
@@ -112,14 +112,16 @@ def _setup_container(container_name):
# Database.load_container throws ValueError when a container name is not
# fo... | Finished and tested db protections | py |
diff --git a/dipper/models/Dataset.py b/dipper/models/Dataset.py
index <HASH>..<HASH> 100644
--- a/dipper/models/Dataset.py
+++ b/dipper/models/Dataset.py
@@ -153,6 +153,12 @@ class Dataset:
which apparently in theory could lead to blank node ID collisions between the two
graphs.
+
+ Note also that th... | Added comment about (not having) support for metadata for StreamedGraph graphs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,7 @@ setup(
'Operating System :: POSIX',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
+ 'Programming Language :: Python :: 3.5',
'Topic ... | setup: support Python <I> | py |
diff --git a/tests/test_core_data.py b/tests/test_core_data.py
index <HASH>..<HASH> 100644
--- a/tests/test_core_data.py
+++ b/tests/test_core_data.py
@@ -200,6 +200,31 @@ class CoreDataTest(unittest.TestCase):
self.assertEqual(pet3.parent, ob_dog)
self.assertEqual(pet3.parent.name, 'Dog')
+
+ d... | test for core_data parsed from CSV file | py |
diff --git a/msmbuilder/tpt/mfpt.py b/msmbuilder/tpt/mfpt.py
index <HASH>..<HASH> 100644
--- a/msmbuilder/tpt/mfpt.py
+++ b/msmbuilder/tpt/mfpt.py
@@ -130,7 +130,7 @@ def mfpts(msm, sinks=None, lag_time=1., errors='-1'):
populations = _solve_msm_eigensystem(tprob, 1)[1][0]
mfpt... | Update mfpt.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
from setuptools import setup, find_packages
-VERSION = '1.3.7'
+VERSION = '1.3.'
setup(
name='gtwpy',
@@ -17,7 +17,7 @@ setup(
install_requires=[
'sanetime>=4,<5',
... | fix deps for real this time | py |
diff --git a/plaso/engine/knowledge_base.py b/plaso/engine/knowledge_base.py
index <HASH>..<HASH> 100644
--- a/plaso/engine/knowledge_base.py
+++ b/plaso/engine/knowledge_base.py
@@ -417,8 +417,8 @@ class KnowledgeBase(object):
for user_account in system_configuration.user_accounts}
self._windows_eventl... | Changes for extracting Windows EventLog providers #<I> (#<I>) | py |
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/context.py
+++ b/discord/ext/commands/context.py
@@ -152,6 +152,7 @@ class Context(discord.abc.Messageable):
restart: bool
Whether to start the call chain from the ... | [commands] Restart the StringView properly in Context.reinvoke. The old code for some reason assumed that the length of the command would be 1. This is because when I tested this I would use single letter command names and it would "just work" when in reality it was completely incorrect. A reminder to thoroughly test... | py |
diff --git a/fades/parsing.py b/fades/parsing.py
index <HASH>..<HASH> 100644
--- a/fades/parsing.py
+++ b/fades/parsing.py
@@ -249,7 +249,8 @@ def _read_lines(filepath):
nested_filepath = os.path.join(
os.path.dirname(filepath), nested_filename)
yield f... | do not return the line when it's indicating a nested req | py |
diff --git a/spyder/plugins/projects.py b/spyder/plugins/projects.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/projects.py
+++ b/spyder/plugins/projects.py
@@ -226,7 +226,8 @@ class Projects(ProjectExplorerWidget, SpyderPluginMixin):
self.setup_menu_actions()
self.add_to_recent(path)
- ... | Projects: Don't save the list of open files in the Editor when reopening the last project at startup | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -10,7 +10,8 @@ import os
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
-settings.configure(ROOT_URLCONF='django_ulogin.tests.urls',
+settings.configure(DEBUG=True,
+ ROOT_URLCONF='django... | what if run tests in debug mode? | py |
diff --git a/umap/aligned_umap.py b/umap/aligned_umap.py
index <HASH>..<HASH> 100644
--- a/umap/aligned_umap.py
+++ b/umap/aligned_umap.py
@@ -416,6 +416,7 @@ class AlignedUMAP(BaseEstimator):
),
set_op_mix_ratio=get_nth_item_or_val(self.set_op_mix_ratio, self.n_models_),
unique=g... | Final(?) fix for #<I> -- fix the update method as well. | py |
diff --git a/autotest/pst_tests.py b/autotest/pst_tests.py
index <HASH>..<HASH> 100644
--- a/autotest/pst_tests.py
+++ b/autotest/pst_tests.py
@@ -110,12 +110,14 @@ def load_test():
load_fails.append(pst_file)
continue
out_name = os.path.join(temp_dir,pst_file)
+ ... | added a little more stdout to the pst load_test so it doesn't time out on travis | py |
diff --git a/phy/cluster/views/histogram.py b/phy/cluster/views/histogram.py
index <HASH>..<HASH> 100644
--- a/phy/cluster/views/histogram.py
+++ b/phy/cluster/views/histogram.py
@@ -82,10 +82,13 @@ class HistogramView(ScalingMixin, ManualClusteringView):
'set_x_max (%s)' % bin_unit: '%smax' % alias_char,
... | Move FiringRate.x_max attribute from global state to local state | py |
diff --git a/astrobase/varclass/fakelcrecovery.py b/astrobase/varclass/fakelcrecovery.py
index <HASH>..<HASH> 100644
--- a/astrobase/varclass/fakelcrecovery.py
+++ b/astrobase/varclass/fakelcrecovery.py
@@ -1999,7 +1999,7 @@ def plot_periodicvar_recovery_results(
if (precvar['details'][x]['best_recover... | fakelcrecovery: working on plotting per magcol recovery rates | py |
diff --git a/pymatgen/transformations/site_transformations.py b/pymatgen/transformations/site_transformations.py
index <HASH>..<HASH> 100644
--- a/pymatgen/transformations/site_transformations.py
+++ b/pymatgen/transformations/site_transformations.py
@@ -602,7 +602,7 @@ class RadialSiteDistortionTransformation(Abstract... | Matched the attribute to the argument name for MSONable compatibility. | py |
diff --git a/distributions.py b/distributions.py
index <HASH>..<HASH> 100644
--- a/distributions.py
+++ b/distributions.py
@@ -875,6 +875,23 @@ class NegativeBinomial(GibbsSampling):
self.r = np.random.gamma(self.k_0,self.theta_0)
else:
data = flattendata(data)
+ N = len(da... | added in better negbin resampling | py |
diff --git a/salt/states/pip_state.py b/salt/states/pip_state.py
index <HASH>..<HASH> 100644
--- a/salt/states/pip_state.py
+++ b/salt/states/pip_state.py
@@ -474,7 +474,13 @@ def installed(name,
bin_env = env
# If pkgs is present, ignore name
- if not pkgs:
+ if pkgs:
+ if not isinstance(p... | Don't accept non-list input for pkgs arg | py |
diff --git a/ceph_deploy/mon.py b/ceph_deploy/mon.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/mon.py
+++ b/ceph_deploy/mon.py
@@ -44,7 +44,7 @@ def mon_status_check(conn, logger, hostname, args):
logger.error(line)
try:
- return json.loads(b''.join(out).decode('utf-8'))
+ return json.... | mon: no need to decode - already done by remoto | py |
diff --git a/pywb/warcserver/index/cdxobject.py b/pywb/warcserver/index/cdxobject.py
index <HASH>..<HASH> 100644
--- a/pywb/warcserver/index/cdxobject.py
+++ b/pywb/warcserver/index/cdxobject.py
@@ -251,7 +251,11 @@ class CDXObject(OrderedDict):
@classmethod
def json_decode(cls, string):
- return jso... | Ensure CDX status is a string (#<I>) If a CDXJ entry has a status that is an int that can cause problems in multiple places in pywb. This change ensures that int status lines are converted to str. | py |
diff --git a/master/buildbot/test/unit/worker/test_docker.py b/master/buildbot/test/unit/worker/test_docker.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/worker/test_docker.py
+++ b/master/buildbot/test/unit/worker/test_docker.py
@@ -169,7 +169,7 @@ class TestDockerLatentWorker(unittest.TestCase, TestR... | fix flake8 test (remove trailing space) | py |
diff --git a/spyder/utils/ipython/spyder_kernel.py b/spyder/utils/ipython/spyder_kernel.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/ipython/spyder_kernel.py
+++ b/spyder/utils/ipython/spyder_kernel.py
@@ -14,6 +14,7 @@ import os
# Third-party imports
from ipykernel.datapub import publish_data
from ipykernel.ip... | Variable Explorer: Disable canning for Numpy arrays in IPython consoles | py |
diff --git a/tests/unit/modules/test_mysql.py b/tests/unit/modules/test_mysql.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_mysql.py
+++ b/tests/unit/modules/test_mysql.py
@@ -450,7 +450,9 @@ class MySQLTestCase(TestCase, LoaderModuleMockMixin):
connect_mock = MagicMock()
with patch.obj... | Use the `OperationalError` from the salt mysql module intead. The reason is that the exception can come from either MySQLdb or pymysql(which patches sys.modules to behave like MySQLdb). | py |
diff --git a/send2trash/plat_gio.py b/send2trash/plat_gio.py
index <HASH>..<HASH> 100644
--- a/send2trash/plat_gio.py
+++ b/send2trash/plat_gio.py
@@ -5,10 +5,15 @@
# http://www.hardcoded.net/licenses/bsd_license
from gi.repository import GObject, Gio
+from .exceptions import TrashPermissionError
def send2trash(... | Raise TrashPermissionError from gio backend (#<I>) | py |
diff --git a/pianoroll/track.py b/pianoroll/track.py
index <HASH>..<HASH> 100644
--- a/pianoroll/track.py
+++ b/pianoroll/track.py
@@ -160,13 +160,13 @@ class Track(object):
self.lowest_pitch = lowest
- pitch_range = highest - lowest + 1
- if self.pianoroll.shape[1] < pitch_range:
- ... | Change double backquotes to single backquote | py |
diff --git a/testing/run.py b/testing/run.py
index <HASH>..<HASH> 100755
--- a/testing/run.py
+++ b/testing/run.py
@@ -61,7 +61,7 @@ else:
print "\nSummary (total: %d):" % total
print GREEN + " PASS" + NC + ": %d" % ok
-print RED +" FAIL" + NC + ": %d" % (fail + expected_fail)
+print RED +" FAIL" + NC + ": %d (u... | testing: print only unexpected errors number. | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -59,8 +59,7 @@ SSH_SHIM = '''/bin/sh << 'EOF'
fi
done
SALT=/tmp/.salt/salt-call
-
- if [ {{2}} == 'md5' ]
+ if [ {{2... | Duh. Don't depend on bash-isms. | py |
diff --git a/localshop/settings.py b/localshop/settings.py
index <HASH>..<HASH> 100644
--- a/localshop/settings.py
+++ b/localshop/settings.py
@@ -112,7 +112,7 @@ class Base(Settings):
)
# Make this unique, and don't share it with anybody.
- SECRET_KEY = ''
+ SECRET_KEY = 'CHANGE-ME'
# List of ... | Fix init command failing due to empty SECRET_KEY | py |
diff --git a/cwltool/workflow.py b/cwltool/workflow.py
index <HASH>..<HASH> 100644
--- a/cwltool/workflow.py
+++ b/cwltool/workflow.py
@@ -246,6 +246,7 @@ class WorkflowJob(object):
_logger.info(u"[%s] completed %s", step.name, processStatus)
step.completed = True
+ self.made_progress = T... | Receiving output counts as making progress. (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ def main():
# Tools and analysis
'machine': ['pytz', 'tzlocal', 'tweepy', 'ndex2',
'pyyaml', 'click'],
- 'exp... | Update setup.py for external paths-graph install | py |
diff --git a/tests/test_process_exec.py b/tests/test_process_exec.py
index <HASH>..<HASH> 100644
--- a/tests/test_process_exec.py
+++ b/tests/test_process_exec.py
@@ -1,5 +1,4 @@
import test.support
-from .script_helper import assert_python_ok
# Skip tests if _multiprocessing wasn't built.
test.support.import_modu... | FIX version in test python_ok | py |
diff --git a/bids/layout/layout.py b/bids/layout/layout.py
index <HASH>..<HASH> 100644
--- a/bids/layout/layout.py
+++ b/bids/layout/layout.py
@@ -191,8 +191,8 @@ class BIDSLayout(object):
def __init__(self, root, validate=True, absolute_paths=True,
derivatives=False, config=None, sources=None, i... | Add DeprecationWarning for database_file | py |
diff --git a/spiketoolkit/preprocessing/resample.py b/spiketoolkit/preprocessing/resample.py
index <HASH>..<HASH> 100644
--- a/spiketoolkit/preprocessing/resample.py
+++ b/spiketoolkit/preprocessing/resample.py
@@ -41,6 +41,19 @@ class ResampleRecording(BasePreprocessorRecordingExtractor):
def get_dtype(self, retu... | Override time_to_frame and frame_to_time in resample | py |
diff --git a/instana/version.py b/instana/version.py
index <HASH>..<HASH> 100644
--- a/instana/version.py
+++ b/instana/version.py
@@ -1,3 +1,3 @@
# Module version file. Used by setup.py and snapshot reporting.
-VERSION = '1.30.0'
+VERSION = '1.30.1' | Bump package version <I> | py |
diff --git a/steamfiles/appinfo.py b/steamfiles/appinfo.py
index <HASH>..<HASH> 100644
--- a/steamfiles/appinfo.py
+++ b/steamfiles/appinfo.py
@@ -12,7 +12,7 @@ def load(fp):
def loads(content):
if not isinstance(content, (bytes, bytearray)):
- raise TypeError('the Appinfo object must be a bytes-like obj... | Change the wording in an Appinfo type-check when loading data | py |
diff --git a/pysat/instruments/sw_f107.py b/pysat/instruments/sw_f107.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/sw_f107.py
+++ b/pysat/instruments/sw_f107.py
@@ -674,10 +674,6 @@ def rewrite_daily_file(year, outfile, lines):
"""
- # Parse text to get the date the prediction was generated
- d... | BUG: Removed date parse that was unused and didn't work for 'prelim' data | py |
diff --git a/yotta/test/cli/publish.py b/yotta/test/cli/publish.py
index <HASH>..<HASH> 100644
--- a/yotta/test/cli/publish.py
+++ b/yotta/test/cli/publish.py
@@ -80,7 +80,6 @@ class TestCLIPublish(unittest.TestCase):
f.write(Public_Module_JSON)
stdout, stderr, status = cli.run(['-n', '--target', ... | remove debug printing from passing test outpu | py |
diff --git a/cirq-ionq/cirq_ionq/ionq_client.py b/cirq-ionq/cirq_ionq/ionq_client.py
index <HASH>..<HASH> 100644
--- a/cirq-ionq/cirq_ionq/ionq_client.py
+++ b/cirq-ionq/cirq_ionq/ionq_client.py
@@ -136,7 +136,7 @@ class _IonQClient:
def request():
return requests.post(f'{self.url}/jobs', json=jso... | IonQ: Log POST body for job submission (#<I>) | py |
diff --git a/salt/modules/status.py b/salt/modules/status.py
index <HASH>..<HASH> 100644
--- a/salt/modules/status.py
+++ b/salt/modules/status.py
@@ -155,8 +155,10 @@ def uptime():
raise CommandExecutionError("File {ut_path} was not found.".format(ut_path=ut_path))
ut_ret['seconds'] = int(float(o... | status.uptime - avoid nawks srand, causes problems on smartos | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,9 @@ setup(
url='http://github.com/tswicegood/Dolt/',
packages=packages,
package_data={'dolt': data_files},
+ install_requires=[
+ "httplib2",
+ ],
classifiers=[
'Development... | add install_requires to make sure httplib2 is added | py |
diff --git a/pyqode/core/api/code_edit.py b/pyqode/core/api/code_edit.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/api/code_edit.py
+++ b/pyqode/core/api/code_edit.py
@@ -372,7 +372,7 @@ class CodeEdit(QtWidgets.QPlainTextEdit):
self.selectionChanged.connect(self.update)
self.setMouseTracking(Tr... | Do not set center on scroll. Looks better when reopeining document and going to last line | py |
diff --git a/coconut/compiler/header.py b/coconut/compiler/header.py
index <HASH>..<HASH> 100644
--- a/coconut/compiler/header.py
+++ b/coconut/compiler/header.py
@@ -532,7 +532,7 @@ class _coconut_partial(object):'''
return _coconut.repr(self.func) + "$(" + ", ".join(args) + ")"
def datamaker(data_type):
... | Fix datamaker on starred data types | py |
diff --git a/playhouse/tests/test_sqlite_ext.py b/playhouse/tests/test_sqlite_ext.py
index <HASH>..<HASH> 100644
--- a/playhouse/tests/test_sqlite_ext.py
+++ b/playhouse/tests/test_sqlite_ext.py
@@ -26,6 +26,8 @@ ext_db = database_initializer.get_database(
CLOSURE_EXTENSION = os.environ.get('CLOSURE_EXTENSION')
+i... | Check for closure.so in project root. | py |
diff --git a/serenata_toolbox/datasets/downloader.py b/serenata_toolbox/datasets/downloader.py
index <HASH>..<HASH> 100644
--- a/serenata_toolbox/datasets/downloader.py
+++ b/serenata_toolbox/datasets/downloader.py
@@ -39,7 +39,7 @@ class Downloader:
'2017-03-20-purchase-suppliers.xz',
'2017-04-27-com... | Rename new companies dataset (no geolocation) | py |
diff --git a/isochrones/observation.py b/isochrones/observation.py
index <HASH>..<HASH> 100644
--- a/isochrones/observation.py
+++ b/isochrones/observation.py
@@ -307,7 +307,7 @@ class ObsNode(Node):
"""
if self._Nstars is None:
N = {}
- for n in self.leaves:
+ for n... | fixed Nstars to get correct model nodes | py |
diff --git a/charmhelpers/fetch/giturl.py b/charmhelpers/fetch/giturl.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/fetch/giturl.py
+++ b/charmhelpers/fetch/giturl.py
@@ -15,7 +15,7 @@
# along with charm-helpers. If not, see <http://www.gnu.org/licenses/>.
import os
-from subprocess import check_call
+from sub... | Ensure that any errors from external calls to git are handled correctly | py |
diff --git a/gwpy/timeseries/core.py b/gwpy/timeseries/core.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/core.py
+++ b/gwpy/timeseries/core.py
@@ -21,12 +21,10 @@
from __future__ import (division, print_function)
-import os
import sys
import warnings
import re
-from math import (ceil, log)
-from dateuti... | timeseries.core: removed some unused imports | py |
diff --git a/pycdlib/udf.py b/pycdlib/udf.py
index <HASH>..<HASH> 100644
--- a/pycdlib/udf.py
+++ b/pycdlib/udf.py
@@ -2574,6 +2574,7 @@ class UDFFileEntry(object):
self.extended_attr_icb.record(),
self.impl_ident.record(), self.unique_id,
... | Make sure to write out extended_attrs if they exist. | py |
diff --git a/periphery/gpio.py b/periphery/gpio.py
index <HASH>..<HASH> 100644
--- a/periphery/gpio.py
+++ b/periphery/gpio.py
@@ -674,6 +674,8 @@ class CdevGPIO(GPIO):
def write(self, value):
if not isinstance(value, bool):
raise TypeError("Invalid value type, should be bool.")
+ elif... | gpio: check direction in write(), poll(), read_event() in cdev implementation closes #<I>. closes #<I>. Modifications to original commit: * Reworded error messages and used None for errno * Used internal `self._direction` state instead of getter * Moved direction checks after type checks in write() and po... | py |
diff --git a/bot/api/domain.py b/bot/api/domain.py
index <HASH>..<HASH> 100644
--- a/bot/api/domain.py
+++ b/bot/api/domain.py
@@ -76,9 +76,6 @@ class Message(OutApiObject):
self.reply_to_message(message)
return self
- def new_text(self, text):
- self.data["text"] = text
-
def set_mes... | Remove new_text from Message, as it is no longer being used | py |
diff --git a/salt/modules/chroot.py b/salt/modules/chroot.py
index <HASH>..<HASH> 100644
--- a/salt/modules/chroot.py
+++ b/salt/modules/chroot.py
@@ -242,7 +242,11 @@ def _create_and_execute_salt_state(root, chunks, file_refs, test, hash_type):
# Create the tar containing the state pkg and relevant files.
sa... | Add changes suggested by pre-commit | py |
diff --git a/anyconfig/globals.py b/anyconfig/globals.py
index <HASH>..<HASH> 100644
--- a/anyconfig/globals.py
+++ b/anyconfig/globals.py
@@ -6,7 +6,7 @@ import logging
AUTHOR = 'Satoru SATOH <ssat@redhat.com>'
-VERSION = "0.0.3.10"
+VERSION = "0.0.3.9"
_LOGGING_FORMAT = "%(asctime)s %(name)s: [%(levelname)s] ... | revert version bump up to <I>: I merged many updates since then, so have to check carefully more before the next release | py |
diff --git a/holoviews/core/pprint.py b/holoviews/core/pprint.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/pprint.py
+++ b/holoviews/core/pprint.py
@@ -70,7 +70,9 @@ class InfoPrinter(object):
isclass = isinstance(obj, type)
name = obj.__name__ if isclass else obj.__class__.__name__
p... | Improved the titles used by Store.info and %%output info=True | py |
diff --git a/tests/test_memo.py b/tests/test_memo.py
index <HASH>..<HASH> 100644
--- a/tests/test_memo.py
+++ b/tests/test_memo.py
@@ -1,6 +1,7 @@
import unittest
import os
from pprint import pprint
+from itertools import cycle
from bitsharesbase.account import BrainKey, Address, PublicKey, PrivateKey
from bitshar... | [test] Go thru all the private keys and test shared secrets (#<I>) | py |
diff --git a/sparklingpandas/groupby.py b/sparklingpandas/groupby.py
index <HASH>..<HASH> 100644
--- a/sparklingpandas/groupby.py
+++ b/sparklingpandas/groupby.py
@@ -251,7 +251,7 @@ class GroupBy:
if not columns:
columns = self._columns
from pyspark.sql import functions as F
- agg... | oops syntax is alias | py |
diff --git a/omemo/implementations/jsonfilestorage.py b/omemo/implementations/jsonfilestorage.py
index <HASH>..<HASH> 100644
--- a/omemo/implementations/jsonfilestorage.py
+++ b/omemo/implementations/jsonfilestorage.py
@@ -59,7 +59,7 @@ class JSONFileStorage(Storage):
@staticmethod
def getHashForBareJID(bar... | JSONFileStorage: Prevent from choking on non-ascii characters in JIDs | py |
diff --git a/tools/protoc-gen-mypy.py b/tools/protoc-gen-mypy.py
index <HASH>..<HASH> 100755
--- a/tools/protoc-gen-mypy.py
+++ b/tools/protoc-gen-mypy.py
@@ -22,7 +22,7 @@ try:
import six
from google.protobuf.compiler import plugin_pb2 as plugin # type: ignore
except ImportError as e:
- print('Failed to... | Print protobuf type stubs warning to stderr (#<I>) output printed to stdout needs to follow the protobuf format | py |
diff --git a/jobtastic/tests/test_broker_fallbacks.py b/jobtastic/tests/test_broker_fallbacks.py
index <HASH>..<HASH> 100644
--- a/jobtastic/tests/test_broker_fallbacks.py
+++ b/jobtastic/tests/test_broker_fallbacks.py
@@ -80,7 +80,7 @@ class BrokenBrokerTestCase(TestCase):
# 'unresponsive'
# We need ... | Went back to a real broker. | py |
diff --git a/meshio/msh_io.py b/meshio/msh_io.py
index <HASH>..<HASH> 100644
--- a/meshio/msh_io.py
+++ b/meshio/msh_io.py
@@ -118,19 +118,20 @@ def read_buffer(f):
# idea how to store the data in an array yet since it can be
# "sparse", i.e., not all cells need to have the same number... | fix msh reading with 0 tags | py |
diff --git a/blinkpy/api.py b/blinkpy/api.py
index <HASH>..<HASH> 100644
--- a/blinkpy/api.py
+++ b/blinkpy/api.py
@@ -57,8 +57,8 @@ def request_system_disarm(blink, network):
def request_command_status(blink, network, command_id):
"""Request command status."""
url = "{}/network/{}/command/{}".format(blink.u... | fix indentation for method request_command_status | py |
diff --git a/basic_cms/tests/test_api.py b/basic_cms/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/basic_cms/tests/test_api.py
+++ b/basic_cms/tests/test_api.py
@@ -31,7 +31,7 @@ class CMSPagesApiTests(TestCase):
self.assertEqual(response.status_code, 404)
response = self.client.get(reverse('bas... | python <I> support #5 | py |
diff --git a/abydos/phones/_phones.py b/abydos/phones/_phones.py
index <HASH>..<HASH> 100644
--- a/abydos/phones/_phones.py
+++ b/abydos/phones/_phones.py
@@ -813,7 +813,7 @@ def cmp_features(feat1, feat2, weights=None):
"""
if feat1 < 0 or feat2 < 0:
- return -1.0
+ return 0.0
if feat1 =... | if a phone is unknown, this should return <I> (complete dissimilarity) | py |
diff --git a/src/sentry_plugins/jira/plugin.py b/src/sentry_plugins/jira/plugin.py
index <HASH>..<HASH> 100644
--- a/src/sentry_plugins/jira/plugin.py
+++ b/src/sentry_plugins/jira/plugin.py
@@ -328,8 +328,15 @@ class JiraPlugin(CorePluginMixin, IssuePlugin2):
# if JIRA user doesn't have proper permission ... | handle unauthorized errors in autocomplete (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.\
setup(
name="python-mpd",
- version="0.1.0",
+ version="0.2.0",
description="Python MPD client library",
long_descri... | setup.py: incrementing version number to <I> | py |
diff --git a/glue/lars/cli/__init__.py b/glue/lars/cli/__init__.py
index <HASH>..<HASH> 100644
--- a/glue/lars/cli/__init__.py
+++ b/glue/lars/cli/__init__.py
@@ -141,14 +141,13 @@ class Add(Command):
else:
owner = os.environ["USER"]
- # IFOs -- XXX confusing, so it is required and not in... | Fixed an error message for when adding and no start/end/ifos nor lalcache file are specified. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,6 +24,13 @@ setup(
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
+ 'Prog... | Add supported Python versions to Trove classifiers (closes #<I>) | py |
diff --git a/anchore/anchore-modules/analyzers/32_python_modules.py b/anchore/anchore-modules/analyzers/32_python_modules.py
index <HASH>..<HASH> 100755
--- a/anchore/anchore-modules/analyzers/32_python_modules.py
+++ b/anchore/anchore-modules/analyzers/32_python_modules.py
@@ -98,7 +98,7 @@ try:
e... | handle multiple installations of same python package case | py |
diff --git a/neural/decon.py b/neural/decon.py
index <HASH>..<HASH> 100644
--- a/neural/decon.py
+++ b/neural/decon.py
@@ -247,9 +247,9 @@ class DeconStim(object):
self.AM2 = AM2
-def smooth_decon_to_fwhm(decon,fwhm):
+def smooth_decon_to_fwhm(decon,fwhm,cache=False):
'''takes an input :class:`Decon` ... | starting to update blurtofwhm -- not done | py |
diff --git a/examples/welcome_message.py b/examples/welcome_message.py
index <HASH>..<HASH> 100644
--- a/examples/welcome_message.py
+++ b/examples/welcome_message.py
@@ -29,6 +29,8 @@ args = parser.parse_args()
bot = Bot()
bot.login(username=args.u, password=args.p,
proxy=args.proxy)
+
+follower... | welcome_message.py Bot.followers as a property isn't working | py |
diff --git a/spyder/plugins/ipythonconsole/widgets/main_widget.py b/spyder/plugins/ipythonconsole/widgets/main_widget.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole/widgets/main_widget.py
+++ b/spyder/plugins/ipythonconsole/widgets/main_widget.py
@@ -777,9 +777,6 @@ class IPythonConsoleWidget(Plugin... | IPython Console: Remove current client validation when applying config with restart | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -56,9 +56,11 @@ copyright = u'2017, Forest Gregg, Derek Eder, and contributors'
# built documents.
#
# The short X.Y version.
-version = '1.6'
+import pkg_resources
+version = pkg_resources.require("dedupe")... | try to use pkg_resources to get version of dedupe | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.