<commit_before># coding: utf-8

require 'spec_helper'

RSpec.describe TTY::ProgressBar, '.complete?' do
  let(:output) { StringIO.new('', 'w+') }

  it "checks for completness" do
    progress = TTY::ProgressBar.new("[;bar]", output: output, total: 3)
    completes = []
    3.times do
      completes << progress.complete?
      progress.advance
    end
    completes << progress.complete?<commit_msg>Fix typo.<commit_after># coding: utf-8

require 'spec_helper'

RSpec.describe TTY::ProgressBar, '.complete?' do
  let(:output) { StringIO.new('', 'w+') }

  it "checks for completness" do
    progress = TTY::ProgressBar.new("[:bar]", output: output, total: 3)
    completes = []
    3.times do
      completes << progress.complete?
      progress.advance
    end
    completes << progress.complete?
{'fraction_non_alphanumeric': 0.15125, 'fraction_numerical': 0.0075, 'mean_word_length': 3.577142857142857, 'pattern_counts': {'":': 0, '<': 11, '<?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': '4862217', 'n_tokens_mistral': 267, 'n_tokens_neox': 257, 'n_words': 64}