<commit_before><?php
/**
 * PhoneController
 * @var $this yii\web\View
 * @var $model ommu\users\models\UserPhones
 *
 * PhoneController implements the CRUD actions for UserPhones model.
 * Reference start
 * TOC :
 *	Index
 *	Create
 *	View
 *	Delete
 *	RunAction
 *	Publish
 *	Verified
 *
 *	findModel
 *
 * @author <NAME> <<EMAIL>>
 * @contact (+62)856-299-4114
 * @copyright Copyright (c) 2018 Ommu Platform (www.ommu.co)
 * @created date 14 November 2018, 15:16 WIB
 * @link https://github.com/ommu/mod-users
 *
 */
 
namespace ommu\users\controllers\manage;

use Yii;
use yii\filters\VerbFilter;
use app\components\Controller;
use mdm\admin\components\AccessControl;
use ommu\users\models\UserPhones;
use ommu\users\models\search\UserPhones as UserPhonesSearch;

class PhoneController extends Controller
{
	/**
	 * {@inheritdoc}
	 */
	public function behaviors()
	{
		return [
			// 'access' => [
			// 	'class' => AccessControl::className(),
			// ],
			'verbs' => [
				'class' => VerbFilter::className(),
				'actions' => [
					'delete' => ['POST'],
					'publish' => ['POST'],
					'verified' => ['POST'],
				],
			],
		];
	}

	/**
	 * Lists all UserPhones models.
	 * @return mixed
	 */
	public function actionIndex()
	{
		$searchModel = new UserPhonesSearch();
		$dataProvider = $searchModel->search(Yii::$app->request->queryParams);

		$gridColumn = Yii::$app->request->get('GridColumn', null);
		$cols = [];
		if($gridColumn != null && count($gridColumn) > 0) {
			foreach($gridColumn as $key => $val) {
				if($gridColumn[$key] == 1)
					$cols[] = $key;
			}
		}<commit_msg>commit<commit_after><?php
/**
 * PhoneController
 * @var $this yii\web\View
 * @var $model ommu\users\models\UserPhones
 *
 * PhoneController implements the CRUD actions for UserPhones model.
 * Reference start
 * TOC :
 *	Index
 *	Create
 *	View
 *	Delete
 *	RunAction
 *	Publish
 *	Verified
 *
 *	findModel
 *
 * @author <NAME> <<EMAIL>>
 * @contact (+62)856-299-4114
 * @copyright Copyright (c) 2018 Ommu Platform (www.ommu.co)
 * @created date 14 November 2018, 15:16 WIB
 * @link https://github.com/ommu/mod-users
 *
 */
 
namespace ommu\users\controllers\manage;

use Yii;
use yii\filters\VerbFilter;
use app\components\Controller;
use mdm\admin\components\AccessControl;
use ommu\users\models\UserPhones;
use ommu\users\models\search\UserPhones as UserPhonesSearch;

class PhoneController extends Controller
{
	/**
	 * {@inheritdoc}
	 */
	public function behaviors()
	{
		return [
			'access' => [
				'class' => AccessControl::className(),
			],
			'verbs' => [
				'class' => VerbFilter::className(),
				'actions' => [
					'delete' => ['POST'],
					'publish' => ['POST'],
					'verified' => ['POST'],
				],
			],
		];
	}

	/**
	 * Lists all UserPhones models.
	 * @return mixed
	 */
	public function actionIndex()
	{
		$searchModel = new UserPhonesSearch();
		$dataProvider = $searchModel->search(Yii::$app->request->queryParams);

		$gridColumn = Yii::$app->request->get('GridColumn', null);
		$cols = [];
		if($gridColumn != null && count($gridColumn) > 0) {
			foreach($gridColumn as $key => $val) {
				if($gridColumn[$key] == 1)
					$cols[] = $key;
			}
		}
{'fraction_non_alphanumeric': 0.17234848484848486, 'fraction_numerical': 0.017676767676767676, 'mean_word_length': 3.475988700564972, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 39, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4137216', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1090, 'n_words': 232}