<commit_before>if defined? Motion::Project::App
  Motion::Project::App.setup do |config|
    # Inject helpers that provide a (Mini)?Test::Unit adaptor
    __dir__ = File.dirname(File.realpath(__FILE__))
    helpers = Dir[File.join(__dir__, 'kosher_bacon', 'adaptor.rb')]
    # Place kosher_bacon helpers immediately before the app's spec files.
    # An app's spec files are immediately after RubyMotion's.
    before_app_specs = config.spec_files.index { |file| !file.start_with?(config.motiondir) }
    config.spec_files.insert(before_app_specs, *helpers)
  end
else
  raise 'This file must be required within a RubyMotion project Rakefile.'
end
<commit_msg>Set env variable for test/unit style output<commit_after>if defined? Motion::Project::App
  Motion::Project::App.setup do |config|
    # Inject helpers that provide a (Mini)?Test::Unit adaptor
    __dir__ = File.dirname(File.realpath(__FILE__))
    helpers = Dir[File.join(__dir__, 'kosher_bacon', 'adaptor.rb')]
    # Place kosher_bacon helpers immediately before the app's spec files.
    # An app's spec files are immediately after RubyMotion's.
    before_app_specs = config.spec_files.index { |file| !file.start_with?(config.motiondir) }
    config.spec_files.insert(before_app_specs, *helpers)
    ENV['output'] = 'test_unit'
  end
else
  raise 'This file must be required within a RubyMotion project Rakefile.'
end

{'fraction_non_alphanumeric': 0.10709117221418235, 'fraction_numerical': 0.0, 'mean_word_length': 4.7866108786610875, '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': '1261521', 'n_tokens_mistral': 456, 'n_tokens_neox': 438, 'n_words': 120}