<commit_before>module GitlabEngine
  module TreeHelper
    def tree_icon(content)
      if content.is_a?(Grit::Blob)
        if content.text?
          image_tag "file_txt.png"
        elsif content.image?
          image_tag "file_img.png"
        else
          image_tag "file_bin.png"
        end
      else
        image_tag "file_dir.png"
      end
    end

    def tree_hex_class(content)
      "file_#{hexdigest(content.name)}"
    end

    def tree_full_path(content)
      if params[:path]
        File.join(params[:path], content.name)
      else
        content.name
      end
    end
  end
end
<commit_msg>fix asset paths for tree icon helper<commit_after>module GitlabEngine
  module TreeHelper
    def tree_icon(content)
      if content.is_a?(Grit::Blob)
        if content.text?
          image_tag "gitlab_engine/file_txt.png"
        elsif content.image?
          image_tag "gitlab_engine/file_img.png"
        else
          image_tag "gitlab_engine/file_bin.png"
        end
      else
        image_tag "gitlab_engine/file_dir.png"
      end
    end

    def tree_hex_class(content)
      "file_#{hexdigest(content.name)}"
    end

    def tree_full_path(content)
      if params[:path]
        File.join(params[:path], content.name)
      else
        content.name
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.08048595292331055, 'fraction_numerical': 0.0, 'mean_word_length': 2.0580046403712298, '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': '118189', 'n_tokens_mistral': 429, 'n_tokens_neox': 426, 'n_words': 88}