<commit_before>SUPPORTED_LOCALES = /(en|ru|uk|br)/

Prometheus20::Application.routes.draw do
  scope '(:locale)', :locale => SUPPORTED_LOCALES do
    devise_for :users
    resource :maintainer_profile, :only => [:edit, :update]
  end

  scope ':locale', :locale => SUPPORTED_LOCALES do
    match 'project' => 'pages#project'
    match 'news' => 'pages#news'
    resource :search, :only => :show, :id => /[^\/]+/

    resources :rsync, :controller => :rsync, :only => :new

    # resource :maintainer_profile, :only => [:edit, :update]

    scope 'Sisyphus' do
      match 'maintainers/:id/gear' => 'maintainers#gear', :as => 'gear_maintainer'
      match 'maintainers/:id/bugs' => 'maintainers#bugs', :as => 'bugs_maintainer'
      match 'maintainers/:id/allbugs' => 'maintainers#allbugs', :as => 'allbugs_maintainer'
      match 'maintainers/:id/repocop' => 'maintainers#repocop', :as => 'repocop_maintainer'
    end

    scope 'Sisyphus', :id => /[^\/]+/ do
      match 'srpms/:id/gear' => 'srpms#gear', :as => 'gear_srpm'
      match 'srpms/:id/bugs' => 'srpms#bugs', :as => 'bugs_srpm'
      match 'srpms/:id/allbugs' => 'srpms#allbugs', :as => 'allbugs_srpm'
      match 'srpms/:id/repocop' => 'srpms#repocop', :as => 'repocop_srpm'
    end

    scope ':branch', :branch => /[^\/]+/ do
      resources :maintainers, :only => :show do
        get 'srpms', :on => :member
      end
      resources :teams, :only => :show

      resources :srpms, :id => /[^\/]+/, :only => :show do
        member do
          get 'changelog'
          get 'spec'
          get 'get'
        end
      end

      match 'home' => 'home#index'

      match 'packages/:group(/:group2(/:group3))' => 'group#bygroup', :as => 'group'
      match 'packages' => 'group#groups_list', :as => 'packages'
      match 'people' => 'home#maintainers_list', :as => 'maintainers'
      match 'rss' => 'rss#index', :as => 'rss'

    end

    # root :to => 'home#index'
  end

  root :to => 'home#index'

  match '(/:locale)/misc/bugs' => 'misc#bugs', :constraints => { :locale => SUPPORTED_LOCALES }

  match '(/:locale)/iphone/' => 'iphone#index', :constraints => { :locale => SUPPORTED_LOCALES }
  match '(/:locale)/iphone/packager/:login' => 'iphone#maintainer_info', :constraints => { :locale => SUPPORTED_LOCALES }
  match '(/:locale)/iphone/packages/:group(/:group2(/:group3))' => 'iphone#bygroup', :constraints => { :locale => SUPPORTED_LOCALES }

  match '(/:locale)/security' => 'pages#security', :as => 'security', :constraints => { :locale => SUPPORTED_LOCALES }

#  match '/repocop' => 'repocop#index'
#  match '/repocop/by-test/:testname' => 'repocop#bytest'

#  match '(/:locale)/cli/count/:branch/:vendor/' => 'cli#count'

#  match '(/:locale)/cli/maintainers' => 'cli#maintainers'
#  match '(/:locale)/cli/maintainer/:login' => 'cli#maintainer_name'
#  match '(/:locale)/cli/maintainer/:login/acl' => 'cli#maintainer_acl'
#  match '(/:locale)/cli/maintainer/:login/gear' => 'cli#maintainer_gear'
#  match '(/:locale)/cli/maintainer/:login/bugs' => 'cli#maintainer_bugs'<commit_msg>fix routes<commit_after>SUPPORTED_LOCALES = /(en|ru|uk|br)/

Prometheus20::Application.routes.draw do
  scope '(:locale)', :locale => SUPPORTED_LOCALES do
    devise_for :users
    resource :maintainer_profile, :only => [:edit, :update]
    root :to => 'home#index'
  end

  scope ':locale', :locale => SUPPORTED_LOCALES do
    match 'project' => 'pages#project'
    match 'news' => 'pages#news'
    resource :search, :only => :show, :id => /[^\/]+/

    resources :rsync, :controller => :rsync, :only => :new

    # resource :maintainer_profile, :only => [:edit, :update]

    scope 'Sisyphus' do
      match 'maintainers/:id/gear' => 'maintainers#gear', :as => 'gear_maintainer'
      match 'maintainers/:id/bugs' => 'maintainers#bugs', :as => 'bugs_maintainer'
      match 'maintainers/:id/allbugs' => 'maintainers#allbugs', :as => 'allbugs_maintainer'
      match 'maintainers/:id/repocop' => 'maintainers#repocop', :as => 'repocop_maintainer'
    end

    scope 'Sisyphus', :id => /[^\/]+/ do
      match 'srpms/:id/gear' => 'srpms#gear', :as => 'gear_srpm'
      match 'srpms/:id/bugs' => 'srpms#bugs', :as => 'bugs_srpm'
      match 'srpms/:id/allbugs' => 'srpms#allbugs', :as => 'allbugs_srpm'
      match 'srpms/:id/repocop' => 'srpms#repocop', :as => 'repocop_srpm'
    end

    scope ':branch', :branch => /[^\/]+/ do
      resources :maintainers, :only => :show do
        get 'srpms', :on => :member
      end
      resources :teams, :only => :show

      resources :srpms, :id => /[^\/]+/, :only => :show do
        member do
          get 'changelog'
          get 'spec'
          get 'get'
        end
      end

      match 'home' => 'home#index'

      match 'packages/:group(/:group2(/:group3))' => 'group#bygroup', :as => 'group'
      match 'packages' => 'group#groups_list', :as => 'packages'
      match 'people' => 'home#maintainers_list', :as => 'maintainers'
      match 'rss' => 'rss#index', :as => 'rss'

    end
  end

  match '(/:locale)/misc/bugs' => 'misc#bugs', :constraints => { :locale => SUPPORTED_LOCALES }

  match '(/:locale)/iphone/' => 'iphone#index', :constraints => { :locale => SUPPORTED_LOCALES }
  match '(/:locale)/iphone/packager/:login' => 'iphone#maintainer_info', :constraints => { :locale => SUPPORTED_LOCALES }
  match '(/:locale)/iphone/packages/:group(/:group2(/:group3))' => 'iphone#bygroup', :constraints => { :locale => SUPPORTED_LOCALES }

  match '(/:locale)/security' => 'pages#security', :as => 'security', :constraints => { :locale => SUPPORTED_LOCALES }

#  match '/repocop' => 'repocop#index'
#  match '/repocop/by-test/:testname' => 'repocop#bytest'

#  match '(/:locale)/cli/count/:branch/:vendor/' => 'cli#count'

#  match '(/:locale)/cli/maintainers' => 'cli#maintainers'
#  match '(/:locale)/cli/maintainer/:login' => 'cli#maintainer_name'
#  match '(/:locale)/cli/maintainer/:login/acl' => 'cli#maintainer_acl'
#  match '(/:locale)/cli/maintainer/:login/gear' => 'cli#maintainer_gear'
#  match '(/:locale)/cli/maintainer/:login/bugs' => 'cli#maintainer_bugs'
{'fraction_non_alphanumeric': 0.20528388578930096, 'fraction_numerical': 0.001969149983590417, 'mean_word_length': 3.634980988593156, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 138, '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': '60133', 'n_tokens_mistral': 2322, 'n_tokens_neox': 2217, 'n_words': 425}