<commit_before><div class="sidebar">
  <%= render 'resources/owner', resource: extension %>
  <%= render 'resources/collaborators', collaborators: collaborators, resource: extension %>

  <% if policy(extension).manage? %>
    <%= render "extensions/manage_extension", extension: extension %>
  <% end %>

  <% if extension.up_for_adoption? %>
    <div>
      <%= link_to 'Adopt me!', adoption_extension_path(extension), method: :post, class: 'button radius tiny' %>
    </div>
  <% end %>

  <h3 class="<%= 'show-extension-urls-manage' if policy(extension).manage_extension_urls? %>" rel="edit-extension-urls">
    <% if policy(extension).manage_extension_urls? %>
      <%= link_to '#' do %>
         <i class="fa fa-gear"></i>
      <% end %>
    <% end %>
    Details
  </h3>

  <div class="extension-details">
    <% if policy(extension).manage_extension_urls? %>
      <div class="manage-extension-urls hide">
        <%= form_for extension, data: { abide: true } do |f| %>
          <div class="source-url-field">
            <%= f.text_field :source_url, placeholder: 'Source URL: http://example.com', pattern: 'url' %>
            <small class="error">Must be formatted as a URL.</small>
          </div>

          <div class="issues-url-field">
            <%= f.text_field :issues_url, placeholder: 'Issues URL: http://example.com', pattern: 'url' %>
            <small class="error">Must be formatted as a URL.</small>
          </div>

          <%= f.submit 'Save', class: 'button radius tiny submit-urls', data: { disable_with: 'Saving...' } %>
          <a href="#" class="button radius tiny secondary cancel-submit-urls">Cancel</a>
        <% end %>
      </div>
    <% end %>

    <div class="extension-urls">
      <% if extension.source_url.present? %>
        <%= link_to 'View Source', extension.source_url, class: 'button radius tiny source-url', itemprop: 'codeRepository' %>
      <% end %>

      <% if extension.issues_url.present? %>
        <%= link_to 'View Issues', extension.issues_url, class: 'button secondary radius tiny issues-url', itemprop: 'discussionUrl' %>
      <% end %>
    </div>

    <h4>
      <i class="fa fa-clock-o"></i> Updated <span itemprop="datePublished"><%= (version.try(:updated_at) || extension.updated_at).to_s(:longish) %></span>
      <small>Created on <span itemprop="dateModified"><%= extension.created_at.to_s(:longish) %></span></small>
    </h4>

    <h4>
      <i class="fa fa-desktop"></i> Platforms
      <% if policy(extension).manage? %>
        <a href="#" class="toggle-platforms-edit">edit</a>
        <a href="#" class="toggle-platforms-edit toggle-platforms-hidden">cancel</a>
      <% end %>
    </h4>

    <% if supported_platforms.present? %>
      <ul class="extension_platforms toggle-platforms-edit">
        <% supported_platforms.each do |platform| %>
          <li title="<%= platform.name %>">
            <%= platform.name %>
          </li>
        <% end %>
      </ul>
    <% else %>
      <ul class="extension_platforms">
        <li data-tooltip class="has-tip extension_no_platform_icon" title="Not specified">
          <span class="fa fa-question-circle"></span>
        </li>
      </ul>
    <% end %>

    <%= form_tag({ controller: "extension_versions", action: "update_platforms", extension_id: extension.name, version: version.try(:version) }, method: :put, class: "toggle-platforms-edit toggle-platforms-hidden") do %>
      <ul class="extension_platforms">
        <% SupportedPlatform.all.each do |sp| %>
          <li title="<%= sp.name %>">
            <label>
              <%= check_box_tag :"supported_platforms[]", sp.name, supported_platforms.include?(sp) %>
              <%= sp.name %>
            </label>
          </li>
        <% end %>

        <%= submit_tag "Save", class: "button primary small" %>
      </ul>
    <% end %>

    <h4><i class="fa fa-key"></i> License</h4>
    <p><%= version.try(:license) %></p>

    <h4 class="extension_show_sidebar_downloads">
      <i class="fa fa-download"></i> <span itemprop="interactionCount"><%= number_with_delimiter(version.try(:download_count) || 0) %></span> Downloads of Version <%= version.try(:version) %>
      <small><%= number_with_delimiter(extension.download_count) %> Total Downloads</small>
    </h4>
    <%= link_to "Download Extension", { action: 'download' }, class: 'button secondary radius expand button_download_extension' %>
  </div>
