<commit_before># -*- coding: utf-8 -*-

"""Test colors."""

#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------

import numpy as np

from .._color import _random_color, _is_bright, _random_bright_color
from ..testing import show_colored_canvas


#------------------------------------------------------------------------------
# Tests
#------------------------------------------------------------------------------

def test_random_color():
    color = _random_color()
    show_colored_canvas(color)

    assert _is_bright(_random_bright_color())
<commit_msg>Removed unused import.<commit_after># -*- coding: utf-8 -*-

"""Test colors."""

#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------

from .._color import _random_color, _is_bright, _random_bright_color
from ..testing import show_colored_canvas


#------------------------------------------------------------------------------
# Tests
#------------------------------------------------------------------------------

def test_random_color():
    color = _random_color()
    show_colored_canvas(color)

    assert _is_bright(_random_bright_color())

{'fraction_non_alphanumeric': 0.5302013422818792, 'fraction_numerical': 0.0014914243102162564, 'mean_word_length': 0.7727873183619551, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1528850', 'n_tokens_mistral': 260, 'n_tokens_neox': 247, 'n_words': 54}