Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,390 in github.com/alibaba/open-code-review
⨍
Functions
7,390
◇
Types & classes
806
↓ 3 callers
Function
lookupPreset
(name: string)
extensions/frontend/src/shared/providers.ts:22
↓ 3 callers
Function
main
()
scripts/github-actions/action-contract.test.js:2143
↓ 3 callers
Function
makeScanItems
(n int)
internal/scan/budget_test.go:63
↓ 3 callers
Method
manifestMode
manifestMode maps the review to the manifest input mode. It derives purely from From/To/Commit so the value is always one of the three valid input mod
internal/agent/agent.go:979
↓ 3 callers
Function
manifestPaths
manifestPaths returns the old/new paths for identity derivation with the "/dev/null" sentinel (added/deleted files) collapsed to empty, so it never po
internal/agent/agent.go:1133
↓ 3 callers
Method
mapAnthropicResponse
mapAnthropicResponse converts the SDK response into ChatResponse.
internal/llm/client.go:1743
↓ 3 callers
Function
mapStatusCode
(code: string)
extensions/vscode/src/extension/services/gitMap.ts:7
↓ 3 callers
Method
mergeBase
mergeBase computes the merge-base for range mode. Returns "" for other modes.
cmd/opencodereview/delegate_cmd.go:142
↓ 3 callers
Function
messageTokens
messageTokens counts visible text plus the Native replay payload and tool calls that ExtractText() does not see.
internal/llmloop/compression.go:64
↓ 3 callers
Function
metaFactory
metaFactory builds the same closure internal/agent injects, so these tests exercise the review wiring rather than a test-only shape.
internal/llmloop/retry_identity_test.go:67
↓ 3 callers
Function
modelTUIEnterCustomModelName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1127
↓ 3 callers
Function
msg
(role, content string)
internal/reviewtask/runtime_test.go:22
↓ 3 callers
Method
must
(t *testing.T, args ...string)
internal/delegate/instructions_test.go:54
↓ 3 callers
Function
mutateObj
Read-modify-write of a nested object field: a missing object is treated as empty, and the whole object is written back after the change. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:60
↓ 3 callers
Function
newDelegateRepo
(t *testing.T)
internal/delegate/instructions_test.go:63
↓ 3 callers
Method
newRequestMeta
newRequestMeta builds the retry-report identity for one logical LLM request. It is the single place provider and model are read for that purpose — th
internal/agent/agent.go:269
↓ 3 callers
Function
newThinkingTestRunner
newThinkingTestRunner builds a Runner wired for a full RunMainTask pass: a scripted LLM client, the code_comment tool, and a comment collector.
internal/reviewtask/loop_execute_more_test.go:40
↓ 3 callers
Function
normalizeComparePath
(p)
scripts/github-actions/post-review-comments.js:1747
↓ 3 callers
Function
normalizeLine
Remove leading diff markers (`+`/`-`) and surrounding whitespace for lenient comparison of existingCode with file content. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:51
↓ 3 callers
Function
normalizeLine
(s: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:55
↓ 3 callers
Function
normalizeModelList
(models []string)
cmd/opencodereview/config_cmd.go:964
↓ 3 callers
Method
notify
(ctx context.Context, id acp.SessionId, update acp.SessionUpdate)
acp/internal/adapter/agent.go:63
↓ 3 callers
Function
officialAPIKeyRequiredError
officialAPIKeyRequiredError mirrors the wording applyOfficialProviderConfig uses for the same failure, so the interactive and non-interactive paths na
cmd/opencodereview/provider_tui.go:945
↓ 3 callers
Function
outcomeLabel
(kind orchestrator.OutcomeKind)
acp/internal/adapter/presentation/progress_format.go:123
↓ 3 callers
Function
outputPreview
outputPreview renders a preview in the requested output format. sarif is rejected with an error because a preview contains file/rule metadata, not rev
cmd/opencodereview/output.go:772
↓ 3 callers
Function
overlapsHistory
(reviewComment, history, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:1415
↓ 3 callers
Function
parseEnvBlock
(stdout: string)
extensions/vscode/src/extension/services/shellEnv.ts:9
↓ 3 callers
Function
parseExplicitHeadingId
(text: string)
pages/src/utils/headingId.ts:10
↓ 3 callers
Function
parseLogLine
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliParse.kt:189
↓ 3 callers
Function
parseRecordTime
(s string)
internal/session/list.go:348
↓ 3 callers
Function
parseScalar
(raw)
scripts/github-actions/action-contract.test.js:30
↓ 3 callers
Function
parseToolArgs
parseToolArgs unmarshals a tool call's raw JSON arguments, always returning a non-nil map on success: some OpenAI-compatible gateways send "arguments"
internal/reviewtask/tools.go:238
↓ 3 callers
Method
passThroughCPInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1475
↓ 3 callers
Function
pathBatches
(groups [][]string, pathspec func(string) string)
internal/behaviortask/search.go:23
↓ 3 callers
Method
planEnabled
planEnabled / dedupEnabled / summaryEnabled report whether each optional phase will actually run: template must define it AND the corresponding --no-*
internal/scan/agent.go:87
↓ 3 callers
Method
planEnabledFor
(it model.ScanItem)
internal/scan/agent.go:91
↓ 3 callers
Function
positionalSignature
positionalSignature extracts the positional-argument part of cmd.Use, e.g. "<key> <value>" from "set <key> <value>" and "<path...>" from "rule [flags]
cmd/opencodereview/arg_errors.go:92
↓ 3 callers
Function
post
(review_input)
examples/gerrit_ci/post_review.py:229
↓ 3 callers
Method
postMessage
(msg: unknown)
extensions/frontend/src/webview/bridge.vsc.ts:7
↓ 3 callers
Method
prepareModelSelection
(providerName, configModel string)
cmd/opencodereview/provider_tui.go:546
↓ 3 callers
Method
preview
preview is read-only with respect to the Agent: it does not mutate a.items. (Earlier versions did, which made a subsequent Run on the same Agent silen
internal/scan/preview.go:28
↓ 3 callers
Function
previewFixture
()
cmd/opencodereview/output_color_test.go:106
↓ 3 callers
Function
previewMaxTokens
previewMaxTokens resolves the per-file prompt ceiling the way a real run resolves it, but without building an LLM runtime: resolveMaxTokens needs only
cmd/opencodereview/shared.go:85
↓ 3 callers
Function
printDiffLine
printDiffLine renders a single diff line with colored prefix and background on content. With color disabled it emits "<prefix> <content>", which keeps
cmd/opencodereview/output.go:208
↓ 3 callers
Function
printWizardCancelled
printWizardCancelled prints the standard Esc-cancel message for config wizards. changesDescription is a short noun phrase, e.g. "Configuration changes
cmd/opencodereview/provider_cmd.go:61
↓ 3 callers
Function
rawFor
(slug: DocSlug, loaded: LoadedDocContent)
pages/src/content/docs/index.ts:99
↓ 3 callers
Function
readFileOrNull
(abs, { maxBytes = MAX_SCAN_BYTES } = {})
scripts/github-actions/check-plugin-contract.js:749
↓ 3 callers
Function
readPage
(content string, cursor, maxBytes int)
internal/behaviortask/observation.go:178
↓ 3 callers
Function
readWorkspaceFileForDiffWithLimit
(repoDir, relPath string, maxSize int64)
internal/diff/workspace_file.go:23
↓ 3 callers
Method
recordWarning
(warningType, file, message string)
internal/scan/agent.go:250
↓ 3 callers
Function
recordedRepoDir
recordedRepoDir returns the working directory a session recorded, and whether it had one.
internal/session/delete.go:122
↓ 3 callers
Function
registryModelsForProvider
(name string, fallback []string)
cmd/opencodereview/provider_tui.go:456
↓ 3 callers
Function
reloadAfterChunkError
()
pages/src/components/ErrorBoundary.tsx:34
↓ 3 callers
Method
render
()
pages/src/components/ErrorBoundary.tsx:69
↓ 3 callers
Function
renderKotlin
(providers []llm.Provider)
internal/llm/gen/kotlin.go:36
↓ 3 callers
Function
renderModelName
(name string, isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2131
↓ 3 callers
Function
repairSerializedComments
repairSerializedComments escapes what makes a model-serialized `comments` string invalid JSON — prose quotes, bare control characters, illegal backsla
internal/tool/comment_args_repair.go:98
↓ 3 callers
Function
repairedCommentsAcceptable
repairedCommentsAcceptable reports whether a repaired batch still carries every comment the original text described. Parsing again is not enough on it
internal/tool/comment_args_repair.go:188
↓ 3 callers
Function
replayStreamedToolCall
replayStreamedToolCall runs one streamed completion against a fixture server and returns the assistant history message rebuilt for the next request.
internal/llm/tool_call_extra_content_test.go:65
↓ 3 callers
Method
report
(result behaviortask.Result, runErr error)
cmd/opencodereview/analysis.go:184
↓ 3 callers
Function
resolveAllowedHostsFromEnv
resolveAllowedHostsFromEnv reads the OCR_VIEWER_ALLOWED_HOSTS environment variable and combines it with the bind host to produce the active allowlist.
internal/viewer/hostguard.go:136
↓ 3 callers
Function
resolveBackgroundFilePath
(repoDir, path string)
cmd/opencodereview/background_file.go:25
↓ 3 callers
Function
resolveBin
(name: string)
extensions/vscode/src/extension/services/shellEnv.ts:56
↓ 3 callers
Function
resolveChatGPT
(cfg configFile, entry providerEntryConfig, override string, ctx context.Context)
internal/llm/chatgpt.go:33
↓ 3 callers
Function
resolveColorFor
(writer io.Writer)
cmd/opencodereview/color.go:64
↓ 3 callers
Method
resolveGitRef
(root: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:229
↓ 3 callers
Function
resolveIn
resolveIn builds a real resolver for dir/ref and resolves path.
internal/config/rules/sniffer_test.go:71
↓ 3 callers
Function
resolveInputExpressions
(value, values, stepOutputs = {})
scripts/github-actions/action-contract.test.js:179
↓ 3 callers
Function
resolveNativeBinary
()
scripts/platform.js:39
↓ 3 callers
Function
resumedFromSession
(resume *session.ResumeState)
internal/agent/agent.go:1337
↓ 3 callers
Function
retryAttemptChain
retryAttemptChain renders one logical request as a short human-readable chain.
cmd/opencodereview/output.go:599
↓ 3 callers
Method
rollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:486
↓ 3 callers
Function
routeComment
(comment, policy)
scripts/github-actions/post-review-comments.js:2354
↓ 3 callers
Method
run
(ctx context.Context, request Request, limits Limits, events chan Event, outcomes chan<- Outcome)
acp/internal/orchestrator/runner.go:17
↓ 3 callers
Method
runIdentity
runIdentity reads the identity off the agent's current selection. It is only meaningful once the selection is final: sourceArtifactSHA256 hashes what
internal/agent/identity.go:116
↓ 3 callers
Function
runOcr
(args: string[], options: RunOptions)
plugins/open-code-review/opencode/open-code-review.ts:168
↓ 3 callers
Function
runPrRefs
(sources)
scripts/github-actions/action-contract.test.js:387
↓ 3 callers
Function
runReviewWithAudience
End-to-end coverage of #928: `--audience human --format json` used to run completely silent because the json format discarded stdout outright, ignorin
cmd/opencodereview/progress_stream_e2e_test.go:20
↓ 3 callers
Function
runSessionExport
runSessionExport writes one session's standalone HTML page to --output, or to stdout when it is unset. The session id is optional because a *successfu
cmd/opencodereview/session_cmd.go:238
↓ 3 callers
Function
runSessionList
()
cmd/opencodereview/session_cmd.go:274
↓ 3 callers
Function
runSessionShow
(sessionID string)
cmd/opencodereview/session_cmd.go:314
↓ 3 callers
Function
safePath
(filePath string)
internal/behaviortask/code.go:131
↓ 3 callers
Function
sameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:1449
↓ 3 callers
Function
sanitizeMetadata
(value)
scripts/github-actions/post-review-comments.js:2208
↓ 3 callers
Function
sanitizeRetryCodes
sanitizeRetryCodes filters out SDK-default codes (408, 409, 429) and returns the remaining valid codes, any warnings for filtered codes, and an error
internal/llm/resolver.go:978
↓ 3 callers
Function
savedSecretReplaceHint
savedSecretReplaceHint builds the replace hint text without leading indent.
cmd/opencodereview/provider_tui.go:2569
↓ 3 callers
Function
scanCodeCommentResponse
(contents ...string)
internal/scan/coverage_test.go:1378
↓ 3 callers
Function
scanLines
scanLines reads from r line by line, collecting at most maxLines lines starting from startLine (1-based), while counting the total number of lines. Th
internal/tool/filereader.go:163
↓ 3 callers
Function
sealRepo
sealRepo builds a two-commit repo on a branch, so `main..feature` is a real range whose head a later commit can move.
internal/agent/sealed_input_test.go:19
↓ 3 callers
Method
secure
()
internal/chatgptauth/store.go:92
↓ 3 callers
Function
securityHeaders
securityHeaders wraps a handler and sets defense-in-depth response headers on every reply. These harden the local viewer's browser-facing surface (the
internal/viewer/securityheaders.go:28
↓ 3 callers
Function
selectScanItemsForTest
(t *testing.T, a *Agent, items []model.ScanItem)
internal/scan/agent_test.go:366
↓ 3 callers
Function
selectedScanItems
(decisions []scanSelection)
internal/scan/agent.go:451
↓ 3 callers
Function
semverGt
(a, b)
scripts/version.js:16
↓ 3 callers
Function
sensitiveHeader
(name string)
internal/llm/raw.go:149
↓ 3 callers
Function
sessionRepoName
(cwd, encodedRepo string)
internal/viewer/handler.go:78
↓ 3 callers
Method
set
Writes a single config entry and returns the config after the write. [CliService.runRaw] throws [CliException] when the CLI exits non-zero. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigService.kt:183
↓ 3 callers
Function
setCustomProviderValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:1022
↓ 3 callers
Function
setHelperEnv
setHelperEnv steers children of this process into the helper branch. openBrowserCandidates builds its own exec.Cmd from an argv, so the inherited envi
internal/viewer/browser_exec_test.go:72
↓ 3 callers
Function
setProviderEntryField
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:103
← previous
next →
1,201–1,300 of 7,390, ranked by callers