
Code duplication
 Type 1 (exact clones): 27 cluster(s)      
 Type 2 (parametric clones): 23 cluster(s) 
                                           
   Type 1 lines: 645/401991 (0.2%)         
   Type 1 functions: 55/12018 (0.5%)       
                                           
   Type 2 lines: 746/401991 (0.2%)         
   Type 2 functions: 53/12018 (0.4%)       

  Type 1 (exact) - 3 functions:
    ../../openclaw/extensions/nostr/src/nostr-profile-http.ts:227 sendJson
    ../../openclaw/src/gateway/http-common.ts:5 sendJson
    ../../openclaw/src/gateway/server-http.ts:84 sendJson

  Type 1 (exact) - 2 functions:
    ../../openclaw/extensions/bluebubbles/src/actions.ts:55 readBooleanParam
    ../../openclaw/src/infra/outbound/message-action-params.ts:17 readBooleanParam

  Type 1 (exact) - 2 functions:
    ../../openclaw/extensions/bluebubbles/src/monitor-shared.ts:33 normalizeWebhookPath
    ../../openclaw/src/plugin-sdk/webhook-path.ts:1 normalizeWebhookPath

  Type 1 (exact) - 2 functions:
    ../../openclaw/extensions/mattermost/src/mattermost/monitor-helpers.ts:21 formatInboundFromLabel
    ../../openclaw/src/auto-reply/envelope.ts:216 formatInboundFromLabel

  Type 1 (exact) - 2 functions:
    ../../openclaw/extensions/mattermost/src/mattermost/monitor-helpers.ts:43 rawDataToString
    ../../openclaw/src/infra/ws.ts:4 rawDataToString

  Type 1 (exact) - 2 functions:
    ../../openclaw/extensions/msteams/src/conversation-store-fs.ts:18 parseTimestamp
    ../../openclaw/src/pairing/pairing-store.ts:126 parseTimestamp

  Type 1 (exact) - 2 functions:
    ../../openclaw/extensions/msteams/src/graph.ts:25 readAccessToken
    ../../openclaw/extensions/msteams/src/probe.ts:16 readAccessToken

  Type 1 (exact) - 2 functions:
    ../../openclaw/extensions/msteams/src/store-fs.ts:38 writeJsonFile
    ../../openclaw/src/pairing/pairing-store.ts:96 writeJsonFile

  Type 1 (exact) - 2 functions:
    ../../openclaw/extensions/voice-call/src/providers/tts-openai.ts:202 linearToMulaw
    ../../openclaw/extensions/voice-call/src/telephony-audio.ts:70 linearToMulaw

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/agents/apply-patch.ts:293 expandPath
    ../../openclaw/src/agents/sandbox-paths.ts:14 expandPath

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/agents/bash-process-registry.ts:303 stopSweeper
    ../../openclaw/src/agents/subagent-registry.ts:171 stopSweeper

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/agents/tools/discord-actions-guild.ts:32 readParentIdParam
    ../../openclaw/src/channels/plugins/actions/discord/handle-action.ts:14 readParentIdParam

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/agents/usage.ts:33 asFiniteNumber
    ../../openclaw/src/infra/session-cost-usage.ts:68 toFiniteNumber

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/auto-reply/reply/abort.ts:94 resolveSessionEntryForKey
    ../../openclaw/src/auto-reply/reply/commands-session.ts:21 resolveSessionEntryForKey

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/auto-reply/reply/directive-handling.auth.ts:18 maskApiKey
    ../../openclaw/src/commands/models/list.format.ts:59 maskApiKey

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/auto-reply/thinking.ts:9 normalizeProviderId
    ../../openclaw/ui/src/ui/views/sessions.ts:45 normalizeProviderId

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/channels/plugins/load.ts:8 ensureCacheForRegistry
    ../../openclaw/src/channels/plugins/outbound/load.ts:13 ensureCacheForRegistry

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/cli/gateway-cli/run-loop.ts:31 cleanupSignals
    ../../openclaw/src/macos/gateway-daemon.ts:127 cleanupSignals

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/commands/model-default.ts:4 resolvePrimaryModel
    ../../openclaw/src/commands/openai-codex-model-default.ts:21 resolvePrimaryModel

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/commands/models/list.format.ts:49 truncate
    ../../openclaw/src/commands/models/scan.ts:29 truncate

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/config/commands.ts:19 resolveNativeSkillsEnabled
    ../../openclaw/src/config/commands.ts:35 resolveNativeCommandsEnabled

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/gateway/assistant-identity.ts:24 coerceIdentityValue
    ../../openclaw/ui/src/ui/assistant-identity.ts:20 coerceIdentityValue

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/infra/device-pairing.ts:153 normalizeScopes
    ../../openclaw/src/shared/device-auth.ts:18 normalizeDeviceAuthScopes

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/infra/exec-approvals-analysis.ts:9 expandHome
    ../../openclaw/src/infra/exec-approvals.ts:101 expandHome

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/media-understanding/attachments.ts:145 resolveRequestUrl
    ../../openclaw/src/media-understanding/providers/audio.test-helpers.ts:5 resolveRequestUrl

  Type 1 (exact) - 2 functions:
    ../../openclaw/src/routing/session-key.ts:76 normalizeAgentId
    ../../openclaw/src/routing/session-key.ts:96 sanitizeAgentId

  Type 1 (exact) - 2 functions:
    ../../openclaw/ui/src/ui/views/agents-panels-status-files.ts:122 formatChannelExtraValue
    ../../openclaw/ui/src/ui/views/channels.config.ts:68 formatExtraValue

  Type 2 (parametric) - 5 functions:
    ../../openclaw/src/agents/bash-process-registry.ts:303 stopSweeper
    ../../openclaw/src/agents/subagent-registry.ts:171 stopSweeper
    ../../openclaw/src/process/exec.ts:159 clearNoOutputTimer
    ../../openclaw/src/tui/tui.ts:117 clearFlushTimer
    ../../openclaw/src/tui/tui.ts:518 stopStatusTimer

  Type 2 (parametric) - 3 functions:
    ../../openclaw/extensions/bluebubbles/src/attachments.ts:56 resolveAccount
    ../../openclaw/extensions/bluebubbles/src/chat.ts:17 resolveAccount
    ../../openclaw/extensions/bluebubbles/src/reactions.ts:114 resolveAccount

  Type 2 (parametric) - 3 functions:
    ../../openclaw/src/cli/cron-cli/shared.ts:91 truncate
    ../../openclaw/src/commands/models/list.format.ts:49 truncate
    ../../openclaw/src/commands/models/scan.ts:29 truncate

  Type 2 (parametric) - 3 functions:
    ../../openclaw/src/routing/session-key.ts:76 normalizeAgentId
    ../../openclaw/src/routing/session-key.ts:96 sanitizeAgentId
    ../../openclaw/src/routing/session-key.ts:114 normalizeAccountId

  Type 2 (parametric) - 3 functions:
    ../../openclaw/ui/src/ui/app-polling.ts:23 stopNodesPolling
    ../../openclaw/ui/src/ui/app-polling.ts:43 stopLogsPolling
    ../../openclaw/ui/src/ui/app-polling.ts:63 stopDebugPolling

  Type 2 (parametric) - 2 functions:
    ../../openclaw/extensions/bluebubbles/src/targets.ts:325 isAllowedBlueBubblesSender
    ../../openclaw/src/imessage/targets.ts:144 isAllowedIMessageSender

  Type 2 (parametric) - 2 functions:
    ../../openclaw/extensions/device-pair/index.ts:110 isTailnetIPv4
    ../../openclaw/src/infra/tailnet.ts:8 isTailnetIPv4

  Type 2 (parametric) - 2 functions:
    ../../openclaw/extensions/googlechat/index.ts:12 register
    ../../openclaw/extensions/zalo/index.ts:12 register

  Type 2 (parametric) - 2 functions:
    ../../openclaw/extensions/irc/src/accounts.ts:66 resolveAccountConfig
    ../../openclaw/src/telegram/accounts.ts:61 resolveAccountConfig

  Type 2 (parametric) - 2 functions:
    ../../openclaw/extensions/msteams/src/attachments/shared.ts:251 resolveAllowedHosts
    ../../openclaw/extensions/msteams/src/attachments/shared.ts:262 resolveAuthAllowedHosts

  Type 2 (parametric) - 2 functions:
    ../../openclaw/extensions/zalo/src/accounts.ts:24 resolveDefaultZaloAccountId
    ../../openclaw/extensions/zalouser/src/accounts.ts:22 resolveDefaultZalouserAccountId

  Type 2 (parametric) - 2 functions:
    ../../openclaw/src/agents/anthropic-payload-log.ts:52 getWriter
    ../../openclaw/src/agents/cache-trace.ts:104 getWriter

  Type 2 (parametric) - 2 functions:
    ../../openclaw/src/agents/cli-credentials.ts:530 readQwenCliCredentialsCached
    ../../openclaw/src/agents/cli-credentials.ts:552 readMiniMaxCliCredentialsCached

  Type 2 (parametric) - 2 functions:
    ../../openclaw/src/agents/skills-install.ts:258 stripArchivePath
    ../../openclaw/src/infra/archive.ts:135 stripArchivePath

  Type 2 (parametric) - 2 functions:
    ../../openclaw/src/cli/hooks-cli.ts:135 formatHookMissingSummary
    ../../openclaw/src/cli/skills-cli.format.ts:46 formatSkillMissingSummary

  Type 2 (parametric) - 2 functions:
    ../../openclaw/src/commands/status.summary.ts:20 classifyKey
    ../../openclaw/src/gateway/session-utils.ts:269 classifySessionKey

  Type 2 (parametric) - 2 functions:
    ../../openclaw/src/config/io.ts:1065 resolveConfigCacheMs
    ../../openclaw/src/plugins/manifest-registry.ts:68 resolveManifestCacheMs

  Type 2 (parametric) - 2 functions:
    ../../openclaw/src/infra/outbound/outbound-session.ts:52 looksLikeUuid
    ../../openclaw/src/signal/identity.ts:15 looksLikeUuid

  Type 2 (parametric) - 2 functions:
    ../../openclaw/src/line/http-registry.ts:38 handleLineHttpRequest
    ../../openclaw/src/slack/http/registry.ts:38 handleSlackHttpRequest

  Type 2 (parametric) - 2 functions:
    ../../openclaw/src/logger.ts:17 logInfo
    ../../openclaw/src/logger.ts:27 logWarn

  Type 2 (parametric) - 2 functions:
    ../../openclaw/src/media-understanding/scope.ts:6 normalizeDecision
    ../../openclaw/src/sessions/send-policy.ts:7 normalizeSendPolicy

  Type 2 (parametric) - 2 functions:
    ../../openclaw/src/slack/channel-migration.ts:37 migrateSlackChannelsInPlace
    ../../openclaw/src/telegram/group-migration.ts:37 migrateTelegramGroupsInPlace

  Type 2 (parametric) - 2 functions:
    ../../openclaw/ui/src/ui/chat/message-extract.ts:38 extractTextCached
    ../../openclaw/ui/src/ui/chat/message-extract.ts:82 extractThinkingCached
