diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/aiortc/contrib/media.py b/aiortc/contrib/media.py
index <HASH>..<HASH> 100644
--- a/aiortc/contrib/media.py
+++ b/aiortc/contrib/media.py
@@ -6,9 +6,11 @@ import wave
import cv2
import numpy
-from ..mediastreams import AudioFrame, AudioStreamTrack, VideoFrame
+from ..mediastreams import (AudioFrame, Au... | [contrib] add VideoFileTrack class to read video from a file | py |
diff --git a/horizon/test/test_dashboards/dogs/puppies/tables.py b/horizon/test/test_dashboards/dogs/puppies/tables.py
index <HASH>..<HASH> 100644
--- a/horizon/test/test_dashboards/dogs/puppies/tables.py
+++ b/horizon/test/test_dashboards/dogs/puppies/tables.py
@@ -26,8 +26,8 @@ class EagerPuppiesTable(tables.DataTabl... | Move translator notes just before translatable strings Translator notes must be placed just before strings. Otherwise translator notes are ignored when generating POT files. We need to be careful when we use multiline *gettext* methods. How to detect them is a future topic in I<I>N team. Change-Id: I<I>c<I>b<I>b<I>ec... | py |
diff --git a/tests/test_modeling_blenderbot.py b/tests/test_modeling_blenderbot.py
index <HASH>..<HASH> 100644
--- a/tests/test_modeling_blenderbot.py
+++ b/tests/test_modeling_blenderbot.py
@@ -325,6 +325,7 @@ class BlenderbotStandaloneDecoderModelTester:
decoder_attention_heads=4,
max_position_embed... | Hotfixing tests (blenderbot decoderonly tests, also need to remove (#<I>) `encoder_no_repeat_ngram_size` from their config. | py |
diff --git a/python/thunder/rdds/series.py b/python/thunder/rdds/series.py
index <HASH>..<HASH> 100644
--- a/python/thunder/rdds/series.py
+++ b/python/thunder/rdds/series.py
@@ -499,18 +499,19 @@ class Series(Data):
A local numpy array with the subset of points
"""
from numpy.linalg impo... | #<I> Fix for random seed error during sampling Explicitly specify a random seed in the range 0 to 2 ** <I> - 1, which will always yield a valid random number using numpy’s sampler. | py |
diff --git a/fbchat/client.py b/fbchat/client.py
index <HASH>..<HASH> 100644
--- a/fbchat/client.py
+++ b/fbchat/client.py
@@ -488,7 +488,7 @@ class Client(object):
return []
while True:
lastThreadTimestamp = Threads[-1].last_message_timestamp
- candidates = client.fetchThr... | Fix call to fetchThreadList Use "self" instead of "client" | py |
diff --git a/sphinx_click/ext.py b/sphinx_click/ext.py
index <HASH>..<HASH> 100644
--- a/sphinx_click/ext.py
+++ b/sphinx_click/ext.py
@@ -287,7 +287,13 @@ class ClickDirective(rst.Directive):
raise self.error('Module "{}" has no attribute "{}"'.format(
module_name, attr_name))
- ... | Check type of object to document We can only document objects derived from 'click.core.BaseCommand', such as 'click.Command', 'click.Group', 'click.MultiCommand' etc. Help users identify misconfigurations earlier by highlighting this fact. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,7 @@ setup(
packages=['qtawesome'],
install_requires=['qtpy'],
include_package_data=True,
+ python_requires='>=3.6',
platforms=['OS-independent'],
classifiers=[
'Development Statu... | Add python_requires to setup.py This avoids pip to install it in Python 2 envs | py |
diff --git a/src/foremast/pipeline/construct_pipeline_block_lambda.py b/src/foremast/pipeline/construct_pipeline_block_lambda.py
index <HASH>..<HASH> 100644
--- a/src/foremast/pipeline/construct_pipeline_block_lambda.py
+++ b/src/foremast/pipeline/construct_pipeline_block_lambda.py
@@ -93,7 +93,8 @@ def construct_pipel... | fix: Lambda package_type not exposed to foremast pipeline lambda stage | py |
diff --git a/src/feat/agencies/net/standalone.py b/src/feat/agencies/net/standalone.py
index <HASH>..<HASH> 100644
--- a/src/feat/agencies/net/standalone.py
+++ b/src/feat/agencies/net/standalone.py
@@ -96,7 +96,7 @@ class Agency(agency.Agency):
def _acquire_lock(self):
if not self._lock_file:
- ... | Change flags for opening a lock file. This prevents it from failing if the file doesn't exist. | py |
diff --git a/persephone/corpus.py b/persephone/corpus.py
index <HASH>..<HASH> 100644
--- a/persephone/corpus.py
+++ b/persephone/corpus.py
@@ -57,7 +57,7 @@ def find_untranscribed_wavs(wav_path: Path, transcription_path: Path, label_type
"""
audio_files = wav_path.glob("**/*.wav")
transcription_files = t... | Fixed bug where untranscribed prefixes weren't being populated in the Corpus. | py |
diff --git a/ospd/ospd.py b/ospd/ospd.py
index <HASH>..<HASH> 100644
--- a/ospd/ospd.py
+++ b/ospd/ospd.py
@@ -496,7 +496,7 @@ class OSPDaemon:
return
try:
- response = self.handle_command(data)
+ response = self.handle_command(data, stream)
except OspdCommandError... | Pass the stream object to handle_command() | py |
diff --git a/killer.py b/killer.py
index <HASH>..<HASH> 100644
--- a/killer.py
+++ b/killer.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-__version__ = '0.1.3'
+__version__ = '0.1.3-1'
__author__ = 'Lvl4Sword'
import argparse
@@ -98,8 +98,8 @@ if __name__ == '__main__':
print('USB:')
print(''.join(s... | <I>-1 - Proper AC debug - Don't want to check battery twice. Whoops! | py |
diff --git a/chisel/request.py b/chisel/request.py
index <HASH>..<HASH> 100644
--- a/chisel/request.py
+++ b/chisel/request.py
@@ -23,7 +23,7 @@
from .compat import func_name, iteritems
import hashlib
-import os
+from pathlib import posixpath
from pkg_resources import resource_string
@@ -71,11 +71,11 @@ class ... | use posixpath in StaticRequest | py |
diff --git a/formats/folia.py b/formats/folia.py
index <HASH>..<HASH> 100644
--- a/formats/folia.py
+++ b/formats/folia.py
@@ -4949,10 +4949,19 @@ class ForeignData(AbstractElement):
if not isinstance(kwargs['node'],ElementTree._Element):
raise ValueError("foreign-data node should be ElementTree.E... | added a namespace check to foreign data (may not include FoLiA namespace) | py |
diff --git a/src/streamcorpus_pipeline/stages.py b/src/streamcorpus_pipeline/stages.py
index <HASH>..<HASH> 100644
--- a/src/streamcorpus_pipeline/stages.py
+++ b/src/streamcorpus_pipeline/stages.py
@@ -184,18 +184,6 @@ def _init_stage(name, config, external_stages=None):
stage_constructor = Stages.get(name, Non... | removing block that does not happen any more, now that streamcorpus.* is not a namespace package | py |
diff --git a/redll/tests/test_machomachomangler.py b/redll/tests/test_machomachomangler.py
index <HASH>..<HASH> 100644
--- a/redll/tests/test_machomachomangler.py
+++ b/redll/tests/test_machomachomangler.py
@@ -26,7 +26,7 @@ def write(path, buf):
f.write(buf)
def run(cmd):
- subprocess.run(cmd, check=Tru... | don't assume py<I> subprocess | py |
diff --git a/src/app/actions/prottable/fdr.py b/src/app/actions/prottable/fdr.py
index <HASH>..<HASH> 100644
--- a/src/app/actions/prottable/fdr.py
+++ b/src/app/actions/prottable/fdr.py
@@ -6,8 +6,10 @@ from app.readers import fasta
def generate_protein_fdr(target, decoy, theader, dheader, headerfields):
- tpr... | In protein FDR we also outputted proteins with NA as best Q-value, should not be the case | py |
diff --git a/nhlib/source/__init__.py b/nhlib/source/__init__.py
index <HASH>..<HASH> 100644
--- a/nhlib/source/__init__.py
+++ b/nhlib/source/__init__.py
@@ -20,3 +20,4 @@ from nhlib.source.rupture import Rupture, ProbabilisticRupture
from nhlib.source.point import PointSource
from nhlib.source.area import AreaSourc... | source/__init__: added import of ComplexFaultSource | py |
diff --git a/salt/cloud/clouds/azurearm.py b/salt/cloud/clouds/azurearm.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/azurearm.py
+++ b/salt/cloud/clouds/azurearm.py
@@ -68,7 +68,6 @@ import salt.utils.data
import salt.utils.files
import salt.utils.stringutils
import salt.utils.yaml
-from salt.utils.version... | remove unused import from azurearm driver | py |
diff --git a/scriptabit/utility_functions.py b/scriptabit/utility_functions.py
index <HASH>..<HASH> 100644
--- a/scriptabit/utility_functions.py
+++ b/scriptabit/utility_functions.py
@@ -167,7 +167,7 @@ class UtilityFunctions(object):
"""
heading_level = min(heading_level, 6)
if heading_level... | replaced stupid list comprehension in notify method. What was I thinking? | py |
diff --git a/libgreader/auth.py b/libgreader/auth.py
index <HASH>..<HASH> 100644
--- a/libgreader/auth.py
+++ b/libgreader/auth.py
@@ -4,7 +4,6 @@ import urllib
import urllib2
import urlparse
import time
-import httplib2
try:
import json
@@ -18,6 +17,12 @@ try:
except:
has_oauth = False
+try:
+ im... | don't require httplib2 if you aren't using GAPDecoratorAuthMethod | py |
diff --git a/phoebe/backend/universe.py b/phoebe/backend/universe.py
index <HASH>..<HASH> 100644
--- a/phoebe/backend/universe.py
+++ b/phoebe/backend/universe.py
@@ -2299,6 +2299,7 @@ class Star_sphere(Star):
class Envelope(Body):
def __init__(self, halves, pot, q,
+ mesh_method,
... | store mesh_method in the Envelope object | py |
diff --git a/bson/codec_options.py b/bson/codec_options.py
index <HASH>..<HASH> 100644
--- a/bson/codec_options.py
+++ b/bson/codec_options.py
@@ -72,7 +72,7 @@ class CodecOptions(_options_base):
if not (issubclass(document_class, MutableMapping) or
_raw_document_class(document_class)):
... | Updating class reference in comment. | py |
diff --git a/claripy/balancer.py b/claripy/balancer.py
index <HASH>..<HASH> 100644
--- a/claripy/balancer.py
+++ b/claripy/balancer.py
@@ -200,6 +200,9 @@ class Balancer:
continue
unpacked_truisms = self._unpack_truisms(truism)
+ if is_false(truism):
+ raise Cla... | Fix two issues that are causing VSA tests to fail. (#<I>) - Balancer may incorrectly report False truisms as sat. - Balancer may incorrectly remove Extract() when signed comparisons are used. | py |
diff --git a/spyder/widgets/variableexplorer/arrayeditor.py b/spyder/widgets/variableexplorer/arrayeditor.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/variableexplorer/arrayeditor.py
+++ b/spyder/widgets/variableexplorer/arrayeditor.py
@@ -18,7 +18,7 @@ from __future__ import print_function
# Third party imp... | fix editing floats in array editor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,8 @@ setupopts = dict(
author_email="tuomas.airaksinen@gmail.com",
description="WSGI Support for Automate",
long_description=open('README.rst').read(),
+ download_url='https://pypi.python.org/pypi/a... | Add download_url and platforms into setup.py | py |
diff --git a/incuna_mail.py b/incuna_mail.py
index <HASH>..<HASH> 100644
--- a/incuna_mail.py
+++ b/incuna_mail.py
@@ -35,11 +35,7 @@ def send(sender=None, to=(), cc=(), bcc=(), subject='mail',
If no sender is specified then the DEFAULT_FROM_EMAIL or SERVER_EMAIL setting will be used.
Any extra items passed i... | DRY down the listify function with lambda goodies | py |
diff --git a/dvc/remote/base.py b/dvc/remote/base.py
index <HASH>..<HASH> 100644
--- a/dvc/remote/base.py
+++ b/dvc/remote/base.py
@@ -75,11 +75,9 @@ class DirCacheError(DvcException):
def index_locked(f):
@wraps(f)
def wrapper(remote_obj, *args, **kwargs):
- remote = kwargs.get("remote")
- if ... | gc: don't forget to load remote index (#<I>) Kudos @pmrowla | py |
diff --git a/aioimaplib/aioimaplib.py b/aioimaplib/aioimaplib.py
index <HASH>..<HASH> 100644
--- a/aioimaplib/aioimaplib.py
+++ b/aioimaplib/aioimaplib.py
@@ -211,7 +211,9 @@ class IMAP4ClientProtocol(asyncio.Protocol):
self._handle_responses(tail, line_handler, fetch_handler)
def _handle_line(self,... | [fix] remove 'unknown data received' logs if line is empty | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,8 +44,8 @@ setup(name = 'Rtree',
keywords = 'gis spatial index',
author = 'Sean Gillies',
author_email = 'sgillies@frii.com',
- maintainer = 'Howard Butler',
- mainta... | revert maintainer change because of PyPI | py |
diff --git a/varlink/scanner.py b/varlink/scanner.py
index <HASH>..<HASH> 100644
--- a/varlink/scanner.py
+++ b/varlink/scanner.py
@@ -39,8 +39,8 @@ class Scanner(object):
self.keyword_pattern = re.compile(r'\b[a-z]+\b|[:,(){}]|->|\[\]|\?|\[string\]\(\)|\[string\]', ASCII)
self.patterns = {
... | varlink/scanner.py: fixed Grammar field_names/identifier can start with capital letters member-name cannot have _ in the name | py |
diff --git a/persephone/model.py b/persephone/model.py
index <HASH>..<HASH> 100644
--- a/persephone/model.py
+++ b/persephone/model.py
@@ -250,8 +250,6 @@ class Model:
saver = tf.train.Saver()
- export_dir = os.path.join(self.exp_dir, "export_dir")
-
with tf.Session(config=allow_growth_conf... | remove unused variable as per #<I> | py |
diff --git a/src/calmjs/parse/lexers/es5.py b/src/calmjs/parse/lexers/es5.py
index <HASH>..<HASH> 100644
--- a/src/calmjs/parse/lexers/es5.py
+++ b/src/calmjs/parse/lexers/es5.py
@@ -80,7 +80,7 @@ PATT_LINE_CONTINUATION = re.compile(
r'\\(\n|\r(?!\n)|\u2028|\u2029|\r\n)', flags=re.S)
-broken_string_patt = re.c... | Keep the names consistent - Should have gotten this committed, but it was pushed to master already. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,6 +41,7 @@ setup(
"flake8-import-order >= 0.18.0, < 1.0.0",
"flake8-print >= 3.1.0, < 4.0.0",
"flake8-quotes >= 3.2.0, < 4.0.0",
+ "flake8-simplify >= 0.9.0, < 1.0.0",
... | Add flake8-simplify | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,14 +6,14 @@ from distutils.core import setup
try:
import fontTools
except:
- print "*** Warning: ufo2ft requires FontTools, see:"
- print " fonttools.sf.net"
+ print("*** Warning: ufo2ft requires FontTool... | [setup.py] fix print statements | py |
diff --git a/backtrader/__init__.py b/backtrader/__init__.py
index <HASH>..<HASH> 100644
--- a/backtrader/__init__.py
+++ b/backtrader/__init__.py
@@ -44,11 +44,11 @@ from .resamplerfilter import *
from .lineiterator import *
from .indicator import *
+from .analyzer import *
from .observer import *
from .strategy... | Import analyzers before observers to let observers host analyzers | py |
diff --git a/O365/message.py b/O365/message.py
index <HASH>..<HASH> 100644
--- a/O365/message.py
+++ b/O365/message.py
@@ -296,7 +296,15 @@ class Message(ApiComponent, AttachableMixin, HandleRecipientsMixin):
@body.setter
def body(self, value):
- self.__body = value
+ if self.__body:
+ ... | Message: Fixed body trail lost on reply and forward messages. Now the contents of the body are preserved. Also now setting the body will stack the changes one on top of the other. To avoid this just set the body to '' or None. | py |
diff --git a/debugtools/templatetags/debug_tags.py b/debugtools/templatetags/debug_tags.py
index <HASH>..<HASH> 100644
--- a/debugtools/templatetags/debug_tags.py
+++ b/debugtools/templatetags/debug_tags.py
@@ -75,6 +75,8 @@ def _dump_var(object):
attrs['__str__'] = str(object)
if hasattr(obje... | Display __getitem__ in debug_tags print. This gives a hint that there is more to get, then the list of properties being presented. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,8 @@ setup(
"opaque_keys.edx",
],
install_requires=[
- "stevedore"
+ "stevedore",
+ "pymongo"
],
entry_points={
'opaque_keys.testing': [ | Ensure pymongo is installed when running setup.py | py |
diff --git a/html5validator/validator.py b/html5validator/validator.py
index <HASH>..<HASH> 100644
--- a/html5validator/validator.py
+++ b/html5validator/validator.py
@@ -177,7 +177,8 @@ class Validator(object):
e = [l for l in e if not regex.search(l)]
if e:
- LOGGER.error(e)
+ ... | Display errors on separate lines to improve readability (#<I>) | py |
diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py
index <HASH>..<HASH> 100755
--- a/pythonforandroid/toolchain.py
+++ b/pythonforandroid/toolchain.py
@@ -28,11 +28,11 @@ from pythonforandroid.recipe import (Recipe, PythonRecipe, CythonRecipe,
CompiledCompon... | add some imports to toolchain.py Provides backwards compatibility for recipes. | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -245,8 +245,8 @@ on_saltstack = 'SALT_ON_SALTSTACK' in os.environ
project = 'Salt'
version = salt.version.__version__
-latest_release = '2017.7.1' # latest release
-previous_release = '2016.11.7' # latest rel... | [develop] Bump latest and previous versions | py |
diff --git a/user_management/api/tests/test_views.py b/user_management/api/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/user_management/api/tests/test_views.py
+++ b/user_management/api/tests/test_views.py
@@ -65,12 +65,13 @@ class GetAuthTokenTest(APIRequestTestCase):
email=self.username,
... | Test `last_login` explicitly changed | py |
diff --git a/taxtastic/utils.py b/taxtastic/utils.py
index <HASH>..<HASH> 100644
--- a/taxtastic/utils.py
+++ b/taxtastic/utils.py
@@ -21,7 +21,7 @@ if xlrd:
val = datetime.datetime(*timetup)
elif cell_obj.ctype == xlrd.XL_CELL_TEXT:
# coerce to pain text from unicode
- val... | read_spreadsheet strips cell contents if text | py |
diff --git a/python/ray/exceptions.py b/python/ray/exceptions.py
index <HASH>..<HASH> 100644
--- a/python/ray/exceptions.py
+++ b/python/ray/exceptions.py
@@ -298,6 +298,7 @@ class RayActorError(RayError):
"The actor never ran - it was cancelled before it started running."
)
... | Add actor_id in RayActorError (#<I>) For people who want to have better control over the node failures, and handle the error such as RayActorError by themselves. I think it's necessary to make things like actor_id as an attributed of the error. | py |
diff --git a/gimmemotifs/__init__.py b/gimmemotifs/__init__.py
index <HASH>..<HASH> 100644
--- a/gimmemotifs/__init__.py
+++ b/gimmemotifs/__init__.py
@@ -23,7 +23,7 @@ class DuplicateFilter(logging.Filter):
if record.module not in self.logs:
self.logs[record.module] = {}
- if record.msg ... | Make it possible to initialize Motif() with either pfm or ppm | py |
diff --git a/src/quart/utils.py b/src/quart/utils.py
index <HASH>..<HASH> 100644
--- a/src/quart/utils.py
+++ b/src/quart/utils.py
@@ -27,7 +27,7 @@ if TYPE_CHECKING:
from .wrappers.response import Response # noqa: F401
-def redirect(location: str, status_code: int = 302) -> "Response":
+def redirect(location... | Bugfix match the Werkzeug API in redirect Some existing Flask extensions, flask_sslify and flask_talisman, expect this argument to be called `code` rather than `status_code`. | py |
diff --git a/python/ray/train/sklearn/sklearn_trainer.py b/python/ray/train/sklearn/sklearn_trainer.py
index <HASH>..<HASH> 100644
--- a/python/ray/train/sklearn/sklearn_trainer.py
+++ b/python/ray/train/sklearn/sklearn_trainer.py
@@ -150,7 +150,6 @@ class SklearnTrainer(BaseTrainer):
scaling_config: Configura... | [Train] Remove bad arg from `SklearnTrainer` doc (#<I>) Removes docstring for an argument that is not present. Looks like it was introduced by mistake. | py |
diff --git a/tests/searchcommands/test_searchcommands_app.py b/tests/searchcommands/test_searchcommands_app.py
index <HASH>..<HASH> 100755
--- a/tests/searchcommands/test_searchcommands_app.py
+++ b/tests/searchcommands/test_searchcommands_app.py
@@ -416,7 +416,7 @@ class TestSearchCommandsApp(TestCase):
... | fix tests on windows (#<I>) fix searchcommands_app example tests so that it'll work on windows machine | 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
@@ -2588,11 +2588,11 @@ def lifted_index(pressure, temperature, parcel_profile):
T500 is the measured temperature at 500 hPa.
Tp500 is the temperature of t... | Updated description. Returned value an integer. | py |
diff --git a/packages/vaex-core/vaex/expression.py b/packages/vaex-core/vaex/expression.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/expression.py
+++ b/packages/vaex-core/vaex/expression.py
@@ -227,6 +227,14 @@ class Expression(with_metaclass(Meta)):
dsk[name] = self
return da.Array(d... | vaex expression to pandas.Series support (#<I>) feat(core): expressions can be converted to a pandas.Series | py |
diff --git a/beetle/builder.py b/beetle/builder.py
index <HASH>..<HASH> 100644
--- a/beetle/builder.py
+++ b/beetle/builder.py
@@ -13,9 +13,9 @@ class NoUrlError(BeetleError):
class GroupKey:
- def __init__(self, name, slug):
+ def __init__(self, name):
self.name = name
- self.slug = slug
+ ... | Moved slugging into the GroupKey class. | py |
diff --git a/limpyd/database.py b/limpyd/database.py
index <HASH>..<HASH> 100644
--- a/limpyd/database.py
+++ b/limpyd/database.py
@@ -1,6 +1,8 @@
# -*- coding:utf-8 -*-
from redis.client import StrictPipeline
+from redis.exceptions import WatchError
+
from limpyd import redis_connect, DEFAULT_CONNECTION_SETTINGS
... | Add a transaction method handling pipeline watches It's a copy of the transaction method found in redis-py, but using our Pipeline | py |
diff --git a/discord/server.py b/discord/server.py
index <HASH>..<HASH> 100644
--- a/discord/server.py
+++ b/discord/server.py
@@ -144,7 +144,7 @@ class Server(Hashable):
self._member_count = member_count
self.name = guild.get('name')
- self.large = guild.get('large', self._member_count >... | Fix handling of unavailable servers in READY | py |
diff --git a/kubernetes/models/v1/NodeStatus.py b/kubernetes/models/v1/NodeStatus.py
index <HASH>..<HASH> 100644
--- a/kubernetes/models/v1/NodeStatus.py
+++ b/kubernetes/models/v1/NodeStatus.py
@@ -204,7 +204,7 @@ class NodeStatus(object):
@volumes_attached.setter
def volumes_attached(self, v):
- if... | Fixing a bug in nodestatus. | py |
diff --git a/captcha/image.py b/captcha/image.py
index <HASH>..<HASH> 100644
--- a/captcha/image.py
+++ b/captcha/image.py
@@ -52,7 +52,7 @@ class _Captcha(object):
"""Generate and write an image CAPTCHA data to the output.
:param chars: text to be generated.
- :param output: output destionat... | Update image.py (#<I>) Corrected a typo in line <I> to improve the generated documentation. | py |
diff --git a/pdf/conduit/lib/lib.py b/pdf/conduit/lib/lib.py
index <HASH>..<HASH> 100644
--- a/pdf/conduit/lib/lib.py
+++ b/pdf/conduit/lib/lib.py
@@ -17,7 +17,7 @@ def register_font(font='Vera.ttf'):
def _image_directory():
- directory = os.path.join(bundle_dir(), 'lib', 'img')
+ directory = os.path.join(bu... | Fixed _image_directory functions directory variable | py |
diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/oauth_prompt.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/oauth_prompt.py
index <HASH>..<HASH> 100644
--- a/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/oauth_prompt.py
+++ b/libraries/botbuilder-dialogs/botbuilder/dialogs/p... | [Patch] SSO + Teams: maintain sign in link for channels that require it (#<I>) * SSO + Teams: maintain sign in link for channels that require it * Fix syntax :) * OAuthPrompt: Formatting | py |
diff --git a/Tangelo/tangelo/tool.py b/Tangelo/tangelo/tool.py
index <HASH>..<HASH> 100644
--- a/Tangelo/tangelo/tool.py
+++ b/Tangelo/tangelo/tool.py
@@ -266,4 +266,3 @@ class AuthUpdate(cherrypy.Tool):
# Don't bother updating the security table for higher paths -
# we'll process thos... | Removed stray blank line from end of file. | py |
diff --git a/show_charmap.py b/show_charmap.py
index <HASH>..<HASH> 100755
--- a/show_charmap.py
+++ b/show_charmap.py
@@ -64,7 +64,7 @@ if __name__ == '__main__':
if len(sys.argv) != 4:
print_usage()
rows, cols = int(sys.argv[2]), int(sys.argv[3])
- lcd = i2c.CharLCD(cols=cols, ro... | show_charmap: Fix for GPIO | py |
diff --git a/albumentations/augmentations/transforms.py b/albumentations/augmentations/transforms.py
index <HASH>..<HASH> 100644
--- a/albumentations/augmentations/transforms.py
+++ b/albumentations/augmentations/transforms.py
@@ -1745,7 +1745,6 @@ class GaussNoise(ImageOnlyTransform):
sigma = var ** 0.5
... | gauss noie can be negative (#<I>) | py |
diff --git a/script/jekyllmarkdowngen.py b/script/jekyllmarkdowngen.py
index <HASH>..<HASH> 100644
--- a/script/jekyllmarkdowngen.py
+++ b/script/jekyllmarkdowngen.py
@@ -481,7 +481,7 @@ class JekyllMarkdownGenerator(MarkdownGenerator):
ref = type_curie.split('/')[-1]
type_uri ... | code review fix - change to elif | py |
diff --git a/src/python/dxpy/scripts/dx_build_app.py b/src/python/dxpy/scripts/dx_build_app.py
index <HASH>..<HASH> 100755
--- a/src/python/dxpy/scripts/dx_build_app.py
+++ b/src/python/dxpy/scripts/dx_build_app.py
@@ -8,7 +8,7 @@ import os, sys, json, fileinput, re, subprocess, argparse
from datetime import datetime
... | help dx-build-app determine its identity when uncertain | py |
diff --git a/governor.py b/governor.py
index <HASH>..<HASH> 100755
--- a/governor.py
+++ b/governor.py
@@ -22,7 +22,10 @@ def sigterm_handler(signo, stack_frame):
# handle SIGCHILD, since we are the equivalent of the INIT process
def sigchld_handler(signo, stack_frame):
try:
- os.waitpid(-1, os.WNOHANG)
+... | loop until we reap all terminated children. | py |
diff --git a/astrobase/hatpilc.py b/astrobase/hatpilc.py
index <HASH>..<HASH> 100644
--- a/astrobase/hatpilc.py
+++ b/astrobase/hatpilc.py
@@ -237,6 +237,10 @@ def concatenate_textlcs(lclist):
lcdict[col] = np.concatenate((lcdict[col], thislcd[col]))
# now we're all done concatenatin'
+
+ # m... | hatpilc: bug fixing | py |
diff --git a/moban/utils.py b/moban/utils.py
index <HASH>..<HASH> 100644
--- a/moban/utils.py
+++ b/moban/utils.py
@@ -108,7 +108,7 @@ class HashStore:
if file_name in self.hashes:
if content_hash == self.hashes[file_name]:
ret = False
- else:
+ if ret:
... | bug fix, update content hash when the hash is different or does not exist | py |
diff --git a/cmd3/plugins/edit.py b/cmd3/plugins/edit.py
index <HASH>..<HASH> 100644
--- a/cmd3/plugins/edit.py
+++ b/cmd3/plugins/edit.py
@@ -57,10 +57,10 @@ class edit:
elif "linux" in what:
- editors = ["emacs",
- "vi",
- "vim",
- ... | set the full editor path fro linus | py |
diff --git a/rootpy/tree/tree.py b/rootpy/tree/tree.py
index <HASH>..<HASH> 100644
--- a/rootpy/tree/tree.py
+++ b/rootpy/tree/tree.py
@@ -692,10 +692,6 @@ class BaseTree(NamedObject): # Plottable
pad = ROOT.gPad.func()
if not pad:
pad = Canvas()
- match... | FIX: Tree.draw() redraw hist with user styles | py |
diff --git a/trimesh/poses.py b/trimesh/poses.py
index <HASH>..<HASH> 100644
--- a/trimesh/poses.py
+++ b/trimesh/poses.py
@@ -234,7 +234,7 @@ def _create_topple_graph(cvh_mesh, com):
# Compute static probabilities of landing on each face
for i, tri in enumerate(cvh_mesh.triangles):
prob = _compute_s... | Fix networkx <I> issue in stable pose computation | py |
diff --git a/atomic_reactor/pulp_util.py b/atomic_reactor/pulp_util.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/pulp_util.py
+++ b/atomic_reactor/pulp_util.py
@@ -272,9 +272,9 @@ class LockedPulpRepository(object):
if counter == self.retry_times:
# This was the last chance;... | Fix logger for LockedPulpRepository Some of the log messages were using logging, instead of logger. This doesn't cause a python error because logging is actually valid. But there are no handlers attached to it so the messages go nowhere. By using logger, the code uses the module level logger which contains the correct... | py |
diff --git a/mail_deduplicate/mail.py b/mail_deduplicate/mail.py
index <HASH>..<HASH> 100644
--- a/mail_deduplicate/mail.py
+++ b/mail_deduplicate/mail.py
@@ -44,6 +44,9 @@ class Mail:
# Global config.
self.conf = conf
+ def __repr__(self):
+ return "<Mail {!r}>".format(self.mail_id)
+
... | Use more information string to repr mails. | py |
diff --git a/sos/report/plugins/stratis.py b/sos/report/plugins/stratis.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/stratis.py
+++ b/sos/report/plugins/stratis.py
@@ -24,8 +24,11 @@ class Stratis(Plugin, RedHatPlugin):
'pool list',
'filesystem list',
'blockdev list',
+... | [stratis] Collect key list and report engine Required for troubleshooting Stratis-engine v. <I>. Resolves: #<I> Closes: #<I> | py |
diff --git a/docs/tools/buildmodref.py b/docs/tools/buildmodref.py
index <HASH>..<HASH> 100755
--- a/docs/tools/buildmodref.py
+++ b/docs/tools/buildmodref.py
@@ -35,7 +35,7 @@ def writeapi(package, outdir, source_version, other_defines=True):
# are not (re)generated. This avoids automatic generation of documentat... | RF: Use Version since we are pep<I> compliant | py |
diff --git a/looper/models.py b/looper/models.py
index <HASH>..<HASH> 100644
--- a/looper/models.py
+++ b/looper/models.py
@@ -911,7 +911,7 @@ class Project(AttributeDict):
_LOGGER.debug(
"New row: {}, {}".format(row, merge_rows))
... | finish indexing method update to avoid deprecation warning | py |
diff --git a/rest_framework_gis/fields.py b/rest_framework_gis/fields.py
index <HASH>..<HASH> 100644
--- a/rest_framework_gis/fields.py
+++ b/rest_framework_gis/fields.py
@@ -4,7 +4,6 @@ from collections import OrderedDict
from django.contrib.gis.geos import GEOSGeometry, GEOSException
from django.contrib.gis.gdal im... | Removed six dependency (#<I>) | py |
diff --git a/py/testdir_single_jvm/test_GLM_trisum.py b/py/testdir_single_jvm/test_GLM_trisum.py
index <HASH>..<HASH> 100644
--- a/py/testdir_single_jvm/test_GLM_trisum.py
+++ b/py/testdir_single_jvm/test_GLM_trisum.py
@@ -32,7 +32,7 @@ class Basic(unittest.TestCase):
print "\nUsing random seed:", SEED
... | fit in <I> GB dram (heap <I>GB) | py |
diff --git a/pyperf/_collect_metadata.py b/pyperf/_collect_metadata.py
index <HASH>..<HASH> 100644
--- a/pyperf/_collect_metadata.py
+++ b/pyperf/_collect_metadata.py
@@ -92,7 +92,7 @@ def collect_python_metadata(metadata):
metadata['timer'] = ('%s, resolution: %s'
% (info.impleme... | Check if time has clock attribute, fixes #<I> This was removed in python <I> and we avoid throwing trace this way. | py |
diff --git a/pyfolio/perf_attrib.py b/pyfolio/perf_attrib.py
index <HASH>..<HASH> 100644
--- a/pyfolio/perf_attrib.py
+++ b/pyfolio/perf_attrib.py
@@ -110,10 +110,12 @@ def perf_attrib(returns, positions, factor_returns, factor_loadings,
warnings.warn("Could not find factor loadings for the following "
... | MAINT: add missing stock allocation to warnings | py |
diff --git a/sos/plugins/ebpf.py b/sos/plugins/ebpf.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/ebpf.py
+++ b/sos/plugins/ebpf.py
@@ -11,7 +11,8 @@ import json
class Ebpf(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
-
+ """eBPF tool
+ """
plugin_name = 'ebpf'
profiles = ('system', 'kerne... | [ebpf] set class docstring The plugin does not set a class level docstring, causing it to dump the Plugin base-class documentation into --list-plugins: ebpf inactive This is the base class for sosreport plugins. Plugins should subclass this and set the class variables where applicable. [...]... | 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
setup(
name='py-msm',
- version='0.4.1',
+ version='0.4.2',
packages=['py_msm'],
install_requires=['GitPython', 'typing'],
url='https://github.com/MycroftA... | Increment version to <I> | py |
diff --git a/magento/catalog.py b/magento/catalog.py
index <HASH>..<HASH> 100644
--- a/magento/catalog.py
+++ b/magento/catalog.py
@@ -872,3 +872,17 @@ class Inventory(API):
[product, data]
)
)
+
+ def update_multi(self, product_data_pairs):
+ """
+ It is ... | Add api for bulk update of inventory | py |
diff --git a/tests/integration/test_long_project.py b/tests/integration/test_long_project.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_long_project.py
+++ b/tests/integration/test_long_project.py
@@ -56,8 +56,9 @@ def test_repeating_export_strictly_enfores_format(long_project):
def test_import_expor... | :joy: Un-simplify repeat form integration test | py |
diff --git a/examples/pitch_morph_to_pitch_contour.py b/examples/pitch_morph_to_pitch_contour.py
index <HASH>..<HASH> 100644
--- a/examples/pitch_morph_to_pitch_contour.py
+++ b/examples/pitch_morph_to_pitch_contour.py
@@ -12,6 +12,7 @@ few sample points, the morph process will fail.
@author: Tim
'''
+import os
fr... | BUGFIX: Path reference in example file | py |
diff --git a/datasize/__datasize__.py b/datasize/__datasize__.py
index <HASH>..<HASH> 100644
--- a/datasize/__datasize__.py
+++ b/datasize/__datasize__.py
@@ -118,7 +118,7 @@ class DataSize(__DataSize_super__):
value = raw_number * multiple
if isinstance(value, float):
value = int(cei... | change superclass dunder to better match classname | py |
diff --git a/pyprophet/version.py b/pyprophet/version.py
index <HASH>..<HASH> 100644
--- a/pyprophet/version.py
+++ b/pyprophet/version.py
@@ -1 +1 @@
-version = (0, 11, 0)
\ No newline at end of file
+version = (0, 11, 1)
\ No newline at end of file | [RELEASE] v <I> new version for fixing out of sync version on pypi | py |
diff --git a/saltcontainers/factories.py b/saltcontainers/factories.py
index <HASH>..<HASH> 100644
--- a/saltcontainers/factories.py
+++ b/saltcontainers/factories.py
@@ -93,7 +93,8 @@ class MasterSaltConfigFactory(SaltConfigFactory):
'file_client': 'local',
'file_roots... | Use pillar data for master highstate | py |
diff --git a/abydos/corpus/_unigram_corpus.py b/abydos/corpus/_unigram_corpus.py
index <HASH>..<HASH> 100644
--- a/abydos/corpus/_unigram_corpus.py
+++ b/abydos/corpus/_unigram_corpus.py
@@ -35,6 +35,9 @@ from math import log1p
__all__ = ['UnigramCorpus']
+def _dd_default(*args):
+ return 0, 0
+
class UnigramC... | made picklable (first draft) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@ setup(
'calibtools-undistort = calibtools.undistort:start',
]
},
- licence = 'MIT',
+ license = 'MIT',
install_requires = [
'moviepy', 'numpy', 'docopt',
], | setup.py: licence -> license | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -81,7 +81,7 @@ with open(path.join(here, 'README.md'), encoding='utf-8') as f:
setup(
name='certipy',
- version='0.1.0',
+ version='0.1.1',
description='Utility to create and sign CAs and certificates',
... | Bump the version to <I> | py |
diff --git a/drf_auto_endpoint/utils.py b/drf_auto_endpoint/utils.py
index <HASH>..<HASH> 100644
--- a/drf_auto_endpoint/utils.py
+++ b/drf_auto_endpoint/utils.py
@@ -97,7 +97,10 @@ def get_field_dict(field, serializer, translated_fields=None, fields_annotation=
pass
if model_field is not None:
- ... | :bug: not all model fields have a verbose_name | py |
diff --git a/voluptuous.py b/voluptuous.py
index <HASH>..<HASH> 100644
--- a/voluptuous.py
+++ b/voluptuous.py
@@ -83,12 +83,13 @@ Validate like so:
"""
import re
+import string
import types
import urlparse
__author__ = 'Alec Thomas <alec@swapoff.org>'
-__version__ = '0.3.2'
+__version__ = '0.3.3'
class... | Add a bunch of string transforms. | py |
diff --git a/imagemounter/volume.py b/imagemounter/volume.py
index <HASH>..<HASH> 100644
--- a/imagemounter/volume.py
+++ b/imagemounter/volume.py
@@ -470,7 +470,8 @@ class Volume(object):
fsdesc = fsdesc.lower()
# for the purposes of this function, logical volume is nothing, and 'pr... | Exclude raid volume from being a useful raid volume | py |
diff --git a/snmposter/snmposter.py b/snmposter/snmposter.py
index <HASH>..<HASH> 100755
--- a/snmposter/snmposter.py
+++ b/snmposter/snmposter.py
@@ -100,9 +100,11 @@ class SNMPoster:
for line in snmpwalk:
line = line.rstrip()
+ # Typed match.
match = re.search(r'^([^ ]+... | fix handling of "untyped" OIDs If OID without explicit type is surrounded by quotes, it is assumed a string. Otherwise it is assumed an integer. | py |
diff --git a/niworkflows/engine/workflows.py b/niworkflows/engine/workflows.py
index <HASH>..<HASH> 100644
--- a/niworkflows/engine/workflows.py
+++ b/niworkflows/engine/workflows.py
@@ -38,7 +38,6 @@ class LiterateWorkflow(pe.Workflow):
for node in pe.utils.topological_sort(self._graph)[0]:
if ... | [skip ci] remove undesired line from sloppy merge | py |
diff --git a/simplesqlite/core.py b/simplesqlite/core.py
index <HASH>..<HASH> 100644
--- a/simplesqlite/core.py
+++ b/simplesqlite/core.py
@@ -18,6 +18,7 @@ from mbstrdecoder import MultiByteStrDecoder
from sqliteschema import SQLITE_SYSTEM_TABLES, SQLiteSchemaExtractor
from tabledata import TableData
+from ._commo... | Add fetch_data_types method | py |
diff --git a/nosedjango/__init__.py b/nosedjango/__init__.py
index <HASH>..<HASH> 100644
--- a/nosedjango/__init__.py
+++ b/nosedjango/__init__.py
@@ -1,2 +1,2 @@
# Just a place holder for Windows.
-__version__ = (0, 7)
+__version__ = (1, 0, '0dev') | Bumped the version to <I>dev. Why not? | py |
diff --git a/digitalocean/baseapi.py b/digitalocean/baseapi.py
index <HASH>..<HASH> 100644
--- a/digitalocean/baseapi.py
+++ b/digitalocean/baseapi.py
@@ -4,8 +4,8 @@ class BaseAPI(object):
"""
Basic api class for
"""
- self.token = ""
- self.call_response = None
+ token = ""
+ call_respo... | Defining properties in the right place/method. | py |
diff --git a/src/hunter.py b/src/hunter.py
index <HASH>..<HASH> 100644
--- a/src/hunter.py
+++ b/src/hunter.py
@@ -432,7 +432,7 @@ class ColorStreamAction(Action):
@stream.setter
def stream(self, value):
isatty = getattr(value, 'isatty', None)
- if isatty and isatty():
+ if isatty and i... | Don't use coloring for Jython colorama doesn't work on Jython, because there's no proper ctypes support for Jython. ctypes is used by colorama for some Windows API calls. The output on Jython will contain the unstripped ANSI codes, which makes it incomprehensible. | py |
diff --git a/src/armet/resources/attributes.py b/src/armet/resources/attributes.py
index <HASH>..<HASH> 100644
--- a/src/armet/resources/attributes.py
+++ b/src/armet/resources/attributes.py
@@ -292,7 +292,7 @@ class _TemporalAttribute(object):
raise ValueError('Invalid date/time or in an invalid format.')
... | Fix mistake with date/time attributes. | py |
diff --git a/src/rinoh/backend/pdf/util.py b/src/rinoh/backend/pdf/util.py
index <HASH>..<HASH> 100644
--- a/src/rinoh/backend/pdf/util.py
+++ b/src/rinoh/backend/pdf/util.py
@@ -45,4 +45,4 @@ class FIFOBuffer(object):
return out
def close(self):
- self._source.close()
+ self._source.flush... | PDF backend: fix writing of parsed files This doesn't seem to break other things. Not sure why the source was closed before. Is it even necessary to flush the source? | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.