calculate similarity for every commit