Buggy code:
public class BetaTest { private static final Method LOG_GAMMA_SUM_METHOD ; private static final Method LOG_GAMMA_MINUS_LOG_GAMMA_SUM_METHOD ; private static final Method SUM_DELTA_MINUS_DELTA_SUM_METHOD ; private void testRegularizedBeta ( double expected , double x , double a , double b ) { } private void testLogBeta ( double expected , double a , double b ) { } @ Test public void testRegularizedBetaNanPositivePositive ( ) { } @ Test public void testRegularizedBetaPositiveNanPositive ( ) { } @ Test public void testRegularizedBetaPositivePositiveNan ( ) { } @ Test public void testRegularizedBetaNegativePositivePositive ( ) { } @ Test public void testRegularizedBetaPositiveNegativePositive ( ) { } @ Test public void testRegularizedBetaPositivePositiveNegative ( ) { } @ Test public void testRegularizedBetaZeroPositivePositive ( ) { } @ Test public void testRegularizedBetaPositiveZeroPositive ( ) { } @ Test public void testRegularizedBetaPositivePositiveZero ( ) { } @ Test public void testRegularizedBetaPositivePositivePositive ( ) { } @ Test public void testRegularizedBetaTinyArgument ( ) { } @ Test public void testMath1067 ( ) { final double x = 0.22580645161290325 ; final double a = 64.33333333333334 ; final double b = 223 ; try { <START_BUG> final double r = Beta . regularizedBeta ( x , a , b , 1.0E-14 , 10000 ) ; <END_BUG> } catch ( StackOverflowError error ) { Assert . fail ( "Infinite<seq2seq4repair_space>recursion" ) ; } } @ Test public void testLogBetaNanPositive ( ) { } @ Test public void testLogBetaPositiveNan ( ) { } @ Test public void testLogBetaNegativePositive ( ) { } @ Test public void testLogBetaPositiveNegative ( ) { } @ Test public void testLogBetaZeroPositive ( ) { } @ Test public void testLogBetaPositiveZero ( ) { } @ Test public void testLogBetaPositivePositive ( ) { } private static final double [ ] [ ] LOG_GAMMA_SUM_REF = new double [ ] [ ] { new double [ ] { 1.0 , 1.0 , 0.0 } , new double [ ] { 1.0 , 1.125 , 0.05775985153034387 } , new double [ ] { 1.0 , 1.25 , 0.1248717148923966 } , new double [ ] { 1.0 , 1.375 , 0.2006984603774558 } , new double [ ] { 1.0 , 1.5 , 0.2846828704729192 } , new double [ ] { 1.0 , 1.625 , 0.3763336820249054 } , new double [ ] { 1.0 , 1.75 , 0.4752146669149371 } , new double [ ] { 1.0 , 1.875 , 0.5809359740231859 } , new double [ ] { 1.0 , 2.0 , 0.6931471805599453 } , new double [ ] { 1.125 , 1.0 , 0.05775985153034387 } , new double [ ] { 1.125 , 1.125 , 0.1248717148923966 } , new double [ ] { 1.125 , 1.25 , 0.2006984603774558 } , new double [ ] { 1.125 , 1.375 , 0.2846828704729192 } , new double [ ] { 1.125 , 1.5 , 0.3763336820249054 } , new double [ ] { 1.125 , 1.625 , 0.4752146669149371 } , new double [ ] { 1.125 , 1.75 , 0.5809359740231859 } , new double [ ] { 1.125 , 1.875 , 0.6931471805599453 } , new double [ ] { 1.125 , 2.0 , 0.811531653906724 } , new double [ ] { 1.25 , 1.0 , 0.1248717148923966 } , new double [ ] { 1.25 , 1.125 , 0.2006984603774558 } , new double [ ] { 1.25 , 1.25 , 0.2846828704729192 } , new double [ ] { 1.25 , 1.375 , 0.3763336820249054 } , new double [ ] { 1.25 , 1.5 , 0.4752146669149371 } , new double [ ] { 1.25 , 1.625 , 0.5809359740231859 } , new double [ ] { 1.25 , 1.75 , 0.6931471805599453 } , new double [ ] { 1.25 , 1.875 , 0.811531653906724 } , new double [ ] { 1.25 , 2.0 , 0.9358019311087253 } , new double [ ] { 1.375 , 1.0 , 0.2006984603774558 } , new double [ ] { 1.375 , 1.125 , 0.2846828704729192 } , new double [ ] { 1.375 , 1.25 , 0.3763336820249054 } , new double [ ] { 1.375 , 1.375 , 0.4752146669149371 } , new double [ ] { 1.375 , 1.5 , 0.5809359740231859 } , new double [ ] { 1.375 , 1.625 , 0.6931471805599453 } , new double [ ] { 1.375 , 1.75 , 0.811531653906724 } , new double [ ] { 1.375 , 1.875 , 0.9358019311087253 } , new double [ ] { 1.375 , 2.0 , 1.06569589786406 } , new double [ ] { 1.5 , 1.0 , 0.2846828704729192 } , new double [ ] { 1.5 , 1.125 , 0.3763336820249054 } , new double [ ] { 1.5 , 1.25 , 0.4752146669149371 } , new double [ ] { 1.5 , 1.375 , 0.5809359740231859 } , new double [ ] { 1.5 , 1.5 , 0.6931471805599453 } , new double [ ] { 1.5 , 1.625 , 0.811531653906724 } , new double [ ] { 1.5 , 1.75 , 0.9358019311087253 } , new double [ ] { 1.5 , 1.875 , 1.06569589786406 } , new double [ ] { 1.5 , 2.0 , 1.200973602347074 } , new double [ ] { 1.625 , 1.0 , 0.3763336820249054 } , new double [ ] { 1.625 , 1.125 , 0.4752146669149371 } , new double [ ] { 1.625 , 1.25 , 0.5809359740231859 } , new double [ ] { 1.625 , 1.375 , 0.6931471805599453 } , new double [ ] { 1.625 , 1.5 , 0.811531653906724 } , new double [ ] { 1.625 , 1.625 , 0.9358019311087253 } , new double [ ] { 1.625 , 1.75 , 1.06569589786406 } , new double [ ] { 1.625 , 1.875 , 1.200973602347074 } , new double [ ] { 1.625 , 2.0 , 1.341414578068493 } , new double [ ] { 1.75 , 1.0 , 0.4752146669149371 } , new double [ ] { 1.75 , 1.125 , 0.5809359740231859 } , new double [ ] { 1.75 , 1.25 , 0.6931471805599453 } , new double [ ] { 1.75 , 1.375 , 0.811531653906724 }

Fix:
Beta . regularizedBeta ( x , a , b , 1.0E-14 , 10000 ) ;