def run(self, args):

        args.alphabet = args.alphabet.encode("utf8")
        db = gxf.cyclic.DeBruijn(a=args.alphabet, n=args.ordern)

        if args.search is not None:
            args.search = args.search.encode("utf8")
            for offset in db.offsets(args.search):
                print(offset)
        else:
            print("".join("%c" % c for c in db[:args.length]))
dataset/ETHPy150Open wapiflapi/gxf/gxf/extensions/cyclic.py/cyclic.run/original