put up with vs whistle past the graveyard

put up with

verb
  • To endure, tolerate, suffer through, or allow, especially something annoying. 

  • To be taken in; to be sheltered (put up). 

whistle past the graveyard

verb
  • To attempt to stay cheerful in a dire situation; to proceed with a task, ignoring an upcoming hazard, hoping for a good outcome. 

  • To enter a situation with little or no understanding of the possible consequences. 

How often have the words put up with and whistle past the graveyard occurred in a corpus of books? (source: Google Ngram Viewer )