<commit_before>module Setup
  class CrossCollectionAuthor
    include ReqRejValidator
    include CenitUnscoped

    build_in_data_type.referenced_by(:email)

    field :name, type: String
    field :email, type: String

    embedded_in :shared_collection, class_name: Setup::CrossSharedCollection.to_s, inverse_of: :authors

    validates_presence_of :email
    validates_length_of :name, maximum: 255
    validates_format_of :email, with: /\A[a-z]+@[a-z]+(\.[a-z]+)+\Z/i

    def label
      "#{name} (#{email})"
    end
  end
end<commit_msg>Relaxing collections authors email validation<commit_after>module Setup
  class CrossCollectionAuthor
    include ReqRejValidator
    include CenitUnscoped

    build_in_data_type.referenced_by(:email)

    field :name, type: String
    field :email, type: String

    embedded_in :shared_collection, class_name: Setup::CrossSharedCollection.to_s, inverse_of: :authors

    validates_presence_of :email
    validates_length_of :name, maximum: 255

    def label
      "#{name} (#{email})"
    end
  end
end
{'fraction_non_alphanumeric': 0.09238095238095238, 'fraction_numerical': 0.005714285714285714, 'mean_word_length': 4.101941747572815, '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': '4321877', 'n_tokens_mistral': 354, 'n_tokens_neox': 337, 'n_words': 79}