<commit_before>$omg-direction-markup : false !default;
$omg-angle: 0 !default;

$omg-default-angle: 0 !default;
$omg-default-levels: 15 !default;
$omg-default-style: "flat" !default;


@mixin omg-box($color, $angle: $omg-default-angle, $levels: $omg-default-levels, $style: $omg-default-style, $darken-amount: 0) {
    $shadow-markup: omg-shadow-builder($color, $angle, $levels, $style, $darken-amount);
    box-shadow: $shadow-markup;
}


@mixin omg-text($color, $angle: $omg-default-angle, $levels: $omg-default-levels, $style: $omg-default-style, $darken-amount: 0) {
    $shadow-markup: omg-shadow-builder($color, $angle, $levels, $style, $darken-amount);
    text-shadow: $shadow-markup;
}

@mixin omg-offset($angle, $color1, $levels1, $color2, $levels2) {
    $offset-1: omg-shadow-builder($color1, $angle, $levels1, "flat", 0);
    $offset-2: omg-shadow-builder($color2, $angle, $levels2, "flat", 0);

    text-shadow:  append($offset-1, $offset-2);
}


@function omg-shadow-builder($color, $direction, $levels, $style, $darken-amount) {
    $shadowColor : $color;
    $shadow-markup : ();

    // handle angle key names
    @if      $direction == "top"            { $direction: 0; }
    @else if $direction == "top-right"      { $direction: 45; }
    @else if $direction == "right"          { $direction: 90; }
    @else if $direction == "bottom-right"   { $direction: 135; }
    @else if $direction == "bottom"         { $direction: 180; }
    @else if $direction == "bottom-left"    { $direction: 225; }
    @else if $direction == "left"           { $direction: 270; }
    @else if $direction == "top-left"       { $direction: 315; }
    @else                                   { $direction: $direction; }

    // Loop through all the levels specified
    @for $i from 0 through $levels {
        $omg-angle: $direction * (pi()/180);

        // Calculate the correct angle
        $omg-direction-markup : ($i) * sin($omg-angle)  + "px " + -($i) * cos($omg-angle) + "px 0 ";

        @if $style == "shaded" {
            // Darken the shadow text color
            $shadowColor : darken($shadowColor, $i * ($darken-amount/100));<commit_msg>remove angle calculation from loop<commit_after>$omg-direction-markup : false !default;
$omg-angle: 0 !default;

$omg-default-angle: 0 !default;
$omg-default-levels: 15 !default;
$omg-default-style: "flat" !default;


@mixin omg-box($color, $angle: $omg-default-angle, $levels: $omg-default-levels, $style: $omg-default-style, $darken-amount: 0) {
    $shadow-markup: omg-shadow-builder($color, $angle, $levels, $style, $darken-amount);
    box-shadow: $shadow-markup;
}


@mixin omg-text($color, $angle: $omg-default-angle, $levels: $omg-default-levels, $style: $omg-default-style, $darken-amount: 0) {
    $shadow-markup: omg-shadow-builder($color, $angle, $levels, $style, $darken-amount);
    text-shadow: $shadow-markup;
}

@mixin omg-offset($angle, $color1, $levels1, $color2, $levels2) {
    $offset-1: omg-shadow-builder($color1, $angle, $levels1, "flat", 0);
    $offset-2: omg-shadow-builder($color2, $angle, $levels2, "flat", 0);

    text-shadow:  append($offset-1, $offset-2);
}


@function omg-shadow-builder($color, $direction, $levels, $style, $darken-amount) {
    $shadowColor : $color;
    $shadow-markup : ();

    // handle angle key names
    @if      $direction == "top"            { $direction: 0; }
    @else if $direction == "top-right"      { $direction: 45; }
    @else if $direction == "right"          { $direction: 90; }
    @else if $direction == "bottom-right"   { $direction: 135; }
    @else if $direction == "bottom"         { $direction: 180; }
    @else if $direction == "bottom-left"    { $direction: 225; }
    @else if $direction == "left"           { $direction: 270; }
    @else if $direction == "top-left"       { $direction: 315; }
    @else                                   { $direction: $direction; }

    $omg-angle: $direction * (pi()/180);

    // Loop through all the levels specified
    @for $i from 0 through $levels {

        // Calculate the correct angle
        $omg-direction-markup : ($i) * sin($omg-angle)  + "px " + -($i) * cos($omg-angle) + "px 0 ";

        @if $style == "shaded" {
            // Darken the shadow text color
            $shadowColor : darken($shadowColor, $i * ($darken-amount/100));
{'fraction_non_alphanumeric': 0.18295507179249654, 'fraction_numerical': 0.0222325150532654, 'mean_word_length': 2.9335154826958107, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4772277', 'n_tokens_mistral': 1608, 'n_tokens_neox': 1488, 'n_words': 351}