<commit_before><% content_for :header_tags do %>
  <%= stylesheet_link_tag '/plugin_assets/chili_videos/stylesheets/videos' %>
<% end %>

<div class="contextual">
  <%= link_to(l(:new_video_label), new_project_video_path(@project), :class => 'icon icon-add') if User.current.allowed_to?(:add_video, nil, :global => true) %>
</div>

<h2><%= @video.title %></h2>

<div class="single video">
  <div class="video-cell large" id="video_<%= @video.permalink %>"></div>
  <%- if gravatar_enabled? %>
  <%= link_to(gravatar(@video.<EMAIL>), user_path(@video.user), :title => "Uploaded by #{@video.user.name}") %>
  <%- end %>
  <dl>
    <dt>Length:</dt>
    <dd><%= @video.length %></dd>

    <dt>Description:</dt>
    <dd><%= @video.description %></dd>

    <%- if !gravatar_enabled? %>
      <dt>Uploaded by:</dt>
      <dd><%= link_to @video.user, user_path(@video.user) %></dd>
    <%- end %>

    <%- if @video.version %>
      <dt>Release:</dt>
      <dd><%= link_to @video.version, project_version_path(@project, @video.version) %></dd>
    <%- end %>

    <dt><label for="<%= @video.title %>">Embed:</label></dt>
    <dd><input type="text" id="<%= @video.title %>" class="embed standard" value="<%= video_embed_macro_markup(@video) %>" /></dd>
  </dl>
</div>

<%= video_embed_code(@video, :large) %><commit_msg>Added def text if no video description or title<commit_after><% content_for :header_tags do %>
  <%= stylesheet_link_tag '/plugin_assets/chili_videos/stylesheets/videos' %>
<% end %>

<div class="contextual">
  <%= link_to(l(:new_video_label), new_project_video_path(@project), :class => 'icon icon-add') if User.current.allowed_to?(:add_video, nil, :global => true) %>
</div>

<h2><%= @video.title.blank? ? "(none provided)" : @video.title %></h2>

<div class="single video">
  <div class="video-cell large" id="video_<%= @video.permalink %>"></div>
  <%- if gravatar_enabled? %>
  <%= link_to(gravatar(@video.user.mail), user_path(@video.user), :title => "Uploaded by #{@video.user.name}") %>
  <%- end %>
  <dl>
    <dt>Length:</dt>
    <dd><%= @video.length %></dd>

    <dt>Description:</dt>
    <dd><%= @video.description.blank? ? "(none provided)" : @video.description %></dd>

    <%- if !gravatar_enabled? %>
      <dt>Uploaded by:</dt>
      <dd><%= link_to @video.user, user_path(@video.user) %></dd>
    <%- end %>

    <%- if @video.version %>
      <dt>Release:</dt>
      <dd><%= link_to @video.version, project_version_path(@project, @video.version) %></dd>
    <%- end %>

    <dt><label for="<%= @video.title %>">Embed:</label></dt>
    <dd><input type="text" id="<%= @video.title %>" class="embed standard" value="<%= video_embed_macro_markup(@video) %>" /></dd>
  </dl>
</div>

<%= video_embed_code(@video, :large) %>
{'fraction_non_alphanumeric': 0.24126637554585154, 'fraction_numerical': 0.001455604075691412, 'mean_word_length': 4.286538461538462, 'pattern_counts': {'":': 0, '<': 112, '<?xml version=': 0, '>': 118, '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': '2737113', 'n_tokens_mistral': 1090, 'n_tokens_neox': 1004, 'n_words': 188}