<commit_before>require 'minitest_helper'

module CollectionJsonSerializer
  class Serializer
    class TestHref < Minitest::Test
      def setup
        @user = User.new(name: "<NAME>", email: "<EMAIL>")
        @user_serializer = UserSerializer.new(@user)
      end

      def test_href_object
        expected = [{self: "/users/1", collection: "/users"}]
        assert_equal expected, @user_serializer.class.href
      end

      def test_that_only_one_href_value_is_passed_to_builder
        multiple_href_serializer = MultipleHrefSerializer.new(@user)
        assert_equal %w(/a /b /c), multiple_href_serializer.class.href
        assert_equal "/a", multiple_href_serializer.href
      end
    end
  end
end<commit_msg>style fix<commit_after>require 'minitest_helper'

module CollectionJsonSerializer
  class Serializer
    class TestHref < Minitest::Test
      def setup
        @user = User.new(name: "<NAME>", email: "<EMAIL>")
        @user_serializer = UserSerializer.new(@user)
      end

      def test_href_object
        expected = [{ self: "/users/1", collection: "/users" }]
        assert_equal expected, @user_serializer.class.href
      end

      def test_that_only_one_href_value_is_passed_to_builder
        multiple_href_serializer = MultipleHrefSerializer.new(@user)
        assert_equal %w(/a /b /c), multiple_href_serializer.class.href
        assert_equal "/a", multiple_href_serializer.href
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.09405255878284924, 'fraction_numerical': 0.0013831258644536654, 'mean_word_length': 3.1580459770114944, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '5259504', 'n_tokens_mistral': 445, 'n_tokens_neox': 438, 'n_words': 92}