<commit_before>{% extends 'base.html' %}
{% load staticfiles %}

{% block title %}Browse your genome{% endblock title %}

{% block extra_js %}
{{ block.super }}
{% if not is_job_ready %}
<script type="text/javascript">
$(function() {
    var check = function() {
        $.getJSON('{{ genome_data_url }}').done(function(data) {
            console.log('got json: %o', data);
            if (data.is_ready) window.location.reload();
            window.setTimeout(check, 500);
        }).fail(function() {
            console.log('fail');
            window.setTimeout(check, 1000);
        });
    };
    check();
});<commit_msg>Auto odświeżanie przy parsowaniu pliku<commit_after>{% extends 'base.html' %}
{% load staticfiles %}

{% block title %}Browse your genome{% endblock title %}

{% block extra_js %}
{{ block.super }}
{% if not is_job_ready %}
<script type="text/javascript">
$(function() {
    var check = function() {
        $.getJSON('{{ genome_data_url }}').done(function(data) {
            if (data.is_ready) window.location.reload();
            window.setTimeout(check, 500);
        }).fail(function() {
            window.setTimeout(check, 1000);
        });
    };
    check();
});
{'fraction_non_alphanumeric': 0.1806827643630308, 'fraction_numerical': 0.011656952539550375, 'mean_word_length': 2.828025477707006, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5390688', 'n_tokens_mistral': 401, 'n_tokens_neox': 362, 'n_words': 81}