<commit_before>var csrftoken = $('meta[name=csrf-token]').attr('content');

$(document).ready(function () {
    "use strict";

    $('body').tooltip({
        'selector': '[rel=tooltip]',
        'placement': 'auto top'
    });

    $('#li-boot').addClass('active');

    $.ajax({
        'url': '/_ajax/boot',
        'traditional': true,
        'cache': true,
        'dataType': 'json',
        'data': {
            'id': $('#board-id').val() + '-' + $('#job-id').val() + '-' +
                $('#kernel-id').val() + '-' + $('#defconfig-id').val()
        },
        'dataFilter': function (data, type) {
            if (type === 'json') {
                return JSON.parse(data).result;
            }
            return data;
        },
        'beforeSend': function (xhr) {
            xhr.setRequestHeader("X-CSRFToken", csrftoken);
        },
        'statusCode': {
            404: function () {
                $('#container-content').empty().load(
                    '/static/html/404-content.html'
                );
            },
            500: function () {
                $('#container-content').empty().load(
                    '/static/html/500-content.html'
                );
            }
        }
    }).done(function (data) {
        var boot_time = new Date(data.time['$date']),
            displ = '',
            file_server = $('#file-server').val(),
            non_avail = '<span rel="tooltip" data-toggle="tooltip"' +
                'title="Not available"><i class="fa fa-ban"></i>' +
                '</span>';

        $('#dd-board-board').empty().append(data.board);
        $('#dd-board-defconfig').empty().append(
            data.defconfig + '&nbsp;&mdash;&nbsp;' +
                '<span rel="tooltip" data-toggle="tooltip"' +
                'title="Details for build&nbsp;' + data.job +
                '&nbsp;&dash;&nbsp;' + data.kernel +
                '&nbsp;&dash;&nbsp;' + data.defconfig +
                '"><a href="/build/' + data.job + '/kernel/' + data.kernel +
                '/defconfig/' + data.defconfig + '">' +
                '<i class="fa fa-cube"></i></a></span>'
        );
        $('#dd-board-kernel').empty().append(
            '<span rel="tooltip" data-toggle="tooltip" ' +
                'title="Boot report details for&nbsp;' + data.job +
                '&nbsp;&dash;&nbsp;' +<commit_msg>Fix JSON parsing with new backend.<commit_after>var csrftoken = $('meta[name=csrf-token]').attr('content');

$(document).ready(function () {
    "use strict";

    $('body').tooltip({
        'selector': '[rel=tooltip]',
        'placement': 'auto top'
    });

    $('#li-boot').addClass('active');

    $.ajax({
        'url': '/_ajax/boot',
        'traditional': true,
        'cache': true,
        'dataType': 'json',
        'data': {
            'id': $('#board-id').val() + '-' + $('#job-id').val() + '-' +
                $('#kernel-id').val() + '-' + $('#defconfig-id').val()
        },
        'beforeSend': function (xhr) {
            xhr.setRequestHeader("X-CSRFToken", csrftoken);
        },
        'statusCode': {
            404: function () {
                $('#container-content').empty().load(
                    '/static/html/404-content.html'
                );
            },
            500: function () {
                $('#container-content').empty().load(
                    '/static/html/500-content.html'
                );
            }
        }
    }).done(function (data) {
        data = data.result[0];

        var boot_time = new Date(data.time['$date']),
            displ = '',
            file_server = $('#file-server').val(),
            non_avail = '<span rel="tooltip" data-toggle="tooltip"' +
                'title="Not available"><i class="fa fa-ban"></i>' +
                '</span>';

        $('#dd-board-board').empty().append(data.board);
        $('#dd-board-defconfig').empty().append(
            data.defconfig + '&nbsp;&mdash;&nbsp;' +
                '<span rel="tooltip" data-toggle="tooltip"' +
                'title="Details for build&nbsp;' + data.job +
                '&nbsp;&dash;&nbsp;' + data.kernel +
                '&nbsp;&dash;&nbsp;' + data.defconfig +
                '"><a href="/build/' + data.job + '/kernel/' + data.kernel +
                '/defconfig/' + data.defconfig + '">' +
                '<i class="fa fa-cube"></i></a></span>'
        );
        $('#dd-board-kernel').empty().append(
            '<span rel="tooltip" data-toggle="tooltip" ' +
                'title="Boot report details for&nbsp;' + data.job +
                '&nbsp;&dash;&nbsp;' +
{'fraction_non_alphanumeric': 0.21162185602775369, 'fraction_numerical': 0.005420641803989592, 'mean_word_length': 1.629988597491448, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 23, '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': '2643911', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1340, 'n_words': 208}