public static int METHOD_1 ( TYPE_1 VAR_1 ) { int sum = 0 ; for ( TYPE_2 p : VAR_1 . METHOD_2 ( ) ) { sum += TYPE_3 . METHOD_3 ( p ) ; } return sum / ( VAR_1 . METHOD_2 ( ) . size ( ) ) ; }

public static double METHOD_1 ( TYPE_1 VAR_1 ) { double sum = 0 ; for ( TYPE_2 p : VAR_1 . METHOD_2 ( ) ) { sum += TYPE_3 . METHOD_3 ( p ) ; } return sum == 0 ? 1.0 : sum / ( VAR_1 . METHOD_2 ( ) . size ( ) ) ; }
