Added the calculation of BusFactor to metrics. It is calculated by grabbing the total contributors, and sorting them in decreasing order by number of commits. Then it goes through and sums the number of commits, starting with the biggest contributor, and stops once 50% of the total commits have been reached. This is the BusFactor.
The score is normalized between 40% of the team size (total contributors), and 1. If the BusFactor is greater than 40% of the team size, the score given is one, if the BusFactor is somehow less than one then it is an error, else the value is normalized and returned normally.
Added the calculation of BusFactor to metrics. It is calculated by grabbing the total contributors, and sorting them in decreasing order by number of commits. Then it goes through and sums the number of commits, starting with the biggest contributor, and stops once 50% of the total commits have been reached. This is the BusFactor.
The score is normalized between 40% of the team size (total contributors), and 1. If the BusFactor is greater than 40% of the team size, the score given is one, if the BusFactor is somehow less than one then it is an error, else the value is normalized and returned normally.