<commit_before><?php
class Kwf_Controller_Action_Cli_Web_ProcessControlController extends Kwf_Controller_Action_Cli_Abstract
{
    public static function getHelp()
    {
        return "start background processes used by this web";
    }

    public static function getHelpOptions()
    {
        return array();
    }

    private $_commands;
    public function preDispatch()
    {
        parent::preDispatch();
        $this->_commands = Kwf_Registry::get('config')->processControl->toArray();
        foreach ($this->_commands as $k=>$c) {
            if (!$c) {
                unset($this->_commands[$k]);
                continue;
            }
            if (!isset($c['count'])) $this->_commands[$k]['count'] = 1;
        }
    }

    public function indexAction()
    {
        $this->_start();

        if (Kwf_Config::getValue('debug.mailProcessControlOutput')) {

            $logFiles = array();
            foreach ($this->_commands as $requiredCmd) {
                $logFiles[] = "log/$requiredCmd[cmd].log";<commit_msg>Do not throw error if no process-controll action exists but cronjob is called<commit_after><?php
class Kwf_Controller_Action_Cli_Web_ProcessControlController extends Kwf_Controller_Action_Cli_Abstract
{
    public static function getHelp()
    {
        return "start background processes used by this web";
    }

    public static function getHelpOptions()
    {
        return array();
    }

    private $_commands;
    public function preDispatch()
    {
        parent::preDispatch();
        $this->_commands = array();
        if (Kwf_Registry::get('config')->processControl) {
            $this->_commands = Kwf_Registry::get('config')->processControl->toArray();
        }
        foreach ($this->_commands as $k=>$c) {
            if (!$c) {
                unset($this->_commands[$k]);
                continue;
            }
            if (!isset($c['count'])) $this->_commands[$k]['count'] = 1;
        }
    }

    public function indexAction()
    {
        $this->_start();

        if (Kwf_Config::getValue('debug.mailProcessControlOutput')) {

            $logFiles = array();
            foreach ($this->_commands as $requiredCmd) {
                $logFiles[] = "log/$requiredCmd[cmd].log";
{'fraction_non_alphanumeric': 0.1332741003998223, 'fraction_numerical': 0.000888494002665482, 'mean_word_length': 2.3561847988077496, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '3224692', 'n_tokens_mistral': 618, 'n_tokens_neox': 590, 'n_words': 129}