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