<commit_before>class Autoload
  attr_reader :name
  attr_reader :scope
  attr_reader :path

  def initialize(name, scope, path)
    @name = name
    @scope = scope
    @path = path
    Autoload.add(self)
  end

  def call
    Autoload.remove(path)
    require(path)
    scope.const_get(name)
  end

  def discard
    scope.__send__(:remove_const, name)<commit_msg>Remove redundant call to Autoload.remove<commit_after>class Autoload
  attr_reader :name
  attr_reader :scope
  attr_reader :path

  def initialize(name, scope, path)
    @name = name
    @scope = scope
    @path = path
    Autoload.add(self)
  end

  def call
    require(path)
    scope.const_get(name)
  end

  def discard
    scope.__send__(:remove_const, name)
{'fraction_non_alphanumeric': 0.0850480109739369, 'fraction_numerical': 0.0, 'mean_word_length': 3.1954022988505746, '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': '4975576', 'n_tokens_mistral': 259, 'n_tokens_neox': 247, 'n_words': 62}