<commit_before># coding=utf8

# Local modules
from common import debug
from common.action import action_classes
from common.telegram import telegram_utils

from dailydevo import cac_utils

class CACDevoAction(action_classes.Action):
    def identifier(self):
        return "/cacdevo"

    def name(self):
        return "Center for Action and Contemplation Devotional"

    def resolve(self, userObj):
        debug.log("Resolving CAC Devo Action")
        passage = cac_utils.get_cacdevo(userObj.get_version())

        debug.log("Got CAC Devo Passage")

        if passage is not None:
            telegram_utils.send_msg(passage, userObj.get_uid())
            debug.log("Sent message")

        return True

def get():
    return [
        CACDevoAction()
    ]<commit_msg>Bug Fix for resolve in CAC Action<commit_after># coding=utf8

# Local modules
from common import debug
from common.action import action_classes
from common.telegram import telegram_utils

from dailydevo import cac_utils

class CACDevoAction(action_classes.Action):
    def identifier(self):
        return "/cacdevo"

    def name(self):
        return "Center for Action and Contemplation Devotional"

    def resolve(self, userObj, msg):
        passage = cac_utils.get_cacdevo(userObj.get_version())

        if passage is not None:
            telegram_utils.send_msg(passage, userObj.get_uid())

        return True

def get():
    return [
        CACDevoAction()
    ]
{'fraction_non_alphanumeric': 0.07845836200963524, 'fraction_numerical': 0.0013764624913971094, 'mean_word_length': 3.1073446327683616, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4192974', 'n_tokens_mistral': 444, 'n_tokens_neox': 424, 'n_words': 123}