<commit_before><?php

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

class Mtce extends Application
{
	private $items_per_page = 10;
	
	public function index()
	{
		$this->page(1);
	}
	
	// Show a single page of todo items
	private function show_page($tasks)
	{
    $role = $this->session->userdata('userrole');
		$this->data['pagetitle'] = 'TODO List Maintenance ('. $role . ')';

		$tasks = $this->tasks->all(); // get all the tasks

       	// substitute the status name
		foreach ($tasks as $task)
		        if (!empty($task->status))
		                $task->status = $this->statuses->get($task->status)->name;
		// build the task presentation output
		$result = ''; // start with an empty array      
		foreach ($tasks as $task)
		{
			if (!empty($task->status))
				$task->status = $this->statuses->get($task->status)->name;
			$result .= $this->parser->parse('oneitem', (array) $task, true);
		}<commit_msg>fixed issues with Mtce controller<commit_after><?php

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

class Mtce extends Application
{
	private $items_per_page = 10;
	
	public function index()
	{
		$this->page(1);
	}
	
	// Show a single page of todo items
	private function show_page($tasks)
	{
    	$role = $this->session->userdata('userrole');
		$this->data['pagetitle'] = 'TODO List Maintenance ('. $role . ')';

		$tasks = $this->tasks->all(); // get all the tasks

       	// substitute the status name
		foreach ($tasks as $task)
		        if (!empty($task->status))
		                $task->status = $this->statuses->get($task->status)->name;
		// build the task presentation output
		$result = ''; // start with an empty array      
		foreach ($tasks as $task)
		{
			if (!empty($task->status))
				$task->status = $this->statuses->get($task->status)->name;
			$result .= $this->parser->parse('oneitem', (array) $task, true);
		}
{'fraction_non_alphanumeric': 0.17488076311605724, 'fraction_numerical': 0.003179650238473768, 'mean_word_length': 3.1955555555555555, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '4916229', 'n_tokens_mistral': 640, 'n_tokens_neox': 577, 'n_words': 160}