<commit_before><?php global $conf; ?>
<div id="browse">
    <div style="display:none">
        <?php
        $fields = shn_form_get_html_fields($fields_form);
        foreach($fields_form as $fieldName => $field){
            if($field["type"] == "mt_tree" || $field["type"] == "mt_select"){
                echo $fields[$fieldName];
            }
        }
        ?>
    </div>
    <table class='table table-bordered table-striped table-hover'>
        <thead>
            <tr>
                <th><?php echo(_t('FIELD_NAME')); ?></th>
                <th><?php echo(_t('LABEL')); ?></th>
                <th><?php echo(_t('VISIBLE_IN_FORM')); ?></th>
                <th><?php echo(_t('VISIBLE_IN_VIEW')); ?></th>
                <?php if ($browse_needed) { ?>     
                    <th><?php echo(_t('VISIBLE_IN_BROWSE')); ?></th>
                <?php } ?>     

                <th><?php echo(_t('Searchable in Analysis')); ?></th>
                <th><?php echo(_t('Visible in Analysis')); ?></th>
                <th><?php echo(_t('Hide in case of')); ?></th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($res as $record) { ?>
                <tr >
                    <td><?php echo $record['field_name']; ?></td>
                    <td><?php echo $record['field_label']; ?></td>

                    <td align="center">
                        <?php $name = 'visible_new_' . $record['field_number']; ?>
                        <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value='y' <?php if ($record['visible_new'] == 'y') echo "checked='checked'"; ?> <?php echo ($record['essential'] == 'y' ? ' disabled="disabled"' : null) ?> />
                    </td>
                    <td align="center">
                        <?php $name = 'visible_view_' . $record['field_number']; ?>
                        <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value='y' <?php if ($record['visible_view'] == 'y') echo "checked='checked'"; ?> />
                    </td>

                    <?php if ($browse_needed) { ?>           
                        <td align="center">
                            <?php $name = 'visible_browse_' . $record['field_number']; ?>
                            <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value='y' <?php if ($record['visible_browse'] == 'y' || $record['visible_browse'] == 'Y') echo "checked='checked'"; ?> <?php if($record['field_type'] == 'user_select' || $record['field_type'] == 'line' || $record['field_type'] == 'location')echo ' disabled="disabled"'; ?> />
                        </td>
                    <?php } ?>
                    <td align="center">
                        <?php $name = 'visible_adv_search_' . $record['field_number']; ?>
                        <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value='y' <?php if ($record['visible_adv_search'] == 'y') echo "checked='checked'"; ?> <?php if($record['field_type'] == 'user_select' || $record['field_type'] == 'line'|| $record['field_type'] == 'location')echo ' disabled="disabled"'; ?> />
                    </td>
                    <td align="center">
                        <?php $name = 'visible_adv_search_display_' . $record['field_number']; ?>
                        <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value='y' <?php if ($record['visible_adv_search_display'] == 'y') echo "checked='checked'"; ?> <?php if($record['field_type'] == 'user_select'|| $record['field_type'] == 'line' || $record['field_type'] == 'location')echo ' disabled="disabled"'; ?> /><commit_msg>existing user_select fields now can be edited to appear in analysis<commit_after><?php global $conf; ?>
<div id="browse">
    <div style="display:none">
        <?php
        $fields = shn_form_get_html_fields($fields_form);
        foreach($fields_form as $fieldName => $field){
            if($field["type"] == "mt_tree" || $field["type"] == "mt_select"){
                echo $fields[$fieldName];
            }
        }
        ?>
    </div>
    <table class='table table-bordered table-striped table-hover'>
        <thead>
            <tr>
                <th><?php echo(_t('FIELD_NAME')); ?></th>
                <th><?php echo(_t('LABEL')); ?></th>
                <th><?php echo(_t('VISIBLE_IN_FORM')); ?></th>
                <th><?php echo(_t('VISIBLE_IN_VIEW')); ?></th>
                <?php if ($browse_needed) { ?>     
                    <th><?php echo(_t('VISIBLE_IN_BROWSE')); ?></th>
                <?php } ?>     

                <th><?php echo(_t('Searchable in Analysis')); ?></th>
                <th><?php echo(_t('Visible in Analysis')); ?></th>
                <th><?php echo(_t('Hide in case of')); ?></th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($res as $record) { ?>
                <tr >
                    <td><?php echo $record['field_name']; ?></td>
                    <td><?php echo $record['field_label']; ?></td>

                    <td align="center">
                        <?php $name = 'visible_new_' . $record['field_number']; ?>
                        <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value='y' <?php if ($record['visible_new'] == 'y') echo "checked='checked'"; ?> <?php echo ($record['essential'] == 'y' ? ' disabled="disabled"' : null) ?> />
                    </td>
                    <td align="center">
                        <?php $name = 'visible_view_' . $record['field_number']; ?>
                        <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value='y' <?php if ($record['visible_view'] == 'y') echo "checked='checked'"; ?> />
                    </td>

                    <?php if ($browse_needed) { ?>           
                        <td align="center">
                            <?php $name = 'visible_browse_' . $record['field_number']; ?>
                            <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value='y' <?php if ($record['visible_browse'] == 'y' || $record['visible_browse'] == 'Y') echo "checked='checked'"; ?> <?php if($record['field_type'] == 'user_select' || $record['field_type'] == 'line' || $record['field_type'] == 'location')echo ' disabled="disabled"'; ?> />
                        </td>
                    <?php } ?>
                    <td align="center">
                        <?php $name = 'visible_adv_search_' . $record['field_number']; ?>
                        <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value='y' <?php if ($record['visible_adv_search'] == 'y') echo "checked='checked'"; ?> <?php if($record['field_type'] == 'line'|| $record['field_type'] == 'location')echo ' disabled="disabled"'; ?> />
                    </td>
                    <td align="center">
                        <?php $name = 'visible_adv_search_display_' . $record['field_number']; ?>
                        <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value='y' <?php if ($record['visible_adv_search_display'] == 'y') echo "checked='checked'"; ?> <?php if($record['field_type'] == 'line' || $record['field_type'] == 'location')echo ' disabled="disabled"'; ?> />
{'fraction_non_alphanumeric': 0.21344515081834167, 'fraction_numerical': 0.0, 'mean_word_length': 2.045304777594728, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 0, '>': 175, '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': '2973596', 'n_tokens_mistral': 2157, 'n_tokens_neox': 2115, 'n_words': 456}