<commit_before>.grid_15
  %h1
    - if current_user
      - if params[:all_users] && params[:tag]
        = "Bookmarks in " + params[:tag]
      - elsif params[:username]
        - if (current_user.name == params[:username])
          Your Bookmarks
        - else
          = params[:username] + "'s Bookmarks "
      - else
        Your Bookmarks
    - elsif params[:username]
      = params[:username] + "'s Bookmarks "
    - elsif params[:tag]
      = "Bookmarks in " + params[:tag]
    - else
      Some bookmarks
    = '(' + @posts_count.to_s + ')'
    - if current_user && (!params[:username])
      = link_to( '+', :action => 'new')
    - elsif (current_user && params[:username])
      - if( current_user.name == params[:username])
        = link_to( '+', :action => 'new')

  
  - if (params[:tag] || params[:username] || params[:fromdt] || params[:todt] || params[:page])
    - if current_user
      - cache(:action => 'index', :action_suffix => params.to_s, :expires_in => 10.minute) do
        %ul
          - @posts.each do |post|
            %li.bookmark
              = render "short_post", :post => post
      .pagination
        = will_paginate(@posts)
    - else
      - cache(:action => 'index', :action_suffix => params.to_s, :expires_in => 10.minute) do
        %ul
          - @posts.each do |post|
            %li.bookmark
              = render "short_post", :post => post
      .pagination
        = will_paginate(@posts)
  - else
    - if current_user
      - cache(:action => 'index', :action_suffix => "all_user_#{current_user.id}_posts", :expires_in => 10.minute) do
        %ul
          - @posts.each do |post|
            %li.bookmark
              = render "short_post", :post => post<commit_msg>adding one more key to the cache<commit_after>.grid_15
  %h1
    - if current_user
      - if params[:all_users] && params[:tag]
        = "Bookmarks in " + params[:tag]
      - elsif params[:username]
        - if (current_user.name == params[:username])
          Your Bookmarks
        - else
          = params[:username] + "'s Bookmarks "
      - else
        Your Bookmarks
    - elsif params[:username]
      = params[:username] + "'s Bookmarks "
    - elsif params[:tag]
      = "Bookmarks in " + params[:tag]
    - else
      Some bookmarks
    = '(' + @posts_count.to_s + ')'
    - if current_user && (!params[:username])
      = link_to( '+', :action => 'new')
    - elsif (current_user && params[:username])
      - if( current_user.name == params[:username])
        = link_to( '+', :action => 'new')

  
  - if (params[:tag] || params[:username] || params[:fromdt] || params[:todt] || params[:page])
    - if current_user
      - cache(:action => 'index', :action_suffix => params.to_s + "_#{current_user.id}", :expires_in => 10.minute) do
        %ul
          - @posts.each do |post|
            %li.bookmark
              = render "short_post", :post => post
      .pagination
        = will_paginate(@posts)
    - else
      - cache(:action => 'index', :action_suffix => params.to_s, :expires_in => 10.minute) do
        %ul
          - @posts.each do |post|
            %li.bookmark
              = render "short_post", :post => post
      .pagination
        = will_paginate(@posts)
  - else
    - if current_user
      - cache(:action => 'index', :action_suffix => "all_user_#{current_user.id}_posts", :expires_in => 10.minute) do
        %ul
          - @posts.each do |post|
            %li.bookmark
              = render "short_post", :post => post
{'fraction_non_alphanumeric': 0.1584356266057665, 'fraction_numerical': 0.005138452754781616, 'mean_word_length': 2.0736842105263156, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, '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': '1973415', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1111, 'n_words': 240}