<commit_before>function initShakaPlayer() {
  // Install polyfills.
  shaka.polyfill.installAll();

  // Find the video element.
  var video = document.getElementById('video');

  // Construct a Player to wrap around it.
  var player = new shaka.player.Player(video);

  // Attach the player to the window so that it can be easily debugged.
  window.player = player;

  // Listen for errors from the Player.
  player.addEventListener('error', function(event) {
    console.error(event);
  });

  // Construct a DashVideoSource to represent the DASH manifest.
  var mpdUrl = $('#mpdSource').val();
  var estimator = new shaka.util.EWMABandwidthEstimator();
  var source = new shaka.player.DashVideoSource(mpdUrl, null, estimator);

  // Load the source into the Player.
  player.load(source);
}<commit_msg>Specifically specify mpd source (to update again once able to upload video to server)<commit_after>function initShakaPlayer() {
  // Install polyfills.
  shaka.polyfill.installAll();

  // Find the video element.
  var video = document.getElementById('video');

  // Construct a Player to wrap around it.
  var player = new shaka.player.Player(video);

  // Attach the player to the window so that it can be easily debugged.
  window.player = player;

  // Listen for errors from the Player.
  player.addEventListener('error', function(event) {
    console.error(event);
  });

  // Construct a DashVideoSource to represent the DASH manifest.
  //var mpdUrl = $('#mpdSource').val();
  // use a custom MPD source for now
  var mpdUrl = 'http://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-manifest.mpd';
  var estimator = new shaka.util.EWMABandwidthEstimator();
  var source = new shaka.player.DashVideoSource(mpdUrl, null, estimator);

  // Load the source into the Player.
  player.load(source);
}
{'fraction_non_alphanumeric': 0.11487964989059081, 'fraction_numerical': 0.00437636761487965, 'mean_word_length': 3.7260981912144704, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2482021', 'n_tokens_mistral': 564, 'n_tokens_neox': 531, 'n_words': 173}