<commit_before>// Youtube iframe init
var tag = document.createElement('script');

tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

// This function creates an <iframe> (and YouTube player)
// after the API code downloads.
function onYouTubeIframeAPIReady() {
  youtubePlayer = new YT.Player('youtubePlayer', {
    height: '390',
    width: '640',
    playerVars: {iv_load_policy: '3',modestbranding:'1',rel:'0',controls:'0',},
    events: {
      onReady : function(){
        youtubePlayer.initialized = true;
        youtubePlayerControl.set_volume(cookie_volume);
        if(typeof current_music !== "undefined" && current_music_source === "Youtube"){
          youtubePlayerControl.play({
            musicId: current_music,
            timer_start: current_time_past,
            timer_end: current_music_timer_end,
          });
        }
      },
      onError : onPlayerError,
    }
  });
}

var youtubePlayerControl = {
  play: function(options) {
    if(youtubePlayer.initialized) {
      var music_options = {
        videoId: options.musicId,<commit_msg>Fix call undefined function<commit_after>// Youtube iframe init
var tag = document.createElement('script');

tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

// This function creates an <iframe> (and YouTube player)
// after the API code downloads.
function onYouTubeIframeAPIReady() {
  youtubePlayer = new YT.Player('youtubePlayer', {
    height: '390',
    width: '640',
    playerVars: {iv_load_policy: '3',modestbranding:'1',rel:'0',controls:'0',},
    events: {
      onReady : function(){
        youtubePlayer.initialized = true;
        youtubePlayerControl.set_volume(cookie_volume);
        if(typeof current_music !== "undefined" && current_music_source === "Youtube"){
          youtubePlayerControl.play({
            musicId: current_music,
            timer_start: current_time_past,
            timer_end: current_music_timer_end,
          });
        }
      },
    }
  });
}

var youtubePlayerControl = {
  play: function(options) {
    if(youtubePlayer.initialized) {
      var music_options = {
        videoId: options.musicId,
{'fraction_non_alphanumeric': 0.12579147319544112, 'fraction_numerical': 0.009286618826509076, 'mean_word_length': 3.4299065420560746, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6584243', 'n_tokens_mistral': 737, 'n_tokens_neox': 692, 'n_words': 136}