METHOD_0 ( ) { java . util . IDENT_0 random = new java . util . METHOD_1 ( INT_0 ) ; java . io . File root = IDENT_1 . METHOD_2 ( ) ; try ( net . IDENT_2 . cache . fs . IDENT_3 store = new net . IDENT_2 . cache . fs . METHOD_3 ( root ) ) { net . IDENT_2 . cache . fs . IDENT_4 index = store . METHOD_4 ( 0 ) ; net . IDENT_2 . cache . fs . IDENT_4 IDENT_5 = store . METHOD_4 ( 1 ) ; net . IDENT_2 . cache . fs . IDENT_6 IDENT_7 = index . METHOD_5 ( 0 ) ; IDENT_7 . METHOD_6 ( random . METHOD_7 ( Integer . MAX_VALUE ) ) ; IDENT_7 . METHOD_8 ( new net . IDENT_2 . cache . index . IDENT_8 [ net . IDENT_2 . cache . fs . IDENT_9 . IDENT_10 ] ) ; net . IDENT_2 . cache . fs . IDENT_6 IDENT_11 = index . METHOD_5 ( 1 ) ; IDENT_11 . METHOD_8 ( new net . IDENT_2 . cache . index . IDENT_8 [ net . IDENT_2 . cache . fs . IDENT_9 . IDENT_10 ] ) ; net . IDENT_2 . cache . fs . IDENT_6 IDENT_12 = IDENT_5 . METHOD_5 ( 0 ) ; IDENT_12 . METHOD_8 ( new net . IDENT_2 . cache . index . IDENT_8 [ net . IDENT_2 . cache . fs . IDENT_9 . IDENT_10 ] ) ; for ( int i = 0 ; i < ( net . IDENT_2 . cache . fs . IDENT_9 . IDENT_10 ) ; ++ i ) { net . IDENT_2 . cache . index . IDENT_8 [ ] IDENT_13 = IDENT_7 . METHOD_9 ( ) ; net . IDENT_2 . cache . index . IDENT_8 file = IDENT_13 [ i ] = new net . IDENT_2 . cache . index . METHOD_10 ( ) ; file . METHOD_6 ( random . METHOD_7 ( Integer . MAX_VALUE ) ) ; } for ( int i = 0 ; i < ( net . IDENT_2 . cache . fs . IDENT_9 . IDENT_10 ) ; ++ i ) { net . IDENT_2 . cache . index . METHOD_10 [ ] IDENT_13 = IDENT_11 . METHOD_9 ( ) ; net . IDENT_2 . cache . index . METHOD_10 file = IDENT_13 [ i ] = new net . IDENT_2 . cache . index . METHOD_10 ( ) ; file . METHOD_6 ( random . METHOD_7 ( Integer . MAX_VALUE ) ) ; } for ( int i = 0 ; i < ( net . IDENT_2 . cache . fs . IDENT_9 . IDENT_10 ) ; ++ i ) { net . IDENT_2 . cache . index . METHOD_10 [ ] IDENT_13 = IDENT_12 . METHOD_9 ( ) ; net . IDENT_2 . cache . index . METHOD_10 file = IDENT_13 [ i ] = new net . IDENT_2 . cache . index . METHOD_10 ( ) ; file . METHOD_6 ( random . METHOD_7 ( Integer . MAX_VALUE ) ) ; } store . save ( ) ; try ( net . IDENT_2 . cache . fs . METHOD_3 IDENT_14 = new net . IDENT_2 . cache . fs . METHOD_3 ( root ) ) { IDENT_14 . load ( ) ; "<AssertPlaceHolder>" ; } } } load ( ) { if ( ( IDENT_15 ) == ( net . IDENT_2 . client . rs . IDENT_16 . IDENT_17 ) ) { return null ; } try { net . IDENT_2 . client . rs . IDENT_18 config = IDENT_19 . METHOD_11 ( ) ; java . util . Map < java . lang . String , byte [ ] > IDENT_20 = new java . util . HashMap ( ) ; { java . security . IDENT_21 . IDENT_22 [ ] IDENT_23 = net . IDENT_2 . client . rs . IDENT_24 . METHOD_12 ( ) ; java . lang . String IDENT_25 = config . METHOD_13 ( ) ; java . lang . String IDENT_26 = config . METHOD_14 ( ) ; java . net . URL url = new java . net . URL ( ( IDENT_25 + IDENT_26 ) ) ; IDENT_27 . IDENT_28 request = new IDENT_27 . IDENT_28 . Builder ( ) . url ( url ) . build ( ) ; try ( IDENT_27 . Response response = IDENT_29 . IDENT_30 . METHOD_15 ( request ) . execute ( ) ) { java . util . IDENT_31 . IDENT_32 IDENT_33 = new java . util . IDENT_31 . METHOD_16 ( response . body ( ) . METHOD_17 ( ) ) ; byte [ ] IDENT_34 = new byte [ INT_1 ] ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ( INT_2 * INT_3 ) ) ; for ( ; ; ) { java . util . IDENT_31 . IDENT_35 metadata = IDENT_33 . METHOD_18 ( ) ; if ( metadata == null ) { break ; } buffer . METHOD_19 ( ) ; for ( ; ; ) { int n = IDENT_33 . read ( IDENT_34 ) ; if ( n <= ( - 1 ) ) { break ; } buffer . write ( IDENT_34 , 0 , n ) ; } if ( ! ( java . util . Arrays . equals ( metadata . METHOD_20 ( ) , IDENT_23 ) ) ) { if ( metadata . getName ( ) . startsWith ( STRING_0 ) ) { continue ; } else { throw new net . IDENT_2 . client . rs . METHOD_21 ( ( STRING_1 1 + ( metadata . getName ( ) ) ) ) ; } } IDENT_20 . put ( metadata . getName ( ) , buffer . toByteArray ( ) ) ; } } } if ( ( IDENT_15 ) == ( net . IDENT_2 . client . rs . IDENT_16 . IDENT_36 ) ) { java . util . Map < java . lang . String , java . lang . String > IDENT_37 ; try ( java . io . InputStream is = net . IDENT_2 . client . rs . IDENT_24 . class . getResourceAsStream ( STRING_2 ) ) { IDENT_37 = new com . google . gson . METHOD_22 ( ) . METHOD_23 ( new java . io . METHOD_24 ( is ) , new com . google . common . reflect . IDENT_38 < java . util . HashMap < java . lang . String , java . lang . String > > ( ) { } . getType ( ) ) ; } for ( Map . Entry < java . lang . String , java . lang . String > file : IDENT_37 . entrySet ( ) ) { byte [ ] bytes = IDENT_20 . get ( file . getKey ( ) ) ; java . lang . String IDENT_39 = null ; if ( bytes != null ) { IDENT_39 = com . google . common . hash . IDENT_40 . METHOD_25 ( ) . METHOD_26 ( bytes ) . toString ( ) ; } if ( ! ( file . getValue ( ) . equals ( IDENT_39 ) ) ) { log . debug ( STRING_3 , file . getKey ( ) , file . getValue ( ) , IDENT_39 ) ; log . info ( STRING_1 2 ) ; IDENT_15 = net . IDENT_2 . client . rs . IDENT_16 . IDENT_41 ; break ; } } } if ( ( IDENT_15 ) == ( net . IDENT_2 . client . rs . IDENT_16 . IDENT_36 ) ) { java . io . ByteArrayOutputStream IDENT_42 = new java . io . ByteArrayOutputStream ( ( INT_2 * INT_3 ) ) ; int IDENT_43 = 0 ; for ( Map . Entry < java . lang . String , byte [ ] > file : IDENT_20 . entrySet ( ) ) { byte [ ] bytes ; try ( java . io . InputStream is = net . IDENT_2 . client . rs . IDENT_24 . class . getResourceAsStream ( ( ( STRING_4 + ( file . getKey ( ) ) ) + STRING_1 0 ) ) ) { if ( is == null ) { continue ; } bytes = com . google . common . io . IDENT_44 . toByteArray ( is ) ; } IDENT_42 . METHOD_19 ( ) ; io . IDENT_45 . IDENT_46 . IDENT_47 . METHOD_27 ( file . getValue ( ) , bytes , IDENT_42 ) ; file . setValue ( IDENT_42 . toByteArray ( ) ) ; ++ IDENT_43 ; } log . debug ( STRING_5 , IDENT_43 ) ; } java . lang . String IDENT_48 = config . METHOD_28 ( ) ; java . lang . IDENT_49 IDENT_50 = new java . lang . METHOD_29 ( net . IDENT_2 . client . rs . IDENT_24 . class . METHOD_30 ( ) ) { @ net . IDENT_2 . client . rs . Override MOD_0 java . lang . Class < ? > METHOD_31 ( java . lang . String name ) throws net . IDENT_2 . client . rs . IDENT_51 { java . lang . String path = name . replace ( STRING_6 , STRING_7 ) . METHOD_32 ( STRING_1 ) ; byte [ ] data = IDENT_20 . get ( path ) ; if ( data == null ) { throw new java . lang . METHOD_33 ( name ) ; } return METHOD_34 ( name , data , 0 , data . length ) ; } } ; java . lang . Class < ? > IDENT_52 = IDENT_50 . METHOD_35 ( IDENT_48 ) ; java . IDENT_53 . IDENT_54 rs = ( ( java . IDENT_53 . IDENT_54 ) ( IDENT_52 . newInstance ( ) ) ) ; rs . METHOD_36 ( new net . IDENT_2 . client . rs . METHOD_37 ( config ) ) ; return rs ; } catch ( java . io . IOException | java . lang . METHOD_33 | java . lang . IDENT_55 | java . lang . IDENT_56 | org . apache . commons . IDENT_57 . IDENT_58 . IDENT_59 | io . IDENT_45 . IDENT_46 . IDENT_60 | java . security . IDENT_21 . IDENT_61 | net . IDENT_2 . client . rs . METHOD_21 | java . lang . IDENT_62 e ) { if ( e instanceof java . lang . METHOD_33 ) { log . error ( ( STRING_8 + ( STRING_9 + STRING_10 ) ) ) ; } log . error ( STRING_11 , e ) ; return null ; } }
org . junit . Assert . assertEquals ( store , IDENT_14 )