<commit_before>#!/bin/bash
# Screen capture and upload utility for puush
# (C) 2014 Volvagia356
#
# Requires scrot, curl, and xclip
# zenity can be optional
#
# Usage: puush-screenshot.sh [--full|--area|--help]

#Insert your API key here
APIKEY=""

function show_usage {
    echo "Performs screen capture and uploads to puush"
    echo "Usage: $0 [--full|--area|--help]"
    echo "--full    Captures entire screen"
    echo "--area    Captures window or rectangular area"
    echo "--help    Shows this help"
    echo "If an argument is used, the zenity UI is disabled"
}

function zenity {
    if [ $USE_ZENITY = 0 ]; then
        return 0
    else
        env zenity "$@"
        return $?
    fi
}

which zenity > /dev/null
if [ $? != 0 ]; then<commit_msg>Read API key from config file<commit_after>#!/bin/bash
# Screen capture and upload utility for puush
# (C) 2014 Volvagia356
#
# Requires scrot, curl, and xclip
# zenity can be optional
#
# Usage: puush-screenshot.sh [--full|--area|--help]

# Save your API key in ~/.config/puush
APIKEY=`cat ~/.config/puush`

function show_usage {
    echo "Performs screen capture and uploads to puush"
    echo "Usage: $0 [--full|--area|--help]"
    echo "--full    Captures entire screen"
    echo "--area    Captures window or rectangular area"
    echo "--help    Shows this help"
    echo "If an argument is used, the zenity UI is disabled"
}

function zenity {
    if [ $USE_ZENITY = 0 ]; then
        return 0
    else
        env zenity "$@"
        return $?
    fi
}

which zenity > /dev/null
if [ $? != 0 ]; then
{'fraction_non_alphanumeric': 0.12132822477650064, 'fraction_numerical': 0.0140485312899106, 'mean_word_length': 2.652680652680653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1635775', 'n_tokens_mistral': 557, 'n_tokens_neox': 525, 'n_words': 186}