<commit_before>/// Calculate px value into rem value
/// @author <NAME>
/// @access private
/// @param {number} $px - px value to convert
/// @param {number} $base [get($bytes, 'font-size')] - rem context
/// @require {function} get - Return key value from a map
/// @require {function} _b-strip-unit - Strip unit from number
/// @return {number} Converted rem value
@function _b-convert-to-rem($px, $base: get($bytes, 'font-size')) {
  @if type-of($px) != number {
    @return $px;
  } @else {
    $px: _b-strip-unit($px);
    $base: _b-strip-unit($base);
    @if $px == 0 {
      @return 0;
    } @else if $px == 1 or $px == -1 {
      @return #{$px}px;
    }
  }
  @return ($px / $base) * 1rem;
}

/// Iterate values and convert to rem
/// @author <NAME>
/// @access public
/// @param {number | list} $values - px value(s) to convert<commit_msg>removed hard coded value for variable, updated comments for private function<commit_after>/// Calculate px value to rem value
/// @author <NAME>
/// @access private
/// @param {number} $px - px value to convert
/// @param {number} $base [get($bytes, 'font-size')] - rem context
/// @require {function} get - Return key value from a map
/// @require {function} _b-strip-unit - Strip unit from number
/// @return {number} Converted rem value
@function _b-convert-to-rem($px, $base: get($bytes, 'font-size')) {
  @if type-of($px) != number {
    @return $px;
  } @else {
    $px: _b-strip-unit($px);
    $base: _b-strip-unit($base);
    @if $px == 0 {
      @return $px;
    } @else if $px == 1 or $px == -1 {
      @return #{$px}px;
    }
  }
  @return ($px / $base) * 1rem;
}

/// Iterate values and convert to rem
/// @author <NAME>
/// @access public
/// @param {number | list} $values - px value(s) to convert
{'fraction_non_alphanumeric': 0.1932916429789653, 'fraction_numerical': 0.00511654349061967, 'mean_word_length': 2.7526652452025586, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3721712', 'n_tokens_mistral': 613, 'n_tokens_neox': 607, 'n_words': 203}