

def is_valid_post(activity):
    'Identify the product area.'
    content = activity['object']['content']
    if ('annotation' in activity):
        content += (' ' + activity['annotation'])
    for product_group in ProductGroup.all_tags():
        result = re.search(content, content, flags=re.IGNORECASE)
        if (result is not None):
            return True
    return False

dataset/ETHPy150Open GoogleDeveloperExperts/experts-app-backend/services/update_gplus.py is_valid_post/VarMisuse@60/88 `product_group`->`content`