<commit_before>#!/usr/bin/env perl6

use v6;

use lib $?FILE.IO.parent.parent.child('lib');

use Pray;

sub MAIN (
	Str $scene = 'scene.json',
	Str $image? is copy,
	Int :$width,
	Int :$height,
	Bool :$quiet = False,
	Bool :$verbose = False,
	Bool :$preview = !$quiet,
) {
	$image //= 
		$scene.IO.basename ~~ /^ (.*) \. .*? $/ ??
		"$0.ppm" !!
		'scene.ppm';
	
	Pray::render(
		$scene,
		$image,
		$width,
		$height,
		:$quiet,
		:$verbose,
		:$preview,
	);
}<commit_msg>Use precompiled modules when available<commit_after>#!/usr/bin/env perl6

use v6;

my constant $root = $?FILE.IO.parent.parent;
use lib $root.child('lib');
use lib $root.child('blib').child('lib');

use Pray;

sub MAIN (
	Str $scene = 'scene.json',
	Str $image? is copy,
	Int :$width,
	Int :$height,
	Bool :$quiet = False,
	Bool :$verbose = False,
	Bool :$preview = !$quiet,
) {
	$image //= 
		$scene.IO.basename ~~ /^ (.*) \. .*? $/ ??
		"$0.ppm" !!
		'scene.ppm';
	
	Pray::render(
		$scene,
		$image,
		$width,
		$height,
		:$quiet,
		:$verbose,
		:$preview,
	);
}
{'fraction_non_alphanumeric': 0.22736030828516376, 'fraction_numerical': 0.005780346820809248, 'mean_word_length': 3.1726907630522088, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2788554', 'n_tokens_mistral': 497, 'n_tokens_neox': 452, 'n_words': 97}