<commit_before><?php

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

class Welcome extends Application
{

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

	/**
	 * Homepage for our app
	 */
	public function index()
	{
		// this is the view we want shown
		$this->data['pagebody'] = 'homepage';

		// build the list of parts, to pass on to our view
		$source = $this->robotHome->all();
		$robotPart = array ();
		foreach ($source as $record)
		{
			$robotPart[] = array ('who' => $record['who'], 'imageSrc' => $record['imageSrc']);
		}
		$robotPartsAmount
		$this->data['robotParts'] = $robotPart;

		$this->render();
	}

}
<commit_msg>Added database<commit_after><?php

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

class Welcome extends Application
{

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

	/**
	 * Homepage for our app
	 */
	public function index()
	{
		// this is the view we want shown
		$this->data['pagebody'] = 'homepage';

		// build the list of parts, to pass on to our view
		$source = $this->robotHome->all();
		$robotPart = array ();
		foreach ($source as $record)
		{
			$robotPart[] = array ('who' => $record['who'], 'imageSrc' => $record['imageSrc']);
		}
	
		$this->data['robotParts'] = $robotPart;

		$this->render();
	}

}

{'fraction_non_alphanumeric': 0.17574827321565617, 'fraction_numerical': 0.0, 'mean_word_length': 3.7418181818181817, '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': '2345847', 'n_tokens_mistral': 472, 'n_tokens_neox': 433, 'n_words': 120}