test ( ) { java . lang . StringBuilder builder = new java . lang . StringBuilder ( ) ; for ( int i = 0 ; i < INT_0 ; i ++ ) { builder . append ( STRING_0 ) ; } java . lang . String text = builder . toString ( ) ; org . IDENT_0 . IDENT_1 . IDENT_2 processor = org . IDENT_0 . IDENT_1 . IDENT_3 . getInstance ( ) . METHOD_0 ( IDENT_4 . IDENT_5 ) ; "<AssertPlaceHolder>" ; } process ( java . lang . IDENT_6 ) { if ( ( source != null ) && ( ( source . length ( ) ) > 0 ) ) { java . lang . String IDENT_7 = ( source instanceof java . lang . String ) ? ( ( java . lang . String ) ( source ) ) : source . toString ( ) ; int [ ] IDENT_8 = new int [ IDENT_9 . length ] ; java . util . Arrays . METHOD_1 ( IDENT_8 , ( - 1 ) ) ; int length = source . length ( ) ; int offset = 0 ; java . lang . StringBuilder result = new java . lang . StringBuilder ( length ) ; while ( offset < length ) { int IDENT_10 = - 1 ; int IDENT_11 = - 1 ; for ( int i = 0 ; i < ( IDENT_9 . length ) ; i ++ ) { int index ; if ( ( IDENT_8 [ i ] ) < offset ) { index = IDENT_7 . indexOf ( IDENT_9 [ i ] [ 0 ] , offset ) ; IDENT_8 [ i ] = index ; } else { index = IDENT_8 [ i ] ; } if ( ( index >= 0 ) && ( ( index < IDENT_10 ) || ( IDENT_10 < 0 ) ) ) { IDENT_10 = index ; IDENT_11 = i ; } } if ( IDENT_10 >= 0 ) { result . append ( IDENT_7 , offset , IDENT_10 ) ; result . append ( IDENT_9 [ IDENT_11 ] [ 1 ] ) ; offset = IDENT_10 + ( IDENT_9 [ IDENT_11 ] [ 0 ] . length ( ) ) ; } else { result . append ( IDENT_7 , offset , length ) ; offset = length ; } } return result ; } else { return new java . lang . StringBuilder ( 0 ) ; } }
org . junit . Assert . assertEquals ( text , processor . process ( text ) )