def get_slug(self, slug):
        # TODO: Unique within Category is good enough?
        get = lambda: self.filter(slug=slug)
        slug = s = slugify(slug)
        counter = 1
        while get():
            slug = '%s-%s' % (s, counter)
            counter += 1
        return slug
To initialize, analyze the surroundings of the given index.
dataset/ETHPy150Open johnboxall/snapboard/snapboard/managers.py/ThreadManager.get_slug--crossover with--dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/idlelib/HyperParser.py/HyperParser.__init__