Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,169 in github.com/alibaba/open-code-review
⨍
Functions
7,169
◇
Types & classes
774
↓ 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:103
↓ 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:287
↓ 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:1659
↓ 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:803
↓ 5 callers
Function
describeRange
(s session.Summary)
cmd/opencodereview/session_cmd.go:789
↓ 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:162
↓ 5 callers
Function
displayMode
(m string)
cmd/opencodereview/session_cmd.go:782
↓ 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:1784
↓ 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:1422
↓ 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:1117
↓ 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:3144
↓ 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:362
↓ 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
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:309
↓ 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
outputJSONWithWarnings
(comments []model.LlmComment, warnings []agent.AgentWarning, filesReviewed, inputTokens, outputTokens, totalT
cmd/opencodereview/output.go:373
↓ 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:86
↓ 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:1908
↓ 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
↓ 5 callers
Function
preserveCheckpointMarker
(newBody, oldBody)
scripts/github-actions/post-review-comments.js:3045
↓ 5 callers
Function
probeVersion
(binary string, timeout time.Duration)
acp/internal/orchestrator/resolve.go:140
↓ 5 callers
Function
promptContent
Resources select local scan targets; they are never fetched or interpreted as instructions, and never silently narrow a repository-wide review.
acp/internal/adapter/resources.go:24
↓ 5 callers
Function
rawPath
(home, repoDir, sessionID string)
internal/session/raw_writer_test.go:21
↓ 5 callers
Function
read
()
scripts/github-actions/post-review-comments.test.js:6123
↓ 5 callers
Function
readAllPages
(tag, pageFn, log, maxPages = 50)
scripts/github-actions/post-review-comments.js:2074
↓ 5 callers
Function
render
(providers []llm.Provider)
internal/llm/gen/main.go:105
↓ 5 callers
Function
renderedRun
(step, values)
scripts/github-actions/action-contract.test.js:204
↓ 5 callers
Method
requests
()
internal/reviewtask/retry_identity_test.go:56
↓ 5 callers
Function
requireGitSh
requireGitSh skips when git cannot dispatch aliases (no bundled sh). On a stock Git for Windows install this is always present.
internal/gitcmd/runner_pipe_windows_test.go:145
↓ 5 callers
Method
resolveBin
* Resolves a command name to an absolute path. When resolution fails, the original name is returned and left * to [ProcessBuilder] to find on the
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:74
↓ 5 callers
Function
resolveLinesInContent
* Resolve CLI line numbers in [content]: use valid lines directly, otherwise relocate with an [existingCode] sliding-window match. * Return null if b
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:103
↓ 5 callers
Function
resolveMaxTokens
resolveMaxTokens applies the per-run CLI override, then the saved setting, and finally the embedded task-template default.
cmd/opencodereview/shared.go:52
↓ 5 callers
Function
revParse
revParse resolves a ref to its full SHA, so a test can spell the same commit a different way.
cmd/opencodereview/review_resume_more_test.go:112
↓ 5 callers
Method
reviewMode
()
internal/agent/agent.go:931
↓ 5 callers
Function
reviewModeFromOptions
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:499
↓ 5 callers
Function
reviseAttempt
reviseAttempt applies a client-boundary correction to the last attempt of the logical request identified by ctx. Requests without identity (scan, llm
internal/llm/retry_boundary.go:103
↓ 5 callers
Method
run
(opts: CliRunOptions, cb: SessionCallbacks)
extensions/vscode/src/extension/services/ReviewSession.ts:35
↓ 5 callers
Function
runChatGPTLogin
(ctx context.Context, out io.Writer)
cmd/opencodereview/chatgpt_auth.go:34
↓ 5 callers
Method
runGit
(ctx context.Context, args ...string)
internal/diff/git.go:733
↓ 5 callers
Function
runLinksCheck
({ repoRoot = process.cwd(), minLinks = MIN_EXPECTED_LINKS, minFiles = MIN_EXPECTED_LINK_FILES, maxSca
scripts/github-actions/check-plugin-contract.js:883
↓ 5 callers
Function
runPreview
(cc *commonContext, opts reviewOptions, out io.Writer)
cmd/opencodereview/review_helpers_test.go:20
↓ 5 callers
Function
runSessionCommentsCompat
runSessionCommentsCompat provides test compatibility for old-style runSessionComments([]string{...}) calls.
cmd/opencodereview/compat_test.go:99
↓ 5 callers
Function
runShell
(script, env, fixture)
scripts/github-actions/action-contract.test.js:280
← previous
next →
701–800 of 7,169, ranked by callers