<commit_before><?php
App::uses('AppHelper', 'View/Helper');

/**
 * MarkdownHelper - a CakePHP helper to output Markdown
 *
 * @package MarkdownHelper
 * @version Release: 2.1.0
 * @author <NAME> <<EMAIL>>
 * @link https://github.com/chronon/CakePHP-Markdown-Plugin
 */
class MarkdownHelper extends AppHelper {

/**
 * Converts markdown formatted plain text to HTML
 *
 * @param string $input The markdown formatted text.
 * @return string The converted HTML.
 * @access public
 * @throws CakeException if Markdown lib or Markdown function (vendor file) can't be found/loaded.
 */
	public function md($input) {
		// attempt to use the autoloaded class first
		if (class_exists('Michelf\Markdown')) {
			$Markdown = new Michelf\Markdown;
			return $Markdown->defaultTransform($input);
		}

		// autoload failed, try the included vendor file
		if (!function_exists('Markdown')) {
			throw new CakeException('The Markdown vendor file was not loaded.');
		}
		return Markdown($input);
	}

}<commit_msg>Adding missing import.<commit_after><?php
App::uses('AppHelper', 'View/Helper');

/**
 * MarkdownHelper - a CakePHP helper to output Markdown
 *
 * @package MarkdownHelper
 * @version Release: 2.1.0
 * @author <NAME> <<EMAIL>>
 * @link https://github.com/chronon/CakePHP-Markdown-Plugin
 */
class MarkdownHelper extends AppHelper {

/**
 * Converts markdown formatted plain text to HTML
 *
 * @param string $input The markdown formatted text.
 * @return string The converted HTML.
 * @access public
 * @throws CakeException if Markdown lib or Markdown function (vendor file) can't be found/loaded.
 */
	public function md($input) {
		// attempt to use the autoloaded class first
		if (class_exists('Michelf\Markdown')) {
			$Markdown = new Michelf\Markdown;
			return $Markdown->defaultTransform($input);
		}

		// autoload failed, try the included vendor file
		App::import('Vendor', 'Markdown.markdown/markdown');
		if (!function_exists('Markdown')) {
			throw new CakeException('The Markdown vendor file was not loaded.');
		}
		return Markdown($input);
	}

}
{'fraction_non_alphanumeric': 0.12572815533980583, 'fraction_numerical': 0.002912621359223301, 'mean_word_length': 4.230964467005077, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '3804537', 'n_tokens_mistral': 658, 'n_tokens_neox': 612, 'n_words': 194}