Lines Matching refs:buckets
124 def getBucket(buckets, line): argument
126 bucket = buckets.get(letter)
130 buckets[letter] = bucket
134 def makePattern(prefix, suffix, buckets, isWebUrl=False): argument
137 output += getBucket(buckets, 'a').dump(isFirst=True, isWebUrl=isWebUrl)
140 output += getBucket(buckets, chr(letter)).dump(isWebUrl=isWebUrl)
142 output += getBucket(buckets, 'z').dump(isLast=True, isWebUrl=isWebUrl)
158 buckets = {} variable
164 getBucket(buckets, domain[0]).add(domain.strip())
170 getBucket(buckets, 'xn--').add(result[2:-1])
172 makePattern(TLD_PREFIX, TLD_SUFFIX, buckets, isWebUrl=False)
173 makePattern(URL_PREFIX, URL_SUFFIX, buckets, isWebUrl=True)