ad hocery vs making the best of a bad job

ad hocery

noun
  • Arbitrary decision rules sometimes included in artificially intelligent software to simulate the unexpectedness in human reasoning. 

  • Use of ad hoc or improvised reasoning. 

making the best of a bad job

How often have the words ad hocery and making the best of a bad job occurred in a corpus of books? (source: Google Ngram Viewer )