<commit_before>Rails.application.routes.draw do
  feed_id_regex  = /[a-zA-Z1-9\.%#\$&\?\(\)\=\+\-\:\?\\]+/
  entry_id_regex = /[a-zA-Z1-9\-]+/
  use_doorkeeper
  root :to => 'feeds#index'
  resources :user_sessions
  resources :users do
    resources :entries, only: [:index], constraints: { id: entry_id_regex }
  end
  resources :entries do
    resources :tracks, only: :index
  end
  resources :user_entries, only: [:create, :destroy]
  resources :feeds, constraints: { id: feed_id_regex },
                    shallow: true do
    resources :entries, only: [:index], constraints: { id: entry_id_regex }
  end
  resources :subscriptions, only: [:create, :destroy]
  resources :tracks
  resources :likes

  get 'login' => 'user_sessions#new', :as => :login
  post 'logout' => 'user_sessions#destroy', :as => :logout

  namespace :v3 do
    get  '/profile'  => 'credentials#me'
    put  '/profile'  => 'users#create'
    post '/markers'  => 'markers#mark'
    get  '/streams/:id/ids'      => 'streams#index', constraints: { id: feed_id_regex }
    get  '/streams/:id/contents' => 'streams#index', constraints: { id: feed_id_regex }
    get  '/search/feeds'         => 'feeds#search'
    resources :feeds,         only: [:show], constraints: { id: feed_id_regex }
    resources :subscriptions, only: [:index, :create, :destroy], constraints: { id: feed_id_regex }<commit_msg>Fix feed_id regex: contains `0`<commit_after>Rails.application.routes.draw do
  feed_id_regex  = /[a-zA-Z0-9\.%#\$&\?\(\)\=\+\-\:\?\\]+/
  entry_id_regex = /[a-zA-Z0-9\-]+/
  use_doorkeeper
  root :to => 'feeds#index'
  resources :user_sessions
  resources :users do
    resources :entries, only: [:index], constraints: { id: entry_id_regex }
  end
  resources :entries do
    resources :tracks, only: :index
  end
  resources :user_entries, only: [:create, :destroy]
  resources :feeds, constraints: { id: feed_id_regex },
                    shallow: true do
    resources :entries, only: [:index], constraints: { id: entry_id_regex }
  end
  resources :subscriptions, only: [:create, :destroy]
  resources :tracks
  resources :likes

  get 'login' => 'user_sessions#new', :as => :login
  post 'logout' => 'user_sessions#destroy', :as => :logout

  namespace :v3 do
    get  '/profile'  => 'credentials#me'
    put  '/profile'  => 'users#create'
    post '/markers'  => 'markers#mark'
    get  '/streams/:id/ids'      => 'streams#index', constraints: { id: feed_id_regex }
    get  '/streams/:id/contents' => 'streams#index', constraints: { id: feed_id_regex }
    get  '/search/feeds'         => 'feeds#search'
    resources :feeds,         only: [:show], constraints: { id: feed_id_regex }
    resources :subscriptions, only: [:index, :create, :destroy], constraints: { id: feed_id_regex }
{'fraction_non_alphanumeric': 0.16582369942196531, 'fraction_numerical': 0.003973988439306358, 'mean_word_length': 3.4022257551669317, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '2527162', 'n_tokens_mistral': 972, 'n_tokens_neox': 961, 'n_words': 232}