<commit_before>#!/usr/bin/env bash
d="$( cd "$( dirname "$0" )" || exit 1; cd ..; pwd )"

fen="$d/../soracom-api/build/soracom-api.en.yaml"
fja="$d/../soracom-api/build/soracom-api.ja.yaml"

if [ ! -f "$fen" ] || [ ! -f "$fja" ]; then
  echo "API definition files not found. Build soracom-api first."
  exit 1
fi

cp "$d/../soracom-api/build/soracom-api.en.yaml" "$d/generators/assets/"
cp "$d/../soracom-api/build/soracom-api.ja.yaml" "$d/generators/assets/"
<commit_msg>copy sandbox api definition files as well<commit_after>#!/usr/bin/env bash
d="$( cd "$( dirname "$0" )" || exit 1; cd ..; pwd )"

fen="$d/../soracom-api/build/soracom-api.en.yaml"
fja="$d/../soracom-api/build/soracom-api.ja.yaml"

if [ ! -f "$fen" ] || [ ! -f "$fja" ]; then
  echo "API definition files not found. Build soracom-api first."
  exit 1
fi

set -x
cp "$d/../soracom-api/build/soracom-api.en.yaml" "$d/generators/assets/"
cp "$d/../soracom-api/build/soracom-api.ja.yaml" "$d/generators/assets/"

cp "$d/../soracom-api/apidef/sandbox/soracom-sandbox-api.en.yaml" "$d/generators/assets/sandbox/"
cp "$d/../soracom-api/build/soracom-sandbox-api.ja.yaml"          "$d/generators/assets/sandbox/"
set +x
{'fraction_non_alphanumeric': 0.23434856175972926, 'fraction_numerical': 0.005076142131979695, 'mean_word_length': 3.225, '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': '7561491', 'n_tokens_mistral': 495, 'n_tokens_neox': 496, 'n_words': 88}