<commit_before><?php

namespace frontend\models;

use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use frontend\models\EmployerJobpostings;

class JobpostSearch extends EmployerJobpostings
{
    public function rules()
    {
        return [
            [['rolecategory','skills','designation','experience','Description','jobtype','gender','address','company_name','company_type','industry_type','dateofestablishment','country','state','city','zipcode'], 'safe'],
       
        ];
    }

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

      public function search($params)
    {
    	
    	if(isset($params['id']) && ($params['id'] != 0) )
    	{
    		$query = EmployerJobpostings::find()->where(['skills'=>$params['id']]);
    	}
    	else {
    		 $query = EmployerJobpostings::find();
    	}
    	if(isset($params['limit']) && ($params['limit'] != 0) )
    	{
    		$pagesize = $params['limit'];
    	}
    	else
    	{
    		$pagesize = 25;
    	}
       

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

        $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;
        }


        $query->andFilterWhere(['like', 'rolecategory', $this->rolecategory])
            ->andFilterWhere(['like', 'skills', $this->skills])
            ->andFilterWhere(['like', 'designation', $this->designation])
            ->andFilterWhere(['like', 'experience', $this->experience])
            ->andFilterWhere(['like', 'dateofestablishment', $this->dateofestablishment]);

        return $dataProvider;
    }
}<commit_msg>jobpostings   search commited<commit_after><?php

namespace frontend\models;

use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use frontend\models\EmployerJobpostings;

class JobpostSearch extends EmployerJobpostings
{
    public function rules()
    {
        return [
            [['rolecategory','skills','designation','Min_Experience','Max_Experience','Description','jobtype','gender','address','company_name','company_type','industry_type','dateofestablishment','country','state','city','zipcode'], 'safe'],
       
        ];
    }

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

      public function search($params)
    {
    	
    	if(isset($params['id']) && ($params['id'] != 0) )
    	{
    		$query = EmployerJobpostings::find()->where(['skills'=>$params['id']]);
    	}
    	else {
    		 $query = EmployerJobpostings::find();
    	}
    	if(isset($params['limit']) && ($params['limit'] != 0) )
    	{
    		$pagesize = $params['limit'];
    	}
    	else
    	{
    		$pagesize = 25;
    	}
       

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

        $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;
        }


        $query->andFilterWhere(['like', 'rolecategory', $this->rolecategory])
            ->andFilterWhere(['like', 'skills', $this->skills])
            ->andFilterWhere(['like', 'designation', $this->designation])
            ->andFilterWhere(['like', 'Min_Experience', $this->Min_Experience])
            ->andFilterWhere(['like', 'Max_Experience', $this->Max_Experience])
            ->andFilterWhere(['like', 'dateofestablishment', $this->dateofestablishment]);

        return $dataProvider;
    }
}
{'fraction_non_alphanumeric': 0.1672122890959456, 'fraction_numerical': 0.004029211785444472, 'mean_word_length': 2.5783783783783782, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '4871309', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1156, 'n_words': 203}