<commit_before><?php namespace Bound1ess\MermaidPhp;

class Graph {

	/**
	 * @var string
	 */
	const TOP_BOTTOM = 'TB';

	/**
	 * @var string
	 */
	const BOTTOM_TOP = 'BT';

	/**
	 * @var string
	 */
	const LEFT_RIGHT = 'LR';

	/**
	 * @var string
	 */
	const RIGHT_LEFT = 'RL';

	/**
	 * @var string|null
	 */
	protected $direction = null;

	/**
	 * @param string $direction
	 * @return void<commit_msg>Add constructor for the Graph class.<commit_after><?php namespace Bound1ess\MermaidPhp;

class Graph {

	/**
	 * @var string
	 */
	const TOP_BOTTOM = 'TB';

	/**
	 * @var string
	 */
	const BOTTOM_TOP = 'BT';

	/**
	 * @var string
	 */
	const LEFT_RIGHT = 'LR';

	/**
	 * @var string
	 */
	const RIGHT_LEFT = 'RL';

	/**
	 * @var string|null
	 */
	protected $direction = null;

	/**
	 * @param string|null $direction
	 */
	public function __construct($direction = null)
	{
		# We only want to call setDirection() if the passed $direction is not equal to null.
		if ( ! is_null($direction))
		{
			$this->setDirection($direction);
		}
	}

	/**
	 * @param string $direction
	 * @return void
{'fraction_non_alphanumeric': 0.16285452881976212, 'fraction_numerical': 0.0018298261665141812, 'mean_word_length': 2.759450171821306, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '1538473', 'n_tokens_mistral': 431, 'n_tokens_neox': 375, 'n_words': 99}