<commit_before><?php

class StoreController extends BaseController{
    
    public function __construct(){
        parent::__construct();
        $this->beforeFilter('crtf', array('on' => 'post'));
    }
    
    public function getIndex(){
        return View::make('store/index')
            ->with('products', Product::take(4)->orderBy('created_at', 'DESC')->get());
    }
    
    public function getView($id){
        return View::make('store/view')->with('product', Product::find($id));
    }
    
    public function getCategory($cat_id){
        return View::make('store/category')
            ->with('products', Product::where('category_id', '=' . $cat_id))->paginate(6)
            ->with('category', Category::find($cat_id));
    }
}<commit_msg>fixed syntax error on the paginate function<commit_after><?php

class StoreController extends BaseController{
    
    public function __construct(){
        parent::__construct();
        $this->beforeFilter('crtf', array('on' => 'post'));
    }
    
    public function getIndex(){
        return View::make('store/index')
            ->with('products', Product::take(4)->orderBy('created_at', 'DESC')->get());
    }
    
    public function getView($id){
        return View::make('store/view')->with('product', Product::find($id));
    }
    
    public function getCategory($cat_id){
        return View::make('store/category')
            ->with('products', Product::where('category_id', '=' . $cat_id)->paginate(6))
            ->with('category', Category::find($cat_id));
    }
}
{'fraction_non_alphanumeric': 0.18393782383419688, 'fraction_numerical': 0.0025906735751295338, 'mean_word_length': 3.12, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '1193465', 'n_tokens_mistral': 433, 'n_tokens_neox': 433, 'n_words': 78}