<commit_before><?php
namespace AppBundle\Action\PoolTeam\Import;

use Doctrine\DBAL\Connection;

class PoolTeamImportUpdater
{
    private $conn;
    private $commit;

    /** @var  PoolTeamImportResults */
    private $results;

    public function __construct(
        Connection $conn
    ) {
        $this->conn = $conn;
    }
    /**
     * @param  array   $games
     * @param  boolean $commit
     * @param  string  $fileName
     * @return PoolTeamImportResults
     */
    public function updatePoolTeams(array $poolTeams, $commit, $fileName)
    {
        $this->commit  = $commit;
        $this->results = new PoolTeamImportResults($poolTeams,$commit,$fileName);

        foreach($poolTeams as $poolTeam) {
            $this->updatePoolTeam($poolTeam);
        }
        $this->results->calcCounts();
        
        return $this->results;
    }
    private function updatePoolTeam($poolTeam)
    {
        $poolTeamId  = $poolTeam['poolTeamId'];
        $poolTeamKey = $poolTeam['poolTeamKey'];<commit_msg>Fixed warning message.<commit_after><?php
namespace AppBundle\Action\PoolTeam\Import;

use Doctrine\DBAL\Connection;

class PoolTeamImportUpdater
{
    private $conn;
    private $commit;

    /** @var  PoolTeamImportResults */
    private $results;

    public function __construct(
        Connection $conn
    ) {
        $this->conn = $conn;
    }
    /**
     * @param  array   $poolTeams
     * @param  boolean $commit
     * @param  string  $fileName
     * @return PoolTeamImportResults
     */
    public function updatePoolTeams(array $poolTeams, $commit, $fileName)
    {
        $this->commit  = $commit;
        $this->results = new PoolTeamImportResults($poolTeams,$commit,$fileName);

        foreach($poolTeams as $poolTeam) {
            $this->updatePoolTeam($poolTeam);
        }
        $this->results->calcCounts();
        
        return $this->results;
    }
    private function updatePoolTeam($poolTeam)
    {
        $poolTeamId  = $poolTeam['poolTeamId'];
        $poolTeamKey = $poolTeam['poolTeamKey'];
{'fraction_non_alphanumeric': 0.12140419307654803, 'fraction_numerical': 0.0, 'mean_word_length': 2.550173010380623, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '4331873', 'n_tokens_mistral': 606, 'n_tokens_neox': 608, 'n_words': 117}