<commit_before>package types

// A Line codes for a public transit line.
// Warning: a Line isn't a route, it has no direction information, and can have several embranchments.
type Line struct {
	// ID is the navitia identifier of the line
	// For example: "line:RAT:M6"
	ID string `json:"id"`

	// Name is the name of the line
	// For example: "Nation - <NAME>"
	Name string `json:"name"`

	// Code is the codename of the line.
	// For example: "6"
	Code string `json:"code"`

	// Color is the color given to the line
	// For example: "79BB92"
	Color Color `json:"color"`

	// OpeningTime is the opening time of the line in HHMMSS format
	OpeningTime string `json:"opening_time"`

	// ClosingTime is the closing time of the line in HHMMSS format
	ClosingTime string `json:"closing_time"`

	// Routes countains the routes of the line
	Routes []Route `json:"routes"`

	// CommercialMode of the line
	ComercialMode CommercialMode `json:"commercial_mode"`

	// PhysicalModes of the line
	PhysicalModes []PhysicalMode `json:"physical_mode"`
}

// Color is an RGB representation of a color
type Color string<commit_msg>Add TODO for colors<commit_after>package types

// A Line codes for a public transit line.
// Warning: a Line isn't a route, it has no direction information, and can have several embranchments.
type Line struct {
	// ID is the navitia identifier of the line
	// For example: "line:RAT:M6"
	ID string `json:"id"`

	// Name is the name of the line
	// For example: "Nation - <NAME>"
	Name string `json:"name"`

	// Code is the codename of the line.
	// For example: "6"
	Code string `json:"code"`

	// Color is the color given to the line
	// For example: "79BB92"
	Color Color `json:"color"`

	// OpeningTime is the opening time of the line in HHMMSS format
	OpeningTime string `json:"opening_time"`

	// ClosingTime is the closing time of the line in HHMMSS format
	ClosingTime string `json:"closing_time"`

	// Routes countains the routes of the line
	Routes []Route `json:"routes"`

	// CommercialMode of the line
	ComercialMode CommercialMode `json:"commercial_mode"`

	// PhysicalModes of the line
	PhysicalModes []PhysicalMode `json:"physical_mode"`
}

// Color is an RGB representation of a color
// TODO: Transition to color.NRGBA
type Color string
{'fraction_non_alphanumeric': 0.0987219039224328, 'fraction_numerical': 0.005288673424416042, 'mean_word_length': 3.7489539748953975, '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': '1573280', 'n_tokens_mistral': 720, 'n_tokens_neox': 680, 'n_words': 300}