Beispiel #1
0
 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))
Beispiel #2
0
 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))
Beispiel #3
0
 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)])
Beispiel #4
0
 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)])
Beispiel #5
0
 def waitnonnackedmap(rep, col, row):
     return format_delta(row.get_reviewer_not_nacked_age())
Beispiel #6
0
 def waitfirstmap(rep, col, row):
     return format_delta(row.get_first_age())
Beispiel #7
0
 def waitlastmap(rep, col, row):
     return format_delta(row.get_current_age())
Beispiel #8
0
 def waitnonnackedmap(rep, col, row):
     return format_delta(row.get_reviewer_not_nacked_age())
Beispiel #9
0
 def waitfirstmap(rep, col, row):
     return format_delta(row.get_first_age())
Beispiel #10
0
 def waitlastmap(rep, col, row):
     return format_delta(row.get_current_age())