SMAP code for SMAP: Self-supervised Motion Adaptation for Physically Plausible Humanoid Whole-body Control