<commit_before><?php
	/**
	 * @var MistakeController $this
	 * @var CArrayDataProvider $data_provider
	 * @var array $daily_stats
	 */

	Yii::app()->getClientScript()->registerScript(
		base64_encode(uniqid(rand(), true)),
		'var DEFAULT_CURRENT_URL = \''
				. CJavaScript::quote($this->createUrl('mistake/list'))
			. '\';',
		CClientScript::POS_HEAD
	);
	Yii::app()->getClientScript()->registerScriptFile(
		CHtml::asset('scripts/mistake_list.js'),
		CClientScript::POS_HEAD
	);

	$this->pageTitle = Yii::app()->name . ' - Ошибки';
?>

<header class = "page-header">
	<h4>Ошибки</h4>
</header>

<div class = "table-responsive clearfix">
	<?php $this->widget(
		'ExtendedGridView',
		array(
			'id' => 'mistake-list',
			'dataProvider' => $data_provider,
			'dailyStats' => $daily_stats,
			'template' => '{items} {summary} {pager}',
			'hideHeader' => true,
			'selectableRows' => 0,
			'enableHistory' => true,
			'columns' => array(
				array(
					'type' => 'raw',
					'value' =>
						'"<time '
							. 'title = \""'
								. ' . DateFormatter::formatDate('
									. '$data["date"]'
								. ') . "\">"'
							. ' . DateFormatter::formatMyDate('
								. '$data["date"]'
							. ')'
						. ' . "</time>"',
					'htmlOptions' => array('class' => 'date-column')
				),
				array('type' => 'raw', 'value' => '$data["text"]'),
				array(
					'class' => 'CButtonColumn',
					'template' => '{look} {correct}',
					'buttons' => array(
						'look' => array(
							'label' =>
								'<span '
									. 'class = '
										. '"glyphicon '
										. 'glyphicon-eye-open">'
									. '</span>',
							'url' =>
								'$this->grid->controller->createUrl('
									. '"day/view",'
									. 'array("date" => $data["date"])'
								. ')',
							'imageUrl' => false,
							'options' => array('title' => 'Посмотреть ошибку'),
							'visible' => '$data["daily"]'
						),
						'correct' => array(
							'label' =>
								'<span '
									. 'class = '
										. '"glyphicon '
										. 'glyphicon-pencil">'
									. '</span>',<commit_msg>Issue #164: correct mistakes list.<commit_after><?php
	/**
	 * @var MistakeController $this
	 * @var CArrayDataProvider $data_provider
	 * @var array $daily_stats
	 */

	Yii::app()->getClientScript()->registerScript(
		base64_encode(uniqid(rand(), true)),
		'var DEFAULT_CURRENT_URL = \''
				. CJavaScript::quote($this->createUrl('mistake/list'))
			. '\';',
		CClientScript::POS_HEAD
	);
	Yii::app()->getClientScript()->registerScriptFile(
		CHtml::asset('scripts/mistake_list.js'),
		CClientScript::POS_HEAD
	);

	$this->pageTitle = Yii::app()->name . ' - Ошибки';
?>

<header class = "page-header">
	<h4>Ошибки</h4>
</header>

<div class = "table-responsive clearfix">
	<?php $this->widget(
		'ExtendedGridView',
		array(
			'id' => 'mistake-list',
			'dataProvider' => $data_provider,
			'dailyStats' => $daily_stats,
			'template' => '{items} {summary} {pager}',
			'hideHeader' => true,
			'selectableRows' => 0,
			'enableHistory' => true,
			'columns' => array(
				array(
					'type' => 'raw',
					'value' =>
						'"<a '
							. 'href = \""'
								. '. $this->grid->controller->createUrl('
									. '"day/view",'
									. 'array("date" => $data["date"])'
								. ') . "\">'
							. '<time '
								. 'title = \""'
									. ' . DateFormatter::formatDate('
										. '$data["date"]'
									. ') . "\">"'
								. ' . DateFormatter::formatMyDate('
									. '$data["date"]'
								. ')'
							. ' . "</time>'
						. '</a>"',
					'htmlOptions' => array('class' => 'date-column')
				),
				array('type' => 'raw', 'value' => '$data["text"]'),
				array(
					'class' => 'CButtonColumn',
					'template' => '{correct}',
					'buttons' => array(
						'correct' => array(
							'label' =>
								'<span '
									. 'class = '
										. '"glyphicon '
										. 'glyphicon-pencil">'
									. '</span>',
{'fraction_non_alphanumeric': 0.2273193234238852, 'fraction_numerical': 0.0033316248077908763, 'mean_word_length': 2.3588640275387265, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 96, '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': '5809658', 'n_tokens_mistral': 1896, 'n_tokens_neox': 1352, 'n_words': 206}