<commit_before>package irsdk

import (
	yaml "gopkg.in/yaml.v2"
)

type SessionData struct {
	WeekendInfo   WeekendInfo   `yaml:"WeekendInfo"`
	SessionInfo   SessionInfo   `yaml:"SessionInfo"`
	CameraInfo    CameraInfo    `yaml:"CameraInfo"`
	RadioInfo     RadioInfo     `yaml:"RadioInfo"`
	DriverInfo    DriverInfo    `yaml:"DriverInfo"`
	SplitTimeInfo SplitTimeInfo `yaml:"SplitTimeInfo"`
}

// https://github.com/smyrman/units
// quantity + unit
type unit string

type WeekendInfo struct {
	// TrackName string -> TrackName string `yaml:"TrackName"`
	// vim: s/\(\t\(.\{-}\) \).*/\0 `yaml:"\2"`
	TrackName              string           `yaml:"TrackName"`
	TrackID                int              `yaml:"TrackID"`
	TrackLength            string           `yaml:"TrackLength"`
	TrackDisplayName       string           `yaml:"TrackDisplayName"`
	TrackDisplayShortName  string           `yaml:"TrackDisplayShortName"`
	TrackConfigName        string           `yaml:"TrackConfigName"`
	TrackCity              string           `yaml:"TrackCity"`
	TrackCountry           string           `yaml:"TrackCountry"`
	TrackAltitude          unit             `yaml:"TrackAltitude"`
	TrackLatitude          unit             `yaml:"TrackLatitude"`
	TrackLongitude         unit             `yaml:"TrackLongitude"`
	TrackNumTurns          int              `yaml:"TrackNumTurns"`
	TrackPitSpeedLimit     unit             `yaml:"TrackPitSpeedLimit"`
	TrackType              string           `yaml:"TrackType"`
	TrackWeatherType       string           `yaml:"TrackWeatherType"`
	TrackSkies             string           `yaml:"TrackSkies"`
	TrackSurfaceTemp       unit             `yaml:"TrackSurfaceTemp"`
	TrackAirTemp           unit             `yaml:"TrackAirTemp"`
	TrackAirPressure       unit             `yaml:"TrackAirPressure"`
	TrackWindVel           unit             `yaml:"TrackWindVel"`
	TrackWindDir           unit             `yaml:"TrackWindDir"`
	TrackRelativeHumidity  unit             `yaml:"TrackRelativeHumidity"`
	TrackFogLevel          unit             `yaml:"TrackFogLevel"`
	SeriesID               int              `yaml:"SeriesID"`
	SeasonID               int              `yaml:"SeasonID"`
	SessionID              int              `yaml:"SessionID"`
	SubSessionID           int              `yaml:"SubSessionID"`
	LeagueID               int              `yaml:"LeagueID"`
	Official               int              `yaml:"Official"`
	RaceWeek               int              `yaml:"RaceWeek"`
	EventType              string           `yaml:"EventType"`
	Category               string           `yaml:"Category"`
	SimMode                string           `yaml:"SimMode"`
	TeamRacing             int              `yaml:"TeamRacing"`
	MinDrivers             int              `yaml:"MinDrivers"`
	MaxDrivers             int              `yaml:"MaxDrivers"`
	DCRuleSet              string           `yaml:"DCRuleSet"`
	QualifierMustStartRace intToBool        `yaml:"QualifierMustStartRace"`
	NumCarClasses          int              `yaml:"NumCarClasses"`
	NumCarTypes            int              `yaml:"NumCarTypes"`
	WeekendOptions         WeekendOptions   `yaml:"WeekendOptions"`
	TelemetryOptions       TelemetryOptions `yaml:"TelemetryOptions"`
}

