pledge oneself vs swear by

pledge oneself

swear by

verb
  • To trust wholeheartedly. 

  • To invoke in an oath; to swear upon. 

How often have the words pledge oneself and swear by occurred in a corpus of books? (source: Google Ngram Viewer )