<commit_before>from will.plugin import WillPlugin
from will.decorators import respond_to, periodic, hear, randomly, route, rendered_template
from will import settings

class MonthlyGoalsPlugin(WillPlugin):

    @respond_to("Set my monthly goals to (?P<goals>.*)", multiline=True)
    def set_goals(self, message, goals=""):
        print "goals: %s" % goals
        self.save("monthly_goals", goals)
        self.say("Got it.", message=message)

    @periodic(hour='9', minute='0', day_of_week="mon")
    def say_goals_on_monday(self):
        self.say_goals()

    @respond_to("^(?:What are my )?(?:monthly )?goals")
    def respond_to_goals_question(self, message):
        self.say_goals(message=message)


    def say_goals(self, message=None):
        goals = self.load("monthly_goals", False)
        if goals:
            self.say("@all our monthly goals:\n %s" % goals, message=message)
        else:
            self.say("No monthly goals set.", message=message)
<commit_msg>Adds morning mood.<commit_after>from will.plugin import WillPlugin
from will.decorators import respond_to, periodic, hear, randomly, route, rendered_template
from will import settings

class MonthlyGoalsPlugin(WillPlugin):

    @respond_to("Set my monthly goals to (?P<goals>.*)", multiline=True)
    def set_goals(self, message, goals=""):
        print "goals: %s" % goals
        self.save("monthly_goals", goals)
        self.say("Got it.", message=message)

    @periodic(hour='9', minute='0', day_of_week="mon")
    def say_goals_on_monday(self):
        self.say_goals()

    @respond_to("^(?:What are my )?(?:monthly )?goals")
    def respond_to_goals_question(self, message):
        self.say_goals(message=message)


    def say_goals(self, message=None):
        goals = self.load("monthly_goals", False)
        if goals:
            self.say("@all our monthly goals:\n %s" % goals, message=message)
        else:
            self.say("No monthly goals set.", message=message)

    @periodic(hour='10', minute='30',)
    def reminder_morning_mood(self):
        self.say("@all What's your morning mood?")

{'fraction_non_alphanumeric': 0.13660161827701095, 'fraction_numerical': 0.0038077106139933364, 'mean_word_length': 3.599562363238512, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6781100', 'n_tokens_mistral': 683, 'n_tokens_neox': 660, 'n_words': 161}