<commit_before><?php
namespace Bolt\Storage\Repository;

use Bolt\Storage\Repository;

/**
 * A Repository class that handles dynamically created content tables.
 */
class ContentRepository extends Repository
{
}<commit_msg>tidy up repo class<commit_after><?php
namespace Bolt\Storage\Repository;

use Bolt\Storage\Query\ContentQueryParser;
use Bolt\Storage\Repository;

/**
 * A Repository class that handles dynamically created content tables.
 */
class ContentRepository extends Repository
{
    
    /**
     * getContent based on a 'human readable query'.
     *
     * Used directly by {% setcontent %} but also in other parts.
     * For reference refer to @link https://docs.bolt.cm/content-fetching
     *
     * @param string $textquery
     * @param string $parameters
     *
     * @return array
     */
    public function getContent($query, $parameters = null)
    {
        $parser = new ContentQueryParser($this->getEntityManager(), $query, $parameters);
        $query = $parser->getQuery();
        foreach($query as $q) {
            var_dump($q->getSQL());
        }
        
    }

}
{'fraction_non_alphanumeric': 0.11141304347826086, 'fraction_numerical': 0.0, 'mean_word_length': 2.960573476702509, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 1, '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': '4431302', 'n_tokens_mistral': 308, 'n_tokens_neox': 302, 'n_words': 87}