<commit_before>// Font Family
// -----------------------------------------------------------------------------
.font-family(@font-family) {
    & when not (@font-family = false) {
        font-family: @font-family;
    }
}


// Font Face
// -----------------------------------------------------------------------------
.font-face(@name; @path) {
    @font-face {
        font-family: '@{name}';
        src: url('@{path}@{name}.eot');
        src: url('@{path}@{name}.eot?#iefix') format('embedded-opentype'),
        url('@{path}@{name}.woff2') format('woff2'),
        url('@{path}@{name}.woff') format('woff'),
        url('@{path}@{name}.ttf')  format('truetype'),
        url('@{path}@{name}.svg#@{name}') format('svg');
    }
}


// Font Size
// -----------------------------------------------------------------------------
.font-size(@size: @base-font-size; @base: @base-font-size; @unit: rem) {

    & when not (@size = false) {

        & when (@unit = %) {
            @a: percentage(@size / @base);
            font-size: @a;
        }

        & when (@unit = vw), (@unit = vh) {
            @a: unit(((@size / @base) * 100), @unit);
            font-size: @a;
        }

        & when (@unit = em), (@unit = rem) {
            @a: unit((@size / @base), @unit);
            font-size: @a;
        }

        & when (@unit = none) {
            @a: unit((@size / @base));
            font-size: @a;
        }

    }

}


// Line Height
// -----------------------------------------------------------------------------
.line-height(@height: @base-line-height; @base: @base-font-size; @unit: none) {

    & when not (@height = false) {

        & when (@unit = em), (@unit = rem) {
            @a: unit((@height / @base), @unit);
            line-height: @a;
        }

        & when (@unit = %) {
            @a: percentage(@height / @base);
            line-height: @a;
        }

        & when (@unit = none) {
            @a: unit((@height / @base));
            line-height: @a;
        }

    }

}


// Text Indent
// -----------------------------------------------------------------------------
.text-indent (@text-indent: @indent; @base: @base-font-size; @unit: rem) {

    & when (@unit = em), (@unit = rem) {
        @a: unit((@text-indent / @base), @unit);
        text-indent: @a;
    }

}
<commit_msg>Added color mixin to font.less<commit_after>// Font Family
// -----------------------------------------------------------------------------
.font-family(@font-family) {
    & when not (@font-family = false) {
        font-family: @font-family;
    }
}


// Font Face
// -----------------------------------------------------------------------------
.font-face(@name; @path) {
    @font-face {
        font-family: '@{name}';
        src: url('@{path}@{name}.eot');
        src: url('@{path}@{name}.eot?#iefix') format('embedded-opentype'),
        url('@{path}@{name}.woff2') format('woff2'),
        url('@{path}@{name}.woff') format('woff'),
        url('@{path}@{name}.ttf')  format('truetype'),
        url('@{path}@{name}.svg#@{name}') format('svg');
    }
}


// Font Size
// -----------------------------------------------------------------------------
.font-size(@size: @base-font-size; @base: @base-font-size; @unit: rem) {

    & when not (@size = false) {

        & when (@unit = %) {
            @a: percentage(@size / @base);
            font-size: @a;
        }

        & when (@unit = vw), (@unit = vh) {
            @a: unit(((@size / @base) * 100), @unit);
            font-size: @a;
        }

        & when (@unit = em), (@unit = rem) {
            @a: unit((@size / @base), @unit);
            font-size: @a;
        }

        & when (@unit = none) {
            @a: unit((@size / @base));
            font-size: @a;
        }

    }

}


// Line Height
// -----------------------------------------------------------------------------
.line-height(@height: @base-line-height; @base: @base-font-size; @unit: none) {

    & when not (@height = false) {

        & when (@unit = em), (@unit = rem) {
            @a: unit((@height / @base), @unit);
            line-height: @a;
        }

        & when (@unit = %) {
            @a: percentage(@height / @base);
            line-height: @a;
        }

        & when (@unit = none) {
            @a: unit((@height / @base));
            line-height: @a;
        }

    }

}


// Text Indent
// -----------------------------------------------------------------------------
.text-indent (@text-indent: @indent; @base: @base-font-size; @unit: rem) {

    & when (@unit = em), (@unit = rem) {
        @a: unit((@text-indent / @base), @unit);
        text-indent: @a;
    }

}


// Font Color
// -----------------------------------------------------------------------------
.color (@color: @font-color; @amount: 6.5%; @switch: none) {

    & when (@switch = none) {
        color: @color;
    }

    & when (@switch = light) {
        color: lighten(@color, @amount);
    }

    & when (@switch = dark) {
        color: darken(@color, @amount);
    }

    & when (@switch = saturate) {
        color: saturate(@color, @amount);
    }

    & when (@switch = desaturate) {
        color: desaturate(@color, @amount);
    }

}

{'fraction_non_alphanumeric': 0.3469505178365938, 'fraction_numerical': 0.0023014959723820483, 'mean_word_length': 1.1311810380057212, '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': '6803135', 'n_tokens_mistral': 1596, 'n_tokens_neox': 1538, 'n_words': 318}