def average_age(changes, ages): if len(changes) == 0: return 0 total = 0 for change in changes: total += ages[change] return format_delta(total / len(changes))
def median_age(changes, ages): if len(changes) == 0: return 0 total = 0 wantages = [] for change in changes: wantages.append(ages[change]) wantages.sort() return format_delta(wantages[int(len(wantages)/2)])
def median_age(changes, ages): if len(changes) == 0: return 0 total = 0 wantages = [] for change in changes: wantages.append(ages[change]) wantages.sort() return format_delta(wantages[int(len(wantages) / 2)])
def waitnonnackedmap(rep, col, row): return format_delta(row.get_reviewer_not_nacked_age())
def waitfirstmap(rep, col, row): return format_delta(row.get_first_age())
def waitlastmap(rep, col, row): return format_delta(row.get_current_age())