<commit_before>;(function(){
    if (!navigator.getUserMedia) {
        navigator.getUserMedia =
            navigator.webkitGetUserMedia ||
            navigator.mozGetUserMedia ||
            navigator.msGetUserMedia;
    }

    var workbench = document.getElementById('workbench');
    if (navigator && navigator.getUserMedia) {
        var video = document.createElement('video');
        video.setAttribute('width', 640);
        workbench.appendChild(video);
    } else {
        workbench.innerHTML = 'Something is amiss';
    }
})()<commit_msg>Request video<commit_after>;(function(){
    if (!navigator.getUserMedia) {
        navigator.getUserMedia =
            navigator.webkitGetUserMedia ||
            navigator.mozGetUserMedia ||
            navigator.msGetUserMedia;
    }

    var workbench = document.getElementById('workbench');
    if (navigator && navigator.getUserMedia) {
        var video = document.createElement('video');
        video.setAttribute('width', 640);
        workbench.appendChild(video);
        navigator.getUserMedia({audio: true, video: true}, function(stream) {
            video.src = window.URL.createObjectURL(stream);
        }, function(error) {
            workbench.innerHTML = 'Did not get video';
            console.log(e);
        });
    } else {
        workbench.innerHTML = 'Something is amiss';
    }
})()
{'fraction_non_alphanumeric': 0.12371888726207907, 'fraction_numerical': 0.004392386530014641, 'mean_word_length': 2.5414507772020727, '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': '5170650', 'n_tokens_mistral': 376, 'n_tokens_neox': 367, 'n_words': 63}