<commit_before>#!/bin/bash

## HISTORY MANAGEMENT
# history grepping command
hist () {
    grep "$@" ~/.bash_history | uniq --count | tail -50;
}

rhist () {
     history | tail -150;
}
# This function sets up history file use for a session
start_history () {
    touch ~.history_$$;
    trap end_history EXIT;
}

empty () {
    ls $1 >& ~/empty_temp;
    error=$(grep "No such file" ~/empty_temp);
    if [[ $error == "" ]]; then
        echo "Emptying file: $1";
        oldsize=$(ls -lh $1 | sed s/.*users\ *// | sed s/\ .*//);
        echo "Filesize is: $oldsize";
        rm $1 && touch $1;
    else
        echo "File $1 does not exist";
    fi

    rm ~/empty_temp;
}

# Surfaces all terminals to the top
show() {
    xdotool search --class "terminal" windowactivate %@ > /dev/null 2>&1
}

un () {
    killall -v -u juckele -9 $1;
}

greet () {
    greet=$(random_line ~/linefiles/startup | sed -e "s|USERNAME|$USERGIVENNAME|");
    echo -e "\033[38;5;204m$greet";
}

random_line () {
    head -$((${RANDOM} % `wc -l < $1` + 1)) $1 | tail -1;
}

cl () {
    cd $1;
    ls;
}

crl () {
     /usr/bin/curl $1;
     echo '';
}

fig() {
      find ./ | grep $1
}

jf() {
     find ./ | grep $1.*java
}<commit_msg>Changed .java based fig (find pipped to grep) to a wildcard extension<commit_after>#!/bin/bash

## HISTORY MANAGEMENT
# history grepping command
hist () {
    grep "$@" ~/.bash_history | uniq --count | tail -50;
}

rhist () {
     history | tail -150;
}
# This function sets up history file use for a session
start_history () {
    touch ~.history_$$;
    trap end_history EXIT;
}

empty () {
    ls $1 >& ~/empty_temp;
    error=$(grep "No such file" ~/empty_temp);
    if [[ $error == "" ]]; then
        echo "Emptying file: $1";
        oldsize=$(ls -lh $1 | sed s/.*users\ *// | sed s/\ .*//);
        echo "Filesize is: $oldsize";
        rm $1 && touch $1;
    else
        echo "File $1 does not exist";
    fi

    rm ~/empty_temp;
}

# Surfaces all terminals to the top
show() {
    xdotool search --class "terminal" windowactivate %@ > /dev/null 2>&1
}

un () {
    killall -v -u juckele -9 $1;
}

greet () {
    greet=$(random_line ~/linefiles/startup | sed -e "s|USERNAME|$USERGIVENNAME|");
    echo -e "\033[38;5;204m$greet";
}

random_line () {
    head -$((${RANDOM} % `wc -l < $1` + 1)) $1 | tail -1;
}

cl () {
    cd $1;
    ls;
}

crl () {
     /usr/bin/curl $1;
     echo '';
}

fig() {
      find ./ | grep $1
}

fx() {
     find ./ | grep $1.*\.$2
}
{'fraction_non_alphanumeric': 0.18971061093247588, 'fraction_numerical': 0.02612540192926045, 'mean_word_length': 2.2116129032258063, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '184484', 'n_tokens_mistral': 1019, 'n_tokens_neox': 976, 'n_words': 271}