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

import rapidsms

import models
from models import OutgoingMessage, IncomingMessage

class App(rapidsms.app.App):
    
    def __init__(self, router):
        super(rapidsms.app.App, self).__init__()
        self.name = 'Logger'

    def incoming(self, message):
        msg = IncomingMessage(caller=message.caller, text=message.text, 
            received=message.received)
        msg.save()
    
    def outgoing(self, message):
        msg = OutgoingMessage(caller=message.caller, text=message.text, 
            sent=message.sent)<commit_msg>removed stale __init__<commit_after>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4

import rapidsms

import models
from models import OutgoingMessage, IncomingMessage

class App(rapidsms.app.App):
    
    def incoming(self, message):
        msg = IncomingMessage(caller=message.caller, text=message.text, 
            received=message.received)
        msg.save()
    
    def outgoing(self, message):
        msg = OutgoingMessage(caller=message.caller, text=message.text, 
            sent=message.sent)
{'fraction_non_alphanumeric': 0.10676156583629894, 'fraction_numerical': 0.005338078291814947, 'mean_word_length': 3.105839416058394, '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': '5344032', 'n_tokens_mistral': 364, 'n_tokens_neox': 351, 'n_words': 76}