<commit_before><?php

defined('BASEPATH') OR exit('No direct script access allowed');

class First extends Application
{

	function __construct()
	{
		parent::__construct();
	}

	/**
	 * The default page for the current first quote.
	 */
	public function index()
	{
		// build the author we want to pass on to our view
		$firstAuthor = $this->quotes->get(1);
		$this->data['who'] = $firstAuthor['who'];
		$this->data['mug'] = $firstAuthor['mug'];
		$this->data['what'] = $firstAuthor['what'];

		// this is the view we want shown
		$this->data['pagebody'] = 'justone';
		$this->render();
    }

    /*
     * Function displays the Bob Monkouse quote.
     */
    public function zzz() {
		// build the author we want to pass on to our view
		$bob = $this->quotes->get(1);
		$this->data['who'] = $bob['who'];
		$this->data['mug'] = $bob['mug'];
		$this->data['what'] = $bob['what'];

		// this is the view we want shown
		$this->data['pagebody'] = 'justone';
		$this->render();
    }
}<commit_msg>Add the gimme() method, to display an author based on ID<commit_after><?php

defined('BASEPATH') OR exit('No direct script access allowed');

class First extends Application
{

	function __construct()
	{
		parent::__construct();
	}

	/**
	 * The default page for the current first quote.
	 */
	public function index()
	{
		// build the author we want to pass on to our view
		$firstAuthor = $this->quotes->get(1);
		$this->data['who'] = $firstAuthor['who'];
		$this->data['mug'] = $firstAuthor['mug'];
		$this->data['what'] = $firstAuthor['what'];

		// this is the view we want shown
		$this->data['pagebody'] = 'justone';
		$this->render();
    }

    /*
     * Function displays the <NAME> quote.
     */
    public function zzz() {
		// build the author we want to pass on to our view
		$bob = $this->quotes->get(1);
		$this->data['who'] = $bob['who'];
		$this->data['mug'] = $bob['mug'];
		$this->data['what'] = $bob['what'];

		// this is the view we want shown
		$this->data['pagebody'] = 'justone';
		$this->render();
    }

    /*
     * Function displays a quote by an author based on the author ID.
     */
    public function gimmie($id) {
		// build the author we want to pass on to our view
		$author = $this->quotes->get($id);
		$this->data['who'] = $author['who'];
		$this->data['mug'] = $author['mug'];
		$this->data['what'] = $author['what'];

		// this is the view we want shown
		$this->data['pagebody'] = 'justone';
		$this->render();
        
    }

}
{'fraction_non_alphanumeric': 0.1919805589307412, 'fraction_numerical': 0.0016200891049007696, 'mean_word_length': 3.2586206896551726, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 39, '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': '5695514', 'n_tokens_mistral': 889, 'n_tokens_neox': 822, 'n_words': 240}