model/load_data.py
def save_data_to_txt(self, training_data_dict):
        """
        Save the data of all repos to local txt files.

        Args:
            training_data_dict: A dict holds the CL data of all repos. The keys are the repo names
                and the values are the CL data.

        Returns:
            None
        """
        for repo in training_data_dict:
            repo_data = training_data_dict[repo]
            with open('../data/%s_data.txt' % repo, 'w') as file:
                file.write(str(self.pr_columns))
                file.write('\n')
                file.write(str(self.file_columns))
                file.write('\n')
                for datum in repo_data:
                    file.write(str(datum))
                    file.write('\n')

        Save the data of all repos to local txt files.

        Args:
            training_data_dict: A dict holds the CL data of all repos. The keys are the repo names
                and the values are the CL data.

        Returns:
            None
        
Save the data of all repos to local txt files.
Save the data of all repos to local txt files .
def save_data_to_txt(self, training_data_dict):
        for repo in training_data_dict:
            repo_data = training_data_dict[repo]
            with open('../data/%s_data.txt' % repo, 'w') as file:
                file.write(str(self.pr_columns))
                file.write('\n')
                file.write(str(self.file_columns))
                file.write('\n')
                for datum in repo_data:
                    file.write(str(datum))
                    file.write('\n')
def save_data_to_txt ( self , training_data_dict ) : for repo in training_data_dict : repo_data = training_data_dict [ repo ] with open ( '../data/%s_data.txt' % repo , 'w' ) as file : file . write ( str ( self . pr_columns ) ) file . write ( '\n' ) file . write ( str ( self . file_columns ) ) file . write ( '\n' ) for datum in repo_data : file . write ( str ( datum ) ) file . write ( '\n' )
Save the data of all repos to local txt files.
Save the data of all repos to local txt files .
"""
        Save the data of all repos to local txt files.

        Args:
            training_data_dict: A dict holds the CL data of all repos. The keys are the repo names
                and the values are the CL data.

        Returns:
            None
        """
None
self
training_data_dict
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 .