<commit_before>require_relative 'helper'

module RestoreBundledWith
  class TestTrim < Test::Unit::TestCase
    sub_test_case '.trim' do
      test 'v1.9 lock file' do
        actual_lock_file = File.read('./test/fixtures/v1-9-example1.lock')
        assert do
          Trim.new(actual_lock_file).trim == actual_lock_file
        end
      end
      test 'v1.10 lock file' do
        actual_lock_file = File.read('./test/fixtures/v1-10-example1.lock')
        expected_trimmed_lock_file = File.read('./test/fixtures/v1-10-example1-trimmed.lock')
        assert do
          Trim.new(actual_lock_file).trim == expected_trimmed_lock_file
        end
      end
    end
  end
end<commit_msg>chore(trim): shorten variable name<commit_after>require_relative 'helper'

module RestoreBundledWith
  class TestTrim < Test::Unit::TestCase
    sub_test_case '.trim' do
      test 'v1.9 lock file' do
        lock_file = File.read('./test/fixtures/v1-9-example1.lock')
        assert do
          Trim.new(lock_file).trim == lock_file
        end
      end
      test 'v1.10 lock file' do
        lock_file = File.read('./test/fixtures/v1-10-example1.lock')
        trimmed = File.read('./test/fixtures/v1-10-example1-trimmed.lock')
        assert do
          Trim.new(lock_file).trim == trimmed
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1095166163141994, 'fraction_numerical': 0.02416918429003021, 'mean_word_length': 2.4326424870466323, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3052360', 'n_tokens_mistral': 449, 'n_tokens_neox': 434, 'n_words': 84}