<commit_before><?php

namespace frontend\models;

use Yii;
use yii\base\Model;
use common\models\Identity;
use \common\models\User;

/**
 * Auth form
 */
class AuthForm extends Model
{
  public $authProvider;
  public $externalUserId;

  private $_user = false;
  
  /**
   * @inheritdoc
   */
  public function rules()
  {
    return [
      [['authProvider', 'externalUserId'], 'required'],
      [['authProvider', 'externalUserId'], 'string', 'max' => 32],
    ];
  }
<commit_msg>fix: convert external user to string<commit_after><?php

namespace frontend\models;

use Yii;
use yii\base\Model;
use common\models\Identity;
use \common\models\User;

/**
 * Auth form
 */
class AuthForm extends Model
{
  public $authProvider;
  public $externalUserId;

  private $_user = false;
  
  /**
   * @inheritdoc
   */
  public function rules()
  {
    return [
      [['authProvider', 'externalUserId'], 'required'],
      ['externalUserId', 'filter', 'strval'],
      [['authProvider', 'externalUserId'], 'string', 'max' => 32],
    ];
  }

{'fraction_non_alphanumeric': 0.1603864734299517, 'fraction_numerical': 0.003864734299516908, 'mean_word_length': 3.371308016877637, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6511896', 'n_tokens_mistral': 338, 'n_tokens_neox': 340, 'n_words': 82}