<commit_before>module Caterpillar #:nodoc:
  # Routes for Portlet Test Bench.
  module Routing
    module MapperExtensions # :nodoc:
      def caterpillar

        @set.add_named_route(
          'portlet_test_bench',
          'caterpillar/test_bench',
          {:controller => 'Caterpillar::Application'})

        @set.add_route(
          'caterpillar/test_bench/http_methods/:action',
          {:controller => 'Caterpillar::HttpMethods'})

        @set.add_route(
          'caterpillar/test_bench/javascript/:action',
          {:controller => 'Caterpillar::Js'})

        @set.add_route(
          'caterpillar/test_bench/css/:action',
          {:controller => 'Caterpillar::Css'})

        @set.add_route(
          'caterpillar/test_bench/login/:action',
          {:controller => 'Caterpillar::Login'})

        @set.add_route(
          'caterpillar/test_bench/resource/:action',
          {:controller => 'Caterpillar::Resource'})

        @set.add_route(
          'caterpillar/test_bench/session/:action',
          {:controller => 'Caterpillar::Session'})

        @set.add_route(
          'caterpillar/test_bench/user/:action',
          {:controller => 'Caterpillar::User'})


        @set.add_route(
          'caterpillar/test_bench/liferay/:action',
          {:controller => 'Caterpillar::Liferay'})

        # Liferay session variables.
        #
        # Watch out for route conflicts!
        # If the route would be /something/:uid,
        # a later defined route /something/:gid would never match.

        @set.add_route(
          'caterpillar/test_bench/liferay/:action/uid/:uid',
          {:controller => 'Caterpillar::Liferay'})

        @set.add_route(
          'caterpillar/test_bench/liferay/:action/gid/:gid',
          {:controller => 'Caterpillar::Liferay'})

        @set.add_route(
          'caterpillar/test_bench/liferay/:action/uid/:uid/gid/:gid',
          {:controller => 'Caterpillar::Liferay'})

        @set.add_route(
          'caterpillar/test_bench/junit/:action',
          {:controller => 'Caterpillar::Junit'})

      end
    end
  end
end<commit_msg>cleanup uid from routes<commit_after>module Caterpillar #:nodoc:
  # Routes for Portlet Test Bench.
  module Routing
    module MapperExtensions # :nodoc:
      def caterpillar

        @set.add_named_route(
          'portlet_test_bench',
          'caterpillar/test_bench',
          {:controller => 'Caterpillar::Application'})

        @set.add_route(
          'caterpillar/test_bench/http_methods/:action',
          {:controller => 'Caterpillar::HttpMethods'})

        @set.add_route(
          'caterpillar/test_bench/javascript/:action',
          {:controller => 'Caterpillar::Js'})

        @set.add_route(
          'caterpillar/test_bench/css/:action',
          {:controller => 'Caterpillar::Css'})

        @set.add_route(
          'caterpillar/test_bench/login/:action',
          {:controller => 'Caterpillar::Login'})

        @set.add_route(
          'caterpillar/test_bench/resource/:action',
          {:controller => 'Caterpillar::Resource'})

        @set.add_route(
          'caterpillar/test_bench/session/:action',
          {:controller => 'Caterpillar::Session'})

        @set.add_route(
          'caterpillar/test_bench/user/:action',
          {:controller => 'Caterpillar::User'})

        @set.add_route(
          'caterpillar/test_bench/liferay/:action',
          {:controller => 'Caterpillar::Liferay'})

        # Liferay GID
        @set.add_route(
          'caterpillar/test_bench/liferay/:action/gid/:gid',
          {:controller => 'Caterpillar::Liferay'})

        # xUnit test routes
        @set.add_route(
          'caterpillar/test_bench/junit/:action',
          {:controller => 'Caterpillar::Junit'})

      end
    end
  end
end
{'fraction_non_alphanumeric': 0.14056330613319296, 'fraction_numerical': 0.0, 'mean_word_length': 2.3391915641476273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '4527810', 'n_tokens_mistral': 1299, 'n_tokens_neox': 1250, 'n_words': 165}