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

# This script will systematically recompute hashes for specified php modules
#
# To use this script, simply run it from the top-level of this repo after updating
# 'tasks/build-binary-new/php7-base-extensions.yml' and
# 'tasks/build-binary-new/php7-base-extensions.yml' as follows:
#
# 1. Update the 'version' field for each module being bumped
# 2. Clear the 'md5' field to signal that it should be recomputed

set -euo pipefail

cd "$(dirname "$0")"

bundle install
bundle exec run.rb
<commit_msg>Update php module helper script notes<commit_after>#!/usr/bin/env bash

# This script will systematically recompute hashes for specified php modules.
#
# To use this script, simply run it from the top-level of this repo after updating
# 'tasks/build-binary-new/php7-base-extensions.yml' and
# 'tasks/build-binary-new/php7-base-extensions.yml' as follows:
#
# 1. Update the 'version' field for each module being bumped
# 2. Clear the 'md5' field to signal that it should be recomputed
#
# NOTE: This script assumes that you have cloned
# https://github.com/cloudfoundry/binary-builder into a 'binary-builder'
# directory next to this repo. It also assumes you have bundler installed.

set -euo pipefail

cd "$(dirname "$0")"

bundle install
bundle exec run.rb

{'fraction_non_alphanumeric': 0.09582689335394126, 'fraction_numerical': 0.00927357032457496, 'mean_word_length': 4.351239669421488, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3502027', 'n_tokens_mistral': 405, 'n_tokens_neox': 382, 'n_words': 159}