<commit_before>label,
input,
.input {
    display: block;
}

input,
textarea,
.input {
    display: block;
    width: 100%;
    padding: 8px 10px;
    box-shadow: none;

    font-size: inherit;
    font-weight: 400;

    background: @white;
    border: 1px solid @lightGrey;
    border-radius: 0px;

    // for links
    color: inherit;
    text-decoration: none;
}

textarea {
    min-height: 78px; // ~3 lines
    &.textarea-large {
        min-height: 130px;
    }
}

.input-swatch {
    float: left;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 1px solid @lightGrey;
}

label {
    padding: 0 10px;
    font-size: 14px;
    color: @darkGrey;
    margin-bottom: 5px;
}

.form-group,
.checkbox {
    padding: @body-padding;
    margin: 0;
    p {
        &:first-child {
            margin-top: 0;
        }
        margin-bottom: 0;
    }
}

/*********************************************************
* Input groups
*/

.input-group {
    display: flex;
    input {
        width: auto;
        flex-grow: 1;
    }
    .input-group-addon {
        padding: 8px 10px;
        background: @lightGrey;
        border: 1px solid darken(@lightGrey, 5%);
        &:last-child {
            border-left: 0;
        }
        &:first-child {
            border-right: 0;
        }
    }
}

/*********************************************************
* Checkbox
*/
input[type="checkbox"] {
    width: auto;
}

.checkbox {
    position: relative;
    min-height: 20px;
    label {
        padding-left: 30px;
    }
    input[type="checkbox"] {
        position: absolute;
        width: 30px;
        margin: 4px 0 0 -30px;
    }
}
<commit_msg>added input error styles as well<commit_after>label,
input,
.input {
    display: block;
}

input,
textarea,
.input {
    display: block;
    width: 100%;
    padding: 8px 10px;
    box-shadow: none;

    font-size: inherit;
    font-weight: 400;

    background: @white;
    border: 1px solid @lightGrey;
    border-radius: 0px;

    // for links
    color: inherit;
    text-decoration: none;

    // Errors
    &.error {
        border-color: lighten(@red, 20%);
    }
}

input,
textarea,
.input,
.checkbox label,
.form-error {
    +.form-error {
        background: @red;
        color: white;
        position: relative;
        top: -1px;
        padding: 8px;
        font-size: 13px;
        line-height: 1.2;
        // triangle
        &:before {
            content: '';
            display: block;
            position: absolute;
            bottom: 100%;
            left: 20px;
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid @red;
        }
    }
}

.form-error + .form-error {
    background: darken(@red, 5%);
    &:before {
        content: none;
        display: none;
    }
}

textarea {
    min-height: 78px; // ~3 lines
    &.textarea-large {
        min-height: 130px;
    }
}

.input-swatch {
    float: left;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 1px solid @lightGrey;
}

label {
    padding: 0 10px;
    font-size: 14px;
    color: @darkGrey;
    margin-bottom: 5px;
}

.form-group,
.checkbox {
    padding: @body-padding;
    margin: 0;
    p {
        &:first-child {
            margin-top: 0;
        }
        margin-bottom: 0;
    }
}

/*********************************************************
* Input groups
*/

.input-group {
    display: flex;
    input {
        width: auto;
        flex-grow: 1;
    }
    .input-group-addon {
        padding: 8px 10px;
        background: @lightGrey;
        border: 1px solid darken(@lightGrey, 5%);
        &:last-child {
            border-left: 0;
        }
        &:first-child {
            border-right: 0;
        }
    }
}

/*********************************************************
* Checkbox
*/
input[type="checkbox"] {
    width: auto;
}

.checkbox {
    position: relative;
    min-height: 20px;
    label {
        padding-left: 30px;
    }
    input[type="checkbox"] {
        position: absolute;
        width: 30px;
        margin: 4px 0 0 -30px;
    }
}
{'fraction_non_alphanumeric': 0.17865707434052758, 'fraction_numerical': 0.029016786570743407, 'mean_word_length': 1.7918340026773762, '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': '7215403', 'n_tokens_mistral': 1518, 'n_tokens_neox': 1373, 'n_words': 322}