<commit_before><?php /**
 * Part of ci-phpunit-test
 *
 * @author     <NAME> <https://github.com/kenjis>
 * @license    MIT License
 * @copyright  2015 <NAME>
 * @link       https://github.com/kenjis/ci-phpunit-test
 */

class Welcome_test extends TestCase
{
    
        public function setUp()
        {
                $this->resetInstance();
                $this->CI->load->model('Mymodel');
		$this->objek = $this->CI->Mymodel;
           }
        public function test_index() 
        {
                $output = $this->request('GET', 'page/index');
                $this->assertContains('Masuk', $output);
        }
        
        public function test_register(){
                $output = $this->request('GET', 'page/register');
                $this->assertContains('Register', $output);
        }
        
        public function test_add_register(){
                $awal = $this->objek->getCurrentRow();  
                $output = $this->request('POST','controller/add_register',
                           ['nim'=>'5215118078', 
                            'nama'=>'ian', <commit_msg>Update Welcome_test.php<commit_after><?php /**
 * Part of ci-phpunit-test
 *
 * @author     <NAME> <https://github.com/kenjis>
 * @license    MIT License
 * @copyright  2015 <NAME>
 * @link       https://github.com/kenjis/ci-phpunit-test
 */

class Welcome_test extends TestCase
{
    
        public function setUp()
        {
                $this->resetInstance();
                $this->CI->load->model('Mymodel');
		$this->objek = $this->CI->Mymodel;
           }
        public function test_index() 
        {
                $output = $this->request('GET', 'page/index');
                $this->assertContains('Masuk', $output);
        }
        
        public function test_register(){
                $output = $this->request('GET', 'page/register');
                $this->assertContains('Register', $output);
        }
        
        public function test_add_register(){
                $awal = $this->objek->getCurrentRow();  
                $output = $this->request('POST','controller/add_register',
                           ['nim'=>'5215008078', 
                            'nama'=>'ian', 
{'fraction_non_alphanumeric': 0.15492321589882566, 'fraction_numerical': 0.012646793134598013, 'mean_word_length': 1.6848484848484848, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 41, 'https://': 4, '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': '6879865', 'n_tokens_mistral': 653, 'n_tokens_neox': 617, 'n_words': 103}