<commit_before><% if object.url.present? && object.aspect_ratio.present? %>
  <div class="embed-responsive embed-responsive-<%= object.aspect_ratio_class %>">
    <iframe class="embed-responsive-item" src="<%= object.embed_url %>" allowfullscreen></iframe>
  </div>

  <% if object.caption.present? %>
    <div class="row">
      <div class="col-12 mt-3 text-center">
        <%= object.caption %>
      </div>
    </div>
  <% end %>

<% else %>
  <p><%= t 'b.msg.flexible_content.no_video_present' %></p>
<% end %>
<commit_msg>Show the video caption in the backend if filled in.<commit_after><% if object.url.present? && object.aspect_ratio.present? %>
  <div class="embed-responsive embed-responsive-<%= object.aspect_ratio_class %>">
    <iframe class="embed-responsive-item" src="<%= object.embed_url %>" allowfullscreen></iframe>
  </div>

  <% if object.caption.present? %>
    <% if Udongo.config.flexible_content.video_caption_editor? %>
      <%= object.caption.html_safe %>
    <% else %>
      <div class="text-center">
        <%= object.caption %>
      </div>
    <% end %>
  <% end %>

<% else %>
  <p><%= t 'b.msg.flexible_content.no_video_present' %></p>
<% end %>

{'fraction_non_alphanumeric': 0.19796954314720813, 'fraction_numerical': 0.0025380710659898475, 'mean_word_length': 3.532567049808429, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '2545310', 'n_tokens_mistral': 449, 'n_tokens_neox': 396, 'n_words': 73}