<commit_before>from flask import Flask
from flask_ask import Ask, statement
from intents.enquiry_intent import EnquiryIntent

app = Flask(__name__)
ask = Ask(app, '/')

@ask.intent('Enquiry')
def enquiry(enquiry_type, vehicle, validity, reg_one, reg_two, reg_three,
            reg_four, reg_five, reg_six, reg_seven):
    reg = reg_one + reg_two + reg_three + reg_four + reg_five + reg_six + reg_seven
    intent = EnquiryIntent()
    result = intent.execute(reg)
    speech_text = "{} {} {} {} - {} {}".format(enquiry_type, vehicle, validity, reg,
                                               result['tax']['valid'],
                                               result['tax']['text'])
    return statement(speech_text).simple_card('Hello', speech_text)

if __name__ == '__main__':
    app.run()<commit_msg>Fixed registration<commit_after>from flask import Flask
from flask_ask import Ask, statement
from intents.enquiry_intent import EnquiryIntent

TITLE = 'UK Vehicle Enquiry'

app = Flask(__name__)
ask = Ask(app, '/')

@ask.intent('Enquiry')
def enquiry(subject, vehicle, validity, reg_i, reg_ii, reg_iii, reg_iv, reg_v, reg_vi, reg_vii):
    reg_list = [ reg_i, reg_ii, reg_iii, reg_iv, reg_v, reg_vi, reg_vii ]
    reg = ''.join(filter(None, reg_list))
    speech_text = 'Registration not supplied'
    if reg:
        intent = EnquiryIntent()
        result = intent.execute(reg)
        speech_text = "{} {} {} {} - {} {}".format(subject, vehicle, validity, reg,
                                                   result['tax']['valid'],
                                                   result['tax']['text'])
    return statement(speech_text).simple_card(TITLE, speech_text)

if __name__ == '__main__':
    app.run()
{'fraction_non_alphanumeric': 0.12817551963048499, 'fraction_numerical': 0.0, 'mean_word_length': 2.718884120171674, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7329473', 'n_tokens_mistral': 527, 'n_tokens_neox': 511, 'n_words': 123}