Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/harvard-edge/cs249r_book
/ functions
Functions
13,553 in github.com/harvard-edge/cs249r_book
⨍
Functions
13,553
◇
Types & classes
1,810
↳
Endpoints
20
↓ 2 callers
Function
cmd_merge
Merge vault JSON files into markdown question files.
interviews/vault/scripts/vault_fill.py:240
↓ 2 callers
Function
cmd_release
Full pipeline: validate → dedup → chains → stats → figures → export.
interviews/vault/vault.py:691
↓ 2 callers
Function
cmd_taxonomy_check
Read-only diagnostic of taxonomy health.
interviews/vault/vault.py:1483
↓ 2 callers
Method
collectContentFromAll
* Collect content from all players * @returns {Promise<Array>} Array of user responses
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:11295
↓ 2 callers
Method
collectContentFromAll
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callers
Function
collect_anchors
Return the set of anchor ids defined in the given Markdown source. Combines: - Explicit `{#id}` attributes anywhere in the document.
shared/scripts/check-internal-links.py:194
↓ 2 callers
Function
collect_defined_styles
(text: str)
book/tools/scripts/testing/tikz_style_linter.py:76
↓ 2 callers
Function
collect_ids
(html: str, soup=None)
book/tools/scripts/testing/struct_qa_html.py:98
↓ 2 callers
Function
commit
(r: Result)
interviews/staffml/src/components/CommandPalette.tsx:217
↓ 2 callers
Method
compile
Compiles the mathematical equations into the OR-Tools CP-SAT format. Args: builder_fn: A function that takes an
mlsysim/mlsysim/core/optimization/ortools_backend.py:19
↓ 2 callers
Method
complete_caption_improvement_workflow
Complete LLM caption improvement process (used by --improve and default mode). Process: Extract → Analyze → Improve with LLM → Updat
book/tools/scripts/content/manage_captions.py:3215
↓ 2 callers
Function
compress_model
Apply comprehensive model compression based on configuration. TODO: Implement complete compression pipeline APPROACH: 1. Apply magn
tinytorch/src/16_compression/16_compression.py:1281
↓ 2 callers
Function
computeTextFingerprint
(text, n = 3)
socratiq/src_shadow/js/libs/agents/fuzzy_match.js:12
↓ 2 callers
Function
compute_balance
Compute balance metrics per track. Returns: balance_report: dict with per-track stats imbalanced_cells: list of cells that n
interviews/vault/scripts/vault_loop.py:93
↓ 2 callers
Function
compute_dir_hash
SHA-256 over sorted (path, content) pairs across ``paths``. Returns ``(hex_hash, file_index)`` where file_index is a list of ``{"path": "..."
scripts/version/release.py:107
↓ 2 callers
Function
convert_bytes_to_human_readable
Convert bytes to human-readable format. Args: size_in_bytes (int): Size in bytes. Returns: str: Size in human-readable
book/tools/scripts/publish/render_compress_publish.py:115
↓ 2 callers
Function
copy_download
(shadowEle, clone)
socratiq/src_shadow/js/components/settings/copy_download.js:39
↓ 2 callers
Function
copy_visual_assets
Copy `interviews/vault/visuals/<track>/*.svg` → `<staffml>/public/question-visuals/<track>/`. The Next.js frontend serves static assets from ``pu
interviews/vault-cli/src/vault_cli/legacy_export.py:281
↓ 2 callers
Function
corsHeaders
(env: Env, origin: string | null)
interviews/staffml/worker/src/index.ts:647
↓ 2 callers
Method
countMessagesTokens
* Count tokens for a messages array (OpenAI format) * @param {Array} messages - Array of message objects * @returns {number} Total estimated tok
socratiq/src_shadow/js/libs/utils/tokenCounter.js:29
↓ 2 callers
Function
count_params
Count total and trainable parameters.
mlperf-edu/examples/lab3_arch_comparison.py:54
↓ 2 callers
Method
createChapter
(chapterData)
socratiq/src_shadow/js/components/spaced_repetition/handlers/storage-handler.js:1056
↓ 2 callers
Method
createContextSummary
* Create a context summary for quiz generation * @param {Object} context - Full context object * @returns {string} Context summary
socratiq/src_shadow/js/utils/viewportContextCapture.js:211
↓ 2 callers
Method
createCountdownModal
(e = null, t = null)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:4578
↓ 2 callers
Method
createCountdownModal
(e=null,t=null)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callers
Function
createReferenceLinkHTML
* Create a reference link HTML (for non-DOM environments) * @param {string} refId - The reference ID * @param {string} definition - The reference de
socratiq/src_shadow/js/components/markdown/reference_renderer.js:120
↓ 2 callers
Function
createStorageMock
()
interviews/staffml/src/__tests__/setup.ts:4
↓ 2 callers
Function
create_test_runner
Factory function to create a test runner for a module. Args: module_name: Name of the module being tested Returns: Modu
tinytorch/tito/tools/testing.py:236
↓ 2 callers
Function
curated_asset_name
(candidate_id: str)
book/tools/scripts/margin_figures/insert_curated_margin_figures.py:23
↓ 2 callers
Function
currentUtcHour
()
interviews/staffml/worker/src/index.ts:584
↓ 2 callers
Function
cv
(values: list[int])
interviews/vault/scripts/portfolio_balance_loop.py:58
↓ 2 callers
Function
cycleLayer
(idx)
site/assets/games/quantization.mjs:491
↓ 2 callers
Function
cycleLayer
(idx)
site/assets/games/quantization.js:106
↓ 2 callers
Function
data_pipeline_profile
Build a source-traced data-pipeline profile from variant defaults.
labs/mlsysbook_labs/data_pipeline.py:166
↓ 2 callers
Function
data_policy_decision
Return the decision memo fields for a selected data policy.
labs/mlsysbook_labs/selection.py:364
↓ 2 callers
Function
data_selection_profile
Build a source-traced data-selection profile from variant defaults.
labs/mlsysbook_labs/selection.py:218
↓ 2 callers
Function
decision_flow
Render a compact, renderer-independent flow diagram.
labs/mlsysbook_labs/ui.py:753
↓ 2 callers
Method
decode
Decode token IDs back to text. TODO: Convert token IDs back to readable text APPROACH: 1. Convert IDs to tokens
tinytorch/src/10_tokenization/10_tokenization.py:1186
↓ 2 callers
Function
deleteDatabase
(dbName)
socratiq/src_shadow/js/libs/utils/indexDb.js:344
↓ 2 callers
Function
delta
(key_path, sc, prev)
interviews/vault/scripts/scorecard.py:160
↓ 2 callers
Function
deployment_mitigation
Return the mitigation memo for the active wall and placement choice.
labs/mlsysbook_labs/deployment.py:359
↓ 2 callers
Function
desc
(el)
interviews/staffml/tests/navbar-containment-diff.mjs:41
↓ 2 callers
Function
destroyAllCharts
()
socratiq/src_shadow/js/components/quiz/showQuizStats.js:774
↓ 2 callers
Method
detect_all_instances_by_id
Generic method to find ALL instances of any ID (fig-, tbl-, lst-) in content. This handles the common scenario where the same ID app
book/tools/scripts/content/manage_captions.py:3803
↓ 2 callers
Function
detect_category
Bucket a low-risk correction for reporting.
interviews/vault-cli/scripts/mass_apply_corrections.py:215
↓ 2 callers
Method
detect_table
Detect table captions. Supports both formats: - Old: : Caption text {#tbl-id} - New: Caption text {#tbl-id}
book/tools/scripts/content/manage_captions.py:1632
↓ 2 callers
Method
disconnectFromRoom
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:7980
↓ 2 callers
Method
disconnectFromRoom
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callers
Method
discover
Find the newsletter root by walking up from this file. Relies on the CLI living at `site/newsletter/cli/core/config.py`. If that layo
site/newsletter/cli/core/config.py:35
↓ 2 callers
Function
discoverVolumeLabs
Discover all labs for a given volume
labs/vscode-ext/src/utils/labDiscovery.ts:16
↓ 2 callers
Function
discover_modules
List module directories under src/ excluding common non-module folders.
tinytorch/tito/commands/export_utils.py:61
↓ 2 callers
Function
dismiss
(mode: ModeKey)
interviews/staffml/src/components/FirstRunExplainer.tsx:77
↓ 2 callers
Method
dispatchAndUpdate
(key, value)
socratiq/src_shadow/js/components/settings/settings.js:90
↓ 2 callers
Method
displayExplanations
* Display explanations for all choices
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:3880
↓ 2 callers
Function
display_path
(path: Path)
book/tools/scripts/build_citation_reference_packets.py:151
↓ 2 callers
Method
dispose
()
book/vscode-ext/src/validation/healthManager.ts:176
↓ 2 callers
Method
dispose
()
tinytorch/vscode-ext/src/providers/runHistoryProvider.ts:19
↓ 2 callers
Method
download_with_progress
Download with visual progress bar.
tinytorch/milestones/data_manager.py:143
↓ 2 callers
Function
drawGameOver
(success)
site/assets/games/pipeline.mjs:227
↓ 2 callers
Function
drawGameOver
(success)
site/assets/games/batch.mjs:144
↓ 2 callers
Function
drawGameOver
()
site/assets/games/moe.mjs:152
↓ 2 callers
Method
drawNetworkGraph
()
socratiq/src_shadow/js/components/spaced_repetition/spaced-repetition-visualization.js:295
↓ 2 callers
Function
edge_device_profile
Build a track edge profile from shared track metadata and MLSysIM hardware.
labs/mlsysbook_labs/edge.py:182
↓ 2 callers
Function
elementFollowMouse
(menu, e)
socratiq/src_shadow/js/components/highlight_menu/components/highlight_menu.js:142
↓ 2 callers
Function
emb_text
(d)
interviews/vault-cli/scripts/cross_encoder_rerank_experiment.py:43
↓ 2 callers
Function
emit_github_annotations
When running under GitHub Actions, echo `::error` annotations so epubcheck findings appear inline on the PR diff view. No-op when `GITHUB_ACT
book/cli/commands/_epub_checks.py:763
↓ 2 callers
Function
enable_kv_cache
Enable KV caching for a transformer model WITHOUT modifying Module 12/13 code. TODO: Compose helpers to create cache and patch attention lay
tinytorch/src/18_memoization/18_memoization.py:1470
↓ 2 callers
Method
encode
Encode text using BPE. TODO: Apply BPE encoding to text APPROACH: 1. Split text into words 2. Convert each
tinytorch/src/10_tokenization/10_tokenization.py:1139
↓ 2 callers
Function
endGame
()
site/assets/games/oom.js:159
↓ 2 callers
Function
endGame
()
site/assets/games/oom.mjs:388
↓ 2 callers
Method
endGame
* End the game and show final results
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:4001
↓ 2 callers
Method
endGame
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callers
Method
endQuizRound
* End current quiz round and show results
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:3943
↓ 2 callers
Method
endQuizRound
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callers
Function
enhanceQuizSubmit
(originalHandleQuizSubmit, quizForm, title)
socratiq/src_shadow/js/components/quiz/quiz-storage.js:216
↓ 2 callers
Function
ensureTooltipStyles
(shadowRoot)
socratiq/src_shadow/js/components/tooltip/tooltip.js:5
↓ 2 callers
Function
ensure_dirs
()
book/tools/scripts/audit/svg_audit.py:98
↓ 2 callers
Function
ensure_writable_target
Ensure target file is writable before export.
tinytorch/tito/commands/export_utils.py:292
↓ 2 callers
Method
ensure_yaml_safe_caption
Ensure caption is safe for YAML parsing by adding quotes when needed. YAML interprets text starting with ** as alias references, whi
book/tools/scripts/content/manage_captions.py:694
↓ 2 callers
Function
escape
(value)
labs/vol1/lab_12_perf_bench.py:258
↓ 2 callers
Method
escapeField
(field)
socratiq/src_shadow/js/components/spaced_repetition/utils/anki-converter.js:195
↓ 2 callers
Function
escapeHtml
(value)
socratiq/src_shadow/js/components/markdown/streamdown_markdown.js:95
↓ 2 callers
Method
escapeHtml
(e)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callers
Function
escapeRegex
(input: string)
book/vscode-ext/src/utils/labelRename.ts:27
↓ 2 callers
Function
estimate_w
(role: dict)
design-grammar/paper/scripts/generate_primitive_catalog.py:210
↓ 2 callers
Function
evaluate
Evaluate model on dataset.
tinytorch/milestones/05_2017_transformer/01_vaswani_attention.py:393
↓ 2 callers
Method
evaluate_epoch
Validates an epoch. Supports torch.Tensor, tinytorch.Tensor, and NumPy. Accepts optional introspection metrics (FLOPs, Bytes).
mlperf-edu/src/mlperf/core.py:199
↓ 2 callers
Function
evaluate_existing_quiz_file
Evaluate an existing quiz JSON file and mark poor questions as hidden. Args: quiz_file_path: Path to the quiz JSON file args
book/tools/scripts/quizzes/_legacy/quizzes_reference.py:5570
↓ 2 callers
Function
evaluate_on_xor
Evaluate model on XOR and return accuracy + predictions.
tinytorch/milestones/02_1969_xor/01_xor_crisis.py:171
↓ 2 callers
Method
evaluate_question
Evaluate a single question using the LLM judge Args: question: The question dictionary chapter_info: Context
book/tools/scripts/quizzes/_legacy/quizzes_reference.py:499
↓ 2 callers
Method
execute
Execute code in a restricted sandbox and capture the result. The code should end with a bare expression whose value is the 'result'.
mlperf-edu/reference/cloud/nano_codegen_agent.py:83
↓ 2 callers
Method
execute
Execute a tool call and return (success, result). Args: tool_name: one of the registered tool names argument
mlperf-edu/reference/cloud/nano_react_agent.py:77
↓ 2 callers
Method
execute_research_loop
Run one iteration of the Dual-Agent research loop. Args: loss_delta: Recent training loss values validation_
mlperf-edu/scripts/orchestration/llm_researcher.py:129
↓ 2 callers
Method
expand_chapter_patterns
Expand glob/regex chapter patterns into concrete chapter specs. Supported pattern forms: - **Glob** (default): `appendix*`,
book/cli/core/discovery.py:499
↓ 2 callers
Function
expected_uniform
(total: int, n_cells: int)
interviews/vault/scripts/analyze_coverage_gaps.py:157
↓ 2 callers
Method
explain
Show the resolver DAG: what each stage requires, produces, and where gaps exist. Returns a human-readable string describing the pipeline flow
mlsysim/mlsysim/engine/pipeline.py:53
↓ 2 callers
Function
exportAsGitHubBody
()
interviews/staffml/src/app/contribute/page.tsx:150
↓ 2 callers
Method
export_module
Export student's notebook to the TinyTorch package. This only runs nbdev_export on the existing notebook. It does NOT convert
tinytorch/tito/commands/module/workflow.py:1224
↓ 2 callers
Function
extractChapterNumber
(title)
socratiq/src_shadow/js/components/spaced_repetition/utils/chaptermap-utils.js:9
↓ 2 callers
Function
extractInlineRefs
(text: string)
book/vscode-ext/src/providers/qmdPythonValueResolver.ts:75
← previous
next →
2,501–2,600 of 13,553, ranked by callers