original_string: public function getNickname() {
      if ($this->email != null && $this->auth_domain != null &&
          StringUtil::endsWith($this->email, '@' . $this->auth_domain)) {
        $suffixLen = strlen($this->auth_domain) + 1;
        return substr($this->email, 0, -$suffixLen);
      } else if ($this->federated_identity) {
        return $this->federated_identity;
      } else {
        return $this->email;
      }
    }
code: public function getNickname() {
      if ($this->email != null && $this->auth_domain != null &&
          StringUtil::endsWith($this->email, '@' . $this->auth_domain)) {
        $suffixLen = strlen($this->auth_domain) + 1;
        return substr($this->email, 0, -$suffixLen);
      } else if ($this->federated_identity) {
        return $this->federated_identity;
      } else {
        return $this->email;
      }
    }
code_tokens: public function getNickname ( ) { if ( $ this -> email != null && $ this -> auth_domain != null && StringUtil :: endsWith ( $ this -> email , '@' . $ this -> auth_domain ) ) { $ suffixLen = strlen ( $ this -> auth_domain ) + 1 ; return substr ( $ this -> email , 0 , - $ suffixLen ) ; } else if ( $ this -> federated_identity ) { return $ this -> federated_identity ; } else { return $ this -> email ; } }
docstring: Return this user's nickname.
  
  The nickname will be a unique, human readable identifier for this user
  with respect to this application. It will be an email address for some
  users, part of the email address for some users, and the federated identity
  for federated users who have not asserted an email address.
  
  @return string The user's nickname.
docstring_tokens: Return this user s nickname .