type WeekendOptions struct {
	NumStarters         int       `yaml:"NumStarters"`
	StartingGrid        string    `yaml:"StartingGrid"`
	QualifyScoring      string    `yaml:"QualifyScoring"`
	CourseCautions      bool      `yaml:"CourseCautions"`
	StandingStart       intToBool `yaml:"StandingStart"`
	Restarts            string    `yaml:"Restarts"`
	WeatherType         string    `yaml:"WeatherType"`
	Skies               string    `yaml:"Skies"`
	WindDirection       unit      `yaml:"WindDirection"`
	WindSpeed           unit      `yaml:"WindSpeed"`<commit_msg>Changed type of CourseCautions<commit_after>package irsdk

import (
	yaml "gopkg.in/yaml.v2"
)

type SessionData struct {
	WeekendInfo   WeekendInfo   `yaml:"WeekendInfo"`
	SessionInfo   SessionInfo   `yaml:"SessionInfo"`
	CameraInfo    CameraInfo    `yaml:"CameraInfo"`
	RadioInfo     RadioInfo     `yaml:"RadioInfo"`
	DriverInfo    DriverInfo    `yaml:"DriverInfo"`
	SplitTimeInfo SplitTimeInfo `yaml:"SplitTimeInfo"`
}

// https://github.com/smyrman/units
// quantity + unit
type unit string

type WeekendInfo struct {
	// TrackName string -> TrackName string `yaml:"TrackName"`
	// vim: s/\(\t\(.\{-}\) \).*/\0 `yaml:"\2"`
	TrackName              string           `yaml:"TrackName"`
	TrackID                int              `yaml:"TrackID"`
	TrackLength            string           `yaml:"TrackLength"`
	TrackDisplayName       string           `yaml:"TrackDisplayName"`
	TrackDisplayShortName  string           `yaml:"TrackDisplayShortName"`
	TrackConfigName        string           `yaml:"TrackConfigName"`
	TrackCity              string           `yaml:"TrackCity"`
	TrackCountry           string           `yaml:"TrackCountry"`
	TrackAltitude          unit             `yaml:"TrackAltitude"`
	TrackLatitude          unit             `yaml:"TrackLatitude"`
	TrackLongitude         unit             `yaml:"TrackLongitude"`
	TrackNumTurns          int              `yaml:"TrackNumTurns"`
	TrackPitSpeedLimit     unit             `yaml:"TrackPitSpeedLimit"`
	TrackType              string           `yaml:"TrackType"`
	TrackWeatherType       string           `yaml:"TrackWeatherType"`
	TrackSkies             string           `yaml:"TrackSkies"`
	TrackSurfaceTemp       unit             `yaml:"TrackSurfaceTemp"`
	TrackAirTemp           unit             `yaml:"TrackAirTemp"`
	TrackAirPressure       unit             `yaml:"TrackAirPressure"`
	TrackWindVel           unit             `yaml:"TrackWindVel"`
	TrackWindDir           unit             `yaml:"TrackWindDir"`
	TrackRelativeHumidity  unit             `yaml:"TrackRelativeHumidity"`
	TrackFogLevel          unit             `yaml:"TrackFogLevel"`
	SeriesID               int              `yaml:"SeriesID"`
	SeasonID               int              `yaml:"SeasonID"`
	SessionID              int              `yaml:"SessionID"`
	SubSessionID           int              `yaml:"SubSessionID"`
	LeagueID               int              `yaml:"LeagueID"`
	Official               int              `yaml:"Official"`
	RaceWeek               int              `yaml:"RaceWeek"`
	EventType              string           `yaml:"EventType"`
	Category               string           `yaml:"Category"`
	SimMode                string           `yaml:"SimMode"`
	TeamRacing             int              `yaml:"TeamRacing"`
	MinDrivers             int              `yaml:"MinDrivers"`
	MaxDrivers             int              `yaml:"MaxDrivers"`
	DCRuleSet              string           `yaml:"DCRuleSet"`
	QualifierMustStartRace intToBool        `yaml:"QualifierMustStartRace"`
	NumCarClasses          int              `yaml:"NumCarClasses"`
	NumCarTypes            int              `yaml:"NumCarTypes"`
	WeekendOptions         WeekendOptions   `yaml:"WeekendOptions"`
	TelemetryOptions       TelemetryOptions `yaml:"TelemetryOptions"`
}

type WeekendOptions struct {
	NumStarters         int       `yaml:"NumStarters"`
	StartingGrid        string    `yaml:"StartingGrid"`
	QualifyScoring      string    `yaml:"QualifyScoring"`
	CourseCautions      string    `yaml:"CourseCautions"`
	StandingStart       intToBool `yaml:"StandingStart"`
	Restarts            string    `yaml:"Restarts"`
	WeatherType         string    `yaml:"WeatherType"`
	Skies               string    `yaml:"Skies"`
	WindDirection       unit      `yaml:"WindDirection"`
	WindSpeed           unit      `yaml:"WindSpeed"`
{'fraction_non_alphanumeric': 0.09242047388401624, 'fraction_numerical': 0.0007854431208273334, 'mean_word_length': 1.8614232209737829, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5025964', 'n_tokens_mistral': 2031, 'n_tokens_neox': 1969, 'n_words': 408}