<commit_before>mediaKeysPlugin = {};
(function() {
  if (window.fluid) {
    mediaKeysPlugin.forward = function() {
      $("#player-next").click();
    };
    mediaKeysPlugin.backward = function() {
      $("#player-previous").click();
    };
    mediaKeysPlugin.play = function() {
      if ("none" == $("#player-play").css("display")) {
        $("#player-pause").click();
      } else {
        $("#player-play").click();
      }
    };
  }
})();<commit_msg>Updated media keys userscript to work with Rhapsody's new beta site.<commit_after>mediaKeysPlugin = {};
(function() {
  var play, next, previous;
  if (Rhapsody) {
    play = function () {
      if (Rhapsody.queueController.isPlaying) {
        Rhapsody.queueController.pause();
      } else {
        Rhapsody.queueController.resume();
      }
    };
    next = function () {
      if (Rhapsody.queueController.isPlaying) {
        Rhapsody.queueController.playNext();
      }
    };
    previous = function () {
      if (Rhapsody.queueController.isPlaying) {
        Rhapsody.queueController.playPrevious();
      }
    };
  } else {
    play = function () {
      if ("none" == $("#player-play").css("display")) {
        $("#player-pause").click();
      } else {
        $("#player-play").click();
      }
    };
    next = function () {
      $("#player-next").click();
    };
    previous = function () {
      $("#player-previous").click();
    };
  }
  if (window.fluid) {
    mediaKeysPlugin.forward = function() {
      next();
    };
    mediaKeysPlugin.backward = function() {
      previous();
    };
    mediaKeysPlugin.play = function() {
      play();
    };
  }
})();
{'fraction_non_alphanumeric': 0.18932038834951456, 'fraction_numerical': 0.0, 'mean_word_length': 2.3448275862068964, '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': '200616', 'n_tokens_mistral': 498, 'n_tokens_neox': 500, 'n_words': 79}