diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/test_tar_hacks.py b/tests/test_tar_hacks.py
index <HASH>..<HASH> 100644
--- a/tests/test_tar_hacks.py
+++ b/tests/test_tar_hacks.py
@@ -2,12 +2,18 @@ from wal_e import tar_partition
import os
-# Test that _fsync_files() syncs all files and also, if possible, all
-# directories passed to it. Ther... | Use a more idiomatic docstring for test documentation Moves things around a bit is all. | py |
diff --git a/trolly/board.py b/trolly/board.py
index <HASH>..<HASH> 100644
--- a/trolly/board.py
+++ b/trolly/board.py
@@ -83,8 +83,21 @@ class Board(trelloobject.TrelloObject):
return self.create_card(card_json)
+ def get_checklists( self ):
+ """
+ Get the checklists for this board. Retu... | Add a get_checklists() method to the Board class The API exposes this method which can make certain tasks more efficient by avoiding having to enumerate all cards first. Conflicts: trolly/board.py Update to current orthography | py |
diff --git a/src/metpy/calc/thermo.py b/src/metpy/calc/thermo.py
index <HASH>..<HASH> 100644
--- a/src/metpy/calc/thermo.py
+++ b/src/metpy/calc/thermo.py
@@ -1542,10 +1542,10 @@ def mixing_ratio_from_relative_humidity(pressure, temperature, relative_humidity
-----
Formula adapted from [Hobbs1977]_ pg. 74.
... | DOC: Fix formula rendering in some docstrings Using relative_humidity in a formula makes for some bad latex equations--use rh instead. | py |
diff --git a/linode_api4/linode_client.py b/linode_api4/linode_client.py
index <HASH>..<HASH> 100644
--- a/linode_api4/linode_client.py
+++ b/linode_api4/linode_client.py
@@ -507,7 +507,7 @@ class LKEGroup(Group):
for c in node_pools:
if isinstance(c, dict):
new_pool = {
- ... | add type conversion - previously the issubclass check would always fail because it is checking the instance of an object instead of the class of the object | py |
diff --git a/wechatpy/client/api/card.py b/wechatpy/client/api/card.py
index <HASH>..<HASH> 100644
--- a/wechatpy/client/api/card.py
+++ b/wechatpy/client/api/card.py
@@ -5,6 +5,8 @@ from wechatpy.client.api.base import BaseWeChatAPI
class WeChatCard(BaseWeChatAPI):
+
+ API_BASE_URL = 'https://api.weixin.qq... | API_BASE_URL change in card 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
@@ -197,7 +197,7 @@ def compute_static_patch(document, models, json=None):
events.append((priority, event)... | Fix bokeh event sorting in py3 | py |
diff --git a/spyder/utils/programs.py b/spyder/utils/programs.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/programs.py
+++ b/spyder/utils/programs.py
@@ -519,7 +519,7 @@ def open_files_with_application(app_path, fnames):
"""
return_codes = {}
- if os.name == 'nt':
+ if os.name == 'nt':
... | Fix oepning files with spaces | py |
diff --git a/peony/requests.py b/peony/requests.py
index <HASH>..<HASH> 100644
--- a/peony/requests.py
+++ b/peony/requests.py
@@ -81,10 +81,6 @@ class AbstractRequest(ABC, Endpoint):
elif isinstance(value, bool):
params[key] = "true" if value else "false"
- # integers convers... | send any kind of data by converting values to str | py |
diff --git a/riak/util.py b/riak/util.py
index <HASH>..<HASH> 100644
--- a/riak/util.py
+++ b/riak/util.py
@@ -1,8 +1,12 @@
-import collections
+try:
+ from collections import Mapping
+except ImportError:
+ # compatibility with Python 2.5
+ Mapping = dict
def quacks_like_dict(object):
"""Check if objec... | Adjust for compatibility with Python <I> | py |
diff --git a/typedload/dataloader.py b/typedload/dataloader.py
index <HASH>..<HASH> 100644
--- a/typedload/dataloader.py
+++ b/typedload/dataloader.py
@@ -489,9 +489,12 @@ def _namedtupleload(l: Loader, value: Dict[str, Any], type_) -> Any:
raise TypedloadValueError(str(e), value=value, type_=type_)
... | Re-introduce old behaviour checking __total__ The __required_keys__ and __optional_keys__ are only present from <I> so in <I> there is no way of achieving the feature. So reintroducing ALSO the older code so that at least total=False will work. | py |
diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/client.py
+++ b/pyrogram/client/client.py
@@ -1051,7 +1051,7 @@ class Client(Methods, BaseClient):
bytes=chunk
)
- assert self.s... | fixed session mistake use new session when uploading files instead of main session | py |
diff --git a/abydos/bm.py b/abydos/bm.py
index <HASH>..<HASH> 100644
--- a/abydos/bm.py
+++ b/abydos/bm.py
@@ -329,9 +329,10 @@ def _bm_apply_final_rules(phonetic, final_rules, language_arg, strip):
def _bm_phonetic_number(phonetic):
- bracket = phonetic.find('[')
- if bracket != -1:
- return phonetic... | added docstring to _bm_phonetic_number & made a little more pythonic | py |
diff --git a/gcloud/bigquery/table.py b/gcloud/bigquery/table.py
index <HASH>..<HASH> 100644
--- a/gcloud/bigquery/table.py
+++ b/gcloud/bigquery/table.py
@@ -101,11 +101,8 @@ class Table(object):
:raises: TypeError if 'value' is not a sequence, or ValueError if
any item in the sequence is no... | Simplify test for non-fields, avoid intermediate set/list. Addresses: <URL> | py |
diff --git a/andes/system.py b/andes/system.py
index <HASH>..<HASH> 100644
--- a/andes/system.py
+++ b/andes/system.py
@@ -93,6 +93,7 @@ class System:
def __init__(self,
case: Optional[str] = None,
name: Optional[str] = None,
+ config: Optional[Dict] = None,
... | Support providing a configuration to System. This allows us to provide a high-importance configuration, which can be extended from the config file found on the path. This allows greater flexibility rather than depending on inference of finding config files, especially when running multiple Systems in the same process. | py |
diff --git a/tests/core.py b/tests/core.py
index <HASH>..<HASH> 100644
--- a/tests/core.py
+++ b/tests/core.py
@@ -455,7 +455,7 @@ class WebLdapAuthTest(unittest.TestCase):
configuration.conf.set("webserver", "authenticate", "True")
configuration.conf.set("webserver", "auth_backend", "airflow.contrib.... | add_section is only part of configuration.conf | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,3 +1,17 @@
+# Copyright 2018 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of t... | Add license header to docs/conf.py. | py |
diff --git a/pyoko/manage.py b/pyoko/manage.py
index <HASH>..<HASH> 100644
--- a/pyoko/manage.py
+++ b/pyoko/manage.py
@@ -522,13 +522,13 @@ and .js extensions will be loaded."""},
def save_obj(self, bucket_name, key, val):
key = key or None
- if self.manager.args.update or key is None:
+ ... | fixed the force insertion (update) mechanism of load_data command | py |
diff --git a/src/fam/tests/sync_gateway/config.py b/src/fam/tests/sync_gateway/config.py
index <HASH>..<HASH> 100755
--- a/src/fam/tests/sync_gateway/config.py
+++ b/src/fam/tests/sync_gateway/config.py
@@ -13,6 +13,8 @@ SYNC_GATEWAY_PORT = "4984"
SYNC_GATEWAY_ADMIN_PORT = "4985"
SYNC_GATEWAY_NAME = "sync_gateway"
... | fixing path for sync_gateway | py |
diff --git a/peyotl/nexson_syntax/nexson2nexml.py b/peyotl/nexson_syntax/nexson2nexml.py
index <HASH>..<HASH> 100644
--- a/peyotl/nexson_syntax/nexson2nexml.py
+++ b/peyotl/nexson_syntax/nexson2nexml.py
@@ -36,7 +36,7 @@ def _create_sub_el(doc, parent, tag, attrib, data=None):
el.setAttribute(att_key, ... | dealing with False in boolean meta data If data evaluates to boolean = false then the NeXML output had been an empty element rather than <meta ...>false</meta> | py |
diff --git a/pngcanvas.py b/pngcanvas.py
index <HASH>..<HASH> 100644
--- a/pngcanvas.py
+++ b/pngcanvas.py
@@ -220,9 +220,16 @@ class PNGCanvas(object):
(width, height, bit_depth, color_type, compression,
filter_type, interlace) = struct.unpack(b"!2I5B", header[1])
- if (bit_depth, color_typ... | Provide more detailed error information for load. When attempting to load a PNG file, if that file is unsupported it is useful to provide the developer with a more precise error message indicating the exact cause of the error. Have also changed the type of exception to be a ValueError rather than a TypeError. In this... | py |
diff --git a/tests/lax_numpy_indexing_test.py b/tests/lax_numpy_indexing_test.py
index <HASH>..<HASH> 100644
--- a/tests/lax_numpy_indexing_test.py
+++ b/tests/lax_numpy_indexing_test.py
@@ -757,6 +757,11 @@ class IndexingTest(jtu.JaxTestCase):
x = lnp.array([1, 2, 3])
self.assertRaises(TypeError, lambda: x[3... | Added test case for indexing out of bounds | py |
diff --git a/flask_cloudy.py b/flask_cloudy.py
index <HASH>..<HASH> 100644
--- a/flask_cloudy.py
+++ b/flask_cloudy.py
@@ -582,7 +582,7 @@ class Object(object):
s2s = "GET\n\n\n{expires}\n/{object_name}"\
.format(expires=expires, object_name=self.path)
- h = hmac.n... | Encode secret and request before hmac | py |
diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py
index <HASH>..<HASH> 100644
--- a/ryu/ofproto/ofproto_v1_4_parser.py
+++ b/ryu/ofproto/ofproto_v1_4_parser.py
@@ -2343,6 +2343,25 @@ class OFPActionCopyTtlOut(OFPAction):
return cls()
+@OFPAction.register_action_type(ofpro... | Add OF<I> CopyTtlIn action support | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ setup(
"ruamel.yaml<0.15",
"numpy>=1.13",
"pandas>=0.17.0",
- "optlang>=1.2.5",
+ "optlang>=1.4.2",
"tabulate",
"depinfo"
], | bump optlang version req for functional gurobi | py |
diff --git a/mmcv/torchpack/runner/runner.py b/mmcv/torchpack/runner/runner.py
index <HASH>..<HASH> 100644
--- a/mmcv/torchpack/runner/runner.py
+++ b/mmcv/torchpack/runner/runner.py
@@ -108,11 +108,14 @@ class Runner(object):
Args:
optimizer (dict or :obj:`~torch.optim.Optimizer`): Either an
... | fix a typo in docstring | py |
diff --git a/easytrader/httrader.py b/easytrader/httrader.py
index <HASH>..<HASH> 100644
--- a/easytrader/httrader.py
+++ b/easytrader/httrader.py
@@ -134,7 +134,7 @@ class HTTrader(WebTrader):
need_data_index = 0
need_data = search_result.groups()[need_data_index]
bytes_data = base64.b64deco... | fix(httrader): fix trade info debug log output | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -25,6 +25,7 @@ def build():
local("mkdir -p dist")
local("go clean ./...")
local("go build -a -o dist/gandalf-webserver ./webserver")
+ local("go build -a -o /usr/local/bin/gandalf ./bin")
def cl... | fabfile: rebuilding bin and overriding old one | py |
diff --git a/src/doc/conf.py b/src/doc/conf.py
index <HASH>..<HASH> 100644
--- a/src/doc/conf.py
+++ b/src/doc/conf.py
@@ -25,8 +25,8 @@ if MOCK_MODULES and on_rtd:
project = 'Astral'
author = 'Simon Kennedy'
copyright = '2009-2018, %s' % author
-version = '1.5'
-release = '1.5'
+version = '1.6'
+release = '1.6'
... | Updated version to <I> | py |
diff --git a/telemetry/telemetry/internal/backends/chrome_inspector/native_profiling_backend.py b/telemetry/telemetry/internal/backends/chrome_inspector/native_profiling_backend.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/internal/backends/chrome_inspector/native_profiling_backend.py
+++ b/telemetry/teleme... | Update NativeProfilingBackend method call The method introduced in crrev/c/<I> was DumpProfilingDataOfAllProcesses. Bug: chromium:<I> Change-Id: I<I>c<I>b<I>d4df<I>e<I>ca<I>ade<I> Reviewed-on: <URL> | py |
diff --git a/ds4drv.py b/ds4drv.py
index <HASH>..<HASH> 100644
--- a/ds4drv.py
+++ b/ds4drv.py
@@ -77,7 +77,9 @@ DS4Report = namedtuple("DS4Report",
"trackpad_touch1_y",
"timestamp",
"battery",
- "charging"])
+ ... | Add some more report parsing. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ from setuptools import setup
setup(
name='msm',
- version='0.5.13',
+ version='0.5.14',
packages=['msm'],
install_requires=['GitPython', 'typing'],
url='https://github.com/MycroftAI/... | Increment version to <I> | py |
diff --git a/ffpyplayer/__init__.py b/ffpyplayer/__init__.py
index <HASH>..<HASH> 100644
--- a/ffpyplayer/__init__.py
+++ b/ffpyplayer/__init__.py
@@ -33,18 +33,16 @@ It is read only.
_ffmpeg = join(sys.prefix, 'share', 'ffpyplayer', 'ffmpeg', 'bin')
if isdir(_ffmpeg):
+ os.environ["PATH"] += os.pathsep + _ffmpe... | Always add dlls dir to path. | py |
diff --git a/raiden/transfer/state.py b/raiden/transfer/state.py
index <HASH>..<HASH> 100644
--- a/raiden/transfer/state.py
+++ b/raiden/transfer/state.py
@@ -789,6 +789,8 @@ class BalanceProofUnsignedState(State):
'token_network_identifier': to_checksum_address(self.token_network_identifier),
... | Bugfix: Unsigned balance serialization The unsigned balance proof also needs to expose the balance hash, otherwise the sent balance proofs are not queryable. | py |
diff --git a/entei.py b/entei.py
index <HASH>..<HASH> 100755
--- a/entei.py
+++ b/entei.py
@@ -125,7 +125,10 @@ def tokenize(template):
# If we might be a standalone and we aren't a tag that can't
# be a standalone
if is_standalone and tag_type not in ['variable', 'no escape']:
- u... | Handle no newline after standalone. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
# coding: utf-8
from setuptools import setup
-import sentry_telegram
+from sentry_telegram import __version__
with open('README.rst', 'r') as f:
@@ -11,7 +11,7 @@ with open('README.rst', 'r') as f:
set... | Try to automate PyPI deploy with Travis CI. Change import. | 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
@@ -242,8 +242,8 @@ def resolve_jira_issue(merge_branches, comment, default_jira_id=""):
cur_summary = issue.fields.summary
cur_assignee = issue.fields.assignee
i... | [SPARK-<I>][PROJECT-INFRA] Bug fix in jira assigning Small bug fix from last pr, ran a successful merge with this code. | py |
diff --git a/salt/modules/zfs.py b/salt/modules/zfs.py
index <HASH>..<HASH> 100644
--- a/salt/modules/zfs.py
+++ b/salt/modules/zfs.py
@@ -87,7 +87,8 @@ def _make_function( cmd_name ):
ret = { }
# Run the command.
- res = salt_cmd.run_all( "%s %s %s" % ( _check_zfs( ), cmd_name, args ) )
+ #T... | Isolated the issue - *args. | py |
diff --git a/wily/__main__.py b/wily/__main__.py
index <HASH>..<HASH> 100644
--- a/wily/__main__.py
+++ b/wily/__main__.py
@@ -29,6 +29,7 @@ from wily.operators import resolve_operators
"-p",
"--path",
type=click.Path(resolve_path=True),
+ default=".",
help="Root path to the project folder to sca... | default the path to cwd, which should fix the relative paths bug in builds | py |
diff --git a/polyaxon_cli/cli/dashboard.py b/polyaxon_cli/cli/dashboard.py
index <HASH>..<HASH> 100644
--- a/polyaxon_cli/cli/dashboard.py
+++ b/polyaxon_cli/cli/dashboard.py
@@ -18,7 +18,7 @@ from polyaxon_cli.utils.clients import PolyaxonClients
@clean_outputs
def dashboard(yes, url):
"""Open dashboard in brow... | Update dashboard command to send directly to dashboard | py |
diff --git a/sfsimodels/output.py b/sfsimodels/output.py
index <HASH>..<HASH> 100644
--- a/sfsimodels/output.py
+++ b/sfsimodels/output.py
@@ -54,7 +54,7 @@ def format_value(value):
def add_table_ends(para, oformat='latex', caption="caption-text", label="table"):
fpara = ""
if oformat == 'latex':
- fp... | locked position of table in latex output. | py |
diff --git a/settings.py b/settings.py
index <HASH>..<HASH> 100644
--- a/settings.py
+++ b/settings.py
@@ -30,4 +30,12 @@ class Settings(object):
#This determines whether the program will erase the pre-zipped output
#directory once it finishes zipping it to ePub.
#It is generally good to lea... | Added new settings, base_epub for the basic ePub Hierarchy location, and css_location for the location of the css file to be used | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='XBee',
- version='2.2.3',
+ version='2.2.4',
description='Python tools for working with XBee radios',
long_description=open('README.... | Correcting setup.py version to <I> | py |
diff --git a/src/toolchains/cc.py b/src/toolchains/cc.py
index <HASH>..<HASH> 100644
--- a/src/toolchains/cc.py
+++ b/src/toolchains/cc.py
@@ -1,4 +1,4 @@
-import os.path
+import os
from collections import Iterable
from node import Node
@@ -21,6 +21,10 @@ def _strlistify(thing):
return (str(i) for i in _listif... | Support setting the compiler name via CC/CXX | py |
diff --git a/bananas/admin/api/serializers.py b/bananas/admin/api/serializers.py
index <HASH>..<HASH> 100644
--- a/bananas/admin/api/serializers.py
+++ b/bananas/admin/api/serializers.py
@@ -1,4 +1,4 @@
-from django.contrib.auth import password_validation
+from django.contrib.auth.password_validation import password_va... | Use plain password help text instead of html | py |
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py
index <HASH>..<HASH> 100755
--- a/fontbakery-check-ttf.py
+++ b/fontbakery-check-ttf.py
@@ -1593,7 +1593,7 @@ def main():
continue
designers.append(row[0].decode('utf-8'))
if family.designer not in designers:
- ... | fix flake8: E<I> the backslash is redundant between brackets | py |
diff --git a/ssbio/databases/pdb.py b/ssbio/databases/pdb.py
index <HASH>..<HASH> 100644
--- a/ssbio/databases/pdb.py
+++ b/ssbio/databases/pdb.py
@@ -100,8 +100,8 @@ def parse_mmcif_header(infile):
chemicals_filtered = utils.filter_list_by_indices(mmdict['_chem_comp.id'],
... | Change chemicals list in mmCIF parser to not ignore case | py |
diff --git a/pylast/__init__.py b/pylast/__init__.py
index <HASH>..<HASH> 100644
--- a/pylast/__init__.py
+++ b/pylast/__init__.py
@@ -1018,11 +1018,11 @@ class SessionKeyGenerator(object):
token = self._get_web_auth_token()
- url = "%(homepage)s/api/auth/?api_key=%(api)s&token=%(token)s" % {
- ... | Upgrade Python syntax with pyupgrade | py |
diff --git a/ivoire/standalone.py b/ivoire/standalone.py
index <HASH>..<HASH> 100644
--- a/ivoire/standalone.py
+++ b/ivoire/standalone.py
@@ -37,6 +37,11 @@ class Example(TestCase):
self.__name = name
def __enter__(self):
+ """
+ Run the example.
+
+ """
+
self.__result.st... | Somewhat useless docstrings. | py |
diff --git a/mbuild/tests/test_lammpsdata.py b/mbuild/tests/test_lammpsdata.py
index <HASH>..<HASH> 100755
--- a/mbuild/tests/test_lammpsdata.py
+++ b/mbuild/tests/test_lammpsdata.py
@@ -43,7 +43,7 @@ class TestLammpsData(BaseTest):
assert np.allclose(
np.asarray(line.split... | Debugging Fixing indent. | py |
diff --git a/iotile_ext_cloud/test/test_utils.py b/iotile_ext_cloud/test/test_utils.py
index <HASH>..<HASH> 100644
--- a/iotile_ext_cloud/test/test_utils.py
+++ b/iotile_ext_cloud/test/test_utils.py
@@ -1,6 +1,6 @@
import pytest
from iotile.core.exceptions import ArgumentError
-from iotile.cloud.utilities import devi... | unit tests for device_id_to_slug | py |
diff --git a/test/test_steps.py b/test/test_steps.py
index <HASH>..<HASH> 100644
--- a/test/test_steps.py
+++ b/test/test_steps.py
@@ -10,11 +10,11 @@ def plot():
y3 = np.array([1, 2, 1, 4, 2])
y4 = np.array([1, 2, 1, 4, 2])
- plt.step(x, y1, 'r-')
- plt.step(x, y2, 'b--', where='pre')
- plt.step(x... | used black to change ' to " | py |
diff --git a/aiogram/dispatcher/webhook.py b/aiogram/dispatcher/webhook.py
index <HASH>..<HASH> 100644
--- a/aiogram/dispatcher/webhook.py
+++ b/aiogram/dispatcher/webhook.py
@@ -1,4 +1,6 @@
import asyncio
+import itertools
+
import asyncio.tasks
import datetime
import functools
@@ -165,7 +167,7 @@ class WebhookReq... | Pass update from webhook to updates handler instead of `Dispatcher.process_update` | py |
diff --git a/src/Exscriptd/Dispatcher.py b/src/Exscriptd/Dispatcher.py
index <HASH>..<HASH> 100644
--- a/src/Exscriptd/Dispatcher.py
+++ b/src/Exscriptd/Dispatcher.py
@@ -163,6 +163,10 @@ class Dispatcher(object):
remaining = self.order_db.count_tasks(order_id = order.id,
... | Orders that have only a single task inherit the description of the task. | py |
diff --git a/tofu/tests/tests01_geom/tests03_core.py b/tofu/tests/tests01_geom/tests03_core.py
index <HASH>..<HASH> 100644
--- a/tofu/tests/tests01_geom/tests03_core.py
+++ b/tofu/tests/tests01_geom/tests03_core.py
@@ -842,7 +842,7 @@ class Test03_Rays(object):
if t is not None:
E = E[np.n... | [coordshift] another bug in test core | py |
diff --git a/cmsplugin_zinnia/models.py b/cmsplugin_zinnia/models.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_zinnia/models.py
+++ b/cmsplugin_zinnia/models.py
@@ -6,7 +6,7 @@ from django.db.models.signals import post_delete
from django.utils.translation import ugettext_lazy as _
from tagging.models import Tag
-... | Updated models.py for Django-CMS <I>+ The location of CMSPlugin changed in <I> and has been updated accordingly. | py |
diff --git a/django_extensions/management/commands/sync_media_s3.py b/django_extensions/management/commands/sync_media_s3.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/sync_media_s3.py
+++ b/django_extensions/management/commands/sync_media_s3.py
@@ -155,7 +155,7 @@ class Command(BaseCommand... | fix StringIO call, missed removing cStringIO from call after import (thanks jonlesser for reporting this!) | py |
diff --git a/bambi/priors.py b/bambi/priors.py
index <HASH>..<HASH> 100644
--- a/bambi/priors.py
+++ b/bambi/priors.py
@@ -59,6 +59,11 @@ class Prior(object):
Args:
kwargs (dict): Optional keyword arguments to add to prior args.
'''
+ # Backends expect numpy arrays, so make sure al... | fix data type issue that breaks everything when naming custom priors | py |
diff --git a/test/common/http_admin.py b/test/common/http_admin.py
index <HASH>..<HASH> 100644
--- a/test/common/http_admin.py
+++ b/test/common/http_admin.py
@@ -259,7 +259,7 @@ class InternalServer(Server):
def kill(self):
assert self.running
self.instance.send_signal(signal.SIGINT)
- self.instance.wait()
+ ... | Don't lock up if server locks up. | py |
diff --git a/andes/models/distributed.py b/andes/models/distributed.py
index <HASH>..<HASH> 100644
--- a/andes/models/distributed.py
+++ b/andes/models/distributed.py
@@ -539,7 +539,7 @@ class ESD1Model(PVD1Model):
self.LT = LessThan(self.Ipoutcalc_y, 0.0)
# --- Add integrator. Assume that state-of-... | Fixed formatting issue for "make documentation" | py |
diff --git a/cwltool/process.py b/cwltool/process.py
index <HASH>..<HASH> 100644
--- a/cwltool/process.py
+++ b/cwltool/process.py
@@ -70,7 +70,7 @@ class Process(object):
if "type" not in c:
raise validate.ValidationException("Missing `type` in parameter `%s`" % c["name"])
- ... | Checking if c is a list | py |
diff --git a/src/transformers/configuration_utils.py b/src/transformers/configuration_utils.py
index <HASH>..<HASH> 100755
--- a/src/transformers/configuration_utils.py
+++ b/src/transformers/configuration_utils.py
@@ -195,7 +195,6 @@ class PretrainedConfig(object):
self.pad_token_id = kwargs.pop("pad_token_id... | delete reinit (#<I>) | py |
diff --git a/discord/client.py b/discord/client.py
index <HASH>..<HASH> 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -425,6 +425,8 @@ class Client:
if self.is_closed():
return
+ self._closed.set()
+
for voice in list(self.voice_clients):
try:
... | Set closed state before actually finishing cleaning up. | py |
diff --git a/hotdoc/extensions/gst/gst_extension.py b/hotdoc/extensions/gst/gst_extension.py
index <HASH>..<HASH> 100644
--- a/hotdoc/extensions/gst/gst_extension.py
+++ b/hotdoc/extensions/gst/gst_extension.py
@@ -574,6 +574,8 @@ class GstExtension(Extension):
index.symbol_names.add(sym.unique_name)
... | gst_extension: fix plugin comments | py |
diff --git a/test/gdb_test.py b/test/gdb_test.py
index <HASH>..<HASH> 100644
--- a/test/gdb_test.py
+++ b/test/gdb_test.py
@@ -27,6 +27,8 @@ import os
import json
import sys
from subprocess import Popen, STDOUT, PIPE
+import argparse
+import logging
from pyOCD.tools.gdb_server import GDBServerTool
from pyOCD.boa... | Enable logging and -d option when running gdb_test.py directly. | py |
diff --git a/tests/test_client_channels.py b/tests/test_client_channels.py
index <HASH>..<HASH> 100644
--- a/tests/test_client_channels.py
+++ b/tests/test_client_channels.py
@@ -19,3 +19,13 @@ def test_channel_destruction(server, client):
client._create_channel('#pydle')
client._destroy_channel('#pydle')
... | tests: Add user destruction tests on leaving channel. | py |
diff --git a/c7n/resources/sagemaker.py b/c7n/resources/sagemaker.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/sagemaker.py
+++ b/c7n/resources/sagemaker.py
@@ -9,6 +9,7 @@ from c7n.utils import local_session, type_schema
from c7n.tags import RemoveTag, Tag, TagActionFilter, TagDelayedAction
from c7n.filters.vp... | aws - sagemaker-notebook - add offhour/onhour filter support (#<I>) | py |
diff --git a/src/mimerender.py b/src/mimerender.py
index <HASH>..<HASH> 100644
--- a/src/mimerender.py
+++ b/src/mimerender.py
@@ -330,11 +330,7 @@ try:
del flask.request.environ[key]
def _make_response(self, content, headers, status):
- response = flask.make_response(content)
- ... | Removes custom response code from Flask implementation Uses Flask's built-in `make_response()` function to return a response object. This fixes a bug that occurred when a Flask view function returns a status code as an integer (like `<I>`) as opposed to a string (like `'<I> OK'`). | py |
diff --git a/pymdstat/pymdstat.py b/pymdstat/pymdstat.py
index <HASH>..<HASH> 100644
--- a/pymdstat/pymdstat.py
+++ b/pymdstat/pymdstat.py
@@ -6,6 +6,7 @@
#
# Copyright (C) 2014 Nicolargo <nicolas@nicolargo.com>
+import sys
from functools import reduce
from re import split
@@ -77,10 +78,14 @@ class MdStat(objec... | Handle I/O error if /proc/mdstat doesn't exist | py |
diff --git a/mapi_client.py b/mapi_client.py
index <HASH>..<HASH> 100644
--- a/mapi_client.py
+++ b/mapi_client.py
@@ -2,6 +2,7 @@ from requests import Request, Session
import json
from validation import validate_input
import logging
+import traceback
class mAPIClient(object):
@@ -49,7 +50,10 @@ class mAPIClien... | make thin Python client show stack trace on exception | py |
diff --git a/src/foremast/configs/outputs.py b/src/foremast/configs/outputs.py
index <HASH>..<HASH> 100644
--- a/src/foremast/configs/outputs.py
+++ b/src/foremast/configs/outputs.py
@@ -88,7 +88,9 @@ def write_variables(app_configs=None, out_file='', git_short=''):
rendered_configs = json.loads(
... | overrides regions in templates with regions in configs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,7 @@ setup(name='fgivenx',
url='https://github.com/williamjameshandley/fgivenx',
packages=['fgivenx'],
install_requires=['numpy','matplotlib','scipy','joblib','tqdm'],
+ tests_require=['pyte... | adding tests_require=['pytest'] requirement | py |
diff --git a/openstack_dashboard/policy.py b/openstack_dashboard/policy.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/policy.py
+++ b/openstack_dashboard/policy.py
@@ -90,7 +90,7 @@ def check(actions, request, target={}):
:param target: dictionary representing the object of the action
... | Updated tenant_id to project_id in policy.py Comments were referring to tenant_id where code says project_id Closes-Bug: #<I> Change-Id: I<I>f6c<I>f<I>fe<I>ca2c<I>b7c<I>b<I>fb4abc8 | py |
diff --git a/superset/utils/date_parser.py b/superset/utils/date_parser.py
index <HASH>..<HASH> 100644
--- a/superset/utils/date_parser.py
+++ b/superset/utils/date_parser.py
@@ -32,6 +32,7 @@ from pyparsing import (
Group,
Optional as ppOptional,
ParseException,
+ ParserElement,
ParseResults,
... | fix(timepicker): make pyparsing thread safe (#<I>) * fix: make pyparsing thread safe * remove parenthesis for decorator | py |
diff --git a/tests/test_dates.py b/tests/test_dates.py
index <HASH>..<HASH> 100644
--- a/tests/test_dates.py
+++ b/tests/test_dates.py
@@ -15,6 +15,21 @@ def test_date_rounding():
assert chart.date == '1996-08-03'
+def test_previous_next():
+ """Checks that the date, previousDate, and nextDate attributes ar... | Test that date attributes are parsed, not computed Currently failing. I brought this example up in #<I>. | py |
diff --git a/src/onelogin/saml2/auth.py b/src/onelogin/saml2/auth.py
index <HASH>..<HASH> 100644
--- a/src/onelogin/saml2/auth.py
+++ b/src/onelogin/saml2/auth.py
@@ -433,7 +433,7 @@ class OneLogin_Saml2_Auth(object):
OneLogin_Saml2_Error.SP_CERTS_NOT_FOUND
)
- xmlsec.initialize()... | Changing xmlsec.initialize | py |
diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/__init__.py
+++ b/salt/pillar/__init__.py
@@ -257,7 +257,7 @@ class RemotePillar(RemotePillarMixin):
return ret_pillar
def destroy(self):
- if self._closing:
+ if hasattr(self, '_cl... | Ensure _closing exists This was raising an ignored exception because _closing was set later in __init__. Not sure if it must be the last line in __init__. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,6 +35,7 @@ setup(
license='MIT',
py_modules=['pyi'],
zip_safe=False,
+ python_requires=">=3.6",
install_requires=['flake8 >= 3.2.1', 'attrs'],
test_suite='tests.test_pyi',
classifiers=[ | Be explicit in setup.py about Python <I>+ | py |
diff --git a/tests/unit/utils/WorkspaceTest.py b/tests/unit/utils/WorkspaceTest.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/WorkspaceTest.py
+++ b/tests/unit/utils/WorkspaceTest.py
@@ -31,7 +31,7 @@ class WorkspaceTest:
def test_assign_project(self):
proj = self.ws.new_project()
with py... | BUG: updated a unit test -> allowing re-assigning a project to Workspace using the old name | py |
diff --git a/prepare.py b/prepare.py
index <HASH>..<HASH> 100644
--- a/prepare.py
+++ b/prepare.py
@@ -1,6 +1,17 @@
#!/usr/bin/env python
import os, sys
+def get_credentials():
+ "Returns login and password stored in secret.txt"
+ while not check_secret():
+ pass
+
+ with open("secret.txt", "r") as ... | add get_credentials function which will check all the preparations and return login and password stored in secter.txt file | py |
diff --git a/mapmyfitness/__init__.py b/mapmyfitness/__init__.py
index <HASH>..<HASH> 100644
--- a/mapmyfitness/__init__.py
+++ b/mapmyfitness/__init__.py
@@ -11,7 +11,7 @@ class MapMyFitness(object):
def __new__(cls, *args, **kwargs):
if not cls._instance:
- cls._instance = super(MapMyFitnes... | Trying to make python3 happy with the singleton's use of super. | py |
diff --git a/pyqg/tests/test_particles.py b/pyqg/tests/test_particles.py
index <HASH>..<HASH> 100644
--- a/pyqg/tests/test_particles.py
+++ b/pyqg/tests/test_particles.py
@@ -1,14 +1,20 @@
from __future__ import print_function
from builtins import range
import unittest
+import pytest
import numpy as np
import pyqg... | added skips to scipy tests | py |
diff --git a/satpy/scene.py b/satpy/scene.py
index <HASH>..<HASH> 100644
--- a/satpy/scene.py
+++ b/satpy/scene.py
@@ -866,12 +866,12 @@ class Scene(MetadataObject):
new_datasets = {}
datasets = list(new_scn.datasets.values())
max_area = None
- if hasattr(destination_area, 'freeze'):
-... | Fix freezing of areas before resampling even as strings | py |
diff --git a/salt/states/service.py b/salt/states/service.py
index <HASH>..<HASH> 100644
--- a/salt/states/service.py
+++ b/salt/states/service.py
@@ -4,7 +4,21 @@ Starting or restarting of services and daemons
==============================================
Services are defined as system daemons typically started w... | Clarify service state opening docs - uses 'service' virtualname (#<I>) * Clarify service state opening docs - uses 'service' virtualname Fixes #<I> * Add a few more clarifications to service state docs And link to service execution modules list. | py |
diff --git a/rednose/rednose.py b/rednose/rednose.py
index <HASH>..<HASH> 100644
--- a/rednose/rednose.py
+++ b/rednose/rednose.py
@@ -218,8 +218,11 @@ class RedNose(nose.plugins.Plugin):
path is returned surrounded by bold xterm escape sequences.
If path is not a child of the working directory, path is returned
... | ignore failures to figure out the current working directory | py |
diff --git a/pytablewriter/style/_theme.py b/pytablewriter/style/_theme.py
index <HASH>..<HASH> 100644
--- a/pytablewriter/style/_theme.py
+++ b/pytablewriter/style/_theme.py
@@ -47,7 +47,12 @@ def load_ptw_plugins() -> Dict[str, Theme]:
logger.debug("discovered_plugins: {}".format(list(discovered_plugins)))
... | Fix plugin discovery to avoid errors when some of the functions not implemented | py |
diff --git a/tests/flows/test_oidc-saml.py b/tests/flows/test_oidc-saml.py
index <HASH>..<HASH> 100644
--- a/tests/flows/test_oidc-saml.py
+++ b/tests/flows/test_oidc-saml.py
@@ -32,6 +32,7 @@ def oidc_frontend_config(signing_key_path, mongodb_instance):
"issuer": "https://proxy-op.example.com",
... | Fix tests by setting client_db_uri | py |
diff --git a/nudibranch/models.py b/nudibranch/models.py
index <HASH>..<HASH> 100644
--- a/nudibranch/models.py
+++ b/nudibranch/models.py
@@ -946,10 +946,19 @@ class User(UserMixin, BasicBase, Base):
.filter(UserToGroup.project == project)).first()
def make_submission(self, project):
- g... | Handle IntegrityError that may occur when assocaiting a User to a Group. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,7 @@ setup(
keywords='color colour terminal text ansi windows crossplatform xplatform',
author='Jonathan Hartley',
author_email='tartley@tartley.com',
- url='https://pypi.python.org/pypi/colorama',
... | setup.py: Change url to github The GitHub URL is more useful than the PyPI URL, because this data is most often seen on PyPI. | py |
diff --git a/apiritif/loadgen.py b/apiritif/loadgen.py
index <HASH>..<HASH> 100644
--- a/apiritif/loadgen.py
+++ b/apiritif/loadgen.py
@@ -408,7 +408,13 @@ class ApiritifPlugin(Plugin):
if not recording:
return samples_processed
- samples = self.apiritif_extractor.parse_recording(recordin... | Fail-safe parse recording | py |
diff --git a/include/base/import_hook.py b/include/base/import_hook.py
index <HASH>..<HASH> 100644
--- a/include/base/import_hook.py
+++ b/include/base/import_hook.py
@@ -81,3 +81,8 @@ class BaseIncludeLoader(object):
return self
else:
return None
+
+ def __repr__(self):
+ r... | repr of hooks include module prefix | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,7 @@ setup(
author_email='tigrawap@gmail.com',
long_description=read('README.rst'),
packages=['pybabel_hbs'],
+ url="https://github.com/tigrawap/pybabel-hbs",
install_requires=[
'babel... | Github url added to setup script | py |
diff --git a/python_modules/dagster/dagster/_core/utils.py b/python_modules/dagster/dagster/_core/utils.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/_core/utils.py
+++ b/python_modules/dagster/dagster/_core/utils.py
@@ -2,7 +2,6 @@ import os
import random
import string
import uuid
-import warn... | fix lint (#<I>) | py |
diff --git a/tests/test_dataset.py b/tests/test_dataset.py
index <HASH>..<HASH> 100644
--- a/tests/test_dataset.py
+++ b/tests/test_dataset.py
@@ -60,7 +60,8 @@ def test_meta():
ds = qpformat.load_data(path=tf, meta_data={"time": 47})
assert ds.get_time() == 47
- assert tf in ds.get_name()
+ # use `.n... | tests: arrg those short-hand paths on Windows | py |
diff --git a/m.py b/m.py
index <HASH>..<HASH> 100755
--- a/m.py
+++ b/m.py
@@ -303,7 +303,7 @@ optional arguments:
>>> runE("play x.mkv") # doctest: +ELLIPSIS
Playing x.mkv ...
RUN false vlc --fullscreen --play-and-exit -- .../media/x.mkv
-Error: could not play file 'x.mkv': Command ... returned non-zero exit status... | fix test for python<I> and pypy3 (small output difference) | py |
diff --git a/salt/transport/__init__.py b/salt/transport/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/transport/__init__.py
+++ b/salt/transport/__init__.py
@@ -101,7 +101,7 @@ class ZeroMQChannel(Channel):
self.ttype = 'zeromq'
# crypt defaults to 'aes'
- self.crypt = kwargs['crypt'] i... | PEP8/PEP<I>: use kwargs.get instead of one line if/else I was poking around in the transport code thinking about an idea and noticed this simplification. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setuptools.setup(
description="Dividers in Python, the easy way! Multiple different divider looks.",
long_description=long_description,
long_description_content_type="text/markdown",
- url="htt... | Update docs link to readthedocs.io | py |
diff --git a/setup/setup.py b/setup/setup.py
index <HASH>..<HASH> 100644
--- a/setup/setup.py
+++ b/setup/setup.py
@@ -10,12 +10,17 @@ if not os.path.exists(os.path.join(os.getcwd(), 'data',
import sys
sys.exit()
+with open('README.rst', encoding='utf-8') as fobj:
+ LONG_DESCRIPTION = fobj.read()... | In setup.py, add a long_description based on README.rst and change version to <I> | py |
diff --git a/ipyrad/core/assembly.py b/ipyrad/core/assembly.py
index <HASH>..<HASH> 100644
--- a/ipyrad/core/assembly.py
+++ b/ipyrad/core/assembly.py
@@ -1181,8 +1181,10 @@ class Assembly(object):
if diff:
msg = """
The following Samples do not appear to have been clustered i... | Cosmetic changes to step 7 interaction if samples are missing from db | py |
diff --git a/holodeck/environments.py b/holodeck/environments.py
index <HASH>..<HASH> 100755
--- a/holodeck/environments.py
+++ b/holodeck/environments.py
@@ -406,6 +406,14 @@ class HolodeckEnvironment(object):
self._world_process.wait(5)
self._client.unlink()
+ # Context manager APIs, allows... | HolodeckEnvironment: implement context manager APIs This allows the `with` statement to be used on a HolodeckEnvironment object, eg ``` with holodeck.make("world") as env: env.tick() # env is cleaned up ``` Implements #<I> | py |
diff --git a/gpiozero/input_devices.py b/gpiozero/input_devices.py
index <HASH>..<HASH> 100644
--- a/gpiozero/input_devices.py
+++ b/gpiozero/input_devices.py
@@ -397,15 +397,15 @@ class MotionSensor(SmoothedInputDevice):
:param bool pull_up:
If ``False`` (the default), the GPIO pin will be pulled low b... | Fixed docstring and pull_up | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.