<commit_before><?php

namespace backend\models;

use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\Feature;

/**
 * FeatureSearch represents the model behind the search form about `common\models\Feature`.
 */
class FeatureSearch extends Feature
{
    public $defaultSearch = [];

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'created_at', 'updated_at'], 'integer'],
            [['value', 'slug'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function scenarios()
    {
        // bypass scenarios() implementation in the parent class
        return Model::scenarios();
    }

    /**
     * Creates data provider instance with search query applied
     *
     * @param array $params
     *
     * @return ActiveDataProvider
     */
    public function search($params)
    {
        $query = Feature::find();

        // add conditions that should always apply here

        $dataProvider = new ActiveDataProvider([
            'query' => $query,
        ]);

        $this->load($params);

        if (!$this->validate()) {
            // uncomment the following line if you do not want to return any records when validation fails
            // $query->where('0=1');
            return $dataProvider;
        }
        
        // grid filtering conditions
        $where = [
            'id' => $this->id,
            'created_at' => $this->created_at,<commit_msg>add feature company fix<commit_after><?php

namespace backend\models;

use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\Feature;

/**
 * FeatureSearch represents the model behind the search form about `common\models\Feature`.
 */
class FeatureSearch extends Feature
{
    public $defaultSearch = [];

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'company_id','created_at', 'updated_at'], 'integer'],
            [['value', 'slug'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function scenarios()
    {
        // bypass scenarios() implementation in the parent class
        return Model::scenarios();
    }

    /**
     * Creates data provider instance with search query applied
     *
     * @param array $params
     *
     * @return ActiveDataProvider
     */
    public function search($params)
    {
        $query = Feature::find();

        // add conditions that should always apply here

        $dataProvider = new ActiveDataProvider([
            'query' => $query,
        ]);

        $this->load($params);

        if (!$this->validate()) {
            // uncomment the following line if you do not want to return any records when validation fails
            // $query->where('0=1');
            return $dataProvider;
        }
        
        // grid filtering conditions
        $where = [
            'id' => $this->id,
            'company_id' => $this->company_id,
            'created_at' => $this->created_at,
{'fraction_non_alphanumeric': 0.12787639710716633, 'fraction_numerical': 0.0013149243918474688, 'mean_word_length': 1.9601167315175096, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '2740713', 'n_tokens_mistral': 817, 'n_tokens_neox': 804, 'n_words': 228}