METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_3 . transform . IDENT_4 IDENT_5 = new com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_3 . transform . METHOD_1 ( ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . entity . IDENT_6 IDENT_3 = new com . IDENT_0 . IDENT_1 . IDENT_2 . entity . METHOD_2 ( com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_3 . transform . IDENT_7 . IDENT_8 , com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_3 . transform . IDENT_7 . IDENT_9 ) ; IDENT_3 . METHOD_3 ( java . util . Collections . < java . lang . Long , java . lang . Double > METHOD_4 ( ) ) ; java . util . List < com . IDENT_0 . IDENT_1 . IDENT_2 . entity . METHOD_2 > metrics = java . util . Arrays . asList ( IDENT_3 ) ; java . util . List < java . lang . String > IDENT_10 = java . util . Arrays . asList ( STRING_0 ) ; java . util . List < com . IDENT_0 . IDENT_1 . IDENT_2 . entity . METHOD_2 > result = IDENT_5 . transform ( null , metrics , IDENT_10 ) ; "<AssertPlaceHolder>" ; } transform ( com . IDENT_0 . IDENT_1 . IDENT_2 . util . IDENT_11 , java . util . List , java . util . List ) { com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_12 . IDENT_13 . METHOD_5 ( ( metrics != null ) , STRING_1 ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_12 . IDENT_13 . METHOD_5 ( ( ( IDENT_10 != null ) && ( ( IDENT_10 . size ( ) ) >= 2 ) ) , STRING_2 ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_3 . transform . IDENT_14 . IDENT_15 IDENT_16 = null ; int IDENT_17 = - 1 ; for ( int i = ( IDENT_10 . size ( ) ) - 1 ; i >= 0 ; i OP_0 ) { java . lang . String IDENT_18 = IDENT_10 . get ( i ) ; try { IDENT_16 = IDENT_14 . IDENT_15 . valueOf ( IDENT_18 ) ; IDENT_17 = i ; break ; } catch ( java . lang . IllegalArgumentException ex ) { } } if ( IDENT_16 == null ) { throw new java . lang . METHOD_6 ( STRING_3 ) ; } java . util . List < java . lang . String > IDENT_19 = IDENT_10 . METHOD_7 ( 0 , IDENT_17 ) ; if ( IDENT_19 . isEmpty ( ) ) { throw new java . lang . METHOD_6 ( STRING_4 ) ; } java . util . List < java . lang . String > IDENT_20 = ( IDENT_17 == ( ( IDENT_10 . size ( ) ) - 1 ) ) ? new java . util . ArrayList ( ) : IDENT_10 . METHOD_7 ( ( IDENT_17 + 1 ) , IDENT_10 . size ( ) ) ; java . util . Map < java . lang . String , java . util . List < com . IDENT_0 . IDENT_1 . IDENT_2 . entity . METHOD_2 > > IDENT_21 = new java . util . HashMap ( ) ; for ( com . IDENT_0 . IDENT_1 . IDENT_2 . entity . METHOD_2 IDENT_3 : metrics ) { java . lang . String key = IDENT_19 . stream ( ) . map ( IDENT_3 :: IDENT_22 ) . filter ( IDENT_23 :: IDENT_24 ) . collect ( java . util . stream . IDENT_25 . METHOD_8 ( STRING_5 ) ) ; IDENT_21 . METHOD_9 ( key , new java . util . ArrayList ( ) ) ; IDENT_21 . get ( key ) . add ( IDENT_3 ) ; } com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_3 . transform . IDENT_4 transform = IDENT_26 . METHOD_10 ( IDENT_16 . getName ( ) ) ; java . util . List < com . IDENT_0 . IDENT_1 . IDENT_2 . entity . METHOD_2 > result = new java . util . ArrayList ( ) ; for ( java . util . Map . Entry < java . lang . String , java . util . List < com . IDENT_0 . IDENT_1 . IDENT_2 . entity . METHOD_2 > > entry : IDENT_21 . entrySet ( ) ) { java . util . List < com . IDENT_0 . IDENT_1 . IDENT_2 . entity . METHOD_2 > IDENT_27 = entry . getValue ( ) ; java . util . List < com . IDENT_0 . IDENT_1 . IDENT_2 . entity . METHOD_2 > IDENT_28 = ( IDENT_20 . isEmpty ( ) ) ? transform . transform ( null , IDENT_27 ) : transform . transform ( null , IDENT_27 , IDENT_20 ) ; for ( com . IDENT_0 . IDENT_1 . IDENT_2 . entity . METHOD_2 IDENT_29 : IDENT_28 ) { IDENT_29 . METHOD_11 ( ( ( ( entry . getKey ( ) ) != null ) && ( ! ( entry . getKey ( ) . trim ( ) . isEmpty ( ) ) ) ? entry . getKey ( ) : STRING_6 ) ) ; } result . addAll ( IDENT_28 ) ; } return result ; }
org . junit . Assert . assertEquals ( metrics , result )