<commit_before>class VideoPopup extends KDView

# THIS NEEDS A DELEGATE

  constructor:(options,data)->
    super options,data
    @setClass "hidden invisible"
    @videoPopup = @getSingleton("windowController").videoPopup
    @embedData = data
    @options = options


  openVideoPopup:->
    h=@getDelegate().getHeight()
    w=@getDelegate().getWidth()
    t=@getDelegate().$().offset()
    @videoPopup?.close()

    popupUrl = "/1.0/video-container.html"

    @videoPopup = window.open popupUrl, "KodingVideo", "menubar=no,location=no,resizable=yes,titlebar=no,scrollbars=no,status=no,innerHeight=#{h},width=#{w},left=#{t.left+window.screenX},top=#{window.screenY+t.top+(window.outerHeight - window.innerHeight)}"
    @getSingleton("windowController").videoPopup = @videoPopup

    @utils.wait 1500, =>          # give the popup some time to open<commit_msg>popup container file location changed, path in window.open adjusted<commit_after>class VideoPopup extends KDView

# THIS NEEDS A DELEGATE

  constructor:(options,data)->
    super options,data
    @setClass "hidden invisible"
    @videoPopup = @getSingleton("windowController").videoPopup
    @embedData = data
    @options = options


  openVideoPopup:->
    h=@getDelegate().getHeight()
    w=@getDelegate().getWidth()
    t=@getDelegate().$().offset()
    @videoPopup?.close()

    popupUrl = "video-container.html"

    @videoPopup = window.open popupUrl, "KodingVideo", "menubar=no,location=no,resizable=yes,titlebar=no,scrollbars=no,status=no,innerHeight=#{h},width=#{w},left=#{t.left+window.screenX},top=#{window.screenY+t.top+(window.outerHeight - window.innerHeight)}"
    @getSingleton("windowController").videoPopup = @videoPopup

    @utils.wait 1500, =>          # give the popup some time to open
{'fraction_non_alphanumeric': 0.14963297571993225, 'fraction_numerical': 0.00564652738565782, 'mean_word_length': 4.848184818481848, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1078257', 'n_tokens_mistral': 578, 'n_tokens_neox': 561, 'n_words': 95}