<commit_before>// Add CSS class about JS capability
document.querySelector('body').className += ' has-js ';

// ShowFeatures list button
document.querySelector('#show-features-button')
    .addEventListener('click', function(event) {
        // Prevent scrolling
        event.preventDefault();
        // Toggle features
        var features = document.querySelector('#features').style;
        features.display = (features.display != 'block') ? 'block' : 'none';
    }, false);

// firefox doesn't display subtitles by default
document.querySelector("video").textTracks[0].mode = "showing"<commit_msg>Fix video auto-subtitles<commit_after>// Add CSS class about JS capability
document.querySelector('body').className += ' has-js ';

// ShowFeatures list button
document.querySelector('#show-features-button')
    .addEventListener('click', function(event) {
        // Prevent scrolling
        event.preventDefault();
        // Toggle features
        var features = document.querySelector('#features').style;
        features.display = (features.display != 'block') ? 'block' : 'none';
    }, false);

// firefox doesn't display subtitles by default
var videos = document.getElementsByTagName("video");
for (var i = 0; i < videos.length; i++) {
    if (videos[i].textTracks.length) {
        videos[i].textTracks[0].mode = "showing"
    }
}
{'fraction_non_alphanumeric': 0.14721189591078068, 'fraction_numerical': 0.0022304832713754648, 'mean_word_length': 3.578231292517007, 'pattern_counts': {'":': 0, '<': 4, '<?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': '7603022', 'n_tokens_mistral': 364, 'n_tokens_neox': 363, 'n_words': 87}