METHOD_0 ( ) { int max = INT_0 ; com . IDENT_0 . IDENT_1 . util . IDENT_2 . IDENT_3 < java . lang . Integer > list = new com . IDENT_0 . IDENT_1 . util . IDENT_2 . IDENT_3 < java . lang . Integer > ( ) ; for ( int i = 1 ; i <= max ; i ++ ) { list . add ( i ) ; } long IDENT_4 = 0 ; int IDENT_5 = max / 10 ; for ( int j = 1 ; j <= IDENT_5 ; j ++ ) { IDENT_4 += list . METHOD_1 ( ) ; } double IDENT_6 = IDENT_4 / ( ( double ) ( IDENT_5 ) ) ; com . IDENT_0 . IDENT_1 . util . IDENT_2 . IDENT_7 . log . debug ( STRING_0 , IDENT_6 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( ) { assert ( size ) >= 0 ; if ( ( size ) == 0 ) throw new com . IDENT_0 . IDENT_1 . util . IDENT_2 . METHOD_2 ( STRING_1 ) ; int IDENT_8 = 0 ; T element = null ; int pos = - 1 ; do { pos = com . IDENT_0 . IDENT_1 . util . IDENT_2 . IDENT_3 . random . METHOD_3 ( list . size ( ) ) ; element = list . get ( pos ) ; IDENT_8 ++ ; } while ( ( element == null ) && ( IDENT_8 < ( com . IDENT_0 . IDENT_1 . util . IDENT_2 . IDENT_3 . IDENT_9 ) ) ) ; if ( element != null ) { list . set ( pos , null ) ; ( size ) OP_0 ; return element ; } else { com . IDENT_0 . IDENT_1 . util . IDENT_2 . List < T > IDENT_10 = new com . IDENT_0 . IDENT_1 . util . IDENT_2 . ArrayList < T > ( ( ( int ) ( java . lang . Math . METHOD_4 ( ( ( com . IDENT_0 . IDENT_1 . util . IDENT_2 . IDENT_3 . IDENT_11 ) * ( size ) ) ) ) ) ) ; for ( T obj : list ) { if ( obj != null ) IDENT_10 . add ( obj ) ; } list = IDENT_10 ; ( IDENT_12 ) ++ ; return METHOD_1 ( ) ; } }
org . junit . Assert . assertEquals ( IDENT_6 , ( ( ( double ) ( max ) ) / 2 ) , ( max / 100 ) )