<commit_before><?php

abstract class Media_Compiler {

	/**
	 * Add contents to the file specified, while
	 * also recursively creating the directory the
	 * file should be located in if it doesn't exist
	 *
	 * @param string $filepath The file location
	 * @param string $contents The file contents
	 */
	public function put_contents($filepath, $contents)
	{
		// Genearte the directory tree
		$this->make_missing_directories($filepath);

		// Create the file with the contents
		file_put_contents($filepath, $contents);
	}

	/**
	 * Recursively create a directory path in the
	 * filesysystem if the path doesn't exist
	 *
	 * @param string $filepath The file path to create
	 */
	public function make_missing_directories($filepath)
	{
		// Get the real directory path
		$directory = pathinfo($filepath, PATHINFO_DIRNAME);

		// Create missing directories recursively
		if ( ! is_dir($directory))
		{
			mkdir($directory, 0777, TRUE);
		}
	}

	/**
	 * Compile a type of media source and place
	 * the compiled file(s) into the configured
	 * location in the applications media directory
	 *
	 * @param array $filepaths Files to compile
	 * @param array $options Compiler options
	 */
	abstract public function compile(array $filepaths, array $options);

}<commit_msg> Rename the first parameter for the compile mthod<commit_after><?php

abstract class Media_Compiler {

	/**
	 * Add contents to the file specified, while
	 * also recursively creating the directory the
	 * file should be located in if it doesn't exist
	 *
	 * @param string $filepath The file location
	 * @param string $contents The file contents
	 */
	public function put_contents($filepath, $contents)
	{
		// Genearte the directory tree
		$this->make_missing_directories($filepath);

		// Create the file with the contents
		file_put_contents($filepath, $contents);
	}

	/**
	 * Recursively create a directory path in the
	 * filesysystem if the path doesn't exist
	 *
	 * @param string $filepath The file path to create
	 */
	public function make_missing_directories($filepath)
	{
		// Get the real directory path
		$directory = pathinfo($filepath, PATHINFO_DIRNAME);

		// Create missing directories recursively
		if ( ! is_dir($directory))
		{
			mkdir($directory, 0777, TRUE);
		}
	}

	/**
	 * Compile a type of media source and place
	 * the compiled file(s) into the configured
	 * location in the applications media directory
	 *
	 * @param array $paths Associative array of source => compiled file
	 * @param array $options Compiler options
	 */
	abstract public function compile(array $paths, array $options);

}
{'fraction_non_alphanumeric': 0.08789514263685427, 'fraction_numerical': 0.0030840400925212026, 'mean_word_length': 3.8144712430426715, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '1973534', 'n_tokens_mistral': 788, 'n_tokens_neox': 698, 'n_words': 279}