<commit_before><?php
namespace pyd\testkit\events;

/**
 * Tests helper.
 *
 * @author <NAME> <<EMAIL>>
 */
class Helper
{
    /**
     * Is a class name a test case class name.
     * 
     * Check if class exists and is a subclass of {@see \pyd\testkit\TestCase}.
     * 
     * @param string $className
     * @param boolean $exceptionOnError if set to false this method will return
     * a boolean. If set to true an exception is thrown instead of returning
     * false
     * @return boolean
     * @throws \Exception class does not exist or is not a subclass of
     * {@see \pyd\testkit\TestCase}
     */
    public static function isTestCaseClassName($className, $exceptionOnError = false)
    {
        if (class_exists($className) && is_subclass_of('\pyd\testkit\TestCase', $className)) {
            return true;
        } else if (!$exceptionOnError) {
            return false;
        } else {
            throw new \Exception("Class '$className' does not exist or is not a subclass of '\pyd\testkit\TestCase'.");
        }
    }
}<commit_msg>Fix param inversion in events Helper method<commit_after><?php
namespace pyd\testkit\events;

/**
 * Tests helper.
 *
 * @author <NAME> <<EMAIL>>
 */
class Helper
{
    /**
     * Is a class name a test case class name.
     * 
     * Check if class exists and is a subclass of {@see \pyd\testkit\TestCase}.
     * 
     * @param string $className
     * @param boolean $exceptionOnError if set to false this method will return
     * a boolean. If set to true an exception is thrown instead of returning
     * false
     * @return boolean
     * @throws \Exception class does not exist or is not a subclass of
     * {@see \pyd\testkit\TestCase}
     */
    public static function isTestCaseClassName($className, $exceptionOnError = false)
    {
        if (class_exists($className) && is_subclass_of($className, '\pyd\testkit\TestCase')) {
            return true;
        } else if (!$exceptionOnError) {
            return false;
        } else {
            throw new \Exception("Class '$className' does not exist or is not a subclass of '\pyd\\testkit\TestCase'.");
        }
    }
}
{'fraction_non_alphanumeric': 0.10749185667752444, 'fraction_numerical': 0.0, 'mean_word_length': 2.4126984126984126, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '5357185', 'n_tokens_mistral': 609, 'n_tokens_neox': 601, 'n_words': 218}