<commit_before><?php

namespace Samsui\Generator\Provider;

use Samsui\Generator\Provider\Resource\Loader as ResourceLoader;

class Address extends BaseProvider
{
    public function random()
    {
        $resource = $this->generator->locale->fetch('address');
        $loader = new ResourceLoader($this->generator);
        return $loader->load($resource);
    }
}
<commit_msg>updated code and added postal generation<commit_after><?php

namespace Samsui\Generator\Provider;

use Samsui\Generator\Provider\Resource\Loader as ResourceLoader;

class Address extends BaseProvider
{
    public function random()
    {
        $resource = $this->generator->locale->fetch('address');
        $lists = isset($resource['lists']) ? $resource['lists'] : array();
        unset($resource['lists']);
        $loader = new ResourceLoader($this->generator);
        return $loader->load($resource, $lists);
    }

    public function postal()
    {
        $resource = $this->generator->locale->fetch('address.postal');
        $lists = isset($resource['lists']) ? $resource['lists'] : array();
        unset($resource['lists']);
        $loader = new ResourceLoader($this->generator);
        return $loader->load($resource, $lists);
    }
}

{'fraction_non_alphanumeric': 0.15272136474411047, 'fraction_numerical': 0.0, 'mean_word_length': 3.614232209737828, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '3094198', 'n_tokens_mistral': 327, 'n_tokens_neox': 325, 'n_words': 69}