<commit_before>.file-holder
  .file-title
    %i.icon-file
    %strong= @snippet.file_name
    %span.options
      .btn-group.tree-btn-group.pull-right
        - if @snippet.author == current_user
          = link_to "Edit", edit_snippet_path(@snippet), class: "btn btn-tiny", title: 'Edit Snippet'
          = link_to "Delete", snippet_path(@snippet), method: :delete, confirm: "Are you sure?", class: "btn btn-tiny", title: 'Delete Snippet'
        = link_to "Raw", raw_snippet_path(@snippet), class: "btn btn-tiny", target: "_blank"
  .file-content.code
    - unless @snippet.content.empty?
      %div{class: user_color_scheme_class}
        = raw @snippet.colorize(formatter: :gitlab)
    - else
      %p.nothing_here_message Empty file<commit_msg>Render markdown in snippets<commit_after>.file-holder
  .file-title
    %i.icon-file
    %strong= @snippet.file_name
    %span.options
      .btn-group.tree-btn-group.pull-right
        - if @snippet.author == current_user
          = link_to "Edit", edit_snippet_path(@snippet), class: "btn btn-tiny", title: 'Edit Snippet'
          = link_to "Delete", snippet_path(@snippet), method: :delete, confirm: "Are you sure?", class: "btn btn-tiny", title: 'Delete Snippet'
        = link_to "Raw", raw_snippet_path(@snippet), class: "btn btn-tiny", target: "_blank"
  - unless @snippet.content.empty?
    - if gitlab_markdown?(@snippet.file_name)
      .file-content.wiki
        = preserve do
          = markdown(@snippet.data)
    - elsif markup?(@snippet.file_name)
      .file-content.wiki
        = raw GitHub::Markup.render(@snippet.file_name, @snippet.data)
    - else
      .file-content.code
        %div{class: user_color_scheme_class}
          = raw @snippet.colorize(formatter: :gitlab)
  - else
    .file-content.code
      %p.nothing_here_message Empty file
{'fraction_non_alphanumeric': 0.13783635365183966, 'fraction_numerical': 0.0, 'mean_word_length': 3.0309734513274336, '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': '4803767', 'n_tokens_mistral': 618, 'n_tokens_neox': 604, 'n_words': 124}