<commit_before>// Return last index of $needle in $string
// ----------------------------------------------------------------------------------------------------
// @param [string] $string: string
// ----------------------------------------------------------------------------------------------------
// @return [number] | null | false

@function str-last-index($string, $needle) {
  @if type-of($string) != "string" {
    @warn "`str-last-index` function expecting a string for $string; #{type-of($string)} given.";
    @return false;
  }

  @if type-of($needle) != "string" {
    @warn "`str-last-index` function expecting a string for $needle; #{type-of($needle)} given.";
    @return false;
  }<commit_msg>fixes no documentation for $needle in _str-last-index.scss #3<commit_after>/* 
 * Return last index of $needle in $string
 * ---
 * @param {string} $string - string to search in
 * @param {string} $needle - substring to search for
 * ---
 * @return {number | null | false}
 */

@function str-last-index($string, $needle) {
  @if type-of($string) != "string" {
    @warn "`str-last-index` function expecting a string for $string; #{type-of($string)} given.";
    @return false;
  }

  @if type-of($needle) != "string" {
    @warn "`str-last-index` function expecting a string for $needle; #{type-of($needle)} given.";
    @return false;
  }
{'fraction_non_alphanumeric': 0.30244625648628615, 'fraction_numerical': 0.0007412898443291327, 'mean_word_length': 1.9605263157894737, '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': '1549756', 'n_tokens_mistral': 392, 'n_tokens_neox': 383, 'n_words': 115}