<commit_before>#!/usr/bin/env nix-shell
#! nix-shell -j 4 -i bash -p stack git
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/cb90e6a0361554d01b7a576af6c6fae4c28d7513.tar.gz
export NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/cb90e6a0361554d01b7a576af6c6fae4c28d7513.tar.gz


set -euo pipefail

# We need to switch to the `explorer` folder first.
cd explorer/
echo "Cardano SL Explorer Web API updating"

readonly CARDANO_DOCS_REPO="${HOME}"/cardanodocs
readonly SWAGGER_EXPLORER_API_JSON_SPEC=explorer-web-api-swagger.json
readonly EXPLORER_API_PRODUCED_ROOT=explorer-web-api
readonly EXPLORER_API_HTML=index.html
readonly EXPLORER_API_ROOT=technical/explorer/api
<commit_msg>CSL-1247 fixed swagger generation script.<commit_after>#!/usr/bin/env nix-shell
#! nix-shell -j 4 -i bash -p stack git
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/cb90e6a0361554d01b7a576af6c6fae4c28d7513.tar.gz
export NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/cb90e6a0361554d01b7a576af6c6fae4c28d7513.tar.gz


set -euo pipefail

echo "Cardano SL Explorer Web API updating"

readonly CARDANO_DOCS_REPO="${HOME}"/cardanodocs
readonly SWAGGER_EXPLORER_API_JSON_SPEC=explorer-web-api-swagger.json
readonly EXPLORER_API_PRODUCED_ROOT=explorer-web-api
readonly EXPLORER_API_HTML=index.html
readonly EXPLORER_API_ROOT=technical/explorer/api

{'fraction_non_alphanumeric': 0.09934735315445975, 'fraction_numerical': 0.07686729514140682, 'mean_word_length': 6.624309392265193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '6635336', 'n_tokens_mistral': 660, 'n_tokens_neox': 580, 'n_words': 85}