<commit_before>/**
 * Created by alex on 16/04/16.
 */
var heroVideo = new heroVideo();
function heroVideo(){
    this.container = document.getElementById('heroVideoJs');
    this.vide = {};
    this.vide.poster = function(){
        var windowDim = {
                w : $(window).width(),
                h : $(window).height()
        },
        file = "cover-ben-desktop-large.jpg";

        if (windowDim.w > 1200){
            file = "cover-ben-desktop-large.jpg";
        }
        else if (windowDim.w > 992){
            file = "cover-ben-desktop-reg.jpg";
        }
        else if (windowDim.w > 768){
            file = "cover-ben-desktop-ipad.jpg";
        }
        else {
            file = "cover-ben-desktop-mobile.jpg";
        }
        return file;

    };
    this.vide.path= {
        mp4 : templateUrl+'/assets/images/drone-video-final.mp4',
        poster : templateUrl+'/assets/images/covers/'+this.vide.poster()
    };
    this.vide.options = {
        volume: 0,
        playbackRate: 1,
        muted: true,
        loop: true,
        autoplay: true,
        position: '50% 50%', // Similar to the CSS `background-position` property.
        posterType: 'jpg', // Poster image type. "detect" — auto-detection; "none" — no poster; "jpg", "png", "gif",... - extensions.
        resizing: true, // Auto-resizing, read: https://github.com/VodkaBears/Vide#resizing
        bgColor: '#B7B7B7', // Allow custom background-color for Vide div,
        className: '' // Add custom CSS class to Vide div
    };

    this.ratio = {
        x: 12,
        y: 5
    };<commit_msg>CDN homepage video<commit_after>/**
 * Created by alex on 16/04/16.
 */
var heroVideo = new heroVideo();
function heroVideo(){
    this.container = document.getElementById('heroVideoJs');
    this.vide = {};
    this.vide.poster = function(){
        var windowDim = {
                w : $(window).width(),
                h : $(window).height()
        },
        file = "cover-ben-desktop-large.jpg";

        if (windowDim.w > 1200){
            file = "cover-ben-desktop-large.jpg";
        }
        else if (windowDim.w > 992){
            file = "cover-ben-desktop-reg.jpg";
        }
        else if (windowDim.w > 768){
            file = "cover-ben-desktop-ipad.jpg";
        }
        else {
            file = "cover-ben-desktop-mobile.jpg";
        }
        return file;

    };
    this.vide.path= {
        mp4 : 'https://s3-ap-southeast-2.amazonaws.com/benhaineswine/drone-video-final.mp4',
        poster : templateUrl+'/assets/images/covers/'+this.vide.poster()
    };
    this.vide.options = {
        volume: 0,
        playbackRate: 1,
        muted: true,
        loop: true,
        autoplay: true,
        position: '50% 50%', // Similar to the CSS `background-position` property.
        posterType: 'jpg', // Poster image type. "detect" — auto-detection; "none" — no poster; "jpg", "png", "gif",... - extensions.
        resizing: true, // Auto-resizing, read: https://github.com/VodkaBears/Vide#resizing
        bgColor: '#B7B7B7', // Allow custom background-color for Vide div,
        className: '' // Add custom CSS class to Vide div
    };

    this.ratio = {
        x: 12,
        y: 5
    };
{'fraction_non_alphanumeric': 0.15332091868404718, 'fraction_numerical': 0.019242706393544383, 'mean_word_length': 1.8197725284339457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 3, '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': '2878956', 'n_tokens_mistral': 1083, 'n_tokens_neox': 1018, 'n_words': 230}