26f35a89a7c6aff435a090cadba9bd1d85e8ed3e,data/rating.py,RatingDAO,__generateSet,#RatingDAO#,41

Before Change


            //rating = normalize(float(rating), self.rScale[-1], self.rScale[0])
            //self.trainingData[i][2] = rating
            // order the user
            if not self.user.has_key(userName):
                self.user[userName] = len(self.user)
                self.id2user[self.user[userName]] = userName
            // order the item

After Change


            //rating = normalize(float(rating), self.rScale[-1], self.rScale[0])
            //self.trainingData[i][2] = rating
            // order the user
            if userName not in self.user:
                self.user[userName] = len(self.user)
                self.id2user[self.user[userName]] = userName
            // order the item
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: Coder-Yu/RecQ
Commit Name: 26f35a89a7c6aff435a090cadba9bd1d85e8ed3e
Time: 2019-09-20
Author: yuwei57688227/
File Name: data/rating.py
Class Name: RatingDAO
Method Name: __generateSet


Project Name: nilmtk/nilmtk
Commit Name: 7799db5af474118bf94c74b68e65d77f20b6e331
Time: 2015-08-17
Author: jack-list@xlk.org.uk
File Name: nilmtk/appliance.py
Class Name: Appliance
Method Name: __init__


Project Name: Coder-Yu/RecQ
Commit Name: 26f35a89a7c6aff435a090cadba9bd1d85e8ed3e
Time: 2019-09-20
Author: yuwei57688227/
File Name: data/social.py
Class Name: SocialDAO
Method Name: __generateSet