<commit_before>#!/bin/bash
###################################
# sote                            #
# https://github.com/leny/sote    #
#                                 #
# Copyright (c) 2014 leny         #
# Licensed under the MIT license. #
###################################

sote() {
    version=0.0.1
    usage="
        Usage: sote [options] [command]

        Commands:

            list                   Lists the paths stored by sote.
            show <name>            Shows the path corresponding to the given name.
            add <name> [path]      Add the path to the store with the given name. If no path is given, use current path.
            remove <name>          Remove the path stored by sote at the given name.
            clear                  Clear all the paths stored by sote. Ask for confirmation before acting.
            *                      Jumps to the path corresponding to the given name.

        Options:

            -h      output usage information
            -V      output the version number
    "
    store="$HOME/.sote"

    # Check for git

    command -v git >/dev/null 2>&1 || { echo "sote requires git but it's not installed. Aborting." >&2; return 1; }

    # Check for store file

    if [ ! -f $store ]
    then
        echo "" > $store
    fi

    # Show help if no args

    if [ $# == 0 ] ; then
        echo "$usage"
        return;
    fi

    # Commands

    action=$1
    arg1=$2
    arg2=$3

    case "$action" in
        "-v")
            echo "sote v$version"
            return;
            ;;
        "--version")
            echo "sote v$version"
            return;
            ;;
        "-h")
            echo "$usage"
            return;
            ;;
        "--help")
            echo "$usage"
            return;<commit_msg>Add some colors<commit_after>#!/bin/bash
###################################
# sote                            #
# https://github.com/leny/sote    #
#                                 #
# Copyright (c) 2014 leny         #
# Licensed under the MIT license. #
###################################

sote() {

    # sote vars

    local version=0.0.1
    local store="$HOME/.sote"

    # regular colors

    local K="\033[0;30m"    # black
    local R="\033[0;31m"    # red
    local G="\033[0;32m"    # green
    local Y="\033[0;33m"    # yellow
    local B="\033[0;34m"    # blue
    local M="\033[0;35m"    # magenta
    local C="\033[0;36m"    # cyan
    local W="\033[0;37m"    # white

    # emphasized (bolded) colors

    local EMK="\033[1;30m"
    local EMR="\033[1;31m"
    local EMG="\033[1;32m"
    local EMY="\033[1;33m"
    local EMB="\033[1;34m"
    local EMM="\033[1;35m"
    local EMC="\033[1;36m"
    local EMW="\033[1;37m"

    # usage text

    local usage="
    ${EMW}Usage: ${Y}sote ${G}[options] ${C}[command]

    ${EMC}Commands:

        ${C}list                   ${W}Lists the paths stored by sote.
        ${C}show ${B}<name>            ${W}Shows the path corresponding to the given name.
        ${C}add ${B}<name> ${G}[path]      ${W}Add the path to the store with the given name. If no path is given, use current path.
        ${C}remove ${B}<name>          ${W}Remove the path stored by sote at the given name.
        ${C}clear                  ${W}Clear all the paths stored by sote. Ask for confirmation before acting.
        ${C}*                      ${W}Jumps to the path corresponding to the given name.

    ${EMG}Options:

        ${G}-h      ${W}output usage information
        ${G}-V      ${W}output the version number
    "


    # Check for git

    command -v git >/dev/null 2>&1 || { echo "sote requires git but it's not installed. Aborting." >&2; return 1; }

    # Check for store file

    if [ ! -f $store ]
    then
        echo "" > $store
    fi

    # Show help if no args

    if [ $# == 0 ] ; then
        echo -e "$usage"
        return;
    fi

    # Commands

    action=$1
    arg1=$2
    arg2=$3

    case "$action" in
        "-v")
            echo -e "${Y}sote ${W}v$version"
            return;
            ;;
        "--version")
            echo -e "${Y}sote ${W}v$version"
            return;
            ;;
        "-h")
            echo -e "$usage"
            return;
            ;;
        "--help")
            echo -e "$usage"
            return;
{'fraction_non_alphanumeric': 0.15407784986098239, 'fraction_numerical': 0.030120481927710843, 'mean_word_length': 1.4668571428571429, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6106762', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1269, 'n_words': 401}