<commit_before><?php

namespace Hodor\Database;

use Exception;

class PgsqlAdapter implements AdapterInterface
{
    /**
     * @var array
     */
    private $config;

    /**
     * @var resource
     */
    private $connection;

    /**
     * @param array $config
     */
    public function __construct(array $config)
    {
        $this->config = $config;
    }

    public function createJob($job)
    {
    }

    public function getJobsToRun()
    {
    }

    public function markJobAsStarted($job)
    {
    }

    public function markJobAsCompleted($job)
    {
    }

    public function markJobAsFailed($job)
    {
    }

    public function getPhpmigAdapter()
    {
    }

    public function beginTransaction()
    {
    }

    public function commitTransaction()<commit_msg>Implement the PgsqlAdapter#getPhpmigAdapter() method<commit_after><?php

namespace Hodor\Database;

use Hodor\Database\Phpmig\PgsqlPhpmigAdapter;

use Exception;

class PgsqlAdapter implements AdapterInterface
{
    /**
     * @var array
     */
    private $config;

    /**
     * @var resource
     */
    private $connection;

    /**
     * @param array $config
     */
    public function __construct(array $config)
    {
        $this->config = $config;
    }

    public function createJob($job)
    {
    }

    public function getJobsToRun()
    {
    }

    public function markJobAsStarted($job)
    {
    }

    public function markJobAsCompleted($job)
    {
    }

    public function markJobAsFailed($job)
    {
    }

    public function getPhpmigAdapter()
    {
        return new PgsqlPhpmigAdapter($this->getConnection());
    }

    public function beginTransaction()
    {
    }

    public function commitTransaction()
{'fraction_non_alphanumeric': 0.10109763142692085, 'fraction_numerical': 0.0, 'mean_word_length': 2.255639097744361, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '6869963', 'n_tokens_mistral': 536, 'n_tokens_neox': 515, 'n_words': 107}