<commit_before><?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of AdminController
 *
 * @author Owden
 */
class LaboratoryController  extends BaseController{
     public function __construct(){
            $this->beforeFilter('auth', array('*'));
    }

    public function laboratory(){
            return View::make('laboratory.laboratory');
    }
    public function stock(){
    	return View::make('laboratory.stock');
    }

    public function testpatients(){
        return View::make('laboratory.testpatients');
    }
    public function testpatient(){
        return View::make('laboratory.testpatient');
    }
    public function getTests(){
        return Laboratory::whereRaw('tested = FALSE')->count();
    }

   <commit_msg>added codes to retrieve data array<commit_after><?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of AdminController
 *
 * @author Owden
 */
class LaboratoryController  extends BaseController{
     public function __construct(){
            $this->beforeFilter('auth', array('*'));
    }

    public function laboratory(){
            return View::make('laboratory.laboratory');
    }
    public function stock(){
    	return View::make('laboratory.stock');
    }

    public function testpatients(){
        return View::make('laboratory.testpatients');
    }
    public function testpatient($id){
        $patients = Laboratory::wherePv_id($id)->get();
        return View::make('laboratory.testpatient',compact('patients'));
    }
    public function getTests(){
        return Laboratory::whereRaw('tested = FALSE')->count();
    }

   
{'fraction_non_alphanumeric': 0.12394957983193278, 'fraction_numerical': 0.0, 'mean_word_length': 3.2333333333333334, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '5987905', 'n_tokens_mistral': 503, 'n_tokens_neox': 484, 'n_words': 141}