METHOD_0 ( ) { java . util . IDENT_0 IDENT_1 = new java . util . METHOD_1 ( ) ; int k = INT_0 ; for ( int c = 0 ; c < 10 ; ++ c ) { int len = ( ( IDENT_1 . METHOD_2 ( ( INT_1 - k ) ) ) + k ) + 1 ; int [ ] arr = new int [ len ] ; for ( int i = 0 ; i < ( arr . length ) ; ++ i ) { arr [ i ] = IDENT_1 . METHOD_2 ( ) ; } int [ ] result = IDENT_2 . METHOD_3 ( arr , k ) ; java . util . Arrays . METHOD_4 ( result ) ; java . util . Arrays . METHOD_4 ( arr ) ; int [ ] METHOD_3 = java . util . Arrays . METHOD_5 ( arr , k ) ; "<AssertPlaceHolder>" ; } } METHOD_4 ( int [ ] ) { int first = 0 ; int IDENT_3 = 1 ; boolean IDENT_4 = true ; while ( IDENT_3 < ( arr . length ) ) { if ( IDENT_4 ) { if ( ( arr [ first ] ) > ( arr [ IDENT_3 ] ) ) { int IDENT_5 = arr [ first ] ; arr [ first ] = arr [ IDENT_3 ] ; arr [ IDENT_3 ] = IDENT_5 ; } } else { if ( ( arr [ first ] ) <= ( arr [ IDENT_3 ] ) ) { int IDENT_5 = arr [ first ] ; arr [ first ] = arr [ IDENT_3 ] ; arr [ IDENT_3 ] = IDENT_5 ; } } ++ first ; ++ IDENT_3 ; IDENT_4 = ! IDENT_4 ; } }
org . junit . Assert . assertArrayEquals ( METHOD_3 , result )