@Override
    protected BigDecimal calculateScore(final ClientInfo clientInfo,
                                        final Authentication authentication,
                                        final RegisteredService service,
                                        final List<? extends CasEvent> events) {
        val remoteAddr = clientInfo.getClientIpAddress();
        LOGGER.debug("Filtering authentication events for ip address [{}]", remoteAddr);
        val count = events.stream().filter(e -> e.getClientIpAddress().equalsIgnoreCase(remoteAddr)).count();
        LOGGER.debug("Total authentication events found for [{}]: [{}]", remoteAddr, count);
        return calculateScoreBasedOnEventsCount(authentication, events, count);
    }
This is {@link IpAddressAuthenticationRequestRiskCalculator}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/calcs/IpAddressAuthenticationRequestRiskCalculator.java