METHOD_0 ( ) { org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 queue = org . mockito . Mockito . mock ( org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . class ) ; org . apache . hadoop . yarn . api . records . IDENT_4 IDENT_5 = org . mockito . Mockito . mock ( org . apache . hadoop . yarn . api . records . IDENT_4 . class ) ; org . mockito . Mockito . when ( IDENT_5 . METHOD_1 ( ) ) . thenReturn ( 1 ) ; org . apache . hadoop . yarn . server . IDENT_0 . IDENT_6 IDENT_7 = IDENT_8 . METHOD_2 ( ) ; org . apache . hadoop . yarn . api . records . IDENT_9 IDENT_10 = METHOD_3 ( 1 , 1 ) ; org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_11 IDENT_12 = new org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_4 ( IDENT_1 , IDENT_10 , STRING_0 , queue , null , IDENT_7 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( org . apache . hadoop . yarn . api . records . IDENT_4 , int , double , double ) { if ( IDENT_13 > 1.0 ) { IDENT_13 = 1.0 ; } if ( IDENT_14 > 1.0 ) { IDENT_14 = 1.0 ; } if ( ( IDENT_13 < 0.0 ) || ( IDENT_14 < 0.0 ) ) { return org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_15 . IDENT_16 ; } if ( ! ( IDENT_17 . containsKey ( IDENT_18 ) ) ) { IDENT_17 . put ( IDENT_18 , IDENT_15 . IDENT_19 ) ; return org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_15 . IDENT_19 ; } org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_15 IDENT_20 = IDENT_17 . get ( IDENT_18 ) ; if ( IDENT_20 . equals ( IDENT_15 . IDENT_16 ) ) return org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_15 . IDENT_16 ; double IDENT_21 = ( IDENT_20 . equals ( IDENT_15 . IDENT_19 ) ) ? IDENT_13 : IDENT_14 ; if ( ( METHOD_6 ( IDENT_18 ) ) > ( IDENT_22 * IDENT_21 ) ) { if ( IDENT_20 . equals ( IDENT_15 . IDENT_19 ) ) { IDENT_17 . put ( IDENT_18 , IDENT_15 . IDENT_23 ) ; METHOD_7 ( IDENT_18 ) ; } else if ( IDENT_20 . equals ( IDENT_15 . IDENT_23 ) ) { IDENT_17 . put ( IDENT_18 , IDENT_15 . IDENT_16 ) ; METHOD_7 ( IDENT_18 ) ; } } return IDENT_17 . get ( IDENT_18 ) ; }
org . junit . Assert . assertEquals ( IDENT_15 . IDENT_16 , IDENT_12 . METHOD_5 ( IDENT_5 , 10 , ( - 1.0 ) , ( - 1.0 ) ) )