Page Automatically Generated from Theme?

Put this in your functions.php file:

$contact_query = new WP_Query(array(
    'pagename' => 'contact',
    'post_type' => 'page',
    'post_status' => 'publish',
    'posts_per_page' => 1,
));
if (! $contact_query->post_count)
    wp_insert_post(array(
        'post_name' => 'contact',
        'post_title' => 'Contact',
        'post_status' => 'publish',
        'post_type' => 'page',
        'post_author' => 1,
        'page_template' => 'page-contact.php',
    ));
unset($contact_query);

What does it do?
If the contact page does not exist, create it.