change ajax to get a commit frequency for past 10 days