<commit_before><?php
$fields = json_decode(json_encode(get_fields($module->ID)));

$classes = '';
if (isset($fields->mod_table_classes) && is_array($fields->mod_table_classes)) {
    $classes = implode(' ', $fields->mod_table_classes);
}
?>
<div class="box box-panel">
    <h4 class="box-title"><?php echo $module->post_title; ?></h4>
    <?php
    echo str_replace(
        '<table class="',
        sprintf(
            '<table data-paging="%2$s" data-page-length="%3$s" data-searching="%4$s" data-info="%5$s" class="datatable %1$s ',
            $classes,
            $fields->mod_table_pagination,
            $fields->mod_table_pagination_count,
            $fields->mod_table_search,
            $fields->mod_table_pagination || $fields->mod_table_search
        ),
        $fields->mod_table
    );
?>
</div><commit_msg>Ordering setting<commit_after><?php
$fields = json_decode(json_encode(get_fields($module->ID)));

$classes = '';
if (isset($fields->mod_table_classes) && is_array($fields->mod_table_classes)) {
    $classes = implode(' ', $fields->mod_table_classes);
}
?>
<div class="box box-panel">
    <h4 class="box-title"><?php echo $module->post_title; ?></h4>
    <?php
    echo str_replace(
        '<table class="',
        sprintf(
            '<table data-paging="%2$s" data-page-length="%3$s" data-searching="%4$s" data-ordering="%6$s" data-info="%5$s" class="datatable %1$s ',
            $classes,
            $fields->mod_table_pagination,
            $fields->mod_table_pagination_count,
            $fields->mod_table_search,
            $fields->mod_table_pagination || $fields->mod_table_search,
            isset($fields->mod_table_ordering) ? $fields->mod_table_ordering : true
        ),
        $fields->mod_table
    );
?>
</div>
{'fraction_non_alphanumeric': 0.18094157685762904, 'fraction_numerical': 0.008508224617129892, 'mean_word_length': 3.2302158273381294, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 41, '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': '6259413', 'n_tokens_mistral': 588, 'n_tokens_neox': 596, 'n_words': 82}