METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . String IDENT_1 = STRING_1 ; java . util . Map < java . lang . String , java . lang . String > IDENT_2 = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; IDENT_2 . put ( STRING_2 , STRING_3 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , java . util . Map , boolean ) { if ( ( ( text != null ) && ( IDENT_3 != null ) ) && ( ( IDENT_3 . size ( ) ) > 0 ) ) { if ( IDENT_4 ) { java . util . regex . IDENT_5 matcher = org . IDENT_6 . util . IDENT_7 . pattern . matcher ( text ) ; java . lang . StringBuffer buffer = new java . lang . StringBuffer ( ) ; while ( matcher . find ( ) ) { java . lang . String [ ] IDENT_8 = matcher . group ( 1 ) . split ( STRING_4 ) ; java . lang . String [ ] IDENT_9 = IDENT_8 [ 0 ] . split ( STRING_5 ) ; java . lang . String IDENT_10 = IDENT_3 . get ( IDENT_9 [ 0 ] ) ; if ( IDENT_10 != null ) { matcher . METHOD_2 ( buffer , "" ) ; if ( ( IDENT_9 . length ) == 2 ) { int IDENT_11 = java . lang . Integer . METHOD_3 ( IDENT_9 [ 1 ] ) ; if ( IDENT_11 <= ( IDENT_10 . length ( ) ) ) { IDENT_10 = IDENT_10 . substring ( java . lang . Integer . METHOD_3 ( IDENT_9 [ 1 ] ) ) ; } } else if ( ( IDENT_9 . length ) == 3 ) { int IDENT_11 = java . lang . Integer . METHOD_3 ( IDENT_9 [ 1 ] ) ; int IDENT_12 = java . lang . Integer . METHOD_3 ( IDENT_9 [ 2 ] ) ; if ( ( IDENT_11 <= ( IDENT_10 . length ( ) ) ) && ( IDENT_12 <= ( IDENT_10 . length ( ) ) ) ) { IDENT_10 = IDENT_10 . substring ( IDENT_11 , IDENT_12 ) ; } } if ( ( IDENT_8 . length ) == 2 ) { IDENT_10 = org . IDENT_6 . util . IDENT_7 . METHOD_4 ( IDENT_8 [ 1 ] , IDENT_10 ) ; } buffer . append ( IDENT_10 ) ; } } matcher . METHOD_5 ( buffer ) ; text = buffer . toString ( ) ; } else { for ( java . lang . Object key : IDENT_3 . METHOD_6 ( ) ) { text = text . replaceAll ( key . toString ( ) , IDENT_3 . get ( key ) ) ; } } } return text ; }
org . junit . Assert . assertEquals ( IDENT_1 , org . IDENT_6 . util . IDENT_7 . METHOD_1 ( IDENT_0 , IDENT_2 , false ) )