<commit_before>"""RGBA Color."""
from typing import Tuple, Union, List

from mpf.core.rgb_color import RGBColor


class RGBAColor(RGBColor):

    """RGB Color with alpha channel."""

    def __init__(self, color: Union[RGBColor, str, List[int], Tuple[int, int, int], Tuple[int, int, int, int],
                                    List[int]]) -> None:
        """Initialise RGBA color."""
        if isinstance(color, (tuple, list)) and len(color) == 4:
            self.opacity = color[3]
            super().__init__((color[0], color[1], color[2]))
        else:
            self.opacity = 255
            super().__init__(color)     # type: ignore

    def __iter__(self):
        """Return iterator."""
        return iter([self._color[0], self._color[1], self._color[2], self.opacity])

    def __str__(self):
        """Return string representation."""
        return "{} Opacity: {}".format(self._color, self.opacity)
<commit_msg>remove duplicate annotation<commit_after>"""RGBA Color."""
from typing import Tuple, Union, List

from mpf.core.rgb_color import RGBColor


class RGBAColor(RGBColor):

    """RGB Color with alpha channel."""

    def __init__(self, color: Union[RGBColor, str, Tuple[int, int, int], Tuple[int, int, int, int], List[int]]) -> None:
        """Initialise RGBA color."""
        if isinstance(color, (tuple, list)) and len(color) == 4:
            self.opacity = color[3]
            super().__init__((color[0], color[1], color[2]))
        else:
            self.opacity = 255
            super().__init__(color)     # type: ignore

    def __iter__(self):
        """Return iterator."""
        return iter([self._color[0], self._color[1], self._color[2], self.opacity])

    def __str__(self):
        """Return string representation."""
        return "{} Opacity: {}".format(self._color, self.opacity)

{'fraction_non_alphanumeric': 0.15932572050027188, 'fraction_numerical': 0.011963023382272975, 'mean_word_length': 2.7096774193548385, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '774399', 'n_tokens_mistral': 558, 'n_tokens_neox': 533, 'n_words': 147}