<commit_before><?php namespace Anomaly\UsersModule\User;

use Anomaly\UsersModule\User\Contract\UserRepositoryInterface;

class UserRepository implements UserRepositoryInterface
{

    protected $model;

    function __construct(UserModel $model)
    {
        $this->model = $model;
    }

    public function create($username, $email, $password)
    {
        $user = $this->model->newInstance();

        $user->email    = $email;
        $user->username = $username;
        $user->password = app('hash')->make($password);

        $user->save();

        return $user;
    }
}
<commit_msg>Dont hash<commit_after><?php namespace Anomaly\UsersModule\User;

use Anomaly\UsersModule\User\Contract\UserRepositoryInterface;

class UserRepository implements UserRepositoryInterface
{

    protected $model;

    function __construct(UserModel $model)
    {
        $this->model = $model;
    }

    public function create($username, $email, $password)
    {
        $user = $this->model->newInstance();

        $user->email    = $email;
        $user->username = $username;
        $user->password = $password;

        $user->save();

        return $user;
    }
}

{'fraction_non_alphanumeric': 0.13218884120171673, 'fraction_numerical': 0.0, 'mean_word_length': 2.822950819672131, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '2732611', 'n_tokens_mistral': 342, 'n_tokens_neox': 327, 'n_words': 65}