METHOD_0 ( ) { java . lang . String [ ] input = new java . lang . String [ ] { STRING_0 , STRING_1 , STRING_2 , STRING_3 , STRING_4 , STRING_5 , STRING_6 , STRING_7 } ; int [ ] expected = new int [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 } ; for ( int i = 0 ; i < ( expected . length ) ; i ++ ) { "<AssertPlaceHolder>" ; } } indexOf ( java . lang . String ) { if ( ! ( IDENT_0 ) ) { METHOD_1 ( ) ; } if ( IDENT_0 ) { MOD_0 ( this ) { java . text . IDENT_1 key = this . IDENT_2 . METHOD_2 ( IDENT_3 ) ; java . lang . Integer index = IDENT_4 . get ( key ) ; if ( index != null ) return index ; if ( ! ( IDENT_5 ) ) return IDENT_6 ; index = IDENT_4 . size ( ) ; IDENT_4 . put ( key , index ) ; return index ; } } int min = 0 ; int max = ( IDENT_7 . length ) - 1 ; while ( true ) { int IDENT_8 = ( min + max ) / 2 ; int IDENT_9 = IDENT_7 [ IDENT_8 ] ; java . lang . String IDENT_10 = get ( IDENT_9 ) ; int IDENT_11 = IDENT_2 . compare ( IDENT_3 , IDENT_10 ) ; if ( IDENT_11 == 0 ) return IDENT_9 ; if ( IDENT_11 < 0 ) max = IDENT_8 - 1 ; else min = IDENT_8 + 1 ; if ( max < min ) return IDENT_6 ; } }
org . junit . Assert . assertEquals ( expected [ i ] , t . indexOf ( input [ i ] ) )