<commit_before><html>
  <head>
    <link rel="stylesheet" href="https://cdn.plyr.io/2.0.11/plyr.css">
  </head>
  <body>
    <div id='title'>
    </div>
    <video id='player' width='320' height='240' controls>
    </video>

    <script type='text/javascript'>
        fetch('episode.json', {
          credentials: 'same-origin',
        })
          .then(response => response.json())
          .then((episode) => {
            const title = document.querySelector('#title');
            title.appendChild(document.createTextNode(`${episode.show_name} - ${episode.name}`));

            const player = document.getElementById('player');
            const source = document.createElement('source');
            source.setAttribute('src', `${episode.video_url}`);
            player.appendChild(source);
            plyr.setup();
          });
    </script>
    <script src="https://cdn.plyr.io/2.0.11/plyr.js"></script>
  </body>
</html><commit_msg>apps: link the subtitle/caption/VTT file<commit_after><html>
  <head>
    <link rel="stylesheet" href="https://cdn.plyr.io/2.0.11/plyr.css">
  </head>
  <body>
    <div id='title'>
    </div>
    <video id='player' width='320' height='240' controls>
    </video>

    <script type='text/javascript'>
        fetch('episode.json', {
          credentials: 'same-origin',
        })
          .then(response => response.json())
          .then((episode) => {
            const title = document.querySelector('#title');
            title.appendChild(document.createTextNode(`${episode.show_name} - ${episode.name}`));

            const player = document.getElementById('player');

            const source = document.createElement('source');
            source.setAttribute('src', `${episode.video_url}`);
            player.appendChild(source);

            const track = document.createElement('track');
            track.setAttribute('kind', 'captions');
            track.setAttribute('label', 'English subtitles');
            track.setAttribute('default', '');
            track.setAttribute('src', episode.video_url.replace('.webm', '.en.vtt'));
            player.appendChild(track);

            plyr.setup();
          });
    </script>
    <script src="https://cdn.plyr.io/2.0.11/plyr.js"></script>
  </body>
</html>
{'fraction_non_alphanumeric': 0.181978021978022, 'fraction_numerical': 0.012307692307692308, 'mean_word_length': 2.427710843373494, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 37, 'https://': 4, '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': '3694438', 'n_tokens_mistral': 691, 'n_tokens_neox': 670, 'n_words': 104}