<commit_before>/* ============================================================================
   @CORE -> MIXINS -> PERCENTAGE CLASSES
   ========================================================================= */


/**
 * Settings.
 */

// The denominators to be used for the classes
$percentage-divisions: (1 2 3 4 5 6 8 10 12) !default;

@mixin generate-percentage-classes-at-breakpoints($breakpoints, $type: "u", $name: null, $property: "width" ) {
  @if $name {
    $name: "#{$name}-"
  }

  @each $denominator in $percentage-divisions {
    @for $numerator from 1 through max($denominator - 1, 1) {
      .#{$type}-#{$name}#{$numerator}-#{$denominator} {#{$property}: percentage($numerator/$denominator);}
    }
  }

  @each $breakpoint in $breakpoints {

    @include respond-to($breakpoint) {
      @if $breakpoint {
        $breakpoint: "#{$breakpoint}-"
      }

      @each $denominator in $percentage-divisions {
        @for $numerator from 1 through max($denominator - 1, 1) {
          .#{$type}-#{$breakpoint}#{$name}#{$numerator}-#{$denominator} {#{$property}: percentage($numerator/$denominator);}
        }
      }
    }
  }
}<commit_msg>make it more DRY<commit_after>/* ============================================================================
   @CORE -> MIXINS -> PERCENTAGE CLASSES
   ========================================================================= */


/**
 * Settings.
 */

// The denominators to be used for the classes
$percentage-divisions: (1 2 3 4 5 6 8 10 12) !default;

$numerators: (one two three four five six seven eight nine ten eleven twelve);

$denominators: (whole half third quarter fifth sixth seventh eighth nineth tenth eleventh twelfth);

@mixin generate-percentage-classes-at-breakpoints($breakpoints, $type: "u", $name: null, $property: "width") {
  @if $name {
    $name: "#{$name}-"
  }

  @include generate-percentage-classes("", $type, $name, $property);

  @each $breakpoint in $breakpoints {

    @include respond-to($breakpoint) {
      @if $breakpoint {
        $breakpoint: "#{$breakpoint}-"
      }

      @include generate-percentage-classes($breakpoint, $type, $name, $property);
    }
  }
}

@mixin generate-percentage-classes($breakpoint: "", $type: "u", $name: null, $property: "width") {
  @each $denominator in $percentage-divisions {
    @for $numerator from 1 through max($denominator - 1, 1) {
      $denominator-suffix: if($numerator == 1, "", "s");
      .#{$type}-#{$breakpoint}#{$name}#{nth($numerators, $numerator)}-#{nth($denominators, $denominator)#{$denominator-suffix}} {#{$property}: percentage($numerator/$denominator);}
    }
  }
}
{'fraction_non_alphanumeric': 0.27210365853658536, 'fraction_numerical': 0.012195121951219513, 'mean_word_length': 4.116959064327485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3400506', 'n_tokens_mistral': 865, 'n_tokens_neox': 781, 'n_words': 192}