<commit_before><?php
namespace Riesenia\Utility\Kendo\Table\Column;

/**
 * Enumeration column
 *
 * @author <NAME> <<EMAIL>>
 */
class Enum extends Base
{
    /**
     * Construct the column
     *
     * @param array options
     * @param string table id
     */
    public function __construct(array $options, $tableId)
    {
        $this->_template = '<td class="%class%">';

        if (isset($options['options'])) {
            foreach ($options['options'] as $key => $value) {
                $this->_template .= '# if (%field% == ' . json_encode($key) . ') { # ' . htmlspecialchars($value) . ' # } #';
            }
            unset($options['options']);
        }

        $this->_template .= '</td>';

        parent::__construct($options, $tableId);
    }
}<commit_msg>added toString() for enum values to remove confusion<commit_after><?php
namespace Riesenia\Utility\Kendo\Table\Column;

/**
 * Enumeration column
 *
 * @author <NAME> <<EMAIL>>
 */
class Enum extends Base
{
    /**
     * Construct the column
     *
     * @param array options
     * @param string table id
     */
    public function __construct(array $options, $tableId)
    {
        $this->_template = '<td class="%class%">';

        if (isset($options['options'])) {
            foreach ($options['options'] as $key => $value) {
                $this->_template .= '# if (%field%.toString() == ' . json_encode($key) . ') { # ' . htmlspecialchars($value) . ' # } #';
            }
            unset($options['options']);
        }

        $this->_template .= '</td>';

        parent::__construct($options, $tableId);
    }
}
{'fraction_non_alphanumeric': 0.1815365551425031, 'fraction_numerical': 0.0, 'mean_word_length': 2.2626262626262625, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, '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': '5301710', 'n_tokens_mistral': 475, 'n_tokens_neox': 468, 'n_words': 101}