<commit_before>from trailer.model.fieldtools import make, nullable, make_list

class Route:

    def __init__(self, name=None, comment=None, description=None, source=None,
                 links=None, number=None, classification=None,
                 extensions=None, points=None):
        self._name = nullable(str)(name)
        self._comment = nullable(str)(comment)
        self._description = nullable(str)(description)
        self._source = nullable(str)(source)
        self._links = make(list)(links)

        self._number = nullable(int)(number)
        if self._number is not None:
            if self._number < 0:
                raise ValueError("GPS track number {0} cannot be negative")

        self._classification = nullable(str)(classification)
        self._extensions = make_list(extensions)
        self._points = make_list(points)

    @property
    def name(self):
        return self._name

    @property
    def comment(self):
        return self._comment

    @property
    def description(self):
        return self.description

    @property
    def source(self):
        return self._source

    @property
    def links(self):
        return self._links

    @property
    def number(self):
        return self._number

    @property
    def classification(self):
        return self._classification

    @property
    def extensions(self):
        return self._extensions

    @property
    def segments(self):
        return self._segments


<commit_msg>Routes should have a points property, not a segments property.<commit_after>from trailer.model.fieldtools import make, nullable, make_list

class Route:

    def __init__(self, name=None, comment=None, description=None, source=None,
                 links=None, number=None, classification=None,
                 extensions=None, points=None):
        self._name = nullable(str)(name)
        self._comment = nullable(str)(comment)
        self._description = nullable(str)(description)
        self._source = nullable(str)(source)
        self._links = make(list)(links)

        self._number = nullable(int)(number)
        if self._number is not None:
            if self._number < 0:
                raise ValueError("GPS track number {0} cannot be negative")

        self._classification = nullable(str)(classification)
        self._extensions = make_list(extensions)
        self._points = make_list(points)

    @property
    def name(self):
        return self._name

    @property
    def comment(self):
        return self._comment

    @property
    def description(self):
        return self.description

    @property
    def source(self):
        return self._source

    @property
    def links(self):
        return self._links

    @property
    def number(self):
        return self._number

    @property
    def classification(self):
        return self._classification

    @property
    def extensions(self):
        return self._extensions

    @property
    def points(self):
        return self._points



{'fraction_non_alphanumeric': 0.09009605829744949, 'fraction_numerical': 0.001324942033786022, 'mean_word_length': 2.4279228149829737, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2228818', 'n_tokens_mistral': 811, 'n_tokens_neox': 775, 'n_words': 207}