<commit_before>from __future__ import unicode_literals

from ..base import Resource
from ...utils import enforce_string_type


class State(Resource):

    _resource_name = 'states'

    _as_is_fields = ['id', 'href', 'name']
    _resource_fields = [('country', 'Country')]

    @enforce_string_type
    def __repr__(self):
        return '<{}: {}>'.format(self.__class__.__name__, self.name)<commit_msg>Add Place reference to State model<commit_after>from __future__ import unicode_literals

from ..base import Resource
from ...utils import enforce_string_type


class State(Resource):

    _resource_name = 'states'

    _as_is_fields = ['id', 'href', 'name']
    _resource_fields = [
        ('country', 'Country'),
        ('place', 'Place'),
    ]

    @enforce_string_type
    def __repr__(self):
        return '<{}: {}>'.format(self.__class__.__name__, self.name)
{'fraction_non_alphanumeric': 0.1367816091954023, 'fraction_numerical': 0.0, 'mean_word_length': 3.838888888888889, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2241892', 'n_tokens_mistral': 276, 'n_tokens_neox': 264, 'n_words': 64}