<commit_before># frozen_string_literal: true

##
# Allows a node to be updated from a data source
#
module Identifiable
  extend ActiveSupport::Concern

  included do
    property :musicbrainz_key,
             type: String

    property :metal_archives_key,
             type: String

    validates :musicbrainz_key,
              uniqueness: true,
              allow_blank: true

    validates :metal_archives_key,
              uniqueness: true,
              allow_blank: true
  end
end
<commit_msg>MB/MA keys are integers<commit_after># frozen_string_literal: true

##
# Allows a node to be updated from a data source
#
module Identifiable
  extend ActiveSupport::Concern

  included do
    property :musicbrainz_key,
             type: Integer

    property :metal_archives_key,
             type: Integer

    validates :musicbrainz_key,
              uniqueness: true,
              allow_blank: true

    validates :metal_archives_key,
              uniqueness: true,
              allow_blank: true
  end
end

{'fraction_non_alphanumeric': 0.05392156862745098, 'fraction_numerical': 0.0, 'mean_word_length': 2.282958199356913, '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': '6594555', 'n_tokens_mistral': 305, 'n_tokens_neox': 285, 'n_words': 85}