<commit_before>_opam_add()
{
  _opam_reply="$_opam_reply $1"
}

_opam_global_options()
{
  local res
  res="$( opam --help 2>/dev/null | grep '^  -' | sed 's/ *//;s/ .*//' )"
  _opam_add "$res"
}

_opam_commands()
{
  local res
  res="$( opam 2>/dev/null | grep '^    [^ ]' | sed 's/ *//;s/ .*//' | grep -v '^-' )"<commit_msg>Update the way to get the list of sub-commands<commit_after>_opam_add()
{
  _opam_reply="$_opam_reply $1"
}

_opam_global_options()
{
  local res
  res="$( opam --help 2>/dev/null | grep '^  -' | sed 's/ *//;s/ .*//' )"
  _opam_add "$res"
}

_opam_commands()
{
  local res
  res="$( opam help topics 2>/dev/null | sed 's/ *//;s/ .*//' | grep -v '^-' )"
{'fraction_non_alphanumeric': 0.2448377581120944, 'fraction_numerical': 0.008849557522123894, 'mean_word_length': 2.772222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5804246', 'n_tokens_mistral': 327, 'n_tokens_neox': 306, 'n_words': 65}