Update code stats