<commit_before><!DOCTYPE html>
<html>
<head>
  <!-- // [TEMPLATE header_full] -->
  <title>Video: Provide captions with the track element</title>
  <style type="text/css">
    #container {
      max-width: 480px;
      margin-left: auto;
      margin-right: auto;
    }

    video {
      max-width: 100%;
    }

  </style>
</head>
<body>
<div id="container" role="main">
  <h1>Video: Provide captions with the <code>track</code> element</h1>
  <!-- // [START track] -->
  <video src="chrome.webm" controls>
    <track src="chrome-subtitles-en.vtt" label="English captions"
           kind="captions" srclang="en" default />
    <p>This browser does not support the video element.</p>
  </video>
  <!-- // [END track] -->


  <div id="srcInfo" class="is-hidden">
    <p>
      <b>Event type:</b> <span id="srcEvent"></span><br>
      <b>Current source file:</b> <span id="srcFile"></span><br>
      <b>Video size:</b> <span id="srcWidth"></span>&times;<span id="srcHeight"></span>
    </p>
  </div>


  <script>

  function init() {
    document.querySelector("video").addEventListener("loadedmetadata", showMetadata);
  }

  function showMetadata(evt) {
    var srcInfo = document.querySelector("#srcInfo");
    var srcEvent = document.querySelector("#srcEvent");
    var srcFile = document.querySelector("#srcFile");
    var srcWidth = document.querySelector("#srcWidth");
    var srcHeight = document.querySelector("#srcHeight");

    srcInfo.classList.remove("is-hidden");
    srcEvent.textContent = evt.type;
    srcFile.textContent = this.currentSrc.replace(/^.*[\\\/]/, '');
    srcWidth.textContent = this.videoWidth;
    srcHeight.textContent = this.videoHeight;
  }

  init();

  </script>
</div>
<!-- // [TEMPLATE footer] -->
</body>
</html>
<commit_msg>Added source elements back to track.html example<commit_after><!DOCTYPE html>
<html>
<head>
  <!-- // [TEMPLATE header_full] -->
  <title>Video: Provide captions with the track element</title>
  <style type="text/css">
    #container {
      max-width: 480px;
      margin-left: auto;
      margin-right: auto;
    }

    video {
      max-width: 100%;
    }

  </style>
</head>
<body>
<div id="container" role="main">
  <h1>Video: Provide captions with the <code>track</code> element</h1>
  <!-- // [START track] -->
  <video controls>
      <source src="chrome.webm" type="video/webm" />
      <source src="chrome.mp4" type="video/mp4" />
    <track src="chrome-subtitles-en.vtt" label="English captions"
           kind="captions" srclang="en" default />
    <p>This browser does not support the video element.</p>
  </video>
  <!-- // [END track] -->


  <div id="srcInfo" class="is-hidden">
    <p>
      <b>Event type:</b> <span id="srcEvent"></span><br>
      <b>Current source file:</b> <span id="srcFile"></span><br>
      <b>Video size:</b> <span id="srcWidth"></span>&times;<span id="srcHeight"></span>
    </p>
  </div>


  <script>

  function init() {
    document.querySelector("video").addEventListener("loadedmetadata", showMetadata);
  }

  function showMetadata(evt) {
    var srcInfo = document.querySelector("#srcInfo");
    var srcEvent = document.querySelector("#srcEvent");
    var srcFile = document.querySelector("#srcFile");
    var srcWidth = document.querySelector("#srcWidth");
    var srcHeight = document.querySelector("#srcHeight");

    srcInfo.classList.remove("is-hidden");
    srcEvent.textContent = evt.type;
    srcFile.textContent = this.currentSrc.replace(/^.*[\\\/]/, '');
    srcWidth.textContent = this.videoWidth;
    srcHeight.textContent = this.videoHeight;
  }

  init();

  </script>
</div>
<!-- // [TEMPLATE footer] -->
</body>
</html>

{'fraction_non_alphanumeric': 0.18871542043275816, 'fraction_numerical': 0.0049301561216105174, 'mean_word_length': 3.306603773584906, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '2015546', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1187, 'n_words': 249}