def atiecorrect(rankvals):
    sorted,posn = ashellsort(N.array(rankvals))
    n = len(sorted)
    T = 0.0
    i = 0
    while (i<n-1):
        if sorted[i] == sorted[i+1]:
            nties = 1
            while (i<n-1) and (sorted[i] == sorted[i+1]):
                nties = nties +1
                i = i +1
            T = T + nties**3 - nties
        i = i+1
    T = T / float(n**3-n)
    return 1.0 - T
Handles createElement calls
dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/atiecorrect--crossover with--dataset/ETHPy150Open mozilla/app-validator/appvalidator/testcases/javascript/instanceactions.py/createElement