Buggy code:
private static final byte NB = ( ( byte ) ( - 1 ) ) ; private static final short NS = ( ( short ) ( - 1 ) ) ; private static final byte PB = ( ( byte ) ( 1 ) ) ; private static final short PS = ( ( short ) ( 1 ) ) ; private static final byte ZB = ( ( byte ) ( 0 ) ) ; private static final short ZS = ( ( short ) ( 0 ) ) ; private static final double TWO_PI = 2 * ( Math . PI ) ; private static final int NAN_GAP = ( 4 * 1024 ) * 1024 ; private static final long SGN_MASK = - 9223372036854775808L ; private MathUtils ( ) { } public static int addAndCheck ( int x , int y ) { } public static long addAndCheck ( long a , long b ) { } private static long addAndCheck ( long a , long b , String msg ) { } public static long binomialCoefficient ( final int n , final int k ) { } public static double binomialCoefficientDouble ( final int n , final int k ) { } public static double binomialCoefficientLog ( final int n , final int k ) { } private static void checkBinomial ( final int n , final int k ) throws IllegalArgumentException { } public static int compareTo ( double x , double y , double eps ) { } public static double cosh ( double x ) { } public static boolean equals ( double x , double y ) { } public static boolean equals ( double x , double y , double eps ) { } public static boolean equals ( double x , double y , int maxUlps ) { } public static boolean equals ( double [ ] x , double [ ] y ) { } private static final long [ ] factorials = new long [ ] { 1 , 1 , 2 , 6 , 24 , 120 , 720 , 5040 , 40320 , 362880 , 3628800 , 39916800 , 479001600 , 6227020800L , 87178291200L , 1307674368000L , 20922789888000L , 355687428096000L , 6402373705728000L , 121645100408832000L , 2432902008176640000L } ; public static long factorial ( final int n ) { } public static double factorialDouble ( final int n ) { } public static double factorialLog ( final int n ) { } public static int gcd ( final int p , final int q ) { } public static int hash ( double value ) { } public static int hash ( double [ ] value ) { } public static byte indicator ( final byte x ) { } public static double indicator ( final double x ) { } public static float indicator ( final float x ) { } public static int indicator ( final int x ) { } public static long indicator ( final long x ) { } public static short indicator ( final short x ) { } public static int lcm ( int a , int b ) { } public static double log ( double base , double x ) { } public static int mulAndCheck ( int x , int y ) { } public static long mulAndCheck ( long a , long b ) { } public static double nextAfter ( double d , double direction ) { } public static double scalb ( final double d , final int scaleFactor ) { } public static double normalizeAngle ( double a , double center ) { } public static double [ ] normalizeArray ( double [ ] values , double normalizedSum ) throws ArithmeticException , IllegalArgumentException { if ( Double . isInfinite ( normalizedSum ) ) { throw MathRuntimeException . createIllegalArgumentException ( "Cannot<seq2seq4repair_space>normalize<seq2seq4repair_space>to<seq2seq4repair_space>an<seq2seq4repair_space>infinite<seq2seq4repair_space>value" ) ; } if ( Double . isNaN ( normalizedSum ) ) { throw MathRuntimeException . createIllegalArgumentException ( "Cannot<seq2seq4repair_space>normalize<seq2seq4repair_space>to<seq2seq4repair_space>NaN" ) ; } double sum = 0.0 ; final int len = values . length ; double [ ] out = new double [ len ] ; for ( int i = 0 ; i < len ; i ++ ) { if ( Double . isInfinite ( values [ i ] ) ) { <START_BUG> throw MathRuntimeException . createArithmeticException ( "Array<seq2seq4repair_space>contains<seq2seq4repair_space>an<seq2seq4repair_space>infinite<seq2seq4repair_space>element" , values [ i ] , i ) ; <END_BUG> } if ( ! ( Double . isNaN ( values [ i ] ) ) ) { sum += values [ i ] ; } } if ( sum == 0 ) { throw MathRuntimeException . createArithmeticException ( "Array<seq2seq4repair_space>sums<seq2seq4repair_space>to<seq2seq4repair_space>zero" ) ; } for ( int i = 0 ; i < len ; i ++ ) { if ( Double . isNaN ( values [ i ] ) ) { out [ i ] = Double . NaN ; } else { out [ i ] = ( ( values [ i ] ) * normalizedSum ) // sum ; } } return out ; } public static double round ( double x , int scale ) { } public static double round ( double x , int scale , int roundingMethod ) { } public static float round ( float x , int scale ) { } public static float round ( float x , int scale , int roundingMethod ) { } private static double roundUnscaled ( double unscaled , double sign , int roundingMethod ) { } public static byte sign ( final byte x ) { } public static double sign ( final double x ) { } public static float sign ( final float x ) { } public static int sign ( final int x ) { } public static long sign ( final long x ) { } public static short sign ( final short x ) { } public static double sinh ( double x ) { }

Fix:
throw MathRuntimeException . createArithmeticException ( "Array<seq2seq4repair_space>contains<seq2seq4repair_space>an<seq2seq4repair_space>infinite<seq2seq4repair_space>element,<seq2seq4repair_space>{0}<seq2seq4repair_space>at<seq2seq4repair_space>index<seq2seq4repair_space>{1}" , values [ i ] , i ) ;