<commit_before>describe 'routing', type: :routing do
  BAD_MATCH = %r{^/rails|^/assets|^/cable|.*\*path\(.:format\)}
  Rails.application.routes.routes.map do |r|
    spec = r.path.spec.to_s
    next if spec.match BAD_MATCH
    r.verb.split('|').each do |verb|
      it "#{verb}: #{r.path.spec.to_s}" do
        parts = r.required_parts.map { |part| [part, '1'] }.to_h
        path = r.path.build_formatter.evaluate(parts)
        expect(verb.downcase => path).to route_to(**r.defaults, **parts)
      end
    end<commit_msg>style: style fixes [ci skip]<commit_after>describe 'routing', type: :routing do
  BAD_MATCH = %r{^/rails|^/assets|^/cable|.*\*path\(.:format\)}
  Rails.application.routes.routes.map do |r|
    spec = r.path.spec.to_s
    next if spec.match BAD_MATCH
    r.verb.split('|').each do |verb|
      it "#{verb}: #{r.path.spec}" do
        parts = r.required_parts.map { |part| [part, '1'] }.to_h
        path = r.path.build_formatter.evaluate(parts)
        expect(verb.downcase => path).to route_to(**r.defaults, **parts)
      end
    end
{'fraction_non_alphanumeric': 0.18525519848771266, 'fraction_numerical': 0.001890359168241966, 'mean_word_length': 3.0419847328244276, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7362426', 'n_tokens_mistral': 404, 'n_tokens_neox': 388, 'n_words': 77}