get the average priority of items concode_field_sep int THRESHOLD concode_elem_sep Memory memory concode_elem_sep HashMap<String,Type> nameTable concode_elem_sep ArrayList<ArrayList<Type>> itemTable concode_elem_sep int mass concode_elem_sep int showLevel concode_elem_sep float RELATIVE_THRESHOLD concode_elem_sep int capacity concode_elem_sep int currentLevel concode_elem_sep int currentCounter concode_elem_sep int levelIndex concode_elem_sep Distributor DISTRIBUTOR concode_elem_sep int TOTAL_LEVEL concode_elem_sep float LOAD_FACTOR concode_elem_sep BagObserver bagObserver concode_field_sep void play concode_elem_sep void init concode_elem_sep void outOfBase concode_elem_sep Type takeOutFirst concode_elem_sep Type pickOut concode_elem_sep Type intoBase concode_elem_sep void refresh concode_elem_sep String showSizes concode_elem_sep Type takeOut concode_elem_sep void addBagObserver concode_elem_sep int capacity concode_elem_sep int getLevel concode_elem_sep boolean contains concode_elem_sep int forgetRate concode_elem_sep void stop concode_elem_sep boolean putIn concode_elem_sep boolean putBack concode_elem_sep Type get concode_elem_sep void setShowLevel concode_elem_sep String toString concode_elem_sep boolean emptyLevel concode_elem_sep String toStringLong
float function ( ) { if ( nameTable . size ( ) == 0 ) { return 0.01f ; } float loc0 = ( float ) mass / ( nameTable . size ( ) * TOTAL_LEVEL ) ; if ( loc0 > 1 ) { return 1.0f ; } return loc0 ; }