<commit_before>App.addChild('Hello', {
  el: '[data-id="hello"]',

  events: {
    'click .btn-play'         : 'showVideo',
    'click .w-lightbox-close' : 'closeVideo'
  },

  activate: function(){
    var that = this;
    this.player = {};
    this.isLightboxOpened = false;
    this.loadIframeAPI();
    window.onYouTubePlayerAPIReady = this.createPlayer;
  },

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

  closeVideo: function(){
    if(!$.isEmptyObject(this.player) && typeof(this.player.pauseVideo) === 'function'){
      this.player.pauseVideo();
    }
    $('body').css('overflow','auto');
    this.$('.w-lightbox-backdrop').animate({'opacity': 0}, 600, function(){<commit_msg>Closes video lightbox faster [fix #94787106]<commit_after>App.addChild('Hello', {
  el: '[data-id="hello"]',

  events: {
    'click .btn-play'         : 'showVideo',
    'click .w-lightbox-close' : 'closeVideo'
  },

  activate: function(){
    var that = this;
    this.player = {};
    this.isLightboxOpened = false;
    this.loadIframeAPI();
    window.onYouTubePlayerAPIReady = this.createPlayer;
  },

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

  closeVideo: function(){
    if(!$.isEmptyObject(this.player) && typeof(this.player.pauseVideo) === 'function'){
      this.player.pauseVideo();
    }
    $('body').css('overflow','auto');
    this.$('.w-lightbox-backdrop').animate({'opacity': 0}, 200, function(){
{'fraction_non_alphanumeric': 0.18186724230976795, 'fraction_numerical': 0.009713977334052886, 'mean_word_length': 3.828125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2996622', 'n_tokens_mistral': 615, 'n_tokens_neox': 596, 'n_words': 92}