<commit_before>///
/// Apply `$function` to every item from `$list` passing $args as parameters.
///
/// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-walk
///
/// @param {List}    $list     - list to update
/// @param {String}  $function - function to call on each value
/// @param {ArgList} $args     - optional function arguments
///
/// @throws There is no `$function` function for `sl-walk`.
///
/// @requires sl-to-map
/// @requires sl-to-list
///
/// @example
/// sl-walk(a b c, to-upper-case)
/// // A B C
///
/// @return {List | Null}
///
 
@function sl-walk($list, $function, $args...) {
  $_: sl-missing-dependencies('sl-to-map', 'sl-to-list');
  
  @if not function-exists($function) {
    @error 'There is no `#{$function}` function for `sl-walk`.';
  }

  @each $index, $value in sl-to-map($list) {
    $list: set-nth($list, $index, call($function, $value, $args...));
  }
  
  @return sl-to-list($list);
}<commit_msg>Fixed a minor issue in walk function<commit_after>///
/// Apply `$function` to every item from `$list` passing $args as parameters.
///
/// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-walk
///
/// @param {List}    $list     - list to update
/// @param {String}  $function - function to call on each value
/// @param {ArgList} $args     - optional function arguments
///
/// @throws There is no `$function` function for `sl-walk`.
///
/// @requires sl-to-map
/// @requires sl-to-list
///
/// @example
/// sl-walk(a b c, to-upper-case)
/// // A B C
///
/// @return {List | Null}
///
 
@function sl-walk($list, $function, $args...) {
  $_: sl-missing-dependencies('sl-to-map', 'sl-to-list');
  
  @if not function-exists($function) {
    @error 'There is no `#{$function}` function for `sl-walk`.';
  }

  @each $index, $value in sl-to-map($list) {
    $arguments: join($value, $args);
    $list: set-nth($list, $index, call($function, $arguments...));
  }
  
  @return sl-to-list($list);
}
{'fraction_non_alphanumeric': 0.21845386533665836, 'fraction_numerical': 0.0, 'mean_word_length': 2.6807339449541283, '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': '3846414', 'n_tokens_mistral': 694, 'n_tokens_neox': 680, 'n_words': 186}