fe2c2074017588c09f7f213d97765dbef1623bde,utils/read_file.py,ReadFile,rating_prediction,#ReadFile#,145
Before Change
list_items = set()
list_feedback = list()
dict_items = dict()
dict_users = dict()
mean_rates = 0
num_interactions = 0
with open(self.file_read) as infile:
After Change
self.mean_feedback += feedback
list_feedback.append(feedback)
self.triple_dataset = sorted(self.triple_dataset)
self.mean_feedback /= float(self.number_interactions)
self.list_users = sorted(list(self.list_users))
self.list_items = sorted(list(self.list_items))
dict_file.update({"feedback": d_feedback, "users": self.list_users, "items": self.list_items,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: caserec/CaseRecommender
Commit Name: fe2c2074017588c09f7f213d97765dbef1623bde
Time: 2016-06-16
Author: fortes.arthur@gmail.com
File Name: utils/read_file.py
Class Name: ReadFile
Method Name: rating_prediction
Project Name: pantsbuild/pants
Commit Name: 39a57d699153b9fea87d7922c999a1c07c3f5173
Time: 2014-02-21
Author: jsirois@twitter.com
File Name: src/python/twitter/pants/tasks/builddictionary.py
Class Name: BuildBuildDictionary
Method Name: _gen_goals_reference
Project Name: pantsbuild/pants
Commit Name: e231c3060cc377553c5668aadd873c3a5fd6fa6c
Time: 2014-02-20
Author: lhosken@twitter.com
File Name: src/python/twitter/pants/tasks/builddictionary.py
Class Name: BuildBuildDictionary
Method Name: _gen_goals_reference