<commit_before><?php
class Kwc_Chained_Trl_Component extends Kwc_Chained_Abstract_Component
{
    public static function getSettings($masterComponentClass)
    {
        $ret = parent::getSettings();
        $copySettings = array('componentName', 'componentIcon', 'editComponents', 'viewCache', 'contentSender');
        $copyFlags = array('processInput', 'menuCategory', 'chainedType', 'subroot', 'hasAlternativeComponent');
        $ret = Kwc_Chained_Abstract_Component::getChainedSettings($ret, $masterComponentClass, 'Trl', $copySettings, $copyFlags);
        return $ret;
    }

    public static function getChainedByMaster($masterData, $chainedData, $select = array())
    {
        return Kwc_Chained_Abstract_Component::_getChainedByMaster($masterData, $chainedData, 'Trl', $select);
    }
}
<commit_msg>add exception to avoid issues with Cc being used twice<commit_after><?php
class Kwc_Chained_Trl_Component extends Kwc_Chained_Abstract_Component
{
    public static function getSettings($masterComponentClass)
    {
        if (is_instance_of($masterComponentClass, 'Kwc_Chained_Abstract_Component')) {
            throw new Kwf_Exception("Cc of Cc shouldn't be used, called by '$masterComponentClass'");
        }

        $ret = parent::getSettings();
        $copySettings = array('componentName', 'componentIcon', 'editComponents', 'viewCache', 'contentSender');
        $copyFlags = array('processInput', 'menuCategory', 'chainedType', 'subroot', 'hasAlternativeComponent');
        $ret = Kwc_Chained_Abstract_Component::getChainedSettings($ret, $masterComponentClass, 'Trl', $copySettings, $copyFlags);
        return $ret;
    }

    public static function getChainedByMaster($masterData, $chainedData, $select = array())
    {
        return Kwc_Chained_Abstract_Component::_getChainedByMaster($masterData, $chainedData, 'Trl', $select);
    }
}

{'fraction_non_alphanumeric': 0.11890733797536154, 'fraction_numerical': 0.0, 'mean_word_length': 5.0453074433656955, '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': '5691102', 'n_tokens_mistral': 534, 'n_tokens_neox': 530, 'n_words': 109}