<commit_before>class BackdropStub
  def initialize(fixture_loader, list_of_configs)
    @fixture_loader = fixture_loader
    @stub_configs = list_of_configs
  end

  def response_for_params(params)
    fixture = @stub_configs.find { |config|
      config.matches_parameters?(params)
    }

    response = nil

    unless fixture.nil?
      response = @fixture_loader.load(fixture.response)
    end

    response
  end

  def register(config)
    @stub_configs << config
  end
end<commit_msg>code cleanup<commit_after>class BackdropStub
  def initialize(fixture_loader, list_of_configs)
    @fixture_loader = fixture_loader
    @stub_configs = list_of_configs
  end

  def response_for_params(params)
    config = @stub_configs.find { |config|
      config.matches_parameters?(params)
    }

    @fixture_loader.load(config.response) unless config.nil?
  end

  def register(config)
    @stub_configs << config
  end
end
{'fraction_non_alphanumeric': 0.07834602829162132, 'fraction_numerical': 0.0, 'mean_word_length': 3.816753926701571, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1773479', 'n_tokens_mistral': 304, 'n_tokens_neox': 306, 'n_words': 57}