def find_repeats(arr): """Find repeats in arr and return (repeats, repeat_count) """ v1,v2, n = futil.dfreps(arr) return v1[:n],v2[:n]