<commit_before>-#-protip = Protip::SearchWrapper.new(protip)
%article{:class => dom_class(protip), :id => protip.public_id}
  %header
    -unless protip.best_stat.nil? || best_stat_value(protip) == 0
      %span{:class => protip_stat_class(protip)}
        = formatted_best_stat_value(protip) unless best_stat_name(protip) =~ /hawt/

    -# We should remove this to cache , deleting should be from dashboard
    -if protip_owner?(protip, current_user)
      =link_to(' ', protip_path(protip.public_id), :method => :delete, :class => 'delete-tip', :title => 'remove protip', :confirm => "Are you sure you permanently want to remove this pro tip?")

  = link_to protip.title, protip_or_link_path(protip), 'data-action' => 'view protip', 'data-from' => 'mini protip', :class => "title hyphenate track x-mode-#{mode || 'fullpage'}"
  %footer.cf
    -# We should remove this to cache
    -if is_admin?
      %ul
        %li.admin
          %p== #{distance_of_time_in_words_to_now(protip.created_at)} ago
    %ul.author
      -if protip.user.present?
        %li.user
          by
          =link_to protip.user.username, profile_path(protip.user.username), 'data-action' => 'view protip author', 'data-from' => 'mini protip', :title => "Authored by: #{protip.user.username}", :class => "track"
      -if protip.team.present?
        %li.team
          of
          =link_to protip.team.name, teamname_path(protip.team.slug), 'data-action' => 'view team', 'data-from' => 'mini protip', :class => "track"
    %ul.avatars
      -if protip.user.present?
        %li.user
          =link_to profile_path(protip.user.username) do
            =image_tag(protip.user.avatar_url)
      -if protip.team.present?
        %li.team
          =link_to teamname_path(protip.team.slug) do
            =image_tag(protip.team.avatar.url)
    -if protip.team && protip.team.hiring
      %a.job{:href => teamname_path(protip.team.slug)}<commit_msg>[Fix] Show only when avatar is present.<commit_after>-#-protip = Protip::SearchWrapper.new(protip)
%article{:class => dom_class(protip), :id => protip.public_id}
  %header
    -unless protip.best_stat.nil? || best_stat_value(protip) == 0
      %span{:class => protip_stat_class(protip)}
        = formatted_best_stat_value(protip) unless best_stat_name(protip) =~ /hawt/

    -# We should remove this to cache , deleting should be from dashboard
    -if protip_owner?(protip, current_user)
      =link_to(' ', protip_path(protip.public_id), :method => :delete, :class => 'delete-tip', :title => 'remove protip', :confirm => "Are you sure you permanently want to remove this pro tip?")

  = link_to protip.title, protip_or_link_path(protip), 'data-action' => 'view protip', 'data-from' => 'mini protip', :class => "title hyphenate track x-mode-#{mode || 'fullpage'}"
  %footer.cf
    -# We should remove this to cache
    -if is_admin?
      %ul
        %li.admin
          %p== #{distance_of_time_in_words_to_now(protip.created_at)} ago
    %ul.author
      -if protip.user.present?
        %li.user
          by
          =link_to protip.user.username, profile_path(protip.user.username), 'data-action' => 'view protip author', 'data-from' => 'mini protip', :title => "Authored by: #{protip.user.username}", :class => "track"
      -if protip.team.present?
        %li.team
          of
          =link_to protip.team.name, teamname_path(protip.team.slug), 'data-action' => 'view team', 'data-from' => 'mini protip', :class => "track"
    %ul.avatars
      -if protip.user.present?
        %li.user
          =link_to profile_path(protip.user.username) do
            =image_tag(protip.user.avatar_url)
      -if protip.team.present? && protip.team.avatar.present?
        %li.team
          =link_to teamname_path(protip.team.slug) do
            =image_tag(protip.team.avatar)
    -if protip.team && protip.team.hiring
      %a.job{:href => teamname_path(protip.team.slug)}
{'fraction_non_alphanumeric': 0.1492690433444473, 'fraction_numerical': 0.0005129520389843549, 'mean_word_length': 3.1226215644820297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, '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': '6417450', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1348, 'n_words': 280}