<commit_before><?php
	namespace vps\tools\modules\setting\widgets;

	use vps\tools\modules\setting\models\Setting;
	use yii\base\Widget;
	use yii\web\View;
	use Yii;

	class SettingWidget extends Widget
	{
		/**
		 * @inheritdoc
		 */
		public function init ()
		{
			parent::init();
			$this->view = new View([
				'renderers' => [
					'tpl' => [
						'class'   => 'yii\smarty\ViewRenderer',
						'imports' => [
							'Html' => '\vps\tools\helpers\Html',
							'Url'  => '\vps\tools\helpers\Url'
						]
					]
				]
			]);
			Yii::$app->view->registerCss('#setting-list .value {font-family: monospace; white-space: pre-line}');
		}

		/**
		 * @inheritdoc
		 */
		public function run ()
		{
			$settings = Setting::find()->orderBy('name')->all();
<commit_msg>#27: pre-wrap style.<commit_after><?php
	namespace vps\tools\modules\setting\widgets;

	use vps\tools\modules\setting\models\Setting;
	use yii\base\Widget;
	use yii\web\View;
	use Yii;

	class SettingWidget extends Widget
	{
		/**
		 * @inheritdoc
		 */
		public function init ()
		{
			parent::init();
			$this->view = new View([
				'renderers' => [
					'tpl' => [
						'class'   => 'yii\smarty\ViewRenderer',
						'imports' => [
							'Html' => '\vps\tools\helpers\Html',
							'Url'  => '\vps\tools\helpers\Url'
						]
					]
				]
			]);
			Yii::$app->view->registerCss('#setting-list .value {font-family: monospace; white-space: pre-wrap}');
		}

		/**
		 * @inheritdoc
		 */
		public function run ()
		{
			$settings = Setting::find()->orderBy('name')->all();

{'fraction_non_alphanumeric': 0.193632228719948, 'fraction_numerical': 0.001299545159194282, 'mean_word_length': 2.58974358974359, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '7580566', 'n_tokens_mistral': 688, 'n_tokens_neox': 556, 'n_words': 90}