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

set -e

git submodule update --init
externals/gyp/gyp tree_sitter.gyp --depth . --format=make $@

if [ "$1" == "-h" ]; then
  cat <<-HELP

Variables:

-D USE_BOOST_REGEX - Use boost regex library for tests, not the built-in regex
                     library. This is useful when linking against an older
                     version of the standard library. libboost_regex must be
                     installed.

HELP
fi
<commit_msg>Update submodules recursively in configure script<commit_after>#!/usr/bin/env bash

set -e

git submodule update --init --recursive
externals/gyp/gyp tree_sitter.gyp --depth . --format=make $@

if [ "$1" == "-h" ]; then
  cat <<-HELP

Variables:

-D USE_BOOST_REGEX - Use boost regex library for tests, not the built-in regex
                     library. This is useful when linking against an older
                     version of the standard library. libboost_regex must be
                     installed.

HELP
fi

{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.00202020202020202, 'mean_word_length': 2.207119741100324, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2805799', 'n_tokens_mistral': 306, 'n_tokens_neox': 286, 'n_words': 108}