<commit_before><?php namespace Laravel\Socialite\One;

class TwitterProvider extends AbstractProvider
{

    //
}<commit_msg>Override of user method in Twitter Provider.<commit_after><?php namespace Laravel\Socialite\One;

class TwitterProvider extends AbstractProvider
{
    /**
     * Get the User instance for the authenticated user.
     * Overridden to provide access to the urls property that comes back from the
     * OAuth library
     *
     * @return \Laravel\Socialite\One\User
     */
    public function user()
    {
        if (! $this->hasNecessaryVerifier()) {
            throw new \InvalidArgumentException("Invalid request. Missing OAuth verifier.");
        }

        $user = $this->server->getUserDetails($token = $this->getToken());

        $instance = (new User)->setRaw(array_merge($user->extra, $user->urls))
                ->setToken($token->getIdentifier(), $token->getSecret());

        return $instance->map([
            'id' => $user->uid, 'nickname' => $user->nickname,
            'name' => $user->name, 'email' => $user->email, 'avatar' => $user->imageUrl,
        ]);
    }

}

{'fraction_non_alphanumeric': 0.1423455684870188, 'fraction_numerical': 0.0, 'mean_word_length': 2.802721088435374, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 24, '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': '4710431', 'n_tokens_mistral': 323, 'n_tokens_neox': 310, 'n_words': 78}