MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / decodeToolBytes

Function decodeToolBytes

tools/builtin.go:1100–1113  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

1098 if a == b {
1099 return 1
1100 }
1101 aRunes := []rune(a)
1102 bRunes := []rune(b)
1103 i := 0
1104 for i < len(aRunes) && i < len(bRunes) && aRunes[i] == bRunes[i] {
1105 i++
1106 }
1107 prefixScore := float64(i) / float64(max(len(aRunes), len(bRunes)))
1108 aSet := map[rune]struct{}{}
1109 bSet := map[rune]struct{}{}
1110 for _, r := range aRunes {
1111 aSet[r] = struct{}{}
1112 }
1113 for _, r := range bRunes {
1114 bSet[r] = struct{}{}
1115 }
1116 common := 0

Callers 3

ExecuteMethod · 0.85
ValidateInputMethod · 0.85
ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected