original_docstring: Check whether or not the domain is registered.
  
          Parameters:
          domain      The domain name to be checked
          
docstring: Check whether or not the domain is registered.
  Parameters:
  domain      The domain name to be checked
docstring_tokens: Check whether or not the domain is registered . Parameters : domain The domain name to be checked
code: def check_availability(self,domain):
          """Check whether or not the domain is registered.
  
          Parameters:
          domain      The domain name to be checked
          """
          try:
              who = whois.whois(domain)
              if who['status']:
                  return True
              else:
                  return False
          except:
              return False
code_tokens: def check_availability ( self , domain ) : try : who = whois . whois ( domain ) if who [ 'status' ] : return True else : return False except : return False
short_docstring: Check whether or not the domain is registered.
short_docstring_tokens: Check whether or not the domain is registered .
comment: """Check whether or not the domain is registered.
  
          Parameters:
          domain      The domain name to be checked
          """