original_string: protected function createUser( UserResponseInterface $response )
      {
          $user = $this->userManager->createUser();
          $user->setUsername( $this->createUniqueUsername( $this->getRealName( $response )));
          $user->setEmail( $this->getEmail( $response ) );
          $user->setPassword( '' );
          $user->setEnabled( true );
          $this->userManager->updateUser( $user );
          $this->createIdentity( $user, $response );
          return $user;
      }
code: protected function createUser( UserResponseInterface $response )
      {
          $user = $this->userManager->createUser();
          $user->setUsername( $this->createUniqueUsername( $this->getRealName( $response )));
          $user->setEmail( $this->getEmail( $response ) );
          $user->setPassword( '' );
          $user->setEnabled( true );
          $this->userManager->updateUser( $user );
          $this->createIdentity( $user, $response );
          return $user;
      }
code_tokens: protected function createUser ( UserResponseInterface $ response ) { $ user = $ this -> userManager -> createUser ( ) ; $ user -> setUsername ( $ this -> createUniqueUsername ( $ this -> getRealName ( $ response ) ) ) ; $ user -> setEmail ( $ this -> getEmail ( $ response ) ) ; $ user -> setPassword ( '' ) ; $ user -> setEnabled ( true ) ; $ this -> userManager -> updateUser ( $ user ) ; $ this -> createIdentity ( $ user , $ response ) ; return $ user ; }
docstring: Creates new User
  
  @param \HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response
  @return \Userfriendly\Bundle\SocialUserBundle\Model\User
docstring_tokens: Creates new User