<commit_before><h3>
  <%= link_to 'Apps', '/admin/apps' %> >
  <%= link_to @app_version.app.bundle_id, '/admin/apps/' + @app_version.app.id.to_s + '/versions' %> >
  <%= @app_version.app_name + ' ' + @app_version.version_string %>
</h3>

<%= form_for :app_version, url: '/admin/appversion/' + @app_version.id.to_s, :html => { :multipart => true } do |f| %>

<table class="table table-bordered table-striped">
  <tbody>

    <%# name %>
    <tr>
      <th>Name</th>
      <td><%= @app_version.app_name %></td>
    </tr>

    <%# Icon %>
    <tr>
      <th>Icon</th>
      <td>
        <% if @app_version.thumb_path %>
          <div class="col-lg-3">
            <a href="" class="thumbnail">
              <%= image_tag root_url + 'download/icon/' + @app_version.id.to_s %>
            </a>
          </div>
        <% else %>
          This app doesn't contain an icon.
        <% end %>
      </td>
    </tr>
    
    <%# beta version %>
    <tr>
      <th>Version</th>
      <td><%= @app_version.version_string %></td>
    </tr>

    <%# uploader %>
    <tr>
      <th>Uploader</th>
      <td><%= mail_to @app_version.uploader_email %></td>
    </tr>

    <%# release date %>
    <tr>
      <th>Release Date</th>
      <td><%= @app_version.release_date.to_s %></td>
    </tr>

    <%# change log %>
    <tr>
      <th>Change Log</th>
      <td><%= f.text_area :change_log, :rows => 10, :size => "48x6" %></td>
    </tr>

    <%# download %>
    <tr>
      <th>Download</th>
      <td>
          <%= link_to 'ipa', root_url + @app_version.ipa_download_url %>

          | <%= link_to 'manifest', root_url + 'getmanifest/' + @app_version.id.to_s %>

          <% if @app_version.external_manifest_url && @app_version.external_manifest_url.length != 0 %>
          | <%= link_to 'external manifest', @app_version.external_manifest_url %>
          <% end %>

          <% if (can? :manage, App) && @app_version.dsym_path %>
          | <%= link_to 'dSYM', root_url + @app_version.dsym_download_url %>
          <% end %>
      </td>
    </tr>

    <%# external manifest link %>
    <tr>
      <th>External Manifest URL</th>
      <td><%= f.text_field :external_manifest_url, :size => "48" %></td>
    </tr>

    <%# update dSYM %>
    <tr>
      <th>Update dSYM</th>
      <td><%= file_field_tag 'dsym' %></td>
    </tr>
  </tbody>
</table>
  <p>
    <%= f.submit "Confirm Change" %>
  </p>
<% end %><commit_msg>added some comments for external manifest url<commit_after><h3>
  <%= link_to 'Apps', '/admin/apps' %> >
  <%= link_to @app_version.app.bundle_id, '/admin/apps/' + @app_version.app.id.to_s + '/versions' %> >
  <%= @app_version.app_name + ' ' + @app_version.version_string %>
</h3>

<%= form_for :app_version, url: '/admin/appversion/' + @app_version.id.to_s, :html => { :multipart => true } do |f| %>

<table class="table table-bordered table-striped">
  <tbody>

    <%# name %>
    <tr>
      <th>Name</th>
      <td><%= @app_version.app_name %></td>
    </tr>

    <%# Icon %>
    <tr>
      <th>Icon</th>
      <td>
        <% if @app_version.thumb_path %>
          <div class="col-lg-3">
            <a href="" class="thumbnail">
              <%= image_tag root_url + 'download/icon/' + @app_version.id.to_s %>
            </a>
          </div>
        <% else %>
          This app doesn't contain an icon.
        <% end %>
      </td>
    </tr>
    
    <%# beta version %>
    <tr>
      <th>Version</th>
      <td><%= @app_version.version_string %></td>
    </tr>

    <%# uploader %>
    <tr>
      <th>Uploader</th>
      <td><%= mail_to @app_version.uploader_email %></td>
    </tr>

    <%# release date %>
    <tr>
      <th>Release Date</th>
      <td><%= @app_version.release_date.to_s %></td>
    </tr>

    <%# change log %>
    <tr>
      <th>Change Log</th>
      <td><%= f.text_area :change_log, :rows => 10, :size => "48x6" %></td>
    </tr>

    <%# download %>
    <tr>
      <th>Download</th>
      <td>
          <%= link_to 'ipa', root_url + @app_version.ipa_download_url %>

          | <%= link_to 'manifest', root_url + 'getmanifest/' + @app_version.id.to_s %>

          <% if @app_version.external_manifest_url && @app_version.external_manifest_url.length != 0 %>
          | <%= link_to 'external manifest', @app_version.external_manifest_url %>
          <% end %>

          <% if (can? :manage, App) && @app_version.dsym_path %>
          | <%= link_to 'dSYM', root_url + @app_version.dsym_download_url %>
          <% end %>
      </td>
    </tr>

    <%# external manifest link %>
    <tr>
      <th>External Manifest URL </th>
      <td><%= f.text_field :external_manifest_url, :size => "48" %> <br>( For non-HTTPS TOT2 server :<br>Put manifest file in a place where enabled https (like dropbox), then set the external manifest url here. )</td>
    </tr>

    <%# update dSYM %>
    <tr>
      <th>Update dSYM</th>
      <td><%= file_field_tag 'dsym' %></td>
    </tr>
  </tbody>
</table>
  <p>
    <%= f.submit "Confirm Change" %>
  </p>
<% end %>
{'fraction_non_alphanumeric': 0.20231907237105157, 'fraction_numerical': 0.004598160735705718, 'mean_word_length': 2.211168164313222, 'pattern_counts': {'":': 0, '<': 205, '<?xml version=': 0, '>': 219, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4727169', 'n_tokens_mistral': 2004, 'n_tokens_neox': 1831, 'n_words': 362}