def ab_select_variant(key, userKey):
	selector = 0
	selector = zlib.adler32(bytes(str(key), "UTF-8"), selector)
	selector = zlib.adler32(bytes(str(userKey), "UTF-8"), selector)
	selector = selector * len(_experiments[key]["Variants"])
	return _experiments[key]["Variants"][selector]
dataset/ETHPy150Open cpfair/tapiriik/tapiriik/web/views/ab.py/ab_select_variant/operator `%` -> `*`