<commit_before><?php
/**
 * Created by PhpStorm.
 * User: jason
 * Date: 12/1/2017
 * Time: 3:24 PM
 */

namespace Being\Api\Service\User;

class User
{
    public $uid;
    public $username;
    public $fullname;
    public $password;
    public $email;
    public $avatar;
    public $mobile;
    public $gender;
    public $age;
    public $name;
    public $country;
    public $id_type;
    public $id_number;
    public $id_card_pic1;
    public $id_card_pic2;
    public $id_card_pic3;
    public $auth_status;

    const UPDATE_ATTRIBUTES = ['username', 'fullname', 'password', 'email', 'avatar', 'mobile', 'gender', 'age', 'name', 'country', 'id_type', 'id_number', 'id_card_pic1', 'id_card_pic2', 'id_card_pic3', 'auth_status'];

    /**
     * @deprecated use User::create() instead
     * User constructor.
     * @param $uid
     * @param $username
     * @param $fullname
     * @param $password
     * @param $email
     * @param $avatar
     */
    public function __construct($uid, $username, $fullname, $password, $email, $avatar)
    {
        $this->uid = $uid;
        $this->username = $username;
        $this->fullname = $fullname;
        $this->password = $password;
        $this->email = $email;
        $this->avatar = $avatar;
    }

    public static function create(array $attributes)
    {
        $o = new static(null, null, null, null, null, null);
        foreach ($attributes as $k => $v) {
            if (property_exists(User::class, $k)) {
                $o->$k = $v;
            }
        }

        return $o;
    }
}
<commit_msg>同步city_code city country_code country birthday gender<commit_after><?php
/**
 * Created by PhpStorm.
 * User: jason
 * Date: 12/1/2017
 * Time: 3:24 PM
 */

namespace Being\Api\Service\User;

class User
{
    public $uid;
    public $username;
    public $fullname;
    public $password;
    public $email;
    public $avatar;
    public $mobile;
    public $gender;
    public $age;
    public $name;
    public $country;
    public $country_code;
    public $city;
    public $city_code;
    public $birthday;
    public $id_type;
    public $id_number;
    public $id_card_pic1;
    public $id_card_pic2;
    public $id_card_pic3;
    public $auth_status;

    const UPDATE_ATTRIBUTES = ['username', 'fullname', 'password', 'email', 'avatar', 'mobile', 'gender', 'age', 'name', 'country', 'country_code', 'city', 'city_code','birthday', 'id_type', 'id_number', 'id_card_pic1', 'id_card_pic2', 'id_card_pic3', 'auth_status'];

    /**
     * @deprecated use User::create() instead
     * User constructor.
     * @param $uid
     * @param $username
     * @param $fullname
     * @param $password
     * @param $email
     * @param $avatar
     */
    public function __construct($uid, $username, $fullname, $password, $email, $avatar)
    {
        $this->uid = $uid;
        $this->username = $username;
        $this->fullname = $fullname;
        $this->password = $password;
        $this->email = $email;
        $this->avatar = $avatar;
    }

    public static function create(array $attributes)
    {
        $o = new static(null, null, null, null, null, null);
        foreach ($attributes as $k => $v) {
            if (property_exists(User::class, $k)) {
                $o->$k = $v;
            }
        }

        return $o;
    }
}

{'fraction_non_alphanumeric': 0.14866084863075535, 'fraction_numerical': 0.009629852542882938, 'mean_word_length': 2.4879328436516266, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '2746305', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1105, 'n_words': 276}