def parse_authorization_header(value):
    if not value:
        return
    try:
        auth_type, auth_info = value.split(None, 1)
        auth_type = auth_type.lower()
    except ValueError:
        return
    if auth_type == 'basic':
        try:
            username, password = auth_info.decode('base64').split(':', 1)
        except Exception, e:
            return
        return Authorization('basic', {'username': username,
                                       'password': password})
    elif auth_type == 'digest':
        auth_map = parse_dict_header(auth_info)
        for key in 'username', 'realm', 'nonce', 'uri', 'nc', 'cnonce', \
                   'response':
            if not key in auth_map:
                return
        return Authorization('digest', auth_map)
continue_stmt : CONTINUE
dataset/ETHPy150Open IanLewis/kay/kay/lib/werkzeug/http.py/parse_authorization_header--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/core/parser.py/p_continue_stmt