<commit_before><?php
/**
 * Entidade do Usuário
 * Class RHSUser
 */
class RHSUser {

    private $id;
    private $avatar;
    private $avatar_url;
    private $login;
    private $name;
    private $email;
    private $first_name;
    private $last_name;
    private $url;
    private $description;
    private $formation;
    private $date_registered;
    private $city_id;
    private $state_id;
    private $city;
    private $state;
    private $state_uf;
    private $interest;
    private $link;
    private $user_object;
    private $state_city_object;
    private $role;
    private $is_admin;
    private $user_role;
    private $links;

    /**
     * RHSUser constructor.
     *
     * @param WP_User $user
     */
    function __construct(WP_User $user) {

        if(!$user){
            return;
        }

        $this->id = $user->ID;
        $this->user_object = $user;
    }

    /**
     * @return int
     */
    function get_id(){
        return $this->id;
    }

    /**
     * @return string
     */
    function get_login(){

        if($this->login || !$this->id){
            return $this->login;
        }

        return $this->login = $this->user_object->user_login;
    }

    /**
     * @return false|string
     */
    function get_avatar(){

        if($this->avatar || !$this->id){
            return $this->avatar;
        }

        return $this->avatar =  get_avatar($this->id);
    }

    /**
     * @return false|string
     */
    function get_avatar_url(){

        if($this->avatar_url || !$this->id){
            return $this->avatar_url;
        }

        $avatar = esc_attr( get_the_author_meta( 'rhs_avatar', $this->id ));

        if ( ! empty( $avatar ) ) {
            $avatar = get_site_url() . '/../' . $avatar;
        }

        return $this->avatar_url = $avatar;
    }

    /**
     * @return string
     */
    function get_name(){

        if($this->name || !$this->id){
            return $this->name;
        }

        return $this->name = $this->user_object->display_name;
    }

    /**
     * @return string
     */
    function get_url(){

        if($this->url || !$this->id){
            return $this->url;
        }

        return $this->url = $this->user_object->user_url;
    }

    /**
     * @return string
     */
    function get_email(){

        if($this->email || !$this->id){
            return $this->email;
        }

        return $this->email = $this->user_object->user_email;
    }

    /**
     * @return string
     */
    function get_first_name(){

        if($this->first_name || !$this->id){
            return $this->first_name;
        }

        return $this->first_name = $this->user_object->first_name;

    }

    /**
     * @return string
     */
    function get_last_name(){

        if($this->last_name || !$this->id){
            return $this->last_name;
        }

        return $this->last_name = $this->user_object->last_name;
    }

    /**
     * @return mixed
     */
    function get_description(){

        if($this->description || !$this->id){
            return $this->description;
        }

        return $this->description = $this->user_object->description;
    }

    /**
     * @return mixed
     */
    function get_formation(){
        if($this->formation || !$this->id){
            return $this->formation;
        }

        return $this->formation =  get_the_author_meta( 'rhs_formation', $this->id );

    }

    /**
     * @return mixed
     */
    function get_interest(){

        if($this->interest || !$this->id){
            return $this->interest;
        }

        return $this->interest =  get_the_author_meta( 'rhs_interest', $this->id );
    }

    /**
     * @param string $format
     *
     * @return false|string
     */
    function get_date_registered($format = 'd/m/Y'){

        if(!$this->id){
            return $this->date_registered;
        }

        return date($format, strtotime($this->user_object->date_registered));
<commit_msg>Membros da comunidade retornando a data corretamente.<commit_after><?php
/**
 * Entidade do Usuário
 * Class RHSUser
 */
class RHSUser {

    private $id;
    private $avatar;
    private $avatar_url;
    private $login;
    private $name;
    private $email;
    private $first_name;
    private $last_name;
    private $url;
    private $description;
    private $formation;
    private $date_registered;
    private $city_id;
    private $state_id;
    private $city;
    private $state;
    private $state_uf;
    private $interest;
    private $link;
    private $user_object;
    private $state_city_object;
    private $role;
    private $is_admin;
    private $user_role;
    private $links;

    /**
     * RHSUser constructor.
     *
     * @param WP_User $user
     */
    function __construct(WP_User $user) {

        if(!$user){
            return;
        }

        $this->id = $user->ID;
        $this->user_object = $user;
    }

    /**
     * @return int
     */
    function get_id(){
        return $this->id;
    }

    /**
     * @return string
     */
    function get_login(){

        if($this->login || !$this->id){
            return $this->login;
        }

        return $this->login = $this->user_object->user_login;
    }

    /**
     * @return false|string
     */
    function get_avatar(){

        if($this->avatar || !$this->id){
            return $this->avatar;
        }

        return $this->avatar =  get_avatar($this->id);
    }

    /**
     * @return false|string
     */
    function get_avatar_url(){

        if($this->avatar_url || !$this->id){
            return $this->avatar_url;
        }

        $avatar = esc_attr( get_the_author_meta( 'rhs_avatar', $this->id ));

        if ( ! empty( $avatar ) ) {
            $avatar = get_site_url() . '/../' . $avatar;
        }

        return $this->avatar_url = $avatar;
    }

    /**
     * @return string
     */
    function get_name(){

        if($this->name || !$this->id){
            return $this->name;
        }

        return $this->name = $this->user_object->display_name;
    }

    /**
     * @return string
     */
    function get_url(){

        if($this->url || !$this->id){
            return $this->url;
        }

        return $this->url = $this->user_object->user_url;
    }

    /**
     * @return string
     */
    function get_email(){

        if($this->email || !$this->id){
            return $this->email;
        }

        return $this->email = $this->user_object->user_email;
    }

    /**
     * @return string
     */
    function get_first_name(){

        if($this->first_name || !$this->id){
            return $this->first_name;
        }

        return $this->first_name = $this->user_object->first_name;

    }

    /**
     * @return string
     */
    function get_last_name(){

        if($this->last_name || !$this->id){
            return $this->last_name;
        }

        return $this->last_name = $this->user_object->last_name;
    }

    /**
     * @return mixed
     */
    function get_description(){

        if($this->description || !$this->id){
            return $this->description;
        }

        return $this->description = $this->user_object->description;
    }

    /**
     * @return mixed
     */
    function get_formation(){
        if($this->formation || !$this->id){
            return $this->formation;
        }

        return $this->formation =  get_the_author_meta( 'rhs_formation', $this->id );

    }

    /**
     * @return mixed
     */
    function get_interest(){

        if($this->interest || !$this->id){
            return $this->interest;
        }

        return $this->interest =  get_the_author_meta( 'rhs_interest', $this->id );
    }

    /**
     * @param string $format
     *
     * @return false|string
     */
    function get_date_registered($format = 'd/m/Y'){

        if(!$this->id){
            return $this->date_registered;
        }
        $userDate = get_userdata($this->id);
        return date($format, strtotime($userDate->user_registered));

{'fraction_non_alphanumeric': 0.154180643558206, 'fraction_numerical': 0.0, 'mean_word_length': 1.762525737817433, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 143, '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': '3512475', 'n_tokens_mistral': 2606, 'n_tokens_neox': 2519, 'n_words': 464}