Home | History | Annotate | Download | only in tools

Lines Matching defs:buckets

101 def getBucket(buckets, line):
103 bucket = buckets.get(letter)
107 buckets[letter] = bucket
111 def makePattern(prefix, suffix, buckets, isWebUrl=False):
114 output += getBucket(buckets, 'a').dump(isFirst=True, isWebUrl=isWebUrl)
117 output += getBucket(buckets, chr(letter)).dump(isWebUrl=isWebUrl)
119 output += getBucket(buckets, 'z').dump(isLast=True, isWebUrl=isWebUrl)
135 buckets = {}
141 getBucket(buckets, domain[0]).add(domain.strip())
147 getBucket(buckets, 'xn--').add(result[2:-1])
149 makePattern(TLD_PREFIX, TLD_SUFFIX, buckets, isWebUrl=False)
150 makePattern(URL_PREFIX, URL_SUFFIX, buckets, isWebUrl=True)