<commit_before>
#include <Mlt.h>
using namespace Mlt;

int main( int, char **argv )
{
	Factory::init( NULL );
	Profile profile;
	Producer producer( profile, argv[ 1 ] );
	Consumer consumer( profile );
	consumer.set( "rescale", "none" );
	consumer.connect( producer );
	consumer.run( );
	return 0;
}<commit_msg>Improve the C++ example.<commit_after>#include <Mlt.h>
using namespace Mlt;

void play(const char *filename)
{
	Profile profile; // defaults to dv_pal
	Producer producer(profile, filename);
	Consumer consumer(profile); // defaults to sdl

	// Prevent scaling to the profile size.
	// Let the sdl consumer do all scaling.
	consumer.set("rescale", "none");

	// Automatically exit at end of file.
	consumer.set("terminate_on_pause", 1);

	consumer.connect(producer);
	consumer.run();
	consumer.stop();
}

int main( int, char **argv )
{
	Factory::init();
	play(argv[1]);
	Factory::close();
	return 0;
}
{'fraction_non_alphanumeric': 0.1496149614961496, 'fraction_numerical': 0.005500550055005501, 'mean_word_length': 4.548780487804878, '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': '2843760', 'n_tokens_mistral': 318, 'n_tokens_neox': 299, 'n_words': 92}