original_docstring: Task to check if profile is spam according to akismet
docstring: Task to check if profile is spam according to akismet
docstring_tokens: Task to check if profile is spam according to akismet
code: def check_spam_account(instance_id, **kwargs):
      """Task to check if profile is spam according to akismet"""
      # Avoid circular dependencies
      from mozillians.users.models import AbuseReport, UserProfile
  
      spam = akismet_spam_check(**kwargs)
      profile = get_object_or_none(UserProfile, id=instance_id)
  
      if spam and profile:
          kwargs = {
              'type': AbuseReport.TYPE_SPAM,
              'profile': profile,
              'reporter': None,
              'is_akismet': True,
          }
  
          AbuseReport.objects.get_or_create(**kwargs)
code_tokens: def check_spam_account ( instance_id , ** kwargs ) : from mozillians . users . models import AbuseReport , UserProfile spam = akismet_spam_check ( ** kwargs ) profile = get_object_or_none ( UserProfile , id = instance_id ) if spam and profile : kwargs = { 'type' : AbuseReport . TYPE_SPAM , 'profile' : profile , 'reporter' : None , 'is_akismet' : True , } AbuseReport . objects . get_or_create ( ** kwargs )
short_docstring: Task to check if profile is spam according to akismet
short_docstring_tokens: Task to check if profile is spam according to akismet
comment: """Task to check if profile is spam according to akismet"""$SEP$# Avoid circular dependencies