<commit_before>.well
  %h4
    = link_to (@post.title) ? @post.title : "No Title", @post
  %div
    - if @post.body
      = @markdown_parser.markdown_to_html(@post.body).html_safe
      - unless @post.tag_list.empty?
        %div.tags
          - @post.tag_list.each_with_index do |tag, index|
            = succeed (index < @post.tag_list.count - 1) ? " " : "" do
              %a{:href => tag_path(tag), :class => "label"}>= tag
    %hr.gradient-black
  .actions
    - if @post.published
      = link_to "#{post_path(@post)}#comments" do
        %i.icon-comment.icon
      = link_to "#{post_path(@post)}#tweet" do
        %i.icon-retweet.icon
      = link_to "#{post_path(@post)}#like" do
        %i.icon-thumbs-up.icon

    - if can? :edit, @post
      = link_to edit_post_path(@post), :class => "" do
        %i.icon-edit.icon
    - if can? :delete, @post
      = link_to post_path(@post), :confirm => 'Are you sure?', :method => :delete, :class => "" do
        %i.icon-trash.icon
  - if @post.published and action_name == "show"
    %hr.gradient-black
    #comments
      - unless @comments.empty?
        %h4 Comments
        - @comments.each do |comment|
          .well
            %h5
              = "#{comment.author_name} said #{time_ago_in_words comment.created_at} ago:"
            = comment.body<commit_msg>Show excerpt if exists, otherwise show body.<commit_after>.well
  %h4
    = link_to (@post.title) ? @post.title : "No Title", @post
  %div
    - if (action_name == "index" or action_name == "tag") and !@post.excerpt.empty?
      = @markdown_parser.markdown_to_html(@post.excerpt).html_safe
    - else
      = @markdown_parser.markdown_to_html(@post.body).html_safe
    - unless @post.tag_list.empty?
      %div.tags
        - @post.tag_list.each_with_index do |tag, index|
          = succeed (index < @post.tag_list.count - 1) ? " " : "" do
            %a{:href => tag_path(tag), :class => "label"}>= tag
    %hr.gradient-black
  .actions
    - if @post.published
      = link_to "#{post_path(@post)}#comments" do
        %i.icon-comment.icon
      = link_to "#{post_path(@post)}#tweet" do
        %i.icon-retweet.icon
      = link_to "#{post_path(@post)}#like" do
        %i.icon-thumbs-up.icon

    - if can? :edit, @post
      = link_to edit_post_path(@post), :class => "" do
        %i.icon-edit.icon
    - if can? :delete, @post
      = link_to post_path(@post), :confirm => 'Are you sure?', :method => :delete, :class => "" do
        %i.icon-trash.icon
  - if @post.published and action_name == "show"
    %hr.gradient-black
    #comments
      - unless @comments.empty?
        %h4 Comments
        - @comments.each do |comment|
          .well
            %h5
              = "#{comment.author_name} said #{time_ago_in_words comment.created_at} ago:"
            = comment.body
{'fraction_non_alphanumeric': 0.15866239772323018, 'fraction_numerical': 0.002845962290999644, 'mean_word_length': 2.2735739231664724, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '914444', 'n_tokens_mistral': 988, 'n_tokens_neox': 967, 'n_words': 195}