<commit_before><?php

namespace nineinchnick\nfy\models;

use Yii;
use nineinchnick\nfy\components;

/**
 * This is the model class for table "{{nfy_subscriptions}}".
 *
 * @property integer $id
 * @property integer $queue_id
 * @property string $label
 * @property integer $subscriber_id
 * @property string $created_on
 * @property boolean $is_deleted
 *
 * The followings are the available model relations:
 * @property DbMessage[] $messages
 * @property Users $subscriber
 * @property DbSubscriptionCategory[] $categories
 */
class DbSubscription extends \yii\db\ActiveRecord
{
	/**
	 * @inheritdoc
	 */
	public static function tableName()
	{
		return '{{%nfy_subscriptions}}';
	}

	/**
	 * @inheritdoc
	 */
	public function rules()<commit_msg>use DbSubscriptionQuery in DbSubscription<commit_after><?php

namespace nineinchnick\nfy\models;

use Yii;
use nineinchnick\nfy\components;

/**
 * This is the model class for table "{{nfy_subscriptions}}".
 *
 * @property integer $id
 * @property integer $queue_id
 * @property string $label
 * @property integer $subscriber_id
 * @property string $created_on
 * @property boolean $is_deleted
 *
 * The followings are the available model relations:
 * @property DbMessage[] $messages
 * @property Users $subscriber
 * @property DbSubscriptionCategory[] $categories
 */
class DbSubscription extends \yii\db\ActiveRecord
{
	/**
	 * @inheritdoc
	 */
	public static function tableName()
	{
		return '{{%nfy_subscriptions}}';
	}

	public static function createQuery()
	{
		return new DbSubscriptionQuery(['modelClass' => get_called_class()]);
	}

	/**
	 * @inheritdoc
	 */
	public function rules()
{'fraction_non_alphanumeric': 0.12126751980499695, 'fraction_numerical': 0.0, 'mean_word_length': 4.642611683848798, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '5799358', 'n_tokens_mistral': 511, 'n_tokens_neox': 498, 'n_words': 138}