<commit_before>module Zena
  module Routes
    def zen_routes
      home       ':prefix',  :controller => 'nodes',    :action => 'index',  :prefix => /[a-zA-Z]{0,2}/
      not_found  ':prefix/404.html',  :controller => 'nodes',    :action => 'not_found', :prefix => /\w\w/
      login      'login',  :controller => 'user_sessions',  :action => 'new',    :requirements => { :method => :get  }
      logout     'logout',  :controller => 'user_sessions',  :action => 'destroy'

      upload_progress 'upload_progress', :controller => 'documents', :action => 'upload_progress'

      resource  :user_session   # singleton resource
      resources :users, :member => { :preferences => :get, :swap_dev => :get }
      resources :groups
      resources :iformats

      connect ':prefix/*path?:cachestamp',  :controller => 'nodes', :action => 'show', :prefix => /\w\w/, :cachestamp => /\d+/
      connect ':prefix/*path',  :controller => 'nodes', :action => 'show', :prefix => /\w\w/
      connect 'dav/*path_info', :controller => 'nodes', :action => 'webdav'

      resources :nodes,
        :collection => { :asearch => :get, :search => :get },
        :member =>     { :import => :post, :export => :get, :save_text => :put,<commit_msg>Modify resource from user_session to session.<commit_after>module Zena
  module Routes
    def zen_routes
      home       ':prefix',  :controller => 'nodes',    :action => 'index',  :prefix => /[a-zA-Z]{0,2}/
      not_found  ':prefix/404.html',  :controller => 'nodes',    :action => 'not_found', :prefix => /\w\w/
      login      'login',  :controller => 'user_sessions',  :action => 'new',    :requirements => { :method => :get  }
      logout     'logout',  :controller => 'user_sessions',  :action => 'destroy'

      upload_progress 'upload_progress', :controller => 'documents', :action => 'upload_progress'

      resource  :session, :controller => "user_sessions"   # singleton resource
      resources :pings
      resources :users, :member => { :preferences => :get, :swap_dev => :get }
      resources :groups
      resources :iformats

      connect ':prefix/*path?:cachestamp',  :controller => 'nodes', :action => 'show', :prefix => /\w\w/, :cachestamp => /\d+/
      connect ':prefix/*path',  :controller => 'nodes', :action => 'show', :prefix => /\w\w/
      connect 'dav/*path_info', :controller => 'nodes', :action => 'webdav'

      resources :nodes,
        :collection => { :asearch => :get, :search => :get },
        :member =>     { :import => :post, :export => :get, :save_text => :put,
{'fraction_non_alphanumeric': 0.1918238993710692, 'fraction_numerical': 0.003930817610062893, 'mean_word_length': 3.0396825396825395, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 70, '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': '5242579', 'n_tokens_mistral': 817, 'n_tokens_neox': 778, 'n_words': 200}