<commit_before><?php
/**
 * Auswahl wo man nicht reinschreiben kann, so wie eine HTML-Select-Box
 **/
class Kwf_Form_Field_Radio extends Kwf_Form_Field_ComboBox
{
    public function __construct($field_name = null, $field_label = null)
    {
        parent::__construct($field_name, $field_label);
        $this->setXtype('radiogroup');
        $this->setOutputType('horizontal');
        $this->setEmptyMessage(trlKwfStatic('Please choose an option'));
    }

    // $this->setOutputType($type)
    //    $type = 'vertical', otherwise horizontal

    // setColumns()

    public function getMetaData($model)
    {<commit_msg>Field_Radio: inherit Field_Select, as a radio is similar to a select<commit_after><?php
/**
 * Auswahl wo man nicht reinschreiben kann, so wie eine HTML-Select-Box
 **/
class Kwf_Form_Field_Radio extends Kwf_Form_Field_Select
{
    public function __construct($field_name = null, $field_label = null)
    {
        parent::__construct($field_name, $field_label);
        $this->setXtype('radiogroup');
        $this->setOutputType('horizontal');
        $this->setEmptyMessage(trlKwfStatic('Please choose an option'));
    }

    // $this->setOutputType($type)
    //    $type = 'vertical', otherwise horizontal

    // setColumns()

    public function getMetaData($model)
    {
{'fraction_non_alphanumeric': 0.12720306513409962, 'fraction_numerical': 0.0, 'mean_word_length': 3.614840989399293, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2938310', 'n_tokens_mistral': 400, 'n_tokens_neox': 391, 'n_words': 86}