def percentage(a, b, precision=1, mode=0):
    pct = "{0:.{1}f}%".format(a * 100. / b, precision)
    a, b = thousands(a), thousands(b)
    if mode == 0:
        return "{0} of {1} ({2})".format(a, b, pct)
    elif mode == 1:
        return "{0} ({1})".format(a, pct)
    return pct
The task's dependencies:
dataset/ETHPy150Open tanghaibao/jcvi/utils/cbook.py/percentage--crossover with--dataset/ETHPy150Open MinerKasch/HadoopWithPython/python/Luigi/wordcount.py/WordCount.requires