<commit_before><?php namespace LaraCms\Lara\Controllers;

use App\Page;
use App\PageField;

use View,Response,Input,Validator;
Use laraCms\Lara\BaseController;

use App\Http\Controllers\Controller;

class PageController extends Controller {

    use BaseController;
    
    protected $name_controller = 'page';
    protected $paginate = false;
    
    public function model()
    {
        return new Page();
    }
    
    public function idUpdate()
    {
        return Input::get('id');
    }
    
    public function updateModel($model)
    {
        if (Input::has( 'page_field' ))
        {
            $model->setField(Input::get( 'page_field' ));
        }

        if (Input::has( 'title' ))
        {
            $model->title = Input::get( 'title' );
        }    
        
        if (Input::has( 'url' ))
        {
            $model->url = Input::get( 'url' );
        }
        
        if (Input::has( 'template' ))
        {
            $model->template = Input::get( 'template' );
        }
        
        if (Input::has( 'menu_id' ))
        {
            $model->menu_id = Input::get( 'menu_id' );
        } 
        
        if (Input::has( 'active' ))
        {
            $model->active = Input::get( 'active' );
        }    
        
        if (Input::has( 'content' ))
        {
            $model->content = Input::get( 'content' );
        }
        <commit_msg>no message<commit_after><?php namespace LaraCms\Lara\Controllers;

use App\Page;
use App\PageField;

use View,Response,Input,Validator;
Use laraCms\Lara\BaseController;

use App\Http\Controllers\Controller;

class PageController extends Controller {

    use BaseController;
    
    protected $name_controller = 'page';
    protected $paginate = false;
    
    public function model()
    {
        return new Page();
    }
    
    public function idUpdate()
    {
        return Input::get('id');
    }
    
    public function updateModel($model)
    {
        if (Input::has( 'page_field' ))
        {
            $model->setField(Input::get( 'page_field' ));
        }

        if (Input::has( 'title' ))
        {
            $model->title = Input::get( 'title' );
        }    
        
        if (Input::has( 'url' ))
        {
            $model->url = Input::get( 'url' );
        }
        
        if (Input::has( 'template' ))
        {
            $model->template = Input::get( 'template' );
        }
        
        if (Input::has( 'menu_id' ))
        {
            $model->menu_id = Input::get( 'menu_id' );
        } 
        
        //if (Input::has( 'active' ))
        //{
            $model->active = Input::get( 'active',false);
        //}    
        
        if (Input::has( 'content' ))
        {
            $model->content = Input::get( 'content' );
        }
        
{'fraction_non_alphanumeric': 0.1475, 'fraction_numerical': 0.0, 'mean_word_length': 1.5863342566943675, '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': '6520889', 'n_tokens_mistral': 856, 'n_tokens_neox': 855, 'n_words': 161}