original_string: public function getAttemptsLeftWithSameUser(string $userName): int
      {
          $attemptsLeft = ((int) $this->maxAttemptsForUserName) - $this->enhancedAuthenticationMapper->fetchAttemptsWithSameUser($userName, $this->banTimeInSeconds);
  
          return \max(0, $attemptsLeft);
      }
code: public function getAttemptsLeftWithSameUser(string $userName): int
      {
          $attemptsLeft = ((int) $this->maxAttemptsForUserName) - $this->enhancedAuthenticationMapper->fetchAttemptsWithSameUser($userName, $this->banTimeInSeconds);
  
          return \max(0, $attemptsLeft);
      }
code_tokens: public function getAttemptsLeftWithSameUser ( string $ userName ) : int { $ attemptsLeft = ( ( int ) $ this -> maxAttemptsForUserName ) - $ this -> enhancedAuthenticationMapper -> fetchAttemptsWithSameUser ( $ userName , $ this -> banTimeInSeconds ) ; return \ max ( 0 , $ attemptsLeft ) ; }
docstring: Return how many attemps are left for incorrect password.
  
  @param string $userName
  
  @return int Number of attempts with same user.
docstring_tokens: Return how many attemps are left for incorrect password .