original_string: public function getAttemptsLeftWithSameIp(string $ipAddress): int
      {
          $attemptsLeft = ((int) $this->maxAttemptsForIpAddress) - $this->enhancedAuthenticationMapper->fetchAttemptsWithSameIp($ipAddress, $this->banTimeInSeconds);
  
          return \max(0, $attemptsLeft);
      }
code: public function getAttemptsLeftWithSameIp(string $ipAddress): int
      {
          $attemptsLeft = ((int) $this->maxAttemptsForIpAddress) - $this->enhancedAuthenticationMapper->fetchAttemptsWithSameIp($ipAddress, $this->banTimeInSeconds);
  
          return \max(0, $attemptsLeft);
      }
code_tokens: public function getAttemptsLeftWithSameIp ( string $ ipAddress ) : int { $ attemptsLeft = ( ( int ) $ this -> maxAttemptsForIpAddress ) - $ this -> enhancedAuthenticationMapper -> fetchAttemptsWithSameIp ( $ ipAddress , $ this -> banTimeInSeconds ) ; return \ max ( 0 , $ attemptsLeft ) ; }
docstring: Return how many attemps are left for same ip.
  
  @param string $ipAddress
  
  @return int Number of attempts with same ip.
docstring_tokens: Return how many attemps are left for same ip .