

def extractHCard(mf2Data):
    result = {
        'name': '',
        'url': '',
    }
    if ('items' in mf2Data):
        for item in mf2Data['items']:
            if (('type' in item) and ('h-card' in item['type'])):
                result['name'] = item['properties']['name']
                if ('url' in item['properties']):
                    item['url'] = item['properties']['url']
    return result

dataset/ETHPy150Open bear/python-indieweb/indieweb.py extractHCard/VarMisuse@90/130 `result`->`item`