<commit_before>(function(global) {
    'use strict';

    var HISTORY_API_SUPPORTED = !!history.pushState;

    function toggleFolder(evt) {
        if ($(evt.target).closest('.actions').length) {
            // ignore if it comes from inside the action panel
            return;
        }
        $(this)
            .toggleClass('collapsed')
            .next('.sub-tree')
            .find('td > div')
                .slideToggle(150);
    }

    $(document).ready(function() {
        $('.attachments > .dropdown').parent().dropdown();
        if (!window.indicoOfflineSite) {
            setupAttachmentPreview();
        }
    });

    global.setupAttachmentPreview = function setupAttachmentPreview() {
        var attachment = $('.js-preview-dialog');
        var pageURL = location.href.replace(/#.*$/, '');

        // Previewer not supported on mobile browsers
        if ($.mobileBrowser) {
            return;
        }

        $(window).on('hashchange', function(e, initial) {
            if (location.hash.indexOf('#preview:') != 0) {<commit_msg>Pedantic JS fix<commit_after>(function(global) {
    'use strict';

    var HISTORY_API_SUPPORTED = !!history.pushState;

    function toggleFolder(evt) {
        if ($(evt.target).closest('.actions').length) {
            // ignore if it comes from inside the action panel
            return;
        }
        $(this)
            .toggleClass('collapsed')
            .next('.sub-tree')
            .find('td > div')
                .slideToggle(150);
    }

    $(document).ready(function() {
        $('.attachments > .dropdown').parent().dropdown();
        if (!window.indicoOfflineSite) {
            setupAttachmentPreview();
        }
    });

    global.setupAttachmentPreview = function setupAttachmentPreview() {
        var attachment = $('.js-preview-dialog');
        var pageURL = location.href.replace(/#.*$/, '');

        // Previewer not supported on mobile browsers
        if ($.mobileBrowser) {
            return;
        }

        $(window).on('hashchange', function(e, initial) {
            if (location.hash.indexOf('#preview:') !== 0) {
{'fraction_non_alphanumeric': 0.15171441991545326, 'fraction_numerical': 0.0037576326914044154, 'mean_word_length': 1.9873772791023843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3622918', 'n_tokens_mistral': 587, 'n_tokens_neox': 569, 'n_words': 114}