<commit_before><commit_msg>Adding invoke module.<commit_after>#
# deta
#
# Copyright (c) 2011 <NAME>
#
# Distributed under the terms of the MIT License.
# Redistributions of files must retain the above copyright notice.
#
# @COPYRIGHT 2011 <NAME> <<EMAIL>>
# @LICENSE   http://www.opensource.org/licenses/mit-license.php The MIT License
# @LINK      http://github.com/davidpersson/deta
#

printf "[%5s] Module %s loaded.\n" "ok" "invoke"

# @FUNCTION: run_ssh
# @USAGE: [host] < [commands]
# @DESCRIPTION:
# Executes commands from STDIN on a remote host.
# This function has DRYRUN support.
run_ssh() {
	local in=""
	while read -r line; do in+="$line\n"; done

	if [ $DRYRUN != "n" ]; then
		printf "[%5s] Would have executed following command/s on %s.\n" "dry" $1
		echo -e $in
	else
		printf "[%5s] Executing command/s on %s.\n" "" $1
		echo -e $in | ssh -T $1
	fi
}
{'fraction_non_alphanumeric': 0.1543778801843318, 'fraction_numerical': 0.016129032258064516, 'mean_word_length': 3.748633879781421, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '5337776', 'n_tokens_mistral': 331, 'n_tokens_neox': 309, 'n_words': 105}