<commit_before>_nginx_sites()
{
	local cur prev opts cmd

	cur="${COMP_WORDS[COMP_CWORD]}"
	prev="${COMP_WORDS[COMP_CWORD-1]}"
	cmd="${COMP_WORDS[1]}"


	case "${cmd}" in
	list)
		opts=$(nginx-sites "${cmd}" compgen "$COMP_CWORD" "${COMP_WORDS[@]}" 2> /dev/null)
		;;<commit_msg>Set command to first non-option argument.<commit_after>_nginx_sites()
{
	local cur prev opts cmd i max

	cur="${COMP_WORDS[COMP_CWORD]}"
	prev="${COMP_WORDS[COMP_CWORD-1]}"
	cmd=""

	# The first non-option is the command
	for (( i=1, max="${#COMP_WORDS[@]}"; i < max; i++ ))
	do
		[[ "${COMP_WORDS[$i]}" = -* ]] && continue
		cmd="${COMP_WORDS[$i]}"
		break
	done

	case "${cmd}" in
	list)
		opts=$(nginx-sites "${cmd}" compgen "$COMP_CWORD" "${COMP_WORDS[@]}" 2> /dev/null)
		;;
{'fraction_non_alphanumeric': 0.22691292875989447, 'fraction_numerical': 0.0079155672823219, 'mean_word_length': 5.072, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, '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': '3842747', 'n_tokens_mistral': 327, 'n_tokens_neox': 307, 'n_words': 65}