<commit_before>// @author: laoono
// @date: 2016-05-18
// @time: 13:48
// @contact: <EMAIL>
// @description:

@import "var";

@mixin fz($values) {
    font-size: $values * $base-fonts-2-rem / $base-viewport-width;
}

@mixin mediaQuery($res) {
    @media screen and (max-width: $res){
        @content;
    }
}

@mixin px2rem($name, $px) {
    #{$name}: $px / round($base-viewport-width / 10) * 1rem;
}

@mixin px2px($name, $px) {
    #{$name}: round($px / 2) * 1px;

    [data-dpr="2"] & {
        #{$name}: $px * 1px;
    }

    [data-dpr="2.5"] & {
        #{$name}: round($px * 2.5 / 2) * 1px;
    }

    [data-dpr="2.75"] & {
        #{$name}: round($px * 2.75 / 2) * 1px;
    }

    [data-dpr="3"] & {
        #{$name}: round($px / 2 * 3) * 1px;
    }

    [data-dpr="4"] & {
        #{$name}: $px * 2px;
    }
}

@mixin angleBracket($direction: right, $size: 8px, $color: #c7c7c7, $zoom: 1) {
    display: inline-block;
    border-width: 0 0 2px 2px;
    width: $size;
    height: $size;
    border-style: solid;
    border-color: transparent transparent $color $color;
    @if $direction == top {
        color: #000;
    } @else if $direction == bottom {
        @include prefixer(transform, rotate(-45deg));
        margin-top: -6px;
    } @else if $direction == left {
        color: #000;
    } @else {
        @include prefixer(transform, rotate(225deg));
        margin-right: 2px;
    }
}

//std 标准 standard
$prefix-cfg: (webkit: true, moz: true, ms: true, o: true, std: true);

@mixin prefixer($property, $value, $prefixes: webkit moz ms o std) {
    @each $prefix in $prefixes {
        @if $prefix == webkit and map-get($prefix-cfg, webkit) == true {
            -#{$prefix}-#{$property}: $value;
        }
        @else if $prefix == moz and map-get($prefix-cfg, moz) == true {
            -#{$prefix}-#{$property}: $value;
        }
        @else if $prefix == ms and map-get($prefix-cfg, ms) == true {
            -#{$prefix}-#{$property}: $value;
        }
        @else if $prefix == o and map-get($prefix-cfg, o) == true {
            -#{$prefix}-#{$property}: $value;
        }
        @else if $prefix == std and map-get($prefix-cfg, std) == true {
            #{$property}: $value;
        }
        @else {
            @warn "Unrecognized prefix: #{$prefix}";
        }
    }
}

