<commit_before>module ActionDispatch::Routing
  class Mapper
    def site(name, options = {}, &block)
      subdomain = options[:subdomain] || 'www'

      constraints subdomain: /(#{subdomain}|#{name})/ do
        namespace(name.to_sym, module: name.to_sym, path: '/', &block)
      end

    end
  end
end<commit_msg>make site routes mapper work as intended.<commit_after>module ActionDispatch::Routing
  class Mapper
    def site(name, options = {}, &block)
      subdomain = options[:subdomain] || name.to_s

      constraints subdomain: /(#{subdomain})/ do
        scope(name.to_sym, module: name.to_sym, path: '/', &block)
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.13414634146341464, 'fraction_numerical': 0.0, 'mean_word_length': 3.238709677419355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '3919679', 'n_tokens_mistral': 207, 'n_tokens_neox': 207, 'n_words': 53}