<commit_before><?php

namespace Orkestra\Bundle\ApplicationBundle\Entity\Contact;

use Doctrine\ORM\Mapping as ORM;
use Orkestra\Common\Entity\EntityBase;

/**
 * A physical address
 *
 * @ORM\Entity
 * @ORM\Table(name="orkestra_addresses")
 */
class Address extends EntityBase
{
    /**
     * @var string
     *
     * @ORM\Column(name="phone", type="string")
     */
    protected $phone;

    /**
     * @var string
     *
     * @ORM\Column(name="alt_phone", type="string")
     */
    protected $altPhone = '';

    /**
     * @var string
     *
     * @ORM\Column(name="street", type="string")
     */
    protected $street;

    /**
     * @var string
     *
     * @ORM\Column(name="suite", type="string")
     */
    protected $suite = '';

    /**
     * @var string
     *
     * @ORM\Column(name="city", type="string")
     */
    protected $city;

    /**
     * @var string
     *
     * @ORM\Column(name="postal_code", type="string")
     */
    protected $postalCode;

    /**
     * @var \Orkestra\Bundle\ApplicationBundle\Entity\Contact\Region
     *
     * @ORM\ManyToOne(targetEntity="Orkestra\Bundle\ApplicationBundle\Entity\Contact\Region")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="region_id", referencedColumnName="id")
     * })
     */
    protected $region;

    public function __toString()
    {
        return sprintf('%s %s, %s, %s %s', $this->street, $this->suite, $this->city, $this->region->getName(), $this->postalCode);
    }

    /**
     * @param string $altPhone
     */
    public function setAltPhone($altPhone)
    {
        $this->altPhone = (string)$altPhone;
    }

    /**
     * @return string
     */
    public function getAltPhone()
    {
        return $this->altPhone;
    }

    /**
     * @param string $city
     */
    public function setCity($city)
    {
        $this->city = $city;
    }

    /**
     * @return string
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * @param string $phone
     */
    public function setPhone($phone)
    {
        $this->phone = $phone;
    }

    /**
     * @return string
     */
    public function getPhone()
    {
        return $this->phone;
    }

    /**
     * @param \Orkestra\Bundle\ApplicationBundle\Entity\Contact\Region $region
     */
    public function setRegion(Region $region)
    {
        $this->region = $region;
    }

    /**
     * @return \Orkestra\Bundle\ApplicationBundle\Entity\Contact\Region
     */
    public function getRegion()
    {
        return $this->region;
    }

    /**
     * @param string $street
     */
    public function setStreet($street)
    {
        $this->street = $street;
    }

    /**
     * @return string
     */
    public function getStreet()
    {
        return $this->street;
    }

    /**
     * @param string $suite
     */
    public function setSuite($suite)
    {
        $this->suite = (string)$suite;
    }

    /**
     * @return string
     */
    public function getSuite()
    {
        return $this->suite;
    }

    /**
     * @param string $postalCode
     */
    public function setPostalCode($postalCode)
    {
        $this->postalCode = $postalCode;
    }

    /**
     * @return string
     */
    public function getPostalCode()
    {
        return $this->postalCode;
    }
}
<commit_msg>Fixed formatting issue in Address __toString<commit_after><?php

namespace Orkestra\Bundle\ApplicationBundle\Entity\Contact;

use Doctrine\ORM\Mapping as ORM;
use Orkestra\Common\Entity\EntityBase;

/**
 * A physical address
 *
 * @ORM\Entity
 * @ORM\Table(name="orkestra_addresses")
 */
class Address extends EntityBase
{
    /**
     * @var string
     *
     * @ORM\Column(name="phone", type="string")
     */
    protected $phone;

    /**
     * @var string
     *
     * @ORM\Column(name="alt_phone", type="string")
     */
    protected $altPhone = '';

    /**
     * @var string
     *
     * @ORM\Column(name="street", type="string")
     */
    protected $street;

    /**
     * @var string
     *
     * @ORM\Column(name="suite", type="string")
     */
    protected $suite = '';

    /**
     * @var string
     *
     * @ORM\Column(name="city", type="string")
     */
    protected $city;

    /**
     * @var string
     *
     * @ORM\Column(name="postal_code", type="string")
     */
    protected $postalCode;

    /**
     * @var \Orkestra\Bundle\ApplicationBundle\Entity\Contact\Region
     *
     * @ORM\ManyToOne(targetEntity="Orkestra\Bundle\ApplicationBundle\Entity\Contact\Region")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="region_id", referencedColumnName="id")
     * })
     */
    protected $region;

    public function __toString()
    {
        return sprintf('%s, %s, %s %s', trim($this->street . ' ' . $this->suite), $this->city, $this->region->getCode(), $this->postalCode);
    }

    /**
     * @param string $altPhone
     */
    public function setAltPhone($altPhone)
    {
        $this->altPhone = (string)$altPhone;
    }

    /**
     * @return string
     */
    public function getAltPhone()
    {
        return $this->altPhone;
    }

    /**
     * @param string $city
     */
    public function setCity($city)
    {
        $this->city = $city;
    }

    /**
     * @return string
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * @param string $phone
     */
    public function setPhone($phone)
    {
        $this->phone = $phone;
    }

    /**
     * @return string
     */
    public function getPhone()
    {
        return $this->phone;
    }

    /**
     * @param \Orkestra\Bundle\ApplicationBundle\Entity\Contact\Region $region
     */
    public function setRegion(Region $region)
    {
        $this->region = $region;
    }

    /**
     * @return \Orkestra\Bundle\ApplicationBundle\Entity\Contact\Region
     */
    public function getRegion()
    {
        return $this->region;
    }

    /**
     * @param string $street
     */
    public function setStreet($street)
    {
        $this->street = $street;
    }

    /**
     * @return string
     */
    public function getStreet()
    {
        return $this->street;
    }

    /**
     * @param string $suite
     */
    public function setSuite($suite)
    {
        $this->suite = (string)$suite;
    }

    /**
     * @return string
     */
    public function getSuite()
    {
        return $this->suite;
    }

    /**
     * @param string $postalCode
     */
    public function setPostalCode($postalCode)
    {
        $this->postalCode = $postalCode;
    }

    /**
     * @return string
     */
    public function getPostalCode()
    {
        return $this->postalCode;
    }
}

{'fraction_non_alphanumeric': 0.15520071631099835, 'fraction_numerical': 0.0, 'mean_word_length': 1.8825806451612903, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '4480634', 'n_tokens_mistral': 2167, 'n_tokens_neox': 2115, 'n_words': 368}