METHOD_0 ( ) { java . util . IDENT_0 random = new java . util . METHOD_1 ( ) ; random . METHOD_2 ( new byte [ 100 ] ) ; org . apache . commons . codec . IDENT_1 . IDENT_2 IDENT_3 = new org . apache . commons . codec . IDENT_1 . METHOD_3 ( ) ; for ( int i = 0 ; i < INT_0 ; i ++ ) { byte [ ] bytes = new byte [ ( random . METHOD_4 ( 10 ) ) + 1 ] ; random . METHOD_2 ( bytes ) ; java . lang . String IDENT_4 = IDENT_3 . METHOD_5 ( bytes ) ; byte [ ] expected = IDENT_3 . decode ( IDENT_4 ) ; byte [ ] actual = com . IDENT_5 . IDENT_6 . IDENT_7 . METHOD_6 ( IDENT_4 ) ; "<AssertPlaceHolder>" ; } } METHOD_6 ( java . lang . String ) { int IDENT_8 = ( ( ( str . length ( ) ) * 5 ) + 7 ) / 8 ; byte [ ] result = new byte [ IDENT_8 ] ; int IDENT_9 = 0 ; int IDENT_10 = 0 ; int IDENT_11 = 0 ; for ( int i = 0 ; i < ( str . length ( ) ) ; i ++ ) { char ch = str . charAt ( i ) ; int val ; if ( ( ch >= STRING_0 ) && ( ch <= STRING_1 ) ) { val = ch - STRING_0 ; } else if ( ( ch >= STRING_2 ) && ( ch <= STRING_3 ) ) { val = ch - STRING_2 ; } else if ( ( ch >= STRING_4 ) && ( ch <= STRING_5 ) ) { val = INT_1 + ( ch - STRING_4 ) ; } else if ( ch == STRING_6 ) { IDENT_10 = 0 ; break ; } else { throw new java . lang . IllegalArgumentException ( ( STRING_7 + ch ) ) ; } switch ( IDENT_10 ) { case 0 : IDENT_11 = ( val & INT_2 ) << 3 ; IDENT_10 = 1 ; break ; case 1 : IDENT_11 OP_0 ( val & INT_3 ) > > 2 ; result [ ( IDENT_9 ++ ) ] = ( ( byte ) ( IDENT_11 ) ) ; IDENT_11 = ( val & 3 ) << 6 ; IDENT_10 = 2 ; break ; case 2 : IDENT_11 OP_0 ( val & INT_2 ) << 1 ; IDENT_10 = 3 ; break ; case 3 : IDENT_11 OP_0 ( val & 16 ) > > 4 ; result [ ( IDENT_9 ++ ) ] = ( ( byte ) ( IDENT_11 ) ) ; IDENT_11 = ( val & 15 ) << 4 ; IDENT_10 = 4 ; break ; case 4 : IDENT_11 OP_0 ( val & INT_4 ) > > 1 ; result [ ( IDENT_9 ++ ) ] = ( ( byte ) ( IDENT_11 ) ) ; IDENT_11 = ( val & 1 ) << 7 ; IDENT_10 = 5 ; break ; case 5 : IDENT_11 OP_0 ( val & INT_2 ) << 2 ; IDENT_10 = 6 ; break ; case 6 : IDENT_11 OP_0 ( val & INT_5 ) > > 3 ; result [ ( IDENT_9 ++ ) ] = ( ( byte ) ( IDENT_11 ) ) ; IDENT_11 = ( val & 7 ) << 5 ; IDENT_10 = 7 ; break ; case 7 : IDENT_11 OP_0 val & INT_2 ; result [ ( IDENT_9 ++ ) ] = ( ( byte ) ( IDENT_11 ) ) ; IDENT_10 = 0 ; break ; } } if ( IDENT_10 != 0 ) { result [ ( IDENT_9 ++ ) ] = ( ( byte ) ( IDENT_11 ) ) ; } if ( IDENT_9 != ( result . length ) ) { result = java . util . Arrays . METHOD_7 ( result , IDENT_9 ) ; } return result ; }
org . junit . Assert . assertArrayEquals ( expected , actual )