<commit_before><?php

class TaskTest extends SuiteCRM\StateCheckerPHPUnitTestCaseAbstract
{
    public function setUp()
    {
        parent::setUp();

        global $current_user;
        get_sugar_config_defaults();
        $current_user = new User();
    }

    public function testTask()
    {

        //execute the contructor and check for the Object type and  attributes
        $task = new Task();

        $this->assertInstanceOf('Task', $task);
        $this->assertInstanceOf('SugarBean', $task);
<commit_msg>fixing state on tests<commit_after><?php

class TaskTest extends SuiteCRM\StateCheckerPHPUnitTestCaseAbstract
{
    /**
     *
     * @var SuiteCRM\StateSaver
     */
    protected $state;
    
    public function setUp()
    {
        parent::setUp();

        $this->state = new SuiteCRM\StateSaver();
        $this->state->pushFile('config.php');
        
        global $current_user;
        get_sugar_config_defaults();
        $current_user = new User();
    }
    
    public function tearDown() {
        
        $this->state->popFile('config.php');
        
        parent::tearDown();
    }

    public function testTask()
    {

        //execute the contructor and check for the Object type and  attributes
        $task = new Task();

        $this->assertInstanceOf('Task', $task);
        $this->assertInstanceOf('SugarBean', $task);

{'fraction_non_alphanumeric': 0.11807580174927114, 'fraction_numerical': 0.0, 'mean_word_length': 2.356968215158924, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '5927734', 'n_tokens_mistral': 397, 'n_tokens_neox': 392, 'n_words': 88}