<commit_before><?php
$loader = require "vendor/autoload.php";
require "tests/model_helpers.php";
mb_internal_encoding('UTF-8');
error_reporting(E_ALL);
$loader->add(null,'tests');
$loader->add(null,'tests/src');

use LazyRecord\Schema\SchemaGenerator;
use LazyRecord\ConfigLoader;
use CLIFramework\Logger;

$config = ConfigLoader::getInstance();
$config->loadFromSymbol(true);
$config->initForBuild();

$logger = new Logger;
$logger->quiet();
$logger->info("Building schema class files...");

// build schema class files
$schemas = array(
    new \TestApp\Model\UserSchema,
    new \TestApp\Model\IDNumberSchema,
    new \TestApp\Model\NameSchema,
    new \AuthorBooks\Model\AddressSchema,
    new \AuthorBooks\Model\BookSchema,
    new \AuthorBooks\Model\AuthorSchema,
    new \AuthorBooks\Model\AuthorBookSchema,
    new \AuthorBooks\Model\PublisherSchema,
    new \MetricApp\Model\MetricValueSchema,
    new \PageApp\Model\PageSchema,
    new \StoreApp\Model\StoreSchema,
);
$g = new \LazyRecord\Schema\SchemaGenerator($config, $logger);
$g->setForceUpdate(true);
$g->generate($schemas, true);
// $logger->info("Starting tests...");<commit_msg>Add more missing schemas to bootstrap script for updating schema files<commit_after><?php
$loader = require "vendor/autoload.php";
require "tests/model_helpers.php";
mb_internal_encoding('UTF-8');
error_reporting(E_ALL);
$loader->add(null,'tests');
$loader->add(null,'tests/src');

use LazyRecord\Schema\SchemaGenerator;
use LazyRecord\ConfigLoader;
use CLIFramework\Logger;

$config = ConfigLoader::getInstance();
$config->loadFromSymbol(true);
$config->initForBuild();

$logger = new Logger;
$logger->quiet();
$logger->info("Building schema class files...");

// build schema class files
$schemas = array(
    new \AuthorBooks\Model\AddressSchema,
    new \AuthorBooks\Model\AuthorBookSchema,
    new \AuthorBooks\Model\AuthorSchema,
    new \AuthorBooks\Model\BookSchema,
    new \AuthorBooks\Model\PublisherSchema,
    new \AuthorBooks\Model\TagSchema,
    new \MetricApp\Model\MetricValueSchema,
    new \PageApp\Model\PageSchema,
    new \StoreApp\Model\StoreSchema,
    new \TestApp\Model\EdmSchema,
    new \TestApp\Model\IDNumberSchema,
    new \TestApp\Model\NameSchema,
    new \TestApp\Model\PostSchema,
    new \TestApp\Model\TableSchema,
    new \TestApp\Model\UserSchema,
    new \TestApp\Model\WineCategorySchema,
    new \TestApp\Model\WineSchema,
);
$g = new \LazyRecord\Schema\SchemaGenerator($config, $logger);
$g->setForceUpdate(true);
$g->generate($schemas, true);
// $logger->info("Starting tests...");
{'fraction_non_alphanumeric': 0.14930015552099535, 'fraction_numerical': 0.0007776049766718507, 'mean_word_length': 4.914942528735632, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '6395763', 'n_tokens_mistral': 836, 'n_tokens_neox': 813, 'n_words': 151}