def print_summary_stats(counter):
    """
    Prints summary statistics about which writer strategies were used,
    and how much they were used.

    :param counter: A list of lists. The first entry on the inner list is a
        number count of how many times a WriterStrategy was used, and the
        second entry is a string label describing the WriterStrategy
    """
    sum = 0     # Sum of labeled WriterStrategy modifications
    u_sum = 0   # Sum of unlabeled WriterStrategy modifications
    for c in counter:
        if c[1] is not None and c[0] > 0:
            print("Total " + c[1] + " modified:\t" + str(c[0]))
            sum += c[0]
        else:
            u_sum += c[0]
    if u_sum > 0:
        print("Unlabeled modifications: \t" + str(u_sum))
    print("Total modifications: \t\t" + str(sum + u_sum))
def print_summary_stats ( counter ) : sum = 0 u_sum = 0 for c in counter : if c [ 1 ] is not None and c [ 0 ] > 0 : print ( "Total " + c [ 1 ] + " modified:\t" + str ( c [ 0 ] ) ) sum += c [ 0 ] else : u_sum += c [ 0 ] if u_sum > 0 : print ( "Unlabeled modifications: \t" + str ( u_sum ) ) print ( "Total modifications: \t\t" + str ( sum + u_sum ) )
Prints summary statistics about which writer strategies were used,
    and how much they were used.

    :param counter: A list of lists. The first entry on the inner list is a
        number count of how many times a WriterStrategy was used, and the
        second entry is a string label describing the WriterStrategy