METHOD_0 ( ) { int actual = de . IDENT_0 . IDENT_1 . util . math . IDENT_2 . indexOf ( de . IDENT_0 . IDENT_1 . util . math . IDENT_3 . data , de . IDENT_0 . IDENT_1 . util . math . IDENT_3 . pattern ) ; "<AssertPlaceHolder>" ; } indexOf ( java . io . InputStream , byte [ ] ) { if ( ( stream . METHOD_1 ( ) ) < 1 ) { return - 1 ; } stream . METHOD_2 ( Integer . MAX_VALUE ) ; try { int [ ] IDENT_4 = de . IDENT_0 . IDENT_1 . util . math . IDENT_2 . METHOD_3 ( pattern ) ; int i = 0 ; int j = 0 ; int IDENT_5 = 0 ; byte data ; while ( IDENT_5 != ( - 1 ) ) { IDENT_5 = stream . read ( ) ; data = ( ( byte ) ( IDENT_5 ) ) ; while ( ( j > 0 ) && ( ( pattern [ j ] ) != data ) ) { j = IDENT_4 [ ( j - 1 ) ] ; } if ( ( pattern [ j ] ) == data ) { j ++ ; } if ( j == ( pattern . length ) ) { return ( i - ( pattern . length ) ) + 1 ; } i ++ ; } } finally { stream . METHOD_4 ( ) ; } return - 1 ; }
org . junit . Assert . assertEquals ( de . IDENT_0 . IDENT_1 . util . math . IDENT_3 . expected , actual )