github.com/google/licensecheck/old.Match.Percent (field)

7 uses

	github.com/google/licensecheck/old (current package)
		license.go#L156: 	Percent float64 // The fraction of words between Start and End that are matched.
		license.go#L222: 		if matches[i].Percent < threshold {
		license.go#L231: 		miWords := mi.Percent * float64(mi.End-mi.Start)
		license.go#L239: 				if miWords > mj.Percent*float64(mj.End-mj.Start) {
		license.go#L375: 					Percent: 100.0, // 100% of Start:End is a license URL.
		license.go#L473: 	match.Percent = 100 * float64(s.matched) / float64(len(l.doc.words))

	golang.org/x/pkgsite/internal/testing/sample
		sample.go#L403: 				Match:   []oldlicensecheck.Match{{Name: LicenseType, Type: oldlicensecheck.MIT, Percent: 100}},