<commit_before><?php defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * @author <NAME> <<EMAIL>>, 2014
 * @license The MIT License, http://opensource.org/licenses/MIT
 */

?>

        <section>

            <div class="container">

                <div class="page-header">
                    <h1>Smiley Test</h1>
                </div>

                <div class="row">

                    <div class="col-md-12">
<?php

if (!empty($smileys)) {

?>

                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover table-condensed table-valign-middle" id="datatable">

                            <thead>

                                <tr>
                                    <th class="col-sm-1">Text</th>
                                    <th class="col-sm-1">Image Name</th>
                                    <th class="col-sm-1">Image</th>
                                </tr>

                            </thead>

                            <tfoot>

                                <tr>
                                    <th>Text</th>
                                    <th>Image Name</th>
                                    <th>Image</th>
                                </tr>

                            </tfoot>

                            <tbody>
<?php

    foreach ($smileys as $key => $item) {

?>

                                <tr>
                                    <td><?php echo $key; ?></td>
                                    <td><?php echo $item[0]; ?></td>
                                    <td><?php echo parse_smileys($key, image_url('lib/smileys/')); ?></td>
                                </tr>
<?php

    }

?>

                            </tbody>
<commit_msg>A minor change in the smiley test.<commit_after><?php defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * @author <NAME> <<EMAIL>>, 2014
 * @license The MIT License, http://opensource.org/licenses/MIT
 */

// It is not to be placed here, I know.
function _force_htmlentities($string) {

    $arr = preg_split('/(?<!^)(?!$)/u', $string);  // An array of every multi-byte characters.

    $result = '';

    if (!empty($arr)) {

        foreach ($arr as $c) {
            $result .= '&#'.ord($c);
        }
    }

    return $result;
}

?>

        <section>

            <div class="container">

                <div class="page-header">
                    <h1>Smiley Test</h1>
                </div>

                <div class="row">

                    <div class="col-md-12">
<?php

if (!empty($smileys)) {

?>

                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover table-condensed table-valign-middle" id="datatable">

                            <thead>

                                <tr>
                                    <th class="col-sm-1">Text</th>
                                    <th class="col-sm-1">Image Name</th>
                                    <th class="col-sm-1">Image</th>
                                </tr>

                            </thead>

                            <tfoot>

                                <tr>
                                    <th>Text</th>
                                    <th>Image Name</th>
                                    <th>Image</th>
                                </tr>

                            </tfoot>

                            <tbody>
<?php

    foreach ($smileys as $key => $item) {

?>

                                <tr>
                                    <td><?php echo _force_htmlentities($key); ?></td>
                                    <td><?php echo $item[0]; ?></td>
                                    <td><?php echo parse_smileys($key, image_url('lib/smileys/')); ?></td>
                                </tr>
<?php

    }

?>

                            </tbody>

{'fraction_non_alphanumeric': 0.13790504898266767, 'fraction_numerical': 0.006028636021100226, 'mean_word_length': 0.8651053864168619, 'pattern_counts': {'":': 0, '<': 104, '<?xml version=': 0, '>': 105, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6080199', 'n_tokens_mistral': 1086, 'n_tokens_neox': 1001, 'n_words': 207}