<commit_before><?php

chdir(__DIR__);

include '../d-bug.php';

class A {
	
}

class B extends A {
	public $a = 'test';
	public $b = [[1, 2, 3, 4], 2, 3, 4];
	
	const C = 42;
	
	public static function test($a, $b = true) {
		return true;
	}
}

$test = [];
$test[] = fopen(__FILE__, 'r');
$test[] = 'test';
$test[] = 1;
$test[] = 2.3;
$test[] = true;
$test[] = null;
$test[] = [[1, 2, 3, 4], 2, 3, 4, new B()];
$test[] = new A();
$test[] = new B();

foreach($test as $k => $t) {
	echo "Test #", $k, "\n\n";
	D::bugType($t, false);
	echo "----------------------------------------\n\n";
}

fclose($test[0]);<commit_msg>Improved object tests<commit_after><?php

chdir(__DIR__);

include '../d-bug.php';

class A {}

class B {
	public static function testA() {
		return false;
	}
	
	public function testB() {
		return 1;
	}
}

class C extends B {
	public $a = 'test';
	public $b = [[1, 2, 3, 4], 2, 3, 4];
	
	const C = 42;
	
	public static function testA($a, $b = true) {
		return true;
	}
}

$test = [];
$test[] = fopen(__FILE__, 'r');
$test[] = 'test';
$test[] = 1;
$test[] = 2.3;
$test[] = true;
$test[] = null;
$test[] = [[1, 2, 3, 4], 2, 3, 4, new C()];
$test[] = new A();
$test[] = new C();

foreach($test as $k => $t) {
	echo "Test #", $k, "\n\n";
	D::bugType($t, false);
	echo "----------------------------------------\n\n";
}

fclose($test[0]);
{'fraction_non_alphanumeric': 0.3086053412462908, 'fraction_numerical': 0.030415430267062313, 'mean_word_length': 2.5877659574468086, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2304460', 'n_tokens_mistral': 609, 'n_tokens_neox': 563, 'n_words': 166}