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
↓ 2 callers
Function
minimumArgs
minimumArgs behaves like cobra.MinimumNArgs(n) but reports too few arguments with the command's own usage information.
cmd/opencodereview/arg_errors.go:34
↓ 2 callers
Function
modeWarning
modeWarning mirrors the only comparability warning `ocr session compare` emits (cmd/opencodereview/session_cmd.go, runSessionCompare): a differing rev
internal/viewer/handler.go:150
↓ 2 callers
Function
nativeTurnForJSON
(n llm.NativeTurn)
internal/session/history.go:481
↓ 2 callers
Function
newBlockingCompressionClient
(c *llm.RetryCollector)
internal/llmloop/retry_background_test.go:31
↓ 2 callers
Function
newCommentId
(runTag)
scripts/github-actions/post-review-comments.js:2184
↓ 2 callers
Method
newDiffProvider
newDiffProvider resolves the configured input to a diff provider.
internal/agent/agent.go:556
↓ 2 callers
Function
newDivergedBranchRepo
newDivergedBranchRepo builds a repository where main and feature both have commits after the merge-base, and the feature worktree also carries an unco
cmd/opencodereview/default_to_head_e2e_test.go:22
↓ 2 callers
Function
newHistory
(sessionID, repoDir, gitBranch, model string, opts SessionOptions)
internal/session/history.go:173
↓ 2 callers
Function
newJSONLWriter
newJSONLWriter creates and opens a new JSONL writer for the given session.
internal/session/persist.go:46
↓ 2 callers
Function
newKeyCmd
newKeyCmd builds the OS-specific shell invocation (sh -c on Unix) that runs a credential command under ctx, so its timeout and cancellation are honore
internal/llm/keycmd_unix.go:32
↓ 2 callers
Function
newObservationStore
(directory, comparisonID string)
internal/behaviortask/observation.go:62
↓ 2 callers
Function
newOutputPipe
()
internal/gitcmd/runner.go:180
↓ 2 callers
Function
newPagedTestMCPServer
newPagedTestMCPServer returns a server that publishes toolCount tools one page at a time, so a client reading a single page sees only the first one.
internal/mcp/stdio_test.go:88
↓ 2 callers
Function
newResponsesSessionTestServer
newResponsesSessionTestServer returns an httptest server that captures each request's headers and JSON body and responds with a minimal completed resp
internal/llm/responses_client_test.go:1097
↓ 2 callers
Function
newStdoutMetricExporter
newStdoutMetricExporter creates a console metric exporter with pretty-print output.
internal/telemetry/exporter.go:30
↓ 2 callers
Function
newStdoutTraceExporter
newStdoutTraceExporter creates a console trace exporter with pretty-print output.
internal/telemetry/exporter.go:25
↓ 2 callers
Function
newWorkspaceResumeFixture
newWorkspaceResumeFixture builds the repo, runs one workspace review in which c.go fails permanently and the other two files complete, then clears the
cmd/opencodereview/workspace_resume_e2e_test.go:77
↓ 2 callers
Function
newWorkspaceResumeFixtureWithUntracked
newWorkspaceResumeFixtureWithUntracked is newWorkspaceResumeFixture plus untracked files that join the parent review input.
cmd/opencodereview/workspace_resume_e2e_test.go:84
↓ 2 callers
Function
noLine
(path)
scripts/github-actions/post-review-comments.test.js:6811
↓ 2 callers
Function
nonNegativeMillis
nonNegativeMillis converts d to milliseconds, flooring at zero. Timestamps taken from time.Now carry a monotonic reading, so a real attempt can never
internal/llm/retry_report.go:362
↓ 2 callers
Function
normalizeDiffTarget
(from, to, commit string)
cmd/opencodereview/shared_flags.go:122
↓ 2 callers
Function
normalizeExtraContent
normalizeExtraContent drops absent, empty and null values so that a provider sending "extra_content": null produces the same wire format as one omitti
internal/llm/client.go:1085
↓ 2 callers
Function
normalizeScanPaths
(paths []string)
internal/session/resume.go:317
↓ 2 callers
Function
normalizedCommentCategory
(category string)
internal/viewer/server.go:229
↓ 2 callers
Function
observePair
(test *testing.T, runner *Runner)
internal/behaviortask/runner_test.go:115
↓ 2 callers
Function
officialAPIKeyEnvSetHint
(envVar string, hasSavedKey bool)
cmd/opencodereview/provider_tui.go:2581
↓ 2 callers
Function
officialProviderEnvKeySet
(p llm.Provider)
cmd/opencodereview/provider_tui.go:938
↓ 2 callers
Method
officialProviderUsesExternalCredentials
()
cmd/opencodereview/provider_tui.go:986
↓ 2 callers
Function
onDiskName
onDiskName returns the name of the directory entry under dir that the filesystem resolves as name, preferring an entry spelled exactly. The listing is
internal/scan/provider.go:401
↓ 2 callers
Method
onMessage
(handler: (msg: HostToWebview) => void)
extensions/frontend/src/webview/bridge.ts:15
↓ 2 callers
Method
onState
Identity check: cancel() kills the process without detaching callbacks, so the old run may still call onState and friends from another thread; if a ne
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/review/SidebarRouter.kt:172
↓ 2 callers
Method
only
(t *testing.T)
internal/agent/retry_identity_test.go:42
↓ 2 callers
Function
openAIChatURL
(rawURL string)
acp/internal/intent/llm/client.go:234
↓ 2 callers
Function
openAnalysis
(root, repo, id string)
internal/viewer/analysis.go:59
↓ 2 callers
Function
openBrowser
openBrowser resolves the candidate list for this host and runs it.
internal/viewer/browser.go:203
↓ 2 callers
Method
openDiff
* Opens a file's changes in the IDEA diff viewer. An added file gets empty left-side content and a deleted * file empty right-side content instea
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitService.kt:320
↓ 2 callers
Method
openFile
(filename string, flags int)
internal/session/persist.go:128
↓ 2 callers
Function
openRawWriter
(path, sessionID string, flags int)
internal/session/raw_writer.go:66
↓ 2 callers
Function
otlpSignalURL
otlpSignalURL builds the URL for one signal from the configured endpoint. OTEL_EXPORTER_OTLP_ENDPOINT is defined by the OpenTelemetry specification a
internal/telemetry/exporter.go:69
↓ 2 callers
Function
outputJSON
(comments []model.LlmComment)
cmd/opencodereview/output.go:378
↓ 2 callers
Function
outputJSONNoFiles
(traceID string, llmIdentity *jsonLLMIdentity, out io.Writer)
cmd/opencodereview/output.go:684
↓ 2 callers
Function
outputPreviewJSON
(p *agent.DiffPreview, out io.Writer)
cmd/opencodereview/output.go:786
↓ 2 callers
Function
outputText
(comments []model.LlmComment)
cmd/opencodereview/output.go:41
↓ 2 callers
Function
overlapsComments
(reviewComment, comments, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:1400
↓ 2 callers
Function
parseBatchStrategy
parseBatchStrategy normalizes a user-supplied strategy string. Unknown or empty values fall back to BatchNone (safe v1 behavior).
internal/scan/batch.go:28
↓ 2 callers
Function
parseCliResult
(stdout: string)
extensions/vscode/src/extension/services/cliParse.ts:39
↓ 2 callers
Function
parseCommentsInner
(args map[string]any, defaultPath string)
internal/tool/code_comment.go:101
↓ 2 callers
Function
parseConfig
(raw: string)
extensions/vscode/src/extension/services/configParse.ts:30
↓ 2 callers
Function
parseDiffHeaderLine
parseDiffHeaderLine extracts the two pathnames from a "diff --git" line, preferring the split a bare header names twice and falling back to parseQuote
internal/diff/parser.go:61
↓ 2 callers
Function
parseDiffHunkInventory
(patch)
scripts/github-actions/post-review-comments.js:2780
↓ 2 callers
Function
parseFilterResponse
parseFilterResponse extracts comment indices from the LLM filter response. Returns a set of 0-based indices. Invalid IDs or out-of-range indices are i
internal/agent/agent.go:2026
↓ 2 callers
Function
parseFilterToolCalls
parseFilterToolCalls extracts comment indices from the filter tool call response. Returns nil if no matching tool call is found, allowing fallback to
internal/agent/agent.go:1994
↓ 2 callers
Function
parseGitignorePatterns
(data []byte)
internal/diff/git.go:292
↓ 2 callers
Function
parseGroupingGroups
parseGroupingGroups parses the grouping LLM response into label + integer indices. It mirrors parseGroupingResponse's one-shot Unmarshal and markdown-
internal/viewer/store.go:399
↓ 2 callers
Function
parseInventory
(raw string)
internal/behaviortask/prepare.go:165
↓ 2 callers
Function
parseLogLine
(raw: string)
extensions/vscode/src/extension/services/cliParse.ts:80
↓ 2 callers
Function
parseModelListValue
(value string)
cmd/opencodereview/config_cmd.go:937
↓ 2 callers
Function
parseOTLPEndpoint
parseOTLPEndpoint strips a http:// or https:// scheme from the endpoint and reports whether the connection should be plaintext (insecure). Scheme matc
internal/telemetry/exporter.go:41
↓ 2 callers
Function
parseRepairedComments
parseRepairedComments attempts the deterministic repair of a serialized `comments` string. It returns (nil, nil) when the text needed no repair, the r
internal/tool/comment_args_repair.go:275
↓ 2 callers
Function
parseRetryAfterMS
parseRetryAfterMS reports the server's retry hint in milliseconds, mirroring the SDKs' parseRetryAfterHeader: Retry-After-Ms wins over Retry-After, ea
internal/llm/retry_observer.go:109
↓ 2 callers
Function
parseRetryDirective
parseRetryDirective reads x-should-retry, the header both SDKs consult ahead of the status code (and without excluding 2xx). Only the two values they
internal/llm/retry_observer.go:85
↓ 2 callers
Function
parseSteps
(text)
scripts/github-actions/action-contract.test.js:68
↓ 2 callers
Function
parseTimeoutEnv
parseTimeoutEnv reads and validates the OCR_LLM_TIMEOUT environment variable. Returns the parsed duration and true if set, or 0 and false if unset/emp
internal/llm/resolver.go:212
↓ 2 callers
Function
parseTimeoutSeconds
(value string)
cmd/opencodereview/config_cmd.go:895
↓ 2 callers
Function
parseUntrackedList
Parses the untracked path list produced by `git ls-files --others --exclude-standard`. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:65
↓ 2 callers
Function
parseUntrackedList
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:52
↓ 2 callers
Function
parseVersionOutput
(output)
scripts/version.js:9
↓ 2 callers
Method
passThroughManualInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1813
↓ 2 callers
Function
pathMatches
pathMatches reports whether f is want itself or lies under it as a directory, so `src` also matches `src/loader.go` but never `srcx.go`.
internal/scan/provider.go:429
↓ 2 callers
Method
persistAddedModelName
persistAddedModelName appends a model to the provider's Models list in config and saves to disk. It does not change the active model.
cmd/opencodereview/provider_tui.go:2847
↓ 2 callers
Method
persistCustomModelName
persistCustomModelName appends a single model name to the active provider's Models list (official or custom) and saves the config. It does not change
cmd/opencodereview/provider_tui.go:815
↓ 2 callers
Function
pickRepoRoot
(roots: string[], workspacePath?: string)
extensions/vscode/src/extension/services/gitMap.ts:90
↓ 2 callers
Function
placed
(path, line)
scripts/github-actions/post-review-comments.test.js:6810
↓ 2 callers
Function
pluginEntries
(json)
scripts/github-actions/check-plugin-contract.js:125
↓ 2 callers
Method
post
(self, review_input, body=b")]}'\n{}")
examples/gerrit_ci/post_review_test.py:531
↓ 2 callers
Method
post_note
(self, body)
examples/gitlab_ci/post_review.py:952
↓ 2 callers
Function
prRefsStep
()
scripts/github-actions/action-contract.test.js:377
↓ 2 callers
Method
presentDiff
( left: vscode.Uri, right: vscode.Uri, title: string, )
extensions/vscode/src/extension/services/GitService.ts:359
↓ 2 callers
Function
presetProviderNames
Returns a defensive copy for tests and diagnostics. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/Providers.kt:16
↓ 2 callers
Function
printSessionDetail
(w io.Writer, s *session.Summary, items []session.ItemDetail)
cmd/opencodereview/session_cmd.go:711
↓ 2 callers
Method
probeCommand
(bin: string)
extensions/vscode/src/extension/services/CliService.ts:42
↓ 2 callers
Function
probeKind
(repoRoot, repoPath)
scripts/github-actions/check-plugin-contract.js:821
↓ 2 callers
Function
probePathIndex
probePathIndex is like probePath but also returns the index of the matched path.
internal/llm/usage_resolver.go:125
↓ 2 callers
Function
progressTitle
A short escaped activity label remains visible while the log is collapsed.
acp/internal/adapter/presentation/progress_format.go:59
↓ 2 callers
Function
projectRoot
(t *testing.T)
internal/release/asset_naming_test.go:25
↓ 2 callers
Function
protocolIndexIn
(list []string, protocol string)
cmd/opencodereview/provider_tui.go:216
↓ 2 callers
Function
providerUsesExternalCredentials
(preset llm.Provider, entry ProviderEntry)
cmd/opencodereview/provider_cmd.go:263
↓ 2 callers
Function
quoteDiagnostic
(text string)
acp/internal/intent/llm/diagnostics.go:190
↓ 2 callers
Function
quoteKotlinString
(value string)
internal/llm/gen/kotlin.go:46
↓ 2 callers
Method
readAllText
Recursively read all source files in a subdirectory and combine them for regex scanning. */
extensions/idea/src/test/kotlin/com/alibaba/opencodereview/idea/FrontendSources.kt:34
↓ 2 callers
Function
readAnalysis
(directory *os.Root, id string)
internal/viewer/analysis.go:68
↓ 2 callers
Function
readDelegateExamples
(root fs.FS, docs []string)
internal/delegate/instructions_test.go:112
↓ 2 callers
Function
readPullRequest
(github, variables)
scripts/github-actions/check-pr-commit-policy.js:75
↓ 2 callers
Method
readRaw
()
extensions/vscode/src/extension/services/ConfigService.ts:30
↓ 2 callers
Function
readSession
(reader io.Reader, sessionID string)
internal/viewer/store.go:487
↓ 2 callers
Function
readWithPacing
(tag, fn, log)
scripts/github-actions/post-review-comments.js:2059
↓ 2 callers
Method
record
(file: string, line: number, delta: number)
extensions/vscode/src/extension/providers/lineOffset.ts:7
↓ 2 callers
Function
recordToItem
(rec summaryRecord)
internal/session/list.go:313
↓ 2 callers
Function
redactURL
(raw string)
acp/internal/intent/llm/resolve.go:171
↓ 2 callers
Function
reducer
(state: AppState, msg: HostToWebview | LocalAction)
extensions/frontend/src/webview/store.ts:47
← previous
next →
1,701–1,800 of 7,390, ranked by callers