<commit_before># ------ Projects ------ #
    alias proj='~/workspaces/'
    alias pr='~/workspaces/'
    alias project='~/workspaces/'
    alias daily='cd ~/workspaces/DailyProgrammer'
    alias acm='cd ~/workspaces/ACM'
    alias scripts='cd ~/workspaces/scripts'
    alias cfg_zsh='~/.oh-my-zsh'
    alias cfgs='~/workspaces/configs/'

# ------ Bigsky ------ #
    alias bigsky='~/workspaces/wf/bigsky/z_bigsky && source ~/dev/wf/sky/bin/activate'
    alias sky='bigsky'
    alias skytest='python manage.py test --test-seed=-1'
    alias lgtest='python manage.py test --test-seed=-1 2>&1 |tee  ~/workspaces/wf/test-logs/BigSkyTests_`date +%y.%m.%d_%I:%M%p`.log'
    alias testlogs='ll ~/workspaces/wf/test-logs/'
    alias readlogs='subl ~/workspaces/wf/test-logs/'
    alias server=' python manage.py ruPnserver 8001'
    alias server_nc='python manage.py runserver 8001 --disable_static_caching'
    alias snc='python manage.py runserver 8001 --disable_static_caching'
    alias erasereset=' python tools/erase_reset_data.py'
    alias mvn='nocorrect mvn'
    alias skyup='pip install -Ur requirements_dev.txt && pip install -Ur requirements.txt'
    alias wfhome='~/workspaces/wf/bigsky/z_bigsky/apps/home/ '
    alias wfrich='~/workspaces/wf/bigsky/z_bigsky/externals/richapps/'

# ------ Build Tools ------ #
    alias basic='ant clean-no-flex stage-no-flex generate-media'
    alias full='ant clean generate-as build stage generate-media'
    alias lazy='ant build-lazy generate-me  dia'
    alias js='ant clean-no-flex stage-no-flex'
    alias release='ant clean generate-as build-release stage generate-media'
    alias bust='ant -f build_parallel.xml bust-my-cache'
    alias build_generate='ant -f build_parallel.xml generate-as'

# ------ Web Bones ------ #
    alias bones='~/workspaces/wf/web-bones'
    alias bonediff='git diff WebBones/master'

# ------ Python ------ #
    alias clean_pyc='find . -name \*.pyc -exec rm {} \;'

# ------ GAE Tools ------ 
    alias start_server=' python manage.py runserver 8001'
    alias remote_console=' python tools/remote_api/console.py --servername=wf-keil.appspot.com --appid=s~wf-keil'
    alias remote_console_s16=' python tools/remote_api/console.py --servername=wf-section16.appspot.com --appid=s~wf-section16'
    alias remote_console_local=' python tools/remote_api/console.py --servername=localh329t:8001'
    alias deploy_to_appspot=' appcfg.py  -A wf-keil update . -V'
    alias reset_appspot_datastore=' python tools/remote_api/create_test_docs.py --servername=wf-keil.appspot.com --appid=s~wf-keil'
    alias reset_local_datastore=" python tools/erase_reset_data.py --admin='<EMAIL>' --password='<PASSWORD>'"

# ------ Github ------ #
    alias gitsu='git submodule init && git submodule update'
    alias skydiff='git diff BigSky/master'
    alias mydiff='gd origin/'
    alias skyreset='git reset --hard Bigsky/master' #Reset branch to BigSky/Master branch.
    alias gs='git status'

    # ------ Github Config Commands ------ #
        # sets global alias for git log, also makes log pretty and easier to read.
        # git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

        # sets global config to colorize most git output from cli
        # git config --global color.ui true

        # sets config to push current branch to origin when calling `git push origin`
        # git config remote.origin.push HEAD

        # push the current branch to update a branch with the same name on the receiving end. Works in both central and non-central workflows.
        # git config --global push.default current

        # git grep configuration
        # git config --global grep.extendRegexp true
        # git config --global alias.g "grep --break --heading --line-number"
        # git config --global grep.lineNumber true