</div>
<commit_msg>Display unknown license<commit_after><div class="sidebar">
  <%= render 'resources/owner', resource: extension %>
  <%= render 'resources/collaborators', collaborators: collaborators, resource: extension %>

  <% if policy(extension).manage? %>
    <%= render "extensions/manage_extension", extension: extension %>
  <% end %>

  <% if extension.up_for_adoption? %>
    <div>
      <%= link_to 'Adopt me!', adoption_extension_path(extension), method: :post, class: 'button radius tiny' %>
    </div>
  <% end %>

  <h3 class="<%= 'show-extension-urls-manage' if policy(extension).manage_extension_urls? %>" rel="edit-extension-urls">
    <% if policy(extension).manage_extension_urls? %>
      <%= link_to '#' do %>
         <i class="fa fa-gear"></i>
      <% end %>
    <% end %>
    Details
  </h3>

  <div class="extension-details">
    <% if policy(extension).manage_extension_urls? %>
      <div class="manage-extension-urls hide">
        <%= form_for extension, data: { abide: true } do |f| %>
          <div class="source-url-field">
            <%= f.text_field :source_url, placeholder: 'Source URL: http://example.com', pattern: 'url' %>
            <small class="error">Must be formatted as a URL.</small>
          </div>

          <div class="issues-url-field">
            <%= f.text_field :issues_url, placeholder: 'Issues URL: http://example.com', pattern: 'url' %>
            <small class="error">Must be formatted as a URL.</small>
          </div>

          <%= f.submit 'Save', class: 'button radius tiny submit-urls', data: { disable_with: 'Saving...' } %>
          <a href="#" class="button radius tiny secondary cancel-submit-urls">Cancel</a>
        <% end %>
      </div>
    <% end %>

    <div class="extension-urls">
      <% if extension.source_url.present? %>
        <%= link_to 'View Source', extension.source_url, class: 'button radius tiny source-url', itemprop: 'codeRepository' %>
      <% end %>

      <% if extension.issues_url.present? %>
        <%= link_to 'View Issues', extension.issues_url, class: 'button secondary radius tiny issues-url', itemprop: 'discussionUrl' %>
      <% end %>
    </div>

    <h4>
      <i class="fa fa-clock-o"></i> Updated <span itemprop="datePublished"><%= (version.try(:updated_at) || extension.updated_at).to_s(:longish) %></span>
      <small>Created on <span itemprop="dateModified"><%= extension.created_at.to_s(:longish) %></span></small>
    </h4>

    <h4>
      <i class="fa fa-desktop"></i> Platforms
      <% if policy(extension).manage? %>
        <a href="#" class="toggle-platforms-edit">edit</a>
        <a href="#" class="toggle-platforms-edit toggle-platforms-hidden">cancel</a>
      <% end %>
    </h4>

    <% if supported_platforms.present? %>
      <ul class="extension_platforms toggle-platforms-edit">
        <% supported_platforms.each do |platform| %>
          <li title="<%= platform.name %>">
            <%= platform.name %>
          </li>
        <% end %>
      </ul>
    <% else %>
      <ul class="extension_platforms">
        <li data-tooltip class="has-tip extension_no_platform_icon" title="Not specified">
          <span class="fa fa-question-circle"></span>
        </li>
      </ul>
    <% end %>

    <%= form_tag({ controller: "extension_versions", action: "update_platforms", extension_id: extension.name, version: version.try(:version) }, method: :put, class: "toggle-platforms-edit toggle-platforms-hidden") do %>
      <ul class="extension_platforms">
        <% SupportedPlatform.all.each do |sp| %>
          <li title="<%= sp.name %>">
            <label>
              <%= check_box_tag :"supported_platforms[]", sp.name, supported_platforms.include?(sp) %>
              <%= sp.name %>
            </label>
          </li>
        <% end %>

        <%= submit_tag "Save", class: "button primary small" %>
      </ul>
    <% end %>

    <h4><i class="fa fa-key"></i> License</h4>
    <p><%= version.try(:license) || "Unknown" %></p>

    <h4 class="extension_show_sidebar_downloads">
      <i class="fa fa-download"></i> <span itemprop="interactionCount"><%= number_with_delimiter(version.try(:download_count) || 0) %></span> Downloads of Version <%= version.try(:version) %>
      <small><%= number_with_delimiter(extension.download_count) %> Total Downloads</small>
    </h4>
    <%= link_to "Download Extension", { action: 'download' }, class: 'button secondary radius expand button_download_extension' %>
  </div>
</div>

{'fraction_non_alphanumeric': 0.18051028436551647, 'fraction_numerical': 0.002472743621445431, 'mean_word_length': 2.974095578383207, 'pattern_counts': {'":': 0, '<': 247, '<?xml version=': 0, '>': 247, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '959944', 'n_tokens_mistral': 2937, 'n_tokens_neox': 2698, 'n_words': 593}