<commit_before>module Dlibhydra
  # DC rights holder and license
  # TODO: align with Hydra / CC
  module DcRights
    extend ActiveSupport::Concern

    included do
      # Align with https://wiki.duraspace.org/display/hydra/Rights+Metadata+Recommendation
      # Same as cc:attributionName.
      property :rights_holder, predicate: ::RDF::Vocab::DC.rightsHolder,
                               multiple: true do |index|
        index.as :stored_searchable
      end

      # Align with https://wiki.duraspace.org/display/hydra/Rights+Metadata+Recommendation
      property :rights, predicate: ::RDF::Vocab::EDM.rights,
               multiple: true do |index|
        index.as :stored_searchable
      end

      # Same as cc:license.
      # DO NOT USE<commit_msg>make right and rights holder single<commit_after>module Dlibhydra
  # DC rights holder and license
  # TODO: align with Hydra / CC
  module DcRights
    extend ActiveSupport::Concern

    included do
      # Align with https://wiki.duraspace.org/display/hydra/Rights+Metadata+Recommendation
      # Same as cc:attributionName.
      property :rights_holder, predicate: ::RDF::Vocab::DC.rightsHolder,
                               multiple: false do |index|
        index.as :stored_searchable
      end

      # Align with https://wiki.duraspace.org/display/hydra/Rights+Metadata+Recommendation
      property :rights, predicate: ::RDF::Vocab::EDM.rights,
               multiple: false do |index|
        index.as :stored_searchable
      end

      # Same as cc:license.
      # DO NOT USE
{'fraction_non_alphanumeric': 0.08974358974358974, 'fraction_numerical': 0.0, 'mean_word_length': 2.5639269406392695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1786931', 'n_tokens_mistral': 492, 'n_tokens_neox': 457, 'n_words': 114}