06e423b08766d831d903cf4422d2c46735dd7821,data/rating.py,RatingDAO,rating,#RatingDAO#Any#Any#,182
Before Change
return self.trainingMatrix.sCol(self.getItemId(c))
def rating(self,u,c):
return self.trainingMatrix.elem(self.getUserId(u),self.getItemId(c))
def ratingScale(self):
return (self.rScale[0],self.rScale[1])
After Change
return self.trainSet_i[c]
def rating(self,u,c):
if self.contains(u,c):
return self.trainSet_u[u][c]
return -1
def ratingScale(self):
return (self.rScale[0],self.rScale[1])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: rating
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: contains