<commit_before>#!/bin/bash

set -e -v -u -o pipefail

if [ -z "${!actor}" ]; then
    echo 'Need to set environment variable "actor"' && exit 1;
fi

if [ -z "${!head_ref}" ]; then
    echo 'Need to set environment variable "head_ref"' && exit 1;
fi

TSC_ERRORS_FILE=tsc-errors
TSC_COUNTS_FILE=tsc-counts
ESLINT_PROBLEMS_FILE=eslint-problems

message="update eslint problems and tsc counts/errors"

git add "$TSC_ERRORS_FILE" "$TSC_COUNTS_FILE" "$ESLINT_PROBLEMS_FILE"

git commit user.name 'github-actions[bot]'
git commit user.email 'github-actions[bot]<EMAIL>'

author="""${actor}"" <${<EMAIL>>"
git commit --author="$author" -m "$message"

git push origin "$head_ref"
<commit_msg>Update update-tsc-and-lint-files.sh<commit_after>#!/bin/bash

set -e -v -u -o pipefail

if [ -z "${!actor+x}" ]; then
    echo 'Need to set environment variable "actor"' && exit 1;
fi

if [ -z "${!head_ref+x}" ]; then
    echo 'Need to set environment variable "head_ref"' && exit 1;
fi

TSC_ERRORS_FILE=tsc-errors
TSC_COUNTS_FILE=tsc-counts
ESLINT_PROBLEMS_FILE=eslint-problems

message="update eslint problems and tsc counts/errors"

git add "$TSC_ERRORS_FILE" "$TSC_COUNTS_FILE" "$ESLINT_PROBLEMS_FILE"

git commit user.name 'github-actions[bot]'
git commit user.email 'github-actions[<EMAIL>]<EMAIL>'

author="""${actor}"" <${<EMAIL>>"
git commit --author="$author" -m "$message"

git push origin "$head_ref"

{'fraction_non_alphanumeric': 0.15974212034383956, 'fraction_numerical': 0.0028653295128939827, 'mean_word_length': 5.154185022026431, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '4921868', 'n_tokens_mistral': 547, 'n_tokens_neox': 527, 'n_words': 137}