human
I wrote the below code

    def isSuccessful(l):
        '    criterion    for    successful    run    '
        if (targetcutoff == None):
            return True
        elif minimize:
            return (min(l) <= targetcutoff)
        else:
            return (max(l) >= targetcutoff)
    def paddedClipped(l, maxLen):
        assert (len(l) <= maxLen)
        res = zeros(maxLen)
        if (targetcutoff == None):
            res[:len(l)] += l
        elif minimize:
            res[:len(l)] += l.clip(min=targetcutoff, max=1e+100)
        else:
            res[:len(l)] += l.clip(max=targetcutoff, min=(-1e+100))
        return res
    def relevantPart(l):
        "    the    part    of    the    vector    that's    above    the    cutoff.    "
        if (targetcutoff != None):
            for (i, val) in enumerate(l):
                if (minimize and (val <= targetcutoff)):
                    return l[:(i + 1)]
                elif ((not minimize) and (val >= targetcutoff)):
                    return l[:(i + 1)]
        return l
    i = 0
    for (name, flist) in sorted(fitdict.items()):
        if isinstance(flist, tuple):
            batchsize = flist[1]
            flist = flist[0]
        i += 1
        nbRuns = len(flist)
        print((name, nbRuns, 'runs'))
        if (targetcutoff != None):
            if onlysuccessful:
                flist = list(filter(isSuccessful, flist))
                print((',', len(flist), 'of    which    were    successful.'))
            else:
                print()
            flist = list(map(relevantPart, flist))
        if (len(flist) == 0):
            continue
        if averageOverEvaluations:
            worstPerf = max(list(map(max, flist)))
            if semilog:
                yPlot = list(reversed(power(10, (((array(list(range((resolution + 1)))) / float(resolution)) * (log10(worstPerf) - log10(targetcutoff))) + log10(targetcutoff)))))
            else:
                yPlot = list(reversed((((array(list(range((resolution + 1)))) / float(resolution)) * (worstPerf -...

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def plotFitnessProgession(fitdict, batchsize=1, semilog=True, targetcutoff=1e-10, minimize=True, title=None, verbose=True, varyplotsymbols=False, averageOverEvaluations=True, onlysuccessful=False, useMedian=False, resolution=1000):