Code base of magc