GMM Accompanying codes for "Incorporating Astrophysical Systematics into a Generalized Likelihood for Cosmology with Type Ia Supernovae" This paper can be found at: https://arxiv.org/abs/1511.04647