<commit_before>$(function () {
    History.Adapter.bind(window, 'statechange', function () {
        var state = History.getState();
        if (state.data.id === 'sort-assets') {
            renderAssets(state.data.context);
        } else if (state.data.id === 'top-assets') {
            var el = $('.store-left'),
                data = state.data.context;
            //caramel.css($('head'), data.header['sort-assets'].resources.css, 'sort-assets');
            //caramel.code($('head'), data.body['assets'].resources.code);
            async.parallel({
                topAssets: function (callback) {
                    caramel.render('top-assets', data.body['top-assets'].context, callback);
                }
            }, function (err, result) {
                theme.loaded(el, result.sort);
                el.html(result.topAssets);
                $("#top-asset-slideshow-gadget").carouFredSel({
                    items: 4,
                    width: "100%",
                    infinite: false,
                    auto: false,
                    circular: false,
                    pagination: "#top-asset-slideshow-pag-gadget"

                });

                $("#top-asset-slideshow-site").carouFredSel({
                    items: 4,
                    width: "100%",
                    infinite: false,
                    auto: false,
                    circular: false,
                    pagination: "#top-asset-slideshow-pag-site"

                });
                /*el.append(result.paging);
                 caramel.js($('body'), data.body['assets'].resources.js, 'assets', function () {
                 mouseStop();
                 });
                 caramel.js($('body'), data.header['sort-assets'].resources.js, 'sort-assets', function () {
                 updateSortUI();
                 });*/
                $(document).scrollTop(0);
            });
        }
    });

    var search = function () {
        var url;
        if (store.asset) {
            url = caramel.url('/assets/' + store.asset.type + '/?query=' + $('#search').val());
            caramel.data({
                title: null,
                header: ['sort-assets'],
                body: ['assets', 'pagination']
            }, {
                url: url,
                success: function (data, status, xhr) {
                    History.pushState({
                        id: 'sort-assets',
                        context: data
                    }, document.title, url);
                },
                error: function (xhr, status, error) {
                    theme.loaded($('#assets-container').parent(), '<p>Error while retrieving data.</p>');
                }<commit_msg>mouse stop event animation for search results in store home page fixed<commit_after>$(function () {
    History.Adapter.bind(window, 'statechange', function () {
        var state = History.getState();
        if (state.data.id === 'sort-assets') {
            renderAssets(state.data.context);
        } else if (state.data.id === 'top-assets') {
            var el = $('.store-left'),
                data = state.data.context;
            //caramel.css($('head'), data.header['sort-assets'].resources.css, 'sort-assets');
            //caramel.code($('head'), data.body['assets'].resources.code);
            async.parallel({
                topAssets: function (callback) {
                    caramel.render('top-assets', data.body['top-assets'].context, callback);
                }
            }, function (err, result) {
                theme.loaded(el, result.sort);
                el.html(result.topAssets);
                $("#top-asset-slideshow-gadget").carouFredSel({
                    items: 4,
                    width: "100%",
                    infinite: false,
                    auto: false,
                    circular: false,
                    pagination: "#top-asset-slideshow-pag-gadget"

                });

                $("#top-asset-slideshow-site").carouFredSel({
                    items: 4,
                    width: "100%",
                    infinite: false,
                    auto: false,
                    circular: false,
                    pagination: "#top-asset-slideshow-pag-site"

                });
				mouseStop();
                /*el.append(result.paging);
                 caramel.js($('body'), data.body['assets'].resources.js, 'assets', function () {
                 mouseStop();
                 });
                 caramel.js($('body'), data.header['sort-assets'].resources.js, 'sort-assets', function () {
                 updateSortUI();
                 });*/
                $(document).scrollTop(0);
            });
        }
    });

    var search = function () {
        var url;
        if (store.asset) {
            url = caramel.url('/assets/' + store.asset.type + '/?query=' + $('#search').val());
            caramel.data({
                title: null,
                header: ['sort-assets'],
                body: ['assets', 'pagination']
            }, {
                url: url,
                success: function (data, status, xhr) {
                    History.pushState({
                        id: 'sort-assets',
                        context: data
                    }, document.title, url);
                },
                error: function (xhr, status, error) {
                    theme.loaded($('#assets-container').parent(), '<p>Error while retrieving data.</p>');
                }
{'fraction_non_alphanumeric': 0.1516527424627679, 'fraction_numerical': 0.0032691609153650564, 'mean_word_length': 1.265322912381736, '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': '7310750', 'n_tokens_mistral': 1462, 'n_tokens_neox': 1351, 'n_words': 252}