<commit_before>#! /bin/bash
#
# Run this script from the top level directory of the ct-go repo e.g.
# with scripts/update_changelog.sh.
#
# GOPATH must be set.

set +e
d=${GOPATH[0]}

# Get and build the correct branch that includes markdown output
# TODO(Martin2112): replace with upstream repo if/when aktau/github-release#81 is merged
go get -u github.com/Martin2112/github-release

# Generate the changelog
${d}/bin/github-release info -r certificate-transparency-go -u google --markdown > CHANGELOG.md

<commit_msg>Rely on $PATH containing "$GOPATH/bin" to find Go binaries<commit_after>#! /bin/bash
#
# Run this script from the top level directory of the ct-go repo e.g.
# with scripts/update_changelog.sh.

set +e

# Get and build the correct branch that includes markdown output
# TODO(Martin2112): replace with upstream repo if/when aktau/github-release#81 is merged
go get -u github.com/Martin2112/github-release

# Generate the changelog.
github-release info \
  -r certificate-transparency-go \
  -u google \
  --markdown > CHANGELOG.md


{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.02, 'mean_word_length': 4.028708133971292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '489583', 'n_tokens_mistral': 365, 'n_tokens_neox': 337, 'n_words': 119}