<commit_before>'use strict';

(function() {
    var searchContainer = document.getElementById('best-components-search');
    var searchBtn = searchContainer.querySelector('.best-components-search-btn');
    var searchDropdown = searchContainer.querySelector('.best-components-search-dropdown');
    var searchInput = searchContainer.querySelector('input');
    var searchScenes = searchContainer.querySelector('ul');
    var searchScenesOptions = searchScenes.querySelectorAll('li');
    var stage = document.getElementById('best-stage');
    searchBtn.addEventListener('click', function() {
        if (searchContainer.className === '') {
            searchContainer.className = 'active';
        }
        else {
            searchContainer.className = '';
        }
    });
    searchDropdown.addEventListener('click', function() {
        if (searchContainer.className === 'active') searchContainer.className = 'active expanded';
        else searchContainer.className = 'active';
    });
    [].forEach.call(searchScenesOptions, function(li) {
        li.addEventListener('click', function(event) {
            searchInput.value = event.currentTarget.textContent;
            window.location.search = '?best=' + event.currentTarget.textContent;
        });
    });
    searchInput.value = QUERY.best || 'clickable-square-new';

    if (QUERY.best) {
        if (QUERY.best.split(':').length < 2) QUERY.best = 'famous:demos:' + QUERY.best;
        BEST.deploy(QUERY.best, 'HEAD', '#best-stage');
    }
    else {
        BEST.deploy('famous:demos:clickable-square-new', 'HEAD', '#best-stage');
    }
<commit_msg>Make the default demo 'clickable-square'<commit_after>'use strict';

(function() {
    var searchContainer = document.getElementById('best-components-search');
    var searchBtn = searchContainer.querySelector('.best-components-search-btn');
    var searchDropdown = searchContainer.querySelector('.best-components-search-dropdown');
    var searchInput = searchContainer.querySelector('input');
    var searchScenes = searchContainer.querySelector('ul');
    var searchScenesOptions = searchScenes.querySelectorAll('li');
    var stage = document.getElementById('best-stage');
    searchBtn.addEventListener('click', function() {
        if (searchContainer.className === '') {
            searchContainer.className = 'active';
        }
        else {
            searchContainer.className = '';
        }
    });
    searchDropdown.addEventListener('click', function() {
        if (searchContainer.className === 'active') searchContainer.className = 'active expanded';
        else searchContainer.className = 'active';
    });
    [].forEach.call(searchScenesOptions, function(li) {
        li.addEventListener('click', function(event) {
            searchInput.value = event.currentTarget.textContent;
            window.location.search = '?best=' + event.currentTarget.textContent;
        });
    });
    searchInput.value = QUERY.best || 'clickable-square';

    if (QUERY.best) {
        if (QUERY.best.split(':').length < 2) QUERY.best = 'famous:demos:' + QUERY.best;
        BEST.deploy(QUERY.best, 'HEAD', '#best-stage');
    }
    else {
        BEST.deploy('famous:demos:clickable-square', 'HEAD', '#best-stage');
    }

{'fraction_non_alphanumeric': 0.1473392802214703, 'fraction_numerical': 0.0006151953245155337, 'mean_word_length': 3.336, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3938284', 'n_tokens_mistral': 876, 'n_tokens_neox': 871, 'n_words': 144}