<commit_before><?php
class Kwc_Form_Component extends Kwc_Abstract_Composite_Component
{
    protected $_form;
    private $_processed = false;
    private $_isSaved = false;
    private $_initialized = false;
    private $_posted = false;
    private $_postData = array();
    protected $_errors = array();

    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['generators']['child']['component']['success'] = 'Kwc_Form_Success_Component';
        $ret['generators']['child']['component']['header'] = null;
        $ret['generators']['child']['component']['footer'] = null;
        $ret['componentName'] = trlKwfStatic('Form');
        $ret['placeholder']['submitButton'] = trlKwfStatic('Submit');
        $ret['placeholder']['error'] = trlKwfStatic('An error has occurred');
        $ret['decorator'] = 'Kwc_Form_Decorator_Label';
        $ret['viewCache'] = true;
        $ret['method'] = 'post';

        $plugins = array('Kwc_Form_UseViewCachePlugin');
        if (isset($ret['plugins'])) {
            $ret['plugins'] = array_merge($ret['plugins'], $plugins);
        } else {
            $ret['plugins'] = $plugins;
        }

        //todo: wenn mehrere verbessern
        $ret['assets']['dep'][] = 'ExtElement';
        $ret['assets']['dep'][] = 'ExtFx'; //for .fadeIn()
        $ret['assets']['dep'][] = 'ExtDomHelper';
        $ret['assets']['dep'][] = 'ExtConnection';
        $ret['assets']['dep'][] = 'ExtDateMenu';
        $ret['assets']['dep'][] = 'KwfEvents';
        $ret['assets']['dep'][] = 'KwfClearOnFocus';
        $ret['assets']['dep'][] = 'KwfOnReady';
        $ret['assets']['dep'][] = 'jQuery';
        $ret['assets']['files'][] = 'kwf/Kwc/Form/Component.js';
        $ret['assets']['files'][] = 'kwf/Kwf_js/FrontendForm/Field.js';
        $ret['assets']['files'][] = 'kwf/Kwf_js/FrontendForm/ErrorStyle/Abstract.js';
        $ret['assets']['files'][] = 'kwf/Kwf_js/FrontendForm/ErrorStyle/Above.js';
        $ret['assets']['files'][] = 'kwf/Kwf_js/FrontendForm/*';

        $ret['useAjaxRequest'] = true;
        $ret['hideFormOnSuccess'] = true; // works only when useAjaxRequest==true

        $ret['flags']['processInput'] = true;
        $ret['flags']['requestHttps'] = true;

        $ret['extConfig'] = 'Kwf_Component_Abstract_ExtConfig_None';

        $ret['buttonClass'] = 'kwfButtonFlat'; //um standard styles aus dem Kwf zu umgehen

        $ret['errorStyle'] = null; //default from config.ini: kwc.form.errorStyle

        $ret['cssClass'] = 'responsive';

        return $ret;
    }

    public static function validateSettings($settings, $componentClass)
    {<commit_msg>add missing dependency<commit_after><?php
class Kwc_Form_Component extends Kwc_Abstract_Composite_Component
{
    protected $_form;
    private $_processed = false;
    private $_isSaved = false;
    private $_initialized = false;
    private $_posted = false;
    private $_postData = array();
    protected $_errors = array();

    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['generators']['child']['component']['success'] = 'Kwc_Form_Success_Component';
        $ret['generators']['child']['component']['header'] = null;
        $ret['generators']['child']['component']['footer'] = null;
        $ret['componentName'] = trlKwfStatic('Form');
        $ret['placeholder']['submitButton'] = trlKwfStatic('Submit');
        $ret['placeholder']['error'] = trlKwfStatic('An error has occurred');
        $ret['decorator'] = 'Kwc_Form_Decorator_Label';
        $ret['viewCache'] = true;
        $ret['method'] = 'post';

        $plugins = array('Kwc_Form_UseViewCachePlugin');
        if (isset($ret['plugins'])) {
            $ret['plugins'] = array_merge($ret['plugins'], $plugins);
        } else {
            $ret['plugins'] = $plugins;
        }

        //todo: wenn mehrere verbessern
        $ret['assets']['dep'][] = 'ExtElement';
        $ret['assets']['dep'][] = 'ExtFx'; //for .fadeIn()
        $ret['assets']['dep'][] = 'ExtDomHelper';
        $ret['assets']['dep'][] = 'ExtConnection';
        $ret['assets']['dep'][] = 'ExtDateMenu';
        $ret['assets']['dep'][] = 'KwfEvents';
        $ret['assets']['dep'][] = 'KwfClearOnFocus';
        $ret['assets']['dep'][] = 'KwfOnReady';
        $ret['assets']['dep'][] = 'jQuery';
        $ret['assets']['dep'][] = 'KwfResponsiveEl';
        $ret['assets']['files'][] = 'kwf/Kwc/Form/Component.js';
        $ret['assets']['files'][] = 'kwf/Kwf_js/FrontendForm/Field.js';
        $ret['assets']['files'][] = 'kwf/Kwf_js/FrontendForm/ErrorStyle/Abstract.js';
        $ret['assets']['files'][] = 'kwf/Kwf_js/FrontendForm/ErrorStyle/Above.js';
        $ret['assets']['files'][] = 'kwf/Kwf_js/FrontendForm/*';

        $ret['useAjaxRequest'] = true;
        $ret['hideFormOnSuccess'] = true; // works only when useAjaxRequest==true

        $ret['flags']['processInput'] = true;
        $ret['flags']['requestHttps'] = true;

        $ret['extConfig'] = 'Kwf_Component_Abstract_ExtConfig_None';

        $ret['buttonClass'] = 'kwfButtonFlat'; //um standard styles aus dem Kwf zu umgehen

        $ret['errorStyle'] = null; //default from config.ini: kwc.form.errorStyle

        $ret['cssClass'] = 'responsive';

        return $ret;
    }

    public static function validateSettings($settings, $componentClass)
    {
{'fraction_non_alphanumeric': 0.20353159851301114, 'fraction_numerical': 0.0, 'mean_word_length': 3.3890701468189235, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5486415', 'n_tokens_mistral': 1697, 'n_tokens_neox': 1647, 'n_words': 274}