<commit_before><?php

include_once __DIR__ . '/../shard_connection.php';
include_once __DIR__ . '/../ExampleStatementClass.php';

try
{
	$conn->setAttribute(PDO::ATTR_STATEMENT_CLASS, array("ExampleStatementClass"));

	for ($i = 0; $i < $shards_count; ++$i)
	{
		$sql = "SELECT * FROM tbl_posts /*+ shard_id(" . $i . ") */";

		echo "Executing: " . $sql . PHP_EOL;

		$req  = $conn->query($sql);

		foreach ($req->fetchAll() as $row)
		{
			var_dump($row);
		}
	}
}
catch(PDOException $E)
{
	exit('Failed: (' . $E->getCode() . ')' . $E->getMessage());
}

$conn = null;

echo "Connection is closed." . PHP_EOL;<commit_msg>path ExampleStatementClass<commit_after><?php

include_once __DIR__ . '/../shard_connection.php';
include_once __DIR__ . '/ExampleStatementClass.php';

try
{
	$conn->setAttribute(PDO::ATTR_STATEMENT_CLASS, array("ExampleStatementClass"));

	for ($i = 0; $i < $shards_count; ++$i)
	{
		$sql = "SELECT * FROM tbl_posts /*+ shard_id(" . $i . ") */";

		echo "Executing: " . $sql . PHP_EOL;

		$req  = $conn->query($sql);

		foreach ($req->fetchAll() as $row)
		{
			var_dump($row);
		}
	}
}
catch(PDOException $E)
{
	exit('Failed: (' . $E->getCode() . ')' . $E->getMessage());
}

$conn = null;

echo "Connection is closed." . PHP_EOL;
{'fraction_non_alphanumeric': 0.21485623003194887, 'fraction_numerical': 0.001597444089456869, 'mean_word_length': 3.8007662835249043, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '1675170', 'n_tokens_mistral': 511, 'n_tokens_neox': 487, 'n_words': 90}