Code for the ACL 2022 (Long paper): "New Intent Discovery with Pre-training and Contrastive Learning".