<commit_before>%article.file-holder.readme-holder
  .js-file-title.file-title
    = blob_icon readme.mode, readme.name
    = link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@ref, readme.path)) do
      %strong
        = readme.name

  = render 'projects/blob/viewer', viewer: readme.rich_viewer, viewer_url: namespace_project_blob_path(@project.namespace, @project, tree_join(@ref, readme.path), viewer: :rich, format: :json)<commit_msg>Don't blow up when a tree readme is empty and consequently has no rich viewer<commit_after>- if readme.rich_viewer
  %article.file-holder.readme-holder
    .js-file-title.file-title
      = blob_icon readme.mode, readme.name
      = link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@ref, readme.path)) do
        %strong
          = readme.name

    = render 'projects/blob/viewer', viewer: readme.rich_viewer, viewer_url: namespace_project_blob_path(@project.namespace, @project, tree_join(@ref, readme.path), viewer: :rich, format: :json)
{'fraction_non_alphanumeric': 0.12112403100775193, 'fraction_numerical': 0.0, 'mean_word_length': 4.614130434782608, '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': '6601023', 'n_tokens_mistral': 342, 'n_tokens_neox': 329, 'n_words': 68}