<commit_before>$(document).ready(function () {
    //document.body.style.backgroundColor="red";
    $('.export').remove();
    $('.dict-filter.dict-actions').find('.last-btn').before('<a class="export" role="button"><button data-tooltip="Export"><i style="display: inline-block; background: url(https://raw.githubusercontent.com/bilabon/Export-leo/master/export-leo-16.png) no-repeat; width: 16px; height: 16px;"></i></button></a>');

    $(".export").click(function () {
        var $table = $('div.dict-item-word.checked').find('.item-word-translate');
        function exportTableToCSV($table, filename) {

            var colDelim = '","', rowDelim = '"\r\n', csv = '';
            $table.each(function(index) {
                var eng = $.trim($(this).find('b').text());
                var rus = $.trim($(this).find('span').text());
                csv += '"' + index + colDelim + eng + colDelim + rus + rowDelim;
            });
            console.log(csv);

            var csvData = 'data:application/csv;charset=utf-8,' + encodeURIComponent(csv);

            $(this).attr({
                'download': filename,
                'href': csvData
            });
        }
        exportTableToCSV.apply(this, [$table, 'lingualeo.csv']);
    });
});<commit_msg>minor fix in main js<commit_after>$(document).ready(function () {
    $('.export').remove();
    $('.dict-filter.dict-actions').find('.last-btn').before('<a class="export" role="button"><button data-tooltip="Export"><i style="display: inline-block; background: url(https://raw.githubusercontent.com/bilabon/Export-leo/master/export-leo-16.png) no-repeat; width: 16px; height: 16px;"></i></button></a>');

    $(".export").click(function () {
        var $table = $('div.dict-item-word.checked').find('.item-word-translate');
        function exportTableToCSV($table, filename) {

            var colDelim = '","', rowDelim = '"\r\n', csv = '';
            $table.each(function(index) {
                var eng = $.trim($(this).find('b').text());
                var rus = $.trim($(this).find('span').text());
                csv += '"' + index + colDelim + eng + colDelim + rus + rowDelim;
            });

            var csvData = 'data:application/csv;charset=utf-8,' + encodeURIComponent(csv);

            $(this).attr({
                'download': filename,
                'href': csvData
            });
        }
        exportTableToCSV.apply(this, [$table, 'lingualeo.csv']);
    });
});
{'fraction_non_alphanumeric': 0.21029173419773095, 'fraction_numerical': 0.005672609400324149, 'mean_word_length': 2.502127659574468, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4898040', 'n_tokens_mistral': 776, 'n_tokens_neox': 742, 'n_words': 112}