<commit_before>import requests
import os

BRITEVERIFY_API_URL = 'https://bpi.briteverify.com/emails.json'
BRITEVERIFY_API_KEY = os.environ.get('BRITEVERIFY_API_KEY')

def check(email):
    r = requests.get(BRITEVERIFY_API_URL, params={'address': email, 'apikey': BRITEVERIFY_API_KEY})
    response = r.json()

    status = response.get('status')
    if response.get('disposable'):
        status = 'disposable'
    # check role_address as well?
    return {'email':email,
            'status':status}<commit_msg>Rollback nested response for briteverify<commit_after>import requests
import os

BRITEVERIFY_API_URL = 'https://bpi.briteverify.com/emails.json'
BRITEVERIFY_API_KEY = os.environ.get('BRITEVERIFY_API_KEY')

def check(email):
    r = requests.get(BRITEVERIFY_API_URL, params={'address': email, 'apikey': BRITEVERIFY_API_KEY})
    response = r.json()

    status = response.get('status')
    if response.get('disposable'):
        status = 'disposable'
    # check role_address as well?
    return status
{'fraction_non_alphanumeric': 0.12537018756169793, 'fraction_numerical': 0.0, 'mean_word_length': 4.510869565217392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6062605', 'n_tokens_mistral': 343, 'n_tokens_neox': 340, 'n_words': 64}