Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /plugins/filtertable.py [de6804] .. [a3f0ae] Maximize Restore

  Switch to unified view

a/plugins/filtertable.py b/plugins/filtertable.py
...
...
32
    _max = max
32
    _max = max
33
    z = {}
33
    z = {}
34
    zg = z.get
34
    zg = z.get
35
    for i, xi in _enum(x):
35
    for i, xi in _enum(x):
36
        for j, yj in _enum(y):
36
        for j, yj in _enum(y):
37
            k = zg((i-1,j), 0)
38
            l = zg((i,j-1), 0)
39
            if l > k:
40
                k = l
41
            if xi == yj:
37
            if xi == yj:
42
                l = zg((i-1,j-1), 0)+1
38
                k = zg((i-1,j-1), 0)+1
39
            else:
40
                k = zg((i-1,j), 0)
41
                l = zg((i,j-1), 0)
43
                if l > k:
42
                if l > k:
44
                    k = l
43
                    k = l
45
            z[i,j] = k
44
            z[i,j] = k
46
    
45
    
47
    return z[i,j]
46
    return z[i,j]