data/file_level_transformation.py
def _transform_file_related_signals(
            file_related_values: dict,
            file_versions: dict,
            file_data_dict: dict
    ) -> None:
        """Transform the signals of file level columns.

        This function takes a file level signals values dict and a file versions
        dict, and transforms the signals that are file related.

        Args:
            file_related_values: A file related signals values dict, keys are
                the columns and the values are the corresponding values.
            file_versions: A file versions dict, keys are the file names and
                the values are the number of file versions.
            file_data_dict: A dict of file data to fill in.

        Returns: None
        """
        for file_name, version in file_versions.items():
            file_data_dict[file_name].data['file versions'] = version

        file_changes = file_related_values['files changes']
        for file_change in file_changes:
            file_name, addition, deletion, changes = file_change
            file_data_dict[file_name].data['files changes'] = \
                (addition, deletion, changes)

        review_comments_msg = file_related_values['review comments msg']
        for review_msg in review_comments_msg:
            file_name, msg = review_msg
            if 'review comments msg' not in file_data_dict[file_name].data or \
                    not file_data_dict[file_name].data['review comments msg']:
                file_data_dict[file_name].data['review comments msg'] = []
            file_data_dict[file_name].data['review comments msg'].append(msg)
Transform the signals of file level columns.

        This function takes a file level signals values dict and a file versions
        dict, and transforms the signals that are file related.

        Args:
            file_related_values: A file related signals values dict, keys are
                the columns and the values are the corresponding values.
            file_versions: A file versions dict, keys are the file names and
                the values are the number of file versions.
            file_data_dict: A dict of file data to fill in.

        Returns: None
        
Transform the signals of file level columns.
This function takes a file level signals values dict and a file versions
dict, and transforms the signals that are file related.
Transform the signals of file level columns . This function takes a file level signals values dict and a file versions dict and transforms the signals that are file related .
def _transform_file_related_signals(
            file_related_values: dict,
            file_versions: dict,
            file_data_dict: dict
    ) -> None:
        for file_name, version in file_versions.items():
            file_data_dict[file_name].data['file versions'] = version
        file_changes = file_related_values['files changes']
        for file_change in file_changes:
            file_name, addition, deletion, changes = file_change
            file_data_dict[file_name].data['files changes'] = \
                (addition, deletion, changes)
        review_comments_msg = file_related_values['review comments msg']
        for review_msg in review_comments_msg:
            file_name, msg = review_msg
            if 'review comments msg' not in file_data_dict[file_name].data or \
                    not file_data_dict[file_name].data['review comments msg']:
                file_data_dict[file_name].data['review comments msg'] = []
            file_data_dict[file_name].data['review comments msg'].append(msg)
def _transform_file_related_signals ( file_related_values : dict , file_versions : dict , file_data_dict : dict ) -> None : for file_name , version in file_versions . items ( ) : file_data_dict [ file_name ] . data [ 'file versions' ] = version file_changes = file_related_values [ 'files changes' ] for file_change in file_changes : file_name , addition , deletion , changes = file_change file_data_dict [ file_name ] . data [ 'files changes' ] = ( addition , deletion , changes ) review_comments_msg = file_related_values [ 'review comments msg' ] for review_msg in review_comments_msg : file_name , msg = review_msg if 'review comments msg' not in file_data_dict [ file_name ] . data or not file_data_dict [ file_name ] . data [ 'review comments msg' ] : file_data_dict [ file_name ] . data [ 'review comments msg' ] = [ ] file_data_dict [ file_name ] . data [ 'review comments msg' ] . append ( msg )
Transform the signals of file level columns.
Transform the signals of file level columns .
"""Transform the signals of file level columns.

        This function takes a file level signals values dict and a file versions
        dict, and transforms the signals that are file related.

        Args:
            file_related_values: A file related signals values dict, keys are
                the columns and the values are the corresponding values.
            file_versions: A file versions dict, keys are the file names and
                the values are the number of file versions.
            file_data_dict: A dict of file data to fill in.

        Returns: None
        """
file_related_values
dict
A file related signals values dict, keys are
the columns and the values are the corresponding values.
A file related signals values dict keys are the columns and the values are the corresponding values .
file_versions
dict
A file versions dict, keys are the file names and
the values are the number of file versions.
A file versions dict keys are the file names and the values are the number of file versions .
file_data_dict
dict
A dict of file data to fill in.
A dict of file data to fill in .