<commit_before>package utils

const FSOutput = `
-----{{.DiffType}}-----

These entries have been added to {{.Diff.Image1}}:{{if not .Diff.Adds}} None{{else}}
	{{range .Diff.Adds}}{{print .}}
	{{end}}{{end}}

These entries have been deleted from {{.Diff.Image1}}:{{if not .Diff.Dels}} None{{else}}
	{{range .Diff.Dels}}{{print .}}
	{{end}}{{end}}

These entries have been changed between {{.Diff.Image1}} and {{.Diff.Image2}}:{{if not .Diff.Mods}} None{{else}}
	{{range .Diff.Mods}}{{print .}}
	{{end}}{{end}}
`

const SingleVersionOutput = `
-----{{.DiffType}}-----

Packages found only in {{.Diff.Image1}}:{{if not .Diff.Packages1}} None{{else}}
NAME	VERSION	SIZE{{range $name, $value := .Diff.Packages1}}{{"\n"}}{{print "-"}}{{$name}}	{{$value.Version}}	{{$value.Size}}{{end}}{{end}}

Packages found only in {{.Diff.Image2}}:{{if not .Diff.Packages2}} None{{else}}
NAME	VERSION	SIZE{{range $name, $value := .Diff.Packages2}}{{"\n"}}{{print "-"}}{{$name}}	{{$value.Version}}	{{$value.Size}}{{end}}{{end}}

Version differences:{{if not .Diff.InfoDiff}} None{{else}}
	(Package:	{{.Diff.Image1}}	{{.Diff.Image2}}){{range .Diff.InfoDiff}}
	{{.Package}}:	{{.Info1}}	{{.Info2}}
	{{end}}{{end}}
`

const MultiVersionOutput = `
-----{{.DiffType}}-----

Packages found only in {{.Diff.Image1}}:{{if not .Diff.Packages1}} None{{else}}{{range $name, $value := .Diff.Packages1}}{{"\n"}}{{print "-"}}{{$name}}{{end}}{{end}}

Packages found only in {{.Diff.Image2}}:{{if not .Diff.Packages2}} None{{else}}{{range $name, $value := .Diff.Packages2}}{{"\n"}}{{print "-"}}{{$name}}{{end}}{{end}}

Version differences:{{if not .Diff.InfoDiff}} None{{else}}
	(Package:	{{.Diff.Image1}}	{{.Diff.Image2}}){{range .Diff.InfoDiff}}
	{{.Package}}:	{{range .Info1}}{{.Version}}{{end}}	{{range .Info2}}{{.Version}}{{end}}
	{{end}}{{end}}
`

const HistoryOutput = `
-----{{.DiffType}}-----

Docker history lines found only in {{.Diff.Image1}}:{{if not .Diff.Adds}} None{{else}}{{block "list" .Diff.Adds}}{{"\n"}}{{range .}}{{print "-" .}}{{end}}{{end}}{{end}}

Docker history lines found only in {{.Diff.Image2}}:{{if not .Diff.Dels}} None{{else}}{{block "list2" .Diff.Dels}}{{"\n"}}{{range .}}{{print "-" .}}{{end}}{{end}}{{end}}
`<commit_msg>Fixed tabs in output template (#283)<commit_after>package utils

const FSOutput = `
-----{{.DiffType}}-----

These entries have been added to {{.Diff.Image1}}:{{if not .Diff.Adds}} None{{else}}
	{{range .Diff.Adds}}{{print .}}
	{{end}}{{end}}

These entries have been deleted from {{.Diff.Image1}}:{{if not .Diff.Dels}} None{{else}}
	{{range .Diff.Dels}}{{print .}}
	{{end}}{{end}}

These entries have been changed between {{.Diff.Image1}} and {{.Diff.Image2}}:{{if not .Diff.Mods}} None{{else}}
	{{range .Diff.Mods}}{{print .}}
	{{end}}{{end}}
`

const SingleVersionOutput = `
-----{{.DiffType}}-----

Packages found only in {{.Diff.Image1}}:{{if not .Diff.Packages1}} None{{else}}
NAME	VERSION	SIZE{{range $name, $value := .Diff.Packages1}}{{"\n"}}{{print "-"}}{{$name}}	{{$value.Version}}	{{$value.Size}}{{end}}{{end}}

Packages found only in {{.Diff.Image2}}:{{if not .Diff.Packages2}} None{{else}}
NAME	VERSION	SIZE{{range $name, $value := .Diff.Packages2}}{{"\n"}}{{print "-"}}{{$name}}	{{$value.Version}}	{{$value.Size}}{{end}}{{end}}

Version differences:{{if not .Diff.InfoDiff}} None{{else}}
PACKAGE	IMAGE1 ({{.Diff.Image1}})	IMAGE2 ({{.Diff.Image2}}){{range .Diff.InfoDiff}}{{"\n"}}{{print "-"}}{{.Package}}	{{.Info1.Version}}	{{.Info2.Version}}{{end}}{{end}}
`

const MultiVersionOutput = `
-----{{.DiffType}}-----

Packages found only in {{.Diff.Image1}}:{{if not .Diff.Packages1}} None{{else}}{{range $name, $value := .Diff.Packages1}}{{"\n"}}{{print "-"}}{{$name}}{{end}}{{end}}

Packages found only in {{.Diff.Image2}}:{{if not .Diff.Packages2}} None{{else}}{{range $name, $value := .Diff.Packages2}}{{"\n"}}{{print "-"}}{{$name}}{{end}}{{end}}

Version differences:{{if not .Diff.InfoDiff}} None{{else}}
PACKAGE	IMAGE1 ({{.Diff.Image1}})	IMAGE2 ({{.Diff.Image2}}){{range .Diff.InfoDiff}}{{"\n"}}{{print "-"}}{{.Package}}	{{range .Info1}}{{.Version}}{{end}}	{{range .Info2}}{{.Version}}{{end}}{{end}}{{end}}
`

const HistoryOutput = `
-----{{.DiffType}}-----

Docker history lines found only in {{.Diff.Image1}}:{{if not .Diff.Adds}} None{{else}}{{block "list" .Diff.Adds}}{{"\n"}}{{range .}}{{print "-" .}}{{end}}{{end}}{{end}}

Docker history lines found only in {{.Diff.Image2}}:{{if not .Diff.Dels}} None{{else}}{{block "list2" .Diff.Dels}}{{"\n"}}{{range .}}{{print "-" .}}{{end}}{{end}}{{end}}
`
{'fraction_non_alphanumeric': 0.30584343991179713, 'fraction_numerical': 0.013450937155457553, 'mean_word_length': 5.179836512261581, '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': '217485', 'n_tokens_mistral': 1704, 'n_tokens_neox': 1684, 'n_words': 345}