resist the temptation to vs swear off

resist the temptation to

swear off

verb
  • To quit or cease completely, or to promise to quit, as a bad habit. 

How often have the words resist the temptation to and swear off occurred in a corpus of books? (source: Google Ngram Viewer )