have nothing to do with vs swear off

have nothing to do with

swear off

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

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