<commit_before>%section.full-screen-table
  %h2
    TSV Exports!

%p
  TSVs are generated every night.

%table.table.table-striped.table-bordered
  %tbody
    - TsvMaintainer.tsvs.each do |tsv_info|
      %tr
        %td
          Stolen Reports
        %td
          %a{href: tsv_info[:filename] }
        %td
          - if tsv_info['updated_at'].present?
            = l Time.zone.parse(tsv_info['updated_at']), format: :short_with_hour
  
= form_tag admin_update_tsv_blacklist_path, method: :put, multipart: true do
  .control-group.padded
    = label_tag :tsv_blacklist, class: 'control-label' do
      Blacklist Bike Urls, <strong>1 per line</strong>. These can be the id (the number in the url), the bike url, admin url or edit url
    .blog-field
      = text_area_tag :blacklist, @blacklist.map{|i| "#{ENV['BASE_URL']}/bikes/#{i}"}.join("\n"), rows: 10, class: 'control-field'
  .control-group.actions.big-action<commit_msg>tsv view update<commit_after>%section.full-screen-table
  %h2
    TSV Exports!

%p
  TSVs are generated every night.

%table.table.table-striped.table-bordered
  %tbody
    - TsvMaintainer.tsvs.each do |tsv_info|
      %tr
        %td
          = tsv_info['description']
        %td
          %a{href: tsv_info['filename'] }
            = tsv_info['filename']
        %td
          - if tsv_info['updated_at'].present?
            = l Time.zone.parse(tsv_info['updated_at']), format: :short_with_hour
  
= form_tag admin_update_tsv_blacklist_path, method: :put, multipart: true do
  .control-group.padded
    = label_tag :tsv_blacklist, class: 'control-label' do
      Blacklist Bike Urls, <strong>1 per line</strong>. These can be the id (the number in the url), the bike url, admin url or edit url
    .blog-field
      = text_area_tag :blacklist, @blacklist.map{|i| "#{ENV['BASE_URL']}/bikes/#{i}"}.join("\n"), rows: 10, class: 'control-field'
  .control-group.actions.big-action
{'fraction_non_alphanumeric': 0.1342036553524804, 'fraction_numerical': 0.004177545691906005, 'mean_word_length': 2.9833679833679834, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6633049', 'n_tokens_mistral': 682, 'n_tokens_neox': 672, 'n_words': 153}