<commit_before>#!/usr/bin/env bash

# This script populates the project set in the environment variable
# OS_TENANT_NAME with various resources. The purpose is to test
# ospurge.

# Be strict
set -xue
set -o pipefail

TOP_DIR=$(cd $(dirname "$0") && pwd)
source $TOP_DIR/utils.bash
<commit_msg>[ospopulate] check if variable OS_TENANT_NAME is set and non-empty<commit_after>#!/usr/bin/env bash

# This script populates the project set in the environment variable
# OS_TENANT_NAME with various resources. The purpose is to test
# ospurge.

# Be strict
set -xue
set -o pipefail

# Check if needed environment variable OS_TENANT_NAME is set and non-empty.
: "${OS_TENANT_NAME:?Need to set OS_TENANT_NAME non-empty}"

TOP_DIR=$(cd $(dirname "$0") && pwd)
source $TOP_DIR/utils.bash

{'fraction_non_alphanumeric': 0.09897172236503857, 'fraction_numerical': 0.002570694087403599, 'mean_word_length': 4.770370370370371, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '731847', 'n_tokens_mistral': 271, 'n_tokens_neox': 263, 'n_words': 93}