<commit_before>#!/bin/sh
#
# Usage:
#   pwcalc.sh <alias> [length]
#
# Example:
#   pwcalc.sh gmail.com 8
#

pwcalc() {
    local ALIAS="$1"
    local LENGTH="${2:-16}"

    case "`uname -s`" in
        Linux)  SHASUM=sha1sum;; # Linux
        *)      SHASUM=shasum;;  # MacOS, *BSD
    esac<commit_msg>better find for sha*sum<commit_after>#!/bin/sh
#
# Usage:
#   pwcalc.sh <alias> [length]
#
# Example:
#   pwcalc.sh gmail.com 8
#

pwcalc() {
    local ALIAS="$1"
    local LENGTH="${2:-16}"

    SHASUM=$(which shasum 2>/dev/null || which sha1sum 2>/dev/null)
{'fraction_non_alphanumeric': 0.1903914590747331, 'fraction_numerical': 0.02491103202846975, 'mean_word_length': 2.8299319727891157, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '160540', 'n_tokens_mistral': 256, 'n_tokens_neox': 236, 'n_words': 47}