<commit_before>(function main($window, $document) {

    "use strict";

    /**
     * @module Cinematic
     * @author <NAME>
     * @link
     * @constructor
     */
    var app = $window.Cinematic = function Cinematic(videoElement) {

        if (!(videoElement instanceof $window.HTMLVideoElement)) {

            // Passed element is not an instance of `HTMLVideoElement``.
            this.throwException('Element passed into constructor must be an instance of HTMLVideoElement');

        }

        /**
         * Invoked once the meta data has been loaded for the video.
         *
         * @property onloadedmetadata
         * @type {Function}
         */
        videoElement.onloadedmetadata = function onLoadedMetaData() {
            
            var renderFrame = function renderFrame() {

                var scrollOffset   = window.scrollY + window.innerHeight,
                    documentHeight = this.computeDocumentHeight(),
                    duration       = videoElement.duration;<commit_msg>Refactored module<commit_after>(function main($window, $document) {

    "use strict";

    /**
     * @module Cinematic
     * @author <NAME>
     * @link
     * @constructor
     */
    var app = $window.Cinematic = function Cinematic(videoElement) {

        if (!(videoElement instanceof $window.HTMLVideoElement)) {

            // Passed element is not an instance of `HTMLVideoElement``.
            this.throwException('Element passed into constructor must be an instance of HTMLVideoElement');

        }

        /**
         * Invoked once the meta data has been loaded for the video.
         *
         * @property onloadedmetadata
         * @type {Function}
         */
        videoElement.onloadedmetadata = function onLoadedMetaData() {
            
            var renderFrame = function renderFrame() {

                var scrollOffset   = $window.scrollY + $window.innerHeight,
                    documentHeight = this.computeDocumentHeight(),
                    duration       = videoElement.duration;
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.0, 'mean_word_length': 1.9666666666666666, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1027147', 'n_tokens_mistral': 504, 'n_tokens_neox': 478, 'n_words': 136}