<commit_before>/**
 * Created by Admin on 15.07.2017.
 */

$(document).ready(function () {
    var web_sites_block = $('.web-sites');
    var href_pattern_before = /([a-z]{3,6}:\/\/)/g;
    var href_pattern_after = /\/([\w@\/?=&\.%#]{0,256})\/?/g;

    var other_names_block = $('.other-names');

    web_sites_block.each(function (index, element) {
        var $sites = $(element).data('ws').split(',');

        $sites.forEach(function (site) {
            $(element).append(tags.tag({
                tag: 'a',
                tagContent: tags.tag({
                    tag: 'span',
                    attributes: {
                        class: 'label label-success'
                    },
                    tagContent: site.replace(href_pattern_before, '').replace(href_pattern_after, '')
                }),
                attributes: {
                    href: site,
                    style: 'padding-right: 4px',
                    target: '_blank'
                }
            }));
        });
    });

    other_names_block.each(function (index, element) {
        var $other_names = $(element).data('on');

        $other_names.forEach(function (other_name) {
            $(element).append(tags.tag({
                tag: 'a',
                tagContent: tags.tag({
                    tag: 'span',
                    attributes: {
                        class: 'label label-default'
                    },
                    tagContent: other_name.name
                }),
                attributes: {
                    href: (typeof other_name.href != 'undefined')?other_name.href:'',
                    style: 'padding-right: 4px'
                }
            }));
        });
    });
});<commit_msg>Изменена логика вывода списка ников-алиасов<commit_after>/**
 * Created by Admin on 15.07.2017.
 */

$(document).ready(function () {
    var web_sites_block = $('.web-sites');
    var href_pattern_before = /([a-z]{3,6}:\/\/)/g;
    var href_pattern_after = /\/([\w@\/?=&\.%#]{0,256})\/?/g;

    var other_names_block = $('.other-names');

    web_sites_block.each(function (index, element) {
        var $sites = $(element).data('ws').split(',');

        $sites.forEach(function (site) {
            $(element).append(tags.tag({
                tag: 'a',
                tagContent: tags.tag({
                    tag: 'span',
                    attributes: {
                        class: 'label label-success'
                    },
                    tagContent: site.replace(href_pattern_before, '').replace(href_pattern_after, '')
                }),
                attributes: {
                    href: site,
                    style: 'padding-right: 4px',
                    target: '_blank'
                }
            }));
        });
    });

    other_names_block.each(function (index, element) {
        var $other_names = $(element).data('on').split('|');

        $other_names.forEach(function (other_name) {
            $(element).append(tags.tag({
                tag: 'a',
                tagContent: tags.tag({
                    tag: 'span',
                    attributes: {
                        class: 'label label-default'
                    },
                    tagContent: other_name.name
                }),
                attributes: {
                    href: (typeof other_name.href != 'undefined')?other_name.href:'',
                    style: 'padding-right: 4px'
                }
            }));
        });
    });
});
{'fraction_non_alphanumeric': 0.15606276747503567, 'fraction_numerical': 0.00912981455064194, 'mean_word_length': 1.2840390879478827, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1962130', 'n_tokens_mistral': 1025, 'n_tokens_neox': 934, 'n_words': 160}