<commit_before>require 'spec_helper'
require 'rspec/core/formatters/base_text_formatter'

RSpec.describe RSpec::Core::Formatters::BaseTextFormatter do
  include FormatterSupport

  context "when closing the formatter", :isolated_directory => true do
    it 'does not close an already closed output stream' do
      output = File.new("./output_to_close", "w")
      formatter = described_class.new(output)
      output.close

      expect { formatter.close(RSpec::Core::Notifications::NullNotification) }.not_to raise_error
    end
  end
<commit_msg>spec file encoding declaration for 1.9.2 / 1.9.3<commit_after># encoding: utf-8
require 'spec_helper'
require 'rspec/core/formatters/base_text_formatter'

RSpec.describe RSpec::Core::Formatters::BaseTextFormatter do
  include FormatterSupport

  context "when closing the formatter", :isolated_directory => true do
    it 'does not close an already closed output stream' do
      output = File.new("./output_to_close", "w")
      formatter = described_class.new(output)
      output.close

      expect { formatter.close(RSpec::Core::Notifications::NullNotification) }.not_to raise_error
    end
  end

{'fraction_non_alphanumeric': 0.09904430929626412, 'fraction_numerical': 0.006081668114682885, 'mean_word_length': 4.565217391304348, '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': '132572', 'n_tokens_mistral': 351, 'n_tokens_neox': 336, 'n_words': 87}