renaming metriccalculator to commitvisitor