<commit_before><h1 class="c-heading"><%= gettext("Video") %>: <%= SignDict.Entry.to_string @video.entry %></h1>

<%= if @video.video_url do %>
  <video src="<%= @video.video_url %>" loop controls poster="<%= @video.thumbnail_url %>"></video>
<% end %>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("Entry") %></strong></div>
    <div class="o-grid__cell"><%= link SignDict.Entry.to_string(@video.entry), to: backend_entry_path(@conn, :show, @video.entry) %></div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("User") %></strong></div>
    <div class="o-grid__cell"><%= link @video.user.name, to: backend_user_path(@conn, :show, @video.user) %></div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("video.state") %></strong></div>
    <div class="o-grid__cell"><%= @video.state %></div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("video.copyright") %></strong></div>
    <div class="o-grid__cell"><%= @video.copyright %></div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("video.license") %></strong></div>
    <div class="o-grid__cell"><%= @video.license %></div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("video.original_href") %></strong></div>
    <div class="o-grid__cell"><%= link @video.original_href, to: @video.original_href, target: "_blank", rel: "noopener" %></div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("video.video_url") %></strong></div>
    <div class="o-grid__cell">
      <%= if @video.video_url do %>
        <%= link @video.video_url, to: @video.video_url, target: "_blank", rel: "noopener" %>
      <% else %>
        NONE
      <% end %>
    </div><commit_msg>don’t crash if no original_href is present<commit_after><h1 class="c-heading"><%= gettext("Video") %>: <%= SignDict.Entry.to_string @video.entry %></h1>

<%= if @video.video_url do %>
  <video src="<%= @video.video_url %>" loop controls poster="<%= @video.thumbnail_url %>"></video>
<% end %>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("Entry") %></strong></div>
    <div class="o-grid__cell"><%= link SignDict.Entry.to_string(@video.entry), to: backend_entry_path(@conn, :show, @video.entry) %></div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("User") %></strong></div>
    <div class="o-grid__cell"><%= link @video.user.name, to: backend_user_path(@conn, :show, @video.user) %></div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("video.state") %></strong></div>
    <div class="o-grid__cell"><%= @video.state %></div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("video.copyright") %></strong></div>
    <div class="o-grid__cell"><%= @video.copyright %></div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("video.license") %></strong></div>
    <div class="o-grid__cell"><%= @video.license %></div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("video.original_href") %></strong></div>
    <div class="o-grid__cell">
      <%= if @video.original_href do %>
        <%= link @video.original_href, to: @video.original_href, target: "_blank", rel: "noopener" %>
      <% end %>
    </div>
  </div>
</div>

<div class="o-container--small">
  <div class="o-grid">
    <div class="o-grid__cell o-grid__cell--width-30"><strong><%= gettext("video.video_url") %></strong></div>
    <div class="o-grid__cell">
      <%= if @video.video_url do %>
        <%= link @video.video_url, to: @video.video_url, target: "_blank", rel: "noopener" %>
      <% else %>
        NONE
      <% end %>
    </div>
{'fraction_non_alphanumeric': 0.24758635485947222, 'fraction_numerical': 0.0068654795108345846, 'mean_word_length': 4.203125, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 195, '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': '5514499', 'n_tokens_mistral': 1790, 'n_tokens_neox': 1702, 'n_words': 311}