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 . apache . hadoop . yarn . server . IDENT_1 . IDENT_6 IDENT_7 = org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_8 . TestUtils . METHOD_1 ( IDENT_5 ) ; org . mockito . Mockito . when ( IDENT_5 . METHOD_2 ( ) ) . thenReturn ( 1 ) ; org . apache . hadoop . yarn . server . IDENT_0 . IDENT_9 IDENT_10 = IDENT_11 . METHOD_3 ( ) ; org . apache . hadoop . yarn . api . records . IDENT_12 IDENT_13 = METHOD_4 ( 1 , 1 ) ; org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_14 IDENT_15 = new org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_5 ( IDENT_1 , IDENT_13 , STRING_0 , queue , null , IDENT_10 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( org . apache . hadoop . yarn . server . IDENT_1 . IDENT_6 , int , double , double ) { if ( IDENT_16 > 1.0 ) { IDENT_16 = 1.0 ; } if ( IDENT_17 > 1.0 ) { IDENT_17 = 1.0 ; } if ( ( IDENT_16 < 0.0 ) || ( IDENT_17 < 0.0 ) ) { return org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_18 . IDENT_19 ; } IDENT_20 . METHOD_7 ( ) ; try { if ( ! ( IDENT_21 . containsKey ( IDENT_22 ) ) ) { IDENT_21 . put ( IDENT_22 , IDENT_18 . IDENT_23 ) ; return org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_18 . IDENT_23 ; } org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_18 IDENT_24 = IDENT_21 . get ( IDENT_22 ) ; if ( IDENT_24 . equals ( IDENT_18 . IDENT_19 ) ) { return org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_18 . IDENT_19 ; } double IDENT_25 = ( IDENT_24 . equals ( IDENT_18 . IDENT_23 ) ) ? IDENT_16 : IDENT_17 ; int IDENT_26 = METHOD_8 ( IDENT_22 ) ; double IDENT_27 = IDENT_28 * IDENT_25 ; if ( IDENT_26 > IDENT_27 ) { if ( IDENT_24 . equals ( IDENT_18 . IDENT_23 ) ) { if ( org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_5 . LOG . METHOD_9 ( ) ) { org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_5 . LOG . trace ( ( ( ( ( ( ( ( ( STRING_1 + IDENT_26 ) + STRING_2 ) + IDENT_27 ) + STRING_3 ) + STRING_4 ) + ( IDENT_22 . METHOD_2 ( ) ) ) + STRING_5 ) + ( this . IDENT_29 ) ) ) ; } IDENT_21 . put ( IDENT_22 , IDENT_18 . IDENT_30 ) ; METHOD_10 ( IDENT_22 ) ; } else if ( IDENT_24 . equals ( IDENT_18 . IDENT_30 ) ) { if ( org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_5 . LOG . METHOD_9 ( ) ) { org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_5 . LOG . trace ( ( ( ( ( ( ( ( ( STRING_1 + IDENT_26 ) + STRING_6 ) + IDENT_27 ) + STRING_7 ) + STRING_4 ) + ( IDENT_22 . METHOD_2 ( ) ) ) + STRING_5 ) + ( this . IDENT_29 ) ) ) ; } IDENT_21 . put ( IDENT_22 , IDENT_18 . IDENT_19 ) ; METHOD_10 ( IDENT_22 ) ; } } return IDENT_21 . get ( IDENT_22 ) ; } finally { IDENT_20 . METHOD_11 ( ) ; } }
org . junit . Assert . assertEquals ( IDENT_18 . IDENT_19 , IDENT_15 . METHOD_6 ( IDENT_7 , 10 , ( - 1.0 ) , ( - 1.0 ) ) )