<commit_before>module InstanceCounter
  
  def self.included(base)
    base.extend ClassMethods
    base.send :include, InstanceMethods
  end

  module ClassMethods
    def instances
      self.class.class_variable_get :@@instances
    end 
  end

  protected
  module InstanceMethods
    def register_instance
      value = self.class.class_variable_get :@@instances
      value += 1
      self.class.class_variable_set :@@instances, value
    end
  end
end<commit_msg>fix bug into class methods #instances in module InstanceCounter<commit_after>module InstanceCounter
  
  def self.included(base)
    base.extend ClassMethods
    base.send :include, InstanceMethods
  end

  module ClassMethods
    def instances
      class_variable_get :@@instances
    end 
  end

  protected
  module InstanceMethods
    def register_instance
      value = self.class.class_variable_get :@@instances
      value += 1
      self.class.class_variable_set :@@instances, value
    end
  end
end
{'fraction_non_alphanumeric': 0.05822267620020429, 'fraction_numerical': 0.0020429009193054137, 'mean_word_length': 3.242424242424242, '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': '1658315', 'n_tokens_mistral': 284, 'n_tokens_neox': 280, 'n_words': 75}