<commit_before><?php

class ViewDetailTest extends SuiteCRM\StateCheckerPHPUnitTestCaseAbstract
{
    public function setUp()
    {
        parent::setUp();
        
        $this->stateSaver = new SuiteCRM\StateSaver();
        $this->stateSaver->pushTable('email_addresses');

        global $current_user;
        get_sugar_config_defaults();
        $current_user = new User();
    }
    
    public function tearDown()
    {   
        $this->stateSaver->popTable('email_addresses');
        
        parent::tearDown();
    }

    public function testViewDetail()
    {
        //execute the contructor and check for the Object type and type attribute
        $view = new ViewDetail();
        $this->assertInstanceOf('ViewDetail', $view);
        $this->assertInstanceOf('SugarView', $view);
        $this->assertAttributeEquals('detail', 'type', $view);
    }
<commit_msg>predefine class var<commit_after><?php

class ViewDetailTest extends SuiteCRM\StateCheckerPHPUnitTestCaseAbstract
{
    
    protected $stateSaver;
    
    public function setUp()
    {
        parent::setUp();
        
        $this->stateSaver = new SuiteCRM\StateSaver();
        $this->stateSaver->pushTable('email_addresses');

        global $current_user;
        get_sugar_config_defaults();
        $current_user = new User();
    }
    
    public function tearDown()
    {   
        $this->stateSaver->popTable('email_addresses');
        
        parent::tearDown();
    }

    public function testViewDetail()
    {
        //execute the contructor and check for the Object type and type attribute
        $view = new ViewDetail();
        $this->assertInstanceOf('ViewDetail', $view);
        $this->assertInstanceOf('SugarView', $view);
        $this->assertAttributeEquals('detail', 'type', $view);
    }

{'fraction_non_alphanumeric': 0.11980033277870217, 'fraction_numerical': 0.0, 'mean_word_length': 2.6152304609218437, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '6609759', 'n_tokens_mistral': 512, 'n_tokens_neox': 512, 'n_words': 102}