METHOD_0 ( ) { java . text . IDENT_0 IDENT_1 = new java . text . METHOD_1 ( STRING_0 6 ) ; IDENT_1 . METHOD_2 ( java . util . IDENT_2 . METHOD_3 ( STRING_0 ) ) ; org . IDENT_3 . IDENT_4 . util . IDENT_5 instance = new org . IDENT_3 . IDENT_4 . util . METHOD_4 ( IDENT_1 ) ; java . util . IDENT_6 < java . util . Date > IDENT_7 ; IDENT_7 = new java . util . METHOD_5 ( ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_1 0 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_0 2 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_0 7 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_2 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_0 9 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_1 9 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_3 1 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_1 1 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_1 2 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_4 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_5 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_0 8 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_3 5 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_0 1 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_3 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_0 0 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_1 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_6 ) ) ; IDENT_7 . add ( IDENT_1 . parse ( STRING_1 7 ) ) ; expResult = STRING_3 4 ; result = instance . METHOD_0 ( IDENT_7 ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( java . util . IDENT_6 ) { if ( ( IDENT_7 . METHOD_6 ( ) ) != null ) { throw new java . lang . IllegalArgumentException ( STRING_7 ) ; } if ( IDENT_7 . isEmpty ( ) ) { return "" ; } final java . lang . StringBuffer response = new java . lang . StringBuffer ( ) ; java . util . Date first = IDENT_7 . first ( ) ; java . util . Date IDENT_8 = first ; long IDENT_9 = 0 ; long IDENT_10 = 0 ; int IDENT_11 = 0 ; for ( java . util . Date d : IDENT_7 ) { IDENT_9 = IDENT_10 ; IDENT_10 = ( d . getTime ( ) ) - ( IDENT_8 . getTime ( ) ) ; if ( IDENT_9 != IDENT_10 ) { if ( IDENT_11 >= 2 ) { final java . lang . String IDENT_12 = IDENT_13 . format ( first ) ; if ( ( response . indexOf ( ( IDENT_12 + STRING_8 ) ) ) != ( - 1 ) ) { final int pos = response . indexOf ( IDENT_12 ) ; response . delete ( pos , ( ( pos + ( IDENT_12 . length ( ) ) ) + 1 ) ) ; } response . append ( METHOD_7 ( IDENT_7 . METHOD_8 ( first , d ) , IDENT_9 ) ) . append ( STRING_8 ) ; IDENT_11 = 1 ; } else { if ( IDENT_11 > 0 ) { IDENT_13 . format ( IDENT_8 , response , new java . text . METHOD_9 ( 0 ) ) . append ( STRING_8 ) ; IDENT_11 = 1 ; } } first = IDENT_8 ; } else { IDENT_11 ++ ; } IDENT_8 = d ; } if ( IDENT_11 > 0 ) { if ( IDENT_11 >= 2 ) { final java . lang . String IDENT_12 = IDENT_13 . format ( first ) ; if ( ( response . indexOf ( ( IDENT_12 + STRING_8 ) ) ) != ( - 1 ) ) { final int pos = response . indexOf ( IDENT_12 ) ; response . delete ( pos , ( ( pos + ( IDENT_12 . length ( ) ) ) + 1 ) ) ; } response . append ( METHOD_7 ( IDENT_7 . METHOD_10 ( first ) , IDENT_10 ) ) ; IDENT_11 = 1 ; } else { if ( IDENT_11 > 0 ) { IDENT_13 . format ( IDENT_8 , response , new java . text . METHOD_9 ( 0 ) ) ; IDENT_11 = 1 ; } } } return response . toString ( ) ; }
org . junit . Assert . assertEquals ( expResult , result )