def uniq_compare(data1, data2):
    fns1 = set(data1.keys())
    fns2 = set(data2.keys())
    uniqfns1 = (fns1 - fns2)
    uniqfns2 = (fns2 - fns1)
    uniqlines1 = 0
    uniqbytes1 = 0
    uniqlines2 = 0
    uniqbytes2 = 0
    for fn in uniqfns1:
        d = data1[fn]
        uniqlines1 += d[0]
        uniqbytes1 += d[1]
    for fn in uniqfns2:
        d = data2[fn]
        uniqlines2 += d[0]
        uniqbytes2 += d[1]
    uniqcountdiff = (len(uniqfns2) - len(uniqfns1))
    assert ((len(fns2) - len(fns1)) == uniqcountdiff)
    uniqlinediff = (uniqlines2 - uniqlines1)
    uniqbytediff = (uniqbytes2 - uniqbytes1)
    countword = ('more' if (uniqcountdiff >= 0) else 'less')
    linesword = ('more' if (uniqlinediff >= 0) else 'less')
    bytesword = ('more' if (uniqbytediff >= 0) else 'less')
    print('file 2 has {} functions {} than file 1 overall (unique: {} vs {})'.format(abs(uniqcountdiff), countword, len(uniqfns2), len(uniqfns1)))
    print('file 2 has {} lines {} than file 1 overall in unique functions'.format(abs(uniqlinediff), linesword))
    print('file 2 has {} {} than file 1 overall in unique functions'.format(humanbytes(abs(uniqbytediff)), bytesword))
def uniq_compare(data1, data2):
    fns1 = set(data1.keys())
    fns2 = set(data2.keys())
    uniqfns1 = (fns1 - fns2)
    uniqfns2 = (fns2 - fns1)
    uniqlines1 = 0
    uniqbytes1 = 0
    uniqlines2 = 0
    uniqbytes2 = 0
    for fn in uniqfns1:
        d = data1[fn]
        uniqlines1 += d[0]
        uniqbytes1 += d[1]
    for fn in uniqfns2:
        d = data2[fn]
        uniqlines2 += d[0]
        uniqbytes2 += d[1]
    uniqcountdiff = (len(uniqfns2) - len(uniqfns1))
    assert ((len(fns2) - len(fns1)) == uniqcountdiff)
    uniqlinediff = (uniqlines2 - uniqlines1)
    uniqbytediff = (uniqbytes2 - uniqbytes1)
    countword = ('more' if (uniqcountdiff >= 0) else 'less')
    linesword = ('more' if (uniqlinediff >= 0) else 'less')
    bytesword = ('more' if (uniqbytediff >= 0) else 'less')
    print('file 2 has {} functions {} than file 1 overall (unique: {} vs {})'.format(abs(uniqcountdiff), countword, len(uniqfns2), len(uniqfns1)))
    print('file 2 has {} lines {} than file 1 overall in unique functions'.format(abs(uniqlinediff), linesword))
    print('file 2 has {} {} than file 1 overall in unique functions'.format(humanbytes(abs(uniqbytediff)), bytesword))