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

Function copyAnyMap

tools/builtin.go:1612–1621  ·  view source on GitHub ↗
(in map[string]any)

Source from the content-addressed store, hash-verified

1610 return strings.Join(lines, "\n")
1611}
1612
1613func ComputeEditDiffStat(oldContent, newContent string) (int, int) {
1614 oldCount := editLineCount(oldContent)
1615 newCount := editLineCount(newContent)
1616 if oldCount != newCount {
1617 return max(0, oldCount-newCount), max(0, newCount-oldCount)
1618 }
1619 return oldCount, newCount
1620}
1621
1622func editLineCount(content string) int {
1623 if content == "" {
1624 return 0

Callers 1

DecodeInputMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected