Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/junhoyeo/tokscale
/ functions
Functions
4,973 in github.com/junhoyeo/tokscale
⨍
Functions
4,973
◇
Types & classes
735
↓ 1 callers
Function
normalizeSubmissionData
(data: unknown)
packages/frontend/src/app/api/submit/route.ts:27
↓ 1 callers
Function
normalizeTokenName
(value: unknown)
packages/frontend/src/app/api/settings/tokens/route.ts:9
↓ 1 callers
Function
normalize_anthropic_prefixed_claude_model
(model_id: &str)
crates/tokscale-core/src/lib.rs:101
↓ 1 callers
Function
normalize_cached_agent_name
(agent: &str, clients: &str)
crates/tokscale-cli/src/tui/cache.rs:696
↓ 1 callers
Function
normalize_category
Coerce parsed category/complexity to the allowed sets.
crates/tokscale-cli/src/commands/apple_fm.rs:519
↓ 1 callers
Function
normalize_codex_workspace_key
(raw: &str)
crates/tokscale-core/src/sessions/codex.rs:243
↓ 1 callers
Function
normalize_complexity
(raw: &str)
crates/tokscale-cli/src/commands/apple_fm.rs:526
↓ 1 callers
Function
normalize_gemini_headless_input_and_cache
(input: i64, cached: i64)
crates/tokscale-core/src/sessions/gemini.rs:509
↓ 1 callers
Function
normalize_gemini_session_input_and_cache
( input: i64, cached: i64, output: i64, reasoning: i64, tool: i64, total: Option<i64>,
crates/tokscale-core/src/sessions/gemini.rs:515
↓ 1 callers
Function
normalize_oh_my_opencode_agent_name
(agent_lower: &str)
crates/tokscale-core/src/sessions/mod.rs:163
↓ 1 callers
Function
normalize_subscription_tier
(raw: &str)
crates/tokscale-cli/src/commands/usage/grok.rs:233
↓ 1 callers
Function
normalize_timestamp_ms
(timestamp: i64)
crates/tokscale-core/src/sessions/workbuddy.rs:160
↓ 1 callers
Function
normalize_trae_model
Known mapping from Trae display names to tiktoken-style model ids. Unknown names fall through to the raw `model_name` from the API (mixed-case, space-
crates/tokscale-core/src/sessions/trae.rs:15
↓ 1 callers
Function
normalize_trajectory_summaries
(response: &Value, fingerprint: &str)
crates/tokscale-cli/src/antigravity.rs:1956
↓ 1 callers
Function
normalized_title
Normalize a title for exact-equality grouping of token-empty titles: full Unicode lowercase with whitespace collapsed. Used only to keep identical all
crates/tokscale-cli/src/commands/report.rs:536
↓ 1 callers
Function
number_value
(value: &Value)
crates/tokscale-core/src/sessions/junie.rs:247
↓ 1 callers
Function
numeric_value
(value: &Value)
crates/tokscale-cli/src/commands/usage/grok.rs:253
↓ 1 callers
Function
old_cursor_cache_dir
(home_dir: &Path)
crates/tokscale-cli/src/cursor.rs:46
↓ 1 callers
Function
open_browser
(url: &str)
crates/tokscale-cli/src/auth.rs:189
↓ 1 callers
Method
open_client_picker
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1854
↓ 1 callers
Method
open_group_by_picker
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1889
↓ 1 callers
Method
open_selected_daily_detail
(&mut self)
crates/tokscale-cli/src/tui/app.rs:1896
↓ 1 callers
Function
output_with_reset_credits
( provider: &str, account: Option<UsageAccount>, available_count: u32, expires
crates/tokscale-cli/src/tui/ui/usage.rs:2549
↓ 1 callers
Function
overall_action
(app: &App, outputs: &[UsageOutput])
crates/tokscale-cli/src/tui/ui/usage.rs:2269
↓ 1 callers
Function
overall_state_label
(outputs: &[UsageOutput])
crates/tokscale-cli/src/tui/ui/usage.rs:2166
↓ 1 callers
Function
overview_color_key
(group_by: &GroupBy, model: &'a str)
crates/tokscale-cli/src/tui/ui/overview.rs:32
↓ 1 callers
Function
package_manifest_name
(package_dir: str)
scripts/check-release-workflow-safety.py:129
↓ 1 callers
Function
pad_selected_row
(spans: &mut Vec<Span<'static>>, width: usize, selected: bool)
crates/tokscale-cli/src/tui/ui/usage.rs:2035
↓ 1 callers
Function
parseArgs
()
packages/benchmarks/generate.ts:514
↓ 1 callers
Function
parseArgs
()
packages/benchmarks/runner.ts:96
↓ 1 callers
Function
parseColor
(color: string | undefined, fallback: string)
packages/frontend/src/lib/embed/renderProfileBadgeSvg.ts:89
↓ 1 callers
Function
parseCompact
(searchParams: URLSearchParams)
packages/frontend/src/app/api/embed/[username]/svg/route.ts:36
↓ 1 callers
Function
parseCompact
(searchParams: URLSearchParams)
packages/frontend/src/app/api/badge/[username]/svg/route.ts:28
↓ 1 callers
Function
parseGraph
(searchParams: URLSearchParams)
packages/frontend/src/app/api/embed/[username]/svg/route.ts:46
↓ 1 callers
Function
parseMetric
(searchParams: URLSearchParams)
packages/frontend/src/app/api/badge/[username]/svg/route.ts:15
↓ 1 callers
Function
parsePeriodParam
(value: string | null)
packages/frontend/src/app/(main)/leaderboard/LeaderboardClient.tsx:1013
↓ 1 callers
Function
parseProfilePeriod
(value: string | string[] | undefined)
packages/frontend/src/app/u/[username]/page.tsx:19
↓ 1 callers
Function
parseProfilePeriod
(value: string | null)
packages/frontend/src/app/api/users/[username]/route.ts:29
↓ 1 callers
Function
parseSort
(searchParams: URLSearchParams)
packages/frontend/src/app/api/embed/[username]/svg/route.ts:41
↓ 1 callers
Function
parseSort
(searchParams: URLSearchParams)
packages/frontend/src/app/api/badge/[username]/svg/route.ts:24
↓ 1 callers
Function
parseString
(value: unknown)
packages/frontend/src/app/api/groups/[slug]/route.ts:17
↓ 1 callers
Function
parseStyle
(searchParams: URLSearchParams)
packages/frontend/src/app/api/badge/[username]/svg/route.ts:20
↓ 1 callers
Function
parseTheme
(searchParams: URLSearchParams)
packages/frontend/src/app/api/embed/[username]/svg/route.ts:32
↓ 1 callers
Function
parseView
(searchParams: URLSearchParams)
packages/frontend/src/app/api/embed/[username]/svg/route.ts:51
↓ 1 callers
Function
parse_amp_ledger_records
( usage_ledger: Option<AmpUsageLedger>, thread_created_ms: i64, file_mtime_ms: i64, )
crates/tokscale-core/src/sessions/amp.rs:125
↓ 1 callers
Function
parse_amp_message_records
( thread_messages: Option<Vec<AmpMessage>>, thread_created_ms: i64, file_mtime_ms: i64, )
crates/tokscale-core/src/sessions/amp.rs:170
↓ 1 callers
Function
parse_amp_timestamp
(timestamp: Option<String>)
crates/tokscale-core/src/sessions/amp.rs:107
↓ 1 callers
Function
parse_api_req_started_payload
(text: &str)
crates/tokscale-core/src/sessions/roocode.rs:189
↓ 1 callers
Function
parse_billing_config_proto
(data: &[u8])
crates/tokscale-cli/src/commands/usage/grok.rs:507
↓ 1 callers
Function
parse_billing_json_object
(value: &Value)
crates/tokscale-cli/src/commands/usage/grok.rs:324
↓ 1 callers
Function
parse_claude_headless_json
( path: &Path, session_id: &str, fallback_timestamp: i64, workspace_key: Option<String>, w
crates/tokscale-core/src/sessions/claudecode.rs:1078
↓ 1 callers
Function
parse_codex_headless_line
( line: &str, session_id: &str, current_model: &mut Option<String>, fallback_timestamp: i64,
crates/tokscale-core/src/sessions/codex.rs:1015
↓ 1 callers
Function
parse_cost
Parse a cost string like "$0.50" or "0.50" to f64 Returns 0.0 for empty strings, NaN values, or invalid formats
crates/tokscale-core/src/sessions/cursor.rs:57
↓ 1 callers
Function
parse_date_value
Parse `Month D, YYYY` from the start of `s`.
crates/tokscale-cli/src/commands/usage/sakana.rs:365
↓ 1 callers
Function
parse_entry_timestamp
(ts: Option<&Value>)
crates/tokscale-core/src/sessions/roocode.rs:165
↓ 1 callers
Function
parse_gemini_headless_value
( value: &Value, session_id: &str, fallback_timestamp: i64, )
crates/tokscale-core/src/sessions/gemini.rs:439
↓ 1 callers
Function
parse_gemini_session
(session: GeminiSession, fallback_timestamp: i64)
crates/tokscale-core/src/sessions/gemini.rs:227
↓ 1 callers
Function
parse_hermes_sqlite_with_pricing
( db_path: &Path, pricing: Option<&pricing::PricingService>, )
crates/tokscale-core/src/lib.rs:2346
↓ 1 callers
Function
parse_interval_minutes
(input: &str)
crates/tokscale-cli/src/commands/autosubmit.rs:320
↓ 1 callers
Function
parse_iso8601_timestamp_ms
(value: &str)
crates/tokscale-core/src/sessions/copilot_desktop.rs:228
↓ 1 callers
Function
parse_kiro_global_storage_file
(path: &Path)
crates/tokscale-core/src/sessions/kiro.rs:507
↓ 1 callers
Function
parse_local_naive_timestamp_ms
(value: &str)
crates/tokscale-core/src/sessions/tencent_buddy.rs:429
↓ 1 callers
Function
parse_log_timestamp_ms
(line: &str)
crates/tokscale-core/src/sessions/tencent_buddy.rs:405
↓ 1 callers
Function
parse_model_config
(json: &str)
crates/tokscale-core/src/sessions/goose.rs:21
↓ 1 callers
Function
parse_model_prepared_line
(line: &str)
crates/tokscale-core/src/sessions/tencent_buddy.rs:383
↓ 1 callers
Function
parse_needs
(block: list[str])
scripts/check-release-workflow-safety.py:148
↓ 1 callers
Function
parse_port_from_line
(line: &str)
crates/tokscale-cli/src/antigravity.rs:1090
↓ 1 callers
Function
parse_port_from_windows_address
(address: &str)
crates/tokscale-cli/src/antigravity.rs:1053
↓ 1 callers
Function
parse_ports
(output: &str)
crates/tokscale-cli/src/antigravity.rs:1080
↓ 1 callers
Function
parse_reset_value
Parse `Month D, YYYY at H:MM AM/PM` from the start of `s`.
crates/tokscale-cli/src/commands/usage/sakana.rs:329
↓ 1 callers
Function
parse_session
Parse a single session JSON object into a `UnifiedMessage`.
crates/tokscale-core/src/sessions/trae.rs:50
↓ 1 callers
Function
parse_subscription_plan
(value: &Value)
crates/tokscale-cli/src/commands/usage/grok.rs:240
↓ 1 callers
Function
parse_summary
Parse the FM-returned JSON into a [`SessionSummary`], coercing invalid enum values. Returns `None` if the JSON is unusable.
crates/tokscale-cli/src/commands/apple_fm.rs:536
↓ 1 callers
Function
parse_thread_row
(db_path: &Path, row: ZedThreadRow)
crates/tokscale-core/src/sessions/zed.rs:134
↓ 1 callers
Function
parse_timestamp
(values: &[Option<&Value>])
crates/tokscale-cli/src/antigravity.rs:2240
↓ 1 callers
Function
parse_usage_row
(value: &Value, fallback_model: Option<&str>)
crates/tokscale-core/src/sessions/antigravity.rs:48
↓ 1 callers
Function
parse_windows
Build one window per on-page label (`5-hour` / `Weekly`), binding the percentage and reset time that STRUCTURALLY belong to that label — the first of
crates/tokscale-cli/src/commands/usage/sakana.rs:276
↓ 1 callers
Function
parse_windows_netstat_ports
(output: &str, pid: u32)
crates/tokscale-cli/src/antigravity.rs:1027
↓ 1 callers
Function
parsed_event_kind
Resolve the event's kind from the parsed JSON, preferring the top-level `kind` and falling back to the nested `event.agentEvent.kind`. Used to make sk
crates/tokscale-core/src/sessions/junie.rs:183
↓ 1 callers
Function
parsed_to_unified
(msg: &ParsedMessage, cost: f64)
crates/tokscale-core/src/lib.rs:3168
↓ 1 callers
Function
percent_decode
(input: &str)
crates/tokscale-core/src/sessions/antigravity_cli.rs:250
↓ 1 callers
Function
pid_is_alive
(pid: u32)
crates/tokscale-cli/src/antigravity.rs:446
↓ 1 callers
Function
pid_is_alive
(pid: u32)
crates/tokscale-cli/src/trae.rs:1183
↓ 1 callers
Function
plain_http_identity_probe_request
(port: u16, csrf_token: &str, method: &str)
crates/tokscale-cli/src/antigravity.rs:1247
↓ 1 callers
Method
poll_codex_login
(&mut self)
crates/tokscale-cli/src/tui/app.rs:703
↓ 1 callers
Method
poll_remote_stats
Poll the background remote stats fetch. Errors are silent: the sender is simply dropped without a payload and the TUI stays local-only.
crates/tokscale-cli/src/tui/app.rs:1088
↓ 1 callers
Function
populate_wiki_from_sessions
(db: &WikiDb, opts: &ReportOptions)
crates/tokscale-cli/src/commands/report.rs:104
↓ 1 callers
Function
positive_token_total
(tokens: &TokenBreakdown)
crates/tokscale-core/src/lib.rs:1901
↓ 1 callers
Function
positive_unified_token_total
(tokens: &tokscale_core::TokenBreakdown)
crates/tokscale-cli/src/tui/data/mod.rs:202
↓ 1 callers
Function
prefers_model_part_key
Deterministic provider choice when multiple models.dev providers share a model part: the canonical `anthropic/` namespace wins outright; otherwise the
crates/tokscale-core/src/pricing/lookup.rs:1884
↓ 1 callers
Function
prefix_contains_antigravity_marker
(body: &str)
crates/tokscale-cli/src/antigravity.rs:1338
↓ 1 callers
Function
prependApiToken
(tokens: ApiToken[], token: ApiToken)
packages/frontend/src/app/settings/SettingsClient.tsx:661
↓ 1 callers
Function
pricing
(input: f64, output: f64)
crates/tokscale-core/src/pricing/custom.rs:394
↓ 1 callers
Function
pricing_multiplier
(message: &UnifiedMessage)
crates/tokscale-core/src/lib.rs:2300
↓ 1 callers
Function
prime_override_pricing_cache
(config_dir: &Path)
crates/tokscale-cli/tests/cli_tests.rs:29
↓ 1 callers
Function
printSummary
(result: BenchmarkResult)
packages/benchmarks/runner.ts:413
↓ 1 callers
Function
print_daily_breakdown
(entries: &[WikiEntry], full: bool)
crates/tokscale-cli/src/commands/report.rs:1133
↓ 1 callers
Function
print_session_list
(entries: &[WikiEntry], full: bool)
crates/tokscale-cli/src/commands/report.rs:1187
↓ 1 callers
Function
probe_endpoint_identity
(port: u16, csrf_token: &str)
crates/tokscale-cli/src/antigravity.rs:1214
↓ 1 callers
Function
probe_heartbeat
(port: u16, csrf_token: &str)
crates/tokscale-cli/src/antigravity.rs:1116
← previous
next →
1,901–2,000 of 4,973, ranked by callers