<commit_before>import window from 'global/window';
import document from 'global/document';
import $ from 'jquery';
import videojs from 'video.js';

const player = window.player = videojs('preview-player', {
  fluid: true,
  plugins: {
    mux: {
      data: {
        property_key: 'VJSISBEST',
        video_title: 'The Boids!',
        video_id: 1
      }
    }
  }
});


const overlay = $('.videojs-hero-overlay');
player.on(['play', 'pause'], function() {
  $overlay.toggleClass('transparent');
});

// Poor man's lazy loading the iframe content to speed up homeage loading
setTimeout(function(){<commit_msg>use overlay instead of<commit_after>import window from 'global/window';
import document from 'global/document';
import $ from 'jquery';
import videojs from 'video.js';

const player = window.player = videojs('preview-player', {
  fluid: true,
  plugins: {
    mux: {
      data: {
        property_key: 'VJSISBEST',
        video_title: 'The Boids!',
        video_id: 1
      }
    }
  }
});


const overlay = $('.videojs-hero-overlay');
player.on(['play', 'pause'], function() {
  overlay.toggleClass('transparent');
});

// Poor man's lazy loading the iframe content to speed up homeage loading
setTimeout(function(){
{'fraction_non_alphanumeric': 0.14853896103896103, 'fraction_numerical': 0.0016233766233766235, 'mean_word_length': 3.566666666666667, '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': '4774464', 'n_tokens_mistral': 391, 'n_tokens_neox': 374, 'n_words': 104}