<commit_before>- title = t("listings.show.#{listing.category}_#{listing.listing_type}") + ": " + listing.title
.listed_listing
  .listing_image
    - unless listing.listing_images.empty?
      = link_to (image_tag listing.listing_images.first.image.url(:thumb), :class => "listing_main_image", :alt => listing.title), listing_path(listing), :title => title
    - else
      %div{:class => "listing_image_#{listing.category}"}
        =  link_to "#", listing_path(listing), :title => title
  .listed_listing_text
    %h5= link_to (params[:q] ? title : listing.title), listing
    - if listing.closed?
      .listed_listing_closed_status
        = t(".#{listing.listing_type}_is_closed")
    %p{:class => "description"}
      = (listing.description.blank? ? t("listings.show.no_description") : truncate(listing.description, :length => 320, :omission => "..."))
    .float_left
      - unless current_user?(listing.author)
        = link_to t("listings.link_labels.link_label_for_#{listing.category}_#{listing.listing_type}"), reply_to_listing_path(:id => listing.id)
        &nbsp;|&nbsp;
      - comment_count = listing.comments.count > 1 ? " (#{listing.comments.count})" : ""  
      = link_to "#{t('listings.please_comment')}#{comment_count}", listing_path(listing)+ "#comment_form" 
    .float_right
      %span
        = link_to listing.author.given_name, "#"
        = time_ago(listing.created_at)<commit_msg>Fixed a bug: link to author in a listed listing now works.<commit_after>- title = t("listings.show.#{listing.category}_#{listing.listing_type}") + ": " + listing.title
.listed_listing
  .listing_image
    - unless listing.listing_images.empty?
      = link_to (image_tag listing.listing_images.first.image.url(:thumb), :class => "listing_main_image", :alt => listing.title), listing_path(listing), :title => title
    - else
      %div{:class => "listing_image_#{listing.category}"}
        =  link_to "#", listing_path(listing), :title => title
  .listed_listing_text
    %h5= link_to (params[:q] ? title : listing.title), listing
    - if listing.closed?
      .listed_listing_closed_status
        = t(".#{listing.listing_type}_is_closed")
    %p{:class => "description"}
      = (listing.description.blank? ? t("listings.show.no_description") : truncate(listing.description, :length => 320, :omission => "..."))
    .float_left
      - unless current_user?(listing.author)
        = link_to t("listings.link_labels.link_label_for_#{listing.category}_#{listing.listing_type}"), reply_to_listing_path(:id => listing.id)
        &nbsp;|&nbsp;
      - comment_count = listing.comments.count > 1 ? " (#{listing.comments.count})" : ""  
      = link_to "#{t('listings.please_comment')}#{comment_count}", listing_path(listing)+ "#comment_form" 
    .float_right
      %span
        = link_to listing.author.given_name, listing.author
        = time_ago(listing.created_at)
{'fraction_non_alphanumeric': 0.16099930603747398, 'fraction_numerical': 0.0034698126301179735, 'mean_word_length': 3.9030612244897958, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 23, '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': '5922623', 'n_tokens_mistral': 972, 'n_tokens_neox': 918, 'n_words': 141}