ally (oneself) with vs take to one's heart

ally (oneself) with

take to one's heart

How often have the words ally (oneself) with and take to one's heart occurred in a corpus of books? (source: Google Ngram Viewer )