<commit_before>/*-------------------------------------------------------*\
* PX to EM
* Converts px units to em based on the browser context size
* $font-base-size can be found in src/core/variables
* Useage:
* font-size: em(16px)
* font-size: rem(16px)
\*-------------------------------------------------------*/

@function em($pixels, $context: $font-base-size) {
  @if (unitless($pixels)) {
    $pixels: $pixels * 1px;
  }

  @if (unitless($context)) {
    $context: $context * 1px;
  }

  @return $pixels / $context * 1em;
}

@function rem($pixels, $context: $font-base-size) {
  @if (unitless($pixels)) {
    $pixels: $pixels * 1px;
  }

  @if (unitless($context)) {
    $context: $context * 1px;
  }

  @return $pixels / $context * 1em;
}<commit_msg>Bugfix: Return rem instead of em in rem function<commit_after>/*-------------------------------------------------------*\
* PX to EM
* Converts px units to em based on the browser context size
* $font-base-size can be found in src/core/variables
* Useage:
* font-size: em(16px)
* font-size: rem(16px)
\*-------------------------------------------------------*/

@function em($pixels, $context: $font-base-size) {
  @if (unitless($pixels)) {
    $pixels: $pixels * 1px;
  }

  @if (unitless($context)) {
    $context: $context * 1px;
  }

  @return $pixels / $context * 1em;
}

@function rem($pixels, $context: $font-base-size) {
  @if (unitless($pixels)) {
    $pixels: $pixels * 1px;
  }

  @if (unitless($context)) {
    $context: $context * 1px;
  }

  @return $pixels / $context * 1rem;
}
{'fraction_non_alphanumeric': 0.29651162790697677, 'fraction_numerical': 0.012919896640826873, 'mean_word_length': 1.9731285988483684, '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': '6861897', 'n_tokens_mistral': 550, 'n_tokens_neox': 525, 'n_words': 132}