<commit_before>#!/bin/false

wd=$(dirname $BASH_SOURCE)/../

unset __yum
unset __npm
unset __pip

function needcmd
{
    $* || { echo "command <$*> failed" && return 1; }
    return 0
}

function needtool
{
  tool=$1
  which $tool > /dev/null || { echo "please install $tool" && return 1; }

  echo "$tool found."<commit_msg>Added needuser func<commit_after>#!/bin/false

wd=$(dirname $BASH_SOURCE)/../

unset __yum
unset __npm
unset __pip

function needcmd
{
    $* || { echo "command <$*> failed" && return 1; }
    return 0
}

function needuser
{
  user=$1
  id $user 2> /dev/null || useradd -m photos || { echo "useradd failed" && return 1; }

  echo "user $user found."
  return 0
}

function needtool
{
  tool=$1
  which $tool > /dev/null || { echo "please install $tool" && return 1; }

  echo "tool $tool found."
{'fraction_non_alphanumeric': 0.16097560975609757, 'fraction_numerical': 0.014634146341463415, 'mean_word_length': 3.231958762886598, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '1811909', 'n_tokens_mistral': 317, 'n_tokens_neox': 296, 'n_words': 89}