model/load_data.py
def _get_num_reverted_file(file_names, file_level_signals):
        """
        Get the num of files that are involved in CL rollbacks.

        Args:
            file_names: A list of file names
            file_level_signals: A dataframe of file level signals

        Returns:
            A integer of the num of files that are involved in CL rollbacks.
        """
        num_reverted_file = 0
        for file_name in file_names:
            selected_df = file_level_signals[
                file_level_signals['file name'] == file_name]
            if selected_df.empty:
                continue
            if selected_df['reverted pull request id count'].values[0] > 0:
                num_reverted_file += 1
        return num_reverted_file

        Get the num of files that are involved in CL rollbacks.

        Args:
            file_names: A list of file names
            file_level_signals: A dataframe of file level signals

        Returns:
            A integer of the num of files that are involved in CL rollbacks.
        
Get the num of files that are involved in CL rollbacks.
Get the num of files that are involved in CL rollbacks .
def _get_num_reverted_file(file_names, file_level_signals):
        num_reverted_file = 0
        for file_name in file_names:
            selected_df = file_level_signals[
                file_level_signals['file name'] == file_name]
            if selected_df.empty:
                continue
            if selected_df['reverted pull request id count'].values[0] > 0:
                num_reverted_file += 1
        return num_reverted_file
def _get_num_reverted_file ( file_names , file_level_signals ) : num_reverted_file = 0 for file_name in file_names : selected_df = file_level_signals [ file_level_signals [ 'file name' ] == file_name ] if selected_df . empty : continue if selected_df [ 'reverted pull request id count' ] . values [ 0 ] > 0 : num_reverted_file += 1 return num_reverted_file
Get the num of files that are involved in CL rollbacks.
Get the num of files that are involved in CL rollbacks .
"""
        Get the num of files that are involved in CL rollbacks.

        Args:
            file_names: A list of file names
            file_level_signals: A dataframe of file level signals

        Returns:
            A integer of the num of files that are involved in CL rollbacks.
        """
A integer of the num of files that are involved in CL rollbacks.
A integer of the num of files that are involved in CL rollbacks .
file_names
A list of file names
A list of file names
file_level_signals
A dataframe of file level signals
A dataframe of file level signals