<commit_before>#!/usr/bin/perl

opendir(DH, "html") or die "cannot open subdir: $!\n";
@f=readdir(DH);
closedir(DH);
foreach (@f) {
    if (/\.html$/) {
        process("html/$_");
    }
}

sub process
{
    my $f=shift;
    print "$f\n";

    open(TH, ">.tmp") or die "cannot open .tmp: $!\n";

    open(FH, $f) or die "cannot open $f: $!\n";
    while (<FH>) {
        s/href=\"(.*?)\"/href=\"?page=doxygen&module=$1\"/g;
        print TH $_;
    }
    close(FH);
    close(TH);

    `cp .tmp $f`;
}
<commit_msg>fixed html documentation for the webpage<commit_after>#!/usr/bin/perl

opendir(DH, "html_www") or die "cannot open subdir: $!\n";
@f=readdir(DH);
closedir(DH);
foreach (@f) {
    if (/html$/) {
        process("html_www/$_");
    }
}

sub process
{
    my $f=shift;
    print "$f\n";

    open(TH, ">.tmp") or die "cannot open .tmp: $!\n";

    open(FH, $f) or die "cannot open $f: $!\n";
    while (<FH>) {
        s/href=\"(.*?)\"/href=\"?page=doxygen&module=$1\"/g;
        print TH $_;
    }
    close(FH);
    close(TH);

    `cp .tmp $f`;
}

{'fraction_non_alphanumeric': 0.2412818096135721, 'fraction_numerical': 0.001885014137606032, 'mean_word_length': 2.425806451612903, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5792277', 'n_tokens_mistral': 472, 'n_tokens_neox': 435, 'n_words': 107}