<commit_before><?php

namespace OParl\Server\API\Transformers;

use OParl\Server\Model\Location;

class LocationTransformer extends BaseTransformer
{
    public function transform(Location $location)
    {
        $data = array_merge($this->getDefaultAttributesForEntity($location), [
            'description'   => $location->description,
            'geojson'       => $location->geojson,
            'streetAddress' => $location->street_address,
            'room'          => $location->room,
            'postalCode'    => $location->postal_code,
            'subLocality'   => $location->sub_locality,
            'locality'      => $location->locality,
        ]);

        if ($this->isIncluded()) {
            $data = array_merge($data, [
                'body'         => $this->collectionRouteList('api.v1.body.show', $location->bodies),
                'organization' => $this->collectionRouteList('api.v1.organization.show', $location->organizations),
                'person'       => $this->collectionRouteList('api.v1.person.show', $location->people),
                'meeting'      => $this->collectionRouteList('api.v1.meeting.show', $location->meetings),<commit_msg>Switched inclusion check on location<commit_after><?php

namespace OParl\Server\API\Transformers;

use OParl\Server\Model\Location;

class LocationTransformer extends BaseTransformer
{
    public function transform(Location $location)
    {
        $data = array_merge($this->getDefaultAttributesForEntity($location), [
            'description'   => $location->description,
            'geojson'       => $location->geojson,
            'streetAddress' => $location->street_address,
            'room'          => $location->room,
            'postalCode'    => $location->postal_code,
            'subLocality'   => $location->sub_locality,
            'locality'      => $location->locality,
        ]);

        if (!$this->isIncluded()) {
            $data = array_merge($data, [
                'body'         => $this->collectionRouteList('api.v1.body.show', $location->bodies),
                'organization' => $this->collectionRouteList('api.v1.organization.show', $location->organizations),
                'person'       => $this->collectionRouteList('api.v1.person.show', $location->people),
                'meeting'      => $this->collectionRouteList('api.v1.meeting.show', $location->meetings),
{'fraction_non_alphanumeric': 0.14899833055091818, 'fraction_numerical': 0.00333889816360601, 'mean_word_length': 2.499270072992701, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 59, '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': '5038867', 'n_tokens_mistral': 668, 'n_tokens_neox': 658, 'n_words': 93}