<commit_before>// Baseline, measured in pixels
// The value should be the same as the font-size value for the html element
// If the html element's font-size is set to 62.5% (of the browser's default font-size of 16px),
// then the variable below would be 10px.
// original https://github.com/bitmanic/rem
// customize by machida

$baseline-px: 10px

=base-font-size
  font-size: $baseline-px
  font-size: strip_unit($baseline-px / 10) * 1rem

=rem($property, $px-values, $important: null)
  // 9px以下のfont-sizeを使う設定（IE8不可）
  @if px($px-values) or list($px-values)
    @if $property == "font-size" and $px-values < 10px
      +base-font-size
      +scale3d(strip_unit($px-values / strip_unit($baseline-px)), strip_unit($px-values/ strip_unit($baseline-px)), 1)
      +transform-origin(0, 0)
    @else
      // Convert the baseline into rems
      $baseline-rem: $baseline-px / 1rem
      // remが使えないブラウザ用にpx版を出力
      @if $important
        #{$property}: $px-values !important
      @else
        #{$property}: $px-values
      // remで出力
      @if px($px-values) and $px-values >= 1
        @if $important
          #{$property}: $px-values / $baseline-rem !important
        @else
          #{$property}: $px-values / $baseline-rem
      @else
        // Create an empty list that we can dump values into
        $rem-values: ()
        @each $value in $px-values
          // If the value is zero or not a number, return it
          @if strip_unit($value) == 0 or type-of( $value ) != "number"
            $rem-values: append($rem-values, $value)
          @else
            $rem-values: append($rem-values, $value / $baseline-rem)
        // Return the property and its list of converted values
        @if $important
          #{$property}: $rem-values !important
        @else
          #{$property}: $rem-values
  @else
    @if $important
      #{$property}: $px-values !important
    @else
      #{$property}: $px-values<commit_msg>Fix rem for list values<commit_after>// Baseline, measured in pixels
// The value should be the same as the font-size value for the html element
// If the html element's font-size is set to 62.5% (of the browser's default font-size of 16px),
// then the variable below would be 10px.
// original https://github.com/bitmanic/rem
// customize by machida

$baseline-px: 10px

=base-font-size
  font-size: $baseline-px
  font-size: strip_unit($baseline-px / 10) * 1rem

=rem($property, $px-values, $important: null)
  @if px($px-values) or list($px-values)
    @if $property == "font-size" and $px-values < 10px
      // 9px以下のfont-sizeを使う設定（IE8不可）
      +base-font-size
      +scale3d(strip_unit($px-values / strip_unit($baseline-px)), strip_unit($px-values/ strip_unit($baseline-px)), 1)
      +transform-origin(0, 0)
    @else
      // Convert the baseline into rems
      $baseline-rem: $baseline-px / 1rem
      // remが使えないブラウザ用にpx版を出力
      @if $important
        #{$property}: $px-values !important
      @else
        #{$property}: $px-values
      // remで出力
      @if px($px-values) and $px-values >= 1
        @if $important
          #{$property}: $px-values / $baseline-rem !important
        @else
          #{$property}: $px-values / $baseline-rem
      @else
        // Create an empty list that we can dump values into
        $rem-values: ()
        @each $value in $px-values
          @if px($value)
            // If the value is zero or not a number, return it
            @if strip_unit($value) == 0 or type-of( $value ) != "number"
              $rem-values: append($rem-values, $value)
            @else
              $rem-values: append($rem-values, $value / $baseline-rem)
          @else
            $rem-values: append($rem-values, $value)
        // Return the property and its list of converted values
        @if $important
          #{$property}: $rem-values !important
        @else
          #{$property}: $rem-values
  @else
    @if $important
      #{$property}: $px-values !important
    @else
      #{$property}: $px-values
{'fraction_non_alphanumeric': 0.13863863863863865, 'fraction_numerical': 0.011511511511511512, 'mean_word_length': 2.322527015793849, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2271972', 'n_tokens_mistral': 1331, 'n_tokens_neox': 1257, 'n_words': 371}