METHOD_0 ( ) { final java . lang . String IDENT_0 = STRING_0 ; int IDENT_1 = 20 ; org . apache . hadoop . io . IDENT_2 . IDENT_3 writer = null ; try { org . apache . hadoop . fs . IDENT_4 fs = org . apache . hadoop . fs . IDENT_4 . METHOD_1 ( org . apache . hadoop . io . IDENT_5 . conf ) ; org . apache . hadoop . fs . Path IDENT_6 = new org . apache . hadoop . fs . Path ( org . apache . hadoop . io . IDENT_5 . IDENT_7 , IDENT_0 ) ; writer = METHOD_2 ( IDENT_0 , org . apache . hadoop . io . IDENT_8 . class , org . apache . hadoop . io . IDENT_9 . class ) ; for ( int i = 0 ; i < IDENT_1 ; i ++ ) writer . append ( new org . apache . hadoop . io . METHOD_3 ( 0 ) , new org . apache . hadoop . io . METHOD_4 ( "value" ) ) ; writer . close ( ) ; java . io . File IDENT_10 = new java . io . File ( STRING_1 , ( ( STRING_1 + IDENT_0 ) + STRING_2 ) ) ; boolean IDENT_11 = false ; if ( IDENT_10 . exists ( ) ) IDENT_11 = IDENT_10 . delete ( ) ; if ( IDENT_11 ) "<AssertPlaceHolder>" ; } catch ( java . lang . Exception ex ) { org . junit . Assert . fail ( STRING_3 ) ; } finally { org . apache . hadoop . io . IDENT_12 . METHOD_5 ( null , writer ) ; } } METHOD_6 ( org . apache . hadoop . fs . IDENT_4 , org . apache . hadoop . fs . Path , java . lang . Class , java . lang . Class , boolean , org . apache . hadoop . conf . Configuration ) { java . lang . String IDENT_13 = ( IDENT_14 ) ? STRING_4 : "" ; org . apache . hadoop . fs . Path data = new org . apache . hadoop . fs . Path ( IDENT_6 , org . apache . hadoop . io . IDENT_2 . IDENT_15 ) ; org . apache . hadoop . fs . Path index = new org . apache . hadoop . fs . Path ( IDENT_6 , org . apache . hadoop . io . IDENT_2 . IDENT_16 ) ; int IDENT_17 = conf . METHOD_7 ( org . apache . hadoop . io . IDENT_2 . IDENT_3 . IDENT_18 , INT_0 ) ; if ( ! ( fs . exists ( data ) ) ) { throw new java . lang . Exception ( ( ( ( IDENT_13 + STRING_5 ) + IDENT_6 ) + STRING_6 ) ) ; } if ( fs . exists ( index ) ) { return - 1 ; } org . apache . hadoop . io . IDENT_19 . IDENT_20 IDENT_21 = new org . apache . hadoop . io . IDENT_19 . METHOD_8 ( conf , IDENT_19 . METHOD_8 . file ( data ) ) ; if ( ! ( IDENT_21 . METHOD_9 ( ) . equals ( IDENT_22 ) ) ) { throw new java . lang . Exception ( ( ( ( ( ( ( IDENT_13 + STRING_7 ) + IDENT_6 ) + STRING_8 ) + ( IDENT_22 . getName ( ) ) ) + STRING_9 ) + ( IDENT_21 . METHOD_9 ( ) . getName ( ) ) ) ) ; } if ( ! ( IDENT_21 . METHOD_10 ( ) . equals ( IDENT_23 ) ) ) { throw new java . lang . Exception ( ( ( ( ( ( ( IDENT_13 + STRING_10 ) + IDENT_6 ) + STRING_8 ) + ( IDENT_23 . getName ( ) ) ) + STRING_9 ) + ( IDENT_21 . METHOD_10 ( ) . getName ( ) ) ) ) ; } long IDENT_24 = 0L ; org . apache . hadoop . io . IDENT_25 key = org . apache . hadoop . util . IDENT_26 . newInstance ( IDENT_22 , conf ) ; org . apache . hadoop . io . IDENT_25 value = org . apache . hadoop . util . IDENT_26 . newInstance ( IDENT_23 , conf ) ; org . apache . hadoop . io . IDENT_19 . IDENT_3 IDENT_27 = null ; if ( ! IDENT_14 ) { IDENT_27 = org . apache . hadoop . io . IDENT_19 . METHOD_2 ( conf , IDENT_19 . IDENT_3 . file ( index ) , IDENT_19 . IDENT_3 . METHOD_11 ( METHOD_11 ) , IDENT_19 . IDENT_3 . METHOD_12 ( org . apache . hadoop . io . IDENT_28 . class ) ) ; } try { long pos = 0L ; org . apache . hadoop . io . IDENT_28 position = new org . apache . hadoop . io . METHOD_13 ( ) ; while ( IDENT_21 . next ( key , value ) ) { IDENT_24 ++ ; if ( ( IDENT_24 OP_0 IDENT_17 ) == 0 ) { position . set ( pos ) ; if ( ! IDENT_14 ) IDENT_27 . append ( key , position ) ; } pos = IDENT_21 . METHOD_14 ( ) ; } } catch ( java . lang . Throwable t ) { } IDENT_21 . close ( ) ; if ( ! IDENT_14 ) IDENT_27 . close ( ) ; return IDENT_24 ; }
org . junit . Assert . assertTrue ( STRING_3 , ( ( org . apache . hadoop . io . IDENT_2 . METHOD_6 ( fs , IDENT_6 , org . apache . hadoop . io . METHOD_3 . class , org . apache . hadoop . io . METHOD_4 . class , true , org . apache . hadoop . io . IDENT_5 . conf ) ) == IDENT_1 ) )