<commit_before>{{define "title"}}Upload magnet{{end}}
{{define "content"}}
  <div class="blockBody">
  {{with .Upload}}
  <hr>
  <form enctype="multipart/form-data" role="upload" method="POST">
    {{ range (index $.FormErrors "errors")}}
      <div class="alert alert-danger"><a class="panel-close close" data-dismiss="alert">×</a><i class="glyphicon glyphicon-exclamation-sign"></i> {{ . }}</div>
    {{end}}
      <div class="form-group">
      <label for="name">{{call $.T "name"}}</label>
          <input type="text" name="name" id="name" class="form-control" placeholder="{{call $.T "file_name"}}" value="{{.Name}}" autofocus required>
      </div>
      <div class="form-group">
          <label for="torrent">{{call $.T "torrent_file"}}</label>
          <input type="file" name="torrent" id="torrent" accept=".torrent">
          <p class="help-block">{{call $.T "uploading_file_prefills_fields"}}</p>
      </div>
      <div class="form-group">
          <label for="magnet">{{call $.T "magnet_link"}}</label>
          <input  type="text" name="magnet" id="magnet" class="form-control"
          style="width:60rem" placeholder="{{call $.T "magnet_link"}}" value="{{.Magnet}}">
      </div>
      <div class="form-group">
          <label for="c">{{call $.T "category"}}</label>
          <select name="c" id="c" class="form-control input-sm" required>
              <option value="">{{call $.T "select_a_torrent_category"}}</option>
              {{ if Sukebei }}
              <option value="1_" {{if eq .Category "1_"}}selected{{end}}>{{call $.T "art"}}</option>
              <option value="1_1" {{if eq .Category "1_1"}}selected{{end}}>{{call $.T "art_anime"}}</option>
              <option value="1_2" {{if eq .Category "1_2"}}selected{{end}}>{{call $.T "art_doujinshi"}}</option>
              <option value="1_3" {{if eq .Category "1_3"}}selected{{end}}>{{call $.T "art_games"}}</option>
              <option value="1_4" {{if eq .Category "1_4"}}selected{{end}}>{{call $.T "art_manga"}}</option>
              <option value="1_5" {{if eq .Category "1_5"}}selected{{end}}>{{call $.T "art_pictures"}}</option>
              <option value="2_" {{if eq .Category "2_"}}selected{{end}}>{{call $.T "real_life"}}</option>
              <option value="2_1" {{if eq .Category "2_1"}}selected{{end}}>{{call $.T "real_life_photobooks_and_Pictures"}}</option>
              <option value="2_2" {{if eq .Category "2_2"}}selected{{end}}>{{call $.T "real_life_videos"}}</option>
              {{ else }}
              <option value="3_" {{if eq .Category "3_"}}selected{{end}}>{{call $.T "anime"}}</option>
              <option value="3_12" {{if eq .Category "3_12"}}selected{{end}}>{{call $.T "anime_amv"}}</option>
              <option value="3_5" {{if eq .Category "3_5"}}selected{{end}}>{{call $.T "anime_english_translated"}}</option>
              <option value="3_13" {{if eq .Category "3_13"}}selected{{end}}>{{call $.T "anime_non_english_translated"}}</option>
              <option value="3_6" {{if eq .Category "3_6"}}selected{{end}}>{{call $.T "anime_raw"}}</option>
              <option value="2_" {{if eq .Category "2_"}}selected{{end}}>{{call $.T "audio"}}</option>
              <option value="2_3" {{if eq .Category "2_3"}}selected{{end}}>{{call $.T "audio_lossless"}}</option>
              <option value="2_4" {{if eq .Category "2_4"}}selected{{end}}>{{call $.T "audio_lossy"}}</option>
              <option value="4_" {{if eq .Category "4_"}}selected{{end}}>{{call $.T "literature"}}</option>
              <option value="4_7" {{if eq .Category "4_7"}}selected{{end}}>{{call $.T "literature_english_translated"}}</option>
              <option value="4_8" {{if eq .Category "4_8"}}selected{{end}}>{{call $.T "literature_raw"}}</option>
              <option value="4_14" {{if eq .Category "4_14"}}selected{{end}}>{{call $.T "literature_non_english_translated"}}</option>
              <option value="5_" {{if eq .Category "5_"}}selected{{end}}>{{call $.T "live_action"}}</option>
              <option value="5_9" {{if eq .Category "5_9"}}selected{{end}}>{{call $.T "live_action_english_translated"}}</option>
              <option value="5_10" {{if eq .Category "5_10"}}selected{{end}}>{{call $.T "live_action_idol_pv"}}</option>
              <option value="5_18" {{if eq .Category "5_18"}}selected{{end}}>{{call $.T "live_action_non_english_translated"}}</option>
              <option value="5_11" {{if eq .Category "5_11"}}selected{{end}}>{{call $.T "live_action_raw"}}</option>
              <option value="6_" {{if eq .Category "6_"}}selected{{end}}>{{call $.T "pictures"}}</option>
              <option value="6_15" {{if eq .Category "6_15"}}selected{{end}}>{{call $.T "pictures_graphics"}}</option>
              <option value="6_16" {{if eq .Category "6_16"}}selected{{end}}>{{call $.T "pictures_photos"}}</option>
              <option value="1_" {{if eq .Category "1_"}}selected{{end}}>{{call $.T "software"}}</option>
              <option value="1_1" {{if eq .Category "1_1"}}selected{{end}}>{{call $.T "software_applications"}}</option>
              <option value="1_2" {{if eq .Category "1_2"}}selected{{end}}>{{call $.T "software_games"}}</option>
              {{ end }}
          </select>
          <p class="help-block">{{ call $.T "please_include_our_tracker" }}</p>
      </div>
      <div class="form-group">
      	  <input type="checkbox" name="remake" id="remake" >
          <label for="remake">{{call $.T "mark_as_remake"}}</label>
      </div>

      <div class="form-group">
        <label for="website_link">{{call $.T "website_link"}}</label>
        <input name="website_link" id="website_link" class="form-control" type="text" value="{{.WebsiteLink}}">
      </div>
      <div class="form-group">
          <label for="desc">{{call $.T "torrent_description"}}</label>
          <p class="help-block">{{call $.T "description_markdown_notice"}}</p><commit_msg>Remove parent categories on upload form. (#688)<commit_after>{{define "title"}}Upload magnet{{end}}
{{define "content"}}
  <div class="blockBody">
  {{with .Upload}}
  <hr>
  <form enctype="multipart/form-data" role="upload" method="POST">
    {{ range (index $.FormErrors "errors")}}
      <div class="alert alert-danger"><a class="panel-close close" data-dismiss="alert">×</a><i class="glyphicon glyphicon-exclamation-sign"></i> {{ . }}</div>
    {{end}}
      <div class="form-group">
      <label for="name">{{call $.T "name"}}</label>
          <input type="text" name="name" id="name" class="form-control" placeholder="{{call $.T "file_name"}}" value="{{.Name}}" autofocus required>
      </div>
      <div class="form-group">
          <label for="torrent">{{call $.T "torrent_file"}}</label>
          <input type="file" name="torrent" id="torrent" accept=".torrent">
          <p class="help-block">{{call $.T "uploading_file_prefills_fields"}}</p>
      </div>
      <div class="form-group">
          <label for="magnet">{{call $.T "magnet_link"}}</label>
          <input  type="text" name="magnet" id="magnet" class="form-control"
          style="width:60rem" placeholder="{{call $.T "magnet_link"}}" value="{{.Magnet}}">
      </div>
      <div class="form-group">
          <label for="c">{{call $.T "category"}}</label>
          <select name="c" id="c" class="form-control input-sm" required>
              <option value="">{{call $.T "select_a_torrent_category"}}</option>
              {{ if Sukebei }}
              <option value="1_1" {{if eq .Category "1_1"}}selected{{end}}>{{call $.T "art_anime"}}</option>
              <option value="1_2" {{if eq .Category "1_2"}}selected{{end}}>{{call $.T "art_doujinshi"}}</option>
              <option value="1_3" {{if eq .Category "1_3"}}selected{{end}}>{{call $.T "art_games"}}</option>
              <option value="1_4" {{if eq .Category "1_4"}}selected{{end}}>{{call $.T "art_manga"}}</option>
              <option value="1_5" {{if eq .Category "1_5"}}selected{{end}}>{{call $.T "art_pictures"}}</option>
              <option value="2_1" {{if eq .Category "2_1"}}selected{{end}}>{{call $.T "real_life_photobooks_and_Pictures"}}</option>
              <option value="2_2" {{if eq .Category "2_2"}}selected{{end}}>{{call $.T "real_life_videos"}}</option>
              {{ else }}
              <option value="3_12" {{if eq .Category "3_12"}}selected{{end}}>{{call $.T "anime_amv"}}</option>
              <option value="3_5" {{if eq .Category "3_5"}}selected{{end}}>{{call $.T "anime_english_translated"}}</option>
              <option value="3_13" {{if eq .Category "3_13"}}selected{{end}}>{{call $.T "anime_non_english_translated"}}</option>
              <option value="3_6" {{if eq .Category "3_6"}}selected{{end}}>{{call $.T "anime_raw"}}</option>
              <option value="2_3" {{if eq .Category "2_3"}}selected{{end}}>{{call $.T "audio_lossless"}}</option>
              <option value="2_4" {{if eq .Category "2_4"}}selected{{end}}>{{call $.T "audio_lossy"}}</option>
              <option value="4_7" {{if eq .Category "4_7"}}selected{{end}}>{{call $.T "literature_english_translated"}}</option>
              <option value="4_8" {{if eq .Category "4_8"}}selected{{end}}>{{call $.T "literature_raw"}}</option>
              <option value="4_14" {{if eq .Category "4_14"}}selected{{end}}>{{call $.T "literature_non_english_translated"}}</option>
              <option value="5_9" {{if eq .Category "5_9"}}selected{{end}}>{{call $.T "live_action_english_translated"}}</option>
              <option value="5_10" {{if eq .Category "5_10"}}selected{{end}}>{{call $.T "live_action_idol_pv"}}</option>
              <option value="5_18" {{if eq .Category "5_18"}}selected{{end}}>{{call $.T "live_action_non_english_translated"}}</option>
              <option value="5_11" {{if eq .Category "5_11"}}selected{{end}}>{{call $.T "live_action_raw"}}</option>
              <option value="6_15" {{if eq .Category "6_15"}}selected{{end}}>{{call $.T "pictures_graphics"}}</option>
              <option value="6_16" {{if eq .Category "6_16"}}selected{{end}}>{{call $.T "pictures_photos"}}</option>
              <option value="1_1" {{if eq .Category "1_1"}}selected{{end}}>{{call $.T "software_applications"}}</option>
              <option value="1_2" {{if eq .Category "1_2"}}selected{{end}}>{{call $.T "software_games"}}</option>
              {{ end }}
          </select>
          <p class="help-block">{{ call $.T "please_include_our_tracker" }}</p>
      </div>
      <div class="form-group">
      	  <input type="checkbox" name="remake" id="remake" >
          <label for="remake">{{call $.T "mark_as_remake"}}</label>
      </div>

      <div class="form-group">
        <label for="website_link">{{call $.T "website_link"}}</label>
        <input name="website_link" id="website_link" class="form-control" type="text" value="{{.WebsiteLink}}">
      </div>
      <div class="form-group">
          <label for="desc">{{call $.T "torrent_description"}}</label>
          <p class="help-block">{{call $.T "description_markdown_notice"}}</p>
{'fraction_non_alphanumeric': 0.22493887530562348, 'fraction_numerical': 0.02236711038667029, 'mean_word_length': 3.431781701444623, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 0, '>': 217, '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': '5653515', 'n_tokens_mistral': 3851, 'n_tokens_neox': 3590, 'n_words': 735}