<commit_before><?php
namespace SmtpValidatorEmail\Service;

use SmtpValidatorEmail\Entity\Domain;
use SmtpValidatorEmail\Entity\Results;

class StatusManager {

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

    public function __construct(){
        $this->model = new Results();
    }

    public function setStatus($users, Domain $domain, $val, $info='') {
        $this->results->setDomainResults($users,$domain, $val,$info);
    }

    public function updateStatus($address , $result){
        $this->results->setResultByAddress($address , $result);
    }

    /**
     * @param null $address optional , if set gets the status by address
     * @return array
     */
    public function getStatus( $address = null ) {
        if($address){
            return $this->results->getResultByAddress($address);
        }else {
            return $this->results->getResults();
        }

    }

    // TODO: Create loger method
}<commit_msg>dumb fix<commit_after><?php
namespace SmtpValidatorEmail\Service;

use SmtpValidatorEmail\Entity\Domain;
use SmtpValidatorEmail\Entity\Results;

class StatusManager {

    /**
     * @var Results
     */
    private $results = null;

    public function __construct(){
        $this->results = new Results();
    }

    public function setStatus($users, Domain $domain, $val, $info='') {
        $this->results->setDomainResults($users,$domain, $val,$info);
    }

    public function updateStatus($address , $result){
        $this->results->setResultByAddress($address , $result);
    }

    /**
     * @param null $address optional , if set gets the status by address
     * @return array
     */
    public function getStatus( $address = null ) {
        if($address){
            return $this->results->getResultByAddress($address);
        }else {
            return $this->results->getResults();
        }

    }

    // TODO: Create loger method
}
{'fraction_non_alphanumeric': 0.13273871983210914, 'fraction_numerical': 0.0, 'mean_word_length': 2.653256704980843, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '1880953', 'n_tokens_mistral': 541, 'n_tokens_neox': 519, 'n_words': 126}