<commit_before>- @title = @community_tool.name

- content_for :header do
  .header-container
    .container
      %h1.page-heading
        = @title

.row
  .col-sm-9
    .markdown-container-new
      = simple_markdown @community_tool.description

  .col-sm-3
    - if @community_tool.editable_by?(current_user)
      %p
        %strong Actions
        %br
        - if current_user == @community_tool.user
          = link_to 'Edit Tool', contribute_tool_description_path(@community_tool), class: 'btn btn-xs btn-primary'
        - if current_user.system_admin?
          = link_to edit_community_tool_path(@community_tool), class: 'btn btn-xs btn-default' do
            %span.glyphicon.glyphicon-cog

    %p
      %strong Author
      %br
      = link_to @community_tool.user.forum_name, tools_path(a: @community_tool.user.forum_name)

    %p
      %strong Date Added
      %br
      = @community_tool.created_at.strftime '%B %-d, %Y'

    %p
      %strong Rating
      %br
      = link_to community_tool_community_tool_reviews_path(@community_tool) do
        = render 'community_tools/rating', rating: @community_tool.rating
      %br
      = link_to community_tool_community_tool_reviews_path(@community_tool) do
        = pluralize(number_with_delimiter(@community_tool.community_tool_reviews.count), 'Review')
      %br
      - if current_user && current_user.reviewed_tool?(@community_tool)
        - link_text = 'Update my review'
      - else
        - link_text = 'Write a review'
      = link_to link_text, new_community_tool_community_tool_review_path(@community_tool)

    %p
      %strong Source
      %br
      = link_to_if @community_tool.safe_url?, @community_tool.url, @community_tool.url, target: '_blank', style: 'word-wrap: break-word;'

    - if false
      %p
        %strong
          Add to Favorites
        Favorite this Tool

      %p
        %strong
          Discuss this Tool
        Add a Comment

      %p
        %strong
          Language
        This is written in Ruby!

      %p
        %strong
          Category/Tags
        %code tag1
        %code tag2
        %code tagd

      %p
        %strong Editor's Choice Tool
        This is an editor's choice tool!

      %p
        %strong Date last reviewed/Verified
        Shown if it's earlier than the last updated by user.

      %p
        %strong License
        http://choosealicense.com/
        Remember to choose a license?
<commit_msg>Corrected the publish date on the tool show page<commit_after>- @title = @community_tool.name

- content_for :header do
  .header-container
    .container
      %h1.page-heading
        = @title

.row
  .col-sm-9
    .markdown-container-new
      = simple_markdown @community_tool.description

  .col-sm-3
    - if @community_tool.editable_by?(current_user)
      %p
        %strong Actions
        %br
        - if current_user == @community_tool.user
          = link_to 'Edit Tool', contribute_tool_description_path(@community_tool), class: 'btn btn-xs btn-primary'
        - if current_user.system_admin?
          = link_to edit_community_tool_path(@community_tool), class: 'btn btn-xs btn-default' do
            %span.glyphicon.glyphicon-cog

    %p
      %strong Author
      %br
      = link_to @community_tool.user.forum_name, tools_path(a: @community_tool.user.forum_name)

    %p
      %strong Date Added
      %br
      - if @community_tool.publish_date
        = @community_tool.publish_date.strftime('%B %-d, %Y')
      - else
        = @community_tool.created_at.strftime('%B %-d, %Y')

    %p
      %strong Rating
      %br
      = link_to community_tool_community_tool_reviews_path(@community_tool) do
        = render 'community_tools/rating', rating: @community_tool.rating
      %br
      = link_to community_tool_community_tool_reviews_path(@community_tool) do
        = pluralize(number_with_delimiter(@community_tool.community_tool_reviews.count), 'Review')
      %br
      - if current_user && current_user.reviewed_tool?(@community_tool)
        - link_text = 'Update my review'
      - else
        - link_text = 'Write a review'
      = link_to link_text, new_community_tool_community_tool_review_path(@community_tool)

    %p
      %strong Source
      %br
      = link_to_if @community_tool.safe_url?, @community_tool.url, @community_tool.url, target: '_blank', style: 'word-wrap: break-word;'

    - if false
      %p
        %strong
          Add to Favorites
        Favorite this Tool

      %p
        %strong
          Discuss this Tool
        Add a Comment

      %p
        %strong
          Language
        This is written in Ruby!

      %p
        %strong
          Category/Tags
        %code tag1
        %code tag2
        %code tagd

      %p
        %strong Editor's Choice Tool
        This is an editor's choice tool!

      %p
        %strong Date last reviewed/Verified
        Shown if it's earlier than the last updated by user.

      %p
        %strong License
        http://choosealicense.com/
        Remember to choose a license?

{'fraction_non_alphanumeric': 0.08891983290232743, 'fraction_numerical': 0.001989258006763477, 'mean_word_length': 2.200509229789943, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7235831', 'n_tokens_mistral': 1631, 'n_tokens_neox': 1524, 'n_words': 365}