<commit_before>/* ======================================================================================
   @CORE -> MIXINS -> CONVERT PX TO EM/REM
   ====================================================================================== */


/**
 * Convert `px` to `em`'s or `rem`'s for multiple properties or values or both. Accepts a list of
 * lists (instead a list of values) for properties that accept multiple lists of values. Only
 * numbers are converted; everything else is passed through. For the `to-em` `@mixin` `$context` is
 * an optional argument that allows making measurements relative to the parent font size rather than
 * the current.
 *
 * @example
   @include to-em(line-height, 30)
   @include to-rem(line-height, 30)
   @include to-em(width height, 125);
   @include to-rem(padding, 0 25);
   @include to-em(text-shadow, (#0d6e28 1 1) (#777 0 0 2), 16);
   @include to-rem(box-shadow, (inset 0 0 0 1 #2a9022) (inset 0 0 3 #459966));
   @include to-em(padding margin, $spacing-base, $sledgehammer: !important);
   @include to-rem(margin, $spacing-base, !important);
 *
 * @demo
 * http://codepen.io/team/westfieldlabs/full/Bcfyz
 *
 * @credit
 * https://gist.github.com/2237465
 */


/**
 * `em`.
 */

@mixin to-em($properties, $sizes, $context: $font-size, $sledgehammer: false) {

	$values: ();
  $sublists: false;
	$important: if($sledgehammer, "!important", "");

  @each $s in $sizes {

    @if type-of($s) == list {
      $sublists: true;
      $vv: ();

      @each $ss in $s {
        $vv: append($vv, if(type-of($ss) == number, #{$ss / $context}em, $ss));
      }

      $values: append($values, join((), $vv));
    }

    @else {
      $values: append($values, if(type-of($s) == number, #{$s / $context}em, $s));
    }

  }

  $value: join((), $values, if($sublists, comma, space));

  @each $prop in $properties {
    #{$prop}: $value #{$important}
  }

}


/**
 * `rem`.
 */

@mixin to-rem($properties, $sizes, $sledgehammer: "") {

	$values: ();
  $sublists: false;

  @each $s in $sizes {

    @if type-of($s) == list {
    	$sublists: true;
      $vv: ();

      @each $ss in $s {
				$vv: append($vv, if(type-of($ss) == number, #{$ss / $font-size}rem, $ss));
      }

      $values: append($values, join((), $vv));
    }

    @else {
		  $values: append($values, if(type-of($s) == number, #{$s / $font-size}rem, $s));
    }

  }

  $value: join((), $values, if($sublists, comma, space));

  @each $prop in $properties {
    #{$prop}: $value #{$sledgehammer};
	}

}<commit_msg>Removing space in to-rem/em mixins<commit_after>/* ======================================================================================
   @CORE -> MIXINS -> CONVERT PX TO EM/REM
   ====================================================================================== */


/**
 * Convert `px` to `em`'s or `rem`'s for multiple properties or values or both. Accepts a list of
 * lists (instead a list of values) for properties that accept multiple lists of values. Only
 * numbers are converted; everything else is passed through. For the `to-em` `@mixin` `$context` is
 * an optional argument that allows making measurements relative to the parent font size rather than
 * the current.
 *
 * @example
   @include to-em(line-height, 30)
   @include to-rem(line-height, 30)
   @include to-em(width height, 125);
   @include to-rem(padding, 0 25);
   @include to-em(text-shadow, (#0d6e28 1 1) (#777 0 0 2), 16);
   @include to-rem(box-shadow, (inset 0 0 0 1 #2a9022) (inset 0 0 3 #459966));
   @include to-em(padding margin, $spacing-base, $sledgehammer: !important);
   @include to-rem(margin, $spacing-base, !important);
 *
 * @demo
 * http://codepen.io/team/westfieldlabs/full/Bcfyz
 *
 * @credit
 * https://gist.github.com/2237465
 */


/**
 * `em`.
 */

@mixin to-em($properties, $sizes, $context: $font-size, $sledgehammer: false) {

	$values: ();
  $sublists: false;
	$important: if($sledgehammer, "!important", "");

  @each $s in $sizes {

    @if type-of($s) == list {
      $sublists: true;
      $vv: ();

      @each $ss in $s {
        $vv: append($vv, if(type-of($ss) == number, #{$ss / $context}em, $ss));
      }

      $values: append($values, join((), $vv));
    }

    @else {
      $values: append($values, if(type-of($s) == number, #{$s / $context}em, $s));
    }

  }

  $value: join((), $values, if($sublists, comma, space));

  @each $prop in $properties {
    #{$prop}: $value#{$important};
  }

}


/**
 * `rem`.
 */

@mixin to-rem($properties, $sizes, $sledgehammer: "") {

	$values: ();
  $sublists: false;

  @each $s in $sizes {

    @if type-of($s) == list {
    	$sublists: true;
      $vv: ();

      @each $ss in $s {
				$vv: append($vv, if(type-of($ss) == number, #{$ss / $font-size}rem, $ss));
      }

      $values: append($values, join((), $vv));
    }

    @else {
		  $values: append($values, if(type-of($s) == number, #{$s / $font-size}rem, $s));
    }

  }

  $value: join((), $values, if($sublists, comma, space));

  @each $prop in $properties {
    #{$prop}: $value#{$sledgehammer};
	}

}
{'fraction_non_alphanumeric': 0.25395882818685667, 'fraction_numerical': 0.019398258115597783, 'mean_word_length': 3.3151152860802733, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '7542727', 'n_tokens_mistral': 1913, 'n_tokens_neox': 1739, 'n_words': 474}