File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,14 +65,14 @@ function calculateScore(repo) {
6565
6666 // updated in last 3 months: adds a bonus multiplier between 0..1 to overall score (1 = updated today, 0 = updated more than 100 days ago)
6767 let iDaysSinceLastUpdate = (new Date ().getTime () - new Date (repo .updated_at ).getTime ()) / 1000 / 86400 ;
68- iScore = iScore * (( 1 + (100 - Math .min (iDaysSinceLastUpdate, 100 ) )) / 100 );
68+ iScore = iScore * (1 + (100 - Math .min (iDaysSinceLastUpdate, 100 )) / 100 );
6969
7070 // evaluate participation stats for the previous 3 months
7171 repo ._InnerSourceMetadata = repo ._InnerSourceMetadata || {};
7272 if (repo ._InnerSourceMetadata .participation ) {
7373 // average commits: adds a bonus multiplier between 0..1 to overall score (1 = >10 commits per week, 0 = less than 3 commits per week)
7474 let iAverageCommitsPerWeek = repo ._InnerSourceMetadata .participation .slice (- 13 ).reduce ((a , b ) => a + b) / 13 ;
75- iScore = iScore * (( 1 + (Math .min (Math .max (iAverageCommitsPerWeek - 3 , 0 ), 7 ) )) / 7 );
75+ iScore = iScore * (1 + (Math .min (Math .max (iAverageCommitsPerWeek - 3 , 0 ), 7 )) / 7 );
7676 }
7777
7878 // boost calculation:
You can’t perform that action at this time.
0 commit comments