diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/build/build_package.py b/build/build_package.py
index <HASH>..<HASH> 100755
--- a/build/build_package.py
+++ b/build/build_package.py
@@ -125,7 +125,7 @@ class Magento_Packager(object):
cdir = os.getcwd()
os.chdir(self._base_dir)
with open(manifest_filename, 'w') as xml_file:
- ... | fix missing xml declaration in package manifest | py |
diff --git a/salt/utils/event.py b/salt/utils/event.py
index <HASH>..<HASH> 100644
--- a/salt/utils/event.py
+++ b/salt/utils/event.py
@@ -479,12 +479,16 @@ class Reactor(multiprocessing.Process, salt.state.Compiler):
'''
react = {}
for fn_ in glob.glob(glob_ref):
- react.update(se... | Fix for #<I> Reacter process get exited with wrong sls | py |
diff --git a/astropy_helpers/setup_helpers.py b/astropy_helpers/setup_helpers.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/setup_helpers.py
+++ b/astropy_helpers/setup_helpers.py
@@ -1109,7 +1109,8 @@ def iter_setup_packages(srcdir, packages):
for packagename in packages:
package_parts = packagena... | Fix a small issue that was preventing the skip_2to3 feature from working correctly | py |
diff --git a/bigfile/tests/test_bigfile.py b/bigfile/tests/test_bigfile.py
index <HASH>..<HASH> 100644
--- a/bigfile/tests/test_bigfile.py
+++ b/bigfile/tests/test_bigfile.py
@@ -123,11 +123,13 @@ def test_grow(comm):
b.grow(size=100, Nfile=2)
b.write(100, data)
+ assert b.size == 200
... | Add assertion on the size of grown files. | py |
diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/oem/lenovo/imm.py
+++ b/pyghmi/ipmi/oem/lenovo/imm.py
@@ -673,7 +673,9 @@ class XCCClient(IMMClient):
if len(rsp['items']) != 1:
raise Exception('Unexpected result: ' + repr(rsp... | Whitelist more core drivers LXPM and associated content also needs to be updated the core way. Change-Id: I0b5eb<I>ad1b<I>bac<I>e0c2ec<I>a<I>da8f<I> | py |
diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cmdmod.py
+++ b/salt/modules/cmdmod.py
@@ -982,8 +982,8 @@ def run(cmd,
.. warning::
For versions 2018.3.3 and above on macosx while using runas,
- to pass special characters to... | doc: escape special characters on linux for cmd.run | py |
diff --git a/models/rasmachine/rasmachine.py b/models/rasmachine/rasmachine.py
index <HASH>..<HASH> 100644
--- a/models/rasmachine/rasmachine.py
+++ b/models/rasmachine/rasmachine.py
@@ -392,6 +392,7 @@ if __name__ == '__main__':
['biopax', 'bel'], policy='none')
no_db_... | Filter top-evel after belief cutoff in Ras Machine | py |
diff --git a/Python/test/phate_test_tree.py b/Python/test/phate_test_tree.py
index <HASH>..<HASH> 100755
--- a/Python/test/phate_test_tree.py
+++ b/Python/test/phate_test_tree.py
@@ -27,7 +27,7 @@ def main(argv=None):
#run phate with nonmetric MDS
phate_operator.reset_mds(mds="nonmetric")
- Y_nmmds = Y_m... | Update phate_test_tree.py | py |
diff --git a/safe_qgis/impact_statistics/function_options_dialog.py b/safe_qgis/impact_statistics/function_options_dialog.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/impact_statistics/function_options_dialog.py
+++ b/safe_qgis/impact_statistics/function_options_dialog.py
@@ -31,6 +31,7 @@ from PyQt4.QtGui import (
... | make minimum needs scrollable in the minimum needs tab | py |
diff --git a/ubireader/ubi_io/__init__.py b/ubireader/ubi_io/__init__.py
index <HASH>..<HASH> 100755
--- a/ubireader/ubi_io/__init__.py
+++ b/ubireader/ubi_io/__init__.py
@@ -192,7 +192,7 @@ class leb_virtual_file():
try:
self._last_read_addr = self._ubi.blocks[self._blocks[leb]].file_offset + s... | Changed leb_virtual_file read exception to general exception. | py |
diff --git a/src/ai/backend/client/request.py b/src/ai/backend/client/request.py
index <HASH>..<HASH> 100644
--- a/src/ai/backend/client/request.py
+++ b/src/ai/backend/client/request.py
@@ -239,7 +239,7 @@ class Request:
'Disallowed HTTP method: {}'.format(self.method)
self.date = datetime.now... | Do not update Content-Type when it is pre-set | py |
diff --git a/blog/management/commands/wordpress_to_wagtail.py b/blog/management/commands/wordpress_to_wagtail.py
index <HASH>..<HASH> 100755
--- a/blog/management/commands/wordpress_to_wagtail.py
+++ b/blog/management/commands/wordpress_to_wagtail.py
@@ -160,6 +160,8 @@ class Command(BaseCommand):
path, fi... | Don't import embedded as base<I> data images. | py |
diff --git a/dplython/dplython.py b/dplython/dplython.py
index <HASH>..<HASH> 100644
--- a/dplython/dplython.py
+++ b/dplython/dplython.py
@@ -247,9 +247,8 @@ def CreateLaterFunction(fcn, *args, **kwargs):
def DelayFunction(fcn):
def DelayedFcnCall(*args, **kwargs):
# Check to see if any args or kw are Later. ... | fixing bug in DelayFunction | py |
diff --git a/osmnx/core.py b/osmnx/core.py
index <HASH>..<HASH> 100644
--- a/osmnx/core.py
+++ b/osmnx/core.py
@@ -982,6 +982,7 @@ def truncate_graph_bbox(G, north, south, east, west, truncate_by_edge=False, ret
y = G.nodes[neighbor]['y']
if y < north and y > south and x < east... | (Very) minor optimization Stops it from searching through the rest of the neighbors after finding at least one neighbor lying inside the BBOX. The possible speedup might be unnoticeable in most cases with sparse networks. | py |
diff --git a/modin/pandas/test/test_groupby.py b/modin/pandas/test/test_groupby.py
index <HASH>..<HASH> 100644
--- a/modin/pandas/test/test_groupby.py
+++ b/modin/pandas/test/test_groupby.py
@@ -114,6 +114,8 @@ def test_mixed_dtypes_groupby(as_index):
# TODO Add more apply functions
apply_functions ... | Workaround for bug Pandas bug #<I> Recreate groupby object before apply because other functions affected its internals. | py |
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/utils/__init__.py
+++ b/salt/utils/__init__.py
@@ -703,7 +703,7 @@ def backup_minion(path, bkroot):
dname, bname = os.path.split(path)
fstat = os.stat(path)
msecs = str(int(time.time() * 1000000))[-6:]
- ... | using strftime instead of asctime in backup_minion | py |
diff --git a/deis/__init__.py b/deis/__init__.py
index <HASH>..<HASH> 100644
--- a/deis/__init__.py
+++ b/deis/__init__.py
@@ -6,4 +6,4 @@ the api, provider, cm, and web Django apps.
from __future__ import absolute_import
-__version__ = '0.15.0+git'
+__version__ = '0.15.1' | chore(release): update version to <I> | py |
diff --git a/panels/_version.py b/panels/_version.py
index <HASH>..<HASH> 100644
--- a/panels/_version.py
+++ b/panels/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.0.11"
+__version__ = "0.0.12" | Update version number to <I> | py |
diff --git a/gnsq/reader.py b/gnsq/reader.py
index <HASH>..<HASH> 100644
--- a/gnsq/reader.py
+++ b/gnsq/reader.py
@@ -487,7 +487,7 @@ class Reader(object):
# first set RDY 0 to all connections that have not received a message
# within a configurable timeframe (low_ready_idle_timeout).
- for ... | Handle changing connections during redistribute ready | py |
diff --git a/emencia_paste_djangocms_3/__init__.py b/emencia_paste_djangocms_3/__init__.py
index <HASH>..<HASH> 100644
--- a/emencia_paste_djangocms_3/__init__.py
+++ b/emencia_paste_djangocms_3/__init__.py
@@ -1,2 +1,2 @@
"""Epaster template to build DjangoCMS 3.x projects"""
-__version__ = '1.3.7'
+__version__ = '1.... | Forgetted to bump package version to <I> | py |
diff --git a/eemeter/modeling/split.py b/eemeter/modeling/split.py
index <HASH>..<HASH> 100644
--- a/eemeter/modeling/split.py
+++ b/eemeter/modeling/split.py
@@ -229,7 +229,7 @@ class SplitModeledEnergyTrace(object):
# require NaN last data point as cap
if filtered_df.shape[0] > 0:
last_... | Get rid of FutureWarning Modifying two lines from set_value() to at[] syntax. | py |
diff --git a/tests/dataset_fixtures.py b/tests/dataset_fixtures.py
index <HASH>..<HASH> 100644
--- a/tests/dataset_fixtures.py
+++ b/tests/dataset_fixtures.py
@@ -32,6 +32,14 @@ def no_redis(monkeypatch):
monkeypatch.setattr('datalad_service.common.redis.redisClient', fake)
+@pytest.fixture(autouse=True)
+def ... | Disallow global git configuration edits in tests. | py |
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py
index <HASH>..<HASH> 100644
--- a/sqlparse/keywords.py
+++ b/sqlparse/keywords.py
@@ -46,7 +46,11 @@ SQL_REGEX = {
(r'(CASE|IN|VALUES|USING)\b', tokens.Keyword),
(r'(@|##|#)[A-Z]\w+', tokens.Name),
- (r'[A-Z]\w*(?=\.)', tokens.Name), #... | Rewrite regex to allow spaces between `name` and `.` | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@ setup(
setup_requires=['setuptools-markdown'],
extras_require={
'tester': [
- "eth-tester[py-evm]==0.1.0b16",
+ "eth-tester[py-evm]==0.1.0b19",
],
'test... | bump to latest eth-tester | py |
diff --git a/src/pyscipopt/__init__.py b/src/pyscipopt/__init__.py
index <HASH>..<HASH> 100644
--- a/src/pyscipopt/__init__.py
+++ b/src/pyscipopt/__init__.py
@@ -1,4 +1,4 @@
-__version__ = '3.2.0'
+__version__ = '3.2.1Test'
# required for Python 3.8 on Windows
import os | change version to <I>Test testing release workflow live | py |
diff --git a/cerberus/__init__.py b/cerberus/__init__.py
index <HASH>..<HASH> 100644
--- a/cerberus/__init__.py
+++ b/cerberus/__init__.py
@@ -8,7 +8,7 @@
"""
-__version__ = "0.1.0"
+__version__ = "0.2.0"
from .cerberus import Validator, ValidationError, SchemaError | Bumped version to <I> | py |
diff --git a/mongoctl/objects/server.py b/mongoctl/objects/server.py
index <HASH>..<HASH> 100644
--- a/mongoctl/objects/server.py
+++ b/mongoctl/objects/server.py
@@ -470,7 +470,11 @@ class Server(DocumentWrapper):
###########################################################################
def db_command(self... | fix authing when not needed for pre <I> | py |
diff --git a/furious/async.py b/furious/async.py
index <HASH>..<HASH> 100644
--- a/furious/async.py
+++ b/furious/async.py
@@ -155,6 +155,17 @@ class Async(object):
self._executing = False
self._executed = True
+ if self._options.get('persist_result'):
+ self._persist_result()
+
+ ... | In persist mode, call _persist_result when result set When `persist_result` is set in an Async's options, Async._persist_result will be called when the result is set one the Async. The persistence engine must be specified or an exception will be raised. | py |
diff --git a/ecabc/abc.py b/ecabc/abc.py
index <HASH>..<HASH> 100644
--- a/ecabc/abc.py
+++ b/ecabc/abc.py
@@ -143,8 +143,7 @@ class ABC:
self.onlooker.bestEmployers.clear()
self.output.print("Assigning new positions")
for i in range(len(self.onlooker.bestEmployers)):
- ... | Fixed the missing replacement of sys.stdout | py |
diff --git a/fluent_blogs/admin/entryadmin.py b/fluent_blogs/admin/entryadmin.py
index <HASH>..<HASH> 100644
--- a/fluent_blogs/admin/entryadmin.py
+++ b/fluent_blogs/admin/entryadmin.py
@@ -34,6 +34,7 @@ class EntryAdmin(SeoEntryAdminMixin, _entry_admin_base):
SeoEntryAdminMixin.FIELDSET_SEO,
)
+ li... | admin: show categories in the list_filter | py |
diff --git a/dwave/cloud/__init__.py b/dwave/cloud/__init__.py
index <HASH>..<HASH> 100644
--- a/dwave/cloud/__init__.py
+++ b/dwave/cloud/__init__.py
@@ -0,0 +1,5 @@
+from __future__ import absolute_import
+
+from dwave.cloud.client import Client
+from dwave.cloud.solver import Solver
+from dwave.cloud.computation imp... | General client available in cloud ns This now works: >>> from dwave.cloud import Client >>> Client.from_config(profile='internal') <dwave.cloud.sw.Client object at 0xbeefcafe> | py |
diff --git a/qtpylib/broker.py b/qtpylib/broker.py
index <HASH>..<HASH> 100644
--- a/qtpylib/broker.py
+++ b/qtpylib/broker.py
@@ -166,6 +166,20 @@ class Broker():
# do stuff on exit
atexit.register(self._on_exit)
+
+ # ---------------------------------------
+ def add_instruments(self, *instr... | option to add instruments after algo initialization | py |
diff --git a/tests/python/pants_test/rules/test_test_integration.py b/tests/python/pants_test/rules/test_test_integration.py
index <HASH>..<HASH> 100644
--- a/tests/python/pants_test/rules/test_test_integration.py
+++ b/tests/python/pants_test/rules/test_test_integration.py
@@ -4,6 +4,8 @@
from __future__ import abs... | Skip another flaky test. (#<I>) | py |
diff --git a/compiler/quilt/tools/main.py b/compiler/quilt/tools/main.py
index <HASH>..<HASH> 100644
--- a/compiler/quilt/tools/main.py
+++ b/compiler/quilt/tools/main.py
@@ -6,12 +6,26 @@ from __future__ import print_function
import argparse
import sys
+import pkg_resources
+
import requests
from . import comm... | --version command (#<I>) Adds a --version option to quilt that prints the release version from the command line. When quilt is installed, it produces quilt <version> (<egg-name>), as in: quilt <I> (quilt-<I>-py<I>) When quilt is not installed, it produces quilt <version> only, as in: quilt <I> | py |
diff --git a/python/google/transit/gtfs_realtime_pb2.py b/python/google/transit/gtfs_realtime_pb2.py
index <HASH>..<HASH> 100644
--- a/python/google/transit/gtfs_realtime_pb2.py
+++ b/python/google/transit/gtfs_realtime_pb2.py
@@ -1,3 +1,19 @@
+#! /usr/bin/python
+#
+# Copyright 2016 Google Inc.
+#
+# Licensed under th... | Re-add Google licensing header in preparation for submitting pull request | py |
diff --git a/script/create-dist.py b/script/create-dist.py
index <HASH>..<HASH> 100755
--- a/script/create-dist.py
+++ b/script/create-dist.py
@@ -9,7 +9,7 @@ import tarfile
from lib.config import LIBCHROMIUMCONTENT_COMMIT, BASE_URL, NODE_VERSION
from lib.util import scoped_cwd, rm_rf, get_atom_shell_version, make_... | Make sure symbol is dumped from unstripped binary. | py |
diff --git a/gocd_cli/commands/pipeline/__init__.py b/gocd_cli/commands/pipeline/__init__.py
index <HASH>..<HASH> 100644
--- a/gocd_cli/commands/pipeline/__init__.py
+++ b/gocd_cli/commands/pipeline/__init__.py
@@ -2,7 +2,7 @@ from gocd_cli.command import BaseCommand
from .retrigger_failed import RetriggerFailed
-... | Add Unpause to the list of available pipeline commands | py |
diff --git a/sen/__init__.py b/sen/__init__.py
index <HASH>..<HASH> 100644
--- a/sen/__init__.py
+++ b/sen/__init__.py
@@ -11,10 +11,11 @@ def set_logging(name="sen", level=logging.DEBUG):
if level == logging.DEBUG:
handler = logging.FileHandler("debug.log")
- else:
- handler = logging.StreamH... | don't log to stderr Fixes #<I> | py |
diff --git a/tst.py b/tst.py
index <HASH>..<HASH> 100755
--- a/tst.py
+++ b/tst.py
@@ -4,7 +4,7 @@ from dataclasses import (
import inspect
import unittest
-from typing import ClassVar
+from typing import ClassVar, Any
from collections import OrderedDict
# Just any custom exception we can catch.
@@ -171,7 +171,... | Closes #<I>: Covariant overriding of fields considered unsafe. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -8,6 +8,6 @@ setup(
author='Niklas Rosenstein',
author_email='rosensteinniklas@gmail.com',
url='https://github.com/NiklasRosenstein/myo-python',
- packages=['myo'],
+ packages=['myo', 'myo.lowlevel', 'myo.utils'],
... | fixed setup.py not taking subpackages into account | py |
diff --git a/ontquery/query.py b/ontquery/query.py
index <HASH>..<HASH> 100644
--- a/ontquery/query.py
+++ b/ontquery/query.py
@@ -24,8 +24,15 @@ class OntQuery:
self._services = tuple(_services)
def add(self, *services):
+ """ add low priority services """
+ # FIXME dupes
self._s... | implement OntQuery.ladd for adding new highest priority services | py |
diff --git a/charmhelpers/contrib/openstack/vaultlocker.py b/charmhelpers/contrib/openstack/vaultlocker.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/vaultlocker.py
+++ b/charmhelpers/contrib/openstack/vaultlocker.py
@@ -140,9 +140,16 @@ def vault_relation_complete(backend=None):
:ptype backe... | Be more defensive when checking Vault (#<I>) Closes-Bug: <I> | py |
diff --git a/lems/__init__.py b/lems/__init__.py
index <HASH>..<HASH> 100644
--- a/lems/__init__.py
+++ b/lems/__init__.py
@@ -8,4 +8,4 @@ import logging
logger = logging.getLogger('LEMS')
-__version__ = '0.3.7'
+__version__ = '0.4.1' | Merged master & incremented version | py |
diff --git a/tests/test_main.py b/tests/test_main.py
index <HASH>..<HASH> 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -41,6 +41,8 @@ def test_qt_api():
elif QT_API == 'pyqt5':
assert_pyqt5()
else:
+ # If the tests are run locally, USE_QT_API and QT_API may not be
+ # def... | Added comment to explain why we consider the case where USE_QT_API and QT_API are not defined. | py |
diff --git a/pyp2rpm/bin.py b/pyp2rpm/bin.py
index <HASH>..<HASH> 100644
--- a/pyp2rpm/bin.py
+++ b/pyp2rpm/bin.py
@@ -1,5 +1,6 @@
import getpass
import logging
+import os
from pyp2rpm.convertor import Convertor
from pyp2rpm import settings
@@ -110,7 +111,11 @@ def main(package, v, d, s, r, proxy, srpm, p, b, o, ... | Create spec file directory if missing | py |
diff --git a/curdling/uninstall.py b/curdling/uninstall.py
index <HASH>..<HASH> 100644
--- a/curdling/uninstall.py
+++ b/curdling/uninstall.py
@@ -1,6 +1,7 @@
from __future__ import absolute_import, print_function, unicode_literals
from distlib.util import parse_requirement
+from . import exceptions
from .database... | Warn the user if a package requested to be uninstalled do not exist | py |
diff --git a/tests/test_sql_copy.py b/tests/test_sql_copy.py
index <HASH>..<HASH> 100644
--- a/tests/test_sql_copy.py
+++ b/tests/test_sql_copy.py
@@ -81,7 +81,7 @@ def in_memory_csv(request):
request.addfinalizer(fin)
- for i in xrange(IN_MEMORY_CSV_NROWS):
+ for i in range(IN_MEMORY_CSV_NROWS):
... | Replace xrange by range in tests | py |
diff --git a/djangular/forms/angular_validation.py b/djangular/forms/angular_validation.py
index <HASH>..<HASH> 100644
--- a/djangular/forms/angular_validation.py
+++ b/djangular/forms/angular_validation.py
@@ -37,7 +37,11 @@ class NgValidationBoundField(forms.BoundField):
"""
Overload method which in... | Fixed Django-<I> compatibility | py |
diff --git a/pandas/io/data.py b/pandas/io/data.py
index <HASH>..<HASH> 100644
--- a/pandas/io/data.py
+++ b/pandas/io/data.py
@@ -69,8 +69,6 @@ def get_data_yahoo(name=None, start=None, end=None):
Returns a DataFrame.
"""
- from dateutil.relativedelta import relativedelta
-
start, end = _sanitize_d... | Fixed DataReader for yahoo to match the API. The months are expected to be zero-index. relativedelta was used to roll back the month, but did it incorrectly. This is a fix for issue <I>. This bug was fixed in class as a part of the RIT FLOSS game development seminar. <URL> | py |
diff --git a/subliminal/providers/shooter.py b/subliminal/providers/shooter.py
index <HASH>..<HASH> 100644
--- a/subliminal/providers/shooter.py
+++ b/subliminal/providers/shooter.py
@@ -9,7 +9,6 @@ from requests import Session
from . import Provider
from .. import __short_version__
from ..subtitle import Subtitle, ... | Remove unused imports in shooter | py |
diff --git a/fudge/tests/test_fudge.py b/fudge/tests/test_fudge.py
index <HASH>..<HASH> 100644
--- a/fudge/tests/test_fudge.py
+++ b/fudge/tests/test_fudge.py
@@ -613,6 +613,17 @@ class TestOrderedCalls(unittest.TestCase):
fudge.verify()
@raises(AssertionError)
+ def test_chained_fakes_honor_orde... | Added additional test for ordered expectations when using returns_fake() | py |
diff --git a/test/integration-test.py b/test/integration-test.py
index <HASH>..<HASH> 100644
--- a/test/integration-test.py
+++ b/test/integration-test.py
@@ -169,7 +169,7 @@ def test_ct_submission():
url_a = "http://boulder:4500/submissions"
url_b = "http://boulder:4501/submissions"
submissions_a = urll... | Properly initialize submissions_b count (#<I>) The `submissions_b` count in the integration test `test_ct_submission` function was being populated initially by using `url_a` when it _should_ be initialized using `url_b` since it's the count of submissions to log b. This resolves <URL> would fail. With this fix, all... | py |
diff --git a/singularity/hub/registry/utils/cache.py b/singularity/hub/registry/utils/cache.py
index <HASH>..<HASH> 100644
--- a/singularity/hub/registry/utils/cache.py
+++ b/singularity/hub/registry/utils/cache.py
@@ -23,6 +23,7 @@ SOFTWARE.
'''
from singularity.logger import bot
+from singularity.utils import mkd... | modified: singularity/hub/registry/utils/cache.py | py |
diff --git a/macros/plugin.py b/macros/plugin.py
index <HASH>..<HASH> 100644
--- a/macros/plugin.py
+++ b/macros/plugin.py
@@ -383,7 +383,7 @@ class MacrosPlugin(BasePlugin):
# self.variables['files'] = files
- def on_serve(self, server, config):
+ def on_serve(self, server, config, *... | Add **kwargs to on_serve event handler mkdocs <I> passes a `builder` kwarg to the `on_serve` event handler which results in a TypeError if not handled. This passes it through using **kwargs per the mkdocs best practice guidance [1]. [1] <URL> | py |
diff --git a/datarum/converter.py b/datarum/converter.py
index <HASH>..<HASH> 100644
--- a/datarum/converter.py
+++ b/datarum/converter.py
@@ -30,19 +30,7 @@ def seconds_convert(total_days):
dat.mónþ += 1
if dat.mónþ == 13:
- bises = False
-
- # Romme Rule for Leaps
- ... | Move romme bises check into own func | py |
diff --git a/tests/show_segmentation_test.py b/tests/show_segmentation_test.py
index <HASH>..<HASH> 100644
--- a/tests/show_segmentation_test.py
+++ b/tests/show_segmentation_test.py
@@ -42,6 +42,7 @@ class ShowSegmemtationCase(unittest.TestCase):
@attr('long')
+ # @attr('interactive')
def test_from_fi... | try to run vtk test again | py |
diff --git a/modopt/opt/algorithms.py b/modopt/opt/algorithms.py
index <HASH>..<HASH> 100644
--- a/modopt/opt/algorithms.py
+++ b/modopt/opt/algorithms.py
@@ -217,13 +217,22 @@ class FISTA(object):
This class is inhereited by optimisation classes to speed up convergence
The parameters for the modified FISTA... | added intialisation of params in FISTA class | py |
diff --git a/raven/utils/__init__.py b/raven/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/raven/utils/__init__.py
+++ b/raven/utils/__init__.py
@@ -57,6 +57,16 @@ _VERSION_CACHE = {}
def get_version_from_app(module_name, app):
version = None
+
+ # Try to pull version from pkg_resource first
+ # as ... | Try to detect version with pkg_resources first | py |
diff --git a/src/hdx/data/dataset.py b/src/hdx/data/dataset.py
index <HASH>..<HASH> 100755
--- a/src/hdx/data/dataset.py
+++ b/src/hdx/data/dataset.py
@@ -457,18 +457,22 @@ class Dataset(HDXObject):
resource_ignore_fields.append(resource_ignore_field)
else:
dataset_ignore_... | Allow "resource:xxx" to pass xxx field to be ignored in create_in_hdx and update_in_hdx of Dataset class | py |
diff --git a/pystache/renderengine.py b/pystache/renderengine.py
index <HASH>..<HASH> 100644
--- a/pystache/renderengine.py
+++ b/pystache/renderengine.py
@@ -17,8 +17,22 @@ DEFAULT_TAG_CLOSING = '}}'
END_OF_LINE_CHARACTERS = ['\r', '\n']
-# TODO: what are the possibilities for val?
def call(val, view, template=N... | Added call() docstring. | py |
diff --git a/resolwe/flow/managers/workload_connectors/kubernetes.py b/resolwe/flow/managers/workload_connectors/kubernetes.py
index <HASH>..<HASH> 100644
--- a/resolwe/flow/managers/workload_connectors/kubernetes.py
+++ b/resolwe/flow/managers/workload_connectors/kubernetes.py
@@ -716,6 +716,7 @@ class Connector(BaseC... | Suppress cleanup error in kubernetes when PVC can not be found | py |
diff --git a/pandas/tools/rplot.py b/pandas/tools/rplot.py
index <HASH>..<HASH> 100644
--- a/pandas/tools/rplot.py
+++ b/pandas/tools/rplot.py
@@ -305,6 +305,21 @@ class GeomScatter(Layer):
ax.scatter(x, y, **self.kwds)
return fig, ax
+class GeomHistogram(Layer):
+ def __init__(self, bins=10, colour='grey'):
+ ... | Added GeomHistogram class | py |
diff --git a/eventkit/models.py b/eventkit/models.py
index <HASH>..<HASH> 100644
--- a/eventkit/models.py
+++ b/eventkit/models.py
@@ -401,3 +401,10 @@ class Event(AbstractEvent):
"""
tracker = FieldTracker(AbstractEvent.MONITOR_FIELDS)
+
+ def save(self, *args, **kwargs):
+ # Avoid `AttributeErro... | Avoid AttributeError by delaying MPTT updates. | py |
diff --git a/quantecon/random/utilities.py b/quantecon/random/utilities.py
index <HASH>..<HASH> 100644
--- a/quantecon/random/utilities.py
+++ b/quantecon/random/utilities.py
@@ -39,7 +39,6 @@ def probvec(m, k, random_state=None):
[ 0.43772774, 0.34763084, 0.21464142]])
"""
-
x = np.empty((m, ... | undo space changes - but still getting error in readthedocs build | py |
diff --git a/looper/loodels.py b/looper/loodels.py
index <HASH>..<HASH> 100644
--- a/looper/loodels.py
+++ b/looper/loodels.py
@@ -41,6 +41,17 @@ class Project(models.Project):
@property
+ def compute_env_var(self):
+ """
+ Environment variable through which to access compute settings.
+
+ ... | recover LOOPERENV name for looper-specific Project | py |
diff --git a/anyconfig/mergeabledict.py b/anyconfig/mergeabledict.py
index <HASH>..<HASH> 100644
--- a/anyconfig/mergeabledict.py
+++ b/anyconfig/mergeabledict.py
@@ -207,14 +207,14 @@ class UpdateWithReplaceDict(dict):
Traceback (most recent call last):
TypeError: ...
"""
- def _update(self, other, k... | fix: one more workaround try of UpdateWithReplaceDict.update for python <I> (again) | py |
diff --git a/tests/settings.py b/tests/settings.py
index <HASH>..<HASH> 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -1,2 +1,3 @@
-INSTALLED_APPS = ('django_hudson',)
+INSTALLED_APPS = ('django.contrib.sessions', # just to enshure that dotted apps test works
+ 'django_hudson',)
DATABASE_E... | Add app with dots in names to test suite | py |
diff --git a/cumulusci/tasks/metadata_etl/tests/test_base.py b/cumulusci/tasks/metadata_etl/tests/test_base.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/metadata_etl/tests/test_base.py
+++ b/cumulusci/tasks/metadata_etl/tests/test_base.py
@@ -533,8 +533,6 @@ class TestUpdateMetadataFirstChildTextTask:
... | simplify xml comparison in test | py |
diff --git a/ayrton/__init__.py b/ayrton/__init__.py
index <HASH>..<HASH> 100644
--- a/ayrton/__init__.py
+++ b/ayrton/__init__.py
@@ -198,7 +198,7 @@ def polute (d):
'_k', '_p', '_r', '_s', '_u', '_w', '_x', '_L',
'_N', '_S', '_nt', '_ot' ],
'ayrto... | * last function rename was nom complete. I should add a git hook to run the tests before actually commiting anything. | py |
diff --git a/django_mailbox/models.py b/django_mailbox/models.py
index <HASH>..<HASH> 100644
--- a/django_mailbox/models.py
+++ b/django_mailbox/models.py
@@ -320,6 +320,8 @@ class Mailbox(models.Model):
msg.from_header = convert_header_to_unicode(message['from'])
if 'to' in message:
... | Store 'Delivered-To' as 'to_header' when 'to' is unspecified. | py |
diff --git a/salt/pillar/git_pillar.py b/salt/pillar/git_pillar.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/git_pillar.py
+++ b/salt/pillar/git_pillar.py
@@ -316,6 +316,8 @@ class _LegacyGitPillar(object):
branch = opts.get('environment') or 'base'
if branch == 'base':
br... | Get rid of error in legacy git pillar when using branch mapping notation This doesn't fix the problem of the branch not being mapped to the specified branch, and this code is not going to be maintained going forward (in favor of the gitfs-backed git_pillar code), but this will at least prevent the branch from failing ... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,8 @@ requirements = [
'imageio',
'numpy',
'matplotlib',
- 'trimesh[all]',
+ 'trimesh[easy]',
+ 'meshpy',
'autolab_core',
'autolab_perception',
'meshrender' | Update setup.py to depend on meshpy | py |
diff --git a/usagestats.py b/usagestats.py
index <HASH>..<HASH> 100644
--- a/usagestats.py
+++ b/usagestats.py
@@ -236,7 +236,7 @@ class Stats(object):
# FIXME: ``data=generator()`` would make requests stream,
# which is currently not a good idea (WSGI chokes on it)
... | Adds 1s timeout to report submission | py |
diff --git a/niworkflows/common/report.py b/niworkflows/common/report.py
index <HASH>..<HASH> 100644
--- a/niworkflows/common/report.py
+++ b/niworkflows/common/report.py
@@ -9,13 +9,6 @@ import jinja2
from pkg_resources import resource_filename as pkgrf
from abc import abstractmethod
-import nibabel as nb
-from ni... | remove unnecessary imports left over from my fmriprep changes | py |
diff --git a/src/_pytest/_code/code.py b/src/_pytest/_code/code.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/_code/code.py
+++ b/src/_pytest/_code/code.py
@@ -721,11 +721,11 @@ class FormattedExcinfo:
) -> List[str]:
"""Return formatted and marked up source lines."""
lines = []
- if so... | Make code.FormattedExcinfo.get_source more defensive When line_index was a large negative number, get_source failed on `source.lines[line_index]`. Use the same dummy Source as with a large positive line_index. | py |
diff --git a/tests/testing_utils.py b/tests/testing_utils.py
index <HASH>..<HASH> 100644
--- a/tests/testing_utils.py
+++ b/tests/testing_utils.py
@@ -286,13 +286,13 @@ def shutdown_environment(config=True, gui_config=True, caplog=None, expected_war
assert not rafcon.core.singleton.state_machine_manager.st... | fix(testing_utils): reload libraries in any case in shudown_environment function | py |
diff --git a/intercom/controllers/keystrokes.py b/intercom/controllers/keystrokes.py
index <HASH>..<HASH> 100644
--- a/intercom/controllers/keystrokes.py
+++ b/intercom/controllers/keystrokes.py
@@ -58,6 +58,10 @@ def main(screen):
if cc in codes:
controller.do(*codes[cc])
+ elif cc == 'p... | Added play/pause for MPD minion | py |
diff --git a/firebirdsql/fbcore.py b/firebirdsql/fbcore.py
index <HASH>..<HASH> 100755
--- a/firebirdsql/fbcore.py
+++ b/firebirdsql/fbcore.py
@@ -839,10 +839,10 @@ class BaseConnect:
def _op_service_attach(self):
dpb = bs([2,2])
s = self.str_to_bytes(self.user)
- dpb += bs([28, len(s)]) +... | user isc_xxx consts in _op_service_attach() packet | py |
diff --git a/py3status/modules/imap.py b/py3status/modules/imap.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/imap.py
+++ b/py3status/modules/imap.py
@@ -33,6 +33,7 @@ SAMPLE OUTPUT
import imaplib
from threading import Thread
import select
+from time import sleep
from ssl import create_default_context
fro... | throttle thread-restarting if the thread repeatedly dies (most likely because no network connection is available) it gets restarted immediately -- over and over again. this commit adds a simple sleep(5) to mitigate that. also s/isAlive/is_alive/ (old notation deprecated) | py |
diff --git a/claripy/vsa/strided_interval.py b/claripy/vsa/strided_interval.py
index <HASH>..<HASH> 100644
--- a/claripy/vsa/strided_interval.py
+++ b/claripy/vsa/strided_interval.py
@@ -113,6 +113,8 @@ class StridedInterval(BackendObject):
self._lower_bound = self._lower_bound & (2 ** bits - 1)
self.... | call normalize() after an StridedInterval is created | py |
diff --git a/master/buildbot/status/web/builder.py b/master/buildbot/status/web/builder.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/web/builder.py
+++ b/master/buildbot/status/web/builder.py
@@ -143,16 +143,17 @@ class ForceBuildActionResource(ActionResource):
"forcesched... | Also decode the filed names when force-building. With ForceScheduler, it is possible to have semi-arbitrary names. This also cleans up the arg-preprocessing code somewhat. Refs #<I>. | py |
diff --git a/openquake/risklib/riskmodels.py b/openquake/risklib/riskmodels.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/riskmodels.py
+++ b/openquake/risklib/riskmodels.py
@@ -725,7 +725,7 @@ class CompositeRiskModel(collections.abc.Mapping):
for key, lt in rdic:
rm = rdic[key, lt]
... | Improved comment [ci skip] | py |
diff --git a/tests/test_hexary_trie.py b/tests/test_hexary_trie.py
index <HASH>..<HASH> 100644
--- a/tests/test_hexary_trie.py
+++ b/tests/test_hexary_trie.py
@@ -221,6 +221,22 @@ def test_hexary_trie_at_root_lookups():
assert key not in snapshot
+def test_hexary_trie_empty_squash_does_not_read_roo... | Test that no-op squash_changes reads no nodes | py |
diff --git a/gsshapy/grid/grid_to_gssha.py b/gsshapy/grid/grid_to_gssha.py
index <HASH>..<HASH> 100644
--- a/gsshapy/grid/grid_to_gssha.py
+++ b/gsshapy/grid/grid_to_gssha.py
@@ -579,7 +579,7 @@ class GRIDtoGSSHA(object):
# STEP 1: Get extent from GSSHA Grid in LSM coordinates
####
# reprojec... | Fix ref to gssha grid getting bounds | py |
diff --git a/zinnia/feeds.py b/zinnia/feeds.py
index <HASH>..<HASH> 100644
--- a/zinnia/feeds.py
+++ b/zinnia/feeds.py
@@ -55,6 +55,8 @@ class EntryFeed(Feed):
return current_site.domain
def item_enclosure_url(self, item):
+ if item.image:
+ return item.image.url
parser = ImgP... | using image field of and entry, for enclosure_url in feeds | py |
diff --git a/tests/test_xml.py b/tests/test_xml.py
index <HASH>..<HASH> 100644
--- a/tests/test_xml.py
+++ b/tests/test_xml.py
@@ -45,4 +45,19 @@ class TestDataError(object):
with pytest.raises(overpy.exception.ElementDataWrongType):
overpy.Way.from_xml(
self._get_element_wrong_ty... | test - Add xml tests with missing or wrong attributes | py |
diff --git a/src/transformers/tokenization_xlnet.py b/src/transformers/tokenization_xlnet.py
index <HASH>..<HASH> 100644
--- a/src/transformers/tokenization_xlnet.py
+++ b/src/transformers/tokenization_xlnet.py
@@ -240,7 +240,7 @@ class XLNetTokenizer(PreTrainedTokenizer):
cls_segment_id = [2]
if to... | Correct segment ID for XLNet single sequence | py |
diff --git a/tensorforce/core/networks/__init__.py b/tensorforce/core/networks/__init__.py
index <HASH>..<HASH> 100755
--- a/tensorforce/core/networks/__init__.py
+++ b/tensorforce/core/networks/__init__.py
@@ -41,12 +41,14 @@ __all__ = [
'Dropout',
'Flatten',
'Pool2d',
+ 'Embedding',
'Linear',
... | Added missing classes to __all__ Added Lstm & Embedding | py |
diff --git a/test/reader_test.py b/test/reader_test.py
index <HASH>..<HASH> 100644
--- a/test/reader_test.py
+++ b/test/reader_test.py
@@ -18,13 +18,14 @@ def remove_multiple_white_space(lines):
def test_reader_test_data():
+ """Basic regression test"""
f_files = glob.glob("./test_data/*.f*")
f_files ... | Fix some comments/docstrings in test | py |
diff --git a/py_zipkin/zipkin.py b/py_zipkin/zipkin.py
index <HASH>..<HASH> 100644
--- a/py_zipkin/zipkin.py
+++ b/py_zipkin/zipkin.py
@@ -34,6 +34,7 @@ STANDARD_ANNOTATIONS = {
'client': {'cs', 'cr'},
'server': {'ss', 'sr'},
}
+STANDARD_ANNOTATIONS_KEYS = frozenset(STANDARD_ANNOTATIONS.keys())
class zi... | move standard annotation keys generation outside of critical path | py |
diff --git a/galpy/df/quasiisothermaldf.py b/galpy/df/quasiisothermaldf.py
index <HASH>..<HASH> 100644
--- a/galpy/df/quasiisothermaldf.py
+++ b/galpy/df/quasiisothermaldf.py
@@ -1710,6 +1710,9 @@ class quasiisothermaldf(df):
R_pixel, z_pixel = the pixel size for creating the ... | added pixels and num_std as input to sample v on set | py |
diff --git a/emiz/miz.py b/emiz/miz.py
index <HASH>..<HASH> 100644
--- a/emiz/miz.py
+++ b/emiz/miz.py
@@ -212,7 +212,8 @@ class Miz:
try:
- with ZipFile(self.miz_path.absolute()) as zip_file:
+ path = str(self.miz_path.absolute())
+ with ZipFile(path) as zip_file:
... | fix: dev: got a weird bug on AV... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup
setup(
name="django-ldapdb",
- version="0.4.0",
+ version="0.5.0",
description=u"An LDAP database backend for Django",
long_description=open('README.md').read()... | Release django-ldapdb <I> This version adds official support for Python <I>/<I>, and for Django <I> | py |
diff --git a/highcharts/highcharts/highcharts.py b/highcharts/highcharts/highcharts.py
index <HASH>..<HASH> 100644
--- a/highcharts/highcharts/highcharts.py
+++ b/highcharts/highcharts/highcharts.py
@@ -10,7 +10,7 @@ from jinja2 import Environment, PackageLoader
import json, uuid
import re
import datetime
-import ur... | Update urllib2 to python3 version, relying on the already available 'future' package to provide the appropriate alias for use in python2 (#<I>) | py |
diff --git a/pymongo/__init__.py b/pymongo/__init__.py
index <HASH>..<HASH> 100644
--- a/pymongo/__init__.py
+++ b/pymongo/__init__.py
@@ -32,7 +32,7 @@ SLOW_ONLY = 1
ALL = 2
"""Profile all operations."""
-version = "0.11.3"
+version = "0.12"
"""Current version of PyMongo."""
Connection = PyMongo_Connection | BUMP <I> new objectid generation, better error message for reconnection, thread safe gridfs, bugfixes | py |
diff --git a/salt/modules/dnsmasq.py b/salt/modules/dnsmasq.py
index <HASH>..<HASH> 100644
--- a/salt/modules/dnsmasq.py
+++ b/salt/modules/dnsmasq.py
@@ -153,7 +153,7 @@ def _parse_dnamasq(filename):
else:
fileopts[comps[0]] = comps[1].strip()
else:
- i... | Fix PEP8 E<I> - test for membership should be "not in" | py |
diff --git a/rootpy/core.py b/rootpy/core.py
index <HASH>..<HASH> 100644
--- a/rootpy/core.py
+++ b/rootpy/core.py
@@ -3,6 +3,7 @@
"""
This module contains base classes defining core functionality
"""
+import os
import ROOT
import re
import uuid
@@ -10,6 +11,9 @@ import inspect
from . import rootpy_globals
+... | ability to switch off snake_case alias | py |
diff --git a/pypeerassets/pa.py b/pypeerassets/pa.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/pa.py
+++ b/pypeerassets/pa.py
@@ -5,15 +5,16 @@ from pypeerassets import paproto, pautils, RpcNode
class Deck:
- def __init__(self, version, name, number_of_decimals, issue_mode):
+ def __init__(self, version... | pa: asset_id property, rename Deck properties to reflect exact usage. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,6 @@ setup(
"Topic :: Software Development :: Version Control",
"Topic :: Utilities"
],
- bugtrack_url = 'https://github.com/msiemens/PyGitUp/issues',
long_description = README
... | Removed bugtrack_url from setup.py | py |
diff --git a/synapse/tests/test_lib_cli.py b/synapse/tests/test_lib_cli.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/test_lib_cli.py
+++ b/synapse/tests/test_lib_cli.py
@@ -1,7 +1,6 @@
-
+import threading
import unittest.mock as mock
-
import synapse.exc as s_exc
import synapse.lib.cli as s_cli
import synap... | Add a test to show that prox disconnection causes fini | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.