<commit_before><?php

require_once (__DIR__."/../../module_system/system/class_testbase.php");

class class_test_generalModelTest extends class_testbase {


    public function testModuleModels() {

        echo "preparing object saves...\n";


        class_carrier::getInstance()->getObjRights()->setBitTestMode(true);

        $arrFiles = class_resourceloader::getInstance()->getFolderContent("/system", array(".php"));

        /**
         * @var class_model[]
         */
        $arrClassInstances = array();
        $arrSystemids = array();


        foreach($arrFiles as $strOneFile) {
            if(uniStripos($strOneFile, "class_module_") !== false) {
                $objClass = new ReflectionClass(uniSubstr($strOneFile, 0, -4));
                if(!$objClass->isAbstract() && $objClass->isSubclassOf("class_model")) {

                    if(!in_array(
                        $objClass->getName(),
                        array(
                            "class_module_pages_element",
                            "class_module_languages_languageset",
                            "class_module_system_session",
                            "class_module_system_setting",
                            "class_module_user_group",
                            "class_module_user_user",
                            "class_module_workflows_workflow",
                            "class_module_pages_pageelement"
                        )
                    )
                    ) {

                        $arrClassInstances[] = $objClass->newInstance();
                    }
                }
            }
        }


        /** @var $objOneInstance class_model */<commit_msg>updated unittest<commit_after><?php

require_once (__DIR__."/../../module_system/system/class_testbase.php");

class class_test_generalModelTest extends class_testbase {


    public function testModuleModels() {

        echo "preparing object saves...\n";


        class_carrier::getInstance()->getObjRights()->setBitTestMode(true);

        $arrFiles = class_resourceloader::getInstance()->getFolderContent("/system", array(".php"));

        /**
         * @var class_model[]
         */
        $arrClassInstances = array();
        $arrSystemids = array();


        foreach($arrFiles as $strOneFile) {
            if(uniStripos($strOneFile, "class_module_") !== false) {
                $objClass = new ReflectionClass(uniSubstr($strOneFile, 0, -4));
                if(!$objClass->isAbstract() && $objClass->isSubclassOf("class_model")) {

                    if(!in_array(
                        $objClass->getName(),
                        array(
                            "class_module_pages_element",
                            "class_module_languages_languageset",
                            "class_module_system_session",
                            "class_module_system_setting",
                            "class_module_user_group",
                            "class_module_user_user",
                            "class_module_workflows_workflow",
                            "class_module_pages_pageelement",
                            "class_module_stats_worker"
                        )
                    )
                    ) {

                        $arrClassInstances[] = $objClass->newInstance();
                    }
                }
            }
        }


        /** @var $objOneInstance class_model */
{'fraction_non_alphanumeric': 0.11011040092969204, 'fraction_numerical': 0.0011621150493898896, 'mean_word_length': 1.4505338078291814, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '7050016', 'n_tokens_mistral': 889, 'n_tokens_neox': 834, 'n_words': 108}