<commit_before>class ClassLoaderContext
  def initialize(classloader)
    @classloader = classloader
  end

  def name(name = nil)
    @name = name unless name.nil?
    @name
  end

  def call
    @execute_block.call
  end

  def execute(&block)
    @execute_block = block
  end
end

class ClassLoader
  def initialize(context = nil)
    @context = context || ClassLoaderContext
    @loaded_files = {}
  end

  def load_file(filename)
    file_module = get_file_module filename

    if file_module.nil?
      return nil
    end

    @loaded_files[filename] = file_module
  end

  def unload_file(filename)<commit_msg>Define instance variables in initialize and only execute block if not nil<commit_after>class ClassLoaderContext
  def initialize(classloader)
    @classloader = classloader

    @name = nil
    @execute_block = nil
  end

  def name(name = nil)
    @name = name unless name.nil?
    @name
  end

  def call
    @execute_block.call unless @execute_block.nil?
  end

  def execute(&block)
    @execute_block = block
  end
end

class ClassLoader
  def initialize(context = nil)
    @context = context || ClassLoaderContext
    @loaded_files = {}
  end

  def load_file(filename)
    file_module = get_file_module filename

    if file_module.nil?
      return nil
    end

    @loaded_files[filename] = file_module
  end

  def unload_file(filename)
{'fraction_non_alphanumeric': 0.06969919295671313, 'fraction_numerical': 0.0, 'mean_word_length': 3.184049079754601, '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': '3053706', 'n_tokens_mistral': 432, 'n_tokens_neox': 414, 'n_words': 118}