<commit_before>module QueryStringSearch
  class SearchParameters
    extend Forwardable

    def_delegators :@collection, :each

    def self.build_from_querystring(query_string, factory = QueryStringSearch::MatcherFactory, matchers = QueryStringSearch::AbstractMatcher.matchers)
      parameters = QueryStringSearch::SearchOptions.parse(query_string)
      new(parameters, factory, matchers)
    end

    def initialize(parameters, factory, matchers)
      parameters.each do |param|
        collection << factory.build(param, matchers)
      end
    end<commit_msg>More name clarification<commit_after>module QueryStringSearch
  class SearchParameters
    extend Forwardable

    def_delegators :@collection, :each

    def self.build_from_querystring(query_string, factory = QueryStringSearch::MatcherFactory, matchers = QueryStringSearch::AbstractMatcher.matchers)
      search_options = QueryStringSearch::SearchOptions.parse(query_string)
      new(search_options, factory, matchers)
    end

    def initialize(search_options, factory, matchers)
      search_options.each do |search_option|
        collection << factory.build(search_option, matchers)
      end
    end
{'fraction_non_alphanumeric': 0.07142857142857142, 'fraction_numerical': 0.0, 'mean_word_length': 4.685990338164252, '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': '3390710', 'n_tokens_mistral': 312, 'n_tokens_neox': 302, 'n_words': 67}