<commit_before>var m = require('mithril');

var header = function() {
    return m('.row', [
        m('br'),
        m('.col-md-offset-1.col-md-10', [
            m('.jumbotron[style="text-align:center"]', [
                m('h1', [
                    "Get The Email You've Always Wanted",
                ]),
                m('blockquote[style="border-left:none"]', [
                    m('p', 'You know you want it.'),
                    m('footer', '<NAME> Probably')
                ])
            ])
        ])
    ]);
};

var emailSelectBtn = function(ctrl) {
    return m('button[data-toggle="dropdown"]', {
        class: 'btn btn-default dropdown-toggle',
        type: 'button',
        style: 'border-bottom-right-radius: 0px;border-top-right-radius: 0px'
    }, [
        '@' + ctrl.currentDomain() + ' ',
        m('span.caret'),
    ]);
};

var emailSelectDropdown = function(ctrl) {
    return m('ul.dropdown-menu[role="menu"]', ctrl.domains.map(function(domain, index) {
        return m('li', [
            m('a[href="#"]', {onclick: m.withAttr('text', ctrl.currentDomain)}, domain)
        ]);
    }));
};

var input = function(ctrl) {
    return m('.row', [
        m('.col-md-offset-1.col-md-10', [
            m('.input-group', [
                m('input.form-control[type="text"]', {
                    onchange: m.withAttr("value", ctrl.email)
                }),
                m('.input-group-btn', [
                    emailSelectBtn(ctrl),
                    emailSelectDropdown(ctrl),
                    m('button.btn.btn-success[type="button"]', {
                        onclick: ctrl.getIt
                    },[
                        m('span.glyphicon.glyphicon-credit-card'),
                        ' Get It!'
                    ])
                ])
            ])
        ])
    ]);
};

module.exports = function(ctrl) {
    return m('.container', [
        header(ctrl),
        input(ctrl)
    ]);
};
<commit_msg>Grammar stuff<commit_after>var m = require('mithril');

var header = function() {
    return m('.row', [
        m('br'),
        m('.col-md-offset-1.col-md-10', [
            m('.jumbotron[style="text-align:center"]', [
                m('h1', [
                    "Get The Email You've Always Wanted",
                ]),
                m('blockquote[style="border-left:none"]', [
                    m('p', 'You know you want it.'),
                    m('footer', '<NAME>. Probably.')
                ])
            ])
        ])
    ]);
};

var emailSelectBtn = function(ctrl) {
    return m('button[data-toggle="dropdown"]', {
        class: 'btn btn-default dropdown-toggle',
        type: 'button',
        style: 'border-bottom-right-radius: 0px;border-top-right-radius: 0px'
    }, [
        '@' + ctrl.currentDomain() + ' ',
        m('span.caret'),
    ]);
};

var emailSelectDropdown = function(ctrl) {
    return m('ul.dropdown-menu[role="menu"]', ctrl.domains.map(function(domain, index) {
        return m('li', [
            m('a[href="#"]', {onclick: m.withAttr('text', ctrl.currentDomain)}, domain)
        ]);
    }));
};

var input = function(ctrl) {
    return m('.row', [
        m('.col-md-offset-1.col-md-10', [
            m('.input-group', [
                m('input.form-control[type="text"]', {
                    onchange: m.withAttr("value", ctrl.email)
                }),
                m('.input-group-btn', [
                    emailSelectBtn(ctrl),
                    emailSelectDropdown(ctrl),
                    m('button.btn.btn-success[type="button"]', {
                        onclick: ctrl.getIt
                    },[
                        m('span.glyphicon.glyphicon-credit-card'),
                        ' Get It!'
                    ])
                ])
            ])
        ])
    ]);
};

module.exports = function(ctrl) {
    return m('.container', [
        header(ctrl),
        input(ctrl)
    ]);
};

{'fraction_non_alphanumeric': 0.17946110828673106, 'fraction_numerical': 0.004575495678698526, 'mean_word_length': 1.462453066332916, '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': '4981858', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1132, 'n_words': 171}