<commit_before><?php
/**
 * the index controller
 * @author dknx01
 * @package Controller
 */
class Controller_Index extends Controller_Abstract
{
    /**
     * the main action with the controller logic
     */
    public function indexAction()
    {
        $session = new Session_Session();
        $session->hallo = 'Da sollte was stehen';
        $session2 = new Session_Session('TEST');
        $session2->hallo = 'hier ist etwas';
        Helper_Debug::dump($session->hallo);
        Helper_Debug::dump($session2->hallo);
        Helper_Debug::dump($_SESSION);
        exit;
        $testDml = new Db_TestTable();
        $this->addToView('testData',$testDml->fetchAll());
        $form = new Form_TestForm();
        $this->addToView('testform', $form->render());
        if ($this->getRequest()->getParamByName('weg')) {
            if ($form->check()->errorNumbers() > 0) {
                $this->addToView('formErrors', $form->check()->getAllErrors());
            }
        }
    }
    public function testAction()
    {
        
    }
}<commit_msg>added Session handling<commit_after><?php
/**
 * the index controller
 * @author dknx01
 * @package Controller
 */
class Controller_Index extends Controller_Abstract
{
    /**
     * the main action with the controller logic
     */
    public function indexAction()
    {
        $session = new Session_Session();
        $session->hallo = 'Da sollte was stehen';
        $session2 = new Session_Session('TEST');
        $session2->hallo = 'hier ist etwas';
        $testDml = new Db_TestTable();
        $this->addToView('testData',$testDml->fetchAll());
        $form = new Form_TestForm();
        $this->addToView('testform', $form->render());
        if ($this->getRequest()->getParamByName('weg')) {
            if ($form->check()->errorNumbers() > 0) {
                $this->addToView('formErrors', $form->check()->getAllErrors());
            }
        }
    }
    public function testAction()
    {
        
    }
}
{'fraction_non_alphanumeric': 0.1545042778057373, 'fraction_numerical': 0.0055359838953195776, 'mean_word_length': 2.4454072790294625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '2467917', 'n_tokens_mistral': 581, 'n_tokens_neox': 570, 'n_words': 118}