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
↓ 5 callers
Function
NewReport
(result behaviortask.Result, runErr error, directory string)
internal/workflow/report.go:39
↓ 5 callers
Function
NewSessionKey
NewSessionKey returns a fresh UUIDv4 session key. Clients use it as a per-client fallback for requests whose context carries no session key (e.g. `ocr
internal/llm/sessionkey.go:93
↓ 5 callers
Function
ParseReviewMode
ParseReviewMode returns the correct ReviewMode based on provided flag values.
internal/tool/filereader.go:35
↓ 5 callers
Function
RecordCommentsGenerated
(ctx context.Context, n int64)
internal/telemetry/metrics.go:103
↓ 5 callers
Function
RecordLLMRequest
(ctx context.Context, model string, dur time.Duration, totalTokens int64, status string)
internal/telemetry/metrics.go:113
↓ 5 callers
Function
RecordReviewDuration
(ctx context.Context, dur time.Duration)
internal/telemetry/metrics.go:83
↓ 5 callers
Function
RelocateAcrossFiles
RelocateAcrossFiles handles the comment whose ExistingCode belongs to a different file than the one it was filed against. The reviewing Agent reads r
internal/diff/resolver.go:101
↓ 5 callers
Method
ReplaceSince
ReplaceSince replaces comments[start:] with the given replacements. Useful for batch-level dedup: take a Snapshot, run a batch, dedup the new comments
internal/tool/comment_collector.go:82
↓ 5 callers
Method
ResolveWorkspaceComparison
(ctx context.Context)
internal/diff/workspace.go:22
↓ 5 callers
Method
RoundTrip
(r *http.Request)
internal/chatgptauth/lifecycle_test.go:222
↓ 5 callers
Method
SessionID
SessionID returns the persisted session identifier so callers can show it in JSON output or failure diagnostics. Returns "" when no session was create
cmd/opencodereview/shared.go:784
↓ 5 callers
Method
SetDiffMap
SetDiffMap replaces the diff snapshot. Must be called before concurrent access begins.
internal/tool/file_read_diff.go:60
↓ 5 callers
Method
Submit
Submit runs f in a background goroutine bounded by the semaphore. When f completes its return value is collected internally.
internal/reviewtask/pool.go:47
↓ 5 callers
Function
ToToolDef
ToToolDef converts an MCP tool definition to an llm.ToolDef.
internal/mcp/provider.go:70
↓ 5 callers
Method
TotalOutputTokens
TotalOutputTokens returns the accumulated completion tokens from all LLM calls.
internal/llmloop/loop.go:116
↓ 5 callers
Method
TotalTokensUsed
TotalTokensUsed returns input + output.
internal/llmloop/loop.go:125
↓ 5 callers
Function
TraceIDFromContext
TraceIDFromContext returns the hex-encoded trace ID of the span carried by ctx, or "" if ctx carries no valid span (e.g. telemetry is disabled).
internal/telemetry/span.go:48
↓ 5 callers
Function
UseTestSessions
UseTestSessions redirects session persistence to the "test-sessions" subdirectory and raw captures to "test-raw", so that test runs do not pollute the
internal/session/testing.go:12
↓ 5 callers
Method
abort
()
acp/cmd/ocr-acp/stdio_windows.go:227
↓ 5 callers
Method
acquire
(ctx context.Context)
internal/gitcmd/runner.go:153
↓ 5 callers
Function
applyConfigEntries
Merges the config set entries into the raw config in memory (nothing is written to disk). */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:196
↓ 5 callers
Function
applyManualConfig
(configPath string, cfg *Config, result providerTUIResult)
cmd/opencodereview/provider_cmd.go:103
↓ 5 callers
Function
applyModelDeleteToEntry
(entry ProviderEntry, name string)
cmd/opencodereview/provider_tui.go:466
↓ 5 callers
Function
assertContains
(t *testing.T, args []string, val string)
internal/tool/code_search_test.go:439
↓ 5 callers
Function
assertNotContains
(t *testing.T, args []string, val string)
internal/tool/code_search_test.go:446
↓ 5 callers
Method
assert_unresolved
(self, severity, want)
examples/gerrit_ci/post_review_test.py:93
↓ 5 callers
Method
attemptCounts
attemptCounts snapshots the per-file real HTTP attempt counts.
cmd/opencodereview/retry_fake_llm_test.go:105
↓ 5 callers
Function
bindRawWriter
bindRawWriter opens the session's raw capture file and attaches it to the run's raw holder; defer the returned closer. A nil holder (capture off) or a
cmd/opencodereview/shared.go:289
↓ 5 callers
Function
budgetAgentTestTemplate
budgetAgentTestTemplate returns a minimal template sufficient to drive dispatchSubtasks without plan/dedup/summary phases.
internal/agent/budget_test.go:53
↓ 5 callers
Function
budgetTestTemplate
()
internal/scan/budget_test.go:50
↓ 5 callers
Function
buildAllowedHosts
buildAllowedHosts returns the default-deny allowlist used by the host guard. The set always includes the standard loopback names. If bindHost is a con
internal/viewer/hostguard.go:61
↓ 5 callers
Function
buildConcatenatedDiffs
buildConcatenatedDiffs formats all diffs in the group as per-file XML elements.
internal/agent/agent.go:1661
↓ 5 callers
Method
cancelPendingCompression
cancelPendingCompression aborts the conversation's in-flight background compression, if any.
internal/llmloop/compression.go:462
↓ 5 callers
Function
captureStdout
(t *testing.T, fn func())
internal/telemetry/events_test.go:143
↓ 5 callers
Function
checkPluginDeclarations
(specs, readJson)
scripts/github-actions/check-plugin-contract.js:518
↓ 5 callers
Function
clearCfgActiveModelIfDeleted
(cfg *Config, providerName, name string)
cmd/opencodereview/provider_tui.go:474
↓ 5 callers
Method
closeStreamsQuietly
Closes the process's three streams, swallowing only the IOException declared by close() and never runtime signals such as InterruptedException. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliService.kt:308
↓ 5 callers
Function
collectUnknownJSONFields
(data []byte, knownFields []string)
cmd/opencodereview/config_cmd.go:411
↓ 5 callers
Function
commentKey
(rc)
scripts/github-actions/post-review-comments.test.js:79
↓ 5 callers
Function
contentToText
(contents []mcp.Content)
internal/mcp/client.go:266
↓ 5 callers
Function
copyLlmComments
(in []model.LlmComment)
internal/session/resume.go:359
↓ 5 callers
Function
copyMessages
copyMessages creates a shallow copy of a message slice.
internal/llmloop/compression.go:246
↓ 5 callers
Method
customListCount
()
cmd/opencodereview/provider_tui.go:631
↓ 5 callers
Method
describe
describe renders m for internal construction errors raised by RetryCollector.Freeze. Those errors reach the user through runErr, and with --concurren
internal/llm/retry_meta.go:115
↓ 5 callers
Function
describeFiles
(s session.Summary)
cmd/opencodereview/session_cmd.go:814
↓ 5 callers
Function
describeRange
(s session.Summary)
cmd/opencodereview/session_cmd.go:800
↓ 5 callers
Method
diagnosticText
Redact provider-controlled text, where credentials might be echoed. Metadata fields are quoted separately; URLs lose userinfo, query and fragment firs
acp/internal/intent/llm/diagnostics.go:127
↓ 5 callers
Method
disconnect
()
pages/src/pages/DocsPage.test.tsx:185
↓ 5 callers
Function
displayMode
(m string)
cmd/opencodereview/session_cmd.go:793
↓ 5 callers
Method
dispose
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentService.kt:741
↓ 5 callers
Function
emptyRawConfig
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:26
↓ 5 callers
Method
ensureApi
()
extensions/vscode/src/extension/services/GitService.ts:24
↓ 5 callers
Function
ensureModelInList
ensureModelInList appends model to the end when missing; never reorders existing entries.
cmd/opencodereview/config_cmd.go:990
↓ 5 callers
Function
error
(msg)
scripts/install.js:27
↓ 5 callers
Function
estimateCost
(items []model.ScanItem, planEnabled func(model.ScanItem) bool, dedupEnabled, summaryEnabled bool)
internal/scan/estimate.go:61
↓ 5 callers
Method
executeGroupPlanPhase
executeGroupPlanPhase runs the plan phase for a file group.
internal/agent/agent.go:1786
↓ 5 callers
Method
executeGroupSubtask
executeGroupSubtask performs the Plan Phase + Main Loop for a file group. It returns (completed, stop, err): a hard Go error (err) for provider/config
internal/agent/agent.go:1424
↓ 5 callers
Method
executeSubtask
executeSubtask runs the scan pipeline for one file: 1. Optional PLAN_TASK: produce a JSON checklist of focus areas. 2. MAIN_TASK: review the file with
internal/scan/agent.go:789
↓ 5 callers
Function
extractFilenameFromURL
extractFilenameFromURL returns the filename part (last path segment) of a URL pattern.
internal/release/asset_naming_test.go:57
↓ 5 callers
Function
finalizeRequest
finalizeRequest is the shared body of the client-boundary defer: correct the last attempt if the error only became visible after the SDK returned, the
internal/llm/retry_boundary.go:130
↓ 5 callers
Method
findCustomIdx
(name string)
cmd/opencodereview/provider_tui.go:1439
↓ 5 callers
Function
findMissingTranslations
(changedFiles)
scripts/github-actions/check-translation-sync.js:185
↓ 5 callers
Function
getChangedFiles
(env, exec = execFileSync)
scripts/github-actions/check-translation-sync.js:226
↓ 5 callers
Function
gitIn
(t *testing.T, dir string, args ...string)
internal/agent/sealed_input_test.go:28
↓ 5 callers
Function
graceLimitWarnings
graceLimitWarnings returns the review-limit warnings recorded on the runner. A limit is recorded once per grace round, however that round ended, so th
internal/reviewtask/loop_test.go:116
↓ 5 callers
Function
handleSessions
(w http.ResponseWriter, r *http.Request, root, repo string)
internal/viewer/handler.go:39
↓ 5 callers
Function
hashFields
hashFields folds a sequence of string fields into one SHA-256 digest, writing an unambiguous 8-byte big-endian length prefix before each field so no t
internal/agent/agent.go:1119
↓ 5 callers
Function
helperAlias
helperAlias configures a git alias that runs the test binary as the helper in the given mode. git dispatches the alias through its bundled sh; the pat
internal/gitcmd/runner_pipe_windows_test.go:130
↓ 5 callers
Function
initResumeRepo
initResumeRepo adds a second commit to the shared single-commit fixture, so HEAD~1..HEAD is a real range with a reviewable Go file in it.
cmd/opencodereview/review_resume_more_test.go:123
↓ 5 callers
Function
isCheckpointAuthorOurs
(comment, appSlug = "", selfLogin = "")
scripts/github-actions/post-review-comments.js:3147
↓ 5 callers
Function
isMachineReadable
isMachineReadable reports whether the output format writes a structured document to stdout that must not be interleaved with progress text. json and s
cmd/opencodereview/shared.go:367
↓ 5 callers
Function
isPresetProvider
Uses Locale.ROOT so provider-name normalization is independent of the system locale. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/Providers.kt:12
↓ 5 callers
Method
isUserAddedModel
(name string)
cmd/opencodereview/provider_tui.go:2771
↓ 5 callers
Method
isUserAddedOfficialModel
(name string)
cmd/opencodereview/provider_tui.go:499
↓ 5 callers
Function
jsonFieldNames
(value any)
cmd/opencodereview/config_cmd.go:390
↓ 5 callers
Function
loadDelegateContext
(opts delegateOptions)
cmd/opencodereview/delegate_cmd.go:102
↓ 5 callers
Method
logicalRequestID
logicalRequestID computes the canonical logical_request_id for m under runID. Fields are NUL-terminated in a fixed order rather than concatenated, be
internal/llm/retry_meta.go:91
↓ 5 callers
Function
makeBudgetDiffs
makeBudgetDiffs returns n small, non-deleted diffs that survive every selection gate.
internal/agent/budget_test.go:68
↓ 5 callers
Function
manifestMessage
(manifest *session.RunManifest, findings int)
cmd/opencodereview/output.go:657
↓ 5 callers
Method
matches
Matching the whole preamble prevents comments from satisfying a missing declaration.
internal/llm/gen/check.go:164
↓ 5 callers
Method
maybeRunDedup
maybeRunDedup, when the template has a DedupTask and the batch produced at least DedupMinComments comments, invokes the DEDUP_TASK LLM to merge near-d
internal/scan/agent.go:987
↓ 5 callers
Method
maybeRunProjectSummary
maybeRunProjectSummary runs the post-batch PROJECT_SUMMARY_TASK over the union of all collected comments. Best-effort: any error / empty input no-temp
internal/scan/agent.go:901
↓ 5 callers
Function
mergeUnknownJSONFields
(data []byte, unknown map[string]json.RawMessage)
cmd/opencodereview/config_cmd.go:429
↓ 5 callers
Method
modelCount
()
cmd/opencodereview/provider_tui.go:627
↓ 5 callers
Function
newJSONToolCalls
(toolCalls map[string]int64, failures []llmloop.ToolFailureDetail)
cmd/opencodereview/output.go:323
↓ 5 callers
Function
newMux
newMux builds the viewer's routing table against a sessions root. The viewer is read-only: the document routes are registered with GET-only patterns (
internal/viewer/server.go:113
↓ 5 callers
Function
normalizePath
normalizePath canonicalizes a path for identity derivation: it unifies separators to forward slashes and cleans redundant "." / ".." / duplicate separ
internal/session/manifest.go:218
↓ 5 callers
Method
officialProviderActiveModel
(p llm.Provider)
cmd/opencodereview/provider_tui.go:242
↓ 5 callers
Function
openBrowserCandidates
openBrowserCandidates tries each candidate in turn. Every failure is reported, not just the first: with $BROWSER set to something uninstalled and no p
internal/viewer/browser.go:211
↓ 5 callers
Function
outputTempFiles
--- lazyFileWriter ---
cmd/opencodereview/output_file_test.go:209
↓ 5 callers
Function
outputTextWithWarnings
(comments []model.LlmComment, warnings []agent.AgentWarning, manifest *session.RunManifest, out io.Writer)
cmd/opencodereview/output.go:100
↓ 5 callers
Function
parseBranchList
* Parses `git branch -a --format=%(refname)` output. The full refname is used deliberately instead of * `%(refname:short)`: git abbreviates `refs/rem
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:99
↓ 5 callers
Method
parseEnvBlock
Takes the key=value lines between the two delimiter markers in the login shell's `env` output. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:36
↓ 5 callers
Function
parseModelList
* Parses the user input for the models field: try a JSON array first, falling back to comma splitting * when parsing fails or the value is not an arr
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:75
↓ 5 callers
Function
parseNonNegInt
(val, defaultVal)
scripts/github-actions/post-review-comments.js:1911
↓ 5 callers
Function
parseShellRC
(path, modelOverride string)
internal/llm/resolver.go:798
↓ 5 callers
Function
pathSelectorRepo
(t *testing.T)
internal/scan/provider_paths_test.go:169
↓ 5 callers
Function
pinDefaultBranches
* Moves `origin/HEAD` and the default remote branch it points at ([defaultRemote]) to the front of the list, * right after the first local branch, ke
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:125
↓ 5 callers
Function
pinProductionTerminateDuration
pinProductionTerminateDuration restores the production shutdown budget for tests whose timing must not shift with the race detector's widened budget.
internal/mcp/closeall_test.go:32
↓ 5 callers
Method
post_seq
Drive post() over a sequence of per-call fake_urlopen outcomes. Each outcome is either the raw response body (bytes, returned) or an
examples/gerrit_ci/post_review_test.py:565
← previous
next →
701–800 of 7,390, ranked by callers