<commit_before><?php

class CategoriesController extends CiiController
{
	/**
	 * Base filter, allows logged in and non-logged in users to cache the page
	 */
	public function filters()
	{
		$id = Yii::app()->getRequest()->getQuery('id');

		return CMap::mergeArray(parent::filters(), array(
			array(
				'CHttpCacheFilter + index',
				'cacheControl'=>Cii::get(Yii::app()->user->id) == NULL ? 'public' : 'private' .', no-cache, must-revalidate',
				'etagSeed'=>$id
			),
			array(
				'COutputCache + list',
				'duration' => YII_DEBUG ? 1 : 86400,
				'varyByParam' => array('page'),
				'varyByLanguage' => true,
				'dependency' => array(
					'class'=>'CDbCacheDependency',
					'sql'=>'SELECT MAX(updated) FROM content'. ($id!=NULL ? 'WHERE category_id = ' . $id : NULL),
				)
			),
			array(
				'COutputCache + rss',
				'duration' => YII_DEBUG ? 1 : 86400,
				'dependency' => array(
					'class'=>'CDbCacheDependency',
					'sql'=>'SELECT MAX(updated) FROM content'. ($id!=NULL ? 'WHERE category_id = ' . $id : NULL),
				)
			)
		));
	}

	/**
	 * Handles all incoming requests for the entire site that are not previous defined in CUrlManager
	 * Requests come in, are verified, and then pulled from the database dynamically
	 * Shows all blog posts for a particular category_id
	 * @param $id	- The content ID that we want to pull from the database
	 * @return $this->render() - Render of page that we want to display
	 **/
	public function actionIndex($id=NULL)
	{
		// Run a pre check of our data
		$this->beforeCiiAction($id);

		// Retrieve the data
		$category = Categories::model()->findByPk($id);

		// Set the layout
		$this->setLayout('default');

		$this->setPageTitle(Yii::t('ciims.controllers.Categories', '{{app_name}} | {{label}}', array(
			'{{app_name}}' => Cii::getConfig('name', Yii::app()->name),
			'{{label}}'    => $category->name
		)));
<commit_msg>Fixing RSS feed display issue<commit_after><?php

class CategoriesController extends CiiController
{
	/**
	 * Base filter, allows logged in and non-logged in users to cache the page
	 */
	public function filters()
	{
		$id = Yii::app()->getRequest()->getQuery('id');

		return CMap::mergeArray(parent::filters(), array(
			array(
				'CHttpCacheFilter + index',
				'cacheControl'=>Cii::get(Yii::app()->user->id) == NULL ? 'public' : 'private' .', no-cache, must-revalidate',
				'etagSeed'=>$id
			),
			array(
				'COutputCache + list',
				'duration' => YII_DEBUG ? 1 : 86400,
				'varyByParam' => array('page'),
				'varyByLanguage' => true,
				'dependency' => array(
					'class'=>'CDbCacheDependency',
					'sql'=>'SELECT MAX(updated) FROM content'. ($id!=NULL ? ' WHERE category_id = ' . $id : NULL),
				)
			),
			array(
				'COutputCache + rss',
				'duration' => YII_DEBUG ? 1 : 86400,
				'dependency' => array(
					'class'=>'CDbCacheDependency',
					'sql'=>'SELECT MAX(updated) FROM content'. ($id!=NULL ? ' WHERE category_id = ' . $id : NULL),
				)
			)
		));
	}

	/**
	 * Handles all incoming requests for the entire site that are not previous defined in CUrlManager
	 * Requests come in, are verified, and then pulled from the database dynamically
	 * Shows all blog posts for a particular category_id
	 * @param $id	- The content ID that we want to pull from the database
	 * @return $this->render() - Render of page that we want to display
	 **/
	public function actionIndex($id=NULL)
	{
		// Run a pre check of our data
		$this->beforeCiiAction($id);

		// Retrieve the data
		$category = Categories::model()->findByPk($id);

		// Set the layout
		$this->setLayout('default');

		$this->setPageTitle(Yii::t('ciims.controllers.Categories', '{{app_name}} | {{label}}', array(
			'{{app_name}}' => Cii::getConfig('name', Yii::app()->name),
			'{{label}}'    => $category->name
		)));

{'fraction_non_alphanumeric': 0.17150395778364116, 'fraction_numerical': 0.0063324538258575196, 'mean_word_length': 3.628815628815629, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 53, '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': '3217567', 'n_tokens_mistral': 1431, 'n_tokens_neox': 1217, 'n_words': 334}