<commit_before>extends layout

block content
    h1= title
    div.container
        form.form-horizontal(method='post', action='')
            div.form-group
                label(class=['control-label', 'col-sm-2'],for='name') Name
                div.col-sm-10
                    input.form-control(type='text', name='name', id='name', placeholder='Name')
            div.form-group
                label(class=['control-label', 'col-sm-2'],for='name') Surname
                div.col-sm-10
                    input.form-control(type='text', name='surname', id='surname', placeholder='Surname')

            div.form-group
                div(class=['col-sm-offset-2', 'col-sm-10'])
                    button(type='submit', class=['btn', 'btn-primary'], name='submit') Submit
<commit_msg>Use mixin to reduce repetitions<commit_after>extends layout

mixin textInput(fieldName, fieldLabel)
    div.form-group
        label(class=['control-label', 'col-sm-2'], for='#{fieldName}') #{fieldLabel}
        div.col-sm-10
            input.form-control(type='text', name='#{fieldName}', id='#{fieldName}', placeholder='#{fieldLabel}')

block content
    h1= title
    div.container
        form.form-horizontal(method='post', action='')
            +textInput('name', 'Name')
            +textInput('surname', 'Surname')

            div.form-group
                div(class=['col-sm-offset-2', 'col-sm-10'])
                    button(type='submit', class=['btn', 'btn-primary'], name='submit') Submit

{'fraction_non_alphanumeric': 0.17388407728181213, 'fraction_numerical': 0.011325782811459028, 'mean_word_length': 2.3905191873589167, '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': '1270904', 'n_tokens_mistral': 463, 'n_tokens_neox': 444, 'n_words': 73}