<commit_before><?php

namespace chegamos\entity;

class GasStation
{

    public function __construct($data=null)
    {
        $this->populate($data);
    }

    public function populate($data)
    {
        if (isset($data) && is_array(new GasStation)) {
            foreach ($data as $itemName => $value) {
                if (strstr($itemName, 'price_') !== false) {
                    $this->add(GasStationItemFactory::generate($itemName, $data));
                }
            }
        }
    }

}<commit_msg>Refatoração do GasStation<commit_after><?php

namespace chegamos\entity;

class GasStation
{

    public function __construct($data=null)
    {
        $this->populate($data);
    }

    public function populate($data)
    {
        if (isset($data) && is_array(new GasStation)) {
            foreach (array_keys($data) as $itemName) {
                if (strstr($itemName, 'price_') !== false) {
                    $this->add(GasStationItemFactory::generate($itemName, $data));
                }
            }
        }
    }

}
{'fraction_non_alphanumeric': 0.13862332695984703, 'fraction_numerical': 0.0, 'mean_word_length': 2.0172910662824206, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '4534920', 'n_tokens_mistral': 318, 'n_tokens_neox': 304, 'n_words': 55}