def check_top_n(counter, argv):

    top_n = argv.top_n

    if top_n < 0 or top_n > len(counter):
        top_n = len(counter)

    return top_n
dataset/ETHPy150Open moacirosa/git-current-contributors/blame_relative_count/presenter.py/check_top_n/original