<commit_before><?php namespace net\xp_framework\unittest\reflection;

use unittest\TestCase;
use lang\ClassLoader;

/**
 * Base class for runtime type definitions
 *
 * @see   xp://lang.ClassLoader
 * @see   https://github.com/xp-framework/xp-framework/issues/94
 */
abstract class RuntimeTypeDefinitionTest extends TestCase {

  /**
   * Wraps around a function which defines types, giving it unique names and
   * verifying the type has not been defined before.
   *
   * @param  string $annotations
   * @return lang.XPClass
   * @throws unittest.AssertionFailedError
   */
  protected function defineType($annotations, $define) {
    $t= $this->getClassName().'__'.$this->name;
    $spec= $annotations.' '.$t;
    if (interface_exists(\xp::reflect($t), false) || class_exists(\xp::reflect($t), false)) {<commit_msg>QA: Add missing $define parameter apidoc<commit_after><?php namespace net\xp_framework\unittest\reflection;

use unittest\TestCase;
use lang\ClassLoader;

/**
 * Base class for runtime type definitions
 *
 * @see   xp://lang.ClassLoader
 * @see   https://github.com/xp-framework/xp-framework/issues/94
 */
abstract class RuntimeTypeDefinitionTest extends TestCase {

  /**
   * Wraps around a function which defines types, giving it unique names and
   * verifying the type has not been defined before.
   *
   * @param  string $annotations
   * @param  var $define A function
   * @return lang.XPClass
   * @throws unittest.AssertionFailedError
   */
  protected function defineType($annotations, $define) {
    $t= $this->getClassName().'__'.$this->name;
    $spec= $annotations.' '.$t;
    if (interface_exists(\xp::reflect($t), false) || class_exists(\xp::reflect($t), false)) {
{'fraction_non_alphanumeric': 0.13345091122868902, 'fraction_numerical': 0.0023515579071134627, 'mean_word_length': 4.0058823529411764, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '537928', 'n_tokens_mistral': 508, 'n_tokens_neox': 500, 'n_words': 136}