model/load_data.py
def _get_pr_data(pr_signals, num_files, num_new_files, num_reverted_file):
        """
        Get the pull request data.

        Args:
            pr_signals: A panda series of signals of one pull request.
            num_files: An integer of number of files in pull request.
            num_new_files: An integer of number of new files in pull request.
            num_reverted_file: An integer of number of files that have been
                involved in CL rollbacks before.

        Returns:
            A list of datum of one pull request.
        """
        pr_data = []
        for feature in COMMON_PR_LEVEL_FEATURES:
            pr_data.append(pr_signals[feature])
        pr_data.append(num_new_files)
        pr_data.append(num_files)
        pr_data.append(num_reverted_file)
        if num_reverted_file:
            pr_data.append(1)
        else:
            pr_data.append(0)
        pr_data.append(num_reverted_file / num_files)
        return pr_data

        Get the pull request data.

        Args:
            pr_signals: A panda series of signals of one pull request.
            num_files: An integer of number of files in pull request.
            num_new_files: An integer of number of new files in pull request.
            num_reverted_file: An integer of number of files that have been
                involved in CL rollbacks before.

        Returns:
            A list of datum of one pull request.
        
Get the pull request data.
Get the pull request data .
def _get_pr_data(pr_signals, num_files, num_new_files, num_reverted_file):
        pr_data = []
        for feature in COMMON_PR_LEVEL_FEATURES:
            pr_data.append(pr_signals[feature])
        pr_data.append(num_new_files)
        pr_data.append(num_files)
        pr_data.append(num_reverted_file)
        if num_reverted_file:
            pr_data.append(1)
        else:
            pr_data.append(0)
        pr_data.append(num_reverted_file / num_files)
        return pr_data
def _get_pr_data ( pr_signals , num_files , num_new_files , num_reverted_file ) : pr_data = [ ] for feature in COMMON_PR_LEVEL_FEATURES : pr_data . append ( pr_signals [ feature ] ) pr_data . append ( num_new_files ) pr_data . append ( num_files ) pr_data . append ( num_reverted_file ) if num_reverted_file : pr_data . append ( 1 ) else : pr_data . append ( 0 ) pr_data . append ( num_reverted_file / num_files ) return pr_data
Get the pull request data.
Get the pull request data .
"""
        Get the pull request data.

        Args:
            pr_signals: A panda series of signals of one pull request.
            num_files: An integer of number of files in pull request.
            num_new_files: An integer of number of new files in pull request.
            num_reverted_file: An integer of number of files that have been
                involved in CL rollbacks before.

        Returns:
            A list of datum of one pull request.
        """
A list of datum of one pull request.
A list of datum of one pull request .
pr_signals
A panda series of signals of one pull request.
A panda series of signals of one pull request .
num_files
An integer of number of files in pull request.
An integer of number of files in pull request .
num_new_files
An integer of number of new files in pull request.
An integer of number of new files in pull request .
num_reverted_file
An integer of number of files that have been
involved in CL rollbacks before.
An integer of number of files that have been involved in CL rollbacks before .