<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def commit_format(self):
 """ Formats the analysis into a simpler dictionary with the line, file and message values to be commented on a commit. Returns a list of dictionaries """

        formatted_analyses = []
        for analyze in self.analysis['messages']:
            formatted_analyses.append({
                'message': f"{analyze['source']}: {analyze['message']}. Code: {analyze['code']}",
                'file': analyze['location']['path'],
                'line': analyze['location']['line'],
            })

        return formatted_analyses