<commit_before>var hrefs = [
    "https://bitbucket.org/anshbansal92/",
    "https://gitlab.com/u/asmbansal2",
    "https://github.com/anshbansal",
    "https://www.linkedin.com/in/bansalaseem",
    "https://www.kaggle.com/anshbansal",
    "https://www.twitter.com/AseemBansal2",
    "https://anshbansal.wordpress.com/"
];

var hrefMapping = {
    "anshbansal.wordpress.com": "wordpress.com"
};

function extractDomain(url) {
    var domain;
    //find & remove protocol (http, ftp, etc.) and get domain
    if (url.indexOf("://") > -1) {
        domain = url.split('/')[2];
    }
    else {
        domain = url.split('/')[0];
    }

    //find & remove port number
    domain = domain.split(':')[0];

    return domain;
}

function getFaviconUrl(href) {
    var domain = extractDomain(href);
    if (domain in hrefMapping) {
        domain = hrefMapping[domain];
    }
    return "https://" + domain + "/favicon.ico"
}

$(function () {

    var iconTemplate = _.template($("#icon-template").html());

    function htmlForIcon(href) {
        return iconTemplate({
            href: href,
            iconUrl: getFaviconUrl(href)
        });
    }
<commit_msg>added more websites<commit_after>var hrefs = [
    "https://bitbucket.org/anshbansal92/",
    "https://gitlab.com/u/asmbansal2",
    "https://github.com/anshbansal",
    "https://www.linkedin.com/in/bansalaseem",
    "https://www.kaggle.com/anshbansal",
    "https://www.twitter.com/AseemBansal2",
    "https://anshbansal.wordpress.com/",
    "https://programmingmadeagame.wordpress.com/",
    "http://stackoverflow.com/users/2235567/aseem-bansal",
    "https://www.codechef.com/users/anshbansal",
    "https://en.gravatar.com/anshbansal92",
    "http://www.goodreads.com/user/show/32696810-aseem-bansal",
    "https://about.me/anshbansal"
];

var hrefMapping = {
    "anshbansal.wordpress.com": "https://wordpress.com/favicon.ico",
    "programmingmadeagame.wordpress.com": "https://wordpress.com/favicon.ico",
    "www.codechef.com": "https://www.codechef.com/misc/favicon.ico"
};

function extractDomain(url) {
    var domain;
    //find & remove protocol (http, ftp, etc.) and get domain
    if (url.indexOf("://") > -1) {
        domain = url.split('/')[2];
    }
    else {
        domain = url.split('/')[0];
    }

    //find & remove port number
    domain = domain.split(':')[0];

    return domain;
}

function getFaviconUrl(href) {
    var domain = extractDomain(href);
    if (domain in hrefMapping) {
        return hrefMapping[domain];
    }
    return "https://" + domain + "/favicon.ico"
}

$(function () {

    var iconTemplate = _.template($("#icon-template").html());

    function htmlForIcon(href) {
        return iconTemplate({
            href: href,
            iconUrl: getFaviconUrl(href)
        });
    }

{'fraction_non_alphanumeric': 0.18025751072961374, 'fraction_numerical': 0.011802575107296138, 'mean_word_length': 2.6997354497354498, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 23, 'lorem ipsum': 0, 'www.': 10, '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': '2178870', 'n_tokens_mistral': 1023, 'n_tokens_neox': 972, 'n_words': 150}