<commit_before><?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "tbl_offer_status".
 *
 * @property integer $offer_status
 * @property string $offer_status_type
 *
 * @property TblOfferStatus[] $tblOfferStatus
 */
class TblOfferStatus extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'tbl_offer_status';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['offer_status','offer_status_type'], 'required'],
            [['offer_status_type'], 'string', 'max' => 10],
            [['offer_status','offer_status_type'], 'unique'],
			[['offer_status'], 'integer']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'offer_status' => 'Status ID',
            'offer_status_type' => 'Status',
        ];
    }
    public function getActiveStatus()
    {
      return $this->hasOne(TblOfferStatus::className(), ['offer_status_type' => 'active_status']);
    }

}<commit_msg>switched variables around<commit_after><?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "tbl_offer_status".
 *
 * @property integer $offer_status
 * @property string $offer_status_type
 *
 * @property TblOfferStatus[] $tblOfferStatus
 */
class TblOfferStatus extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'tbl_offer_status';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['offer_status','offer_status_type'], 'required'],
            [['offer_status_type'], 'string', 'max' => 10],
            [['offer_status','offer_status_type'], 'unique'],
			[['offer_status'], 'integer']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'offer_status' => 'Status ID',
            'offer_status_type' => 'Status',
        ];
    }
    public function getActiveStatus()
    {
      return $this->hasOne(TblOfferStatus::className(), ['active_status' => 'offer_status_type']);
    }

}
{'fraction_non_alphanumeric': 0.1468218442256043, 'fraction_numerical': 0.0017905102954341987, 'mean_word_length': 2.4226646248085757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '2955360', 'n_tokens_mistral': 712, 'n_tokens_neox': 674, 'n_words': 132}