<commit_before><?php
class Vpc_Directories_List_View_Admin extends Vpc_Admin
{
    public function onRowUpdate($row)
    {
        if (Vpc_Abstract::getSetting($this->_class, 'viewCache')) {
            $items = Vps_Component_Data_Root::getInstance()
                ->getComponentsByClass($this->_class);
            $tableNames = array();
            foreach ($items as $item) {
                $dir = $item->parent->getComponent()->getItemDirectory();
                $t = Vpc_Abstract::getSetting($dir, 'tablename');
                if (!in_array($t, $tableNames)) {
                    $tableNames[] = $t;
                }
            }
            foreach ($tableNames as $t) {
                if ($row->getTable() instanceof $t) {
                    Vps_Component_Cache::getInstance()->remove($this->_class);
                }
            }
        }
    }
}<commit_msg>Bugfix<commit_after><?php
class Vpc_Directories_List_View_Admin extends Vpc_Admin
{
    public function onRowUpdate($row)
    {
        if (Vpc_Abstract::getSetting($this->_class, 'viewCache')) {
            $items = Vps_Component_Data_Root::getInstance()
                ->getComponentsByClass($this->_class);
            $tableNames = array();
            foreach ($items as $item) {
                $dir = $item->parent->getComponent()->getItemDirectory();
                if (is_object($dir)) $dir = $dir->componentClass;
                $t = Vpc_Abstract::getSetting($dir, 'tablename');
                if (!in_array($t, $tableNames)) {
                    $tableNames[] = $t;
                }
            }
            foreach ($tableNames as $t) {
                if ($row->getTable() instanceof $t) {
                    Vps_Component_Cache::getInstance()->remove($this->_class);
                }
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.13813979086406164, 'fraction_numerical': 0.0, 'mean_word_length': 1.7587253414264037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '4607255', 'n_tokens_mistral': 505, 'n_tokens_neox': 487, 'n_words': 82}