commenting code for calculation of intersecting tokens in data set entities