<commit_before>from unittest.mock import Mock

from pytest import fixture, mark, raises
from tornado.web import Application, HTTPError

from ..google import GoogleOAuthenticator, GoogleOAuthHandler

from .mocks import setup_oauth_mock

def user_model(email):
    """Return a user model"""
    return {
        'email': email,
        'hd': email.split('@')[1],
        'verified_email': true
    }

import re
@fixture
def google_client(client):
    setup_oauth_mock(client,
        host=['accounts.google.com', 'www.googleapis.com'],
        access_token_path=re.compile('^(/o/oauth2/token|/oauth2/v4/token)$'),
        user_path='/oauth2/v1/userinfo',
    )
    original_handler_for_user = client.handler_for_user<commit_msg>Typo on boolean value<commit_after>from unittest.mock import Mock

from pytest import fixture, mark, raises
from tornado.web import Application, HTTPError

from ..google import GoogleOAuthenticator, GoogleOAuthHandler

from .mocks import setup_oauth_mock

def user_model(email):
    """Return a user model"""
    return {
        'email': email,
        'hd': email.split('@')[1],
        'verified_email': True
    }

import re
@fixture
def google_client(client):
    setup_oauth_mock(client,
        host=['accounts.google.com', 'www.googleapis.com'],
        access_token_path=re.compile('^(/o/oauth2/token|/oauth2/v4/token)$'),
        user_path='/oauth2/v1/userinfo',
    )
    original_handler_for_user = client.handler_for_user
{'fraction_non_alphanumeric': 0.12191780821917808, 'fraction_numerical': 0.00821917808219178, 'mean_word_length': 3.8059210526315788, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6326641', 'n_tokens_mistral': 479, 'n_tokens_neox': 478, 'n_words': 100}