<commit_before><?php

// Use autoload
require __DIR__.'/../../autoload.php';

// Or include classes
// require_once(__DIR__.'/src/Builder.php');
// require_once(__DIR__.'/src/Extractor.php');
// require_once(__DIR__.'/example/User.php');
// require_once(__DIR__.'/example/Document.php');

use Zckrs\GenDocApi\Builder;

// Define classes to search annotations
$classes = array(
    'Example\User',
    'Example\Document',
);

try {
    $builder = new Builder($classes,
        array(
            'output_file'  => 'index.html',
            'output_dir'   => __DIR__.'/../web',
            'template_dir' => __DIR__.'/Resources/views',
            'asset_dir'    => __DIR__.'/Resources/assets',
        )
    );
    $builder->generate();
} catch (\Exception $e) {
    echo 'There was an error generating the documentation: ', $e->getMessage();
}<commit_msg>Generate index.html with test class<commit_after><?php

// Use autoload
// require __DIR__.'/../../autoload.php';

// Or include classes
require_once(__DIR__.'/src/Builder.php');
require_once(__DIR__.'/src/Extractor.php');
require_once(__DIR__.'/tests/sample/Client.php');

use Zckrs\GenDocApi\Builder;

// Define classes to search annotations
$classes = array(
    'Zckrs\GenDocApi\Test\Client',
);

try {
    $builder = new Builder($classes,
        array(
            'output_file'  => 'index.html',
            'output_dir'   => __DIR__.'/web',
            'template_dir' => __DIR__.'/Resources/views',
            'asset_dir'    => __DIR__.'/Resources/assets',
        )
    );
    $builder->generate();
} catch (\Exception $e) {
    echo 'There was an error generating the documentation: ', $e->getMessage();
}
{'fraction_non_alphanumeric': 0.17594254937163376, 'fraction_numerical': 0.0, 'mean_word_length': 2.817351598173516, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2826293', 'n_tokens_mistral': 533, 'n_tokens_neox': 535, 'n_words': 100}