(first_app, second_app)
return sorted(diffs, key=lambda f: f['name'])
Return a list of tuples. The first value in each tuple is a file name,
    the second value is an html snippet representing the diff of that file
    in the two given apps.
Return a list of tuples. The first value in each tuple is a file name,
    the second value is an html snippet representing the diff of that file
    in the two given apps.
Return a list of tuples . The first value in each tuple is a file name the second value is an html snippet representing the diff of that file in the two given apps .
def _get_app_diffs(first_app, second_app):
    """
    Return a list of tuples. The first value in each tuple is a file name,
    the second value is an html snippet representing the diff of that file
    in the two given apps.
    """
    file_pairs = _get_file_pairs(first_app, second_app)
    diffs = []
    for name, files in file_pairs.items():
        diff_html = ghdiff.diff(files[0], files[1], n=4, css=False)
        additions, deletions = _get_change_counts(diff_html)
        if additions == 0 and deletions == 0:
            diff_html = ""
        diffs.append({
            'name': name,
            'source': diff_html,
            'add_count': additions,
            'del_count': deletions,
        })
    return sorted(diffs, key=lambda f: f['name'])
def _get_app_diffs ( first_app , second_app ) : file_pairs = _get_file_pairs ( first_app , second_app ) diffs = [ ] for name , files in file_pairs . items ( ) : diff_html = ghdiff . diff ( files [ 0 ] , files [ 1 ] , n = 4 , css = False ) additions , deletions = _get_change_counts ( diff_html ) if additions == 0 and deletions == 0 : diff_html = "" diffs . append ( { 'name' : name , 'source' : diff_html , 'add_count' : additions , 'del_count' : deletions , } ) return sorted ( diffs , key = lambda f : f [ 'name' ] )