<commit_before>Rails.application.routes.draw do
  resources :roles
  mount Ckeditor::Engine => '/ckeditor'

  concern :paginatable do
    get '(page/:page)', action: :index, on: :collection, as: ''
  end

  devise_for :users, controllers: { registrations: 'registrations' }

  root 'pages#welcome'

  resources :attendances, only: :update

  resources :attendance_lists, concerns: :paginatable, only: :show do
    get :close_mail, on: :member
    get :open_mail, on: :member
    post :close, on: :member
    post :close_with_mail, on: :member
    post :open, on: :member
    post :open_with_mail, on: :member

    resources :attendances, only: [] do
      get :edit_multiple, on: :collection
      put :update_multiple, on: :collection
    end
  end

  resources :comments, only: [:create, :edit, :update, :destroy]

  resources :events, concerns: :paginatable do
    resource :attendance_list, only: :show
    resource :report, only: :show
  end

  resources :league_matches,
    controller: 'events',
    type: 'LeagueMatch',
    only: [:create, :edit, :update]
  resources :cup_matches,
    controller: 'events',
    type: 'CupMatch',
    only: [:create, :edit, :update]
  resources :others,
    controller: 'events',
    type: 'Other',
    only: [:create, :edit, :update]

  resources :forum_threads

  resources :messages, only: [:create, :index]

  resources :news, concerns: :paginatable

  resources :players, concerns: :paginatable, except: :destroy do
    get :for_user, on: :new
  end

  resources :reports, concerns: :paginatable, except: :destroy do
    get :no_content, on: :collection
    get :missing, on: :collection
  end

  resources :users, only: [:index, :update]

  resources :teams, except: :show

  resources :administrations, only: :index

  get '/fussball_de' => 'pages#fussball_de'
  get '/contact' => 'pages#contact'
end<commit_msg>Move role routes to bottom<commit_after>Rails.application.routes.draw do
  mount Ckeditor::Engine => '/ckeditor'

  concern :paginatable do
    get '(page/:page)', action: :index, on: :collection, as: ''
  end

  devise_for :users, controllers: { registrations: 'registrations' }

  root 'pages#welcome'

  resources :attendances, only: :update

  resources :attendance_lists, concerns: :paginatable, only: :show do
    get :close_mail, on: :member
    get :open_mail, on: :member
    post :close, on: :member
    post :close_with_mail, on: :member
    post :open, on: :member
    post :open_with_mail, on: :member

    resources :attendances, only: [] do
      get :edit_multiple, on: :collection
      put :update_multiple, on: :collection
    end
  end

  resources :comments, only: [:create, :edit, :update, :destroy]

  resources :events, concerns: :paginatable do
    resource :attendance_list, only: :show
    resource :report, only: :show
  end

  resources :league_matches,
    controller: 'events',
    type: 'LeagueMatch',
    only: [:create, :edit, :update]
  resources :cup_matches,
    controller: 'events',
    type: 'CupMatch',
    only: [:create, :edit, :update]
  resources :others,
    controller: 'events',
    type: 'Other',
    only: [:create, :edit, :update]

  resources :forum_threads

  resources :messages, only: [:create, :index]

  resources :news, concerns: :paginatable

  resources :players, concerns: :paginatable, except: :destroy do
    get :for_user, on: :new
  end

  resources :reports, concerns: :paginatable, except: :destroy do
    get :no_content, on: :collection
    get :missing, on: :collection
  end

  resources :users, only: [:index, :update]

  resources :teams, except: :show

  resources :administrations, only: :index
  resources :roles

  get '/fussball_de' => 'pages#fussball_de'
  get '/contact' => 'pages#contact'
end
{'fraction_non_alphanumeric': 0.1280471470667024, 'fraction_numerical': 0.0, 'mean_word_length': 3.9720372836218374, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3256336', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1208, 'n_words': 371}