original_string: public function find($username)
      {
          $response = $this->search($username);
          foreach ($response->get() as $user) {
              if ($username === $user['username']) {
                  return $this->get($user['id']);
              }
          }
          return null;
      }
code: public function find($username)
      {
          $response = $this->search($username);
          foreach ($response->get() as $user) {
              if ($username === $user['username']) {
                  return $this->get($user['id']);
              }
          }
          return null;
      }
code_tokens: public function find ( $ username ) { $ response = $ this -> search ( $ username ) ; foreach ( $ response -> get ( ) as $ user ) { if ( $ username === $ user [ 'username' ] ) { return $ this -> get ( $ user [ 'id' ] ) ; } } return null ; }
docstring: Searches for and returns a single user's information. If no results
  are found, ``null`` is returned.
  
  @param string $username  A username to search for
  
  @return Response|null
docstring_tokens: Searches for and returns a single user s information . If no results are found null is returned .