<commit_before>#!/bin/sh

generate_template() {
	local package_name=$1
	local name=$1
	local path="$(pwd)/tests/redirects/${name}"
	mkdir -p $path
	cat > "${path}/gone.t" <<EOF
my \$test = ${package_name}::Ratified::Gone->new();
\$test->input_file("dist/${name}_mappings_source.csv");
\$test->output_file("dist/${name}_gone_output.csv");
\$test->output_error_file("dist/${name}_gone_errors.csv");
\$test->run_tests();
exit;


package ${package_name}::Ratified::Gone;
use base 'IntegrationTest';

use v5.10;
use strict;<commit_msg>Name is now l.c. package name.<commit_after>#!/bin/sh

generate_template() {
	local package_name=$1
	local name=$(echo "$package_name" | tr [:upper:] [:lower:])
	local path="$(pwd)/tests/redirects/${name}"
	mkdir -p $path
	cat > "${path}/gone.t" <<EOF
my \$test = ${package_name}::Ratified::Gone->new();
\$test->input_file("dist/${name}_mappings_source.csv");
\$test->output_file("dist/${name}_gone_output.csv");
\$test->output_error_file("dist/${name}_gone_errors.csv");
\$test->run_tests();
exit;


package ${package_name}::Ratified::Gone;
use base 'IntegrationTest';

use v5.10;
use strict;
{'fraction_non_alphanumeric': 0.22350845948352627, 'fraction_numerical': 0.008014247551202136, 'mean_word_length': 6.594594594594595, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '3846527', 'n_tokens_mistral': 438, 'n_tokens_neox': 413, 'n_words': 70}