<commit_before>#!/usr/bin/env sh
# Prints the CPU usage: user% sys% idle

top -l1 | grep "CPU usage" | awk '{ print $3, $5, $7 }'

exit 0<commit_msg>support for linux? (all i have is ubuntu to test it on)<commit_after>#!/usr/bin/env sh
# Prints the CPU usage: user% sys% idle

if [ $PLATFORM == 'mac' ]; then
  top -l 1 | grep "CPU usage" | awk '{ print $3, $5, $7 }'
elif [ $PLATFORM == 'linux' ]; then
  top -n 1 | grep "Cpu(s)" | awk '{ print $2, $3, $5 }' | sed 's/\w\{2\},//g'
fi

exit 0
{'fraction_non_alphanumeric': 0.20121951219512196, 'fraction_numerical': 0.03048780487804878, 'mean_word_length': 3.1779661016949152, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2078183', 'n_tokens_mistral': 215, 'n_tokens_neox': 200, 'n_words': 74}