<commit_before><?php

namespace frontend\controllers;

use Yii;
use common\models\GivenTask;
use yii\data\ActiveDataProvider;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\base\Model;
use frontend\models\GivenTaskSearch;
use yii\filters\AccessControl;
/**
 * GivenTaskController implements the CRUD actions for GivenTask model.
 */
class GivenTaskController extends Controller
{
    public function behaviors()
    {
        return [
            'access' => [
                'class' => AccessControl::className(),                
                'only' => ['index','control','give','check','view', 'create','update','delete'],
                'rules' => [
                    [   
                        'actions' =>  ['index','control','give','check','view', 'create','update','delete'],
                        'allow' => true,
                        'roles' => ['teacher'],
                    ],                  
                ],
            ],
            'verbs' => [
                'class' => VerbFilter::className(),<commit_msg>nothing<commit_after><?php

namespace frontend\controllers;

use Yii;
use common\models\GivenTask;
use yii\data\ActiveDataProvider;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\base\Model;
use frontend\models\GivenTaskSearch;
use yii\filters\AccessControl;
/**
 * GivenTaskController implements the CRUD actions for GivenTask model.
 */
class GivenTaskController extends Controller
{
    public function behaviors()
    {
        return [
            'access' => [
                'class' => AccessControl::className(),                
                'only' => ['index','control','give','check','view', 'create','update','delete','taken'],
                'rules' => [
                    [   
                        'actions' =>  ['index','control','give','check','view', 'create','update','delete'],
                        'allow' => true,
                        'roles' => ['teacher'],
                    ], 
                    [   
                        'actions' =>  ['taken'],
                        'allow' => true,
                        'roles' => ['student'],
                    ],      
                ],
            ],
            'verbs' => [
                'class' => VerbFilter::className(),
{'fraction_non_alphanumeric': 0.14612452350698857, 'fraction_numerical': 0.0, 'mean_word_length': 1.6871444823663253, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6261472', 'n_tokens_mistral': 624, 'n_tokens_neox': 587, 'n_words': 113}