Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BabylonSocial/babylon
/ functions
Functions
14,075 in github.com/BabylonSocial/babylon
⨍
Functions
14,075
◇
Types & classes
4,309
↳
Endpoints
6
↓ 5 callers
Function
htmlResponse
(content: string, status = 200)
apps/web/src/app/api/notifications/email/unsubscribe/route.ts:9
↓ 5 callers
Function
inRange
(value: number, min: number, max: number)
packages/engine/src/utils/math-utils.ts:155
↓ 5 callers
Function
infer_category
(text: str)
packages/training/python/scripts/scam_defense_exchange.py:198
↓ 5 callers
Function
initializeCache
* Initialize cache from imported data
packages/engine/src/actors-loader.ts:60
↓ 5 callers
Method
initializeGame
()
packages/core/storage/ports/game.ts:12
↓ 5 callers
Function
invalidatePerpMarketsCache
()
apps/web/src/stores/perpMarketsStore.ts:346
↓ 5 callers
Function
invokeCronRoute
( modulePath: string, label: string, cycle: number, urlPath: string )
scripts/run-core-world-simulation.ts:998
↓ 5 callers
Function
isAndroid
()
apps/mobile/src/lib/platform.ts:46
↓ 5 callers
Function
isAutonomyService
(service: object | null)
packages/agents/src/plugins/plugin-autonomy/src/routes.ts:14
↓ 5 callers
Method
isComplete
* Check if simulation is complete * Returns true if we've processed all ticks
packages/training/src/benchmark/SimulationEngine.ts:269
↓ 5 callers
Method
isComplete
()
packages/examples/harness/src/simulation-adapter.ts:46
↓ 5 callers
Function
isEligibleRank
(rank: number)
packages/testing/unit/nft-mint-flow.test.ts:572
↓ 5 callers
Function
isOperationalError
(error: unknown)
packages/api/src/errors.ts:314
↓ 5 callers
Function
isPrivyAuthFlowCancellationError
(error: unknown)
apps/web/src/lib/privy-link-account-errors.ts:28
↓ 5 callers
Function
isPromptLoggingEnabled
()
packages/agents/src/utils/prompt-logger.ts:34
↓ 5 callers
Function
isTestFilePath
(filePath: string)
scripts/env-audit.ts:88
↓ 5 callers
Function
isTextOnAnyTopic
( text: string, topics: DailyTopicContext[] )
packages/engine/src/services/daily-topic-service.ts:331
↓ 5 callers
Method
is_complete
Check if simulation is complete
packages/training/python/src/training/fast_simulator.py:515
↓ 5 callers
Function
is_counterparty_known
Check if counterparty is in the known agent identity map. Returns: 1.0 if counterparty is known (in the identity map) 0.5 if no i
packages/training/python/src/training/trust_decomposition.py:30
↓ 5 callers
Function
is_defensive_action
(action: Any)
packages/training/python/src/training/scambench_scoring.py:212
↓ 5 callers
Function
loadSharedPostContext
( asOf: Date )
packages/engine/src/services/post-generation-helpers.ts:263
↓ 5 callers
Function
load_json_training_data
Loads training data from a directory of JSON files.
packages/training/python/scripts/train_local.py:586
↓ 5 callers
Function
load_script_module
(module_name: str, script_path: Path)
packages/training/python/tests/test_scam_defense_local_pipeline.py:20
↓ 5 callers
Method
logProviderAccess
(stepId: string, access: RuntimeProviderAccess)
packages/agents/src/plugins/plugin-trajectory-logger/src/action-interceptor.ts:72
↓ 5 callers
Function
logout
(page: Page)
tools/chroma/specs/helpers/privy-auth.ts:231
↓ 5 callers
Function
makeRequest
(params: Record<string, string> = {})
apps/web/src/app/api/feed/stories/route.test.ts:55
↓ 5 callers
Function
make_traj
(traj_id: str, market_id: str, score: float, pnl: float)
packages/training/python/tests/test_tinker_trainer.py:381
↓ 5 callers
Method
markAsWaitlisted
* Mark an existing user as waitlisted * * @description Marks a user as waitlisted after they complete onboarding. * Users must be created thr
packages/api/src/services/waitlist-service.ts:72
↓ 5 callers
Function
marketIdToBytes32
(marketId: string)
packages/testing/unit/mobile/onchain-route.test.ts:226
↓ 5 callers
Function
marketItem
( key: string )
packages/testing/unit/narrative-feed-algorithms.test.ts:296
↓ 5 callers
Function
matchesCronField
* Check if a cron field matches the current value * Supports: *, specific values, comma-separated lists, and step values (e.g., *\/5)
apps/web/src/lib/cron-scheduler.ts:111
↓ 5 callers
Function
newsItem
( id: string, authorId?: string )
packages/testing/unit/narrative-feed-algorithms.test.ts:326
↓ 5 callers
Function
normalize
Normalize whitespace, strip comments inline
scripts/find-duplicates.ts:141
↓ 5 callers
Function
normalizeTopicKey
(input: string)
packages/engine/src/services/daily-topic-service.ts:202
↓ 5 callers
Function
normalize_decision_action_type
(action_type: str | None)
packages/training/python/scripts/train_local.py:369
↓ 5 callers
Function
normalize_text
(text: str)
packages/training/python/scripts/data-prep/materialize_clawbench_sources.py:52
↓ 5 callers
Function
normalized_strings
(values: Iterable[Any])
packages/training/python/scripts/data-prep/assemble_scam_defense_hf_dataset.py:373
↓ 5 callers
Function
notifyTeamChatMessage
({ chatId, messageId, senderId, messagePreview, }: NotifyTeamChatMessageParams)
packages/agents/src/services/team-chat-notifications.ts:16
↓ 5 callers
Function
parseBody
(rawBody: string)
packages/testing/unit/notifications-clear.test.ts:88
↓ 5 callers
Function
parseCacheValue
(value: string)
packages/api/src/cache/cache-service.ts:46
↓ 5 callers
Function
parseDecision
(raw: string)
packages/examples/harness/tests/adapters.test.ts:133
↓ 5 callers
Function
parseLeaderboardQuery
(searchParams: URLSearchParams)
apps/web/src/app/api/leaderboard/query.ts:12
↓ 5 callers
Function
parseMemoriesSafe
( data: unknown, context?: { actorId?: string } )
packages/engine/src/services/jsonb-validators.ts:87
↓ 5 callers
Function
parseStringArraySafe
( data: unknown, context?: { field?: string } )
packages/engine/src/services/jsonb-validators.ts:340
↓ 5 callers
Function
passes_action_reason_gate
Return whether the deterministic evaluation clears the local gate.
packages/training/python/src/training/deterministic_eval.py:738
↓ 5 callers
Function
price
(n: number)
scripts/market-health.ts:73
↓ 5 callers
Function
printHelp
()
apps/cli/src/commands/admin.ts:16
↓ 5 callers
Function
rateLimitedParallel
( tasks: Array<() => Promise<T>>, batchSize = 5, delayMs = 100 )
packages/engine/src/utils/shared-utils.ts:943
↓ 5 callers
Function
readArgValue
(args: string[], name: string)
scripts/collect-complete-production-trajectories.ts:77
↓ 5 callers
Function
recordUserInteraction
( userId: string, npcId: string, postId: string, commentId: string, qualityScore = 0.8 )
packages/testing/integration/group-chat-simulation.integration.test.ts:197
↓ 5 callers
Function
refresh
()
apps/web/src/components/feed/TrendingPanel.tsx:81
↓ 5 callers
Method
refreshCache
* Refresh topic coverage cache from database
packages/engine/src/services/topic-diversity-service.ts:504
↓ 5 callers
Function
refreshWalletBalance
(userId: string)
apps/web/src/stores/walletBalanceStore.ts:262
↓ 5 callers
Function
resolveActorName
(actorId: string)
packages/engine/src/utils/actor-utils.ts:16
↓ 5 callers
Function
resolveResolvedBy
( reviewerId: string | null, reviewerRecord: { id: string; displayName: string | null; usernam
packages/testing/unit/resolution-audit.test.ts:35
↓ 5 callers
Function
resolve_counterparty
Resolve the counterparty context for an action. For social actions (send_message, etc.), the counterparty is the message target. For tra
packages/training/python/src/training/shared_model_rl.py:1351
↓ 5 callers
Function
revokeNftChatMembershipIfNeeded
( userId: string, chatId: string, reason: string )
packages/api/src/services/nft-chat-gating-service.ts:219
↓ 5 callers
Method
rowToAgent
(row: Record<string, unknown>)
packages/examples/local-a2a-server/src/services/agent-registry.ts:262
↓ 5 callers
Method
run
* Run the complete simulation. * * Calculates final metrics after the simulation has been run. * In fast-forward mode, the actual simulation
packages/training/src/benchmark/SimulationEngine.ts:202
↓ 5 callers
Function
run_benchmark
Run benchmark suite on the trained model. Note: This runs on the host machine after training, not inside Docker, because the TypeScript
packages/training/python/scripts/post_training.py:194
↓ 5 callers
Method
run_benchmark
Compare base model vs trained model
packages/training/python/scripts/run_full_pipeline.py:1359
↓ 5 callers
Function
run_command
( command: list[str], *, cwd: Path | None = None, env: dict[str, str] | None = None, timeo
packages/training/python/scripts/test_pipeline.py:48
↓ 5 callers
Method
run_full_pipeline
Run the complete pipeline end-to-end
packages/training/python/scripts/run_full_pipeline.py:225
↓ 5 callers
Function
run_json
(command: list[str], *, cwd: Path | None = None)
packages/training/python/scripts/tools/run_nebius_unified_matrix.py:171
↓ 5 callers
Function
safeFetchRequired
* Safe fetch helper that throws if the response is null/empty. * Use this for endpoints that must return JSON data.
packages/mcp/src/handlers/tool-handlers.ts:155
↓ 5 callers
Function
safe_json_dumps
(value: Any)
packages/training/python/scripts/hf/trajectories_to_hf_dataset.py:1241
↓ 5 callers
Function
sampleShock
(rng: () => number)
packages/engine/src/services/market-simulation-profiles.ts:112
↓ 5 callers
Method
sanitizeContent
* Sanitize content (remove invalid characters, trim) * * @description Removes null bytes and control characters from content, * then trims wh
packages/shared/src/validation/content-validator.ts:336
↓ 5 callers
Function
sanitizeForJson
(value: T)
apps/web/src/lib/json/sanitize.ts:1
↓ 5 callers
Function
scheduleCreate
()
apps/web/src/components/charts/LightweightChartBase.tsx:274
↓ 5 callers
Function
scrollToEnd
()
apps/web/src/components/chats/hooks/useChatPage.ts:621
↓ 5 callers
Function
scrollToEnd
()
apps/web/src/components/agents/AgentChat.tsx:296
↓ 5 callers
Function
scrollToEnd
()
apps/web/src/app/agents/team/page.tsx:668
↓ 5 callers
Method
searchUsers
(query: string)
packages/examples/harness/src/types.ts:103
↓ 5 callers
Method
sendMessage
( params: Record<string, JsonValue>, context: RequestContext )
packages/a2a/src/executors/babylon-executor.ts:1875
↓ 5 callers
Method
setup
(self)
packages/training/python/src/training/team_rl.py:242
↓ 5 callers
Function
shouldCreditPoints
( sessionStatus: SessionStatus, paymentStatus: PaymentStatus )
packages/testing/unit/stripe/stripe-webhook-logic.test.ts:366
↓ 5 callers
Function
shouldProcessEvent
(eventId: string)
packages/testing/unit/stripe/stripe-webhook-logic.test.ts:308
↓ 5 callers
Function
shouldProcessUser
(userId: string, isFanOut: boolean)
apps/web/src/app/api/cron/notifications-digest/route.ts:25
↓ 5 callers
Function
shouldResetDeclineCount
(lastDeclinedAt: Date | null)
packages/engine/src/config/alpha-group-config.ts:584
↓ 5 callers
Method
should_skip
Check if scenario should be skipped (too easy)
packages/training/python/src/training/scenario_pool.py:412
↓ 5 callers
Method
size
(self)
packages/training/python/src/models.py:280
↓ 5 callers
Function
source_family
(record: dict[str, Any])
packages/training/python/scripts/data-prep/materialize_retained_security_sources.py:1001
↓ 5 callers
Function
stdDev
(values: number[])
packages/testing/unit/training-data-quality-math.test.ts:23
↓ 5 callers
Function
storeTagsForPost
( postId: string, generatedTags: GeneratedTag[] )
packages/engine/src/services/tag-service.ts:358
↓ 5 callers
Method
subscribeToMessages
* Subscribe to messages for specific agent * * @param agentId - Agent ID to receive messages for * @param handler - Message handler function
packages/agents/src/communication/CommunicationHub.ts:266
↓ 5 callers
Function
syncGlobalState
()
packages/api/src/redis/client.ts:53
↓ 5 callers
Method
sync_weights_async
(self, name: str | None = None)
packages/training/python/src/training/tinker_client.py:853
↓ 5 callers
Method
takeSnapshot
* Take a performance snapshot
packages/api/src/monitoring/performance-monitor.ts:234
↓ 5 callers
Function
toFeedPostCardData
(post: FeedPost, authorName: string)
apps/web/src/app/feed/utils/postMappers.ts:117
↓ 5 callers
Method
to_dict
(self)
packages/training/python/scripts/local_training_recipe.py:115
↓ 5 callers
Method
to_observation
Convert to agent observation format. This is what the agent sees as context.
packages/training/python/src/training/scenario_pool.py:266
↓ 5 callers
Method
to_prompt_context
Convert scenario to text context for LLM prompt
packages/training/python/src/training/simulation_bridge.py:116
↓ 5 callers
Method
trade
* Execute a trade and update price
packages/engine/src/__tests__/integration/market-volatility.simulation.test.ts:49
↓ 5 callers
Method
train_archetype
Train a single archetype. Args: archetype: Name of the archetype to train (e.g., "trader", "scammer") trajec
packages/training/python/src/training/archetype_trainer.py:224
↓ 5 callers
Function
trimToNull
(value: string | null | undefined)
packages/api/src/services/sentry-webhook-inbox-service.ts:65
↓ 5 callers
Function
uid
(n: number)
packages/testing/unit/shared/rate-limiting.test.ts:26
↓ 5 callers
Function
unique_strings
(values: list[str])
packages/training/python/scripts/run_scambench_local.py:411
↓ 5 callers
Function
updateFeedbackMetrics
( userId: string, score: number, context?: FeedbackContext )
packages/engine/src/reputation/reputation-calculation-service.ts:344
↓ 5 callers
Function
usePerpMarkets
()
apps/web/src/stores/perpMarketsStore.ts:226
← previous
next →
1,701–1,800 of 14,075, ranked by callers