<commit_before>
//
// Cassetto leading.
//

$fontsize-base: 10 !default;

@mixin leading( $font-size, $line-height ) {
  //
  // Helper mixin to print computed leading values.
  //
  $computed-font-size: $font-size * $fontsize_base;
  $computed-line-height: $computed-font-size * $line-height;
  $leading: $computed-line-height - $computed-font-size;
  $half-leading: $leading / 2;
  /*
    $computed-font-size: #{$computed-font-size}px
    computed-line-height: #{$computed-line-height}px
    leading: #{$leading}px
    half-leading: #{$half-leading}px
  */
  @debug "half-leading: #{$half-leading}px";
}


@function set-margin( $font-size, $line-height, $margin ) {
  //
  // Helper mixin set maring around text blocks.
  //
  $computed-font-size: $font-size * $fontsize_base;
  $computed-line-height: $computed-font-size * $line-height;
  $leading: $computed-line-height - $computed-font-size;
  $half-leading: $leading / 2;

  @return round($margin - $half-leading);
}


<commit_msg>Fixed typo in var name<commit_after>
//
// Cassetto leading.
//

$fontsize-base: 10 !default;

@mixin leading( $font-size, $line-height ) {
  //
  // Helper mixin to print computed leading values.
  //
  $computed-font-size: $font-size * $fontsize-base;
  $computed-line-height: $computed-font-size * $line-height;
  $leading: $computed-line-height - $computed-font-size;
  $half-leading: $leading / 2;
  /*
    $computed-font-size: #{$computed-font-size}px
    computed-line-height: #{$computed-line-height}px
    leading: #{$leading}px
    half-leading: #{$half-leading}px
  */
  @debug "half-leading: #{$half-leading}px";
}


@function set-margin( $font-size, $line-height, $margin ) {
  //
  // Helper mixin set maring around text blocks.
  //
  $computed-font-size: $font-size * $fontsize-base;
  $computed-line-height: $computed-font-size * $line-height;
  $leading: $computed-line-height - $computed-font-size;
  $half-leading: $leading / 2;

  @return round($margin - $half-leading);
}



{'fraction_non_alphanumeric': 0.1805345436207766, 'fraction_numerical': 0.004034291477559254, 'mean_word_length': 3.341356673960613, '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': '574968', 'n_tokens_mistral': 750, 'n_tokens_neox': 736, 'n_words': 138}