<commit_before>
#This file should test if the system starts up properly.

use Test;
use Hiker;

plan 2;

#Start the server.
my $app = Hiker.new(
    hikes     => ['controllers', 'models'],<commit_msg>The test now will make a `repos.json` file if needed.<commit_after>
#This file should test if the system starts up properly.

use Test;
use Hiker;

plan 2;

#Make sure that there is a `repos.json` file.
try {
    copy("example.json", "repos.json", :createonly);
    use JSON::Fast;
    my $conf = from-json slurp("repos.json");
    $conf<repos>[0]<path> = $*CWD.Str;
    spurt "repos.json".IO, to-json($conf);
}

#Start the server.
my $app = Hiker.new(
    hikes     => ['controllers', 'models'],
{'fraction_non_alphanumeric': 0.15086206896551724, 'fraction_numerical': 0.004310344827586207, 'mean_word_length': 3.585526315789474, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3544464', 'n_tokens_mistral': 253, 'n_tokens_neox': 243, 'n_words': 83}