Path 1: 1573 calls (1.0)

36 (240) 34 (113) 41 (102) 33 (101) 26 (72) 5 (64) 14 (60) 4 (60) 2 (56) 3 (54)

72 (199) 74 (187) 82 (124) 32 (102) 77 (96) 8 (89) 75 (76) 10 (66) 9 (53) 11 (52)

1.0 (250) 0.9444444444444444 (102) 0.972972972972973 (91) 0.935064935064935 (56) 0.8 (47) 0.9090909090909091 (45) 0.0 (44) 0.75 (39) 0.891891891891891...

1def _calculate_ratio(matches, length):
2    if length:
3        return 2.0 * matches / length
4    return 1.0
            

Path 2: 3 calls (0.0)

0 (3)

0 (3)

1.0 (3)

1def _calculate_ratio(matches, length):
2    if length:
3        return 2.0 * matches / length
4    return 1.0