<commit_before>class Run < ActiveRecord::Base
  has_many :read_groups, dependent: :destroy

  validates_presence_of :name

  def read_groups_count
    read_groups.size
  end

  def read_groups_data
    read_groups.pluck(
      :library,
      :barcode,
      :sample,
      :project,
      :library_prep_method,
      :shearing_method,
      :genome,
      :contact_email,
      :notebook_location,
      :pre_denaturation_buffer
    ).flatten.uniq.join(',')
  end
end<commit_msg>required field for read_group<commit_after>class Run < ActiveRecord::Base
  has_many :read_groups, dependent: :destroy

  validates_presence_of :name

  def read_groups_count
    read_groups.size
  end

  def read_groups_data
    read_groups.pluck(
      :library,
      :barcode,
      :sample,
      :project,
      :library_prep_method,
      :shearing_method,
      :contact_email,
      :notebook_location,
      :pre_denaturation_buffer
    ).flatten.uniq.join(',')
  end
end
{'fraction_non_alphanumeric': 0.08532778355879292, 'fraction_numerical': 0.0, 'mean_word_length': 3.0251046025104604, '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': '6840506', 'n_tokens_mistral': 332, 'n_tokens_neox': 320, 'n_words': 59}