<commit_before># Require the platform specific functionality
if Gem.win_platform?
    require_relative 'platform/windows'
else
    require_relative 'platform/ansi'
end


# Implements cross-platform functionality for working with a console window to
# provide color and progress-bar functionality.
module Console

    attr_reader :status, :status_enabled


    # Mutex used to ensure we don't intermingle output from multiple threads
    @lock = Mutex.new


    # Returns the width of the console window<commit_msg>Silence warnings for uninitialized instance variable<commit_after># Require the platform specific functionality
if Gem.win_platform?
    require_relative 'platform/windows'
else
    require_relative 'platform/ansi'
end


# Implements cross-platform functionality for working with a console window to
# provide color and progress-bar functionality.
module Console

    # Mutex used to ensure we don't intermingle output from multiple threads
    @lock = Mutex.new
    # Holds the current status content (if any)
    @status = nil


    # Returns the width of the console window
{'fraction_non_alphanumeric': 0.04954128440366973, 'fraction_numerical': 0.0, 'mean_word_length': 4.2451923076923075, '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': '7211353', 'n_tokens_mistral': 279, 'n_tokens_neox': 265, 'n_words': 118}