determines how many initial operations a given operation data should have concode_field_sep Integer amountLeft concode_elem_sep OperationFactory factory concode_elem_sep Map<OperationType,OperationInfo> operations concode_elem_sep RouletteSelector selector concode_elem_sep Distribution distribution concode_elem_sep Map<Distribution,Weightable> weights concode_elem_sep Operation operation concode_elem_sep Log LOG concode_field_sep Operation select concode_elem_sep RouletteSelector getSelector concode_elem_sep void configureOperations concode_elem_sep Double weight concode_elem_sep void configureWeights
int function ( int arg0 , OperationData arg1 , OperationType arg2 ) { if ( arg0 <= 0 ) { return 0 ; } int loc0 = ( int ) Math . floor ( arg1 . getPercent ( ) * arg0 ) ; if ( loc0 < 0 ) { throw new IllegalArgumentException ( "srini_string" + loc0 + "srini_string" + arg2 . name ( ) ) ; } return loc0 ; }