<commit_before>CheckValid() {
  if [ -n "${SYNAPP}" ]; then # confirmed
  #  PrepSyntax
    case "${SYNAPP}" in 
      vim)
        echo "Nothing">/dev/null
        ;;
      kate)
        echo "Nothing">/dev/null
        ;;
      *)
        PrintError "Cannot set syntax info for ${SYNAPP}, please contact the authors of slackdoctool if you want it included."
        ISERROR=1
        ;;
    esac
  fi

exit 1

  # Verify that the URL entered is not a local file or directory
  if [ -n "${GETURL}" ]&&[ -d ${GETURL} ]; then
    PrintError "Directory ${GETURL} was input into -u. A Url Must be entered"
    ISERROR=1
  elif [ -n "${GETURL}" ]&&[ -f ${GETURL} ]; then
    PrintError "File ${GETURL} was input into -u. A Url Must be entered"
    ISERROR=1
  fi

  # Verify that the FILE entered is not a local directory
  if [ -n "${GETFILE}" ]&&[ ! -f  ${GETFILE} ]; then
    PrintError "File ${GETFILE} does not exist. Cannot continue."
    ISERROR=1
  fi

  if [ -n "${DESTDIR}" ]&&[ -z "${GETFILE}" ]&&[ -z "${GETURL}" ]; then
    PrintError "Output directories are only valid when fetching URLs or a list of URLs, the option is being ignored"
  fi


  if [ ! -f ${COPYFILE} ]; then
    PrintError"You cannot copy ${COPYFILE}, it does not exist."
    ISERROR=1
  fi

  if [ -n "${USETEMPLATE}" ]; then
		if [ ! -f "${TEMP_FILE}" ]; then
			PrintError "No template list available, use the -r option to pull the updated list of templates."
			ISERROR=1
	  else
		  TEMPS=( $(cat $TEMP_FILE) )
		  if [[ "${USETEMPLATE}" -gt "${#TEMPS[@]}" ]]; then
				PrintError "No such template exists, use the -l option to list available templates."
				ISERROR=1
			fi
		fi
	fi

  #if [ -n "${USERTEMPLATE}" ]&&[ -f "${TEMP_FILE}" ]&&[ -z "$(cat ${TEMP_FILE} | grep ${USETEMPLATE})" ]; then
  #  PrintText 2 "${ERRTXT}" "The template ${USETEMPLATE} does not exist." 1
  #  ISERROR=1
  #fi

#  if [ -n "${USETEMPLATE}" ]; then
#    if [ ! -f ${TEMP_FILE} ]; then
#      PrintText 2 "${ERRTXT}" "No template list available, use the -r option
#      to pull the updated list of templates."
#    else
#      if [ -z "$(cat ${TEMP_FILE} | grep ${USETEMPLATE})"]; then
#        PrintText 2 "${ERRTXT}" "The template ${USETEMPLATE} does not
#        exist." 1
#        ISERROR=1
#      fi
#    fi
#  fi

  #NEWFILE
  # Check for existance in the function, if exists then request to overwrite

  if [ -n "${ISERROR}" ]; then
    exit 1
  fi
}
<commit_msg>Trying to fix tabs<commit_after>CheckValid() {
  if [ -n "${SYNAPP}" ]; then # confirmed
  #  PrepSyntax
    case "${SYNAPP}" in 
      vim)
        echo "Nothing">/dev/null
        ;;
      kate)
        echo "Nothing">/dev/null
        ;;
      *)
        PrintError "Cannot set syntax info for ${SYNAPP}, please contact the authors of slackdoctool if you want it included."
        ISERROR=1
        ;;
    esac
  fi

exit 1

  # Verify that the URL entered is not a local file or directory
  if [ -n "${GETURL}" ]&&[ -d ${GETURL} ]; then
    PrintError "Directory ${GETURL} was input into -u. A Url Must be entered"
    ISERROR=1
  elif [ -n "${GETURL}" ]&&[ -f ${GETURL} ]; then
    PrintError "File ${GETURL} was input into -u. A Url Must be entered"
    ISERROR=1
  fi

  # Verify that the FILE entered is not a local directory
  if [ -n "${GETFILE}" ]&&[ ! -f  ${GETFILE} ]; then
    PrintError "File ${GETFILE} does not exist. Cannot continue."
    ISERROR=1
  fi

  if [ -n "${DESTDIR}" ]&&[ -z "${GETFILE}" ]&&[ -z "${GETURL}" ]; then
    PrintError "Output directories are only valid when fetching URLs or a list of URLs, the option is being ignored"
  fi


  if [ ! -f ${COPYFILE} ]; then
    PrintError"You cannot copy ${COPYFILE}, it does not exist."
    ISERROR=1
  fi

  if [ -n "${USETEMPLATE}" ]; then
		if [ ! -f "${TEMP_FILE}" ]; then
			PrintError "No template list available, use the -r option to pull the updated list of templates."
			ISERROR=1
		else
			TEMPS=( $(cat $TEMP_FILE) )
			if [[ "${USETEMPLATE}" -gt "${#TEMPS[@]}" ]]; then
				PrintError "No such template exists, use the -l option to list available templates."
				ISERROR=1
			fi
		fi
	fi

  #if [ -n "${USERTEMPLATE}" ]&&[ -f "${TEMP_FILE}" ]&&[ -z "$(cat ${TEMP_FILE} | grep ${USETEMPLATE})" ]; then
  #  PrintText 2 "${ERRTXT}" "The template ${USETEMPLATE} does not exist." 1
  #  ISERROR=1
  #fi

#  if [ -n "${USETEMPLATE}" ]; then
#    if [ ! -f ${TEMP_FILE} ]; then
#      PrintText 2 "${ERRTXT}" "No template list available, use the -r option
#      to pull the updated list of templates."
#    else
#      if [ -z "$(cat ${TEMP_FILE} | grep ${USETEMPLATE})"]; then
#        PrintText 2 "${ERRTXT}" "The template ${USETEMPLATE} does not
#        exist." 1
#        ISERROR=1
#      fi
#    fi
#  fi

  #NEWFILE
  # Check for existance in the function, if exists then request to overwrite

  if [ -n "${ISERROR}" ]; then
    exit 1
  fi
}

{'fraction_non_alphanumeric': 0.15024630541871922, 'fraction_numerical': 0.006568144499178982, 'mean_word_length': 2.6016260162601625, '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': '479330', 'n_tokens_mistral': 1725, 'n_tokens_neox': 1632, 'n_words': 609}