

def _snap_size(rectangles):
    x = Counter([round((1 / r.w)) for r in rectangles])
    y = Counter([round((1 / r.h)) for r in r])
    return (x.most_common()[0][0], y.most_common()[0][0])

dataset/ETHPy150Open glue-viz/glue/glue/core/layout.py _snap_size/VarMisuse@50/55 `rectangles`->`r`