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
↓ 12 callers
Function
modelTUIIdxForName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1140
↓ 12 callers
Function
mustUnmarshal
mustUnmarshal is a test helper that unmarshals SARIF output and fails the test on error, so malformed output produces a clear failure instead of a nil
cmd/opencodereview/sarif_test.go:24
↓ 12 callers
Function
newCompareSession
newCompareSession records one session with the given findings and returns it.
cmd/opencodereview/session_cmd_test.go:564
↓ 12 callers
Method
obj
extensions/idea/src/test/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraftTest.kt:80
↓ 12 callers
Function
parseConfig
* Parses the config file content. Blank input returns null; invalid JSON throws * (caught by [ConfigService] and treated as "no configuration"). */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigParse.kt:55
↓ 12 callers
Function
resolveLocale
(raw: string)
extensions/frontend/src/shared/i18n.ts:820
↓ 12 callers
Function
resultToState
Only recognized, non-failing terminal results can report an empty review. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ReviewSession.kt:20
↓ 12 callers
Function
retryTestRepo
retryTestRepo builds a repo with one reviewable commit range (HEAD~1..HEAD), each file carrying its own marker in the second commit only. The file se
cmd/opencodereview/retry_fake_llm_test.go:249
↓ 12 callers
Function
run
({ github, context, core })
scripts/github-actions/check-pr-commit-policy.js:130
↓ 12 callers
Function
runSessionCompare
(beforeID, afterID string)
cmd/opencodereview/session_cmd.go:407
↓ 12 callers
Function
sanitizeTerminal
(s string)
cmd/opencodereview/output.go:261
↓ 11 callers
Method
Credentials
(ctx context.Context, s Store, account string)
internal/chatgptauth/oauth.go:500
↓ 11 callers
Function
LoadDefault
LoadDefault parses the embedded task_template.json and resolves prompt file references.
internal/config/template/template.go:219
↓ 11 callers
Method
RecordReviewItemFailed
RecordReviewItemFailed persists an incomplete file-level checkpoint.
internal/session/history.go:304
↓ 11 callers
Method
Resolve
(path string)
internal/config/rules/sniffer.go:27
↓ 11 callers
Method
Run
(ctx context.Context, messages []llm.Message, taskKey string)
internal/llmloop/loop.go:288
↓ 11 callers
Method
RunManifest
RunManifest returns the frozen v1 coverage result for review runs. Scan remains legacy and returns nil.
cmd/opencodereview/shared.go:790
↓ 11 callers
Method
SessionID
SessionID returns the current scan's persisted session ID. It returns an empty string when no session file exists.
internal/scan/agent.go:190
↓ 11 callers
Function
SetAttr
SetAttr sets a single attribute on a span.
internal/telemetry/span.go:66
↓ 11 callers
Function
Swap
Swap replaces the stdout writer with replacement and returns a restore function. It lets tests capture output written through Writer(), and lets calle
internal/stdout/stdout.go:57
↓ 11 callers
Method
TotalTokensUsed
()
cmd/opencodereview/shared.go:766
↓ 11 callers
Function
applyOfficialProviderConfig
(configPath string, cfg *Config, result providerTUIResult)
cmd/opencodereview/provider_cmd.go:273
↓ 11 callers
Method
applyResumeLine
applyResumeLine folds one record into the index. It reports an unparseable line to the caller, which decides whether that is fatal.
internal/session/resume.go:154
↓ 11 callers
Method
beginAPIKeyReplace
beginAPIKeyReplace switches from the fixed-length mask placeholder to edit mode so the next keystroke or paste fully replaces the saved key. While edi
cmd/opencodereview/provider_tui.go:899
↓ 11 callers
Function
cm
(path, content string)
internal/tool/comment_collector_test.go:12
↓ 11 callers
Function
formatReport
(result *orchestrator.Result)
acp/internal/adapter/presentation/helpers_test.go:76
↓ 11 callers
Function
freezeOne
freezeOne freezes c and returns the single listed request.
internal/llm/retry_boundary_test.go:47
↓ 11 callers
Function
generateUUID
()
internal/session/persist.go:65
↓ 11 callers
Function
http_error
(code, body=b"", reason="error")
examples/gerrit_ci/post_review_test.py:275
↓ 11 callers
Function
initBareRepo
initBareRepo creates an empty (unborn) git repository with identity configured but no commits, returning the repo dir.
internal/diff/git_resolve_test.go:30
↓ 11 callers
Function
officialConfigModelTUI
(t *testing.T, configPath string, extraModels []string)
cmd/opencodereview/provider_tui_funcs_test.go:1055
↓ 11 callers
Function
outputRetryReportText
outputRetryReportText groups noteworthy requests by review stage. It renders only stable classes and status codes; raw provider errors stay out.
cmd/opencodereview/output.go:477
↓ 11 callers
Function
outputSARIF
outputSARIF writes a SARIF v2.1.0 document to the provided writer. The document always contains a single run with the 8 built-in category rules, one r
cmd/opencodereview/sarif.go:131
↓ 11 callers
Function
parseCheckpointMarker
(body)
scripts/github-actions/post-review-comments.js:3057
↓ 11 callers
Function
parseTemplate
(name string)
internal/viewer/server.go:326
↓ 11 callers
Function
post
(msg: WebviewToHost)
extensions/frontend/src/webview/bridge.vsc.ts:13
↓ 11 callers
Method
post
(msg: WebviewToHost)
extensions/frontend/src/webview/bridge.ts:14
↓ 11 callers
Function
requireReject
(t *testing.T, r Result)
acp/internal/intent/fake_test.go:116
↓ 11 callers
Function
resolveKeyCmd
resolveKeyCmd runs a credential-fetching shell command and returns its trimmed, single-line stdout. label names the source (e.g. `api_key_cmd for prov
internal/llm/keycmd.go:94
↓ 11 callers
Function
retryReportFixture
retryReportFixture is the report used by most rendering assertions: one request recovered after two errors, one request that never succeeded, and a to
cmd/opencodereview/retry_report_render_test.go:24
↓ 11 callers
Function
runAgentCheck
({ json = {}, dirs = {}, files = {} } = {})
scripts/github-actions/check-plugin-contract.test.js:541
↓ 11 callers
Function
runSessionRm
(cmd *cobra.Command, sessionID string)
cmd/opencodereview/session_cmd.go:601
↓ 11 callers
Method
setPending
(p *Pending)
acp/internal/intent/state.go:41
↓ 11 callers
Method
tokens
()
internal/chatgptauth/auth_test.go:181
↓ 11 callers
Function
useCompareRepo
useCompareRepo points the compare command at repoDir and restores the shared command flags afterwards.
cmd/opencodereview/session_cmd_test.go:583
↓ 11 callers
Function
useResponsive
()
pages/src/hooks/useResponsive.ts:12
↓ 11 callers
Method
whyExcluded
whyExcluded applies the static gates — binary, the built-in secret paths, user exclude/include, then the extension allowlist and default-path patterns
internal/agent/selection.go:70
↓ 11 callers
Function
writeOpenAISSE
(t *testing.T, w http.ResponseWriter, events ...string)
internal/llm/client_test.go:758
↓ 11 callers
Function
writeTempFile
writeTempFile writes content to a temporary file and returns its path.
cmd/opencodereview/background_file_test.go:16
↓ 10 callers
Function
BuildScanArgs
BuildScanArgs constructs OCR CLI arguments from ScanIntent. Returns error if a path escapes the scan root or Extra contains a flag outside scanExtraFl
acp/internal/contract/intent.go:138
↓ 10 callers
Method
Clear
Clear drops any pending clarification. Phase 6 calls it on session/cancel and on task completion; the parser also clears it when a command replaces or
acp/internal/intent/state.go:53
↓ 10 callers
Method
Collect
Collect uses one native tool call for the entire OCR process. Log snapshots replace prior content at a bounded rate, not once per stderr line.
acp/internal/adapter/presentation/progress.go:27
↓ 10 callers
Method
CommentsForPath
CommentsForPath returns a copy of comments whose Path matches the given path.
internal/tool/comment_collector.go:41
↓ 10 callers
Method
CompletionTokenLimit
CompletionTokenLimit returns the output cap for LLM requests. Runtime prompt-limit overrides must not silently expand the model's output budget.
internal/config/template/template.go:142
↓ 10 callers
Function
FileURLString
FileURLString formats a local path and optional line as a file URL.
acp/internal/adapter/workspace/fileurl.go:25
↓ 10 callers
Function
LoadDefault
LoadDefault parses the embedded system_rules.json and resolves rule file references.
internal/config/rules/system_rules.go:93
↓ 10 callers
Function
NewManifestBuilder
NewManifestBuilder creates a builder for a run identified by runID (the canonical session ID) and operation ("review" or "scan").
internal/session/manifest.go:371
↓ 10 callers
Method
PlanEnabled
()
internal/chatgptauth/store.go:45
↓ 10 callers
Method
RecordUsage
RecordUsage adds the prompt/completion/cache tokens reported by an LLM response to the runner's aggregate counters. Used by callers (plan phase in age
internal/llmloop/loop.go:197
↓ 10 callers
Method
RegisterExcluded
RegisterExcluded requires a defined exclusion reason and an item_id outside the selected set. It rejects calls after seal or freeze and keeps the firs
internal/session/manifest.go:554
↓ 10 callers
Method
SetRunFailure
SetRunFailure records why the whole run stopped. It rejects an invalid class (so an unclassifiable stop is never silently downgraded) and a change of
internal/session/manifest.go:435
↓ 10 callers
Method
buildGrepArgs
(searchText string, caseSensitive bool, usePerlRegexp bool, noIndex bool, pathspec []string)
internal/tool/code_search.go:68
↓ 10 callers
Method
buildOpenAIParams
buildOpenAIParams converts the shared ChatRequest into OpenAI SDK parameters.
internal/llm/client.go:900
↓ 10 callers
Function
effectivePath
(d model.Diff)
internal/agent/preview.go:129
↓ 10 callers
Function
encodeRepoPath
(p string)
internal/session/persist.go:78
↓ 10 callers
Function
escapedCount
escapedCount reads the escaped-character count out of a repair description, reporting zero for a declined repair so assertions stay compact.
internal/tool/comment_args_repair_test.go:29
↓ 10 callers
Function
gitOut
gitOut runs a git command in dir and returns its trimmed stdout, failing the test on error. Used to capture the SHAs a ResolveInput result must match.
internal/diff/git_resolve_test.go:17
↓ 10 callers
Function
isolateLLMConnectionTest
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:15
↓ 10 callers
Function
makeDiff
()
internal/diff/relocation_test.go:44
↓ 10 callers
Method
mapResponsesResponse
mapResponsesResponse converts the SDK Response into the shared ChatResponse. Text output is read via the SDK's OutputText() helper (it walks all outpu
internal/llm/responses_client.go:516
↓ 10 callers
Function
matchConsecutive
matchConsecutive scans sideLines for a consecutive run matching all targetLines.
internal/diff/resolver.go:230
↓ 10 callers
Function
mockCore
()
scripts/github-actions/post-review-comments.test.js:405
↓ 10 callers
Function
newManifestFlowAgent
(t *testing.T, diffs []model.Diff, resume *session.ResumeState)
internal/agent/manifest_integration_test.go:69
↓ 10 callers
Function
newTestClient
(name string, tools []*mcp.Tool)
internal/mcp/provider_test.go:14
↓ 10 callers
Function
partitionMessages
partitionMessages divides messages into frozen, compress, and active zones. Frozen zone is always messages[0:2]. Active zone preserves the K most rece
internal/llmloop/compression.go:82
↓ 10 callers
Method
recordWarning
recordWarning adds a non-fatal warning to the agent's warning list.
internal/agent/agent.go:549
↓ 10 callers
Function
renderComment
(comment model.LlmComment, out io.Writer)
cmd/opencodereview/output.go:114
↓ 10 callers
Function
resolveLogLines
(core)
scripts/github-actions/post-review-comments.test.js:6209
↓ 10 callers
Function
resolveUsage
resolveUsage parses raw JSON bytes into a map and extracts token usage by probing configured paths sequentially. Returns nil if no total_tokens found.
internal/llm/usage_resolver.go:76
↓ 10 callers
Function
setTestHome
setTestHome redirects the user home resolved by os.UserHomeDir() to dir for the duration of the test. Setting HOME alone is NOT enough on Windows: os.
internal/agent/test_home_test.go:13
↓ 10 callers
Function
silenceStdout
silenceStdout redirects os.Stdout to /dev/null for the duration of fn so the delegate commands' Printf output does not clutter test logs.
cmd/opencodereview/delegate_exec_test.go:67
↓ 10 callers
Function
testTaskResponse
(name, arguments string)
internal/llmloop/task_test.go:26
↓ 10 callers
Method
withLock
(ctx context.Context, fn func() error)
internal/chatgptauth/store.go:166
↓ 10 callers
Function
writeConfig
writeConfig writes an OCR config file to a temp dir and returns its path.
internal/llm/bedrock_test.go:16
↓ 10 callers
Function
yKey
()
cmd/opencodereview/provider_tui_test.go:1142
↓ 9 callers
Function
AnyToAttr
AnyToAttr converts an arbitrary value to an OTel attribute.KeyValue.
internal/telemetry/span.go:132
↓ 9 callers
Function
Preview
Preview loads diffs and applies the same selection the real run applies before dispatch, returning structured preview data without dispatching any LLM
internal/agent/preview.go:51
↓ 9 callers
Function
Resolve
(entries []ToolConfigEntry, names []string)
internal/config/toolsconfig/toolsconfig.go:34
↓ 9 callers
Function
Resolve
Resolve builds the parsing endpoint from the startup flags and the OCR_ACP_PARSER_* environment variables, with the flags taking precedence.
acp/internal/intent/llm/resolve.go:75
↓ 9 callers
Method
Restore
Restore re-enables stdout. Safe to call multiple times.
cmd/opencodereview/shared.go:403
↓ 9 callers
Method
RunSplit
RunSplit executes a git command and returns stdout and stderr separately.
internal/gitcmd/runner.go:306
↓ 9 callers
Method
SealSelected
SealSelected closes the selected set. After it returns, RegisterSelected and RegisterExcluded fail and the coverage denominator is fixed; per-item Mar
internal/session/manifest.go:590
↓ 9 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
cmd/opencodereview/retry_fake_llm_test.go:151
↓ 9 callers
Method
TotalInputTokens
()
cmd/opencodereview/shared.go:764
↓ 9 callers
Function
ValidateProtocol
ValidateProtocol accepts the four canonical protocol names and rejects everything else.
internal/llm/protocol.go:65
↓ 9 callers
Method
WaitBackground
WaitBackground blocks until every background job started by this Runner has returned. Background memory compression is the only such job, and cancelPe
internal/llmloop/loop.go:99
↓ 9 callers
Function
WithRequestMeta
WithRequestMeta attaches m to ctx so the retry observer can associate every HTTP attempt made under that context with one logical request. It is the o
internal/llm/retry_meta.go:132
↓ 9 callers
Method
clear
()
extensions/vscode/src/extension/providers/lineOffset.ts:20
↓ 9 callers
Function
configValues
(calls)
scripts/github-actions/action-contract.test.js:331
↓ 9 callers
Function
downKey
()
cmd/opencodereview/provider_tui_test.go:34
← previous
next →
301–400 of 7,169, ranked by callers