<commit_before><!DOCTYPE html>
<html>
<head>
    <title>Boolean Options</title>
    <link rel="stylesheet" href="../assets/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../assets/bootstrap-table/src/bootstrap-table.css">
    <link rel="stylesheet" href="../assets/multiple-select/multiple-select.css">
    <link rel="stylesheet" href="../assets/examples.css">
    <style>
        .boolean-options {margin: 20px 0;}
        .boolean-options select {width: 400px;}
        .ms-drop input[type="checkbox"] {vertical-align: top;}
    </style>
    <script src="../assets/jquery.min.js"></script>
    <script src="../assets/sprintf.js"></script>
    <script src="../assets/bootstrap/js/bootstrap.min.js"></script>
    <script src="../assets/bootstrap-table/src/bootstrap-table.js"></script>
    <script src="../assets/multiple-select/jquery.multiple.select.js"></script>
    <script src="../ga.js"></script>
</head>
<body>
<div class="container">
    <div class="ribbon">
        <a href="https://github.com/wenzhixin/bootstrap-table-examples/blob/master/welcome.html" target="_blank">View Source on GitHub</a>
    </div>
    <h1>Boolean Options</h1>
    <div class="boolean-options">
        <b>Table Options:</b> <select id="tableSelect" multiple="multiple"></select>
        <b>Column Options:</b> <select id="columnSelect" multiple="multiple"></select>
    </div>
    <table id="table"></table>
</div>
<script>
    var $tableSelect = $('#tableSelect'),
        $columnSelect = $('#columnSelect'),
        $table = $('#table'),
        defaultTableOptions = {},
        defaultColumnOptions = {};

    $(function () {
        initOptions($.fn.bootstrapTable.defaults, defaultTableOptions, $tableSelect);
        initOptions($.fn.bootstrapTable.columnDefaults, defaultColumnOptions, $columnSelect);
        initTable();
    });

    function initOptions(defaults, defaultOptions, $select) {
        var html = [];

        $.each(defaults, function (key, value) {
            if (typeof value === 'boolean') {
                html.push(sprintf('<option value="%(key)s" %(value)s>%(key)s</option>', {
                    key: key,
                    value: value ? 'selected' : ''<commit_msg>Fix url typo<commit_after><!DOCTYPE html>
<html>
<head>
    <title>Boolean Options</title>
    <link rel="stylesheet" href="../assets/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../assets/bootstrap-table/src/bootstrap-table.css">
    <link rel="stylesheet" href="../assets/multiple-select/multiple-select.css">
    <link rel="stylesheet" href="../assets/examples.css">
    <style>
        .boolean-options {margin: 20px 0;}
        .boolean-options select {width: 400px;}
        .ms-drop input[type="checkbox"] {vertical-align: top;}
    </style>
    <script src="../assets/jquery.min.js"></script>
    <script src="../assets/sprintf.js"></script>
    <script src="../assets/bootstrap/js/bootstrap.min.js"></script>
    <script src="../assets/bootstrap-table/src/bootstrap-table.js"></script>
    <script src="../assets/multiple-select/jquery.multiple.select.js"></script>
    <script src="../ga.js"></script>
</head>
<body>
<div class="container">
    <div class="ribbon">
        <a href="https://github.com/wenzhixin/bootstrap-table-examples/blob/master/options/boolean-options.html" target="_blank">View Source on GitHub</a>
    </div>
    <h1>Boolean Options</h1>
    <div class="boolean-options">
        <b>Table Options:</b> <select id="tableSelect" multiple="multiple"></select>
        <b>Column Options:</b> <select id="columnSelect" multiple="multiple"></select>
    </div>
    <table id="table"></table>
</div>
<script>
    var $tableSelect = $('#tableSelect'),
        $columnSelect = $('#columnSelect'),
        $table = $('#table'),
        defaultTableOptions = {},
        defaultColumnOptions = {};

    $(function () {
        initOptions($.fn.bootstrapTable.defaults, defaultTableOptions, $tableSelect);
        initOptions($.fn.bootstrapTable.columnDefaults, defaultColumnOptions, $columnSelect);
        initTable();
    });

    function initOptions(defaults, defaultOptions, $select) {
        var html = [];

        $.each(defaults, function (key, value) {
            if (typeof value === 'boolean') {
                html.push(sprintf('<option value="%(key)s" %(value)s>%(key)s</option>', {
                    key: key,
                    value: value ? 'selected' : ''
{'fraction_non_alphanumeric': 0.19084141664786827, 'fraction_numerical': 0.003609293931874577, 'mean_word_length': 3.124651162790698, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, 'https://': 2, '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': '7221220', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1276, 'n_words': 232}