<commit_before>define([
    'require',
    '../lib/jquery'
], function(require) {

    var init = function($el, opts) {
        // find all folders
        var $folders = $el.find('li.folder');

        // inject span.toggle as first child of each folder
        $folders.prepend('<span class="toggle"></span>');

        // all folders are implicitly closed
        $folders.filter(':not(.open,.closed)').addClass('closed');<commit_msg>only folders that contain ul are expandable<commit_after>define([
    'require',
    '../lib/jquery'
], function(require) {

    var init = function($el, opts) {
        // find all folders that contain a ul
        var $folders = $el.find('li.folder:contains(ul)');

        // inject span.toggle as first child of each folder
        $folders.prepend('<span class="toggle"></span>');

        // all folders are implicitly closed
        $folders.filter(':not(.open,.closed)').addClass('closed');
{'fraction_non_alphanumeric': 0.16363636363636364, 'fraction_numerical': 0.0, 'mean_word_length': 2.7590361445783134, 'pattern_counts': {'":': 0, '<': 7, '<?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': '487589', 'n_tokens_mistral': 274, 'n_tokens_neox': 260, 'n_words': 69}