<commit_before>//
// EM
// ===
//


// Default Variables
$base--font-size ?= 16px

_convert-to-em($px)
if (typeof($px) == 'unit')
  if (unit($px) == '' && ($px != 0))
    ($px / $base) em
  else
    return 0

rem($value)
  $max = length($value)

  $emValues = ()
  for $i in (0...$max)
    push($emValues, _convert-to-em( $value[$i] ))

  return $emValues<commit_msg>Improves em mixin to accept multiple values.<commit_after>//
// EM
// ==
//


// Default Variables
$base--font-size ?= 16px

em($px, $base = $base--font-size)
  ($px / $base) em

//
// EM
// ===
//


// Default Variables
$base--font-size ?= 16px

_convert-to-em($px, $base)
if (typeof($px) == 'unit')
  if (unit($px) == '' && ($px != 0))
    ($px / $base) em
  else
    return 0

rem($value, $base = $base--font-size)
  $max = length($value)

  $emValues = ()
  for $i in (0...$max)
    push($emValues, _convert-to-em( $value[$i], $base ))

  return $emValues
{'fraction_non_alphanumeric': 0.2408207343412527, 'fraction_numerical': 0.012958963282937365, 'mean_word_length': 2.6070038910505837, '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': '2207240', 'n_tokens_mistral': 391, 'n_tokens_neox': 370, 'n_words': 86}