<commit_before>#!/bin/bash

#set -x 

PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
NOW=`date +%s`
TODAY=`date +%Y-%m-%d`
COUNT=450
INTERVAL=2
export PATH

t=`date +"%Y-%m-%d"`
if [ -z "$1" ]
then
        echo "No argument supplied. Please give an output directory location"
        exit 1
fi
export RESULT="$1/sar-results-$t"

mkdir -p $RESULT

#####################
# EVERY 2 SECONDS
#####################
echo $t >> $RESULT/top.out &
top -b -M -n $COUNT -d $INTERVAL | grep -A 40 '^top' >> $RESULT/top.out &
sar -B $INTERVAL $COUNT >> $RESULT/sar.paging.out &
sar -d -p $INTERVAL $COUNT >> $RESULT/sar.device.out &
sar -R $INTERVAL $COUNT >> $RESULT/sar.memory.out &
sar -r $INTERVAL $COUNT >> $RESULT/sar.memutil.out &
sar -u ALL $INTERVAL $COUNT >> $RESULT/sar.cpuusage.out &
sar -n DEV $INTERVAL $COUNT >> $RESULT/sar.network.out &
sar -W $INTERVAL $COUNT >> $RESULT/sar.swapping.out &
sar -m $INTERVAL $COUNT >> $RESULT/sar.cpuhz.out &
sar -n EDEV $INTERVAL $COUNT >> $RESULT/sar.edev.out &
sar -n TCP $INTERVAL $COUNT >> $RESULT/sar.tcp.out &
sar -n ETCP $INTERVAL $COUNT >> $RESULT/sar.etcp.out &
sar -n SOCK $INTERVAL $COUNT >> $RESULT/sar.sock.out &

#sar -n NFS $INTERVAL $COUNT >> $RESULT/sar.nfs.out &

#####################
# EVERY 2 SECONDS (for now)<commit_msg>add default dir<commit_after>#!/bin/bash

#set -x 

PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
NOW=`date +%s`
TODAY=`date +%Y-%m-%d`
COUNT=450
INTERVAL=2
export PATH

t=`date +"%Y-%m-%d"`
if [ -z "$1" ]
then
        echo "No argument supplied, using current directory as base output directory."
        export RESULT="sar-results-$t"
else
        export RESULT="$1/sar-results-$t"
fi

mkdir -p $RESULT

#####################
# EVERY 2 SECONDS
#####################
echo $t >> $RESULT/top.out &
top -b -M -n $COUNT -d $INTERVAL | grep -A 40 '^top' >> $RESULT/top.out &
sar -B $INTERVAL $COUNT >> $RESULT/sar.paging.out &
sar -d -p $INTERVAL $COUNT >> $RESULT/sar.device.out &
sar -R $INTERVAL $COUNT >> $RESULT/sar.memory.out &
sar -r $INTERVAL $COUNT >> $RESULT/sar.memutil.out &
sar -u ALL $INTERVAL $COUNT >> $RESULT/sar.cpuusage.out &
sar -n DEV $INTERVAL $COUNT >> $RESULT/sar.network.out &
sar -W $INTERVAL $COUNT >> $RESULT/sar.swapping.out &
sar -m $INTERVAL $COUNT >> $RESULT/sar.cpuhz.out &
sar -n EDEV $INTERVAL $COUNT >> $RESULT/sar.edev.out &
sar -n TCP $INTERVAL $COUNT >> $RESULT/sar.tcp.out &
sar -n ETCP $INTERVAL $COUNT >> $RESULT/sar.etcp.out &
sar -n SOCK $INTERVAL $COUNT >> $RESULT/sar.sock.out &

#sar -n NFS $INTERVAL $COUNT >> $RESULT/sar.nfs.out &

#####################
# EVERY 2 SECONDS (for now)
{'fraction_non_alphanumeric': 0.2251732101616628, 'fraction_numerical': 0.008083140877598153, 'mean_word_length': 3.616341030195382, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 63, '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': '440481', 'n_tokens_mistral': 1085, 'n_tokens_neox': 977, 'n_words': 267}