06e423b08766d831d903cf4422d2c46735dd7821,data/rating.py,RatingDAO,itemRated,#RatingDAO#Any#,163

Before Change


        return ([],[])

    def itemRated(self,i):
        if self.trainingMatrix.matrix_Item.has_key(self.getItemId(i)):
            userIndex = self.trainingMatrix.matrix_Item[self.item[i]].keys()
            rating = self.trainingMatrix.matrix_Item[self.item[i]].values()
            return (userIndex,rating)

After Change


        return self.trainSet_u[u].keys(),self.trainSet_u[u].values()

    def itemRated(self,i):
        return self.trainSet_i.keys(),self.trainSet_i.values()

    // def row(self,u):
    //     return self.trainingMatrix.row(self.getUserId(u))
    //
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: Coder-Yu/RecQ
Commit Name: 06e423b08766d831d903cf4422d2c46735dd7821
Time: 2017-06-09
Author: yuyu2223@163.com
File Name: data/rating.py
Class Name: RatingDAO
Method Name: itemRated


Project Name: Coder-Yu/RecQ
Commit Name: 06e423b08766d831d903cf4422d2c46735dd7821
Time: 2017-06-09
Author: yuyu2223@163.com
File Name: data/rating.py
Class Name: RatingDAO
Method Name: containsItem


Project Name: Coder-Yu/RecQ
Commit Name: 06e423b08766d831d903cf4422d2c46735dd7821
Time: 2017-06-09
Author: yuyu2223@163.com
File Name: data/rating.py
Class Name: RatingDAO
Method Name: containsUser


Project Name: Coder-Yu/RecQ
Commit Name: 06e423b08766d831d903cf4422d2c46735dd7821
Time: 2017-06-09
Author: yuyu2223@163.com
File Name: data/rating.py
Class Name: RatingDAO
Method Name: userRated