<commit_before>function dotfile::set_env
  set --export --global $argv[1] $argv[2]
end

function dotfile::load_if_exists
  if test -f $argv[1]
    source $argv[1]
  end
end

function dotfile::load_all
  for file in (find -L $argv[1] -maxdepth 1 -name $argv[2] -type f)
    source $file
  end
end

function dotfile::path_prepend
  set args

  for arg in $argv
    set args $arg $args
  end

  for arg in $args
    if not string match --quiet $arg $PATH
      set PATH $arg $PATH
    end
  end
end

function dotfile::path_append
  for arg in $argv
    if not string match --quiet $arg $PATH
      set PATH $PATH $arg
    end
  end
end

function dotfile::alias
  alias $argv[1] $argv[2]
end<commit_msg>Use array containment<commit_after>function dotfile::set_env
  set --export --global $argv[1] $argv[2]
end

function dotfile::load_if_exists
  if test -f $argv[1]
    source $argv[1]
  end
end

function dotfile::load_all
  for file in (find -L $argv[1] -maxdepth 1 -name $argv[2] -type f)
    source $file
  end
end

function dotfile::path_prepend
  set args

  for arg in $argv
    set args $arg $args
  end

  for arg in $args
    if not contains $arg $PATH
      set PATH $arg $PATH
    end
  end
end

function dotfile::path_append
  for arg in $argv
    if not contains $arg $PATH
      set PATH $PATH $arg
    end
  end
end

function dotfile::alias
  alias $argv[1] $argv[2]
end
{'fraction_non_alphanumeric': 0.0955137481910275, 'fraction_numerical': 0.013024602026049204, 'mean_word_length': 2.9401709401709404, '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': '5182632', 'n_tokens_mistral': 510, 'n_tokens_neox': 496, 'n_words': 183}