model/load_data.py
def load_data(self):
        """
        Load data from all repos.

        Returns:
            A dict holds the CL data of all repos. The keys are the repo names
            and the values are the CL data.
        """
        training_data_dict = defaultdict(list)
        for repo in self.repos:
            print("Adding %s" % repo)
            pr_level_signals = self._get_pr_level_signals(repo)
            cl_data_dict = self._get_cl_data_dict(pr_level_signals, repo)

            for pr_id in cl_data_dict:
                cl_data = cl_data_dict[pr_id]
                pr_features = cl_data.pr_level_features
                if not pr_features:
                    continue
                file_features = list(cl_data.file_level_features.values())
                reverted = cl_data.reverted
                training_data_dict[repo].append(
                    [pr_features, file_features, reverted])
        return training_data_dict

        Load data from all repos.

        Returns:
            A dict holds the CL data of all repos. The keys are the repo names
            and the values are the CL data.
        
Load data from all repos.
Load data from all repos .
def load_data(self):
        training_data_dict = defaultdict(list)
        for repo in self.repos:
            print("Adding %s" % repo)
            pr_level_signals = self._get_pr_level_signals(repo)
            cl_data_dict = self._get_cl_data_dict(pr_level_signals, repo)
            for pr_id in cl_data_dict:
                cl_data = cl_data_dict[pr_id]
                pr_features = cl_data.pr_level_features
                if not pr_features:
                    continue
                file_features = list(cl_data.file_level_features.values())
                reverted = cl_data.reverted
                training_data_dict[repo].append(
                    [pr_features, file_features, reverted])
        return training_data_dict
def load_data ( self ) : training_data_dict = defaultdict ( list ) for repo in self . repos : print ( "Adding %s" % repo ) pr_level_signals = self . _get_pr_level_signals ( repo ) cl_data_dict = self . _get_cl_data_dict ( pr_level_signals , repo ) for pr_id in cl_data_dict : cl_data = cl_data_dict [ pr_id ] pr_features = cl_data . pr_level_features if not pr_features : continue file_features = list ( cl_data . file_level_features . values ( ) ) reverted = cl_data . reverted training_data_dict [ repo ] . append ( [ pr_features , file_features , reverted ] ) return training_data_dict
Load data from all repos.
Load data from all repos .
"""
        Load data from all repos.

        Returns:
            A dict holds the CL data of all repos. The keys are the repo names
            and the values are the CL data.
        """
A dict holds the CL data of all repos. The keys are the repo names
and the values are the CL data.
A dict holds the CL data of all repos . The keys are the repo names and the values are the CL data .
self