<commit_before>#!/bin/bash

[[ "$(echo ruok | nc "$HOSTNAME" 2181 2>/dev/null)" == "imok" ]] && exit 0 || exit 1<commit_msg>Modify zk checker script to optionally accept host as arg<commit_after>#!/bin/bash

[[ -n "$1" ]] && host=$1 || host=$HOSTNAME

[[ "$(echo ruok | nc "$host" 2181 2>/dev/null)" == "imok" ]] && exit 0 || exit 1
{'fraction_non_alphanumeric': 0.23493975903614459, 'fraction_numerical': 0.04819277108433735, 'mean_word_length': 4.203125, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6706687', 'n_tokens_mistral': 146, 'n_tokens_neox': 126, 'n_words': 36}