<commit_before><?php

class LivepostController extends BaseController {
    
        protected $livepost;
        
    
        public function __construct(Livepost $livepost)
        {
            $this->livepost = $livepost;
        }
        
        public function index()
	{
		$liveposts = $this->livepost->where('order', '!=', 0)->orderBy('id','desc')->get();
                return View::make('liveposts.index', ['liveposts' => $liveposts])->with('nav',Page::navbar());
	}
        
        public function show($id)
        {
                $this->livepost = Livepost::whereId($id)->first();
                return View::make('liveposts.show')->with('livepost',$this->livepost)->with('nav',Page::navbar());
            
        }
        
        
        public function edit($id=null){
            if($id != null){
                $this->livepost = $this->livepost->whereId($id)->first();
            }
            else{
                //We will init empty form
            }
            <commit_msg>Content was sorted in the wrong order (#11)<commit_after><?php

class LivepostController extends BaseController {

        protected $livepost;


        public function __construct(Livepost $livepost)
        {
            $this->livepost = $livepost;
        }

        public function index()
	{
		$liveposts = $this->livepost->where('order', '!=', 0)->orderBy('id','asc')->get();
                return View::make('liveposts.index', ['liveposts' => $liveposts])->with('nav',Page::navbar());
	}

        public function show($id)
        {
                $this->livepost = Livepost::whereId($id)->first();
                return View::make('liveposts.show')->with('livepost',$this->livepost)->with('nav',Page::navbar());

        }


        public function edit($id=null){
            if($id != null){
                $this->livepost = $this->livepost->whereId($id)->first();
            }
            else{
                //We will init empty form
            }
            
{'fraction_non_alphanumeric': 0.16407425990968388, 'fraction_numerical': 0.002007024586051179, 'mean_word_length': 1.856733524355301, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '4108863', 'n_tokens_mistral': 556, 'n_tokens_neox': 528, 'n_words': 93}