def atrim1 (a,proportiontocut,tail='right'):
    if string.lower(tail) == 'right':
        lowercut = 0
        uppercut = len(a) - int(proportiontocut*len(a))
    elif string.lower(tail) == 'left':
        lowercut = int(proportiontocut*len(a))
        uppercut = len(a)
    return a[lowercut:uppercut]


#####################################
#####  ACORRELATION FUNCTIONS  ######
#####################################
Get the number of current and maximum desired and possible candidates.
dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/atrim1--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/config/__init__.py/ConfigWriter._UnlockedGetMasterCandidateStats