code rating