def process_claim(claim):
    if (PID_OK_PROFILE_ID in claim.qualifiers):
        return
    account = claim.getTarget()
    match = re.fullmatch('^profile/(\\d+)$', account)
    if match:
        account_id = match.group(1)
    else:
        account_id = parse_ok_ru(account)
    if (account_id is None):
        print(('%s -> group' % account))
        return
    print(('%s -> %s' % (account, account_id)))
    qualifier = Claim(repo, PID_OK_PROFILE_ID)
    qualifier.setTarget(account_id)
    claim.addQualifier(qualifier)
    return
def process_claim(claim):
    if (PID_OK_PROFILE_ID in claim.qualifiers):
        return
    account = claim.getTarget()
    match = re.fullmatch('^profile/(\\d+)$', account)
    if match:
        account_id = match.group(1)
    else:
        account_id = parse_ok_ru(account)
    if (account_id is None):
        print(('%s -> group' % account))
        return
    print(('%s -> %s' % (account, account_id)))
    qualifier = Claim(repo, PID_OK_PROFILE_ID)
    qualifier.setTarget(account_id)
    claim.addQualifier(qualifier)
    return