Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,128 in github.com/alibaba/open-code-review
⨍
Functions
7,128
◇
Types & classes
771
↓ 2 callers
Function
browserWarnf
browserWarnf emits one warning using the "[ocr] WARNING:" prefix the rest of the codebase uses for non-fatal problems.
internal/viewer/browser.go:47
↓ 2 callers
Function
buildBadge
buildBadge renders a compact "[category · severity]" tag for a finding. It returns an empty string when neither structured field is present, so text o
cmd/opencodereview/output.go:159
↓ 2 callers
Function
buildBadge
(comment)
scripts/github-actions/post-review-comments.js:2217
↓ 2 callers
Method
buildChangeFilesExceptGroup
buildChangeFilesExceptGroup returns a formatted list of changed files excluding all group members.
internal/agent/agent.go:1691
↓ 2 callers
Function
buildCustomCreateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/frontend/src/shared/configUtils.ts:117
↓ 2 callers
Function
buildDedupCommentsJSON
buildDedupCommentsJSON renders the batch comments as a JSON list with stable c-N ids that the LLM groups by. Only fields the LLM needs to judge simila
internal/scan/agent.go:1049
↓ 2 callers
Function
buildDiffLines
(comment model.LlmComment)
cmd/opencodereview/output.go:280
↓ 2 callers
Function
buildEntries
()
extensions/frontend/src/webview/views/ConfigView.tsx:358
↓ 2 callers
Function
buildFileList
buildFileList renders the change set for the grouping prompt, one file per line, each prefixed with its zero-based index. The index is what the model
internal/agent/grouping.go:255
↓ 2 callers
Function
buildGroupFilterCommentsJSON
buildGroupFilterCommentsJSON serializes comments with path info for group-level filtering.
internal/agent/agent.go:1969
↓ 2 callers
Function
buildMessageXML
buildMessageXML serializes msgs into the <message><content> form expected by the MEMORY_COMPRESSION_TASK prompt template.
internal/llmloop/compression.go:191
↓ 2 callers
Function
buildOfficialSaveEntries
( providerName: string, model: string, apiKey: string, apiKeyChanged: boolean, )
extensions/frontend/src/shared/configUtils.ts:101
↓ 2 callers
Method
buildPage
* Pure string assembly that touches no UI, so it can be unit-tested directly. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/jcef/WebviewHtml.kt:43
↓ 2 callers
Function
buildPhaseThreeMock
(t *testing.T)
acp/internal/orchestrator/runner_test.go:52
↓ 2 callers
Function
buildReviewArgs
(input: ReviewInput, repo: string, backgroundFile?: string)
plugins/open-code-review/opencode/open-code-review.ts:79
↓ 2 callers
Function
buildReviewArgs
(opts: CliRunOptions)
extensions/vscode/src/extension/services/cliParse.ts:6
↓ 2 callers
Function
buildRunTags
(runId, runAttempt)
scripts/github-actions/post-review-comments.js:1004
↓ 2 callers
Function
buildUserPrompt
(text string, st *State)
acp/internal/intent/tool.go:129
↓ 2 callers
Function
buildWorkspaceFiles
(diffHeadOut: string, diffCachedOut: string, untrackedOut: string)
extensions/vscode/src/extension/services/gitMap.ts:77
↓ 2 callers
Function
build_badge
Build the ``[category · severity]`` badge (middot U+00B7). Byte-matches the CLI's buildBadge degeneration so review output is consistent acro
examples/gitlab_ci/post_review.py:149
↓ 2 callers
Method
callback
(q url.Values, old *Auth)
internal/chatgptauth/oauth.go:156
↓ 2 callers
Function
canonicalRemote
canonicalRemote reduces a git remote URL to a stable, credential-free identity string for hashing into repository.identity_sha256, so the same reposit
internal/diff/git.go:497
↓ 2 callers
Function
captureBrowserWarnings
captureBrowserWarnings redirects browserWarnf for one test.
internal/viewer/browser_exec_test.go:108
↓ 2 callers
Function
captureDelegateStdout
(t *testing.T, fn func())
cmd/opencodereview/delegate_exec_test.go:19
↓ 2 callers
Function
captureStderr
(t *testing.T, fn func())
internal/telemetry/events_test.go:65
↓ 2 callers
Function
captureStderrForTest
captureStderrForTest captures everything written to os.Stderr during fn.
internal/session/raw_writer_test.go:260
↓ 2 callers
Function
captureToolTerminal
(t *testing.T, fn func())
internal/reviewtask/loop_execute_test.go:211
↓ 2 callers
Function
catalogError
(status int, requestID string, body []byte, auth *Auth)
internal/chatgptauth/api_error.go:60
↓ 2 callers
Method
checkCancelled
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliCancellation.kt:24
↓ 2 callers
Function
checkCorpusFloor
(linkCount, fileCount, minLinks, minFiles)
scripts/github-actions/check-plugin-contract.js:872
↓ 2 callers
Method
checkEnvironment
(force = false)
extensions/vscode/src/extension/services/CliService.ts:61
↓ 2 callers
Function
checkGitVersion
(getVersion func() ([]byte, error))
internal/gitcmd/version.go:72
↓ 2 callers
Function
checkMetricErr
checkMetricErr intentionally ignores metric registration errors: telemetry is best-effort and must not interrupt the main flow.
internal/telemetry/metrics.go:81
↓ 2 callers
Function
chunkArray
(items, size)
scripts/github-actions/post-review-comments.js:1054
↓ 2 callers
Function
clamp_line
(n)
examples/gitflic_ci/post_review.py:174
↓ 2 callers
Function
classifyBoundaryError
classifyBoundaryError classifies an error that only surfaced after the SDK retry loop finished, and reports whether it recognized it at all. The fals
internal/llm/retry_boundary.go:45
↓ 2 callers
Function
classifyItemError
classifyItemError maps a subtask error to a stable item failure class and a safe, generic reason. It never returns the raw error text (which may embed
internal/agent/agent.go:1212
↓ 2 callers
Function
classifyMainLoopStop
classifyMainLoopStop maps a non-error, non-completed main-loop stop to an item failure class and a safe reason. Only the configured limits — the max-t
internal/agent/agent.go:1240
↓ 2 callers
Function
cleanupOutputTemp
(file *os.File, path string)
cmd/opencodereview/shared.go:578
↓ 2 callers
Method
clear
()
extensions/vscode/src/extension/providers/CommentProvider.ts:314
↓ 2 callers
Function
client
(pages, comparisons = [])
scripts/github-actions/check-pr-commit-policy.test.js:57
↓ 2 callers
Function
cloneCustomProviderList
(src []customProviderListItem)
cmd/opencodereview/provider_tui.go:1356
↓ 2 callers
Function
clonePending
(p *Pending)
acp/internal/intent/state.go:62
↓ 2 callers
Method
closeAll
()
internal/gitcmd/runner.go:103
↓ 2 callers
Method
closeRead
closeRead unblocks a pending read. It is safe to call repeatedly and concurrently with the reader: closing the file makes Read return.
internal/gitcmd/runner.go:97
↓ 2 callers
Function
collectCommits
(commits, nodes)
scripts/github-actions/check-pr-commit-policy.js:34
↓ 2 callers
Function
colorf
colorf formats then colorizes, so call sites need not nest fmt.Sprintf.
cmd/opencodereview/color.go:92
↓ 2 callers
Function
commandExitCode
(err error)
acp/internal/orchestrator/runner.go:323
↓ 2 callers
Function
comment_span
Resolve a review comment into a line span tagged single/multi-line.
examples/gitlab_ci/post_review.py:422
↓ 2 callers
Method
commitParents
commitParents returns the parent commit SHAs of ref: zero for a root commit, one for an ordinary commit, and 2+ for a merge. It uses `rev-list --paren
internal/diff/git.go:596
↓ 2 callers
Function
compareFixture
compareFixture builds a sessions root with the sessions every TestHandleCompare row draws on and returns it. s1 (before) and s2 (after) share one fin
internal/viewer/compare_test.go:165
↓ 2 callers
Function
comparisonDefinition
(function llm.FunctionDef, workspace bool)
internal/config/toolsconfig/comparison.go:39
↓ 2 callers
Function
completeSessionIDsAnywhere
completeSessionIDs offers the persisted session ids for the current repo (or --repo, when already typed) as shell completions, newest first, with a sh
cmd/opencodereview/session_cmd.go:152
↓ 2 callers
Function
computeActiveZoneSize
computeActiveZoneSize returns how many trailing rounds fit within the remaining token budget after accounting for the frozen zone and the compressed s
internal/llmloop/compression.go:106
↓ 2 callers
Function
configuredParser
(opts llm.Options)
acp/cmd/ocr-acp/main.go:72
↓ 2 callers
Function
confirmDeletion
confirmDeletion reads a yes/no answer; a non-interactive stdin answers no.
cmd/opencodereview/session_cmd.go:663
↓ 2 callers
Function
consumeStreams
(stdout, stderr io.Reader, limits Limits, emit func(Event))
acp/internal/orchestrator/streams.go:132
↓ 2 callers
Function
containsEvent
(events []Event, message string)
acp/internal/orchestrator/runner_test.go:278
↓ 2 callers
Method
content
()
acp/internal/adapter/presentation/progress_format.go:44
↓ 2 callers
Function
copyMessages
copyMessages creates a shallow copy of a message slice.
internal/llmloop/compression.go:212
↓ 2 callers
Function
copyProvider
(p Provider)
internal/llm/providers.go:539
↓ 2 callers
Function
countCommentsRaw
(raw json.RawMessage)
internal/session/list.go:330
↓ 2 callers
Function
countDispatchable
(diffs []model.Diff)
internal/agent/agent.go:921
↓ 2 callers
Function
countLines
countLines returns the number of lines in content. A file without a trailing newline still counts its final line. Empty input → 0.
internal/scan/provider.go:435
↓ 2 callers
Function
counterpartPaths
(enPath)
scripts/github-actions/check-translation-sync.js:175
↓ 2 callers
Function
createHeadingIdResolver
()
pages/src/utils/headingId.ts:42
↓ 2 callers
Method
cssVariables
Builds the injected `:root { ... }`. A value that cannot be read falls back to a default * color; this never throws. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/jcef/IdeaTheme.kt:116
↓ 2 callers
Function
ctrlBreakUndeliverable
ctrlBreakUndeliverable reports whether err can only mean that a console control event reached no process, which is an expected outcome rather than a c
acp/internal/orchestrator/process/winapi_windows.go:241
↓ 2 callers
Method
cursorOnDeletableModel
cursorOnDeletableModel reports whether the model-step cursor is on a row that can be deleted (not on "Enter custom model name...").
cmd/opencodereview/provider_tui.go:509
↓ 2 callers
Method
cursorOnUserAddedModel
()
cmd/opencodereview/provider_tui.go:2780
↓ 2 callers
Method
customAPIKeyForSave
customAPIKeyForSave reports the API key to persist and whether the user edited the field (vs left the masked placeholder untouched).
cmd/opencodereview/provider_tui.go:910
↓ 2 callers
Function
delegateExamples
(t *testing.T)
internal/delegate/instructions_test.go:93
↓ 2 callers
Function
delegateGitEnv
()
internal/delegate/instructions_test.go:29
↓ 2 callers
Function
describeActiveProvider
(config: OcrConfig | null)
extensions/frontend/src/shared/configUtils.ts:44
↓ 2 callers
Function
describeCommentLocation
(reviewComment)
scripts/github-actions/post-review-comments.js:2873
↓ 2 callers
Method
detach
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliCancellation.kt:42
↓ 2 callers
Method
detachSidebar
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/review/ReviewProjectService.kt:122
↓ 2 callers
Function
detectInitialTab
(config: OcrConfig | null)
extensions/frontend/src/shared/configUtils.ts:25
↓ 2 callers
Function
diffStatus
(d model.Diff)
internal/agent/preview.go:136
↓ 2 callers
Method
discard
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:176
↓ 2 callers
Method
discover
(ctx context.Context, d *discovery)
internal/chatgptauth/oauth.go:52
↓ 2 callers
Method
dispatchBatch
dispatchBatch fans out the files of a single batch concurrently and blocks until they all finish (or ctx is cancelled). Returns the number of files di
internal/scan/agent.go:677
↓ 2 callers
Method
dispose
()
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:54
↓ 2 callers
Function
download
(url, maxRedirects = 10)
scripts/install.js:94
↓ 2 callers
Function
emitError
(file, message)
scripts/github-actions/check-translation-sync.js:206
↓ 2 callers
Function
emitGroupingSkipped
emitGroupingSkipped records a partition that was decided without an LLM round trip. Both skip paths report through here so their attribute sets cannot
internal/agent/grouping.go:163
↓ 2 callers
Method
emitSync
()
extensions/vscode/src/extension/providers/CommentProvider.ts:43
↓ 2 callers
Function
emitWarning
(file, message)
scripts/github-actions/check-translation-sync.js:211
↓ 2 callers
Function
emitWarning
(file, message, line)
scripts/github-actions/check-plugin-contract.js:742
↓ 2 callers
Function
emptyMarks
()
internal/viewer/static/session.js:188
↓ 2 callers
Function
emptyResponse
()
internal/reviewtask/retry_identity_test.go:62
↓ 2 callers
Function
emptyResponse
()
internal/llmloop/retry_identity_test.go:57
↓ 2 callers
Function
encodingForModel
(modelName string)
internal/llm/client.go:573
↓ 2 callers
Function
endpointURL
(rawURL, suffix string)
acp/internal/intent/llm/client.go:242
↓ 2 callers
Method
ensureTelemetry
()
cmd/opencodereview/config_cmd.go:1201
↓ 2 callers
Method
env
The current process environment overlaid with the login shell environment; falls back to the process environment when parsing fails. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:50
↓ 2 callers
Function
errBedrockNotConfigurable
errBedrockNotConfigurable explains why the two url+token strategies reject the bedrock protocol. Both describe a single HTTP endpoint and carry no pla
internal/llm/resolver.go:254
↓ 2 callers
Function
errCaller
()
acp/internal/testutil/stub.go:96
↓ 2 callers
Function
errOutput
(err error, out []byte)
acp/internal/testutil/stub.go:105
↓ 2 callers
Function
escapeAnnotationData
(s)
scripts/github-actions/check-plugin-contract.js:732
← previous
next →
1,401–1,500 of 7,128, ranked by callers