this normal if set wp debug to false. Just declaring variable to fix it
Twenty Twelve does not have any code errors like that. Quite sure those errors are coming from the plugins you use.
actually, 2012 functions.php has only 450 lines
There is no way there is code as ugly as the one posted here in the normal Twenty Twelve.