<commit_before>h5(data-root_path=params[:root_path] data-extra_path=params[:extra_path])
  span &nbsp;&nbsp;
  =path_split_links params[:extra_path]
.panel.panel-default
  .panel-heading
    span 当前目录&nbsp;
    button.btn.btn-success.btn-xs.pull-right#new-file-btn
      span.glyphicon.glyphicon-plus
      ="新建"
  table.table.table-hover
    - @directories.each do |item|
      tr
        td(data-item_path="#{params[:extra_path]}/#{item.name}" data-item_name=item.name)
          - if item.file?
            span.glyphicon(style="color:gray" class=file_icon_style(item.path)) &nbsp;
            a(href=directory_path(1)+"?root_path=#{params[:root_path]}&extra_path=#{params[:extra_path]}/#{item.name}")=item.name
          -else
            span.glyphicon.glyphicon-folder-open(style="color:#FFBF2E") &nbsp;
            a(href=directories_path+"?extra_path=#{params[:extra_path]}/#{item.name}")=item.name

          span.glyphicon.glyphicon-option-horizontal.pull-right.file-actions-btn(style="color:#ddd" data-item_path="#{params[:extra_path]}/#{item.name}" data-item_name=item.name)

/选择文件类型的选择器
.mi-select#choose-filetype-select
  .select
    .header<commit_msg>添加上传按钮<commit_after>h5(data-root_path=params[:root_path] data-extra_path=params[:extra_path])
  span &nbsp;&nbsp;
  =path_split_links params[:extra_path]
.panel.panel-default
  .panel-heading
    span 当前目录&nbsp;

    .pull-right
      button.btn.btn-warning.btn-xs#upload-file-btn
        span.glyphicon.glyphicon-upload
        span 上传
      span &nbsp;&nbsp;
      button.btn.btn-success.btn-xs#new-file-btn
        span.glyphicon.glyphicon-plus
        span 新建

  table.table.table-hover
    - @directories.each do |item|
      tr
        td(data-item_path="#{params[:extra_path]}/#{item.name}" data-item_name=item.name)
          - if item.file?
            span.glyphicon(style="color:gray" class=file_icon_style(item.path)) &nbsp;
            a(href=directory_path(1)+"?root_path=#{params[:root_path]}&extra_path=#{params[:extra_path]}/#{item.name}")=item.name
          -else
            span.glyphicon.glyphicon-folder-open(style="color:#FFBF2E") &nbsp;
            a(href=directories_path+"?extra_path=#{params[:extra_path]}/#{item.name}")=item.name

          span.glyphicon.glyphicon-option-horizontal.pull-right.file-actions-btn(style="color:#ddd" data-item_path="#{params[:extra_path]}/#{item.name}" data-item_name=item.name)

/选择文件类型的选择器
.mi-select#choose-filetype-select
  .select
    .header
{'fraction_non_alphanumeric': 0.16491511721907842, 'fraction_numerical': 0.002425222312045271, 'mean_word_length': 3.678638941398866, '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': '4316195', 'n_tokens_mistral': 911, 'n_tokens_neox': 905, 'n_words': 81}