b5516e60d949e02e9704098092510a871f48323b,utils/read_file.py,ReadFile,main_information_item_recommendation,#ReadFile#,74

Before Change


                    self.list_users.add(user)
                    self.list_items.add(item)

                    if user in self.user_interactions:
                        self.user_interactions[user].append(item)
                    else:
                        self.user_interactions[user] = [item]

        self.list_users = sorted(self.list_users)
        self.list_items = sorted(self.list_items)

    def cross_fold_validation(self):

After Change


                    self.num_items_interactions[item] = self.num_items_interactions.get(item, 0) + 1
                    self.list_users.add(user)
                    self.list_items.add(item)
                    self.user_interactions.setdefault(user, []).append(item)

        self.list_users = sorted(self.list_users)
        self.list_items = sorted(self.list_items)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: caserec/CaseRecommender
Commit Name: b5516e60d949e02e9704098092510a871f48323b
Time: 2015-12-03
Author: fortes.arthur@gmail.com
File Name: utils/read_file.py
Class Name: ReadFile
Method Name: main_information_item_recommendation


Project Name: caserec/CaseRecommender
Commit Name: b5516e60d949e02e9704098092510a871f48323b
Time: 2015-12-03
Author: fortes.arthur@gmail.com
File Name: utils/read_file.py
Class Name: ReadFile
Method Name: main_information


Project Name: biolab/orange3
Commit Name: cc9ae36faa49868e7905cb075b712cd4a3140c0f
Time: 2014-09-05
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/gui.py
Class Name:
Method Name: widgetBox


Project Name: nilearn/nilearn
Commit Name: b8254afa7fe0ad1ea22799d00a8b01c78eb8ee31
Time: 2015-01-13
Author: loic.esteve@ymail.com
File Name: nilearn/plotting/displays.py
Class Name: BaseSlicer
Method Name: add_overlay