diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/test_decorators.py b/tests/test_decorators.py
index <HASH>..<HASH> 100644
--- a/tests/test_decorators.py
+++ b/tests/test_decorators.py
@@ -293,6 +293,18 @@ def test_return_modifer():
assert hug.test.get(api, 'hello').data == "world"
assert hello() == 'world'
+ class MarshmellowStyleOb... | Add test for desired marshmellow output support | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -63,5 +63,11 @@ setup(name='libreant',
'install_lib': install_lib,
'develop':develop,
'compileTranslations': compileTranslations },
- entry_points={'console_scripts': ['w... | added classifiers to setup.py | py |
diff --git a/goatools/randseed.py b/goatools/randseed.py
index <HASH>..<HASH> 100644
--- a/goatools/randseed.py
+++ b/goatools/randseed.py
@@ -41,5 +41,9 @@ class RandomSeed32:
"""Print given random seed."""
return "0x{S:08x} = {S:,}".format(S=seed)
+ def get_seed_hexstr(self):
+ """Return... | Add new fnc to get hex seed to be used to name log files | py |
diff --git a/ants/viz/plot.py b/ants/viz/plot.py
index <HASH>..<HASH> 100644
--- a/ants/viz/plot.py
+++ b/ants/viz/plot.py
@@ -2219,6 +2219,8 @@ def plot(
if not isinstance(image, iio.ANTsImage):
raise ValueError("image argument must be an ANTsImage")
+ assert image.sum() > 0, "Image must be non-zero... | Improve viz.plot's input validation There is an implicit assumption in the logic of viz.plot that it's input is non-zero. While this is a reasonable assumption, calling viz.plot on a zero-valued array results in an opaque IndexError. Make the assumption explicit, and fail with the more descriptive AssertionError "Ima... | py |
diff --git a/metric_learn/itml.py b/metric_learn/itml.py
index <HASH>..<HASH> 100644
--- a/metric_learn/itml.py
+++ b/metric_learn/itml.py
@@ -80,7 +80,8 @@ class ITML(BaseMetricLearner):
X : (n x d) data matrix
each row corresponds to a single instance
constraints : 4-tuple of arrays
- (a,b,c... | Clarified documentation of ITML (resolves #<I>) (#<I>) | py |
diff --git a/PyPtt/version.py b/PyPtt/version.py
index <HASH>..<HASH> 100644
--- a/PyPtt/version.py
+++ b/PyPtt/version.py
@@ -1,3 +1,3 @@
-V = '0.9.7'
+V = '0.9.8' | Adjust version, start to develop get_mail api | py |
diff --git a/txaws/client/base.py b/txaws/client/base.py
index <HASH>..<HASH> 100644
--- a/txaws/client/base.py
+++ b/txaws/client/base.py
@@ -208,6 +208,9 @@ class BaseQuery(object):
bytes.
"""
self.response_headers = headers = response.headers
+ # XXX This workaround (which needs to ... | add comment about silly code for checking request method and then not delivering body | py |
diff --git a/util/batch/general/system.py b/util/batch/general/system.py
index <HASH>..<HASH> 100644
--- a/util/batch/general/system.py
+++ b/util/batch/general/system.py
@@ -714,12 +714,16 @@ class Job():
return False
def __str__(self):
- output_dir = self.output_dir
try:
- j... | BUG: util.batch.general.system.Job: str now also works for closed jobs | py |
diff --git a/indra/sources/omnipath/processor.py b/indra/sources/omnipath/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/omnipath/processor.py
+++ b/indra/sources/omnipath/processor.py
@@ -131,7 +131,7 @@ class OmniPathProcessor(object):
"""Build an Agent object from a Uniprot ID. Adds db_refs fo... | Initialize agent name with up_id as safeguard | py |
diff --git a/pychromecast/__init__.py b/pychromecast/__init__.py
index <HASH>..<HASH> 100644
--- a/pychromecast/__init__.py
+++ b/pychromecast/__init__.py
@@ -175,6 +175,7 @@ class Chromecast(object):
@property
def ignore_cec(self):
+ """ Returns whether the CEC data should be ignored. """
r... | Added docstring Added docstring to ignore_cec property. | py |
diff --git a/pydevd_plugins/jinja2_debug.py b/pydevd_plugins/jinja2_debug.py
index <HASH>..<HASH> 100644
--- a/pydevd_plugins/jinja2_debug.py
+++ b/pydevd_plugins/jinja2_debug.py
@@ -122,13 +122,20 @@ class Jinja2TemplateFrame:
self.f_locals = self.collect_context(frame)
self.f_trace = None
+ def... | Fix Jinja2 template debugger for version <I> (PY-<I>) (cherry picked from commit <I>fb5b) | py |
diff --git a/pandas/conftest.py b/pandas/conftest.py
index <HASH>..<HASH> 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -61,8 +61,10 @@ def pytest_runtest_setup(item):
"skipping high memory test since --run-high-memory was not set")
# if "db" not explicitly set in the -m pattern, we sk... | TST: Fixing bug in skipping db tests by default (#<I>) | py |
diff --git a/umap/tests/test_umap_trustworthiness.py b/umap/tests/test_umap_trustworthiness.py
index <HASH>..<HASH> 100644
--- a/umap/tests/test_umap_trustworthiness.py
+++ b/umap/tests/test_umap_trustworthiness.py
@@ -38,7 +38,7 @@ def test_umap_trustworthiness_fast_approx(nn_data):
).fit_transform(data)
tru... | tighten test_umap_trustworthiness_fast_approx bound | py |
diff --git a/pyked/chemked.py b/pyked/chemked.py
index <HASH>..<HASH> 100644
--- a/pyked/chemked.py
+++ b/pyked/chemked.py
@@ -46,7 +46,7 @@ class ChemKED(object):
file. It stores each datapoint associated with the database and provides access
the the reference information, versions, and file author.
- A... | Change Args in docstring to Arguments to be consistent in chemked.py | py |
diff --git a/symbols/var.py b/symbols/var.py
index <HASH>..<HASH> 100644
--- a/symbols/var.py
+++ b/symbols/var.py
@@ -147,4 +147,9 @@ class SymbolVAR(Symbol):
''' An alias of default value, only available is class_ is CONST
'''
assert self.class_ == CLASS.const
- return self.default_v... | VAR allows value to be set when is const. | py |
diff --git a/bench/process_debug.py b/bench/process_debug.py
index <HASH>..<HASH> 100644
--- a/bench/process_debug.py
+++ b/bench/process_debug.py
@@ -275,7 +275,6 @@ def plotHistogram(dataTask, filename):
if hasattr(vals, 'values'):
for future in vals.values():
times.append(futur... | - Removed extraneous debug information | py |
diff --git a/command/upload.py b/command/upload.py
index <HASH>..<HASH> 100644
--- a/command/upload.py
+++ b/command/upload.py
@@ -89,6 +89,8 @@ class upload(Command):
comment = 'built for %s %s' % (dist, version)
elif command == 'bdist_dumb':
comment = 'built for %s' % platform.p... | Don't set the Python version for sdist uploads. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ setup(
'graphql-core < 3.0, >=2.0',
'graphene < 3.0, >= 2.0',
'botocore >= 1.12.54',
- 'pynamodb >= 4.0.0, <= 5.0.0',
+ 'pynamodb >= 4.0.0, < 5.0.0',
'singledisp... | Restricting pynamodb to < <I> | py |
diff --git a/bonfire/graylog_api.py b/bonfire/graylog_api.py
index <HASH>..<HASH> 100644
--- a/bonfire/graylog_api.py
+++ b/bonfire/graylog_api.py
@@ -36,7 +36,7 @@ class SearchResult(object):
self.fields = result_dict.get("fields", [])
self.total_results = result_dict.get("total_results", None)
- ... | Convert map result as list in search result | py |
diff --git a/src/artist.py b/src/artist.py
index <HASH>..<HASH> 100644
--- a/src/artist.py
+++ b/src/artist.py
@@ -6,7 +6,7 @@ class Artist(Entity):
wraps the artist entity type as described at http://developer.musicmetric.com/timeseries.html
all timeseries are attributes of the form self.<type>_<source>, whi... | musicbrainz IDs are not returned reliably with the existing call structure | py |
diff --git a/vcs.py b/vcs.py
index <HASH>..<HASH> 100644
--- a/vcs.py
+++ b/vcs.py
@@ -57,6 +57,7 @@ git_tag = '{{ status.tag.name }}'\
{% else %}\
git_tag = None\
{% endif %}
+git_branch = '{{ status.branch.name }}'
git_author = "{{ status.author }}"
git_committer = "{{ status.committer }}"
git_is_dirty = {{ sta... | vcs: add branch to version.py | py |
diff --git a/_pytest/__init__.py b/_pytest/__init__.py
index <HASH>..<HASH> 100644
--- a/_pytest/__init__.py
+++ b/_pytest/__init__.py
@@ -1,2 +1,2 @@
#
-__version__ = '2.10.0.dev1'
+__version__ = '3.0.0.dev1' | Set version to <I>.dev1 For a long time now we've considering the next version to be <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,9 @@ exec(open('bidict/metadata.py').read().encode('utf8'), METADATA) # pylint: disa
try:
LONG_DESCRIPTION = open('README.rst').read().replace(
- ':doc:', '(doc:)' # :doc: breaks rendering on PyPI
+ ... | unbreak logo image in long_description for PyPI | py |
diff --git a/pefile.py b/pefile.py
index <HASH>..<HASH> 100644
--- a/pefile.py
+++ b/pefile.py
@@ -1728,7 +1728,7 @@ class PE(object):
self.PE_TYPE = None
if name is None and data is None:
- raise ValueError('must either supply name or data')
+ raise ValueError('Must supply eit... | Tweaked error message in merged PR. | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -16,7 +16,7 @@ if not _qtapp: _qtapp = _qt.QApplication(_os.sys.argv)
# print "Creating QApplication"
# _qtapp = _qt.QApplication(_os.sys.argv)
-print "\nWelcome to spinmob 2014-08-19!\n"
+print "\nWelcom... | removed the spinmob version date (we never change it) | py |
diff --git a/runipy/notebook_runner.py b/runipy/notebook_runner.py
index <HASH>..<HASH> 100644
--- a/runipy/notebook_runner.py
+++ b/runipy/notebook_runner.py
@@ -225,7 +225,5 @@ class NotebookRunner(object):
progress_callback(i)
def count_code_cells(self):
- """
- Return the numbe... | runipy/notebook_runner.py: Put short docstring on one line and add a period at the end. | py |
diff --git a/benchexec/tools/lazycseq.py b/benchexec/tools/lazycseq.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/lazycseq.py
+++ b/benchexec/tools/lazycseq.py
@@ -28,6 +28,7 @@ class Tool(cseq.CSeqTool):
REQUIRED_PATHS = [
"cbmc",
+ "cbmc-5.4",
"core... | Update lazycseq.py | py |
diff --git a/scripts/build_docs.py b/scripts/build_docs.py
index <HASH>..<HASH> 100644
--- a/scripts/build_docs.py
+++ b/scripts/build_docs.py
@@ -69,6 +69,7 @@ def build_docs(root_path: str, docs_dir: str):
nav_subsection = build_docs(relative_path, docs_dir)
if not nav_subsection:
... | recursively sort docs (#<I>) | py |
diff --git a/src/wa_kat/analyzators/language_detector.py b/src/wa_kat/analyzators/language_detector.py
index <HASH>..<HASH> 100755
--- a/src/wa_kat/analyzators/language_detector.py
+++ b/src/wa_kat/analyzators/language_detector.py
@@ -48,8 +48,14 @@ def _detect_languages(index_page):
clean_content = dhtmlparser.... | #6: Fixed bugs in language detector. | py |
diff --git a/src/test/test_one_line_parsers.py b/src/test/test_one_line_parsers.py
index <HASH>..<HASH> 100644
--- a/src/test/test_one_line_parsers.py
+++ b/src/test/test_one_line_parsers.py
@@ -62,6 +62,8 @@ class TestParsers(unittest.TestCase):
lines.append(parsed)
if parsed is not None:
... | Added sub 'time_to' and 'text' assertions. | py |
diff --git a/payu.py b/payu.py
index <HASH>..<HASH> 100644
--- a/payu.py
+++ b/payu.py
@@ -100,12 +100,6 @@ class Experiment(object):
#-----------------
def archive(self):
- """
- Resubmitting may be a failed experiment; it's not practical to
- forecast the PBS submission settings.
- We may ... | Removed the unformatted docstring comment | py |
diff --git a/visidata/loaders/json.py b/visidata/loaders/json.py
index <HASH>..<HASH> 100644
--- a/visidata/loaders/json.py
+++ b/visidata/loaders/json.py
@@ -94,8 +94,8 @@ class _vjsonEncoder(json.JSONEncoder):
super().__init__(sort_keys=options.json_sort_keys, **kwargs)
self.safe_error = options.saf... | [json] fix bug saving cells with nested date values Cells of a JSON sheet are instances of the `Cell` wrapper class, which exposes a display value through its `value` attribute. For cells containing nested JSON, only the outermost value is a `Cell` instance. Inner objects should be stringified directly when encoding/... | py |
diff --git a/source/rafcon/gui/mygaphas/tools.py b/source/rafcon/gui/mygaphas/tools.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/mygaphas/tools.py
+++ b/source/rafcon/gui/mygaphas/tools.py
@@ -141,7 +141,6 @@ class MoveItemTool(gaphas.tool.ItemTool):
# When items are to be moved, a button-pre... | Gaphas: Remove obsolete focus Leftover from a test and introduced in ecc<I>b9fff<I> | py |
diff --git a/django-openstack/django_openstack/dash/views/instances.py b/django-openstack/django_openstack/dash/views/instances.py
index <HASH>..<HASH> 100644
--- a/django-openstack/django_openstack/dash/views/instances.py
+++ b/django-openstack/django_openstack/dash/views/instances.py
@@ -117,12 +117,12 @@ def usage(r... | fixing issue with getting max ram usage | py |
diff --git a/gandi/cli/modules/cert.py b/gandi/cli/modules/cert.py
index <HASH>..<HASH> 100644
--- a/gandi/cli/modules/cert.py
+++ b/gandi/cli/modules/cert.py
@@ -101,6 +101,20 @@ class Certificate(GandiModule):
"""
@classmethod
+ def get_latest_valid(cls, common_name):
+ """ Retrieve valid certif... | Add a method to get the valid cert that will last the longer. | py |
diff --git a/Facade.py b/Facade.py
index <HASH>..<HASH> 100644
--- a/Facade.py
+++ b/Facade.py
@@ -501,6 +501,11 @@ class API_1(object):
This should not be instantiated directly. Use Facade.get_api(version) instead.
"""
+ # GOALS
+ # Provide an API for any plug-in available
+ # Provide an API for a... | Add minor comments about facade goals. svn r<I> | py |
diff --git a/discord/message.py b/discord/message.py
index <HASH>..<HASH> 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -218,7 +218,7 @@ class Message:
def _handle_mention_roles(self, role_mentions):
self.role_mentions = []
if self.guild is not None:
- for role_id in role... | Fix bug with Message.role_mentions always being empty. | py |
diff --git a/cartoframes/__init__.py b/cartoframes/__init__.py
index <HASH>..<HASH> 100644
--- a/cartoframes/__init__.py
+++ b/cartoframes/__init__.py
@@ -1,4 +1,4 @@
-from .context import CartoContext
+from .context import CartoContext, BatchJobStatus
from .credentials import Credentials
from .layer import BaseMap, ... | exposes BatchJobStatus to higher import level | py |
diff --git a/atmos/equations.py b/atmos/equations.py
index <HASH>..<HASH> 100644
--- a/atmos/equations.py
+++ b/atmos/equations.py
@@ -599,6 +599,12 @@ def rv_from_qv_lwv(qv):
return 1.*qv
+@autodoc(equation='rv = RH/100.*rvs')
+@assumes()
+def rv_from_RH_rvs(RH, rvs):
+ return ne.evaluate('RH/100.*rvs')
+
... | added equation for rv from RH and T | py |
diff --git a/runcommands/runner.py b/runcommands/runner.py
index <HASH>..<HASH> 100644
--- a/runcommands/runner.py
+++ b/runcommands/runner.py
@@ -206,7 +206,7 @@ class CommandRunner:
commands = self.load_commands(commands_module)
def find_command():
- for word in reversed(words):
+ ... | [completion] Start from current word when locating command Previously, we looked for the command to show completions for starting from the last word (and going backwards), but that doesn't work when the cursor is moved before a command. E.g., it didn't work for this: run --[CURSOR] local ls because we were looki... | py |
diff --git a/python/test/dev/diff.py b/python/test/dev/diff.py
index <HASH>..<HASH> 100755
--- a/python/test/dev/diff.py
+++ b/python/test/dev/diff.py
@@ -31,7 +31,7 @@ def extract_scala_class(class_path):
exclude_key_words = set(["*", "abstract", "Const", "Fill", "Shape",
"SplitAndSe... | feat: RoiAlign Forward (#<I>) | py |
diff --git a/gpustat/__main__.py b/gpustat/__main__.py
index <HASH>..<HASH> 100644
--- a/gpustat/__main__.py
+++ b/gpustat/__main__.py
@@ -93,7 +93,7 @@ def main(*argv):
if args.interval > 0:
args.interval = max(0.1, args.interval)
if args.json:
- sys.stderr.write("Error: --json and --... | Make flake8 not fail due to line-too-long | py |
diff --git a/angr/analyses/loopfinder.py b/angr/analyses/loopfinder.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/loopfinder.py
+++ b/angr/analyses/loopfinder.py
@@ -137,7 +137,7 @@ class LoopFinder(Analysis):
else:
subg.add_edge(subloop, exit_edge[1])
... | Copy the induced subgraphs when more than just a frozen view is needed | py |
diff --git a/bcbio/broad/picardrun.py b/bcbio/broad/picardrun.py
index <HASH>..<HASH> 100644
--- a/bcbio/broad/picardrun.py
+++ b/bcbio/broad/picardrun.py
@@ -6,7 +6,7 @@ from bcbio.utils import curdir_tmpdir, file_exists
from bcbio.distributed.transaction import file_transaction
-def picard_rnaseq_metrics(picard,... | Add ribosomal RNA file filtering. | py |
diff --git a/evostra/__init__.py b/evostra/__init__.py
index <HASH>..<HASH> 100644
--- a/evostra/__init__.py
+++ b/evostra/__init__.py
@@ -28,9 +28,6 @@ class EvolutionStrategy(object):
def run(self, iterations, print_step=10):
for iteration in range(iterations):
- if iteration % print_step =... | move evaluation to the end of the main loop | py |
diff --git a/owslib/util.py b/owslib/util.py
index <HASH>..<HASH> 100644
--- a/owslib/util.py
+++ b/owslib/util.py
@@ -156,11 +156,20 @@ def http_post(url=None, request=None, lang='en-US'):
r.add_header('Accept-Encoding', 'gzip,deflate')
r.add_header('Host', u.netloc)
up = urllib2.urlopen(r)
... | handle gzip'd HTTP responses correctly (#<I>) | py |
diff --git a/wandb/data_types.py b/wandb/data_types.py
index <HASH>..<HASH> 100644
--- a/wandb/data_types.py
+++ b/wandb/data_types.py
@@ -45,6 +45,7 @@ _glob_datatypes_callback = None
def _datatypes_set_callback(cb):
global _glob_datatypes_callback
_glob_datatypes_callback = cb
+
def _datatypes_callback(fn... | Always re bind to run seq items (#<I>) | py |
diff --git a/variable_types.py b/variable_types.py
index <HASH>..<HASH> 100644
--- a/variable_types.py
+++ b/variable_types.py
@@ -54,8 +54,8 @@ class Variables(dict):
raise TypeError('Missing settings: {}'.format(self.missing_vars()))
def fill(self, *args, full=True, **kwargs):
- self.fill_a... | Slight change on order in Variables.fill; this way, we'll fill kwargs before checking positional args. | py |
diff --git a/test/inventory_level_test.py b/test/inventory_level_test.py
index <HASH>..<HASH> 100644
--- a/test/inventory_level_test.py
+++ b/test/inventory_level_test.py
@@ -1,6 +1,6 @@
import shopify
import json
-import urllib
+from six.moves.urllib.parse import urlencode
from test.test_helper import TestCase
c... | fix tests in python3 | py |
diff --git a/python/ray/services.py b/python/ray/services.py
index <HASH>..<HASH> 100644
--- a/python/ray/services.py
+++ b/python/ray/services.py
@@ -1468,7 +1468,7 @@ def build_java_worker_command(
pairs.append(("ray.redis.password", redis_password))
pairs.append(("ray.home", RAY_HOME))
- pairs.app... | fix java worker log dir (#<I>) | py |
diff --git a/examples/widgets_overview_app.py b/examples/widgets_overview_app.py
index <HASH>..<HASH> 100644
--- a/examples/widgets_overview_app.py
+++ b/examples/widgets_overview_app.py
@@ -227,8 +227,8 @@ class MyApp(App):
result = self.dialog.get_field('ddate').get_value()
self.date.set_value(resul... | Fixed item selection issue in example widgets_overview_app.py. | py |
diff --git a/representatives/models.py b/representatives/models.py
index <HASH>..<HASH> 100644
--- a/representatives/models.py
+++ b/representatives/models.py
@@ -31,12 +31,9 @@ class Representative(models.Model):
birth_date = models.DateField(blank=True, null=True)
cv = models.TextField(blank=True, null=True... | [mod] Do not make Representative an abstract model for now It's not possible to have a ForeignKey pointing on an abstract model, so we have two options to keep Representative: keep in asbtract, and make mandatory to define one and just one class that inherit from it ; have it non abstract, and so having the possibilty... | py |
diff --git a/src/audio_metadata/formats/mp3.py b/src/audio_metadata/formats/mp3.py
index <HASH>..<HASH> 100644
--- a/src/audio_metadata/formats/mp3.py
+++ b/src/audio_metadata/formats/mp3.py
@@ -376,6 +376,7 @@ class MP3StreamInfo(StreamInfo):
if not isinstance(data, DataReader):
data = DataReader(data)
+ def ... | Move mp3 frame detection into separate method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,7 @@ from __future__ import division, print_function
import io
import os
import re
+import sys
from setuptools import find_packages, setup
@@ -97,12 +98,13 @@ setup(
'Environment :: Console',
... | setup.py: Require wheel to run setup Fixes error output "error: invalid command 'bdist_wheel'" when installing from pip (error doesn't prevent successful install). wheel isn't supported on Python <I> (already EOL), so can't require it there. | py |
diff --git a/heron/cli/src/python/utils.py b/heron/cli/src/python/utils.py
index <HASH>..<HASH> 100644
--- a/heron/cli/src/python/utils.py
+++ b/heron/cli/src/python/utils.py
@@ -8,6 +8,8 @@ import tarfile
import contextlib
import getpass
+from heron.common.src.python.color import Log
+
# default environ tag, if n... | log as errors for JAVA_HOME not found | py |
diff --git a/wagtailmenus/models/menus.py b/wagtailmenus/models/menus.py
index <HASH>..<HASH> 100644
--- a/wagtailmenus/models/menus.py
+++ b/wagtailmenus/models/menus.py
@@ -507,7 +507,8 @@ class Menu:
warnings.warn(
"The relative_url() method on custom MenuItem classes "
... | Missed these changes in last commit | py |
diff --git a/xhtml2pdf/util.py b/xhtml2pdf/util.py
index <HASH>..<HASH> 100644
--- a/xhtml2pdf/util.py
+++ b/xhtml2pdf/util.py
@@ -300,7 +300,7 @@ def getSize(value, relative=0, base=None, default=0.0):
# XXX W3C says, use 96pdi
# http://www.w3.org/TR/CSS21/syndata.html#length-units
... | Fixed incorrect calculation when entering "<I>" as value. Now it's acting the same way as "0". | py |
diff --git a/allantools/allantools.py b/allantools/allantools.py
index <HASH>..<HASH> 100644
--- a/allantools/allantools.py
+++ b/allantools/allantools.py
@@ -1180,7 +1180,7 @@ def mtie(data, rate=1.0, data_type="phase", taus=None):
win_min = np.min(rw, axis=1)
tie = win_max - win_min
... | Fix #<I> Type of exception deduced from #<I> | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -50,13 +50,13 @@ class TestCase(unittest.TestCase):
setup_test_logging(self, self.log_level)
- def assertIsTrue(expr, msg=None):
+ def assertIsTrue(self, expr, msg=None):
... | I had slippled into C/C++ for a moment. | py |
diff --git a/json_logic/__init__.py b/json_logic/__init__.py
index <HASH>..<HASH> 100644
--- a/json_logic/__init__.py
+++ b/json_logic/__init__.py
@@ -3,6 +3,9 @@
import sys
from six.moves import reduce
+import logging
+
+logger = logging.getLogger(__name__)
def if_(*args):
@@ -93,7 +96,7 @@ operations = {
... | 'log' goes to logging, not sys.stdout. | py |
diff --git a/RAPIDpy/make_CF_RAPID_output.py b/RAPIDpy/make_CF_RAPID_output.py
index <HASH>..<HASH> 100755
--- a/RAPIDpy/make_CF_RAPID_output.py
+++ b/RAPIDpy/make_CF_RAPID_output.py
@@ -152,16 +152,20 @@ class ConvertRAPIDOutputToCF(object):
id_dim_name = 'FEATUREID'
else:
... | Bug fixes for past RAPID output compatibility. | py |
diff --git a/python/ray/data/dataset.py b/python/ray/data/dataset.py
index <HASH>..<HASH> 100644
--- a/python/ray/data/dataset.py
+++ b/python/ray/data/dataset.py
@@ -632,7 +632,7 @@ class Dataset(Generic[T]):
This assume that the given splits are sorted in ascending order.
"""
if... | Fix equalized split handling of num_splits == num_blocks case. (#<I>) | py |
diff --git a/modelcluster/forms.py b/modelcluster/forms.py
index <HASH>..<HASH> 100644
--- a/modelcluster/forms.py
+++ b/modelcluster/forms.py
@@ -226,6 +226,10 @@ class ClusterFormOptions(ModelFormOptions):
class ClusterFormMetaclass(ModelFormMetaclass):
extra_form_count = 3
+ @classmethod
+ def child_fo... | Add child form class method to allow for overriding form class to use | py |
diff --git a/examples/controller.py b/examples/controller.py
index <HASH>..<HASH> 100644
--- a/examples/controller.py
+++ b/examples/controller.py
@@ -5,6 +5,9 @@ This example:
2. Creates a new model.
3. Deploys an application on the new model.
+Note: 'cloudcred' format to add a model should be:
+cloudcred-<cloudna... | Reverted cloudcred example back to original syntax and Added 2 lines in the example. | py |
diff --git a/etk/timeseries_processor.py b/etk/timeseries_processor.py
index <HASH>..<HASH> 100644
--- a/etk/timeseries_processor.py
+++ b/etk/timeseries_processor.py
@@ -1,6 +1,8 @@
import etk.timeseries.extractSpreadsheet as extractSpreadsheet
from typing import List
from etk.document import Document
+from etk.etk... | adding error handler for timeseries processor | py |
diff --git a/tests/providers/http/sensors/test_http.py b/tests/providers/http/sensors/test_http.py
index <HASH>..<HASH> 100644
--- a/tests/providers/http/sensors/test_http.py
+++ b/tests/providers/http/sensors/test_http.py
@@ -179,14 +179,6 @@ class TestHttpSensor:
mock.call("This endpoint doesn't exis... | Stabilize occasional test_logging_head_error_request failures (#<I>) Sometimes, when the test is executed in parallel it managed to execute the test just 4 times instead of 5 before the timeout and the test failed. This PR stabilizes the test by verifying if just two first times were executed. There is no need to c... | py |
diff --git a/tests/classes_test.py b/tests/classes_test.py
index <HASH>..<HASH> 100755
--- a/tests/classes_test.py
+++ b/tests/classes_test.py
@@ -567,9 +567,13 @@ class GSFontMasterFromFileTest(GSObjectsTestCase):
self.assertEqual('Light', master.name)
master.italicAngle = 11
- # self.assert... | Extend test_name with Condensed Light Italic test | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ with open('CHANGELOG.rst') as changelog_file:
install_requires = [
'requests>=2.11.0',
- 'bigchaindb~=0.9.dev',
+ 'bigchaindb~=0.9',
]
tests_require = [
@@ -40,10 +40,6 @@ docs_require = [
... | Upgrade to BigchainDb server <I> | py |
diff --git a/test/checkers_test.py b/test/checkers_test.py
index <HASH>..<HASH> 100755
--- a/test/checkers_test.py
+++ b/test/checkers_test.py
@@ -12,7 +12,6 @@ import tablet
import utils
from checkers import checker
-from checkers import write_configuration
# Dropping a table inexplicably produces a warning d... | Fixing this test for custom ports too. | py |
diff --git a/document_page/models/document_page.py b/document_page/models/document_page.py
index <HASH>..<HASH> 100644
--- a/document_page/models/document_page.py
+++ b/document_page/models/document_page.py
@@ -32,7 +32,6 @@ class DocumentPage(models.Model):
compute="_compute_content",
inverse="_inver... | Required impossible. Protected method needed Content field can't be required for first document version _create_history is needed for dependencies | py |
diff --git a/abydos/stemmer.py b/abydos/stemmer.py
index <HASH>..<HASH> 100644
--- a/abydos/stemmer.py
+++ b/abydos/stemmer.py
@@ -24,7 +24,7 @@ The stemmer module defines word stemmers including:
- the Porter and Porter2 (Snowball English) stemmers
- Snowball stemmers for German, Dutch, Norwegian, Swedish, a... | removed erroneous apostrophe | py |
diff --git a/CHAID/__init__.py b/CHAID/__init__.py
index <HASH>..<HASH> 100644
--- a/CHAID/__init__.py
+++ b/CHAID/__init__.py
@@ -5,4 +5,4 @@ from .column import NominalColumn, OrdinalColumn, ContinuousColumn
from .stats import Stats
from .invalid_split_reason import InvalidSplitReason
-__version__ = "4.0.0"
+__ve... | Bumped version to <I> | py |
diff --git a/src/postal/forms/de/forms.py b/src/postal/forms/de/forms.py
index <HASH>..<HASH> 100644
--- a/src/postal/forms/de/forms.py
+++ b/src/postal/forms/de/forms.py
@@ -14,3 +14,4 @@ class DEPostalAddressForm(PostalAddressForm):
self.fields.pop('line2')
self.fields.pop('state')
self.fie... | Moved line1 (street) before zip code for german form. | py |
diff --git a/python/ray/autoscaler/command_runner.py b/python/ray/autoscaler/command_runner.py
index <HASH>..<HASH> 100644
--- a/python/ray/autoscaler/command_runner.py
+++ b/python/ray/autoscaler/command_runner.py
@@ -481,9 +481,8 @@ class DockerCommandRunner(SSHCommandRunner):
ssh_options_override=ssh_op... | Fixing basic messup (#<I>) | py |
diff --git a/tests/test_flake8.py b/tests/test_flake8.py
index <HASH>..<HASH> 100644
--- a/tests/test_flake8.py
+++ b/tests/test_flake8.py
@@ -20,6 +20,7 @@ from flake8.api import legacy as flake8
import os
import logging
+# flake8 is logging is really verbose. disable.
logging.disable(logging.CRITICAL) | Commented why to turn of logging in test_flake8 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(name='aguaclara',
- version='0.1.1',
+ version='0.1.2',
description='Open source functions for AguaClara water treatment research and plant de... | Increment version to <I> (#<I>) | py |
diff --git a/src/supy/util/_plot.py b/src/supy/util/_plot.py
index <HASH>..<HASH> 100644
--- a/src/supy/util/_plot.py
+++ b/src/supy/util/_plot.py
@@ -110,7 +110,7 @@ def plot_comp(df_var, fig=None, ax=None):
sns.regplot(
x="Obs",
y="Sim",
- data=df_var,
+ data=df_var_fit,
... | fix issue in comparison plotting, #<I> | py |
diff --git a/salt/roster/cache.py b/salt/roster/cache.py
index <HASH>..<HASH> 100644
--- a/salt/roster/cache.py
+++ b/salt/roster/cache.py
@@ -7,6 +7,7 @@ to access regular minions over ``salt-ssh``.
- grains, pillar, mine data matching
- environment variables
+ - SDB URLs
- IPv6 support
- rost... | cache-roster: one more mention for salt sdb | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ With just a few lines of mBuild code, you can assemble reusable components into
complex molecular systems for molecular dynamics simulations. mBuild is
designed to minimize or even eliminate the need to explicit... | fixed non-ascii character | py |
diff --git a/neopixel.py b/neopixel.py
index <HASH>..<HASH> 100644
--- a/neopixel.py
+++ b/neopixel.py
@@ -19,9 +19,12 @@ import digitalio
from neopixel_write import neopixel_write
try:
- import _pixelbuf
+ import adafruit_pixelbuf
except ImportError:
- import adafruit_pypixelbuf as _pixelbuf
+ try:
+ ... | Update to use adafruit_pixelbuf. | py |
diff --git a/molo/core/tests/test_translations.py b/molo/core/tests/test_translations.py
index <HASH>..<HASH> 100644
--- a/molo/core/tests/test_translations.py
+++ b/molo/core/tests/test_translations.py
@@ -52,7 +52,7 @@ class TestTranslations(TestCase, MoloTestCaseMixin):
# and not the french section
... | ensure failing tests when not using latest wagtail version | py |
diff --git a/certsuite/gaiautils.py b/certsuite/gaiautils.py
index <HASH>..<HASH> 100644
--- a/certsuite/gaiautils.py
+++ b/certsuite/gaiautils.py
@@ -6,8 +6,6 @@ import json
import os
-__all__ = ["Settings", "LockScreen", "Screen"]
-
atoms_dir = os.path.abspath(os.path.join(__file__, os.path.pardir, "atoms")) | fixup! Bug <I>: Disable screen lock, display sleep, and switch on screen in super harness | py |
diff --git a/test/unit/test_utils.py b/test/unit/test_utils.py
index <HASH>..<HASH> 100644
--- a/test/unit/test_utils.py
+++ b/test/unit/test_utils.py
@@ -5,7 +5,7 @@ from pytest import raises
from mock import patch
from ansible_runner.utils import isplaybook, isinventory
-from ansible_runner.utils import dump_arti... | remove unneeded imports exposed by pyflake | py |
diff --git a/grlc.py b/grlc.py
index <HASH>..<HASH> 100755
--- a/grlc.py
+++ b/grlc.py
@@ -79,7 +79,7 @@ def query(user, repo, query_name, content=None):
# If the query is paginated, set link HTTP headers
if pagination:
# Get number of total results
- count = gquery.count_query_results(query, ... | Fixed variable naming for paginated query | py |
diff --git a/lawfactory_utils/urls.py b/lawfactory_utils/urls.py
index <HASH>..<HASH> 100644
--- a/lawfactory_utils/urls.py
+++ b/lawfactory_utils/urls.py
@@ -192,7 +192,7 @@ def clean_url(url):
if url != newurl:
return clean_url(newurl)
- if 'WAspad' in path:
+ if 'WAspad'... | even more url fixing for legifrance | py |
diff --git a/aetros/starter.py b/aetros/starter.py
index <HASH>..<HASH> 100644
--- a/aetros/starter.py
+++ b/aetros/starter.py
@@ -83,6 +83,7 @@ def start_custom(job_backend):
code = subprocess.call(args, stdout=sys.stdout, stderr=sys.stderr)
if code != 0:
raise Exception('Cou... | fixed initial git clone wrong dir | py |
diff --git a/openquake/hazard/opensha.py b/openquake/hazard/opensha.py
index <HASH>..<HASH> 100644
--- a/openquake/hazard/opensha.py
+++ b/openquake/hazard/opensha.py
@@ -451,7 +451,6 @@ class ClassicalMixin(BasePSHAMixin):
curve_writer = hazard_output.create_hazardcurve_writer(
self.job_id, sel... | serialize results as they become available Former-commit-id: 9b1fca<I>d<I>facf2c<I>e7b<I>ca<I>d<I>d | py |
diff --git a/allennlp/training/metrics/evalb_bracketing_scorer.py b/allennlp/training/metrics/evalb_bracketing_scorer.py
index <HASH>..<HASH> 100644
--- a/allennlp/training/metrics/evalb_bracketing_scorer.py
+++ b/allennlp/training/metrics/evalb_bracketing_scorer.py
@@ -3,6 +3,7 @@ from typing import List
import os
i... | make evalb use unique temporary directories per process (#<I>) | py |
diff --git a/bibliopixel/animation/animation.py b/bibliopixel/animation/animation.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/animation/animation.py
+++ b/bibliopixel/animation/animation.py
@@ -67,13 +67,20 @@ class BaseAnimation(object):
def compute_state(self):
if self.threading.stop_event.isSet():... | Simplify logic in animation.py | py |
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index <HASH>..<HASH> 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -3,6 +3,8 @@ import sys
import tempfile
import operator
import functools
+import itertools
+import re
import pkg_resources
@@ -197,6 +199,9 @@ class DirectorySandbox(... | Add support for exempting a path based on a regular expression. --HG-- extra : histedit_source : 2f1f<I>ec1d<I>cb<I>a<I>cfa<I> | py |
diff --git a/intranet/apps/seniors/models.py b/intranet/apps/seniors/models.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/seniors/models.py
+++ b/intranet/apps/seniors/models.py
@@ -19,7 +19,11 @@ class College(models.Model):
class SeniorManager(models.Manager):
def filled(self):
- return Senior.obj... | ignore senior objects that aren't actually seniors | py |
diff --git a/python/vaex/export.py b/python/vaex/export.py
index <HASH>..<HASH> 100644
--- a/python/vaex/export.py
+++ b/python/vaex/export.py
@@ -66,7 +66,7 @@ def _export(dataset_input, dataset_output, random_index_column, path, column_nam
if progress == True:
progress = vaex.utils.progressbar_callable("exportin... | bugfix: exporting with selection and progress bar had wrong progress value | py |
diff --git a/tests/test_pkey.py b/tests/test_pkey.py
index <HASH>..<HASH> 100644
--- a/tests/test_pkey.py
+++ b/tests/test_pkey.py
@@ -470,7 +470,7 @@ class KeyTest(unittest.TestCase):
def test_ed25519_nonbytes_password(self):
# https://github.com/paramiko/paramiko/issues/1039
key = Ed25519Key.fr... | Fix re: pytest upgrade, broke in recent merge | py |
diff --git a/test/test_modem.py b/test/test_modem.py
index <HASH>..<HASH> 100644
--- a/test/test_modem.py
+++ b/test/test_modem.py
@@ -472,6 +472,8 @@ class TestGsmModemDial(unittest.TestCase):
time.sleep(0.05)
if self.modem._mustPollCallStatus:
time.sleep(0.5)... | Slow down unittest somewhat to pick up all notifications | py |
diff --git a/aiotg/bot.py b/aiotg/bot.py
index <HASH>..<HASH> 100644
--- a/aiotg/bot.py
+++ b/aiotg/bot.py
@@ -109,7 +109,7 @@ class TgBot:
logger.info("Server returned %d, retrying in %d sec.", response.status, RETRY_TIMEOUT)
yield from response.release()
yield from asyncio.sleep... | Hopefully this time getUpdates is fixed for real | py |
diff --git a/tests/distributed/test_distributed_registry_integration.py b/tests/distributed/test_distributed_registry_integration.py
index <HASH>..<HASH> 100644
--- a/tests/distributed/test_distributed_registry_integration.py
+++ b/tests/distributed/test_distributed_registry_integration.py
@@ -55,14 +55,17 @@ def test_... | Bump the threshold for distributed test failure tolerance | py |
diff --git a/SpiffWorkflow/bpmn/specs/event_definitions.py b/SpiffWorkflow/bpmn/specs/event_definitions.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/bpmn/specs/event_definitions.py
+++ b/SpiffWorkflow/bpmn/specs/event_definitions.py
@@ -32,6 +32,9 @@ class CatchingEventDefinition(object):
def _accept_message... | _fire method belongs in the parent class. | py |
diff --git a/pyfilemail/__main__.py b/pyfilemail/__main__.py
index <HASH>..<HASH> 100755
--- a/pyfilemail/__main__.py
+++ b/pyfilemail/__main__.py
@@ -155,7 +155,7 @@ https://github.com/apetrynet/pyfilemail',
return args
-if __name__ == '__main__':
+def main():
args = parse_args()
pwd = None
@@ -19... | put all logic in a main function as attempt to get console_scripts in setup.py to work | py |
diff --git a/cirq/devices/grid_qubit.py b/cirq/devices/grid_qubit.py
index <HASH>..<HASH> 100644
--- a/cirq/devices/grid_qubit.py
+++ b/cirq/devices/grid_qubit.py
@@ -41,8 +41,11 @@ class GridQubit(ops.Qid):
self._row = row
self._col = col
+ def __hash__(self):
+ return hash((self.__class_... | Slightly speed up comparison and hashes for GridQubit (#<I>) Review: @viathor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,9 @@
from setuptools import setup
from pyowm import constants
+with open('requirements.txt') as f:
+ requirements = [line for line in f.read().splitlines() if line]
+
setup(
name='pyowm',
version=cons... | Removing lib dependecies duplication (now setup.py reads deps from requirements.txt) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.