diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/collectors/cpu/cpu.py b/src/collectors/cpu/cpu.py
index <HASH>..<HASH> 100644
--- a/src/collectors/cpu/cpu.py
+++ b/src/collectors/cpu/cpu.py
@@ -144,6 +144,7 @@ class CPUCollector(diamond.collector.Collector):
file.close()
metrics = {}
+ metrics['ncpus'] = ncpus
... | (minor) add ncpus metric - amount of CPU threads | py |
diff --git a/aikif/programs.py b/aikif/programs.py
index <HASH>..<HASH> 100644
--- a/aikif/programs.py
+++ b/aikif/programs.py
@@ -1,9 +1,6 @@
-# program.py written by Duncan Murray 18/4/2014
-# part of AIKIF
-# standard set of programs used for each interface in ccd
-# each having the same functions (at this stage ... | updated program.py with correct header and call to file_mapper | py |
diff --git a/leonardo/module/web/widgets/views.py b/leonardo/module/web/widgets/views.py
index <HASH>..<HASH> 100644
--- a/leonardo/module/web/widgets/views.py
+++ b/leonardo/module/web/widgets/views.py
@@ -85,6 +85,7 @@ class WidgetUpdateView(WidgetViewMixin, UpdateView):
def get_context_data(self, **kwargs):
... | Relative path of update view action | py |
diff --git a/figment/cli.py b/figment/cli.py
index <HASH>..<HASH> 100644
--- a/figment/cli.py
+++ b/figment/cli.py
@@ -4,6 +4,7 @@ import readline
import logging
import os
import shutil
+import sys
from functools import wraps
from figment.zone import Zone
@@ -108,5 +109,9 @@ def cli():
.arg('-d', '--deb... | Show usage if no arguments were provided | py |
diff --git a/django_q/conf.py b/django_q/conf.py
index <HASH>..<HASH> 100644
--- a/django_q/conf.py
+++ b/django_q/conf.py
@@ -1,4 +1,5 @@
import logging
+from copy import deepcopy
from signal import signal
from multiprocessing import cpu_count, Queue
@@ -50,6 +51,9 @@ class Conf(object):
# ORM broker
OR... | Fixes issue with rollbar configuration | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,12 @@
from distutils.core import setup
from setuptools import find_packages
+# Read the contents of your README file
+from os import path
+this_directory = path.abspath(path.dirname(__file__))
+with open(path.join(... | Update setup.py to load text from README.md | py |
diff --git a/pymatgen/ext/tests/test_jhu.py b/pymatgen/ext/tests/test_jhu.py
index <HASH>..<HASH> 100644
--- a/pymatgen/ext/tests/test_jhu.py
+++ b/pymatgen/ext/tests/test_jhu.py
@@ -9,6 +9,7 @@ import os
from pymatgen.util.testing import PymatgenTest
from pymatgen.ext.jhu import get_kpoints
from pymatgen.io.vasp.in... | fix jhu issue (#<I>) | py |
diff --git a/cmapPy/clue_api_client/tests/test_pert_queries.py b/cmapPy/clue_api_client/tests/test_pert_queries.py
index <HASH>..<HASH> 100644
--- a/cmapPy/clue_api_client/tests/test_pert_queries.py
+++ b/cmapPy/clue_api_client/tests/test_pert_queries.py
@@ -18,9 +18,9 @@ class TestPertQueries(unittest.TestCase):
... | test_pert_queries.py: use assertEqual, consistent with other code This was suggested by 2to3, and may as well commit it. | py |
diff --git a/psqlparse/nodes/parsenodes.py b/psqlparse/nodes/parsenodes.py
index <HASH>..<HASH> 100644
--- a/psqlparse/nodes/parsenodes.py
+++ b/psqlparse/nodes/parsenodes.py
@@ -30,6 +30,7 @@ class SelectStmt(Statement):
self.sort_clause = build_from_item(obj, 'sortClause')
self.limit_offset = buil... | Extract also the statement's limit count | py |
diff --git a/km3pipe/logger.py b/km3pipe/logger.py
index <HASH>..<HASH> 100644
--- a/km3pipe/logger.py
+++ b/km3pipe/logger.py
@@ -23,6 +23,16 @@ __status__ = "Development"
loggers = {} # this holds all the registered loggers
# logging.basicConfig()
+DEPRECATION = 45
+logging.addLevelName(DEPRECATION, "DEPRECATI... | Add deprecation method to loggers | py |
diff --git a/src/dependencies/_injector.py b/src/dependencies/_injector.py
index <HASH>..<HASH> 100644
--- a/src/dependencies/_injector.py
+++ b/src/dependencies/_injector.py
@@ -59,20 +59,15 @@ class InjectorType(type):
current_attr = attrs_stack.pop()
have_default = False
... | Do not raise the same exception twice. | py |
diff --git a/src/transformers/modeling_tf_t5.py b/src/transformers/modeling_tf_t5.py
index <HASH>..<HASH> 100644
--- a/src/transformers/modeling_tf_t5.py
+++ b/src/transformers/modeling_tf_t5.py
@@ -491,6 +491,7 @@ class TFT5MainLayer(tf.keras.layers.Layer):
all_attentions = all_attentions + (layer_out... | adding back last dropout in TF <I> T5 | py |
diff --git a/autolab_core/yaml_config.py b/autolab_core/yaml_config.py
index <HASH>..<HASH> 100644
--- a/autolab_core/yaml_config.py
+++ b/autolab_core/yaml_config.py
@@ -147,3 +147,17 @@ class YamlConfig(object):
yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG,
lambda loader, node: object_pair... | Added support for iterating over YamlConfig. | py |
diff --git a/nox.py b/nox.py
index <HASH>..<HASH> 100644
--- a/nox.py
+++ b/nox.py
@@ -10,8 +10,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from __future__ import print_function
-
import glob
import os
import shutil | Removing `print()` import in `nox.py`. It is a remnant of a version when `print(..., file=sys.stderr)` was used. | py |
diff --git a/tests/unit/test_cufflinks.py b/tests/unit/test_cufflinks.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_cufflinks.py
+++ b/tests/unit/test_cufflinks.py
@@ -21,11 +21,8 @@ class TestCufflinks(unittest.TestCase):
dirty_fn = os.path.join(self.out_dir, "dirty.gtf")
clean, dirty = cuffli... | Remove some cruft from the cufflinks test. | py |
diff --git a/temperusb/cli.py b/temperusb/cli.py
index <HASH>..<HASH> 100644
--- a/temperusb/cli.py
+++ b/temperusb/cli.py
@@ -46,11 +46,11 @@ def main():
dev.set_sensor_count(int(args.sensor_count))
if args.sensor_ids == 'all':
- args.sensor_ids = range(dev.get_sensor_count())
+ ... | Fix for traceback when multiple devices attached | py |
diff --git a/raiden/transfer/mediated_transfer/state.py b/raiden/transfer/mediated_transfer/state.py
index <HASH>..<HASH> 100644
--- a/raiden/transfer/mediated_transfer/state.py
+++ b/raiden/transfer/mediated_transfer/state.py
@@ -239,14 +239,6 @@ class TargetTransferState(State):
ONCHAIN_UNLOCK = "onchain_unlock"... | Removed unused list of states from target state | py |
diff --git a/scripts/install-dependencies.py b/scripts/install-dependencies.py
index <HASH>..<HASH> 100644
--- a/scripts/install-dependencies.py
+++ b/scripts/install-dependencies.py
@@ -28,7 +28,7 @@ def run(cmd):
# libuv
mkdirp(deps_dir)
## todo: This may not work with older git versions (http://stackoverflow.com/... | uv: upgrade to latest version <I> | py |
diff --git a/uproot/_help.py b/uproot/_help.py
index <HASH>..<HASH> 100644
--- a/uproot/_help.py
+++ b/uproot/_help.py
@@ -1244,7 +1244,7 @@ u"""Interface for interpretations.
Arrays and other collections are filled from ROOT in two stages: raw bytes from each basket are interpreted as a "source" and sources are... | [skip ci] try this | py |
diff --git a/python/tensorflowjs/converters/converter.py b/python/tensorflowjs/converters/converter.py
index <HASH>..<HASH> 100644
--- a/python/tensorflowjs/converters/converter.py
+++ b/python/tensorflowjs/converters/converter.py
@@ -296,7 +296,7 @@ def _parse_quantization_bytes(quantization_bytes):
raise ValueEr... | refactor: fix variable name typo (#<I>) MISC arugments -> arguments | py |
diff --git a/tensorlayer/layers.py b/tensorlayer/layers.py
index <HASH>..<HASH> 100644
--- a/tensorlayer/layers.py
+++ b/tensorlayer/layers.py
@@ -115,13 +115,14 @@ def set_name_reuse(enable=True):
"""
set_keep['name_reuse'] = enable
-def initialize_rnn_state(state):
+def initialize_rnn_state(state, feed_di... | add the feed_dict argument for initialize_rnn_state | py |
diff --git a/src/spead2/__init__.py b/src/spead2/__init__.py
index <HASH>..<HASH> 100644
--- a/src/spead2/__init__.py
+++ b/src/spead2/__init__.py
@@ -349,7 +349,8 @@ class Item(Descriptor):
.. warning:: If you modify a mutable value in-place, the change will
not be detected, and by default :py:meth... | Refine the warning about modifying data in-place. | py |
diff --git a/indra/ontology/bio/ontology.py b/indra/ontology/bio/ontology.py
index <HASH>..<HASH> 100644
--- a/indra/ontology/bio/ontology.py
+++ b/indra/ontology/bio/ontology.py
@@ -231,11 +231,15 @@ class BioOntology(IndraOntology):
# Here we assume if no namespace is given, then
# w... | Fix handling of undefined from/to ns | py |
diff --git a/skyfield/planets.py b/skyfield/planets.py
index <HASH>..<HASH> 100644
--- a/skyfield/planets.py
+++ b/skyfield/planets.py
@@ -16,5 +16,5 @@ uranus = ephemeris.uranus
neptune = ephemeris.neptune
pluto = ephemeris.pluto
-nine_planets = [mercury, venus, earth, mars,
- jupiter, saturn, uranu... | Add `eight_planets` list beside `nine_planets` Just in case Mike Brown ever looks at Skyfield. | py |
diff --git a/src/shellingham/__init__.py b/src/shellingham/__init__.py
index <HASH>..<HASH> 100644
--- a/src/shellingham/__init__.py
+++ b/src/shellingham/__init__.py
@@ -4,7 +4,7 @@ import os
from ._core import ShellDetectionFailure
-__version__ = '1.3.2'
+__version__ = '1.3.3dev0'
def detect_shell(pid=None,... | Prebump to <I>dev0 | py |
diff --git a/pysat/instruments/timed_saber.py b/pysat/instruments/timed_saber.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/timed_saber.py
+++ b/pysat/instruments/timed_saber.py
@@ -3,6 +3,20 @@
(SABER) instrument on the Thermosphere Ionosphere Mesosphere Energetics
Dynamics (TIMED) satellite.
+Properties
... | DOC: move rules of the road to note | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,15 +6,20 @@ from setuptools import setup, find_packages
if sys.argv[-1] == 'test':
nosetests = 'nosetests -v --with-coverage --cover-package=rauth'
+ coverage = ('grep ^TOTAL test.log | grep 100% >/dev/null ||'
+... | enforcing testing coverage requirements | py |
diff --git a/ez_setup.py b/ez_setup.py
index <HASH>..<HASH> 100644
--- a/ez_setup.py
+++ b/ez_setup.py
@@ -344,7 +344,8 @@ def _resolve_version(version):
if version is not LATEST:
return version
- with urlopen('https://pypi.python.org/pypi/setuptools/json') as resp:
+ resp = urlopen('https://pypi.... | Use contextlib.closing for the response | py |
diff --git a/tests/integration/cqlengine/model/test_updates.py b/tests/integration/cqlengine/model/test_updates.py
index <HASH>..<HASH> 100644
--- a/tests/integration/cqlengine/model/test_updates.py
+++ b/tests/integration/cqlengine/model/test_updates.py
@@ -17,6 +17,7 @@ from uuid import uuid4
from mock import patch
... | Skipped test class is C* is lower than <I> | py |
diff --git a/spyder/plugins/ipythonconsole/plugin.py b/spyder/plugins/ipythonconsole/plugin.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole/plugin.py
+++ b/spyder/plugins/ipythonconsole/plugin.py
@@ -443,7 +443,7 @@ class IPythonConsole(SpyderDockablePlugin):
Notes
-----
- ... | IPython console: Remove missing word in docstring | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,7 @@ setup(
long_description=open('README.txt').read(),
install_requires=[
'nose >= 1.0',
+ 'pyaixi >= 1.0'
],
classifiers = [
'Development Status :: 2 - Pre-Alpha', | adding pyaixi to setup as dependancy | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,8 @@
# -*- coding: utf-8 -*-
import os
-
import re
+import sys
+
VERSIONFILE = "folium/__init__.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
@@ -11,6 +12,16 @@ if m... | Easy tag and publish via `setup.py`. | py |
diff --git a/pypercube/time_utils.py b/pypercube/time_utils.py
index <HASH>..<HASH> 100644
--- a/pypercube/time_utils.py
+++ b/pypercube/time_utils.py
@@ -19,12 +19,16 @@ def now():
return datetime.utcnow()
-def yesterday():
- return now() - timedelta(days=1)
+def yesterday(start=None):
+ if start is Non... | time_utils.yesterday and .last_week take an optional start time. | py |
diff --git a/fragments/commands.py b/fragments/commands.py
index <HASH>..<HASH> 100644
--- a/fragments/commands.py
+++ b/fragments/commands.py
@@ -377,8 +377,8 @@ def _main(): # pragma: no cover
print(l)
except StopIteration:
break
- except ExecutionErro... | catch FragmentsError here and print the error also print the error in Python 3 friendly fashion | py |
diff --git a/alot/buffers.py b/alot/buffers.py
index <HASH>..<HASH> 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -158,7 +158,7 @@ class SearchBuffer(Buffer):
Buffer.__init__(self, ui, self.body)
def __str__(self):
- formatstring = '[search] for "%s" (%d thread%s)'
+ formatstring =... | fix: misleading statusline in search mode .. said (n threads) where n was actually the number of matching messages. this is a hotfix that simply changes this string issue #<I> | py |
diff --git a/tests/test_stateful_browser.py b/tests/test_stateful_browser.py
index <HASH>..<HASH> 100644
--- a/tests/test_stateful_browser.py
+++ b/tests/test_stateful_browser.py
@@ -524,7 +524,7 @@ def test_referer_submit_headers(httpbin):
@pytest.mark.parametrize('expected, kwargs', [
pytest.param('/foo', {},... | Fix bs4 deprecation warning > DeprecationWarning: The 'text' argument to find()-type methods is > deprecated. Use 'string' instead. The 'string' argument was added in bs4 <I>, so it will work for all allowed bs4 versions in MechanicalSoup (<I>+). The 'text' argument was deprecated in bs4 <I>. | py |
diff --git a/betfair/models.py b/betfair/models.py
index <HASH>..<HASH> 100644
--- a/betfair/models.py
+++ b/betfair/models.py
@@ -330,6 +330,7 @@ class ItemDescription(BetfairModel):
class ClearedOrderSummary(BetfairModel):
+ bet_outcome = StringType()
event_type_id = StringType()
event_id = StringTy... | Adding the missing field "bet_outcome" Hey mate, According the model definition at [betfair docs](<URL>) for the model *ClearedOrderSummary*, it should contain also the *bet_outcome*. I have added it to save you the pain. Works just fine for me ;) | py |
diff --git a/custom.py b/custom.py
index <HASH>..<HASH> 100644
--- a/custom.py
+++ b/custom.py
@@ -146,13 +146,7 @@ class CustomProperty(StructuredProperty):
# etc.
)
- def _to_top(self, value):
- assert isinstance(value, self._mo... | Upgrade custo.py to the new names. | py |
diff --git a/numina/user.py b/numina/user.py
index <HASH>..<HASH> 100644
--- a/numina/user.py
+++ b/numina/user.py
@@ -156,6 +156,7 @@ def print_obsmode(obsmode):
print '%s: %s' % (obsmode.name, obsmode.summary)
print 'Instrument:', obsmode.instrument
print 'Recipe:', obsmode.recipe
+ print 'Key:', ob... | Observing modes now show their short name (key) | py |
diff --git a/src/tests/unit_tests/test_pred_prob.py b/src/tests/unit_tests/test_pred_prob.py
index <HASH>..<HASH> 100644
--- a/src/tests/unit_tests/test_pred_prob.py
+++ b/src/tests/unit_tests/test_pred_prob.py
@@ -190,6 +190,7 @@ def test_predictive_probability_unobserved(seed=0):
Y = [(N_ROWS, 1, 1.6)]
val ... | Perform type checking for predprob, float not array. | py |
diff --git a/bugwarrior/command.py b/bugwarrior/command.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/command.py
+++ b/bugwarrior/command.py
@@ -82,7 +82,7 @@ def pull(dry_run, flavor, interactive, debug):
)
)
except RuntimeError as e:
- log.critical("Aborted (%s)" % e)
+ log.... | Log exceptions during command execution with their backtrace | py |
diff --git a/bquery/ctable.py b/bquery/ctable.py
index <HASH>..<HASH> 100644
--- a/bquery/ctable.py
+++ b/bquery/ctable.py
@@ -275,7 +275,7 @@ class ctable(bcolz.ctable):
eval_str = ''
previous_value = 1
for col, values \
- in zip(reversed(groupby_cols), reverse... | check for overflow situation and use compound key method | py |
diff --git a/premailer/__init__.py b/premailer/__init__.py
index <HASH>..<HASH> 100644
--- a/premailer/__init__.py
+++ b/premailer/__init__.py
@@ -1,3 +1,3 @@
from premailer import Premailer, transform
-__version__ = '1.2.3'
+__version__ = '1.3.0' | bump to version <I> because of new features | py |
diff --git a/webdriver_test_tools/webdriver/actions/scroll.py b/webdriver_test_tools/webdriver/actions/scroll.py
index <HASH>..<HASH> 100644
--- a/webdriver_test_tools/webdriver/actions/scroll.py
+++ b/webdriver_test_tools/webdriver/actions/scroll.py
@@ -58,7 +58,6 @@ def to_element(driver, element, offset=0, align_to_... | Removed TODO Tested scroll.into_view_fixed_nav() and it appears to be working | py |
diff --git a/pyprophet/levels_contexts.py b/pyprophet/levels_contexts.py
index <HASH>..<HASH> 100644
--- a/pyprophet/levels_contexts.py
+++ b/pyprophet/levels_contexts.py
@@ -492,7 +492,7 @@ def merge_osw(infiles, outfile, templatefile, same_run, merge_post_scored_runs):
if reduced:
merge_oswr(infiles, ... | [FEATURE: Merge UPDATE]: Correct else if statement for def merge_osw | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-from distutils.core import setup
+from setuptools import setup
setup(
name='hyp', | Use setuptools rather than distutils | py |
diff --git a/bcbio/qc/multiqc.py b/bcbio/qc/multiqc.py
index <HASH>..<HASH> 100644
--- a/bcbio/qc/multiqc.py
+++ b/bcbio/qc/multiqc.py
@@ -291,6 +291,11 @@ def _create_config_file(out_dir, samples):
else:
thresholds_hidden.append(t)
+ # Hide coverage unless running full qu... | QC: avoid qualimap coverage thresholds when downsampling Avoids confusing output for coverage results when not using a full BAM. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,7 @@
# $Id$
import os
+import sys
from setuptools import find_packages
from distutils.cmd import Command
@@ -15,6 +16,11 @@ class DisabledTestCommand(Command):
_this_dir = os.path.dirname(__file__)
_l... | Fix for incorrect dateutil version under python 2 | py |
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/__init__.py
+++ b/python/phonenumbers/__init__.py
@@ -146,7 +146,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency
# Version number is taken from the ... | Prep for <I> release | py |
diff --git a/libcnml/__init__.py b/libcnml/__init__.py
index <HASH>..<HASH> 100644
--- a/libcnml/__init__.py
+++ b/libcnml/__init__.py
@@ -27,7 +27,7 @@ logger = logging.getLogger(__name__)
# To change the logging level of libcnml use this code in your program:
# import libcnml
# import logging
-# libcnml.logger.... | [libcnml] typo | py |
diff --git a/tests/unit/modules/timezone_test.py b/tests/unit/modules/timezone_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/timezone_test.py
+++ b/tests/unit/modules/timezone_test.py
@@ -19,6 +19,8 @@ ensure_in_syspath('../../')
# Import Salt Libs
from salt.modules import timezone
+import salt.ext.s... | [PY3] Fix timezone module unit tests When writing to a file, the string needs to be converted to bytes first. | py |
diff --git a/cirq/_version.py b/cirq/_version.py
index <HASH>..<HASH> 100644
--- a/cirq/_version.py
+++ b/cirq/_version.py
@@ -14,4 +14,4 @@
"""Define version number here and read it from setup.py automatically"""
-__version__ = "0.4.0.dev42"
+__version__ = "0.4.0" | Release version <I> (#<I>) | py |
diff --git a/simuvex/procedures/libc___so___6/sleep.py b/simuvex/procedures/libc___so___6/sleep.py
index <HASH>..<HASH> 100644
--- a/simuvex/procedures/libc___so___6/sleep.py
+++ b/simuvex/procedures/libc___so___6/sleep.py
@@ -10,7 +10,7 @@ class sleep(simuvex.SimProcedure):
def run(self, seconds):
#pylin... | Pass the correct number of args to SimTypeInt in sleep | py |
diff --git a/pypeerassets/provider/mintr.py b/pypeerassets/provider/mintr.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/provider/mintr.py
+++ b/pypeerassets/provider/mintr.py
@@ -104,6 +104,7 @@ class Mintr:
for t in raw["transactions"]:
raw["tx"].append(t["tx_hash"])
+ ra... | mintr: return blockheight as integer | py |
diff --git a/lib/webcomment_webinterface.py b/lib/webcomment_webinterface.py
index <HASH>..<HASH> 100644
--- a/lib/webcomment_webinterface.py
+++ b/lib/webcomment_webinterface.py
@@ -53,6 +53,7 @@ from invenio.search_engine import create_navtrail_links, \
get_colID
from invenio.urlutils import redirect_to_url, \... | installation: upgrade to local/CDN MathJax <I> * Updates install script to work with MathJax <I> (from GitHub). Adds new CFG_MATHJAX_HOSTING variable to choose between locally hosted MathJax and CDN served MathJax libraries. (closes #<I>) * Note: local MathJax <I> seems to crash Google Chrome <I> on Linux. YMMV... | py |
diff --git a/anyconfig/backends.py b/anyconfig/backends.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backends.py
+++ b/anyconfig/backends.py
@@ -149,10 +149,12 @@ _PARSERS_BY_TYPE = tuple(_list_parsers_by_type(PARSERS))
_PARSERS_BY_EXT = tuple(_list_parsers_by_extension(PARSERS))
-def _find_by_filepath(filepath,... | refactor: rename .backends._find_by_filepath - rename .backends._find_by_filepath to find_by_filepath - fix the description of its parameter, cps | py |
diff --git a/salt/states/network.py b/salt/states/network.py
index <HASH>..<HASH> 100644
--- a/salt/states/network.py
+++ b/salt/states/network.py
@@ -14,13 +14,12 @@ eth0:
- managed
- enabled: True
- type: eth
- - ipv4:
- - proto: none
- - ipaddress: 10.1.0.1
- - netmask: 255.255.255.0... | Change the sls to show the new yaml format. | py |
diff --git a/swift/storage.py b/swift/storage.py
index <HASH>..<HASH> 100644
--- a/swift/storage.py
+++ b/swift/storage.py
@@ -75,6 +75,7 @@ class SwiftStorage(Storage):
_token_creation_time = 0
_token = ''
name_prefix = setting('SWIFT_NAME_PREFIX', '')
+ full_listing = setting('SWIFT_FULL_LISTING', T... | Optimizes directory listing and ensures retrieve whole listing. (#<I>) | py |
diff --git a/openquake/commonlib/source.py b/openquake/commonlib/source.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/source.py
+++ b/openquake/commonlib/source.py
@@ -171,7 +171,7 @@ class SourceGroup(collections.Sequence):
self.max_mag = max_mag
self.id = id
if sources:
- ... | Sorted by source_id too Former-commit-id: 6b<I>a<I>db<I>e5b<I>ffd<I>c<I>de5c<I>c<I>c | py |
diff --git a/annotationengine/annotation.py b/annotationengine/annotation.py
index <HASH>..<HASH> 100644
--- a/annotationengine/annotation.py
+++ b/annotationengine/annotation.py
@@ -130,7 +130,7 @@ def _import_dataframe_thread(args):
def import_dataframe(db, dataset, annotation_type, df, user_id,
- ... | tweaking block size and number of threads | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,6 +29,7 @@ setup(
zip_safe=False,
platforms='any',
install_requires=[
+ 'setuptools',
'Flask'
],
classifiers=[ | Silence a warning when using zc.buildout: "uses namespace packages but the distribution does not require setuptools" | py |
diff --git a/fbchat_archive_parser/name_resolver.py b/fbchat_archive_parser/name_resolver.py
index <HASH>..<HASH> 100644
--- a/fbchat_archive_parser/name_resolver.py
+++ b/fbchat_archive_parser/name_resolver.py
@@ -156,6 +156,10 @@ class FacebookNameResolver(object):
class DummyNameResolver(FacebookNameResolver):
... | fix dummy parser to not try to go online | py |
diff --git a/emannotationschemas/models.py b/emannotationschemas/models.py
index <HASH>..<HASH> 100644
--- a/emannotationschemas/models.py
+++ b/emannotationschemas/models.py
@@ -17,6 +17,7 @@ from typing import Sequence
import logging
Base = declarative_base()
+FlatBase = declarative_base()
field_column_map = {... | seperate declarative base for flat schemas to allow similar table names | py |
diff --git a/extension.py b/extension.py
index <HASH>..<HASH> 100644
--- a/extension.py
+++ b/extension.py
@@ -31,9 +31,11 @@ class Extension:
the full name of the extension, including any packages -- ie.
*not* a filename or pathname, but Python dotted name
sources : [string]
- list of C... | Revised docstring so 'sources' isn't necessarily all C/C++ files (to accomodate SWIG interface files, resource files, etc.). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ def read(fname):
return io.open(file_path, encoding='utf-8').read()
-version = '0.8.4.dev0'
+version = '0.8.3'
setuptools.setup( | Preparing release <I> | py |
diff --git a/versionner/version.py b/versionner/version.py
index <HASH>..<HASH> 100644
--- a/versionner/version.py
+++ b/versionner/version.py
@@ -139,7 +139,8 @@ class VersionFile():
with tempfile.NamedTemporaryFile(mode="w", delete=False) as fh:
fh.write(str(version))
- shutil.copystat(... | VersionFile.write: copy stat only if src file already exists | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100755
--- a/tests.py
+++ b/tests.py
@@ -193,7 +193,7 @@ class TestUniqueKeys(SaveAndSelect):
def test_two(self):
scraperwiki.sqlite.save(['foo', 'bar'], {"foo": 3, 'bar': 9}, u'Harpo')
observed = scraperwiki.sqlite.execute(
- u'PRA... | Change tests to reflect _unique on the end of unique index names | py |
diff --git a/perceval/_version.py b/perceval/_version.py
index <HASH>..<HASH> 100644
--- a/perceval/_version.py
+++ b/perceval/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.9.10"
+__version__ = "0.9.11" | Update version number to <I> | py |
diff --git a/pliers/stimuli/video.py b/pliers/stimuli/video.py
index <HASH>..<HASH> 100644
--- a/pliers/stimuli/video.py
+++ b/pliers/stimuli/video.py
@@ -86,7 +86,7 @@ class VideoFrameCollectionStim(Stim):
frame_num = self.frame_index[index]
onset = float(frame_num) / self.fps
- if index < s... | fixed oboe in video frame duration calculation | py |
diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUIQt/PySimpleGUIQt.py
+++ b/PySimpleGUIQt/PySimpleGUIQt.py
@@ -456,13 +456,18 @@ class Element():
def Update(self, widget, background_color=None, text_color=None, font=None, visible=None):
... | Window.BringToFront() implemented. Fix for element Update that uses colors | py |
diff --git a/lib/webuser.py b/lib/webuser.py
index <HASH>..<HASH> 100644
--- a/lib/webuser.py
+++ b/lib/webuser.py
@@ -108,7 +108,7 @@ def page_not_authorized(req, referer='', uid='', text='', navtrail='', ln=CFG_SI
@param referer: in case the displayed message propose a login link, this
is the url to retur... | Cleaned page_not_authorized calls. | py |
diff --git a/scs_core/sys/device_id.py b/scs_core/sys/device_id.py
index <HASH>..<HASH> 100644
--- a/scs_core/sys/device_id.py
+++ b/scs_core/sys/device_id.py
@@ -40,7 +40,7 @@ class DeviceID(PersistentJSONable):
model_name = jdict.get('model')
configuration = jdict.get('config')
- serial_num... | Updated DeviceID to accept non-numeric serial numbers. | py |
diff --git a/nidmresults/exporter.py b/nidmresults/exporter.py
index <HASH>..<HASH> 100644
--- a/nidmresults/exporter.py
+++ b/nidmresults/exporter.py
@@ -288,7 +288,9 @@ ons#")
self.doc.wasGeneratedBy(bundle_id, time=str(ctime))
else:
# provn
- self.bundle.wasGeneratedBy(s... | fix: bundle wasGeneratedBy activity Discussed in <URL> | py |
diff --git a/ginga/rv/plugins/Thumbs.py b/ginga/rv/plugins/Thumbs.py
index <HASH>..<HASH> 100644
--- a/ginga/rv/plugins/Thumbs.py
+++ b/ginga/rv/plugins/Thumbs.py
@@ -751,13 +751,16 @@ class Thumbs(GingaPlugin.GlobalPlugin):
xt = self._cmxoff + (col * twd_hplus)
yt = self._cmyoff + (row * twd_vplus) +... | Adjust positioning of text from image in Thumbs | py |
diff --git a/cuttlepool/cuttlepool.py b/cuttlepool/cuttlepool.py
index <HASH>..<HASH> 100644
--- a/cuttlepool/cuttlepool.py
+++ b/cuttlepool/cuttlepool.py
@@ -236,6 +236,12 @@ class PoolConnection(object):
self._connection = connection
self._pool = pool
+ def __enter__(self):
+ return self... | get_connection() can now be used as a context manager (resolve #<I>) | py |
diff --git a/binstar_client/commands/login.py b/binstar_client/commands/login.py
index <HASH>..<HASH> 100644
--- a/binstar_client/commands/login.py
+++ b/binstar_client/commands/login.py
@@ -82,5 +82,7 @@ def add_parser(subparsers):
subparser = subparsers.add_parser('login',
... | DOC: added help string for hostname argument | py |
diff --git a/src/toil/jobStores/azureJobStore.py b/src/toil/jobStores/azureJobStore.py
index <HASH>..<HASH> 100644
--- a/src/toil/jobStores/azureJobStore.py
+++ b/src/toil/jobStores/azureJobStore.py
@@ -350,7 +350,8 @@ class AzureJobStore(AbstractJobStore):
return 'a' + filter(lambda x: x.isalnum(), tableName)... | Fix: Azure job store used incorrect block size | py |
diff --git a/src/gui/run_gui.py b/src/gui/run_gui.py
index <HASH>..<HASH> 100644
--- a/src/gui/run_gui.py
+++ b/src/gui/run_gui.py
@@ -32,7 +32,7 @@ def run_gui(fname = 'C:\Users\Experiment\PycharmProjects\user_data\pythonlab_con
app = QtGui.QApplication(sys.argv)
# fname = 'c:\\b26_tmp\\pythonlab_config_dumm... | Added smart x-axis rescaling (changing units) to plot_pulse --- needs to be teste though | py |
diff --git a/astrobase/hatpilc.py b/astrobase/hatpilc.py
index <HASH>..<HASH> 100644
--- a/astrobase/hatpilc.py
+++ b/astrobase/hatpilc.py
@@ -13,6 +13,7 @@ produced by the HATPI prototype system's image-subtraction photometry pipeline.
import logging
from datetime import datetime
from traceback import format_exc
+i... | hatpilc: minor fix | py |
diff --git a/bandit/backends/smtp.py b/bandit/backends/smtp.py
index <HASH>..<HASH> 100644
--- a/bandit/backends/smtp.py
+++ b/bandit/backends/smtp.py
@@ -16,6 +16,7 @@ class HijackSMTPBackend(HijackBackendMixin, SMTPBackend):
class LogOnlySMTPBackend(LogOnlyBackendMixin, SMTPBackend):
"""
This backend inter... | Update LogOnlySMTPBackend docstring. Not only admin emails are allowed, all approved emails are still sent. | py |
diff --git a/xbee/__init__.py b/xbee/__init__.py
index <HASH>..<HASH> 100644
--- a/xbee/__init__.py
+++ b/xbee/__init__.py
@@ -5,7 +5,7 @@ info@n.io
"""
__title__ = 'xbee'
-__version__ = '2.2.5'
+__version__ = '2.2.4'
__author__ = 'n.io'
__license__ = 'MIT' | Reverting version number to allow Jenkins to bump | py |
diff --git a/PySimpleGUI.py b/PySimpleGUI.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUI.py
+++ b/PySimpleGUI.py
@@ -1481,7 +1481,7 @@ class Button(Element):
self.FileTypes = file_types
self.TKButton = None
self.Target = target
- self.ButtonText = button_text
+ self.ButtonText... | Added Buttons being detected in FindElementWithFocus | py |
diff --git a/multiqc/modules/qualimap/QM_BamQC.py b/multiqc/modules/qualimap/QM_BamQC.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/qualimap/QM_BamQC.py
+++ b/multiqc/modules/qualimap/QM_BamQC.py
@@ -96,9 +96,12 @@ def parse_genome_results(self, f):
for k, r in regexes.items():
r_search = re.search... | Avoid converting bam names to float sometimes an input file will match and be converted to a number - which causes later assumption about about it being a string to fail. fixes #<I> | py |
diff --git a/actstream/models.py b/actstream/models.py
index <HASH>..<HASH> 100644
--- a/actstream/models.py
+++ b/actstream/models.py
@@ -9,9 +9,9 @@ from django.utils.timesince import timesince as djtimesince
from django.contrib.contenttypes.models import ContentType
try:
- from django.core.urlresolvers import... | removed use of depricated @permalink with reverse | py |
diff --git a/openfisca_core/json_to_test_case.py b/openfisca_core/json_to_test_case.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/json_to_test_case.py
+++ b/openfisca_core/json_to_test_case.py
@@ -48,6 +48,10 @@ def check_entity_fields(entity_json, entity_class, valid_roles, tax_benefit_syst
from .ta... | Set plural roles to [] when empty | py |
diff --git a/green/output.py b/green/output.py
index <HASH>..<HASH> 100644
--- a/green/output.py
+++ b/green/output.py
@@ -158,7 +158,7 @@ class GreenStream(object):
def __init__(self, stream, html=False):
self.stream = stream
- if platform.system() == 'Windows':
+ if platform.system() == ... | I don't have any way to combine coverage from a windows source, and windows is the low man on the totem pole, so we'll just not cover the windows-specific junk. | py |
diff --git a/dpark/dependency.py b/dpark/dependency.py
index <HASH>..<HASH> 100644
--- a/dpark/dependency.py
+++ b/dpark/dependency.py
@@ -122,7 +122,8 @@ class HashPartitioner(Partitioner):
return self.partitions
def getPartition(self, key):
- return hash(key) % self.partitions
+ # hash o... | fix hash collision of tuple | py |
diff --git a/scapy.py b/scapy.py
index <HASH>..<HASH> 100755
--- a/scapy.py
+++ b/scapy.py
@@ -4454,7 +4454,7 @@ class TCPOptionsField(StrField):
class DNSStrField(StrField):
def i2m(self, pkt, x):
- x = x.split(".")
+ x = [k[:63] for k in x.split(".")] # Truncate chunks that cannont be encoded (m... | Fixed DNSStrField.i2m() by truncating chunks of more than <I> bytes because they cannot be encoded (ticket #<I>) | py |
diff --git a/embedly/client.py b/embedly/client.py
index <HASH>..<HASH> 100644
--- a/embedly/client.py
+++ b/embedly/client.py
@@ -31,18 +31,20 @@ class Embedly(object):
"""
Initialize the Embedly client
- :param user_agent: User Agent passed to Embedly
- :type user_agent: str
... | Tidying - reorder params and add a documentation line for third param. | py |
diff --git a/pyvim/layout.py b/pyvim/layout.py
index <HASH>..<HASH> 100644
--- a/pyvim/layout.py
+++ b/pyvim/layout.py
@@ -512,7 +512,7 @@ class ReportingProcessor(Processor):
def __init__(self, editor_buffer):
self.editor_buffer = editor_buffer
- def run(self, cli, document, tokens):
+ def run(se... | Prompt-toolkit now sends 'buffer' instead of 'document' as the second argument of Processor.run. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,8 +3,6 @@
from setuptools import setup
from setuptools import find_packages
-import derpibooru
-
setup(
name = "DerPyBooru",
description = "Python bindings for Derpibooru's API", | Removing faulty import As pointed out in #<I>, the import in this is breaking pip because it tries to import requests before it's installed. As far as I can see, this import doesn't do anything, and it installed fine without it. So I request that this line gets removed so this package gets installed correctly through ... | py |
diff --git a/h2o-perf/bench/py/h2oPerf/H2O.py b/h2o-perf/bench/py/h2oPerf/H2O.py
index <HASH>..<HASH> 100644
--- a/h2o-perf/bench/py/h2oPerf/H2O.py
+++ b/h2o-perf/bench/py/h2oPerf/H2O.py
@@ -417,6 +417,12 @@ class H2OCloudNode:
pass
except OSError:
pass
+ try:
+ ... | More logging and tries around H2O shutdown | py |
diff --git a/dipper/models/Genotype.py b/dipper/models/Genotype.py
index <HASH>..<HASH> 100644
--- a/dipper/models/Genotype.py
+++ b/dipper/models/Genotype.py
@@ -62,6 +62,8 @@ class Genotype():
'sequence_variant_affecting_polypeptide_function': 'SO:1000117',
'regulatory_transgene_feature': 'GENO:0000... | add some gene types to genotype. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,7 @@ setup_www_plugin(
'git+poller = buildbot_travis.vcs.git:GitPoller',
'gerrit = buildbot_travis.vcs.gerrit:Gerrit',
'github = buildbot_travis.vcs.github:GitHub',
+ ... | Expose existing GitPb class Support using a different change source to get changes and have the Travis plugin consume those and assume git is used. | py |
diff --git a/cumulus/settings.py b/cumulus/settings.py
index <HASH>..<HASH> 100644
--- a/cumulus/settings.py
+++ b/cumulus/settings.py
@@ -1,4 +1,4 @@
-from pyrax.cf_wrapper.client import CFClient
+from pyrax.object_storage import DEFAULT_CDN_TTL
from django.conf import settings
@@ -16,7 +16,7 @@ CUMULUS = {
... | use new location of DEFAULT_CDN_TTL | py |
diff --git a/tests/test_sanity.py b/tests/test_sanity.py
index <HASH>..<HASH> 100644
--- a/tests/test_sanity.py
+++ b/tests/test_sanity.py
@@ -4,6 +4,7 @@ from pikepdf import _qpdf as qpdf
import os
import platform
import shutil
+import gc
from contextlib import suppress
from shutil import copy
@@ -150,6 +151,7 ... | Insist on garbage collection in keep alive test | py |
diff --git a/bcbio/pipeline/sample.py b/bcbio/pipeline/sample.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/sample.py
+++ b/bcbio/pipeline/sample.py
@@ -116,6 +116,7 @@ def process_alignment(data, alt_input=None):
f1, f2 = postalign.umi_consensus(data)
data["umi_bam"] = dd.get_work_bam(d... | UMIs: avoid marking duplicates after consensus | py |
diff --git a/dvc/remote/base.py b/dvc/remote/base.py
index <HASH>..<HASH> 100644
--- a/dvc/remote/base.py
+++ b/dvc/remote/base.py
@@ -1,6 +1,7 @@
import os
import re
import tempfile
+import posixpath
from dvc.config import Config
from dvc.logger import Logger
@@ -66,7 +67,7 @@ class RemoteBase(object):
... | cloud: use posixpath to manipulate paths | py |
diff --git a/anharmonic/phonon3/conductivity.py b/anharmonic/phonon3/conductivity.py
index <HASH>..<HASH> 100644
--- a/anharmonic/phonon3/conductivity.py
+++ b/anharmonic/phonon3/conductivity.py
@@ -208,7 +208,8 @@ class Conductivity:
pp_eigvecs,
... | Fix isotope grid-point specification | py |
diff --git a/test/test_utils.py b/test/test_utils.py
index <HASH>..<HASH> 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -134,7 +134,7 @@ def test_app(global_conf={}, app_conf={}, test_conf={}):
def skipUnlessExecutable(executable):
if __which(executable):
return lambda func: func
- retur... | Syntax failed on Python <I>. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.