<commit_before>- page_title @snippet.title, "Snippets"
%h3.page-title
  = @snippet.title

  - if @snippet.private?
    %span.label.label-success
      %i.fa.fa-lock
      private

  .pull-right
    = link_to new_snippet_path, class: "btn btn-new", title: "New Snippet" do
      Add new snippet
%hr

.append-bottom-20
  .pull-right
    = "##{@snippet.id}"
    %span.light
      by
      = link_to user_snippets_path(@snippet.author) do
        = image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16", alt: ''
        = @snippet.author_name

  .back-link
    - if @snippet.author == current_user
      = link_to user_snippets_path(current_user) do
        &larr; your snippets
    - else
      = link_to snippets_path do
        &larr; discover snippets

.file-holder
  .file-title
    %i.fa.fa-file
    %strong
      = @snippet.file_name
    .file-actions
      .btn-group
        - if can?(current_user, :update_personal_snippet, @snippet)
          = link_to "edit", edit_snippet_path(@snippet), class: "btn btn-sm", title: 'Edit Snippet'
        = link_to "raw", raw_snippet_path(@snippet), class: "btn btn-sm", target: "_blank"
      - if can?(current_user, :admin_personal_snippet, @snippet)
        = link_to "remove", snippet_path(@snippet), method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-sm btn-remove", title: 'Delete Snippet'
  = render 'shared/snippets/blob'<commit_msg>Small ui improvements to snippet page<commit_after>- page_title @snippet.title, "Snippets"
%h4.page-title
  = @snippet.title

  - if @snippet.private?
    %span.label.label-success
      %i.fa.fa-lock
      private

  .pull-right
    = link_to new_snippet_path, class: "btn btn-new btn-sm", title: "New Snippet" do
      Add new snippet

.append-bottom-10.prepend-top-10
  .pull-right
    %span.light
      created by
      = link_to user_snippets_path(@snippet.author) do
        = @snippet.author_name

  .back-link
    - if @snippet.author == current_user
      = link_to user_snippets_path(current_user) do
        &larr; your snippets
    - else
      = link_to snippets_path do
        &larr; explore snippets

.file-holder
  .file-title
    %i.fa.fa-file
    %strong
      = @snippet.file_name
    .file-actions
      .btn-group
        - if can?(current_user, :update_personal_snippet, @snippet)
          = link_to "edit", edit_snippet_path(@snippet), class: "btn btn-sm", title: 'Edit Snippet'
        = link_to "raw", raw_snippet_path(@snippet), class: "btn btn-sm", target: "_blank"
      - if can?(current_user, :admin_personal_snippet, @snippet)
        = link_to "remove", snippet_path(@snippet), method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-sm btn-remove", title: 'Delete Snippet'
  = render 'shared/snippets/blob'
{'fraction_non_alphanumeric': 0.13012221423436376, 'fraction_numerical': 0.0035945363048166786, 'mean_word_length': 2.9142053445850915, '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': '105846', 'n_tokens_mistral': 1000, 'n_tokens_neox': 970, 'n_words': 215}