<commit_before>{% extends "base.html" %}

{% block title %}{{ user }} on bugle{% endblock %}

{% block extra_head %}
<script type="text/javascript">
jQuery(function($) {
    $('input:first')[0].focus();
});
</script>
{% if autorefresh %}
<script type="text/javascript">
jQuery(function($) {
    var last_id = {{ blasts.0.id }};
    function refresh() {
        $.getJSON('/autorefresh/since/?id=' + last_id, function(obj) {
            var divs_to_add = [];
            $.each(obj, function() {
                last_id = this.id;
                var div = $('#blasts .blast:first').clone();
                if (this.first_on_day) {
                    div.addClass('first-on-day');
                } else {
                    div.removeClass('first-on-day');
                }
                div.find('div.box').css({
                    'background-color': this.colour
                });
                div.find('.message').text(this.message);
                div.find('.byline a').text(this.user).attr(
                    'href', '/' + this.user + '/'
                );
                div.find('.created').text(this.date + ' at ' + this.time);
                div.hide();
                $('#blasts').prepend(div);
                div.slideDown();
            })
        });
    }
    setInterval(refresh, 2000);
});
</script>
{% endif %}<commit_msg>autorefresh every 15 seconds instead<commit_after>{% extends "base.html" %}

{% block title %}{{ user }} on bugle{% endblock %}

{% block extra_head %}
<script type="text/javascript">
jQuery(function($) {
    $('input:first')[0].focus();
});
</script>
{% if autorefresh %}
<script type="text/javascript">
jQuery(function($) {
    var last_id = {{ blasts.0.id }};
    function refresh() {
        $.getJSON('/autorefresh/since/?id=' + last_id, function(obj) {
            var divs_to_add = [];
            $.each(obj, function() {
                last_id = this.id;
                var div = $('#blasts .blast:first').clone();
                if (this.first_on_day) {
                    div.addClass('first-on-day');
                } else {
                    div.removeClass('first-on-day');
                }
                div.find('div.box').css({
                    'background-color': this.colour
                });
                div.find('.message').text(this.message);
                div.find('.byline a').text(this.user).attr(
                    'href', '/' + this.user + '/'
                );
                div.find('.created').text(this.date + ' at ' + this.time);
                div.hide();
                $('#blasts').prepend(div);
                div.slideDown();
            })
        });
    }
    setInterval(refresh, 15 * 1000);
});
</script>
{% endif %}
{'fraction_non_alphanumeric': 0.185360524399126, 'fraction_numerical': 0.005826656955571741, 'mean_word_length': 1.5745079662605437, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7356455', 'n_tokens_mistral': 858, 'n_tokens_neox': 778, 'n_words': 129}