<commit_before>#!/bin/mksh
#
# wildefyr - 2015 (c) wtfpl
# checks a windows class

source ~/.config/fyre/fyrerc

usage() {
    printf '%s\n' "usage: $(basename $0) <command> <wid>" >&2
    exit 1
}

case $1 in
    c|class)
        xprop -id $2 WM_CLASS | cut -f 2 -d \"
        ;;
    m|more)
        xprop -id $2 WM_CLASS | cut -f 4 -d \"
        ;;
    p|process)
        ps -o command $(xprop -id $2 _NET_WM_PID | awk '{print $NF}') | sed \
        '1d' 2> /dev/null
        ;;
    ca|classAll)
        for i in $(seq $(lsw | wc -l)); do
            echo $(lsw | head -n $i  | tail -1) $(wclass.sh c $(lsw | head -n $i | tail -1)) 
        done
        ;;
    ma|moreAll)
        for i in $(seq $(lsw | wc -l)); do
            echo $(lsw | head -n $i  | tail -1) $(wclass.sh m $(lsw | head -n $i | tail -1)) 
        done
        ;;
    pa|processAll)
        for i in $(seq $(lsw | wc -l)); do
            echo $(lsw | head -n $i  | tail -1) $(wclass.sh p $(lsw | head -n $i | tail -1)) 
        done
        ;;
    name)
        for i in $(seq $(lsw | wc -l)); do
            echo $(lsw | head -n $i  | tail -1) $(wname $(lsw | head -n $i | tail -1)) 
        done
        ;;
    *)
        usage
        ;;
esac<commit_msg>wclass.sh, rm source fyrerc.<commit_after>#!/bin/mksh
#
# wildefyr - 2015 (c) wtfpl
# checks a windows class

usage() {
    printf '%s\n' "usage: $(basename $0) <command> <wid>" >&2
    exit 1
}

case $1 in
    c|class)
        xprop -id $2 WM_CLASS | cut -f 2 -d \"
        ;;
    m|more)
        xprop -id $2 WM_CLASS | cut -f 4 -d \"
        ;;
    p|process)
        ps -o command $(xprop -id $2 _NET_WM_PID | awk '{print $NF}') | sed '1d' 2> /dev/null
        ;;
    ca|classAll)
        for i in $(seq $(lsw | wc -l)); do
            echo $(lsw | head -n $i  | tail -1) $(wclass.sh c $(lsw | head -n $i | tail -1)) 
        done
        ;;
    ma|moreAll)
        for i in $(seq $(lsw | wc -l)); do
            echo $(lsw | head -n $i  | tail -1) $(wclass.sh m $(lsw | head -n $i | tail -1)) 
        done
        ;;
    pa|processAll)
        for i in $(seq $(lsw | wc -l)); do
            echo $(lsw | head -n $i  | tail -1) $(wclass.sh p $(lsw | head -n $i | tail -1)) 
        done
        ;;
    name)
        for i in $(seq $(lsw | wc -l)); do
            echo $(lsw | head -n $i  | tail -1) $(wname $(lsw | head -n $i | tail -1)) 
        done
        ;;
    *)
        usage
        ;;
esac
{'fraction_non_alphanumeric': 0.17879161528976573, 'fraction_numerical': 0.018906699547883273, 'mean_word_length': 1.4075173095944609, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '1107609', 'n_tokens_mistral': 992, 'n_tokens_neox': 948, 'n_words': 318}