<commit_before>var loading = false;

jQuery(document).ready(function($) {
    window.setInterval(updateNewsFeed, 30 * 1000);

    updateNewsFeed();
});

function updateNewsFeed() {
    if (loading) {
        return;
    }

    loading = true;
    var feed = $("#newsfeed");
    var maxLength = 20;

    feed.html("Loading...");

    $.get("http://tenjava.lol768.com/api/commits?number=4", function(data) {
        loading = false;
        var html = "";

        for (var index = 0; index < data.length; index++) {
            commit = data[index];
            message = commit.commit_message;

            if (message.length > maxLength - 3) {
                message = message.substring(0, maxLength) + "...";
            }

            html += "<div class=\"commit\">";
            html += ("<p class=\"left\"><img src='http://www.gravatar.com/avatar/" + commit.gravatar_id + "?s=48&d=mm'></p>");
            html += "<p class=\"right\">";
            html += ("<a href=\"https://github.com/tenjavacontest/" + commit.repository + "/\">" + commit.repository + "</a><br />");
            html += ("\"<a href=\"https://github.com/tenjavacontest/" + commit.repository + "/commit/" + commit.commit_id + "\">" + message + "</a>\"<br />");
            html += ("+" + commit.total_additions + "/-" + commit.total_deletions + "<br />");
            html += (commit.created_at + "<br />");
            html += "</p></div>";
        }

        feed.html(html);
    });
}<commit_msg>All the commits!<commit_after>var loading = false;

jQuery(document).ready(function($) {
    window.setInterval(updateNewsFeed, 30 * 1000);

    updateNewsFeed();
});

function updateNewsFeed() {
    if (loading) {
        return;
    }

    loading = true;
    var feed = $("#newsfeed");
    var maxLength = 20;

    feed.html("Loading...");

    $.get("http://tenjava.lol768.com/api/commits?number=5", function(data) {
        loading = false;
        var html = "";

        for (var index = 0; index < data.length; index++) {
            commit = data[index];
            message = commit.commit_message;

            if (message.length > maxLength - 3) {
                message = message.substring(0, maxLength) + "...";
            }

            html += "<div class=\"commit\">";
            html += ("<p class=\"left\"><img src='http://www.gravatar.com/avatar/" + commit.gravatar_id + "?s=48&d=mm'></p>");
            html += "<p class=\"right\">";
            html += ("<a href=\"https://github.com/tenjavacontest/" + commit.repository + "/\">" + commit.repository + "</a><br />");
            html += ("\"<a href=\"https://github.com/tenjavacontest/" + commit.repository + "/commit/" + commit.commit_id + "\">" + message + "</a>\"<br />");
            html += ("+" + commit.total_additions + "/-" + commit.total_deletions + "<br />");
            html += (commit.created_at + "<br />");
            html += "</p></div>";
        }

        feed.html(html);
    });
}
{'fraction_non_alphanumeric': 0.21314808539478142, 'fraction_numerical': 0.011521518129447645, 'mean_word_length': 2.110642781875659, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '5137675', 'n_tokens_mistral': 941, 'n_tokens_neox': 896, 'n_words': 166}