<commit_before>// Outputs a list of values instead of a single value
@function ms-list($Start: 0, $End: 0, $Bases: $ms-base, $Ratios: $ms-ratio) {
  
  $Positive-return: ();
  $Negitive-return: ();
  $Return: ();

  @if $End >= 0 {
    // Generate a list of all possible values
    $Positive-return: ms-generate-list($End, $Bases, $Ratios);
    
    // Sort the generated lists
    $Positive-return: ms-sort-list($Positive-return);

    // Trim list
    $Trim-list: ();
    // If the starting value is a positive number
    // trim the positive return from that
    @if $Start >= 0 {
      @for $i from ($Start + 1) through $End + 1 {
        $Trim-list: join($Trim-list, nth($Positive-return, $i));
      }
    }
    // If not, then include everything up to the end.
    @else {
      @for $i from 1 through $End + 1 {
        $Trim-list: join($Trim-list, nth($Positive-return, $i));
      }
    }
    $Positive-return: $Trim-list;
  }
  
  // Generate a negitive list
  @if $Start < 0 {
    // Generate a list of all possible values
    $Negitive-return: ms-generate-list($Start, $Bases, $Ratios);
    
    // Sort the generated lists
    $Negitive-return: ms-sort-list($Negitive-return);

    // Trim list
    $Trim-list: ();
    @if $End < 0 {
      @for $i from abs($End) through abs($Start) {
        $Trim-list: join($Trim-list, nth($Negitive-return, $i));
      }
    }
    @else {
      @for $i from 1 through abs($Start) {
        $Trim-list: join($Trim-list, nth($Negitive-return, $i));
      }
    }
    $Negitive-return: $Trim-list;
  }
  
  // Join both positive and negitive possibilities.
  $Return: join($Negitive-return, $Positive-return);

  @return $Return;
}<commit_msg>Correct ms-list to be in line with other fixes for #69<commit_after>// Outputs a list of values instead of a single value
@function ms-list($Start: 0, $End: 0, $Bases: $ms-base, $Ratios: $ms-ratio) {
  
  // Seed results
  $Positive-return: ();
  $Negitive-return: ();
  $Return: ();

  @if $End >= 0 {
    // Generate a list of all possible values
    $Positive-return: ms-generate-list($End, $Bases, $Ratios);
    
    // Sort the generated lists
    $Positive-return: ms-sort-list($Positive-return);

    // Trim list
    $Trim-list: ();
    // If the starting value is a positive number
    // trim the positive return from that
    @if $Start >= 0 {
      @for $i from ($Start + 1) through $End + 1 {
        $Trim-list: join($Trim-list, nth($Positive-return, $i));
      }
    }
    // If not, then include everything up to the end.
    @else {
      @for $i from 1 through $End + 1 {
        $Trim-list: join($Trim-list, nth($Positive-return, $i));
      }
    }
    $Positive-return: $Trim-list;
  }
  
  // Generate a negitive list
  @if $Start < 0 {
    // Generate a list of all possible values
    $Negitive-return: ms-generate-list($Start, $Bases, $Ratios);
    
    // Sort the generated lists
    $Negitive-return: ms-sort-list($Negitive-return);
    
    // Reverse negitive list results.
    $MS-new-return: ();
    @each $i in $Negitive-return {
      $MS-new-return: join($i, $MS-new-return);
    }
    $Negitive-return: $MS-new-return;

    // Trim list
    $Trim-list: ();
    @if $End < 0 {
      @for $i from abs($End) through (abs($Start) + 1) {
        $Trim-list: join(nth($Negitive-return, $i), $Trim-list);
      }
    }
    @else {
      @for $i from 2 through abs($Start) {
        $Trim-list: join(nth($Negitive-return, $i), $Trim-list);
      }
    }
    $Negitive-return: $Trim-list;
  }
  
  // Join both positive and negitive possibilities.
  $Return: join($Negitive-return, $Positive-return);

  @return $Return;
}
{'fraction_non_alphanumeric': 0.160944795385883, 'fraction_numerical': 0.006866245536940401, 'mean_word_length': 2.387906976744186, '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': '6336550', 'n_tokens_mistral': 1319, 'n_tokens_neox': 1235, 'n_words': 351}