Couple of BugFixes

1. After calculating Factor for a changeset, we were accidentally changing it for each file in a changeset.

2. Formula for calculating hotspot_factor was wrong. Corrected it.