The source code of AdaFa