diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ setup(
name='amo-validator',
version='1.1',
description='Validates add-ons for Mozilla products.',
- long_description=open('README.rst').read(),
+ long_description=open('README.md').read(),
... | Point setup.py at new README | py |
diff --git a/aiocassandra.py b/aiocassandra.py
index <HASH>..<HASH> 100644
--- a/aiocassandra.py
+++ b/aiocassandra.py
@@ -55,8 +55,6 @@ class _Paginator:
def _handle_err(self, exc):
self._exc = exc
- self._loop.call_soon_threadsafe(self._drain_event.set)
-
self._loop.call_soon_threadsaf... | Do not fire drain event on error. | py |
diff --git a/jsonextended/core.py b/jsonextended/core.py
index <HASH>..<HASH> 100755
--- a/jsonextended/core.py
+++ b/jsonextended/core.py
@@ -728,6 +728,7 @@ def dict_pprint(d, lvlindent=2, initindent=0, delim=':',
key_str = convert_str(key)
key_width = max(key_width, len(key_str))
... | fixed bug in dict_pprint was restricting depth even if depth =None | py |
diff --git a/pyasn1/error.py b/pyasn1/error.py
index <HASH>..<HASH> 100644
--- a/pyasn1/error.py
+++ b/pyasn1/error.py
@@ -1,3 +1,3 @@
-class PyAsn1Error(StandardError): pass
+class PyAsn1Error(Exception): pass
class ValueConstraintError(PyAsn1Error): pass
class SubstrateUnderrunError(PyAsn1Error): pass | inherit from Exception as 2to3 wants | py |
diff --git a/djs_playground/settings.py b/djs_playground/settings.py
index <HASH>..<HASH> 100644
--- a/djs_playground/settings.py
+++ b/djs_playground/settings.py
@@ -123,7 +123,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'djs_playground/media/')
SUMMERNOTE_THEME = 'bs4'
SUMMERNOTE_CONFIG = {
- 'iframe': False,
+ ... | Replace default iframe setting for djs_playground | py |
diff --git a/helper/controller.py b/helper/controller.py
index <HASH>..<HASH> 100644
--- a/helper/controller.py
+++ b/helper/controller.py
@@ -3,6 +3,7 @@ Helper Controller Class
"""
import logging
+import os
import signal
import sys
import time
@@ -22,7 +23,7 @@ class Controller(object):
like a blocking IO... | Dont use the full path for the app name | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,9 +6,6 @@ import os, sys
from setuptools import setup, find_packages
-# Dirty workaround for "error: byte-compiling is disabled." message
-sys.dont_write_bytecode = False
-
pkg_root = os.path.dirname(__file__)
entr... | setup: dropped dont-write-bytecode workaround - doesn't seem relevant anymore | py |
diff --git a/MAVProxy/tools/MAVExplorer.py b/MAVProxy/tools/MAVExplorer.py
index <HASH>..<HASH> 100755
--- a/MAVProxy/tools/MAVExplorer.py
+++ b/MAVProxy/tools/MAVExplorer.py
@@ -714,12 +714,17 @@ error_codes = { # not used yet
def cmd_messages(args):
'''show messages'''
+ invert = False
if len(args... | MAVExplorer: support !PATTERN in messages command | py |
diff --git a/tests/calculators/hazard/classical/post_processing_test.py b/tests/calculators/hazard/classical/post_processing_test.py
index <HASH>..<HASH> 100644
--- a/tests/calculators/hazard/classical/post_processing_test.py
+++ b/tests/calculators/hazard/classical/post_processing_test.py
@@ -473,14 +473,6 @@ class Ha... | tests/calcs/hazard/classical/post_processing_test: Removed a useless test. | py |
diff --git a/coconut/parser.py b/coconut/parser.py
index <HASH>..<HASH> 100644
--- a/coconut/parser.py
+++ b/coconut/parser.py
@@ -483,7 +483,7 @@ class processor(object):
count = 0
current = None
for line in lines:
- if not line or line.startswith(self.startcomment):
+ ... | Improves handling of comments with starting whitespace | py |
diff --git a/src/molecule/provisioner/ansible_playbook.py b/src/molecule/provisioner/ansible_playbook.py
index <HASH>..<HASH> 100644
--- a/src/molecule/provisioner/ansible_playbook.py
+++ b/src/molecule/provisioner/ansible_playbook.py
@@ -44,7 +44,9 @@ class AnsiblePlaybook(object):
self._playbook = playbook
... | Fix wrong environment variables being passed to ansible compat (#<I>) (#<I>) * Fix wrong environment variables being passed to ansible compat (#<I>) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see <URL> | py |
diff --git a/src/harvesters/core.py b/src/harvesters/core.py
index <HASH>..<HASH> 100644
--- a/src/harvesters/core.py
+++ b/src/harvesters/core.py
@@ -1738,8 +1738,6 @@ def _get_port_connected_node_map(*, port=None, logger=None):
node_map = NodeMap()
# Then load the XML file content on the node map object.
... | Do not log the contents of an XML file Because it consumes many lines. | py |
diff --git a/src/diamond/collector.py b/src/diamond/collector.py
index <HASH>..<HASH> 100644
--- a/src/diamond/collector.py
+++ b/src/diamond/collector.py
@@ -193,7 +193,7 @@ class Collector(object):
Return the default config for the collector
"""
return {
- ### Defaults options fo... | PEP8: Fix comment style for PEP8 compliance | py |
diff --git a/airflow/macros/hive.py b/airflow/macros/hive.py
index <HASH>..<HASH> 100644
--- a/airflow/macros/hive.py
+++ b/airflow/macros/hive.py
@@ -93,6 +93,10 @@ def closest_ds_partition(
:type ds: list[datetime.date]
:param before: closest before (True), after (False) or either side of ds
:type befo... | AIRFLOW-<I>: added missing docstrings (#<I>) | py |
diff --git a/dev/merge_spark_pr.py b/dev/merge_spark_pr.py
index <HASH>..<HASH> 100755
--- a/dev/merge_spark_pr.py
+++ b/dev/merge_spark_pr.py
@@ -266,10 +266,9 @@ def resolve_jira_issue(merge_branches, comment, default_jira_id=""):
resolve = filter(lambda a: a['name'] == "Resolve Issue", asf_jira.transitions(ji... | [HOTFIX] Bug in merge script | py |
diff --git a/horizon/base.py b/horizon/base.py
index <HASH>..<HASH> 100644
--- a/horizon/base.py
+++ b/horizon/base.py
@@ -734,14 +734,11 @@ class Site(Registry, HorizonComponent):
dashboards.append(dashboard)
registered.pop(dashboard.__class__)
if len(registered):
- ... | py3: don't call .sort() of dict.values() On Python 3, dict.values() now returns an iterator which has no sort() method. Use the sorted() function instead to be compatible with Python 2 and Python 3. Partial-Implements: blueprint porting-python3 Change-Id: Iad<I>e1d<I>a7b<I>a5e0ba1ec2dd0b7a<I> | py |
diff --git a/satpy/tests/test_file_handlers.py b/satpy/tests/test_file_handlers.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/test_file_handlers.py
+++ b/satpy/tests/test_file_handlers.py
@@ -39,7 +39,8 @@ class TestBaseFileHandler(unittest.TestCase):
"""Setup the test."""
self._old_set = BaseFileH... | Fix filehandler unit test to use filename_info as a dict | py |
diff --git a/kurt/__init__.py b/kurt/__init__.py
index <HASH>..<HASH> 100644
--- a/kurt/__init__.py
+++ b/kurt/__init__.py
@@ -97,7 +97,7 @@ import wave
def _clean_filename(name):
"""Strip non-alphanumeric characters to makes name safe to be used as
filename."""
- return re.sub("[^\w ]", "", name)
+ re... | Allow '.' in clean_filename | py |
diff --git a/carrot/backends/__init__.py b/carrot/backends/__init__.py
index <HASH>..<HASH> 100644
--- a/carrot/backends/__init__.py
+++ b/carrot/backends/__init__.py
@@ -24,8 +24,8 @@ def resolve_backend(backend=None):
backend, _, extra_options = backend.partition("!")
extra_options = extra_options or None #... | Fixed syntax error, too many values to unpack | py |
diff --git a/hypermap/urls.py b/hypermap/urls.py
index <HASH>..<HASH> 100644
--- a/hypermap/urls.py
+++ b/hypermap/urls.py
@@ -1,4 +1,5 @@
from django.conf.urls import patterns, include, url
+from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf import settings
from django.contrib im... | Use staticfiles_urlpatterns for serving static files | py |
diff --git a/mmcv/engine/test.py b/mmcv/engine/test.py
index <HASH>..<HASH> 100644
--- a/mmcv/engine/test.py
+++ b/mmcv/engine/test.py
@@ -32,8 +32,8 @@ def single_gpu_test(model, data_loader):
result = model(return_loss=False, **data)
results.extend(result)
- # use the first key as main ... | [Enhancement]: use len(result) as batch size (#<I>) * use len(result) as batch size * remove old comments * Add comments to this modification * Update test.py | py |
diff --git a/dashboard_app/tests.py b/dashboard_app/tests.py
index <HASH>..<HASH> 100644
--- a/dashboard_app/tests.py
+++ b/dashboard_app/tests.py
@@ -397,28 +397,6 @@ class BundleDeserializerTestCase(TestCase):
selectors.sw_context.sw_image, None),
]
}),
- ('software_i... | Do not tests for defaults, this should fail | py |
diff --git a/requests_oauthlib/oauth1_session.py b/requests_oauthlib/oauth1_session.py
index <HASH>..<HASH> 100644
--- a/requests_oauthlib/oauth1_session.py
+++ b/requests_oauthlib/oauth1_session.py
@@ -352,7 +352,7 @@ class OAuth1Session(requests.Session):
log.debug('Decoding token from response "%s"', r.te... | Strips new lines in fetch_token response body | py |
diff --git a/src/pandas_profiling/utils/progress_bar.py b/src/pandas_profiling/utils/progress_bar.py
index <HASH>..<HASH> 100644
--- a/src/pandas_profiling/utils/progress_bar.py
+++ b/src/pandas_profiling/utils/progress_bar.py
@@ -1,6 +1,5 @@
-from collections import Callable
from functools import wraps
-from typing i... | refactor: typing progress_bar.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ from os import path
here = path.abspath(path.dirname(__file__))
__author__ = 'Magnus Knutas'
-VERSION = '1.2.4'
+VERSION = '1.2.5'
with open("README.md", "r") as fh:
long_description = fh.read() | Release <I> Took 5 minutes | py |
diff --git a/workshift/views.py b/workshift/views.py
index <HASH>..<HASH> 100644
--- a/workshift/views.py
+++ b/workshift/views.py
@@ -493,10 +493,13 @@ def add_shift_view(request, semester):
pools=pools,
semester=semester,
)
- add_shift_form = RegularWorkshiftForm(
- request.POST if "add_shift" in request.PO... | Don't show add shift form before there are any workshift types | py |
diff --git a/tests/integration/spm/test_info.py b/tests/integration/spm/test_info.py
index <HASH>..<HASH> 100644
--- a/tests/integration/spm/test_info.py
+++ b/tests/integration/spm/test_info.py
@@ -1,8 +1,6 @@
-# -*- coding: utf-8 -*-
"""
Tests for the spm info utility
"""
-from __future__ import absolute_import, p... | Drop Py2 and six on tests/integration/spm/test_info.py | py |
diff --git a/tests/test_pyPodcastParser.py b/tests/test_pyPodcastParser.py
index <HASH>..<HASH> 100644
--- a/tests/test_pyPodcastParser.py
+++ b/tests/test_pyPodcastParser.py
@@ -157,6 +157,9 @@ class Test_Basic_Feed(unittest.TestCase):
def test_loding_of_basic_podcast(self):
self.assertIsNotNone(self.bas... | added very simple to_dict() test | py |
diff --git a/test/__init__.py b/test/__init__.py
index <HASH>..<HASH> 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -38,4 +38,4 @@ class Runner(DiscoverRunner):
def suite_result(self, suite, result, **kwargs):
write_results(result)
- super(Runner, self).suite_result(suite, result, **kwa... | test: fix detection of test failures in custom test runner That missing `return` was causing the test process to return 0 even when some tests failed. | py |
diff --git a/aguaclara/design/chem_tank.py b/aguaclara/design/chem_tank.py
index <HASH>..<HASH> 100644
--- a/aguaclara/design/chem_tank.py
+++ b/aguaclara/design/chem_tank.py
@@ -1,15 +1,15 @@
from core.units import unit_registry as u
-CHEM_TANK_WALL_THICKNESS = 5*u.mm
+WALL_THICKNESS = 5*u.mm
# each element in t... | Remove redundant mentions of chem_tank | py |
diff --git a/tests/test_restore.py b/tests/test_restore.py
index <HASH>..<HASH> 100644
--- a/tests/test_restore.py
+++ b/tests/test_restore.py
@@ -7,7 +7,10 @@ def test_restore(workon_home, env1):
patterns = ['lib*/*/site.py*', 'Lib/site.py*']
to_be_deleted = set(chain(*((workon_home / 'env1').glob(pat) for p... | Ignore FileNotFoundError in case to_be_deleted set in test_restore contains symlinks | py |
diff --git a/globus_cli/parsing/shell_completion.py b/globus_cli/parsing/shell_completion.py
index <HASH>..<HASH> 100644
--- a/globus_cli/parsing/shell_completion.py
+++ b/globus_cli/parsing/shell_completion.py
@@ -187,8 +187,12 @@ def do_zsh_complete():
completed_args = comp_words
def clean_help(helpst... | Expand escaped chars in zsh completion Description fields to zsh _arguments are `eval`uated, so if we want to get our strings through this processing verbatim, we need to escape backticks, double-quotes, and $. It's still almost definitely possible to slip something through this, using some novel or exciting features ... | py |
diff --git a/dvc/version.py b/dvc/version.py
index <HASH>..<HASH> 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -6,7 +6,7 @@
import os
import subprocess
-_BASE_VERSION = "1.1.7"
+_BASE_VERSION = "1.1.8"
def _generate_version(base_version): | dvc: bump to <I> | py |
diff --git a/imgui/integrations/pyglet.py b/imgui/integrations/pyglet.py
index <HASH>..<HASH> 100644
--- a/imgui/integrations/pyglet.py
+++ b/imgui/integrations/pyglet.py
@@ -21,6 +21,7 @@ class PygletMixin(object):
key.HOME: imgui.KEY_HOME,
key.END: imgui.KEY_END,
key.DELETE: imgui.KEY_DELET... | Fix assertion error imgui.core.ImGuiError: ImGui assertion error (g.IO.KeyMap[ImGuiKey_Space] != -1 && "ImGuiKey_Space is not mapped, required for keyboard navigation.") at imgui-cpp/imgui.cpp:<I> Error was thrown after enabling keyboard navigation because of the missing 'space' key in REVERSE_KEY_MAP | py |
diff --git a/hca/util/__init__.py b/hca/util/__init__.py
index <HASH>..<HASH> 100755
--- a/hca/util/__init__.py
+++ b/hca/util/__init__.py
@@ -228,12 +228,15 @@ class _PaginatingClientMethodFactory(_ClientMethodFactory):
page = None
while page is None or page.links.get("next", {}).get("url"):
... | Enumerate collections. (#<I>) | py |
diff --git a/source/rafcon/statemachine/state_machine.py b/source/rafcon/statemachine/state_machine.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/statemachine/state_machine.py
+++ b/source/rafcon/statemachine/state_machine.py
@@ -69,7 +69,7 @@ class StateMachine(Observable, JSONObject, Hashable):
self._ex... | fix naming of __supports_saving_state_names var | py |
diff --git a/datajoint/relational_operand.py b/datajoint/relational_operand.py
index <HASH>..<HASH> 100644
--- a/datajoint/relational_operand.py
+++ b/datajoint/relational_operand.py
@@ -229,11 +229,7 @@ class RelationalOperand:
return GroupBy.create(self, group, keep_all_rows=keep_all_rows,
... | bugfix in RelationalOperand.aggr (from previous commit) | py |
diff --git a/versioneer.py b/versioneer.py
index <HASH>..<HASH> 100644
--- a/versioneer.py
+++ b/versioneer.py
@@ -1185,7 +1185,7 @@ SHORT_VERSION_PY = """
# revision-control system data, or from the parent directory name of an
# unpacked source archive. Distribution tarballs contain a pre-generated copy
# of this f... | Fix another Python <I> issue. | py |
diff --git a/librosa/core/constantq.py b/librosa/core/constantq.py
index <HASH>..<HASH> 100644
--- a/librosa/core/constantq.py
+++ b/librosa/core/constantq.py
@@ -1248,7 +1248,7 @@ def griffinlim_cqt(C, n_iter=32, sr=22050, hop_length=512, fmin=None, bins_per_o
# Rebuild the spectrogram
rebuilt = cqt(... | fixed #<I> (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ CLASSIFIERS = [
settings.update(
name='ediblepickle',
- version='1.1.0',
+ version='1.1.1',
description='Checkpoint',
long_description=open('README.rst').read(),
author='Pavan Mallap... | changed version for pushing to pypi | py |
diff --git a/maildump/web.py b/maildump/web.py
index <HASH>..<HASH> 100644
--- a/maildump/web.py
+++ b/maildump/web.py
@@ -3,6 +3,7 @@ from logbook import Logger
from functools import wraps
import maildump
+import maildump.db as db
app = Flask(__name__)
@@ -43,4 +44,10 @@ def home():
@rest
def terminate():
... | REST endpoint to delete all messages | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,9 +4,8 @@ import re
import setuptools
-# Taken from the `Python Packaging User Guide
-# <https://packaging.python.org/single_source_version/>`_
def find_version(*file_paths):
+ # Credits: https://packaging.python.o... | Move and reformat an inline credit | py |
diff --git a/tidyextractors/tidytwitter/twitter_extractor.py b/tidyextractors/tidytwitter/twitter_extractor.py
index <HASH>..<HASH> 100644
--- a/tidyextractors/tidytwitter/twitter_extractor.py
+++ b/tidyextractors/tidytwitter/twitter_extractor.py
@@ -59,7 +59,7 @@ class TwitterExtractor(BaseExtractor):
pbar1.s... | Fixed tweet counting in TwitterExtractor. | py |
diff --git a/configure.py b/configure.py
index <HASH>..<HASH> 100755
--- a/configure.py
+++ b/configure.py
@@ -351,7 +351,7 @@ else:
except:
pass
if platform.is_mingw():
- cflags += ['-D_WIN32_WINNT=0x0501']
+ cflags += ['-D_WIN32_WINNT=0x0601']
ldflags = ['-L$builddir']
if pl... | Update WIN<I>_WINNT from 0x<I> (Windows XP) to 0x<I> (Windows 7) to support processor-group Windows API | py |
diff --git a/holoviews/plotting/bokeh/util.py b/holoviews/plotting/bokeh/util.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/util.py
+++ b/holoviews/plotting/bokeh/util.py
@@ -48,7 +48,11 @@ def map_colors(arr, crange, cmap):
"""
Maps an array of values to RGB hex strings.
"""
- arr = (... | Minor fix for bokeh color ranges | py |
diff --git a/vaex/remote.py b/vaex/remote.py
index <HASH>..<HASH> 100644
--- a/vaex/remote.py
+++ b/vaex/remote.py
@@ -570,8 +570,8 @@ class DatasetRest(DatasetRemote):
def __call__(self, *expressions, **kwargs):
return SubspaceRemote(self, expressions, kwargs.get("executor") or self.executor, async=kwargs.get("as... | bugfix: selection argument added as base class | py |
diff --git a/cdrouter/alerts.py b/cdrouter/alerts.py
index <HASH>..<HASH> 100644
--- a/cdrouter/alerts.py
+++ b/cdrouter/alerts.py
@@ -86,7 +86,7 @@ class AlertSchema(Schema):
category = fields.Str()
description = fields.Str(missing=None)
dest_ip = fields.Str()
- dest_port = fields.Int(as_string=True)... | Mark src/dest ports in security alerts model as optional This is required as some security alerts do not include src/dest ports, for example alerts caused by ICMP packets. | py |
diff --git a/tests/toranj/wpan.py b/tests/toranj/wpan.py
index <HASH>..<HASH> 100644
--- a/tests/toranj/wpan.py
+++ b/tests/toranj/wpan.py
@@ -487,18 +487,19 @@ class Node(object):
"""Issues a `wpanctl.leave` on all `Node` objects and waits for them to be ready"""
random.seed(12345)
time.slee... | [toranj] update wpan.init_all_nodes to allow wait time per node (#<I>) This commit also moves the disabling of the log within the `try` region to ensure it is retried in case wpantund instance is not yet ready. | py |
diff --git a/spacy/cli/package.py b/spacy/cli/package.py
index <HASH>..<HASH> 100644
--- a/spacy/cli/package.py
+++ b/spacy/cli/package.py
@@ -80,7 +80,7 @@ def generate_meta():
settings = [('lang', 'Model language', 'en'),
('name', 'Model name', 'model'),
('version', 'Model versi... | Detect spaCy version and add package title Package title allows customised package names (like spacy-nightly) | py |
diff --git a/src/means/simulation/solvers.py b/src/means/simulation/solvers.py
index <HASH>..<HASH> 100644
--- a/src/means/simulation/solvers.py
+++ b/src/means/simulation/solvers.py
@@ -24,7 +24,7 @@ class UniqueNameInitialisationMixin(object):
class SolverException(Exception):
def __init__(self, base_exceptio... | changed the message for the SolverException | py |
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
@@ -1287,3 +1287,19 @@ def test_204_with_no_body(hug_api):
return
assert '204' in hug.test.delete(hug_api, 'test_route').status
+
+
+def test_output_... | Add test for input format application on external api extends issue | py |
diff --git a/jishaku/cog.py b/jishaku/cog.py
index <HASH>..<HASH> 100644
--- a/jishaku/cog.py
+++ b/jishaku/cog.py
@@ -270,7 +270,9 @@ class Jishaku(commands.Cog): # pylint: disable=too-many-public-methods
# something bad happened, this is not a normal unload
# load the current instance as a ... | Add panic reload module to sys.modules as well | py |
diff --git a/lhc/io/fasta_/set_.py b/lhc/io/fasta_/set_.py
index <HASH>..<HASH> 100644
--- a/lhc/io/fasta_/set_.py
+++ b/lhc/io/fasta_/set_.py
@@ -1,6 +1,6 @@
class FastaSet(object):
def __init__(self, iterator):
- self.data = dict(iterator)
+ self.data = {k.split()[0]: v for k, v in iterator}
... | changed fasta sets to use first word of fasta header as key | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,8 @@ setup(
'pyarrow',
'more_itertools',
'textacy',
- 'keras'],
+ 'keras',
+ 'tensor... | add tensorflow as dependency | py |
diff --git a/pdfwatermarker/encrypt/__init__.py b/pdfwatermarker/encrypt/__init__.py
index <HASH>..<HASH> 100644
--- a/pdfwatermarker/encrypt/__init__.py
+++ b/pdfwatermarker/encrypt/__init__.py
@@ -1,4 +1,4 @@
-__all__ = ['protect', 'secure']
+__all__ = ['protect', 'secure', 'EncryptParams']
-from .encrypt import ... | Added EncryptParams class to handle declaration of user_password, owner_password, allow_printing and output_filename parameters. | py |
diff --git a/skflow/tests/test_io.py b/skflow/tests/test_io.py
index <HASH>..<HASH> 100644
--- a/skflow/tests/test_io.py
+++ b/skflow/tests/test_io.py
@@ -15,7 +15,7 @@
import random
from sklearn import datasets
-from sklearn.metrics import accuracy_score, mean_squared_error, log_loss
+from sklearn.metrics import a... | Print when pandas not installed and removed unnecessary imports | py |
diff --git a/pygam/pygam.py b/pygam/pygam.py
index <HASH>..<HASH> 100644
--- a/pygam/pygam.py
+++ b/pygam/pygam.py
@@ -978,11 +978,12 @@ class GAM(Core):
self.coef_ = np.ones(m) * np.sqrt(EPS) # allow more training
# make a reasonable initial parameter guess
- # set the intercept ... | only initialize intercept if fit_intercept == True | py |
diff --git a/salt/_logging/impl.py b/salt/_logging/impl.py
index <HASH>..<HASH> 100644
--- a/salt/_logging/impl.py
+++ b/salt/_logging/impl.py
@@ -988,6 +988,9 @@ def set_lowest_log_level(log_level):
Set the lowest log level
"""
set_lowest_log_level.__log_level__ = log_level
+ # Additionally set the r... | Set the root logger level to the right one once we have opts available. | py |
diff --git a/findimports.py b/findimports.py
index <HASH>..<HASH> 100755
--- a/findimports.py
+++ b/findimports.py
@@ -425,7 +425,6 @@ class ModuleGraph(object):
break
modname.reverse()
modname = ".".join(modname)
- print filename, '->', modname
return modname
d... | Remove debugging print. Originally committed <I>-<I>-<I> <I>:<I>:<I> <I> to a different SVN repository (python-tools) as revision <I>. | py |
diff --git a/scripts/experiments/run_srl.py b/scripts/experiments/run_srl.py
index <HASH>..<HASH> 100755
--- a/scripts/experiments/run_srl.py
+++ b/scripts/experiments/run_srl.py
@@ -147,7 +147,7 @@ class SrlExpParamsRunner(ExpParamsRunner):
# TODO: This removal of DEPREL and DEPREL should happen prior to thes... | Bug fix to run_srl.py | py |
diff --git a/auto_ml/predictor.py b/auto_ml/predictor.py
index <HASH>..<HASH> 100644
--- a/auto_ml/predictor.py
+++ b/auto_ml/predictor.py
@@ -1521,7 +1521,10 @@ class Predictor(object):
trained_feature_importances = final_model_obj.model.feature_importance_
except AttributeError as e:
... | more hacky code to support xgboost- ugh. | py |
diff --git a/nad_receiver/nad_commands.py b/nad_receiver/nad_commands.py
index <HASH>..<HASH> 100644
--- a/nad_receiver/nad_commands.py
+++ b/nad_receiver/nad_commands.py
@@ -41,7 +41,23 @@ CMDS = {
'version':
{'cmd': 'Main.Version',
'supported_operators': ['?']
- ... | Add missing commands for NAD C <I>BE | py |
diff --git a/pylleo/lleocal.py b/pylleo/lleocal.py
index <HASH>..<HASH> 100644
--- a/pylleo/lleocal.py
+++ b/pylleo/lleocal.py
@@ -106,5 +106,6 @@ def apply_poly(data_df, cal_dict, param):
import numpy
poly = cal_dict['parameters'][param]['poly']
+ a = numpy.polyval(poly, data_df[param])
- return nu... | convert returned array from polyval to float from object | py |
diff --git a/src/python/pants/option/parser.py b/src/python/pants/option/parser.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/option/parser.py
+++ b/src/python/pants/option/parser.py
@@ -191,9 +191,17 @@ class Parser(object):
def _validate(self, args, kwargs):
"""Ensure that the caller isn't trying to... | Validate that registered args begin with dashes, as appropriate. Otherwise we get a cryptic error further along. Testing Done: CI baking. Verified that bad registration triggers these validation checks. Reviewed at <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ DESCRIPTION = "Communicate with the Spotify's web helper process to control some
URL = "https://github.com/erinxocon/spotify-local-control"
EMAIL = "erinocon5@gmail.com"
AUTHOR = "Erin O'Connell"
-VERSION = "... | changed setup.py to use newly created package | py |
diff --git a/leonardo/module/web/settings.py b/leonardo/module/web/settings.py
index <HASH>..<HASH> 100644
--- a/leonardo/module/web/settings.py
+++ b/leonardo/module/web/settings.py
@@ -30,9 +30,10 @@ PAGE_EXTENSIONS = [
try:
import leonardo_module_pagepermissions # noqa
+except Exception:
+ pass
+else:
... | python 3 fix and more clean code | py |
diff --git a/openquake/hazardlib/contexts.py b/openquake/hazardlib/contexts.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/contexts.py
+++ b/openquake/hazardlib/contexts.py
@@ -904,7 +904,7 @@ class ContextMaker(object):
if src.nsites == 0: # was discarded by the prefiltering
sr... | Reduced weight on MultiFaultSources [ci skip] | py |
diff --git a/wandb/sklearn/__init__.py b/wandb/sklearn/__init__.py
index <HASH>..<HASH> 100644
--- a/wandb/sklearn/__init__.py
+++ b/wandb/sklearn/__init__.py
@@ -1,11 +1,10 @@
+from __future__ import absolute_import, division, print_function, unicode_literals
import wandb
import sklearn
import numpy as np
import s... | learning curve in vega some more | py |
diff --git a/spacy/en/__init__.py b/spacy/en/__init__.py
index <HASH>..<HASH> 100644
--- a/spacy/en/__init__.py
+++ b/spacy/en/__init__.py
@@ -44,6 +44,7 @@ def _fix_deprecated_glove_vectors_loading(overrides):
else:
path = overrides['path']
data_path = path.parent
+ vec_path = None
if 'a... | Fixed missing vec_path declaration that was failing if 'add_vectors' was set Added vec_path variable declaration to avoid accessing it before assignment in case 'add_vectors' is in overrides. | py |
diff --git a/coconut/compiler.py b/coconut/compiler.py
index <HASH>..<HASH> 100644
--- a/coconut/compiler.py
+++ b/coconut/compiler.py
@@ -499,6 +499,11 @@ def _coconut_igetitem(iterable, index):
return _coconut.collections.deque(iterable, maxlen=-index)[0]
else:
return _coconut.next(... | Improves iterator slicing optimizations | py |
diff --git a/src/googleclouddebugger/__init__.py b/src/googleclouddebugger/__init__.py
index <HASH>..<HASH> 100644
--- a/src/googleclouddebugger/__init__.py
+++ b/src/googleclouddebugger/__init__.py
@@ -22,6 +22,7 @@ the application command line. It then attaches the debugger and runs the
actual app.
"""
+import lo... | Enable logging in the gae Python debugger. This is the first pass implementation that *should* work, though there may be issues with integration with the request log. It won't affect current customers either way, since there's currently no way to set a logpoint. ------------- Created by MOE: <URL> | py |
diff --git a/filterpy/kalman/kalman_filter.py b/filterpy/kalman/kalman_filter.py
index <HASH>..<HASH> 100644
--- a/filterpy/kalman/kalman_filter.py
+++ b/filterpy/kalman/kalman_filter.py
@@ -452,7 +452,7 @@ class KalmanFilter(object):
Optional control vector. If not `None`, it is multiplied by B
... | Fix doc for size of B github #<I> B is shaped by the U dimension | py |
diff --git a/tests/sessionstack/test_plugin.py b/tests/sessionstack/test_plugin.py
index <HASH>..<HASH> 100644
--- a/tests/sessionstack/test_plugin.py
+++ b/tests/sessionstack/test_plugin.py
@@ -8,6 +8,8 @@ from sentry.utils import json
from sentry_plugins.sessionstack.plugin import SessionStackPlugin
+import pyte... | [sessionstack] Mark SessionStack plugin tests as expected to fail | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ setup(
data_files=[(
(BASE_DIR, ['data/nssm_original.exe'])
)],
- install_requires=['indy-plenum-dev==1.6.551',
+ install_requires=['indy-plenum-dev==1.6.552',
'in... | INDY-<I>: Updated indy-plenum dependency | py |
diff --git a/lprelease.py b/lprelease.py
index <HASH>..<HASH> 100755
--- a/lprelease.py
+++ b/lprelease.py
@@ -97,9 +97,10 @@ def close_milestone(milestone, dry_run, verbose):
def defer_bugs(milestone, deferred_milestone, dry_run, verbose):
unfinished_bug_tasks = milestone.searchTasks(status=UNFINISHED)
for ... | quick hack to workaround <I> | py |
diff --git a/buildbot/test/unit/test_db_connector.py b/buildbot/test/unit/test_db_connector.py
index <HASH>..<HASH> 100644
--- a/buildbot/test/unit/test_db_connector.py
+++ b/buildbot/test/unit/test_db_connector.py
@@ -15,11 +15,12 @@ class DBConnector_Basic(unittest.TestCase):
# use an in-memory sqlite databa... | make test.unit.test_db_connector less sensitive to other things leaking threads | py |
diff --git a/haigha/connection.py b/haigha/connection.py
index <HASH>..<HASH> 100644
--- a/haigha/connection.py
+++ b/haigha/connection.py
@@ -566,7 +566,7 @@ class ConnectionChannel(Channel):
event.timeout(0, self.connection._close_cb)
def _send_close_ok(self):
- self.send_frame( MethodFrame(self.channel_... | Connection close_ok is <I>, *not* <I> | py |
diff --git a/database.py b/database.py
index <HASH>..<HASH> 100644
--- a/database.py
+++ b/database.py
@@ -28,17 +28,17 @@ class OECDatabase(object):
"""
searchName = compactString(name)
- returnSet = set()
+ returnDict = {}
for altname, planetObj in self.planetSearchDict.it... | changed search to only return object not dicts | py |
diff --git a/hamster/add_custom_fact.py b/hamster/add_custom_fact.py
index <HASH>..<HASH> 100644
--- a/hamster/add_custom_fact.py
+++ b/hamster/add_custom_fact.py
@@ -139,7 +139,16 @@ class CustomFactController:
if selected == 1:
# selected to enter end date and time
- self.get_widget... | for today's facts set end time to current (that's the most probable scenario) svn path=/trunk/; revision=<I> | py |
diff --git a/tests/test_reading.py b/tests/test_reading.py
index <HASH>..<HASH> 100644
--- a/tests/test_reading.py
+++ b/tests/test_reading.py
@@ -31,6 +31,6 @@ class Mock(object):
'https://raw.githubusercontent.com/MoseleyBioinformaticsLab/filehandles/master/tests/example_data/archive.tar.bz2'
])
def test_readi... | Added "verbose" argument to test function. | py |
diff --git a/synapse/async.py b/synapse/async.py
index <HASH>..<HASH> 100644
--- a/synapse/async.py
+++ b/synapse/async.py
@@ -1,14 +1,5 @@
-import time
-import traceback
-import threading
-import collections
-
-from synapse.compat import queue
-
-import synapse.dyndeps as s_dyndeps
import synapse.lib.sched as s_sched... | Remove unused imports from async.py | py |
diff --git a/python/src/cm_api/endpoints/services.py b/python/src/cm_api/endpoints/services.py
index <HASH>..<HASH> 100644
--- a/python/src/cm_api/endpoints/services.py
+++ b/python/src/cm_api/endpoints/services.py
@@ -1402,6 +1402,15 @@ class ApiService(BaseApiResource):
"""
return self._cmd('installOozieSha... | [cm_api] OPSAPS-<I>: Add createOozieDb to python API We left it out for whatever reason. | py |
diff --git a/src/scs_core/__init__.py b/src/scs_core/__init__.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/__init__.py
+++ b/src/scs_core/__init__.py
@@ -6,4 +6,4 @@ Created on 3 May 2021
https://packaging.python.org/guides/single-sourcing-package-version/
"""
-__version__ = '1.0.11'
+__version__ = '1.0.12' | Added ModemConnection null_datum() factory method | py |
diff --git a/chessboard/chessboard.py b/chessboard/chessboard.py
index <HASH>..<HASH> 100644
--- a/chessboard/chessboard.py
+++ b/chessboard/chessboard.py
@@ -121,6 +121,12 @@ class Board(object):
return '<Board: length={}, height={}, pieces={}>'.format(
self.length, self.height, self.pieces)
+ ... | Add a position iterator on board. | py |
diff --git a/test/test_dumper.py b/test/test_dumper.py
index <HASH>..<HASH> 100644
--- a/test/test_dumper.py
+++ b/test/test_dumper.py
@@ -61,7 +61,7 @@ class TestDumper(unittest.TestCase):
def test_dump_restore(self):
dumper = Dumper(self.pg_service1, '/tmp/test_dumper/dump.sql')
- dumper.pg_bac... | fix test for exclude-schema | py |
diff --git a/src/powershift/endpoints/base.py b/src/powershift/endpoints/base.py
index <HASH>..<HASH> 100644
--- a/src/powershift/endpoints/base.py
+++ b/src/powershift/endpoints/base.py
@@ -2,6 +2,8 @@ import os
import requests
import aiohttp
import asyncio
+import functools
+import sys
from .. import resources
... | Deal with __aiter__() differences between <I> and <I> of Python. | py |
diff --git a/baron/render.py b/baron/render.py
index <HASH>..<HASH> 100644
--- a/baron/render.py
+++ b/baron/render.py
@@ -85,10 +85,9 @@ def render_node(node, strict=False):
raise e
if key_type in ['key', 'string', 'list', 'formatting']:
- key_type = 'constant' if isinstance(node... | [mod] remove hack due to the absence of string type | py |
diff --git a/numina/array/trace/extract.py b/numina/array/trace/extract.py
index <HASH>..<HASH> 100644
--- a/numina/array/trace/extract.py
+++ b/numina/array/trace/extract.py
@@ -32,7 +32,7 @@ def extract_simple_rss(arr, borders, axis=0, out=None):
if axis == 0:
arr3 = arr2
elif axis == 1:
- a... | Fix more minor errors in extract.py | py |
diff --git a/qtpylib/broker.py b/qtpylib/broker.py
index <HASH>..<HASH> 100644
--- a/qtpylib/broker.py
+++ b/qtpylib/broker.py
@@ -190,7 +190,7 @@ class Broker():
# -----------------------------------
# do stuff on exit
- atexit.register(self.on_exit)
+ atexit.register(self._on_exit)
... | renamed on_exit to _on_exit() | py |
diff --git a/lib/websearchadminlib.py b/lib/websearchadminlib.py
index <HASH>..<HASH> 100644
--- a/lib/websearchadminlib.py
+++ b/lib/websearchadminlib.py
@@ -38,7 +38,8 @@ from invenio.config import \
CFG_SITE_URL,\
CFG_WEBCOMMENT_ALLOW_COMMENTS,\
CFG_WEBCOMMENT_ALLOW_REVIEWS,\
- CFG_INSPIRE_SITE... | WebSearch: CERN-specific enabling of holdings tab * Display "holdings" tab when viewing record belonging to "Books & Proceedings" collection at CERN. | py |
diff --git a/alot/buffers.py b/alot/buffers.py
index <HASH>..<HASH> 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -294,10 +294,11 @@ class ThreadBuffer(Buffer):
for mw in self.get_message_widgets():
msg = mw.get_message()
if msg.matches(querystring):
- mw.fold(v... | update ThreadBuffer wrt new folding method folding of MessageWidgets is now done by setting widget.folded to True and calling widget.refresh() | py |
diff --git a/bliss/core/dmc.py b/bliss/core/dmc.py
index <HASH>..<HASH> 100644
--- a/bliss/core/dmc.py
+++ b/bliss/core/dmc.py
@@ -42,6 +42,7 @@ TwoPi = 2 * math.pi
DOY_Format = '%Y-%jT%H:%M:%SZ'
ISO_8601_Format = '%Y-%m-%dT%H:%M:%SZ'
+_DEFAULT_FILE_NAME = 'leapseconds.dat'
LeapSeconds = None
def getTimesta... | Issue #8 - Fix inconsistent default leap second file name | py |
diff --git a/pmxbot/irc.py b/pmxbot/irc.py
index <HASH>..<HASH> 100644
--- a/pmxbot/irc.py
+++ b/pmxbot/irc.py
@@ -95,9 +95,11 @@ class LoggingCommandBot(core.Bot, irc.bot.SingleServerIRCBot):
# some msgs will fail because they're too long
log.warning("Long message could not be transmitted: %s", msg)
except ... | Extract variable for nicer indentation. Correct spacing. | py |
diff --git a/satpy/readers/yaml_reader.py b/satpy/readers/yaml_reader.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/yaml_reader.py
+++ b/satpy/readers/yaml_reader.py
@@ -862,7 +862,7 @@ class CollectionYAMLReader(FileYAMLReader):
failure = True
counter = 1
for fh in sorted(file_handlers,... | Make sure segment number is a number | py |
diff --git a/pyphi/macro.py b/pyphi/macro.py
index <HASH>..<HASH> 100644
--- a/pyphi/macro.py
+++ b/pyphi/macro.py
@@ -195,7 +195,7 @@ class MacroSubsystem(Subsystem):
state = np.array(self.state)
self._state = tuple(
- 0 if sum(state[list(coarse_grain.output_grouping[0])])
+ 0... | Fix bug in coarse-grain state | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ from distutils.core import Command
from setuptools import setup, find_packages
PROJECT = 'kba.pipeline'
-VERSION = '0.1.6'
+VERSION = '0.1.8'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
DE... | Bump the version number for deployment to openstack cluster I had an uncommited version number <I> already deployed. So we go to <I> with this increment. | py |
diff --git a/pcef/__init__.py b/pcef/__init__.py
index <HASH>..<HASH> 100644
--- a/pcef/__init__.py
+++ b/pcef/__init__.py
@@ -44,8 +44,8 @@ def openFileInEditor(editor, filename, encoding='utf8',
:param filename: Filename of the file to open
:param encoding: Encoding to use to load the file
"""
- f =... | Better file handling (makes use of the with statement) | py |
diff --git a/mopidy_spotify/library.py b/mopidy_spotify/library.py
index <HASH>..<HASH> 100644
--- a/mopidy_spotify/library.py
+++ b/mopidy_spotify/library.py
@@ -184,14 +184,18 @@ class SpotifyLibraryProvider(backend.LibraryProvider):
type=spotify.ArtistBrowserType.NO_TRACKS)
sp_artist_browser.lo... | lookup: Get all album browsers first, then use them Reduces lookup time for worst case scenario artists with 9/<I>. Related to #<I>, #<I>. | py |
diff --git a/pylsl/pylsl.py b/pylsl/pylsl.py
index <HASH>..<HASH> 100644
--- a/pylsl/pylsl.py
+++ b/pylsl/pylsl.py
@@ -451,8 +451,9 @@ class StreamOutlet:
c_double(timestamp),
c_int(pushthrough)))
else:
- rai... | Added channel counts to push_ error messages. Fixes #<I> | py |
diff --git a/flatten_json.py b/flatten_json.py
index <HASH>..<HASH> 100644
--- a/flatten_json.py
+++ b/flatten_json.py
@@ -67,7 +67,7 @@ flatten_json = flatten
def _unflatten_asserts(flat_dict, separator):
assert isinstance(flat_dict, dict), "un_flatten requires a dictionary input"
assert isinstance(separato... | Empty list, dict is not iterable | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.