<commit_before><?php
class Vps_Assets_Dependencies
{
    private $_files = array();
    private $_config;
    private $_path;
    private $_loader;
    private $_dependenciesConfig;
    private $_processedDependencies = array();
    private $_processedComponents = array();
    private $_cacheMaxFileMTime;
    /**
     * @param Zend_Config für tests
     **/
    public function __construct(Vps_Assets_Loader $loader)
    {
        $this->_loader = $loader;
        $this->_config = $loader->getConfig();
        $this->_path = $this->_config->path->toArray();
    }

    public function getMaxFileMTime()
    {
        if (isset($this->_cacheMaxFileMTime)) {
            return $this->_cacheMaxFileMTime;
        }
        $cache = Vps_Assets_Cache::getInstance();
        if (($ret = $cache->load('maxFileMTime')) === false) {
            $ret = 0;
            $files = $this->getAssetFiles('Admin', null, 'web', Vps_Component_Data_Root::getComponentClass());
            unset($files['mtime']);
            foreach ($files as $file) {
                if (substr($file, 0, 7) == 'http://' || substr($file, 0, 8) == 'https://' || substr($file, 0, 1) == '/') {
                } else if (substr($file, 0, 8) == 'dynamic/') {
                } else {
                    $ret = max($ret, filemtime($this->getAssetPath($file)));
                }
            }
            $ret = array($ret);
            $cache->save($ret, 'maxFileMTime');<commit_msg>fix test wenns kein Admin depenency gibt<commit_after><?php
class Vps_Assets_Dependencies
{
    private $_files = array();
    private $_config;
    private $_path;
    private $_loader;
    private $_dependenciesConfig;
    private $_processedDependencies = array();
    private $_processedComponents = array();
    private $_cacheMaxFileMTime;
    /**
     * @param Zend_Config für tests
     **/
    public function __construct(Vps_Assets_Loader $loader)
    {
        $this->_loader = $loader;
        $this->_config = $loader->getConfig();
        $this->_path = $this->_config->path->toArray();
    }

    public function getMaxFileMTime()
    {
        if (isset($this->_cacheMaxFileMTime)) {
            return $this->_cacheMaxFileMTime;
        }
        $cache = Vps_Assets_Cache::getInstance();
        if (($ret = $cache->load('maxFileMTime')) === false) {
            $ret = 0;
            $assetsType = 'Admin';
            if (!isset($this->_config->assets->Admin)) {
                //für tests wenn keine Admin da, erste aus config nehmen
                $assetsType = key($this->_config->assets->toArray());
            }
            $files = $this->getAssetFiles($assetsType, null, 'web', Vps_Component_Data_Root::getComponentClass());
            unset($files['mtime']);
            foreach ($files as $file) {
                if (substr($file, 0, 7) == 'http://' || substr($file, 0, 8) == 'https://' || substr($file, 0, 1) == '/') {
                } else if (substr($file, 0, 8) == 'dynamic/') {
                } else {
                    $ret = max($ret, filemtime($this->getAssetPath($file)));
                }
            }
            $ret = array($ret);
            $cache->save($ret, 'maxFileMTime');
{'fraction_non_alphanumeric': 0.1612193588937775, 'fraction_numerical': 0.0056568196103079825, 'mean_word_length': 2.186186186186186, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, 'https://': 2, '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': '4793709', 'n_tokens_mistral': 953, 'n_tokens_neox': 914, 'n_words': 195}