<commit_before># frozen_string_literal: true

module Graph
  ##
  # A release
  #
  class Release < ApplicationRecord
    include Identifiable
    include Refreshable

    property :name,
             type: String

    property :released_at,
             type: DateTime

    validates :name,
              presence: true

    validates :released_at,
              presence: true

    has_many :in,
             :raters,
             type: :rates,
             model_class: "Graph::User",
             unique: { on: :uuid }

    has_many :in,
             :artists,
             type: :appears_on,
             model_class: "Graph::Artist",
             unique: { on: :id }

    has_one :in,
            :group,
            type: :released_by,
            model_class: "Graph::Group",
            unique: { on: :id }
  end
end<commit_msg>Release has many groups<commit_after># frozen_string_literal: true

module Graph
  ##
  # A release
  #
  class Release < ApplicationRecord
    include Identifiable
    include Refreshable

    property :name,
             type: String

    property :released_at,
             type: DateTime

    validates :name,
              presence: true

    validates :released_at,
              presence: true

    has_many :in,
             :raters,
             type: :rates,
             model_class: "Graph::User",
             unique: { on: :uuid }

    has_many :in,
             :artists,
             type: :appears_on,
             model_class: "Graph::Artist",
             unique: { on: :id }

    has_many :in,
             :group,
             type: :released_by,
             model_class: "Graph::Group",
             unique: { on: :id }
  end
end
{'fraction_non_alphanumeric': 0.08999407933688573, 'fraction_numerical': 0.0, 'mean_word_length': 1.5223880597014925, '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': '1177838', 'n_tokens_mistral': 496, 'n_tokens_neox': 477, 'n_words': 126}