<commit_before><?php

/**
 * NoteUploadForm class.
 * NoteUploadForm is the data structure for uploading new note.
 */
class NoteUploadForm extends CFormModel
{
	public $title;
	public $description;
	public $faculty_id;
	public $course_id;
	public $new_course_name;
	public $file;
	public $raw_file_text;

	/**
	 * Declares the validation rules.
	 */
	public function rules()
	{
		return array(
			// username and password are required
			array('title, description, faculty_id', 'required'),
			// password needs to be authenticated
			array('course_id', 'checkCourse'),
			array('file', 'checkNote'),
			array('new_course_name, raw_file_text', 'safe'),
		);
	}
<commit_msg>Mengubah description menjadi tidak required<commit_after><?php

/**
 * NoteUploadForm class.
 * NoteUploadForm is the data structure for uploading new note.
 */
class NoteUploadForm extends CFormModel
{
	public $title;
	public $description;
	public $faculty_id;
	public $course_id;
	public $new_course_name;
	public $file;
	public $raw_file_text;

	/**
	 * Declares the validation rules.
	 */
	public function rules()
	{
		return array(
			// username and password are required
			array('title, faculty_id', 'required'),
			// password needs to be authenticated
			array('course_id', 'checkCourse'),
			array('file', 'checkNote'),
			array('description, new_course_name, raw_file_text', 'safe'),
		);
	}

{'fraction_non_alphanumeric': 0.11901306240928883, 'fraction_numerical': 0.0, 'mean_word_length': 4.365758754863813, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3850547', 'n_tokens_mistral': 467, 'n_tokens_neox': 428, 'n_words': 124}