The code generator for all the MegaMiner templates