<commit_before>//------------------------------------------------------------------------------
// Breakpoints and columns gutter will always be ordered based
// on $query-direction variable
//------------------------------------------------------------------------------

@if ($query-direction == (min-width, max-width)) {
  $breakpoints: map-sort-by-value($breakpoints);
  @if type-of($column-gutter) == 'map' {
    $column-gutter: map-sort-by-value($column-gutter);
  }
}
@if ($query-direction == (max-width, min-width)) {
  $breakpoints: map-sort-by-value($breakpoints, false);
  @if type-of($column-gutter) == 'map' {
    $column-gutter: map-sort-by-value($column-gutter, false);
  }
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
@if not variable-exists(min-unit) {
  $unit: unit(nth(map-values($breakpoints), 1));

  $min-unit: em-calc(1, $rem-base) !global;

  @if $unit == "rem" {
    $min-unit: rem-calc(1) !global;
  }

  @if $unit == "px" {
    $min-unit: 1px !global;
  }

  @if $unit == "" {
    @each $breakpoint, $value in $breakpoints {
      $breakpoints: map-merge($breakpoints , ($breakpoint: em-calc($value)));
    }
  }
}

// Global
$inmedia: false !default;
$query-start: nth($query-direction, 1);
$query-end: nth($query-direction, 2);

// - Generate Media Query
@mixin media-query($query, $until: false, $eq-grid: $eq-grid) {

  @if not map-has-key($breakpoints, $query) {
    @error 'Breakpoint "#{$query}" is not present in $breakpoints variable';
  };

  // Local var declaration<commit_msg>adds warning if all the breakpoints don`t have the same unit<commit_after>//------------------------------------------------------------------------------
// Breakpoints and columns gutter will always be ordered based
// on $query-direction variable
//------------------------------------------------------------------------------

@if ($query-direction == (min-width, max-width)) {
  $breakpoints: map-sort-by-value($breakpoints);
  @if type-of($column-gutter) == 'map' {
    $column-gutter: map-sort-by-value($column-gutter);
  }
}
@if ($query-direction == (max-width, min-width)) {
  $breakpoints: map-sort-by-value($breakpoints, false);
  @if type-of($column-gutter) == 'map' {
    $column-gutter: map-sort-by-value($column-gutter, false);
  }
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
@if not variable-exists(min-unit) {
  $unit: unit(nth(map-values($breakpoints), 1));

  @each $breakpoint in map-values($breakpoints) {
    @if $unit != unit($breakpoint) {
      @warn 'All breakpoints must have the same unit!';
      $unit: unit($breakpoint);
    }
  }

  $min-unit: em-calc(1, $rem-base) !global;

  @if $unit == "rem" {
    $min-unit: rem-calc(1) !global;
  }

  @if $unit == "px" {
    $min-unit: 1px !global;
  }

  @if $unit == "" {
    @each $breakpoint, $value in $breakpoints {
      $breakpoints: map-merge($breakpoints , ($breakpoint: em-calc($value)));
    }
  }
}

// Global
$inmedia: false !default;
$query-start: nth($query-direction, 1);
$query-end: nth($query-direction, 2);

// - Generate Media Query
@mixin media-query($query, $until: false, $eq-grid: $eq-grid) {

  @if not map-has-key($breakpoints, $query) {
    @error 'Breakpoint "#{$query}" is not present in $breakpoints variable';
  };

  // Local var declaration
{'fraction_non_alphanumeric': 0.3392195955568214, 'fraction_numerical': 0.003417829678154372, 'mean_word_length': 1.7806809184481394, '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': '3006018', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1060, 'n_words': 236}