<commit_before><?php

namespace Kily\Delivery;

use Kily\Delivery\Base\Component;
use Kily\Delivery\Provider\Provider;
use Kily\Delivery\Service\Service;
use Kily\Delivery\Service\ServiceFactory;
use Kily\Delivery\Model\Address;
use Kily\Delivery\Model\RawAddress;

class BaseDelivery extends Component
{
    protected $_provider = null;

    protected $_from = null;
    protected $_to = null;
    protected $_options = [];

    public function __construct(Provider $p, $from = null, $to = null, $service_codes = null,  $options = [])
    {
        $this->provider = $p;

        if ($from) {
            $this->from = $from;
        }

        if ($to) {
            $this->to = $to;
        }

        if ($service_codes) {
            $this->services = $service_codes;
        }

        if ($options) {
            $this->options = $options;
        }
    }

    public function setProvider(Provider $val)
    {
        $this->_provider = $val;<commit_msg>fixed parameters ordering<commit_after><?php

namespace Kily\Delivery;

use Kily\Delivery\Base\Component;
use Kily\Delivery\Provider\Provider;
use Kily\Delivery\Service\Service;
use Kily\Delivery\Service\ServiceFactory;
use Kily\Delivery\Model\Address;
use Kily\Delivery\Model\RawAddress;

class BaseDelivery extends Component
{
    protected $_provider = null;

    protected $_from = null;
    protected $_to = null;
    protected $_options = [];

    public function __construct(Provider $p, $from = null, $to = null, $options = [], $service_codes = null)
    {
        $this->provider = $p;

        if ($from) {
            $this->from = $from;
        }

        if ($to) {
            $this->to = $to;
        }

        if ($service_codes) {
            $this->services = $service_codes;
        }

        if ($options) {
            $this->options = $options;
        }
    }

    public function setProvider(Provider $val)
    {
        $this->_provider = $val;
{'fraction_non_alphanumeric': 0.12933264355923435, 'fraction_numerical': 0.0, 'mean_word_length': 2.3003412969283277, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '7294385', 'n_tokens_mistral': 599, 'n_tokens_neox': 585, 'n_words': 131}