Code and materials for Apuleius paper