<commit_before><?php
require_once 'vendor/autoload.php';
use Wa72\HtmlPrettymin\PrettyMin;

$pm = new PrettyMin();

use Webmozart\PathUtil\Path;
use Symfony\Component\Finder\Finder;
use \Bolt\TwigRenderer;

$data = [];
$page = '';

// First arg to CLI - template path
$templatePath = $argv[1];
// Second arg to CLI - JSON string
if ($argv[2]) {
  $page = $argv[2]; // page we need specific data for
}

$json = file_get_contents($page);<commit_msg>fix: update docs site renderer config to not touch CSS or JS included on the page<commit_after><?php
require_once 'vendor/autoload.php';
use Wa72\HtmlPrettymin\PrettyMin;

$pm = new PrettyMin([
  'minify_js' => false,
  'minify_css' => false,
]);

use Webmozart\PathUtil\Path;
use Symfony\Component\Finder\Finder;
use \Bolt\TwigRenderer;

$data = [];
$page = '';

// First arg to CLI - template path
$templatePath = $argv[1];
// Second arg to CLI - JSON string
if ($argv[2]) {
  $page = $argv[2]; // page we need specific data for
}

$json = file_get_contents($page);
{'fraction_non_alphanumeric': 0.15285996055226825, 'fraction_numerical': 0.009861932938856016, 'mean_word_length': 4.31413612565445, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5873750', 'n_tokens_mistral': 367, 'n_tokens_neox': 361, 'n_words': 102}