<commit_before>require 'rspec/core/formatters/base_formatter'

class MountainBerryFields
  class Test
    class RSpec
      class Formatter < ::RSpec::Core::Formatters::BaseFormatter
        def example_failed(example)
          require 'json'
          print JSON.dump 'full_description' => example.full_description,
                          'message'          => example.exception.message,
                          'backtrace'        => format_backtrace(example.exception.backtrace, example)
        end
      end
    end
  end
end
<commit_msg>Move require statement to top of file<commit_after>require 'rspec/core/formatters/base_formatter'
require 'json'

class MountainBerryFields
  class Test
    class RSpec
      class Formatter < ::RSpec::Core::Formatters::BaseFormatter
        def example_failed(example)
          print JSON.dump 'full_description' => example.full_description,
                          'message'          => example.exception.message,
                          'backtrace'        => format_backtrace(example.exception.backtrace, example)
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.07927927927927927, 'fraction_numerical': 0.0, 'mean_word_length': 2.2772861356932155, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '5520001', 'n_tokens_mistral': 288, 'n_tokens_neox': 283, 'n_words': 64}