<commit_before>#!/bin/bash

export PATH="../../bin:${PATH}"

# define the number of channels to use
nr_channels=5

# start mem_io
mem_io_start -nr_channels ${nr_channels}

# for each channel, write 10 values
for channel_id in `seq 0 $(( ${nr_channels} - 1 ))`
do
    for value in `seq ${channel_id} $(( ${channel_id} + 10 ))`
    do
        echo -n "${value} " | mem_io_store -channel_id ${channel_id}
    done
done

# retrieve all information and dump to a single file<commit_msg>Added mem_io_status examples<commit_after>#!/bin/bash

export PATH="../../bin:${PATH}"

# define the number of channels to use
nr_channels=5

# start mem_io
mem_io_start -nr_channels ${nr_channels}

# show status
mem_io_status

# for each channel, write 10 values
for channel_id in `seq 0 $(( ${nr_channels} - 1 ))`
do
    for value in `seq ${channel_id} $(( ${channel_id} + 10 ))`
    do
        echo -n "${value} " | mem_io_store -channel_id ${channel_id}
    done
done

# show detailed status
mem_io_status -details

# retrieve all information and dump to a single file
{'fraction_non_alphanumeric': 0.1282051282051282, 'fraction_numerical': 0.013295346628679962, 'mean_word_length': 3.7477477477477477, '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': '1327629', 'n_tokens_mistral': 370, 'n_tokens_neox': 351, 'n_words': 119}