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

import re
from datetime import date, datetime

from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned

import rapidsms
from rapidsms.parsers.keyworder import * 

from models import *
from formslogic import *
import apps.form.app as form_app
import apps.supply.app as supply_app

from apps.form.models import Domain


class App(rapidsms.app.App):

    # lets use the Keyworder parser!
    kw = Keyworder()
    
    def start(self):
        # initialize the forms app for nigeria
        self._form_app = form_app.App("Nigeria Forms", self.router)
        # this tells the form app to add itself as a message handler 
        # which registers the regex and function that this will dispatch to 
        self._form_app.add_message_handler_to(self)
        # this tells the form app that this is also a form handler 
        self._form_app.add_form_handler("nigeria", NigeriaFormsLogic())
        # initialize the supply app
        self._supply_app = supply_app.App("Nigeria Supplies", self.router)<commit_msg>patched nigeria+forms app to remove _title_ arg from __init__<commit_after>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4

import re
from datetime import date, datetime

from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned

import rapidsms
from rapidsms.parsers.keyworder import * 

from models import *
from formslogic import *
import apps.form.app as form_app
import apps.supply.app as supply_app

from apps.form.models import Domain


class App(rapidsms.app.App):

    # lets use the Keyworder parser!
    kw = Keyworder()
    
    def start(self):
        # initialize the forms app for nigeria
        self._form_app = form_app.App(self.router)
        # this tells the form app to add itself as a message handler 
        # which registers the regex and function that this will dispatch to 
        self._form_app.add_message_handler_to(self)
        # this tells the form app that this is also a form handler 
        self._form_app.add_form_handler("nigeria", NigeriaFormsLogic())
        # initialize the supply app
        self._supply_app = supply_app.App("Nigeria Supplies", self.router)
{'fraction_non_alphanumeric': 0.06825325550067356, 'fraction_numerical': 0.002694207453973956, 'mean_word_length': 3.429423459244533, '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': '1493585', 'n_tokens_mistral': 674, 'n_tokens_neox': 650, 'n_words': 225}