bin/cobench in cobench-0.0.36 vs bin/cobench in cobench-0.0.37

- old
+ new

@@ -167,20 +167,24 @@ h[:total] * weights[t] end.inject(0, :+) data[u]['Score'] = { total: score } end averages = { + 'CpP': { + f: lambda { |ms| div(actual(ms['Commits']), actual(ms['Pulls'])) }, + title: 'Commits per Pull Request' + }, 'HpP': { f: lambda { |ms| div(actual(ms['HoC']), actual(ms['Pulls'])) }, title: 'HoC per Pull Request' }, 'HpC': { f: lambda { |ms| div(actual(ms['HoC']), actual(ms['Commits'])) }, title: 'HoC per Commit' }, - 'MpP': { - f: lambda { |ms| div(actual(ms['Msgs']), actual(ms['Pulls'])) }, - title: 'Messages per Pull Request' + 'MpRP': { + f: lambda { |ms| div(actual(ms['Msgs']), actual(ms['Reviews']) + actual(ms['Pulls'])) }, + title: 'Messages per Review+Pulls' } } data.each do |u, ms| averages.each do |k, a| data[u][k] = { total: a[:f].call(ms) }