<commit_before>var rowsSelected = [];

// Tells whether we're currently viewing or editing table
var currentMode = "viewMode";

// Tells what action will execute by pressing on save button (update/create)
var saveAction = "update";
var selectedSample;

table = $("#samples").DataTable({
    order: [[2, "desc"]],
    dom: "RB<'row'<'col-sm-9-custom toolbar'l><'col-sm-3-custom'f>>tpi",
    stateSave: true,
    buttons: [{
        extend: "colvis",
        text: function () {
            return '<span class="glyphicon glyphicon-option-horizontal"></span> ' +
                '<span class='hidden-xs-custom'>' +
                I18n.t('samples.column_visibility') +
                '</span>';
        },
        columns: ":gt(2)"
    }],
    processing: true,
    serverSide: true,
    ajax: {
        url: $("#samples").data("source"),
        global: false,
        type: "POST"
    },
    colReorder: {
        fixedColumnsLeft: 1000000 // Disable reordering
    },
    columnDefs: [{
        targets: 0,
        searchable: false,
        orderable: false,
        className: "dt-body-center",
        sWidth: "1%",
        render: function (data, type, full, meta){
            return "<input type='checkbox'>";<commit_msg>fixes hound again<commit_after>var rowsSelected = [];

// Tells whether we're currently viewing or editing table
var currentMode = "viewMode";

// Tells what action will execute by pressing on save button (update/create)
var saveAction = "update";
var selectedSample;

table = $("#samples").DataTable({
    order: [[2, "desc"]],
    dom: "RB<'row'<'col-sm-9-custom toolbar'l><'col-sm-3-custom'f>>tpi",
    stateSave: true,
    buttons: [{
        extend: "colvis",
        text: function () {
            return '<span class="glyphicon glyphicon-option-horizontal"></span> ' +
                "<span class='hidden-xs-custom'>" +
                I18n.t('samples.column_visibility') +
                '</span>';
        },
        columns: ":gt(2)"
    }],
    processing: true,
    serverSide: true,
    ajax: {
        url: $("#samples").data("source"),
        global: false,
        type: "POST"
    },
    colReorder: {
        fixedColumnsLeft: 1000000 // Disable reordering
    },
    columnDefs: [{
        targets: 0,
        searchable: false,
        orderable: false,
        className: "dt-body-center",
        sWidth: "1%",
        render: function (data, type, full, meta){
            return "<input type='checkbox'>";
{'fraction_non_alphanumeric': 0.15678310316815597, 'fraction_numerical': 0.012185215272136474, 'mean_word_length': 2.3060402684563757, 'pattern_counts': {'":': 2, '<': 19, '<?xml version=': 0, '>': 19, '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': '6534599', 'n_tokens_mistral': 759, 'n_tokens_neox': 728, 'n_words': 181}