<commit_before>.flex-video.widescreen
  :erb
    <iframe
      id="ytplayer"
      type="text/html"
      width="640"
      height="390"
      src="https://www.youtube.com/embed/<%= @you_tube_video.remote_video_id %>?cc_load_policy=1&enablejsapi=1&modestbranding=1&playsinline=1&autohide=1&color=white&theme=light&origin=<%= ENV['YOUTUBE_EMBED_ORIGIN'] %>"
      frameborder="0"
      allowfullscreen></iframe>

- if Rails.env.development?
  = link_to rails_admin.edit_url(model_name: 'you_tube~video', id: @you_tube_video.id)

%h1= @you_tube_video.title
- if @you_tube_video.description.present?
  %p= raw(MARKDOWN.render(@you_tube_video.description))

- @you_tube_video.transcripts.each do |transcript|
  %h2= "Transcript #{transcript.using_default_locale? ? '' : "(#{transcript.locale})" }"
  %p= transcript.text
<commit_msg>Format transcriptions as Markdown<commit_after>.flex-video.widescreen
  :erb
    <iframe
      id="ytplayer"
      type="text/html"
      width="640"
      height="390"
      src="https://www.youtube.com/embed/<%= @you_tube_video.remote_video_id %>?cc_load_policy=1&enablejsapi=1&modestbranding=1&playsinline=1&autohide=1&color=white&theme=light&origin=<%= ENV['YOUTUBE_EMBED_ORIGIN'] %>"
      frameborder="0"
      allowfullscreen></iframe>

- if Rails.env.development?
  = link_to rails_admin.edit_url(model_name: 'you_tube~video', id: @you_tube_video.id)

%h1= @you_tube_video.title
- if @you_tube_video.description.present?
  %p= raw(MARKDOWN.render(@you_tube_video.description))

- @you_tube_video.transcripts.each do |transcript|
  %h2= "Transcript #{transcript.using_default_locale? ? '' : "(#{transcript.locale})" }"
  %p= raw(MARKDOWN.render(transcript.text))

{'fraction_non_alphanumeric': 0.1607773851590106, 'fraction_numerical': 0.016489988221436984, 'mean_word_length': 5.315985130111524, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6869297', 'n_tokens_mistral': 680, 'n_tokens_neox': 633, 'n_words': 73}