diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pyinfra/modules/files.py b/pyinfra/modules/files.py
index <HASH>..<HASH> 100644
--- a/pyinfra/modules/files.py
+++ b/pyinfra/modules/files.py
@@ -82,7 +82,7 @@ def download(
# If we download, always do user/group/mode as SSH user may be different
if download:
- curl_command = 'curl -sSf ... | Add `L` flag to curl command to follow redirects. | py |
diff --git a/canmatrix/cmjson.py b/canmatrix/cmjson.py
index <HASH>..<HASH> 100644
--- a/canmatrix/cmjson.py
+++ b/canmatrix/cmjson.py
@@ -76,7 +76,8 @@ def dump(db, f, **options):
"factor": float(signal.factor),
"offset": float(signal.offset),
"is_big_endi... | float support for json (#<I>) | py |
diff --git a/ai/backend/client/vfolder.py b/ai/backend/client/vfolder.py
index <HASH>..<HASH> 100644
--- a/ai/backend/client/vfolder.py
+++ b/ai/backend/client/vfolder.py
@@ -91,7 +91,7 @@ class BaseVFolder(BaseFunction):
return resp
def _delete_files(self, files: Sequence[Union[str, Path]]):
- r... | Bugfix - use DELETE method when delete files in virtual folder | py |
diff --git a/projects/l2_pooling/capacity_test.py b/projects/l2_pooling/capacity_test.py
index <HASH>..<HASH> 100644
--- a/projects/l2_pooling/capacity_test.py
+++ b/projects/l2_pooling/capacity_test.py
@@ -86,7 +86,7 @@ def getL4Params():
return {
"columnCount": 150,
"cellsPerColumn": 16,
- "formIntern... | Bugfix: formInternalBasalConnections should be False | py |
diff --git a/mtools/util/logevent.py b/mtools/util/logevent.py
index <HASH>..<HASH> 100644
--- a/mtools/util/logevent.py
+++ b/mtools/util/logevent.py
@@ -215,7 +215,7 @@ class LogEvent(object):
if matchobj:
self._duration = int(matchobj.group(1))
# SERVER-16176 - Logg... | More specific match for checkpoint duration log line | py |
diff --git a/sentrylogs/parsers/__init__.py b/sentrylogs/parsers/__init__.py
index <HASH>..<HASH> 100644
--- a/sentrylogs/parsers/__init__.py
+++ b/sentrylogs/parsers/__init__.py
@@ -5,6 +5,12 @@ import tailer # same functionality as UNIX tail in python
from ..helpers import send_message
+try:
+ (FileNotFoundE... | Handle FileNotFound and Permission errors gracefully | py |
diff --git a/plotextractor/converter.py b/plotextractor/converter.py
index <HASH>..<HASH> 100644
--- a/plotextractor/converter.py
+++ b/plotextractor/converter.py
@@ -205,7 +205,7 @@ def rotate_image(filename, line, sdir, image_list):
:return: True if something was rotated
"""
file_loc = get_image_locati... | converter: avoid wrong detection of rotation angle Closes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ import setuptools
import textwrap
import subprocess
-version = "0.1.3"
+version = "0.1.4"
def parsePkgConfig(*args):
@@ -39,7 +39,7 @@ def parsePkgConfig(*args):
_turkshead = setuptools.Extension(
... | Remove hpp form sources in setup.py | py |
diff --git a/holoviews/plotting/bokeh/chart.py b/holoviews/plotting/bokeh/chart.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/chart.py
+++ b/holoviews/plotting/bokeh/chart.py
@@ -256,12 +256,12 @@ class VectorFieldPlot(ColorbarPlot):
magnitudes = magnitudes / max_magnitude
... | Fix vectorfield magnitude increase after each call (#<I>) | py |
diff --git a/werkzeug/utils.py b/werkzeug/utils.py
index <HASH>..<HASH> 100644
--- a/werkzeug/utils.py
+++ b/werkzeug/utils.py
@@ -29,6 +29,7 @@ except NameError:
from werkzeug._internal import _patch_wrapper, _decode_unicode, \
_empty_stream, _iter_modules, _ExtendedCookie, _ExtendedMorsel, \
_StorageHelp... | added ETag-support to the SharedDataMiddleware | py |
diff --git a/intranet/apps/emerg/views.py b/intranet/apps/emerg/views.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/emerg/views.py
+++ b/intranet/apps/emerg/views.py
@@ -76,7 +76,6 @@ def get_emerg():
"""
key = "emerg:{}".format(datetime.datetime.now().date())
cached = cache.get(key)
- cached = N... | refactor(emerg): actually use the FCPS emergency info cache | py |
diff --git a/alot/__init__.py b/alot/__init__.py
index <HASH>..<HASH> 100644
--- a/alot/__init__.py
+++ b/alot/__init__.py
@@ -1,5 +1,5 @@
__productname__ = 'alot'
-__version__ = '0.3.1+'
+__version__ = '0.3.2'
__copyright__ = "Copyright (C) 2012 Patrick Totzke"
__author__ = "Patrick Totzke"
__author_email__ = "pat... | bumped version string to <I> | py |
diff --git a/salt/modules/dockerng.py b/salt/modules/dockerng.py
index <HASH>..<HASH> 100644
--- a/salt/modules/dockerng.py
+++ b/salt/modules/dockerng.py
@@ -2943,9 +2943,9 @@ def create(image,
if 'api_name' in val:
create_kwargs[val['api_name']] = create_kwargs.pop(key)
- # Added to... | HostConfig has been intoriduced by docker api version <I> | py |
diff --git a/scripts/shopify_api.py b/scripts/shopify_api.py
index <HASH>..<HASH> 100755
--- a/scripts/shopify_api.py
+++ b/scripts/shopify_api.py
@@ -50,7 +50,7 @@ class TasksMeta(type):
if len(matches) == 1:
task = matches[0]
else:
- print >>sys.stderr, 'Could... | Use sys.stderr.write to print to stderr for python 3 compatibility. | py |
diff --git a/contrib/clients/TSCA/python/PythonClient.py b/contrib/clients/TSCA/python/PythonClient.py
index <HASH>..<HASH> 100755
--- a/contrib/clients/TSCA/python/PythonClient.py
+++ b/contrib/clients/TSCA/python/PythonClient.py
@@ -21,10 +21,15 @@
import csv
import time
import sys
-sys.path.append('../../../../th... | Adapt TSCA python client to new code layout | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -7,7 +7,6 @@ from web3 import Web3
from web3.providers.eth_tester import EthereumTesterProvider
from vyper import compile_lll, compiler, optimizer
-from vyper.parser.parser import parse_... | test: use CompilerData object to ensure all passes run | py |
diff --git a/angr/analyses/girlscout.py b/angr/analyses/girlscout.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/girlscout.py
+++ b/angr/analyses/girlscout.py
@@ -380,10 +380,14 @@ class GirlScout(Analysis):
# "No memory at xxx"
l.debug(ex)
continue
- ex... | Catching more errors in GirlScout | py |
diff --git a/mapillary_tools/gpx_from_gopro.py b/mapillary_tools/gpx_from_gopro.py
index <HASH>..<HASH> 100644
--- a/mapillary_tools/gpx_from_gopro.py
+++ b/mapillary_tools/gpx_from_gopro.py
@@ -72,6 +72,6 @@ def gpx_from_gopro(gopro_video):
basename, extension = os.path.splitext(gopro_video)
gpx_path = basen... | fix: sort extracted gps data from gopro by time | py |
diff --git a/eppy/useful_scripts/internalLoads.py b/eppy/useful_scripts/internalLoads.py
index <HASH>..<HASH> 100644
--- a/eppy/useful_scripts/internalLoads.py
+++ b/eppy/useful_scripts/internalLoads.py
@@ -29,10 +29,10 @@ sys.path.append(pathnameto_eplusscripting)
from eppy.modeleditor import IDF
-#def convert_ip... | Added a small function to convert from inch-pound units to SI | py |
diff --git a/dynamodb_sessions/backends/dynamodb.py b/dynamodb_sessions/backends/dynamodb.py
index <HASH>..<HASH> 100644
--- a/dynamodb_sessions/backends/dynamodb.py
+++ b/dynamodb_sessions/backends/dynamodb.py
@@ -77,7 +77,7 @@ class SessionStore(SessionBase):
self.create()
return {}
- ... | Adapt backend to upstream boto change in Item attribute access. | py |
diff --git a/tile_generator/pcf.py b/tile_generator/pcf.py
index <HASH>..<HASH> 100755
--- a/tile_generator/pcf.py
+++ b/tile_generator/pcf.py
@@ -417,6 +417,11 @@ def bosh_env_cmd():
print('BOSH USERNAME={}'.format(director_creds['credential']['value']['identity']))
print('BOSH PASSWORD={}'.format(director_creds['... | Add `pcf password` command to get Ops Manager password for PIE. E.g., use `pcf password | pbcopy` to avoid having to click through Tile Dashboard to get the Ops Manager password. | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -5628,5 +5628,6 @@ class TestDominicanRepublic(unittest.TestCase):
# New Year's Day
self.assertIn(date(2019, 1, 1), self.do_holidays)
+
if __name__ == "__main__":
unittest.main() | Fix E<I> expected 2 blank lines missing (#<I>) | py |
diff --git a/tests/integration/states/mysql.py b/tests/integration/states/mysql.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/mysql.py
+++ b/tests/integration/states/mysql.py
@@ -112,7 +112,7 @@ class MysqlDatabaseStateTest(integration.ModuleCase,
query='SELECT 1',
**kw... | Fix PEP8 E<I> - test for membership should be "not in" | py |
diff --git a/spyder/app/tests/test_mainwindow.py b/spyder/app/tests/test_mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/tests/test_mainwindow.py
+++ b/spyder/app/tests/test_mainwindow.py
@@ -4430,6 +4430,7 @@ def test_focus_to_consoles(main_window, qtbot):
@pytest.mark.slow
@flaky(max_runs=3)
+@pytest.m... | Testing: Skip a test on Windows | py |
diff --git a/selene/core/command.py b/selene/core/command.py
index <HASH>..<HASH> 100644
--- a/selene/core/command.py
+++ b/selene/core/command.py
@@ -79,7 +79,7 @@ class js:
)
click = Command(
- 'scroll into view',
+ 'click',
lambda element: element.execute_script(
"""re... | [#<I>] fix typo in description of command.js.click() | py |
diff --git a/allauth/socialaccount/providers/angellist/tests.py b/allauth/socialaccount/providers/angellist/tests.py
index <HASH>..<HASH> 100644
--- a/allauth/socialaccount/providers/angellist/tests.py
+++ b/allauth/socialaccount/providers/angellist/tests.py
@@ -1,12 +1,12 @@
-from allauth.socialaccount.tests import cr... | Switch angellist tests to OAuth2TestsMixin. This is a fixup for #<I> because I had an unsaved file in my editor. </sheepish> | py |
diff --git a/sendgrid/helpers/mail/__init__.py b/sendgrid/helpers/mail/__init__.py
index <HASH>..<HASH> 100644
--- a/sendgrid/helpers/mail/__init__.py
+++ b/sendgrid/helpers/mail/__init__.py
@@ -7,6 +7,8 @@ from .click_tracking import ClickTracking
from .content import Content
from .custom_arg import CustomArg
from ... | Added Validators and SendGrid-related Exceptions | py |
diff --git a/src/scs_core/aws/manager/dynamo_manager.py b/src/scs_core/aws/manager/dynamo_manager.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/aws/manager/dynamo_manager.py
+++ b/src/scs_core/aws/manager/dynamo_manager.py
@@ -437,3 +437,18 @@ class DynamoManager(object):
)
return response
+
+ ... | Added batch delete to dynamo manager | py |
diff --git a/src/toil/worker.py b/src/toil/worker.py
index <HASH>..<HASH> 100644
--- a/src/toil/worker.py
+++ b/src/toil/worker.py
@@ -493,7 +493,7 @@ def main():
os.dup2(origStdOut, 1)
#Close redirected stderr and replace with the original standard error.
- os.dup2(origStdOut, 2)
+ os.dup2(origSt... | Fix copy-paste typo (resolves #<I>) | py |
diff --git a/tests/test_gateways.py b/tests/test_gateways.py
index <HASH>..<HASH> 100644
--- a/tests/test_gateways.py
+++ b/tests/test_gateways.py
@@ -43,8 +43,8 @@ class TwilioGatewayTest(TestCase):
response = self.client.get('%s?%s' % (url, urlencode({'locale': 'en-gb'})))
self.assertContains(respon... | Assumption about available Twilio languages no longer holds | py |
diff --git a/metpy/plots/ctables.py b/metpy/plots/ctables.py
index <HASH>..<HASH> 100644
--- a/metpy/plots/ctables.py
+++ b/metpy/plots/ctables.py
@@ -172,6 +172,7 @@ class ColortableRegistry(dict):
"""
self[name] = read_colortable(fobj)
+ self[name + '_r'] = self[name][::-1]
def get_w... | Append reversed versions of all color maps. | py |
diff --git a/src/urh/util/Logger.py b/src/urh/util/Logger.py
index <HASH>..<HASH> 100644
--- a/src/urh/util/Logger.py
+++ b/src/urh/util/Logger.py
@@ -6,12 +6,18 @@ import tempfile
from urh.constants import color
-logfile = os.path.join(tempfile.gettempdir(), "urh.log")
+logger_conf = {
+ "level": logging.WARNI... | fix logger conf definition as python <I> has no filemode argument | py |
diff --git a/fernet_fields/test/testmigrate/migrations/0004_copy_values.py b/fernet_fields/test/testmigrate/migrations/0004_copy_values.py
index <HASH>..<HASH> 100644
--- a/fernet_fields/test/testmigrate/migrations/0004_copy_values.py
+++ b/fernet_fields/test/testmigrate/migrations/0004_copy_values.py
@@ -8,12 +8,14 @@... | Fix test migration to actually save updates. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ setup(
classifiers=[
'Programming Language :: Python :: 3.8',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
- 'Development Status :: 4 - Beta',
+ 'Devel... | [pypi] Fix development status | py |
diff --git a/copulas/univariate/gaussian_kde.py b/copulas/univariate/gaussian_kde.py
index <HASH>..<HASH> 100644
--- a/copulas/univariate/gaussian_kde.py
+++ b/copulas/univariate/gaussian_kde.py
@@ -12,6 +12,10 @@ class GaussianKDE(ScipyWrapper):
in scipy.stats toolbox. gaussian_kde is slower than statsmodels
... | Updated gaussian_kde docstring about sample_size | py |
diff --git a/sacred/config/captured_function.py b/sacred/config/captured_function.py
index <HASH>..<HASH> 100644
--- a/sacred/config/captured_function.py
+++ b/sacred/config/captured_function.py
@@ -41,13 +41,15 @@ def captured_function(wrapped, instance, args, kwargs):
bound = (instance is not None)
args, kw... | Allow captured functions to be called normal code This change enables non-experiment code to call captured functions. When loading the configuration of a runned experiment this is useful: ``` from my_experiment import load_model config = load_config() # load config model = load_model(**config) # creates model wit... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -34,5 +34,5 @@ and data types of the information within the MIB module.""",
author = "Pieter Hollants",
author_email = "pieter@hollants.com",
py_modules = [ "netsnmpagent", "netsnmpapi" ],
- license = 'GPL 3',
+... | Modify License specification to conform with openSUSE guidelines | py |
diff --git a/tests/test_config.py b/tests/test_config.py
index <HASH>..<HASH> 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -56,7 +56,7 @@ class TestConfig(unittest.TestCase):
self.assertIsNotNone(config.conf)
self.assertIsNone(config.raw_conf)
self.assertEqual(config.conf_l... | [tests] Update test_config.py Add tests to check the enrich_pull_requests study and its parameters | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ import os
from setuptools import setup
-VERSION = '1.6.0'
+VERSION = '1.6.1'
def readme(*paths): | Bump to <I> Just tweaking the README | py |
diff --git a/src/flask_assets.py b/src/flask_assets.py
index <HASH>..<HASH> 100644
--- a/src/flask_assets.py
+++ b/src/flask_assets.py
@@ -231,7 +231,16 @@ else:
from flask import current_app
self.env = current_app.jinja_env.assets_environment
+ # Determine 'prog' - someth... | Fine-tune the basename of ManageAssets command. | py |
diff --git a/lakeside/__init__.py b/lakeside/__init__.py
index <HASH>..<HASH> 100755
--- a/lakeside/__init__.py
+++ b/lakeside/__init__.py
@@ -40,7 +40,8 @@ def get_devices(username, password):
info = r.json()
for item in info['items']:
- devices.append({'address': item['device']['wifi']['lan_ip_addr... | Fix condition where the Eufy API can return an info['items']['device'] of type None. | py |
diff --git a/simpleyapsy/interface.py b/simpleyapsy/interface.py
index <HASH>..<HASH> 100644
--- a/simpleyapsy/interface.py
+++ b/simpleyapsy/interface.py
@@ -18,7 +18,7 @@ class Interface(object):
def add_plugin_directories(self, paths):
self.file_locator.add_plugin_directories(paths)
- def set_plug... | fixed api call from file locator | py |
diff --git a/tests/test_foreign_keys.py b/tests/test_foreign_keys.py
index <HASH>..<HASH> 100644
--- a/tests/test_foreign_keys.py
+++ b/tests/test_foreign_keys.py
@@ -27,9 +27,10 @@ def test_describe():
"""real_definition should match original definition"""
for rel in (schema_advanced.LocalSynapse(), schema_a... | break up test_foreign_keys into parts | py |
diff --git a/ca/django_ca/extensions.py b/ca/django_ca/extensions.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/extensions.py
+++ b/ca/django_ca/extensions.py
@@ -879,6 +879,7 @@ if ca_settings.CRYPTOGRAPHY_HAS_PRECERT_POISON: # pragma: only cryptography>=2.
"""
default_critical = True
o... | set name of extension, cryptography doesn't currently set it | py |
diff --git a/src/fileseq/constants.py b/src/fileseq/constants.py
index <HASH>..<HASH> 100644
--- a/src/fileseq/constants.py
+++ b/src/fileseq/constants.py
@@ -25,7 +25,7 @@ PRINTF_SYNTAX_PADDING_PATTERN = r"%(\d+)d"
PRINTF_SYNTAX_PADDING_RE = re.compile(PRINTF_SYNTAX_PADDING_PATTERN)
# Regular expression pattern fo... | Update regex to handle long extensions after frame (refs #<I>) | py |
diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py
index <HASH>..<HASH> 100644
--- a/discord/ext/tasks/__init__.py
+++ b/discord/ext/tasks/__init__.py
@@ -348,7 +348,7 @@ class Loop:
def loop(*, seconds=0, minutes=0, hours=0, count=None, reconnect=True, loop=None):
"""A decorator that sc... | [tasks] Removed Returns from decorator docstring | py |
diff --git a/spanner/setup.py b/spanner/setup.py
index <HASH>..<HASH> 100644
--- a/spanner/setup.py
+++ b/spanner/setup.py
@@ -51,7 +51,7 @@ SETUP_BASE = {
REQUIREMENTS = [
- 'google-cloud-core >= 0.24.1, < 0.25dev',
+ 'google-cloud-core >= 0.25.0, < 0.26dev',
'grpcio >= 1.2.0, < 2.0dev',
'gapic-go... | Prep spanner-<I> release. (#<I>) | py |
diff --git a/livelossplot/tensorboard.py b/livelossplot/tensorboard.py
index <HASH>..<HASH> 100644
--- a/livelossplot/tensorboard.py
+++ b/livelossplot/tensorboard.py
@@ -4,7 +4,7 @@ from os import path
class TensorboardLogger:
def __init__(self, logdir="./tensorboard_logs/"):
- time_str = datetime.now()... | Replace the `:` character in Tensorboard path if the platform is Windows (#<I>) * Replace the `:` character in Tensorboard logging path if the platform is Windows * Apply Tensorboard path formatting to every os instead of just Windows | py |
diff --git a/qa_tests/bcr_unittest.py b/qa_tests/bcr_unittest.py
index <HASH>..<HASH> 100644
--- a/qa_tests/bcr_unittest.py
+++ b/qa_tests/bcr_unittest.py
@@ -40,22 +40,20 @@ GML = 'http://www.opengis.net/gml'
class BCRQATestCase(unittest.TestCase):
- # TODO: fix the code and remove @skipit
- @helpers.skipit... | inserted new expected results (from Vitor's calculations) Former-commit-id: e7c<I>d5a<I>c9a<I>c5faf<I>a<I>e5e<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,5 +31,5 @@ setup(
],
keywords='gopay payments sdk rest api',
packages=['gopay'],
- install_requires=['requests'],
+ install_requires=['requests', 'deprecated>=1.2.0'],
) | Add deprecated >= <I> to install_requires | py |
diff --git a/publisher/admin.py b/publisher/admin.py
index <HASH>..<HASH> 100644
--- a/publisher/admin.py
+++ b/publisher/admin.py
@@ -189,6 +189,9 @@ class PublisherAdmin(ModelAdmin):
def revert_view(self, request, object_id):
obj = self.get_model_object(request, object_id)
+ if not request.user... | Check permission before allowing user to publish/unpublish/revert | py |
diff --git a/salt/modules/boto3_sns.py b/salt/modules/boto3_sns.py
index <HASH>..<HASH> 100644
--- a/salt/modules/boto3_sns.py
+++ b/salt/modules/boto3_sns.py
@@ -45,21 +45,25 @@ Connection module for Amazon SNS
from __future__ import absolute_import
import logging
-import jmespath
log = logging.getLogger(__name... | Fix ImportError in boto3_sns module This module attempts to import jmespath which is not a dependency and is not in the stdlib. This commit gates this behind a try/except to prevent an ImportError from being logged. | py |
diff --git a/shoebot/data.py b/shoebot/data.py
index <HASH>..<HASH> 100644
--- a/shoebot/data.py
+++ b/shoebot/data.py
@@ -274,6 +274,17 @@ class BezierPath(Grob, TransformMixin, ColorMixin):
def ellipse(self,x,y,w,h):
self.data.append(PathElement(ELLIPSE,x,y,w,h))
self.closepath()
+
+ ## alte... | added in data.py an alternative ellipse implementation, that uses pure curveto calls, and is more consistent with nodebox way of making oval primitives. I kept it commented out anyway, as it could be useful as a tip once we want to implement boolean operations on paths but for now it doesn't make any difference and may... | py |
diff --git a/download_magic.py b/download_magic.py
index <HASH>..<HASH> 100755
--- a/download_magic.py
+++ b/download_magic.py
@@ -34,7 +34,7 @@ def main():
input_dir_path = '.'
# non-interactive
else:
- dataframe = extractor.command_line_dataframe(['O', False, 0])
+ dataframe = extract... | fix bug in download_magic command_line extractor | py |
diff --git a/siteprefs/tests.py b/siteprefs/tests.py
index <HASH>..<HASH> 100644
--- a/siteprefs/tests.py
+++ b/siteprefs/tests.py
@@ -6,6 +6,7 @@ from django.contrib import admin
from django.db import models
from .utils import Frame, PatchedLocal, PrefProxy, get_field_for_proxy, get_pref_model_class, get_pref_mode... | Added autodiscover failfast test. | py |
diff --git a/flask_cache_buster/__init__.py b/flask_cache_buster/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_cache_buster/__init__.py
+++ b/flask_cache_buster/__init__.py
@@ -50,6 +50,7 @@ class CacheBuster:
rooted_filename = os.path.join(dirpath, filename)
if not self.__is_fil... | print file name while calculating hashes | py |
diff --git a/openapi_core/templating/paths/finders.py b/openapi_core/templating/paths/finders.py
index <HASH>..<HASH> 100644
--- a/openapi_core/templating/paths/finders.py
+++ b/openapi_core/templating/paths/finders.py
@@ -41,7 +41,8 @@ class PathFinder(object):
def _get_paths_iter(self, full_url_pattern):
... | path finder comment line too long fix | py |
diff --git a/tests/cli/test_cli_parser.py b/tests/cli/test_cli_parser.py
index <HASH>..<HASH> 100644
--- a/tests/cli/test_cli_parser.py
+++ b/tests/cli/test_cli_parser.py
@@ -156,3 +156,21 @@ class TestCli(TestCase):
stdout = stdout.getvalue()
self.assertIn("Commands", stdout)
self.assert... | Add test to guard against command arg help message regression (#<I>) follow up for PR #<I>. | py |
diff --git a/glue/ligolw/utils/process.py b/glue/ligolw/utils/process.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/utils/process.py
+++ b/glue/ligolw/utils/process.py
@@ -175,6 +175,9 @@ def register_to_xmldoc(xmldoc, program, paramdict, **kwargs):
def params(paramdict):
for name, value in paramdict.items():... | Fix up names so that contents of the table are exactly what was on the command line | py |
diff --git a/zipline/finance/trading.py b/zipline/finance/trading.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/trading.py
+++ b/zipline/finance/trading.py
@@ -29,6 +29,8 @@ class TradeSimulationClient(qmsg.Component):
)
self.perf = perf.PerformanceTracker(self.trading_environment)
+ ... | hooking perf to the on_done callback. | py |
diff --git a/qface/helper/qtqml.py b/qface/helper/qtqml.py
index <HASH>..<HASH> 100644
--- a/qface/helper/qtqml.py
+++ b/qface/helper/qtqml.py
@@ -19,6 +19,8 @@ class Filters(object):
if t.is_primitive:
if t.name == 'int':
return '0'
+ elif t.name == 'real':
+ ... | added default value support for a real value | py |
diff --git a/dbt/task/debug.py b/dbt/task/debug.py
index <HASH>..<HASH> 100644
--- a/dbt/task/debug.py
+++ b/dbt/task/debug.py
@@ -95,6 +95,10 @@ class DebugTask(BaseTask):
logger.info(message)
def run(self):
+ if self.args.config_dir:
+ self.path_info()
+ return
+
... | re-add call to path_info | py |
diff --git a/spyder/plugins/help/widgets.py b/spyder/plugins/help/widgets.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/help/widgets.py
+++ b/spyder/plugins/help/widgets.py
@@ -87,6 +87,7 @@ class ObjectComboBox(EditableComboBox):
# A new item has just been selected
if valid:
... | Help: Add reference to automatic text selection issue | py |
diff --git a/luigi/scheduler.py b/luigi/scheduler.py
index <HASH>..<HASH> 100644
--- a/luigi/scheduler.py
+++ b/luigi/scheduler.py
@@ -291,11 +291,16 @@ class SimpleTaskState(object):
self._status_tasks = collections.defaultdict(dict)
self._active_workers = {} # map from id to a Worker object
+ ... | Refactor getter / setter of scheduler state to their own methods. | py |
diff --git a/zengine/views/crud.py b/zengine/views/crud.py
index <HASH>..<HASH> 100644
--- a/zengine/views/crud.py
+++ b/zengine/views/crud.py
@@ -329,15 +329,15 @@ class CrudView(BaseView):
:param query:
:return: query
"""
- filters = self.Meta.allow_filters and self.input.get('filter... | refactored _apply_list_filters method and added date filter support | py |
diff --git a/views.py b/views.py
index <HASH>..<HASH> 100644
--- a/views.py
+++ b/views.py
@@ -241,7 +241,7 @@ def _login_view(request):
next_url = request.GET.get("next_url", request.path)
- if "://" in next_url: # FIXME: How to validate this better?
+ if "//" in next_url: # FIXME: How to validate this ... | Disable something like: ?auth=login&next_url=//bad_guy.tld | py |
diff --git a/gandi/cli/commands/vlan.py b/gandi/cli/commands/vlan.py
index <HASH>..<HASH> 100644
--- a/gandi/cli/commands/vlan.py
+++ b/gandi/cli/commands/vlan.py
@@ -11,12 +11,18 @@ from gandi.cli.core.params import option, pass_gandi, DATACENTER
@click.option('--datacenter', type=DATACENTER, default=None,
... | Add subnet and gateway display in vlan.list | py |
diff --git a/gmail/gmail.py b/gmail/gmail.py
index <HASH>..<HASH> 100644
--- a/gmail/gmail.py
+++ b/gmail/gmail.py
@@ -1,7 +1,9 @@
+import re
import imaplib
+
from mailbox import Mailbox
+from utf import encode as encode_utf7
from exceptions import *
-import re
class Gmail():
# GMail IMAP defaults
@@ -62,7 +... | Automatic encode unicode label as modified utf-7 string. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,13 +22,13 @@ install_requires = [
setup(
name='figgypy',
- version='1.0.0',
+ version='1.1.dev',
description='Simple configuration tool. Get config from yaml, json, or xml.',
long_description=readme... | Update setup.py to develop version | py |
diff --git a/openpnm/network/CubicDual.py b/openpnm/network/CubicDual.py
index <HASH>..<HASH> 100644
--- a/openpnm/network/CubicDual.py
+++ b/openpnm/network/CubicDual.py
@@ -89,7 +89,7 @@ class CubicDual(GenericNetwork):
single_dim = shape == 1
shape[single_dim] = 2
dual = Cubic(shape=shape-... | changed the order of the boundary faces in the faces array to the new state | py |
diff --git a/linode/objects/linode/disk.py b/linode/objects/linode/disk.py
index <HASH>..<HASH> 100644
--- a/linode/objects/linode/disk.py
+++ b/linode/objects/linode/disk.py
@@ -14,7 +14,7 @@ class Disk(DerivedBase):
'created': Property(is_datetime=True),
'label': Property(mutable=True, filterable=Tr... | Made disk.status volatile This property fits the description of volatile, but didn't have that flag set. | py |
diff --git a/pyemma/coordinates/data/featurizer.py b/pyemma/coordinates/data/featurizer.py
index <HASH>..<HASH> 100644
--- a/pyemma/coordinates/data/featurizer.py
+++ b/pyemma/coordinates/data/featurizer.py
@@ -514,7 +514,7 @@ class MDFeaturizer(object):
def add_selection(self, indexes):
"""
- Ad... | [coordinates.featurizer]: small improvement to docs | py |
diff --git a/xclim/indices/fwi.py b/xclim/indices/fwi.py
index <HASH>..<HASH> 100644
--- a/xclim/indices/fwi.py
+++ b/xclim/indices/fwi.py
@@ -4,7 +4,7 @@ r"""
Fire Weather Indices Submodule
==============================
-This submodule defines the :py:func:`xclim.indices.fire_season`, :py:func:`code-xclim.indices... | Update xclim/indices/fwi.py | py |
diff --git a/teamcity-messages/teamcity/unittestpy.py b/teamcity-messages/teamcity/unittestpy.py
index <HASH>..<HASH> 100644
--- a/teamcity-messages/teamcity/unittestpy.py
+++ b/teamcity-messages/teamcity/unittestpy.py
@@ -49,7 +49,7 @@ class TeamcityTestResult(TestResult):
def stopTest(self, test):
self.... | TeamcityTestRunner should inherit from object. | py |
diff --git a/test/__init__.py b/test/__init__.py
index <HASH>..<HASH> 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -162,6 +162,18 @@ class SimpleKVTest(object):
self.store.get_file(k, output)
self.assertEqual(v, output.getvalue())
+ def test_get_nonexistant(self):
+ with self.as... | Added tests for non-existing key gets. | py |
diff --git a/src/masonite/foundation/Application.py b/src/masonite/foundation/Application.py
index <HASH>..<HASH> 100644
--- a/src/masonite/foundation/Application.py
+++ b/src/masonite/foundation/Application.py
@@ -1,6 +1,8 @@
+from __future__ import annotations
import os
import sys
-from typing import Callable, List... | fix using type with python versions | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -6,6 +6,19 @@ from os import path
PWD = path.dirname(__file__)
VENV_DIR = path.join(PWD, '.env')
+DEV_ENV_DIR = path.join(PWD, '.denv')
+
+
+def dev():
+ # Allow this to persist, since we aren't as rigorous abou... | * Add dev setup to thinc | py |
diff --git a/master/buildbot/scripts/runner.py b/master/buildbot/scripts/runner.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/scripts/runner.py
+++ b/master/buildbot/scripts/runner.py
@@ -22,7 +22,7 @@
import os, sys, stat, re, time
from twisted.python import usage, util, runtime
-from twisted.internet impor... | don't use now-missing methods from senchange.Sender Fixes #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -89,9 +89,9 @@ setup(
data_files=[(
(BASE_DIR, ['data/nssm_original.exe'])
)],
- install_requires=['sovrin-common-dev==0.2.42', 'python-dateutil'],
+ install_requires=['sovrin-common-dev==0.2.43', 'pyt... | up commons version to <I>, clients to <I> (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,6 +31,5 @@ setup(name = 'Spinmob',
"matplotlib",
"lmfit",
"pyqtgraph>=0.11",
- "pyqt5", # for pyqtgraph
],
) | Don't impose a choice of Python bindings for Qt in setup.py | py |
diff --git a/simpleai/search/viewers.py b/simpleai/search/viewers.py
index <HASH>..<HASH> 100644
--- a/simpleai/search/viewers.py
+++ b/simpleai/search/viewers.py
@@ -76,7 +76,7 @@ class ConsoleViewer(object):
c = getattr(node, 'cost', '-')
h = getattr(node, 'heuristic', '-')
... | Using state and action representation on the graph | py |
diff --git a/grimoire_elk/elk/supybot.py b/grimoire_elk/elk/supybot.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/elk/supybot.py
+++ b/grimoire_elk/elk/supybot.py
@@ -118,4 +118,7 @@ class SupybotEnrich(Enrich):
if self.sortinghat:
eitem.update(self.get_item_sh(item))
+ if self.prjs_m... | [enrich][supybot] Add project support | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -191,9 +191,11 @@ devel_all = (sendgrid + devel + all_dbs + doc + samba + s3 + slack + crypto + or
docker + ssh + kubernetes + celery + azure + redis + gcp_api + datadog +
zendesk + jdbc + ldap + ke... | [AIRFLOW-<I>] Fix Broken Travis CI due to AIRFLOW-<I> - Added the packages to ignore for Python 3 | py |
diff --git a/envvars/__init__.py b/envvars/__init__.py
index <HASH>..<HASH> 100644
--- a/envvars/__init__.py
+++ b/envvars/__init__.py
@@ -22,6 +22,7 @@ def get(key, default=None):
returns: k->value (type as defined by ast.literal_eval)
"""
try:
+ # Attempt to evaluate into python literal
... | Update __init__.py Adds a few comments, as per request. | py |
diff --git a/statsd/raw.py b/statsd/raw.py
index <HASH>..<HASH> 100644
--- a/statsd/raw.py
+++ b/statsd/raw.py
@@ -27,5 +27,5 @@ class Raw(statsd.Client):
ts = timestamp
name = self._get_name(self.name, subname)
self.logger.info('%s: %s %s' % (name, value, ts))
- return statsd.Clie... | Conform to the standard message format for raw messages Send raw messages as "name:value|r|timestamp". This is compatible with <URL> | py |
diff --git a/source/rafcon/mvc/controllers/graphical_editor_gaphas.py b/source/rafcon/mvc/controllers/graphical_editor_gaphas.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/controllers/graphical_editor_gaphas.py
+++ b/source/rafcon/mvc/controllers/graphical_editor_gaphas.py
@@ -213,6 +213,7 @@ class GraphicalEd... | Set state size meta data after pasting | py |
diff --git a/gwpy/types/io/ligolw.py b/gwpy/types/io/ligolw.py
index <HASH>..<HASH> 100644
--- a/gwpy/types/io/ligolw.py
+++ b/gwpy/types/io/ligolw.py
@@ -200,10 +200,9 @@ def read_series(source, name=None, epoch=None, contenthandler=None, **params):
array_kw["unit"] = array_kw["unit"].split(" ", 1)[1] + " Hz^... | gwpy.types: simplify LIGO_LW reader to match lal.series I'm not convinced this is the right thing to do, but at least it means that the two implementations will match | py |
diff --git a/vasppy/doscar.py b/vasppy/doscar.py
index <HASH>..<HASH> 100644
--- a/vasppy/doscar.py
+++ b/vasppy/doscar.py
@@ -61,6 +61,8 @@ class Doscar:
self.read_projected_dos()
except:
raise
+ # if species is set, should check that this is consistent with the nu... | Added comment re: future improvements | py |
diff --git a/aerofiles/igc/reader.py b/aerofiles/igc/reader.py
index <HASH>..<HASH> 100644
--- a/aerofiles/igc/reader.py
+++ b/aerofiles/igc/reader.py
@@ -617,7 +617,7 @@ class LowLevelReader:
current_year_yyyy = datetime.date.today().year
current_year_yy = current_year_yyyy % 100
current_cen... | Fixed decode_date bug. <I> considered <I> | py |
diff --git a/runcommands/command.py b/runcommands/command.py
index <HASH>..<HASH> 100644
--- a/runcommands/command.py
+++ b/runcommands/command.py
@@ -141,6 +141,7 @@ class Command:
default_name = self.normalize_name(implementation.__name__)
name = name or getattr(self.__class__, 'name', None) o... | Set base_name attribute in Command constructor There's no need to use a computed/cached property for this. Amends b<I>a7da6bee4 | py |
diff --git a/salt/modules/capirca_acl.py b/salt/modules/capirca_acl.py
index <HASH>..<HASH> 100644
--- a/salt/modules/capirca_acl.py
+++ b/salt/modules/capirca_acl.py
@@ -108,6 +108,7 @@ _TERM_FIELDS = {
'fragment_offset': None,
'hop_limit': None,
'icmp_type': [],
+ 'icmp_code': None,
'ether_type... | Add new term field for capirca Term class | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ version = "0.0.1"
readme = open('README.rst').read()
setup(name="jicbioimage.illustrate",
- packages=['jicbioimage', 'jicbioimage.illustrate'],
+ packages=['jicbioimage', 'jicbioimage.illustrate', ... | Added font module to setup.py. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,6 @@ setup (
description = "Soundex Phonetic Code Algorithm for Indian Languages",
long_description ="""Soundex Phonetic Code Algorithm Demo for Indian Languages.
Supports all indian languages and English... | We don't have extra packages so no need of packages clause in setup.py | py |
diff --git a/nfc/tag/__init__.py b/nfc/tag/__init__.py
index <HASH>..<HASH> 100644
--- a/nfc/tag/__init__.py
+++ b/nfc/tag/__init__.py
@@ -214,7 +214,7 @@ class Tag(object):
@records.setter
def records(self, value):
- self.octets = b''.join(message_encoder(value, errors='relax'))
+ ... | Fix Tag.ndef.records setter implicit encoding The ndef.message_encoder() does not have an *errors* argument. | py |
diff --git a/dataswim/charts/__init__.py b/dataswim/charts/__init__.py
index <HASH>..<HASH> 100644
--- a/dataswim/charts/__init__.py
+++ b/dataswim/charts/__init__.py
@@ -370,20 +370,44 @@ class Plot(Bokeh, Chartjs, Seaborn, Colors):
except Exception as e:
self.err(e, "Can not draw distrinution ch... | Add utilities to manage options and styles faster | py |
diff --git a/host/scan_example.py b/host/scan_example.py
index <HASH>..<HASH> 100644
--- a/host/scan_example.py
+++ b/host/scan_example.py
@@ -15,6 +15,10 @@ scan_configuration = {
# inherit from ScanBase class
class ExampleScan(ScanBase):
+ # a class variable
+ some_class_varible = None
+
+ # initia... | ENH: adding more comments on class variables | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ setupopts = dict(
'traits>=4.6.0,<4.7.0',
'croniter==0.3.8',
'pyinotify==0.9.6',
- 'ipython==6.0',
+ 'ipython~=5.0',
'ansiconv==1.0',
'colorlog==2.6',
... | Downgrade ipython as <I> is py3 only | py |
diff --git a/tests/test_typeddict.py b/tests/test_typeddict.py
index <HASH>..<HASH> 100644
--- a/tests/test_typeddict.py
+++ b/tests/test_typeddict.py
@@ -19,6 +19,7 @@
from typing import TypedDict
import unittest
+import sys
from typedload import dataloader, load, dump, typechecks
@@ -41,6 +42,11 @@ class C(A... | Skip mixed totality test on <I> It will fail | py |
diff --git a/src/core/datatable.py b/src/core/datatable.py
index <HASH>..<HASH> 100644
--- a/src/core/datatable.py
+++ b/src/core/datatable.py
@@ -389,6 +389,7 @@ class SystemSf(DataTable):
# check if all primitives are provided by the inputs
for prim in self._primitives:
if not prim in i... | add abattement res_princ add model add print to erase in datatable and isf | py |
diff --git a/plaso/parsers/winreg_parser.py b/plaso/parsers/winreg_parser.py
index <HASH>..<HASH> 100644
--- a/plaso/parsers/winreg_parser.py
+++ b/plaso/parsers/winreg_parser.py
@@ -231,6 +231,9 @@ class WinRegistryParser(interface.FileObjectParser):
'with key path prefix: "{0:s}".').format(key_path_p... | Changes to have dfWinReg close mapped file (#<I>) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.