CPGBERT: An Effective Model for Defect Detection by Learning Program Semantics via Code Property Graph