<commit_before>#!/bin/bash

_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${_dir}/run.config.sh"

require curl omni.py

./src/test/bin/runDelUser.sh > /dev/null

result=$(./src/test/bin/runDelUser.sh)
asssert "testDelUser" "404" "$result"

result=$(./src/test/bin/runAddUser.sh)
asssert "testAddUser" "201" "$result"

result=$(./src/test/bin/runGetUser.sh)
asssert "testGetUser" "200" "$result"

result=$(./src/test/bin/runGetCertificate.sh)
asssert "testGetCertificate" "200" "$result"

result=$(./src/test/bin/runOmniGetVersionAuto.sh|grep -i "fiteagle version")
asssert "testOmniGetVersion" "fiteagle version" "$result"

result=$(./src/test/bin/runOmniListResourcesAuto.sh|grep -i "available")
asssert "testOmniListResources" "available" "$result"
<commit_msg>refactoring<commit_after>#!/bin/bash

_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${_dir}/run.config.sh"

require curl omni.py

./src/test/bin/runDelUser.sh > /dev/null

expect="404"
result=$(./src/test/bin/runDelUser.sh)
asssert "testDelUser" "$expect" "$result"

expect="201"
result=$(./src/test/bin/runAddUser.sh)
asssert "testAddUser" "$expect" "$result"

expect="200"
result=$(./src/test/bin/runGetUser.sh)
asssert "testGetUser" "$expect" "$result"

expect="200"
result=$(./src/test/bin/runGetCertificate.sh)
asssert "testGetCertificate" "$expect" "$result"

expect="fiteagle version"
result=$(./src/test/bin/runOmniGetVersionAuto.sh|grep -i "$expect")
asssert "testOmniGetVersion" "$expect" "$result"

expect="<rspec"
result=$(./src/test/bin/runOmniListResourcesAuto.sh|grep -i "$expect")
asssert "testOmniListResources" "$expect" "$result"

{'fraction_non_alphanumeric': 0.20424242424242425, 'fraction_numerical': 0.01575757575757576, 'mean_word_length': 5.995762711864407, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3603935', 'n_tokens_mistral': 644, 'n_tokens_neox': 627, 'n_words': 103}