# ------ Functions ------ #
    git_commit_and_push() {
        [[-z $2]] &&  remote_branch=$2 ||  remote_branch='KenMaiRemote';
        # NO: int a = ($b == 5) ? $c : $d;
        # case "$b" in
        #      5) a=$c ;;
        #      *) a=$d ;;
        # esac
         # [[ $b = 5 ]] && a="$c" || a="$d"

        git commit -a -m $1;
        git push origin;
        git push $remote_branch;
    }
    alias gcandp='git_commit_and_push'

    git_checkout() {
        git checkout $1;
        gitsu;
        git status;
    }
    alias gco='git_checkout'

    #show diff against upstream branch.
    git_diff_all_remotes(){
        echo "Auto Diff. Origin Excluded."
        CUR_NAME=`git rev-parse --abbrev-ref HEAD`;

        #setup remote branches to compare against. Defaults to All remotes.
        if [ -n "$1" ]; then
            REMOTE_BRANCHES=("$1");
        else
            REMOTE_BRANCHES=($(git remote));
        fi

        for REMOTE in ${REMOTE_BRANCHES[@]}
        do
            #compare against branch
            { #try
                # if [$REMOTE -ne 'origin']; then
                    echo "Diff for:" $REMOTE
                    REMOTE=$(echo $REMOTE | sed 's/origin//g')
                    sleep 2s;
                    git diff $REMOTE/$CUR_NAME 2>/dev/null;
                    git diff $REMOTE/$CUR_NAME --numstat 2>/dev/null;
                # fi
            } || { #catch
                echo "No diff for " $REMOTE "/" $CUR_NAME
            }
        done

    # One Liner
    # {git diff KenMaiRemote/$(git rev-parse --abbrev-ref HEAD) 2>/dev/null}||{ echo "no diff" }
    }
    alias gda='git_diff_all_remotes'

    # git_current_branch=`git rev-parse --abbrev-ref HEAD`;
    # gcb=$git_current_branch
    # cb=$git_current_branch
    # git_current_checksum=`git rev-parse --sq HEAD@{now} | sed_remove_list '\ ' '\*' "'"`;
    # gchs=$git_current_checksum

    sed_remove_list(){
        sed_format=''
        for arg in $@
        do
            $sed_format+='s/'$arg'//g;'
        done
        sed $sed_format
    }
    alias sr='sed_remove_list'

    server_restart_and_bust(){
        print "Stopping Servers..."
        ks('python manage.py');
        print 'Servers Stopped!'

        print 'Busting Cache...'
        ant -f build_parallel.xml bust-my-cache > /dev/null 2>&1;
        print 'Busted!'

        print 'Starting Server...'
        python manage.py runserver 8001 --disable_static_caching > /dev/null 2>&1;
        print 'Started!'<commit_msg>Added more aliases and fixed some<commit_after># ------ Projects ------ #
    alias proj='~/workspaces/'
    alias pr='~/workspaces/'
    alias project='~/workspaces/'
    alias daily='cd ~/workspaces/DailyProgrammer'
    alias acm='cd ~/workspaces/ACM'
    alias scripts='cd ~/workspaces/scripts'
    alias cfg_zsh='~/.oh-my-zsh'
    alias cfgs='~/workspaces/configs/'

# ------ Bigsky ------ #
    alias bigsky='~/workspaces/wf/bigsky/z_bigsky && source ~/dev/wf/sky/bin/activate'
    alias sky='bigsky'
    alias skytest='python manage.py test --test-seed=-1'
    alias lgtest='python manage.py test --test-seed=-1 2>&1 |tee  ~/workspaces/wf/test-logs/BigSkyTests_`date +%y.%m.%d_%I:%M%p`.log'
    alias testlogs='ll ~/workspaces/wf/test-logs/'
    alias readlogs='subl ~/workspaces/wf/test-logs/'
    alias server=' python manage.py runserver 8001'
    alias server_nc='python manage.py runserver 8001 --disable_static_caching'
    alias snc='python manage.py runserver 8001 --disable_static_caching'
    alias erasereset=' python tools/erase_reset_data.py'
    alias mvn='nocorrect mvn'
    alias skyup='pip install -Ur requirements_dev.txt && pip install -Ur requirements.txt'
    alias wfhome='~/workspaces/wf/bigsky/z_bigsky/apps/home/ '
    alias wfrich='~/workspaces/wf/bigsky/z_bigsky/externals/richapps/'

# ------ Build Tools ------ #
    alias basic='ant clean-no-flex stage-no-flex generate-media'
    alias full='ant clean generate-as build stage generate-media'
    alias lazy='ant build-lazy generate-me  dia'
    alias js='ant clean-no-flex stage-no-flex'
    alias release='ant clean generate-as build-release stage generate-media'
    alias bust='ant -f build_parallel.xml bust-my-cache'
    alias build_generate='ant -f build_parallel.xml generate-as'

# ------ Web Bones ------ #
    alias bones='~/workspaces/wf/web-bones'
    alias bonediff='git diff WebBones/master'

# ------ Python ------ #
    alias clean_pyc='find . -name \*.pyc -exec rm {} \;'

# ------ GAE Tools ------ 
    alias start_server=' python manage.py runserver 8001'
    alias remote_console=' python tools/remote_api/console.py --servername=wf-keil.appspot.com --appid=s~wf-keil'
    alias remote_console_s16=' python tools/remote_api/console.py --servername=wf-section16.appspot.com --appid=s~wf-section16'
    alias remote_console_local=' python tools/remote_api/console.py --servername=localh329t:8001'
    alias deploy_to_appspot=' appcfg.py  -A wf-keil update . -V'
    alias reset_appspot_datastore=' python tools/remote_api/create_test_docs.py --servername=wf-keil.appspot.com --appid=s~wf-keil'
    alias reset_local_datastore=" python tools/erase_reset_data.py --admin='<EMAIL>' --password='<PASSWORD>'"

# ------ Github ------ #
    alias gitsu='git submodule init && git submodule update'
    alias skydiff='git diff BigSky/master'
    alias mydiff='gd origin/'
    alias skyreset='git reset --hard Bigsky/master' #Reset branch to BigSky/Master branch.
    alias gs='git status'

    # ------ Github Config Commands ------ #
        # sets global alias for git log, also makes log pretty and easier to read.
        # git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

        # sets global config to colorize most git output from cli
        # git config --global color.ui true

        # sets config to push current branch to origin when calling `git push origin`
        # git config remote.origin.push HEAD

        # push the current branch to update a branch with the same name on the receiving end. Works in both central and non-central workflows.
        # git config --global push.default current

        # git grep configuration
        # git config --global grep.extendRegexp true
        # git config --global alias.g "grep --break --heading --line-number"
        # git config --global grep.lineNumber true

# ------ Functions ------ #
    git_commit_and_push() {
        [[-z $2]] &&  remote_branch=$2 ||  remote_branch='KenMaiRemote';
        # NO: int a = ($b == 5) ? $c : $d;
        # case "$b" in
        #      5) a=$c ;;
        #      *) a=$d ;;
        # esac
         # [[ $b = 5 ]] && a="$c" || a="$d"

        git commit -a -m $1;
        git push origin;
        git push $remote_branch;
    }
    alias gcandp='git_commit_and_push'

    git_checkout() {
        git checkout $1;
        gitsu;
        git status;
    }
    alias gco='git_checkout'

    #show diff against upstream branch.
    git_diff_all_remotes(){
        echo "Auto Diff. Origin Excluded."
        CUR_NAME=`git rev-parse --abbrev-ref HEAD`;

        #setup remote branches to compare against. Defaults to All remotes.
        if [ -n "$1" ]; then
            REMOTE_BRANCHES=("$1");
        else
            REMOTE_BRANCHES=($(git remote));
        fi

        for REMOTE in ${REMOTE_BRANCHES[@]}
        do
            #compare against branch
            { #try
                # if [$REMOTE -ne 'origin']; then
                    echo "Diff for:" $REMOTE
                    REMOTE=$(echo $REMOTE | sed 's/origin//g')
                    sleep 2s;
                    git diff $REMOTE/$CUR_NAME 2>/dev/null;
                    git diff $REMOTE/$CUR_NAME --numstat 2>/dev/null;
                # fi
            } || { #catch
                echo "No diff for " $REMOTE "/" $CUR_NAME
            }
        done

    # One Liner
    # {git diff KenMaiRemote/$(git rev-parse --abbrev-ref HEAD) 2>/dev/null}||{ echo "no diff" }
    }
    alias gda='git_diff_all_remotes'

    # git_current_branch=`git rev-parse --abbrev-ref HEAD`;
    # gcb=$git_current_branch
    # cb=$git_current_branch
    git_current_checksum=`git rev-parse --sq HEAD@{now} | sed_remove_list '\ ' '\*' "'"`;
    alias gcks='print $git_current_checksum'

    sed_remove_list(){
        sed_format=''
        for arg in $@
        do
            $sed_format+="s/${arg}//g"
        done
        sed $sed_format
    }
    alias sr='sed_remove_list'

    server_restart_and_bust(){
        print "Stopping Servers..."
        ks('python manage.py');
        print 'Servers Stopped!'

        print 'Busting Cache...'
        ant -f build_parallel.xml bust-my-cache > /dev/null 2>&1;
        print 'Busted!'

        print 'Starting Server...'
        python manage.py runserver 8001 --disable_static_caching > /dev/null 2>&1;
        print 'Started!'
{'fraction_non_alphanumeric': 0.14282378580323785, 'fraction_numerical': 0.008405977584059776, 'mean_word_length': 2.3184400826446283, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '297398', 'n_tokens_mistral': 4407, 'n_tokens_neox': 4043, 'n_words': 1040}