<commit_before>@include test-module('Lists') {

  @include test('join [function]') {
    $base: ('a', 'b', 'c');

    @include assert-equal(sg-join($base), 'a,b,c');

    @include assert-equal(sg-join($base, '+'), 'a+b+c');

    @include assert-equal(sg-join($base, ' '), 'a b c');

    @include assert-equal(sg-join($base, ''), 'abc');
  }

  @include test('each [function]') {
    $base: ('a', 'b', 'c');

    @include assert-equal(sg-each('to-upper-case', $base), ('A', 'B', 'C'));

    @include assert-equal(sg-each('str-insert', $base, 'x', 1), ('xa', 'xb', 'xc'));

    @include assert-equal(sg-each('type-of', $base), (string, string, string));

    @include assert-equal(sg-each('append', ($base, $base), 'd'), (('a', 'b', 'c', 'd'), ('a', 'b', 'c', 'd')));
  }

  @include test('filter [function]') {
    $base: ('a', 'b', 'c', ' ', false);

    @include assert-equal(sg-filter($base, ' '), ('a', 'b', 'c', false));

    @include assert-equal(sg-filter($base, false), ('a', 'b', 'c', ' '));

    @include assert-equal(sg-filter($base, 'b'), ('a', 'c', ' ', false));

    @include assert-equal(sg-filter($base, 'b', 'a'), ('c', ' ', false));
  }

  @include test('remove [function]') {
    $base: ('a', 'b', 'c');

    @include assert-equal(sg-remove($base, 'b'), ('a', 'c'));
  }

  // @include test('split [function]') {
  //   $base: 'a b c';

  //   @include assert-equal(sg-split($base), ($base));

  //   @include assert-true(type-of(sg-split($base)), list);

  //   @include assert-equal(sg-split($base, ' '), ('a', 'b', 'c'));

  //   @include assert-equal(sg-split($base, 'b'), ('a ', ' c'));

  //   @include assert-equal(sg-split($base, ''), ('a', ' ', 'b', ' ', 'c'));
  // }
}<commit_msg>Whatever I did here<commit_after>@include test-module('Lists') {

  @include test('join [function]') {
    $base: ('a', 'b', 'c');

    @include assert-equal(sg-join($base), 'a,b,c');

    @include assert-equal(sg-join($base, '+'), 'a+b+c');

    @include assert-equal(sg-join($base, ' '), 'a b c');

    @include assert-equal(sg-join($base, ''), 'abc');
  }

  @include test('each [function]') {
    $base: ('a', 'b', 'c');

    @include assert-equal(sg-each('to-upper-case', $base), ('A', 'B', 'C'));

    @include assert-equal(sg-each('str-insert', $base, 'x', 1), ('xa', 'xb', 'xc'));

    @include assert-equal(sg-each('type-of', $base), (string, string, string));

    @include assert-equal(sg-each('append', ($base, $base), 'd'), (('a', 'b', 'c', 'd'), ('a', 'b', 'c', 'd')));
  }

  @include test('filter [function]') {
    $base: ('a', 'b', 'c', ' ', '', false);

    @include assert-equal(sg-filter($base, ' '), ('a', 'b', 'c', '', false));

    @include assert-equal(sg-filter($base, false), ('a', 'b', 'c', ' ', ''));

    @include assert-equal(sg-filter($base, 'b'), ('a', 'c', ' ', '', false));

    @include assert-equal(sg-filter($base, 'b', 'a'), ('c', ' ', '', false));

    @include assert-equal(sg-compact($base), ('a', 'b', 'c', ' '));
  }

  // @include test('split [function]') {
  //   $base: 'a b c';

  //   @include assert-equal(sg-split($base), ($base));

  //   @include assert-true(type-of(sg-split($base)), list);

  //   @include assert-equal(sg-split($base, ' '), ('a', 'b', 'c'));

  //   @include assert-equal(sg-split($base, 'b'), ('a ', ' c'));

  //   @include assert-equal(sg-split($base, ''), ('a', ' ', 'b', ' ', 'c'));
  // }
}
{'fraction_non_alphanumeric': 0.3120189461219657, 'fraction_numerical': 0.0005920663114268798, 'mean_word_length': 3.609822646657572, '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': '6841356', 'n_tokens_mistral': 1332, 'n_tokens_neox': 1279, 'n_words': 266}