Measuring and detecting molecular adaptation in codon