<commit_before>/* Compute failed/success/not_solved/mine item total */

function compute_total_items_state() {
    gl_not_solved = $("div.categories_table_workflow td.state-item-None").length;
    gl_success = $("div.categories_table_workflow td.state-item-OK").length;
    gl_failed = $("div.categories_table_workflow td.state-item-KO").length;
    gl_total = gl_success + gl_failed + gl_not_solved;
    update_statistics_progressbar();
    $("#progress_bar").html(progressbar);
    gl_total = gl_taken + gl_untaken;
    update_statistics_filters();
}

/* ***************** */

/* Compute taken/untaken item total */

function compute_taken_untaken_items() {
    var untaken_item_cel = $("div.categories_table_workflow").find(".category_workflow td.take-item");
    var taken_item_cel = $("div.categories_table_workflow").find(".category_workflow td.untake-item");
	var mine_item_cel = $("div.categories_table_workflow").find("td.owner-" + myID);
    gl_taken = taken_item_cel.length;
    gl_untaken = untaken_item_cel.length;
	gl_mine = mine_item_cel.length;
    update_statistics_filters();
}

/* ***************** */
<commit_msg>Apply JSLint normalization on compute.js<commit_after>/* Compute failed/success/not_solved/mine item total */

function compute_total_items_state() {
    gl_not_solved = $("div.categories_table_workflow td.state-item-None").length;
    gl_success = $("div.categories_table_workflow td.state-item-OK").length;
    gl_failed = $("div.categories_table_workflow td.state-item-KO").length;
    gl_total = gl_success + gl_failed + gl_not_solved;
    update_statistics_progressbar();
    $("#progress_bar").html(progressbar);
    gl_total = gl_taken + gl_untaken;
    update_statistics_filters();
}

/* ***************** */

/* Compute taken/untaken item total */

function compute_taken_untaken_items() {
    var untaken_item_cel = $("div.categories_table_workflow").find(".category_workflow td.take-item");
    var taken_item_cel = $("div.categories_table_workflow").find(".category_workflow td.untake-item");
    var mine_item_cel = $("div.categories_table_workflow").find("td.owner-" + myID);
    gl_taken = taken_item_cel.length;
    gl_untaken = untaken_item_cel.length;
    gl_mine = mine_item_cel.length;
    update_statistics_filters();
}

/* ***************** */

{'fraction_non_alphanumeric': 0.1605045672031318, 'fraction_numerical': 0.0, 'mean_word_length': 5.084656084656085, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1638089', 'n_tokens_mistral': 774, 'n_tokens_neox': 760, 'n_words': 106}