detain vs keep it in one's pants

detain

verb
  • To keep someone from proceeding by holding them back or making claims on their attention. 

  • To put under custody. 

  • To seize goods for official purposes. 

  • To keep back or from; to withhold. 

keep it in one's pants

verb
  • To refrain from trying to have sex with someone. 

How often have the words detain and keep it in one's pants occurred in a corpus of books? (source: Google Ngram Viewer )