@mixin lineClamp($row: 1) {
    display: -webkit-box;
    -webkit-line-clamp: $row;
    line-clamp: $row;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@mixin flexbox() {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

@mixin flex($values: 1) {
    -webkit-box-flex: $values;
    -moz-box-flex:  $values;
    -webkit-flex:  $values;
    -ms-flex:  $values;
    flex:  $values;
}

@mixin order($val) {
    -webkit-box-ordinal-group: $val;
    -moz-box-ordinal-group: $val;
    -ms-flex-order: $val;
    -webkit-order: $val;
    order: $val;
}

@mixin sprite($url: about, $size: 100%) {
    background-image: url($url);
    background-repeat: no-repeat;
    -webkit-background-size: $size;
    background-size: $size;
}

@mixin borderRetina($bcolor: #eee, $direction: bottom, $borderType: solid, $width: 1px) {
    content: '';
    position: absolute;
    @if $direction == "top" {
        top: 0;
        left: 0;
        height: 0;
        width: 100%;
        transform: scale(1, .5);
    } @else if $direction == "right" {
        right: 0;
        top: 0;
        height: 100%;
        width: 0;
        transform: scale(.5, 1);
    } @else if $direction == "bottom" {
        left: 0;
        bottom: 0;
        width: 100%;
        height: 0;
        transform: scale(1, .5);
    } @else if $direction == "left" {
        left: 0;
        top: 0;
        height: 100%;
        width: 0;
        transform: scale(.5, 1);
    } @else {

    }
    border-#{$direction}: $width $borderType $bcolor;
}


@mixin textOverflow(){
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}<commit_msg>fixed<commit_after>// @author: laoono
// @date: 2016-05-18
// @time: 13:48
// @contact: <EMAIL>
// @description:

@import "var";

@mixin fz($values) {
    font-size: $values * $base-fonts-2-rem / $base-viewport-width;
}

@mixin mediaQuery($res) {
    @media screen and (max-width: $res){
        @content;
    }
}

@mixin px2rem($name, $px) {
    #{$name}: $px / round($base-viewport-width / 10) * 1rem;
}

@mixin px2px($name, $px) {
    #{$name}: round($px / 2) * 1px;

    [data-dpr="2"] & {
        #{$name}: $px * 1px;
    }

    [data-dpr="2.5"] & {
        #{$name}: round($px * 2.5 / 2) * 1px;
    }

    [data-dpr="2.75"] & {
        #{$name}: round($px * 2.75 / 2) * 1px;
    }

    [data-dpr="3"] & {
        #{$name}: round($px / 2 * 3) * 1px;
    }

    [data-dpr="4"] & {
        #{$name}: $px * 2px;
    }
}

@mixin angleBracket($direction: right, $size: 8px, $color: #c7c7c7, $zoom: 1) {
    display: inline-block;
    border-width: 0 0 2px 2px;
    width: $size;
    height: $size;
    border-style: solid;
    border-color: transparent transparent $color $color;
    @if $direction == top {
        transform: rotate(135deg);
        margin-top: 0;
    } @else if $direction == bottom {
        transform: rotate(-45deg);
        margin-top: -6px;
    } @else if $direction == left {
    } @else {
        transform: rotate(225deg);
        margin-right: 2px;
    }
}

//std 标准 standard
$prefix-cfg: (webkit: true, moz: true, ms: true, o: true, std: true);

@mixin prefixer($property, $value, $prefixes: webkit moz ms o std) {
    @each $prefix in $prefixes {
        @if $prefix == webkit and map-get($prefix-cfg, webkit) == true {
            -#{$prefix}-#{$property}: $value;
        }
        @else if $prefix == moz and map-get($prefix-cfg, moz) == true {
            -#{$prefix}-#{$property}: $value;
        }
        @else if $prefix == ms and map-get($prefix-cfg, ms) == true {
            -#{$prefix}-#{$property}: $value;
        }
        @else if $prefix == o and map-get($prefix-cfg, o) == true {
            -#{$prefix}-#{$property}: $value;
        }
        @else if $prefix == std and map-get($prefix-cfg, std) == true {
            #{$property}: $value;
        }
        @else {
            @warn "Unrecognized prefix: #{$prefix}";
        }
    }
}

@mixin lineClamp($row: 1) {
    display: -webkit-box;
    -webkit-line-clamp: $row;
    line-clamp: $row;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@mixin flexbox() {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

@mixin flex($values: 1) {
    -webkit-box-flex: $values;
    -moz-box-flex:  $values;
    -webkit-flex:  $values;
    -ms-flex:  $values;
    flex:  $values;
}

@mixin order($val) {
    -webkit-box-ordinal-group: $val;
    -moz-box-ordinal-group: $val;
    -ms-flex-order: $val;
    -webkit-order: $val;
    order: $val;
}

@mixin sprite($url: about, $size: 100%) {
    background-image: url($url);
    background-repeat: no-repeat;
    -webkit-background-size: $size;
    background-size: $size;
}
{'fraction_non_alphanumeric': 0.19310344827586207, 'fraction_numerical': 0.02378606615059817, 'mean_word_length': 2.1568191914704578, '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': '1333948', 'n_tokens_mistral': 2805, 'n_tokens_neox': 2611, 'n_words': 610}