<commit_before>#!/usr/bin/env python3
from .locations import Coordinates, AbstractLocation, Platform, Stop, Location, Address, POI
from .line import Line, LineType, LineTypes
from .trip import Trip
from .tickets import TicketList, TicketData
from .ride import Ride, RideSegment
from .way import Way, WayType
from .timeandplace import TimeAndPlace
from .realtime import RealtimeTime


def unserialize_typed(data):
    model, data = data
    if '.' in model:
        model = model.split('.')
        return getattr(globals()[model[0]], model[1]).unserialize(data)
    else:
        return globals()[model].unserialize(data)

__all__ = ['Coordinates', 'AbstractLocation', 'Platform', 'Location', 'Stop',
           'Address', 'POI', 'Line', 'LineType', 'LineTypes', 'RealtimeTime',
           'TimeAndPlace', 'Platform', 'Ride', 'RideSegment', 'Trip', 'Way',
           'WayType', 'TicketList', 'TicketData', 'unserialize_typed']<commit_msg>add more things to models.*<commit_after>#!/usr/bin/env python3
from .base import ModelBase, TripPart, Serializable
from .locations import Coordinates, AbstractLocation, Platform, Stop, Location, Address, POI
from .line import Line, LineType, LineTypes
from .trip import Trip
from .tickets import TicketList, TicketData
from .ride import Ride, RideSegment
from .way import Way, WayType
from .timeandplace import TimeAndPlace
from .realtime import RealtimeTime


def unserialize_typed(data):
    model, data = data
    if '.' in model:
        model = model.split('.')
        return getattr(globals()[model[0]], model[1]).unserialize(data)
    else:
        return globals()[model].unserialize(data)

__all__ = ['Serializable', 'ModelBase', 'TripPart', 'Coordinates',
           'AbstractLocation', 'Platform', 'Location', 'Stop', 'Address', 'POI',
           'Line', 'LineType', 'LineTypes', 'RealtimeTime', 'TimeAndPlace',
           'Platform', 'Ride', 'RideSegment', 'Trip', 'Way', 'WayType',
           'TicketList', 'TicketData', 'unserialize_typed']
{'fraction_non_alphanumeric': 0.1374122367101304, 'fraction_numerical': 0.003009027081243731, 'mean_word_length': 4.32, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3261163', 'n_tokens_mistral': 607, 'n_tokens_neox': 589, 'n_words': 178}