<commit_before>jQuery(function () {

    function renderDataPoint(service, dataPointId) {
        jQuery.ajax('http://tos-dr.info/points/' + dataPointId + '.json', {success:function (dataPoint) {
            var badge, icon, sign;
            if (dataPoint.tosdr.point == 'good') {
                badge = 'badge-success';
                icon = 'plus';
                sign = '+';
            } else if (dataPoint.tosdr.point == 'mediocre') {
                badge = 'badge-warning';
                icon = 'minus';
                sign = '-';
            } else if (dataPoint.tosdr.point == 'alert') {
                badge = 'badge-important';
                icon = 'remove';
                sign = '×';
            } else if (dataPoint.tosdr.point == 'not bad') {
                badge = 'badge-neutral';
                icon = 'arrow-right';
                sign = '→';
            } else {
                badge = '';
                icon = 'question-sign';
                sign = '?';
            }
            document.getElementById('popup-point-' + service + '-' + dataPointId).innerHTML =
                '<div class="' + dataPoint.tosdr.point + '"><h5><span class="badge ' + badge
                    + '" title="' + dataPoint.tosdr.point + '"><i class="icon-' + icon + ' icon-white">' + sign + '</i></span> <a target="_blank" href="' + dataPoint.discussion + '">' + dataPoint.name + '</a></h5><p>'
                    + dataPoint.tosdr.tldr + '</p></div></li>';
            $('#popup-point-' + service + '-' + dataPointId).html(
                '<div class="' + dataPoint.tosdr.point + '"><h5><span class="badge ' + badge
                    + '" title="' + dataPoint.tosdr.point + '"><i class="icon-' + icon + ' icon-white">' + sign + '</i></span> ' + dataPoint.name + ' <a href="' + dataPoint.discussion + '" target="_blank" class="label context">Discussion</a> <!--a href="' + dataPoint.source.terms + '" class="label context" target="_blank">Terms</a--></h5><p>'
                    + dataPoint.tosdr.tldr + '</p></div></li>');
        }});
    }

    var NOT_RATED_TEXT = "We haven't sufficiently reviewed the terms yet. Please contribute to our group: <a target=\"_blank\" href=\"https:\/\/groups.google.com/d/forum/tosdr\"><EMAIL></a>.";
    var RATING_TEXT = {
        0:NOT_RATED_TEXT,
        "false":NOT_RATED_TEXT,
        "A":"The terms of service treat you fairly, respect your rights and follows the best practices.",
        "B":"The terms of services are fair towards the user but they could be improved.",
        "C":"The terms of service are okay but some issues need your consideration.",
        "D":"The terms of service are very uneven or there are some important issues that need your attention.",
        "E":"The terms of service raise very serious concerns."
    };

    function renderPopup(name) {
        var service = JSON.parse(localStorage[name]);
        renderPopupHtml(name, service.name, service.url, service.tosdr.rated, RATING_TEXT[service.tosdr.rated],
            service.points, service.links);
    }

    function isEmpty(map) {
        for (var key in map) {
            if (map.hasOwnProperty(key)) {
                return false;
            }
        }
        return true;
    }

    function renderPopupHtml(name, longName, domain, verdict, ratingText, points, links) {
        var headerHtml = '<div class="modal-header">'
            + '<img src="http://tos-dr.info/logo/' + name + '.png" alt="" class="pull-left" height="36" >'
            + '<h3>' + longName + ' <small class="service-url"><i class="icon icon-globe"></i> <a href="http://tos-dr.info/#' + name + '" target="_blank">Rating from Terms of Service; Didn’t Read</a></small>'
            + '<button id="closeButton" data-dismiss="modal" class="close pull-right" type="button">×</button></h3></div>';
        var classHtml = '<div class="tosdr-rating"><label class="label ' + verdict + '">'
            + (verdict ? 'Class ' + verdict : 'No Class Yet') + '</label><p>' + ratingText + '</p></div>';
        var pointsHtml = '';
        for (var i = 0; i < points.length; i++) {
            pointsHtml += '<li id="popup-point-' + name + '-' + points[i] + '" class="point"></li>';
        }
        var bodyHtml = '<div class="modal-body">' + classHtml + '<section class="specificissues"> <ul class="tosdr-points">' + pointsHtml + '</ul></section>';

        // Add Links
        if (isEmpty(links)) {
            bodyHtml += '<section><a href="/get-involved.html" class="btn" target="_blank"><i class="icon  icon-list-alt"></i> Get Involved</a></section>';
        } else {
            bodyHtml += '<section><h4>Read the Terms</h4><ul class="tosback2">';
            for (var i in links) {
                bodyHtml += '<li><a target="_blank" href="' + links[i].url + '">' + (links[i].name ? links[i].name : i) + '</a></li>';
            }
            bodyHtml += '</ul></section>';
        }

        bodyHtml += '</div>';
<commit_msg>removed service logo as its already on website and added tosdr logo<commit_after>jQuery(function () {

    function renderDataPoint(service, dataPointId) {
        jQuery.ajax('http://tos-dr.info/points/' + dataPointId + '.json', {success:function (dataPoint) {
            var badge, icon, sign;
            if (dataPoint.tosdr.point == 'good') {
                badge = 'badge-success';
                icon = 'thumbs-up';
                sign = '+';
            } else if (dataPoint.tosdr.point == 'mediocre') {
                badge = 'badge-warning';
                icon = 'thumbs-down';
                sign = '-';
            } else if (dataPoint.tosdr.point == 'alert') {
                badge = 'badge-important';
                icon = 'remove';
                sign = '×';
            } else if (dataPoint.tosdr.point == 'not bad') {
                badge = 'badge-neutral';
                icon = 'arrow-right';
                sign = '→';
            } else {
                badge = '';
                icon = 'question-sign';
                sign = '?';
            }
            document.getElementById('popup-point-' + service + '-' + dataPointId).innerHTML =
                '<div class="' + dataPoint.tosdr.point + '"><h5><span class="badge ' + badge
                    + '" title="' + dataPoint.tosdr.point + '"><i class="icon-' + icon + ' icon-white">' + sign + '</i></span> <a target="_blank" href="' + dataPoint.discussion + '">' + dataPoint.name + '</a></h5><p>'
                    + dataPoint.tosdr.tldr + '</p></div></li>';
            $('#popup-point-' + service + '-' + dataPointId).html(
                '<div class="' + dataPoint.tosdr.point + '"><h5><span class="badge ' + badge
                    + '" title="' + dataPoint.tosdr.point + '"><i class="icon-' + icon + ' icon-white">' + sign + '</i></span> ' + dataPoint.name + ' <a href="' + dataPoint.discussion + '" target="_blank" class="label context">Discussion</a> <!--a href="' + dataPoint.source.terms + '" class="label context" target="_blank">Terms</a--></h5><p>'
                    + dataPoint.tosdr.tldr + '</p></div></li>');
        }});
    }

    var NOT_RATED_TEXT = "We haven't sufficiently reviewed the terms yet. Please contribute to our group: <a target=\"_blank\" href=\"https:\/\/groups.google.com/d/forum/tosdr\"><EMAIL></a>.";
    var RATING_TEXT = {
        0:NOT_RATED_TEXT,
        "false":NOT_RATED_TEXT,
        "A":"The terms of service treat you fairly, respect your rights and follows the best practices.",
        "B":"The terms of services are fair towards the user but they could be improved.",
        "C":"The terms of service are okay but some issues need your consideration.",
        "D":"The terms of service are very uneven or there are some important issues that need your attention.",
        "E":"The terms of service raise very serious concerns."
    };

    function renderPopup(name) {
        var service = JSON.parse(localStorage[name]);
        renderPopupHtml(name, service.name, service.url, service.tosdr.rated, RATING_TEXT[service.tosdr.rated],
            service.points, service.links);
    }

    function isEmpty(map) {
        for (var key in map) {
            if (map.hasOwnProperty(key)) {
                return false;
            }
        }
        return true;
    }

    function renderPopupHtml(name, longName, domain, verdict, ratingText, points, links) {
        var headerHtml = '<div class="modal-header">'
            + '<h3><a href="http://tos-dr.info/#' + name + '" target="_blank"><img src="http://tos-dr.info/img/tosdr-logo.png" alt="" class="pull-left" height="36" >'
            + 'Rating from Terms of Service; Didn’t Read</a></small>'
            + '<button id="closeButton" data-dismiss="modal" class="close pull-right" type="button">×</button></h3></div>';
        var classHtml = '<div class="tosdr-rating"><label class="label ' + verdict + '">'
            + (verdict ? 'Class ' + verdict : 'No Class Yet') + '</label><p>' + ratingText + '</p></div>';
        var pointsHtml = '';
        for (var i = 0; i < points.length; i++) {
            pointsHtml += '<li id="popup-point-' + name + '-' + points[i] + '" class="point"></li>';
        }
        var bodyHtml = '<div class="modal-body">' + classHtml + '<section class="specificissues"> <ul class="tosdr-points">' + pointsHtml + '</ul></section>';

        // Add Links
        if (isEmpty(links)) {
            bodyHtml += '<section><a href="/get-involved.html" class="btn" target="_blank"><i class="icon  icon-list-alt"></i> Get Involved</a></section>';
        } else {
            bodyHtml += '<section><h4>Read the Terms</h4><ul class="tosback2">';
            for (var i in links) {
                bodyHtml += '<li><a target="_blank" href="' + links[i].url + '">' + (links[i].name ? links[i].name : i) + '</a></li>';
            }
            bodyHtml += '</ul></section>';
        }

        bodyHtml += '</div>';

{'fraction_non_alphanumeric': 0.18312134060165555, 'fraction_numerical': 0.0026246719160104987, 'mean_word_length': 2.1520839961819918, 'pattern_counts': {'":': 12, '<': 150, '<?xml version=': 0, '>': 148, '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': '5651682', 'n_tokens_mistral': 2968, 'n_tokens_neox': 2885, 'n_words': 691}