<commit_before><?php
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)
    {
        $this->data['pagetitle'] = 'TODO List Maintenance';
        // 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);
        }
        $this->data['display_tasks'] = $result;

        // and then pass them on
        $this->data['pagebody'] = 'itemlist';
		$role = $this->session->userdata('userrole');

        // INSERT the next three lines. The fourth is already there
        if ($role == ROLE_OWNER)
            $result .= $this->parser->parse('oneitemx', (array) $task, true);
        else
            $result .= $this->parser->parse('oneitem', (array) $task, true);

		$this->data['pagetitle'] = 'TODO List Maintenance ('. $role . ')';
        $this->render();

    }

    // Extract & handle a page of items, defaulting to the beginning
    function page($num = 1)<commit_msg>job 11b fixed<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 . ')';
        // 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;
            }
            if ($role == ROLE_OWNER) {
                $result .= $this->parser->parse('oneitemx', (array) $task, true);
            } else {
                $result .= $this->parser->parse('oneitem', (array) $task, true);
            }
        }
        $this->data['display_tasks'] = $result;
        // and then pass them on
        $this->data['pagebody'] = 'itemlist';
        $this->render();
    }

    // Extract & handle a page of items, defaulting to the beginning
    function page($num = 1)
{'fraction_non_alphanumeric': 0.15755883526126846, 'fraction_numerical': 0.003988831272437176, 'mean_word_length': 2.1468005018820575, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 40, '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': '6792809', 'n_tokens_mistral': 743, 'n_tokens_neox': 710, 'n_words': 197}