<commit_before><?php
	/**
	 * documentAdminView class
	 * Document admin view of the module class
	 *
	 * @author NHN (<EMAIL>)
	 * @Adaptor DAOL Project (<EMAIL>)
	 * @package /modules/document
	 * @version 0.1
	 */
	class documentAdminView extends document {
		/**
		 * Initialization
		 * @return void
		 */
		function init() {
			// check current location in admin menu
			$oModuleModel = &getModel('module');
			$info = $oModuleModel->getModuleActionXml('document');
			foreach($info->menu AS $key => $menu)
			{
				if(in_array($this->act, $menu->acts))
				{
					Context::set('currentMenu', $key);
					break;
				}
			}
		}

		/**
		 * Display a list(administrative)
		 * @return void
		 */
		function dispDocumentAdminList() {
			// option to get a list
			$args = new stdClass();
			$args->page = Context::get('page'); // /< Page
			$args->list_count = 30; // /< the number of posts to display on a single page
			$args->page_count = 5; // /< the number of pages that appear in the page navigation

			$args->search_target = Context::get('search_target'); // /< search (title, contents ...)
			$args->search_keyword = Context::get('search_keyword'); // /< keyword to search

			$args->sort_index = 'list_order'; // /< sorting value

			$args->module_srl = Context::get('module_srl');

			// get a list
			$oDocumentModel = &getModel('document');
			$columnList = array('document_srl', 'module_srl', 'title', 'member_srl', 'nick_name', 'readed_count', 'voted_count', 'blamed_count', 'regdate', 'ipaddress', 'status');
			$output = $oDocumentModel->getDocumentList($args, false, true, $columnList);

			// get Status name list
			$statusNameList = $oDocumentModel->getStatusNameList();

			// Set values of document_model::getDocumentList() objects for a template
			Context::set('total_count', $output->total_count);<commit_msg>documentAdminView::dispDocumentAdminList()에서 category_srl 데이터를 가져오도록 개선<commit_after><?php
	/**
	 * documentAdminView class
	 * Document admin view of the module class
	 *
	 * @author NHN (<EMAIL>)
	 * @Adaptor DAOL Project (<EMAIL>)
	 * @package /modules/document
	 * @version 0.1
	 */
	class documentAdminView extends document {
		/**
		 * Initialization
		 * @return void
		 */
		function init() {
			// check current location in admin menu
			$oModuleModel = &getModel('module');
			$info = $oModuleModel->getModuleActionXml('document');
			foreach($info->menu AS $key => $menu)
			{
				if(in_array($this->act, $menu->acts))
				{
					Context::set('currentMenu', $key);
					break;
				}
			}
		}

		/**
		 * Display a list(administrative)
		 * @return void
		 */
		function dispDocumentAdminList() {
			// option to get a list
			$args = new stdClass();
			$args->page = Context::get('page'); // /< Page
			$args->list_count = 30; // /< the number of posts to display on a single page
			$args->page_count = 5; // /< the number of pages that appear in the page navigation

			$args->search_target = Context::get('search_target'); // /< search (title, contents ...)
			$args->search_keyword = Context::get('search_keyword'); // /< keyword to search

			$args->sort_index = 'list_order'; // /< sorting value

			$args->module_srl = Context::get('module_srl');

			// get a list
			$oDocumentModel = getModel('document');
			$columnList = array('document_srl', 'module_srl', 'title', 'member_srl', 'nick_name', 'readed_count', 'voted_count', 'blamed_count', 'regdate', 'ipaddress', 'status', 'category_srl');
			$output = $oDocumentModel->getDocumentList($args, false, true, $columnList);

			// get Status name list
			$statusNameList = $oDocumentModel->getStatusNameList();

			// Set values of document_model::getDocumentList() objects for a template
			Context::set('total_count', $output->total_count);
{'fraction_non_alphanumeric': 0.16004267804747932, 'fraction_numerical': 0.002667377967457989, 'mean_word_length': 3.652605459057072, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 37, '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': '2126101', 'n_tokens_mistral': 1362, 'n_tokens_neox': 1163, 'n_words': 294}