<commit_before><?php
/**
 * Factory
 *
 * @package   brightnucleus/chainmail
 * @author    <NAME> <<EMAIL>>
 * @license   GPL-2.0+
 * @link      http://www.brightnucleus.com/
 * @copyright 2016 <NAME>, Bright Nucleus
 */

namespace BrightNucleus\ChainMail\Support;

use RuntimeException;

/**
 * Class SectionFactory
 *
 * @since   1.0.0
 *
 * @package BrightNucleus\ChainMail
 * @author  <NAME> <<EMAIL>>
 */
class Factory {

	/**
	 * Configuration Settings.
	 *
	 * @since 1.0.0
	 *
	 * @var ConfigInterface
	 */
	protected $config;

	/**
	 * Instantiate a SectionFactory object.
	 *
	 * @since 1.0.0
	 *
	 * @param ConfigInterface $config  Configuration settings.
	 * @param string          $element The type of element to instantiate a
	 *                                 factory for.
	 * @throws RuntimeException When an unknown element type is requested.
	 */
	public function __construct( ConfigInterface $config, $element ) {

		$this->config = $config;

		if ( ! $this->config->has_key( $element ) ) {
			throw new RuntimeException( sprintf(
				'Could not instantiate Factory for unknown Element Type "%1$s".',
				$element
			) );
		}

		$this->element = $element;
	}
<commit_msg>Correct factory docblock.<commit_after><?php
/**
 * Factory
 *
 * @package   brightnucleus/chainmail
 * @author    <NAME> <<EMAIL>>
 * @license   GPL-2.0+
 * @link      http://www.brightnucleus.com/
 * @copyright 2016 <NAME>, Bright Nucleus
 */

namespace BrightNucleus\ChainMail\Support;

use RuntimeException;

/**
 * Class SectionFactory
 *
 * @since   1.0.0
 *
 * @package BrightNucleus\ChainMail
 * @author  <NAME> <<EMAIL>>
 */
class Factory {

	/**
	 * Configuration Settings.
	 *
	 * @since 1.0.0
	 *
	 * @var ConfigInterface
	 */
	protected $config;

	/**
	 * Instantiate a Factory object.
	 *
	 * @since 1.0.0
	 *
	 * @param ConfigInterface $config  Configuration settings.
	 * @param string          $element The type of element to instantiate a
	 *                                 factory for.
	 * @throws RuntimeException When an unknown element type is requested.
	 */
	public function __construct( ConfigInterface $config, $element ) {

		$this->config = $config;

		if ( ! $this->config->has_key( $element ) ) {
			throw new RuntimeException( sprintf(
				'Could not instantiate Factory for unknown Element Type "%1$s".',
				$element
			) );
		}

		$this->element = $element;
	}

{'fraction_non_alphanumeric': 0.13196480938416422, 'fraction_numerical': 0.013405948889819858, 'mean_word_length': 2.73125, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4857536', 'n_tokens_mistral': 822, 'n_tokens_neox': 718, 'n_words': 198}