<commit_before>module Noid::ActiveRecord
   module Provider
     def self.included base
       base.send :attr_accessor, :identifier_field
       base.send :attr_accessor, :minter
       base.send :before_create, :mint_identifier
     end

     def minter
       self.class.minter
     end

     def mint_identifier
       self.send "#{@identifier_field}=", self.minter.mint
     end

  end
end
<commit_msg>or not..<commit_after>module Noid::ActiveRecord
   module Provider
     def self.included base
       base.extend(ClassMethods)
       base.send :before_create, :mint_identifier
     end

     module ClassMethods
       def identifier_field value
         @@identifier_field = value
       end

       def minter value
         @@minter = value
       end
     end

     def minter
       @@minter
     end

     def mint_identifier
       self.send "#{@@identifier_field}=", self.minter.mint
     end

  end
end

{'fraction_non_alphanumeric': 0.07173913043478261, 'fraction_numerical': 0.0, 'mean_word_length': 2.2202797202797204, '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': '2744506', 'n_tokens_mistral': 283, 'n_tokens_neox': 269, 'n_words': 69}