def parse_form(doc):
    from pyquery import PyQuery as pq
    
    d = pq(doc, parser="html")
    inputs = d("input")
    
    # filter the ones that have a name
    inputs = [i for i in inputs if i.name]
    
    return dict([(i.name, i.value) for i in inputs])
Handle an activation link request while already logged in.
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/tests/client.py/parse_form--crossover with--dataset/ETHPy150Open hypothesis/h/h/accounts/views.py/ActivateController.get_when_logged_in