<commit_before><?php

namespace frontend\controllers;

use Yii;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\LoginForm;
use frontend\models\PasswordResetRequestForm;
use frontend\models\ResetPasswordForm;
use frontend\models\SignupForm;
use frontend\models\ContactForm;
use common\models\Article;
use common\models\Goods;
use common\models\GoodsCategory;

/**
 * Default controller for the `home` module
 */
class AdminController extends Controller
{
    public $layout = 'admin';
    public $countallArticles = 0;
    public $countallGoods = 0;
    public $countallGoodsCaterory = 0;
    public $countallArticleCaterory = 0;


    public function actionIndex()
    {
        $this->countallArticles = Article::find()->count();
        $this->countallGoods = Goods::find()->count();
        $this->countallGoodsCaterory = GoodsCategory::find()->count();
        $this->countallArticleCaterory = ArticleCategory::find()->count();
<commit_msg>admin<commit_after><?php

namespace frontend\controllers;

use Yii;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\LoginForm;
use frontend\models\PasswordResetRequestForm;
use frontend\models\ResetPasswordForm;
use frontend\models\SignupForm;
use frontend\models\ContactForm;
use common\models\Article;
use common\models\Goods;
use common\models\GoodsCategory;
use common\models\ArticleCategory;

/**
 * Default controller for the `home` module
 */
class AdminController extends Controller
{
    public $layout = 'admin';
    public $countallArticles = 0;
    public $countallGoods = 0;
    public $countallGoodsCaterory = 0;
    public $countallArticleCaterory = 0;


    public function actionIndex()
    {
        $this->countallArticles = Article::find()->count();
        $this->countallGoods = Goods::find()->count();
        $this->countallGoodsCaterory = GoodsCategory::find()->count();
        $this->countallArticleCaterory = ArticleCategory::find()->count();

{'fraction_non_alphanumeric': 0.11952007383479464, 'fraction_numerical': 0.0036917397323488694, 'mean_word_length': 4.781333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '7378305', 'n_tokens_mistral': 673, 'n_tokens_neox': 655, 'n_words': 136}