<commit_before>#! /bin/bash

while true; do
    dialog --menu "Your biding?" 30 80 2 1 a 2 b
done
<commit_msg>Add error reports and psql<commit_after>#! /bin/bash

echo "*:*:*:*:$DBPASS" > ~/.pgpass
chmod 0600 ~/.pgpass

export PGUSER="canvas"
export PGHOST=$DB_PORT_5432_TCP_ADDR
export PGPORT=$DB_PORT_5432_TCP_PORT

while true; do
    cmd=(dialog --keep-tite --menu "Select options:" 22 76 16)

    options=(1 "Error reports"
             2 "Option 2"
             3 "Psql"
             4 "Option 4")

    choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)

    for choice in $choices
    do
        case $choice in
            1)
                echo '\x on \\ SELECT message, backtrace FROM error_reports ORDER BY id DESC' | psql canvas_production
                echo "Press a key"
                read
                ;;
            2)
                echo "Second Option"
                ;;
            3)
                psql canvas_production
                ;;
            4)
                echo "Fourth Option"
                ;;
        esac
    done
done
     
{'fraction_non_alphanumeric': 0.11131725417439703, 'fraction_numerical': 0.03432282003710575, 'mean_word_length': 1.4861751152073732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '6823359', 'n_tokens_mistral': 367, 'n_tokens_neox': 323, 'n_words': 103}