<commit_before>module Figurine
  module DynamicSubclasser

    def self.create(klass, name)
      collaborator = Class.new(klass)
      collaborator.instance_eval do
        @name = name
        
        define_method :class do
          collaborator
        end

        def self.model_name
          ActiveModel::Name.new(self, nil, name)
        end
      end
      klass.const_set("#{name}_#{collaborator.hash}", collaborator)
    end
  end
end<commit_msg>Use @name instead of name<commit_after>module Figurine
  module DynamicSubclasser

    def self.create(klass, name)
      collaborator = Class.new(klass)
      collaborator.instance_eval do
        @name = name
        
        define_method :class do
          collaborator
        end

        def self.model_name
          ActiveModel::Name.new(self, nil, @name)
        end
      end
      klass.const_set("#{name}_#{collaborator.hash}", collaborator)
    end
  end
end
{'fraction_non_alphanumeric': 0.07931404072883172, 'fraction_numerical': 0.0, 'mean_word_length': 2.166101694915254, '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': '7569518', 'n_tokens_mistral': 277, 'n_tokens_neox': 282, 'n_words': 63}