<commit_before>package parser

type EnvoyNode struct {
	ID string `yaml:"id"`
}
type ConnectTimeout struct {
	Seconds int64 `yaml:"seconds"`
}

type Endpoint struct {
	Name    string `yaml:"name"`
	Address string `yaml:"address"`
	Port    uint32 `yaml:"port"`
}

type Cluster struct {
	Name           string         `yaml:"name"`
	Endpoints      []Endpoint     `yaml:"endpoints"`
	ConnectTimeout ConnectTimeout `yaml:"connect_timeout"`
}

type Route struct {
	Name         string   `yaml:"name"`
	Prefix       string   `yaml:"prefix"`
	ClusterNames []string `yaml:"clusters"`
}

type Listener struct {
	Name    string  `yaml:"name"`
	Address string  `yaml:"address"`
	Port    uint32  `yaml:"port"`
	Routes  []Route `yaml:"routes"`
}

type Runtime struct {
	Name string `yaml:"name"`
}

type Secret struct {
	Name string `yaml:"name"`
}

type Resources struct {
	Endpoints []Endpoint `yaml:"endpoints"`
	Clusters  []Cluster  `yaml:"clusters"`
	Routes    []Route    `yaml:"routes"`
	Listeners []Listener `yaml:"listeners"`
	Runtimes  []Runtime  `yaml:"runtimes"`
	Secrets   []Secret   `yaml:"secret"`
}

type Snapshot struct {
	Node      string    `yaml:"node"`
	Version   string    `yaml:"version"`
	Resources Resources `yaml:"resources"`
}

// type TestDiscoveryRequest struct {
// 	VersionInfo   string    `default:"" yaml:"version_info"`
// 	ResourceNames []string  `yaml:"resource_names"`
// 	TypeURL       string    `default:"" yaml:"type_url"`
// 	ResponseNonce string    `default:"" yaml:"response_nonce"`
// 	Node          EnvoyNode `yaml:"node"`
// }

type DiscoveryResponse struct {
	VersionInfo string    `default:"" yaml:"version_info"`
	TypeURL     string    `yaml:"type_url"`
	Resources   []Cluster `yaml:"resources"` //hack for now, should be any type of resource
	Nonce       string    `default:"" yaml:"nonce"`
}<commit_msg>remove obsolete types<commit_after>package parser

// type EnvoyNode struct {
// 	ID string `yaml:"id"`
// }
type ConnectTimeout struct {
	Seconds int64 `yaml:"seconds"`
}

type Endpoint struct {
	Name    string `yaml:"name"`
	Address string `yaml:"address"`
	Port    uint32 `yaml:"port"`
}

type Cluster struct {
	Name           string         `yaml:"name"`
	Endpoints      []Endpoint     `yaml:"endpoints"`
	ConnectTimeout ConnectTimeout `yaml:"connect_timeout"`
}

type Route struct {
	Name         string   `yaml:"name"`
	Prefix       string   `yaml:"prefix"`
	ClusterNames []string `yaml:"clusters"`
}

type Listener struct {
	Name    string  `yaml:"name"`
	Address string  `yaml:"address"`
	Port    uint32  `yaml:"port"`
	Routes  []Route `yaml:"routes"`
}

type Runtime struct {
	Name string `yaml:"name"`
}

type Secret struct {
	Name string `yaml:"name"`
}

type Resources struct {
	Endpoints []Endpoint `yaml:"endpoints"`
	Clusters  []Cluster  `yaml:"clusters"`
	Routes    []Route    `yaml:"routes"`
	Listeners []Listener `yaml:"listeners"`
	Runtimes  []Runtime  `yaml:"runtimes"`
	Secrets   []Secret   `yaml:"secret"`
}

type Snapshot struct {
	Node      string    `yaml:"node"`
	Version   string    `yaml:"version"`
	Resources Resources `yaml:"resources"`
}

type DiscoveryResponse struct {
	VersionInfo string    `default:"" yaml:"version_info"`
	TypeURL     string    `yaml:"type_url"`
	Resources   []Cluster `yaml:"resources"` //hack for now, should be any type of resource
	Nonce       string    `default:"" yaml:"nonce"`
}
{'fraction_non_alphanumeric': 0.137951450562463, 'fraction_numerical': 0.003552397868561279, 'mean_word_length': 3.7929078014184396, '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': '1517656', 'n_tokens_mistral': 1060, 'n_tokens_neox': 1046, 'n_words': 295}