I set the first one as minor because the entire melody and progression fits within the E minor scale except for the raised 3rd for that E major chord, so it’s the exception not the rule. From an analysis standpoint it does feel a bit weird that the tonic chord and the mode conflict with each other, but I think it’s better to go with the balance of the chord progression overall—if the tab were in E major then every single chord would have to be borrowed except the E major chord, which seems less useful than just putting it in minor.
The second tab you posted moves back and forth between C and Ab major chords with the C dominating at the end, and I’d definitely put it in C major because one borrowed chord isn’t enough to outweigh the major tonality. The only time C minor would make more sense is if the C major chord was fully surrounded by an otherwise minor progression, like in the No Man’s Sky tab.