METHOD_0 ( ) { int [ ] IDENT_0 = new int [ ] { 0 , 1 , 2 , 4 , 6 , 5 , 3 , 10 , 20 } ; System . out . println ( algorithm . IDENT_1 . IDENT_2 . METHOD_1 ( IDENT_0 , 1 ) ) ; int IDENT_3 = ( IDENT_0 . length ) / 2 ; algorithm . IDENT_1 . IDENT_2 . METHOD_2 ( IDENT_0 , 0 , ( ( IDENT_0 . length ) - 1 ) , IDENT_3 ) ; java . util . IDENT_4 IDENT_5 = new java . util . METHOD_3 ( ) ; for ( int IDENT_6 = 0 ; IDENT_6 < 1 ; ++ IDENT_6 ) { int k = ( IDENT_5 . METHOD_4 ( 10 ) ) + 1 ; int [ ] arr = new int [ 10 ] ; for ( int i = 0 ; i < ( arr . length ) ; ++ i ) { arr [ i ] = IDENT_5 . METHOD_4 ( 10 ) ; } int [ ] IDENT_7 = java . util . Arrays . METHOD_5 ( arr , arr . length ) ; int val = algorithm . IDENT_1 . IDENT_2 . METHOD_1 ( IDENT_7 , k ) ; java . util . Arrays . METHOD_6 ( arr ) ; int expected = arr [ k ] ; "<AssertPlaceHolder>" ; } } METHOD_6 ( int [ ] ) { int first = 0 ; int IDENT_8 = 1 ; boolean IDENT_9 = true ; while ( IDENT_8 < ( arr . length ) ) { if ( IDENT_9 ) { if ( ( arr [ first ] ) > ( arr [ IDENT_8 ] ) ) { int IDENT_10 = arr [ first ] ; arr [ first ] = arr [ IDENT_8 ] ; arr [ IDENT_8 ] = IDENT_10 ; } } else { if ( ( arr [ first ] ) <= ( arr [ IDENT_8 ] ) ) { int IDENT_10 = arr [ first ] ; arr [ first ] = arr [ IDENT_8 ] ; arr [ IDENT_8 ] = IDENT_10 ; } } ++ first ; ++ IDENT_8 ; IDENT_9 = ! IDENT_9 ; } }
org . junit . Assert . assertEquals ( expected , val )