

@classmethod
def get_or_create_profile(cls, user):
    try:
        profile = user.get_profile()
    except UserProfile.DoesNotExist:
        profile = cls.objects.create(user=user, is_net_admin=False, max_priority_level=Priority.Strict_User, supervisor=cls, is_clearinghouse_user=False)
    return profile

dataset/ETHPy150Open fp7-ofelia/ocf/optin_manager/src/python/openflow/optin_manager/users/models.py UserProfile.get_or_create_profile/VarMisuse@59/76 `user`->`cls`