code name vs nickname

code name

noun
  • A name used to clandestinely identify somebody or something, either for military or espionage purposes, or for commercial confidentiality. 

nickname

noun
  • A familiar, shortened or diminutive name for a person or thing. 

  • A familiar, invented name for a person or thing used instead of the actual name of the person or thing, often based on some noteworthy characteristic. 

verb
  • To give a nickname to (a person or thing). 

How often have the words code name and nickname occurred in a corpus of books? (source: Google Ngram Viewer )