<commit_before><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Report extends MY_Controller
{

	function __construct()
	{
		parent::__construct();
		$this->load->model("student_report_model","report");
	}


	function create()
	{

		$kStudent = $this->uri->segment(3);
		$this->load->model("student_model","student");
		$this->load->model("teacher_model","teacher");
		$this->load->model("menu_model","menu");
		$data["kStudent"] = $kStudent;
		$report =  $this->student->get($kStudent,"stuFirst,stuLast,stuNickname,teachFirst as advisorFirst,teachLast as advisorLast,teacher.kTeach as kAdvisor",TRUE);
		$data["student"] = format_name($report->stuFirst,$report->stuLast,$report->stuNickname);
		$data["advisor"] = format_name($report->advisorFirst,$report->advisorLast);
		$data["report"] = $report;<commit_msg>bug fix for ranks in orange slips.<commit_after><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Report extends MY_Controller
{

	function __construct()
	{
		parent::__construct();
		$this->load->model("student_report_model","report");
	}


	function create()
	{

		$kStudent = $this->uri->segment(3);
		$this->load->model("student_model","student");
		$this->load->model("teacher_model","teacher");
		$this->load->model("menu_model","menu");
		$data["ranks"] = get_keyed_pairs($this->menu->get_pairs("report_rank"),array("value","label"));
		
		$data["kStudent"] = $kStudent;
		$report =  $this->student->get($kStudent,"stuFirst,stuLast,stuNickname,teachFirst as advisorFirst,teachLast as advisorLast,teacher.kTeach as kAdvisor",TRUE);
		$data["student"] = format_name($report->stuFirst,$report->stuLast,$report->stuNickname);
		$data["advisor"] = format_name($report->advisorFirst,$report->advisorLast);
		$data["report"] = $report;
{'fraction_non_alphanumeric': 0.19701986754966888, 'fraction_numerical': 0.0011037527593818985, 'mean_word_length': 7.240909090909091, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7229036', 'n_tokens_mistral': 640, 'n_tokens_neox': 597, 'n_words': 85}