<commit_before>function updateFirstPage(){
    var items = Exhibit.jQuery('div[itemid]');
    var item_ids = items.map(function(){
        var exhibit_item_id = Exhibit.jQuery(this).attr("itemid");
        return database.getObject(exhibit_item_id, 'item_id');
    }).get();

    Exhibit.jQuery.ajax({
        url: "http://localhost:3001/assays/filtered_items",
        data: {item_ids: item_ids, item_type: 'Assay'}
    })
    .done(function( data ) {
            var resource_list_items = data.resource_list_items;
            var groups = Exhibit.jQuery('.exhibit-collectionView-group');
            if (groups.length > 0){
                groups.map(function() {
                    var count = Exhibit.jQuery(this).children('h1').children('.exhibit-collectionView-group-count').children('span').text();
                    var updated_group_content = resource_list_items.slice(0,count).join(' ');
                    resource_list_items = resource_list_items.slice(count);
                    Exhibit.jQuery(this).children('.exhibit-collectionView-group-content').html(updated_group_content);
                });
            }else{
                var collection_view_body = Exhibit.jQuery('.exhibit-collectionView-body');
                collection_view_body.html(resource_list_items.join(' '));
            }

            Exhibit.jQuery('div.exhibit-viewPanel').removeClass('exhibit-ui-protection');
            Exhibit.jQuery('.exhibit-viewPanel-viewContainer').show();

    });
}

<commit_msg>remove group control, it is confusing and causing speed problem if using<commit_after>function updateFirstPage(){
    var items = Exhibit.jQuery('div[itemid]');
    var item_ids = items.map(function(){
        var exhibit_item_id = Exhibit.jQuery(this).attr("itemid");
        return database.getObject(exhibit_item_id, 'item_id');
    }).get();

    Exhibit.jQuery.ajax({
        url: "http://localhost:3001/assays/filtered_items",
        data: {item_ids: item_ids, item_type: 'Assay'}
    })
    .done(function( data ) {
            var resource_list_items = data.resource_list_items;
            var groups = Exhibit.jQuery('.exhibit-collectionView-group');
            if (groups.length > 0){
                groups.map(function() {
                    var count = Exhibit.jQuery(this).children('h1').children('.exhibit-collectionView-group-count').children('span').text();
                    var updated_group_content = resource_list_items.slice(0,count).join(' ');
                    resource_list_items = resource_list_items.slice(count);
                    Exhibit.jQuery(this).children('.exhibit-collectionView-group-content').html(updated_group_content);
                });
            }else{
                var collection_view_body = Exhibit.jQuery('.exhibit-collectionView-body');
                collection_view_body.html(resource_list_items.join(' '));
            }

            Exhibit.jQuery('.exhibit-viewPanel').removeClass('exhibit-ui-protection');
            Exhibit.jQuery('.exhibit-collectionView-header-groupControl').hide();
            Exhibit.jQuery('.exhibit-viewPanel-viewContainer').show();

    });
}


{'fraction_non_alphanumeric': 0.13876511775938893, 'fraction_numerical': 0.004455760661998727, 'mean_word_length': 2.616800920598389, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3005436', 'n_tokens_mistral': 906, 'n_tokens_neox': 847, 'n_words': 114}