<commit_before>Kontrol.map do
  get '/categories/(.*)\.rss' do |category|
    render 'category.rxml', find_category(category)
  end

  get '/categories/(.*)' do |category|
    render 'category.rhtml', find_category(category)
  end

  get '/(\d+)/(\d+)/(.*)' do |year, month, name|
    post = find_post(year.to_i, month.to_i, name)
    render 'post.rhtml', :post => post, :comments => comments_for(post)
  end

  get '/(\d+)/(\d+)' do |year, month|
    render 'archive.rhtml', :year => year.to_i, :month => month.to_i
  end

  get '/index\.rss' do
    render 'index.rxml'
  end

  post '/comments' do
    post = find_by_path(params['path'])
    post_comment(post, params)
    render '_comments.rhtml', :comments => comments_for(post)
  end

  get '/assets/javascripts\.js' do
    render_javascripts
  end

  get '/assets/stylesheets\.css' do
    render_stylesheets
  end
<commit_msg>fixed comment preview<commit_after>Kontrol.map do
  get '/categories/(.*)\.rss' do |category|
    render 'category.rxml', find_category(category)
  end

  get '/categories/(.*)' do |category|
    render 'category.rhtml', find_category(category)
  end

  get '/(\d+)/(\d+)/(.*)' do |year, month, name|
    post = find_post(year.to_i, month.to_i, name)
    render 'post.rhtml', :post => post, :comments => comments_for(post)
  end

  get '/(\d+)/(\d+)' do |year, month|
    render 'archive.rhtml', :year => year.to_i, :month => month.to_i
  end

  get '/index\.rss' do
    render 'index.rxml'
  end

  post '/comments' do
    post = find_by_path(params['path'])
    if params['preview']
      render '_comments.rhtml', :comments => [Shinmun::Comment.new(params)]
    else
      post_comment(post, params)
      render '_comments.rhtml', :comments => comments_for(post)
    end    
  end

  get '/assets/javascripts\.js' do
    render_javascripts
  end

  get '/assets/stylesheets\.css' do
    render_stylesheets
  end

{'fraction_non_alphanumeric': 0.16649104320337196, 'fraction_numerical': 0.0, 'mean_word_length': 3.2013274336283186, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3571335', 'n_tokens_mistral': 692, 'n_tokens_neox': 661, 'n_words': 160}