METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 + STRING_1 ; java . lang . String input = java . lang . String . format ( STRING_2 , IDENT_0 , IDENT_0 ) ; java . lang . String expected = java . lang . String . format ( STRING_3 , IDENT_0 , IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , int ) { final int IDENT_1 = INT_0 ; final int length = s . length ( ) ; if ( ( IDENT_2 + length ) <= IDENT_1 ) return s ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; int IDENT_3 = - IDENT_2 ; int IDENT_4 = org . apache . IDENT_5 . IDENT_6 . util . IDENT_7 . METHOD_2 ( s , 0 ) ; while ( true ) { if ( IDENT_4 == length ) { sb . append ( s . substring ( java . lang . Math . max ( 0 , IDENT_3 ) ) ) ; return sb . toString ( ) ; } int IDENT_8 = org . apache . IDENT_5 . IDENT_6 . util . IDENT_7 . METHOD_2 ( s , ( IDENT_4 + 1 ) ) ; if ( ( IDENT_8 - IDENT_3 ) > IDENT_1 ) { sb . append ( s . substring ( java . lang . Math . max ( 0 , IDENT_3 ) , IDENT_4 ) ) ; sb . append ( STRING_4 ) ; IDENT_3 = IDENT_4 ; } IDENT_4 = IDENT_8 ; } }
org . junit . Assert . assertEquals ( expected , org . apache . IDENT_5 . IDENT_6 . util . IDENT_7 . METHOD_1 ( input , 0 ) )