<commit_before>#!/bin/bash
# <NAME> - 2014
# watch the MIG source code directory and rebuild the components
# when a file is saved.

echo "starting inotify listener on ./src/mig"
# feed the inotify events into a while loop that creates
# the variables 'date' 'time' 'dir' 'file' and 'event'
inotifywait -mr --timefmt '%d/%m/%y %H:%M' --format '%T %w %f %e' \
-e modify ./src/mig \
| while read date time dir file event
do
    if [[ "$file" =~ \.go$ && "$dir" =~ src\/mig ]]; then
        dontskip=true
    else
        #echo skipping $date $time $event $dir $file
        continue
    fi

    #echo NEW EVENT: $event $dir $file

    if [[ "$dir" =~ src\/mig\/$ ]]; then
        echo
        make mig-agent && \
        make mig-action-generator && \
        make mig-action-verifier && \
        make mig-api && \
        make mig-scheduler && \
        echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ agent && "$file" != "configuration.go" ]] ; then
        echo
        make mig-agent && echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ modules && "$file" != "configuration.go" ]] ; then
        echo
        make mig-agent && echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ api ]] ; then
        echo
        make mig-api && echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ generator ]] ; then
        echo
        make mig-action-generator && echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ verifier ]] ; then
        echo
        make mig-action-verifier && echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ pgp ]] ; then
        echo
        make mig-agent && \
        make mig-action-generator && \
        make mig-action-verifier && \
        make mig-api && \<commit_msg>[minor] add console target to inotify_make<commit_after>#!/bin/bash
# <NAME>ent - 2014
# watch the MIG source code directory and rebuild the components
# when a file is saved.

echo "starting inotify listener on ./src/mig"
# feed the inotify events into a while loop that creates
# the variables 'date' 'time' 'dir' 'file' and 'event'
inotifywait -mr --timefmt '%d/%m/%y %H:%M' --format '%T %w %f %e' \
-e modify ./src/mig \
| while read date time dir file event
do
    if [[ "$file" =~ \.go$ && "$dir" =~ src\/mig ]]; then
        dontskip=true
    else
        #echo skipping $date $time $event $dir $file
        continue
    fi

    #echo NEW EVENT: $event $dir $file

    if [[ "$dir" =~ src\/mig\/$ ]]; then
        echo
        make mig-agent && \
        make mig-action-generator && \
        make mig-action-verifier && \
        make mig-api && \
        make mig-scheduler && \
        echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ agent && "$file" != "configuration.go" ]] ; then
        echo
        make mig-agent && echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ modules && "$file" != "configuration.go" ]] ; then
        echo
        make mig-agent && echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ api ]] ; then
        echo
        make mig-api && echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ generator ]] ; then
        echo
        make mig-action-generator && echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ verifier ]] ; then
        echo
        make mig-action-verifier && echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ console ]] ; then
        echo
        make mig-console && echo success $(date +%H:%M:%S)

    elif [[ "$dir" =~ pgp ]] ; then
        echo
        make mig-agent && \
        make mig-action-generator && \
        make mig-action-verifier && \
        make mig-api && \
{'fraction_non_alphanumeric': 0.17408340330254687, 'fraction_numerical': 0.002239014833473272, 'mean_word_length': 2.0916955017301038, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2305634', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1160, 'n_words': 370}