<commit_before>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 coding=utf-8

import logging
import datetime
from google.appengine.api import mail
from google.appengine.api import users
from google.appengine.ext import db
import models

logging.info('Scheduled task ran.')

plaintext_template = '''

Hi %(username)s,

-----------------------------------------
HOW DID LAST WEEK GO?
Edit your goals from last week:
-----------------------------------------

%(tasks)s
-----------------------------------------
WHAT'RE YOU GOING TO DO THIS WEEK?
-----------------------------------------


'''

html_template = '''

<img src="http://www.snptz.com/static/logoMed.png" width="174" height="50" alt="SNPTZ">
<p>Good morning %(username)s!</p>

<pre>
-----------------------------------------
HOW DID LAST WEEK GO?
Edit your goals from last week:
-----------------------------------------
</pre>

%(tasks)s
<pre>
-----------------------------------------
WHAT'RE YOU GOING TO DO THIS WEEK?
-----------------------------------------
</pre>
'''

first_time_plaintext = '''

Hi %(username)s,

Welcome to SNPTZ!
Tell us a few things you are going to be working on this week in the space below.
Don't get too detailed or wordy. Each week, we'll follow up so you can reflect on your progress.

-----------------------------------------
WHAT'RE YOU GOING TO DO THIS WEEK?
-----------------------------------------


'''

first_time_html = '''

<img src="http://www.snptz.com/static/logoMed.png" width="174" height="50" alt="SNPTZ">
<p>Good morning %(username)s!</p>
Welcome to SNPTZ!
Tell us a few things you are going to be working on this week in the space below.
Don't get too detailed or wordy. Each week, we'll follow up so you can reflect on your progress.
<pre>
-----------------------------------------<commit_msg>improve copy for 1st week and weekly emails<commit_after>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 coding=utf-8

import logging
import datetime
from google.appengine.api import mail
from google.appengine.api import users
from google.appengine.ext import db
import models

logging.info('Scheduled task starting...')

plaintext_template = '''

Hi %(username)s,

Please reply to this email and describe
(inline, below) what you worked on last
week and what you are going to work on
this week.

Be sure to send your reply before lunch...
otherwise we'll tell your colleagues that
you are planning to slack off all week :)

-----------------------------------------
HOW DID LAST WEEK GO?
Edit your goals from last week:
-----------------------------------------

%(tasks)s
-----------------------------------------
WHAT'RE YOU GOING TO DO THIS WEEK?
-----------------------------------------


'''

html_template = '''

<img src="http://www.snptz.com/static/logoMed.png" width="174" height="50" alt="SNPTZ">
<p>Good morning %(username)s!</p>

<p>
Please reply to this email and describe
(inline, below) what you worked on last
week and what you are going to work on
this week.

Be sure to send your reply before lunch...
otherwise we'll tell your colleagues that
you are planning to slack off all week :)
</p>
<pre>
-----------------------------------------
HOW DID LAST WEEK GO?
Edit your goals from last week:
-----------------------------------------
</pre>

%(tasks)s
<pre>
-----------------------------------------
WHAT'RE YOU GOING TO DO THIS WEEK?
-----------------------------------------
</pre>
'''

first_time_plaintext = '''

Hi %(username)s,

Welcome to SNPTZ!

Please hit reply and tell us a few things you are going
to work on this week in the space below (reply inline).
Don't get too detailed or wordy -- SNPTZ isn't a to-do list or an issue tracker.
Also, don't get creative with formatting your reply (our email parsing code is really basic).
Each week, we'll follow up so you can reflect on your progress --
and share your plans with your esteemed colleagues (if they use SNPTZ too).

-----------------------------------------
WHAT'RE YOU GOING TO DO THIS WEEK?
-----------------------------------------


'''

first_time_html = '''

<img src="http://www.snptz.com/static/logoMed.png" width="174" height="50" alt="SNPTZ">
<p>Good morning %(username)s!</p>
Welcome to SNPTZ!
<p>
Please hit reply and tell us a few things you are going
to work on this week in the space below (reply inline).
Don't get too detailed or wordy -- SNPTZ isn't a to-do list or an issue tracker.
Also, don't get creative with formatting your reply (our email parsing code is really basic).
Each week, we'll follow up so you can reflect on your progress --
and share your plans with your esteemed colleagues (if they use SNPTZ too).
</p>
<pre>
-----------------------------------------
{'fraction_non_alphanumeric': 0.27542101897250054, 'fraction_numerical': 0.006182050735450863, 'mean_word_length': 1.850546780072904, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3162248', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1252, 'n_words': 553}