<commit_before>#!/bin/bash -

# Check Memory as well here, if memory is low don't write ...
#
# this should deal with /dev/watchdog
mem=$(free -m | awk '/-/{print $4}')
(( mem <= 0 )) && mem=$(free -m | awk '/Mem:/{print $7}')
(( mem <= 20 )) &&  exit 0

DEFAULT_ROUTE=$(ip route show default | awk '/default/ {print $3}')<commit_msg>fixed bug where default route may come up twice<commit_after>#!/bin/bash -

# Check Memory as well here, if memory is low don't write ...
#
# this should deal with /dev/watchdog
mem=$(free -m | awk '/-/{print $4}')
(( mem <= 0 )) && mem=$(free -m | awk '/Mem:/{print $7}')
(( mem <= 20 )) &&  exit 0

#DEFAULT_ROUTE=$(ip route show default | awk '/default/ {print $3}')
DEFAULT_ROUTE=$(ip r |grep eth0 | grep default | cut -d ' ' -f 3 | sed -n '1p')
{'fraction_non_alphanumeric': 0.20945083014048532, 'fraction_numerical': 0.021711366538952746, 'mean_word_length': 3.3076923076923075, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '6160260', 'n_tokens_mistral': 289, 'n_tokens_neox': 275, 'n_words': 102}