<commit_before>from annotypes import add_call_types

from malcolm.modules import builtin, scanning
from ..infos import ControllerInfo


class BrickPart(builtin.parts.ChildPart):
    def __init__(self, name, mri):
        # type: (builtin.parts.APartName, builtin.parts.AMri) -> None
        super(BrickPart, self).__init__(name, mri, initial_visibility=True)<commit_msg>Changed BrickPart so it can take intial visibility as a parameter but it defaults to true This fixes a breaking issue where yaml configs made for earlier versions fail to load if they specify an intial visibility for the part<commit_after>from annotypes import add_call_types

from malcolm.modules import builtin, scanning
from ..infos import ControllerInfo


class BrickPart(builtin.parts.ChildPart):
    def __init__(self, name, mri, initial_visibility=True):
        # type: (builtin.parts.APartName, builtin.parts.AMri) -> None
        super(BrickPart, self).__init__(name, mri, initial_visibility)
{'fraction_non_alphanumeric': 0.07716049382716049, 'fraction_numerical': 0.0, 'mean_word_length': 4.8969696969696965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7543917', 'n_tokens_mistral': 284, 'n_tokens_neox': 277, 'n_words': 93}