<commit_before><?php
class Vpc_Forum_Search_Component extends Vpc_Directories_List_Component
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['generators']['child']['component']['view'] = 'Vpc_Forum_Search_View_Component';
        $ret['order'] = array('field'=>'vpc_posts.create_time', 'dir'=>'DESC');
        return $ret;
    }

    protected function _getItemDirectory()
    {
        return 'Vpc_Forum_Group_Component';
    }

    protected function _getForumDirectory()
    {
        return $this->getData()->parent;
    }

    public function getSelect()
    {
        $ret = parent::getSelect();

        $groupComponentClass = Vpc_Abstract::getChildComponentClass($this->_getForumDirectory()->componentClass, 'groups');
        $threadComponentClass = Vpc_Abstract::getChildComponentClass($groupComponentClass, 'detail');
        $postsComponentClass = Vpc_Abstract::getChildComponentClass($threadComponentClass, 'child', 'posts');

        $groupGenerator = $this->_getForumDirectory()->getGenerator('groups');
        $threadGenerator = Vps_Component_Generator_Abstract
                                ::getInstance($groupComponentClass, 'detail');<commit_msg>dir wird wieder zu direction<commit_after><?php
class Vpc_Forum_Search_Component extends Vpc_Directories_List_Component
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['generators']['child']['component']['view'] = 'Vpc_Forum_Search_View_Component';
        $ret['order'] = array('field'=>'vpc_posts.create_time', 'direction'=>'DESC');
        return $ret;
    }

    protected function _getItemDirectory()
    {
        return 'Vpc_Forum_Group_Component';
    }

    protected function _getForumDirectory()
    {
        return $this->getData()->parent;
    }

    public function getSelect()
    {
        $ret = parent::getSelect();

        $groupComponentClass = Vpc_Abstract::getChildComponentClass($this->_getForumDirectory()->componentClass, 'groups');
        $threadComponentClass = Vpc_Abstract::getChildComponentClass($groupComponentClass, 'detail');
        $postsComponentClass = Vpc_Abstract::getChildComponentClass($threadComponentClass, 'child', 'posts');

        $groupGenerator = $this->_getForumDirectory()->getGenerator('groups');
        $threadGenerator = Vps_Component_Generator_Abstract
                                ::getInstance($groupComponentClass, 'detail');
{'fraction_non_alphanumeric': 0.12911084043848964, 'fraction_numerical': 0.0, 'mean_word_length': 3.8986083499005963, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '495111', 'n_tokens_mistral': 651, 'n_tokens_neox': 648, 'n_words': 101}