MCPcopy Create free account

hub / github.com/harvard-edge/cs249r_book / functions

Functions13,553 in github.com/harvard-edge/cs249r_book

↓ 2 callersFunctioncmd_merge
Merge vault JSON files into markdown question files.
interviews/vault/scripts/vault_fill.py:240
↓ 2 callersFunctioncmd_release
Full pipeline: validate → dedup → chains → stats → figures → export.
interviews/vault/vault.py:691
↓ 2 callersFunctioncmd_taxonomy_check
Read-only diagnostic of taxonomy health.
interviews/vault/vault.py:1483
↓ 2 callersMethodcollectContentFromAll
* Collect content from all players * @returns {Promise<Array>} Array of user responses
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:11295
↓ 2 callersMethodcollectContentFromAll
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callersFunctioncollect_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 callersFunctioncollect_defined_styles
(text: str)
book/tools/scripts/testing/tikz_style_linter.py:76
↓ 2 callersFunctioncollect_ids
(html: str, soup=None)
book/tools/scripts/testing/struct_qa_html.py:98
↓ 2 callersFunctioncommit
(r: Result)
interviews/staffml/src/components/CommandPalette.tsx:217
↓ 2 callersMethodcompile
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 callersMethodcomplete_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 callersFunctioncompress_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 callersFunctioncomputeTextFingerprint
(text, n = 3)
socratiq/src_shadow/js/libs/agents/fuzzy_match.js:12
↓ 2 callersFunctioncompute_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 callersFunctioncompute_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 callersFunctionconvert_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 callersFunctioncopy_download
(shadowEle, clone)
socratiq/src_shadow/js/components/settings/copy_download.js:39
↓ 2 callersFunctioncopy_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 callersFunctioncorsHeaders
(env: Env, origin: string | null)
interviews/staffml/worker/src/index.ts:647
↓ 2 callersMethodcountMessagesTokens
* 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 callersFunctioncount_params
Count total and trainable parameters.
mlperf-edu/examples/lab3_arch_comparison.py:54
↓ 2 callersMethodcreateChapter
(chapterData)
socratiq/src_shadow/js/components/spaced_repetition/handlers/storage-handler.js:1056
↓ 2 callersMethodcreateContextSummary
* 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 callersMethodcreateCountdownModal
(e = null, t = null)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:4578
↓ 2 callersMethodcreateCountdownModal
(e=null,t=null)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callersFunctioncreateReferenceLinkHTML
* 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 callersFunctioncreateStorageMock
()
interviews/staffml/src/__tests__/setup.ts:4
↓ 2 callersFunctioncreate_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 callersFunctioncurated_asset_name
(candidate_id: str)
book/tools/scripts/margin_figures/insert_curated_margin_figures.py:23
↓ 2 callersFunctioncurrentUtcHour
()
interviews/staffml/worker/src/index.ts:584
↓ 2 callersFunctioncv
(values: list[int])
interviews/vault/scripts/portfolio_balance_loop.py:58
↓ 2 callersFunctioncycleLayer
(idx)
site/assets/games/quantization.mjs:491
↓ 2 callersFunctioncycleLayer
(idx)
site/assets/games/quantization.js:106
↓ 2 callersFunctiondata_pipeline_profile
Build a source-traced data-pipeline profile from variant defaults.
labs/mlsysbook_labs/data_pipeline.py:166
↓ 2 callersFunctiondata_policy_decision
Return the decision memo fields for a selected data policy.
labs/mlsysbook_labs/selection.py:364
↓ 2 callersFunctiondata_selection_profile
Build a source-traced data-selection profile from variant defaults.
labs/mlsysbook_labs/selection.py:218
↓ 2 callersFunctiondecision_flow
Render a compact, renderer-independent flow diagram.
labs/mlsysbook_labs/ui.py:753
↓ 2 callersMethoddecode
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 callersFunctiondeleteDatabase
(dbName)
socratiq/src_shadow/js/libs/utils/indexDb.js:344
↓ 2 callersFunctiondelta
(key_path, sc, prev)
interviews/vault/scripts/scorecard.py:160
↓ 2 callersFunctiondeployment_mitigation
Return the mitigation memo for the active wall and placement choice.
labs/mlsysbook_labs/deployment.py:359
↓ 2 callersFunctiondesc
(el)
interviews/staffml/tests/navbar-containment-diff.mjs:41
↓ 2 callersFunctiondestroyAllCharts
()
socratiq/src_shadow/js/components/quiz/showQuizStats.js:774
↓ 2 callersMethoddetect_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 callersFunctiondetect_category
Bucket a low-risk correction for reporting.
interviews/vault-cli/scripts/mass_apply_corrections.py:215
↓ 2 callersMethoddetect_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 callersMethoddisconnectFromRoom
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:7980
↓ 2 callersMethoddisconnectFromRoom
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callersMethoddiscover
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 callersFunctiondiscoverVolumeLabs
Discover all labs for a given volume
labs/vscode-ext/src/utils/labDiscovery.ts:16
↓ 2 callersFunctiondiscover_modules
List module directories under src/ excluding common non-module folders.
tinytorch/tito/commands/export_utils.py:61
↓ 2 callersFunctiondismiss
(mode: ModeKey)
interviews/staffml/src/components/FirstRunExplainer.tsx:77
↓ 2 callersMethoddispatchAndUpdate
(key, value)
socratiq/src_shadow/js/components/settings/settings.js:90
↓ 2 callersMethoddisplayExplanations
* Display explanations for all choices
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:3880
↓ 2 callersFunctiondisplay_path
(path: Path)
book/tools/scripts/build_citation_reference_packets.py:151
↓ 2 callersMethoddispose
()
book/vscode-ext/src/validation/healthManager.ts:176
↓ 2 callersMethoddispose
()
tinytorch/vscode-ext/src/providers/runHistoryProvider.ts:19
↓ 2 callersMethoddownload_with_progress
Download with visual progress bar.
tinytorch/milestones/data_manager.py:143
↓ 2 callersFunctiondrawGameOver
(success)
site/assets/games/pipeline.mjs:227
↓ 2 callersFunctiondrawGameOver
(success)
site/assets/games/batch.mjs:144
↓ 2 callersFunctiondrawGameOver
()
site/assets/games/moe.mjs:152
↓ 2 callersMethoddrawNetworkGraph
()
socratiq/src_shadow/js/components/spaced_repetition/spaced-repetition-visualization.js:295
↓ 2 callersFunctionedge_device_profile
Build a track edge profile from shared track metadata and MLSysIM hardware.
labs/mlsysbook_labs/edge.py:182
↓ 2 callersFunctionelementFollowMouse
(menu, e)
socratiq/src_shadow/js/components/highlight_menu/components/highlight_menu.js:142
↓ 2 callersFunctionemb_text
(d)
interviews/vault-cli/scripts/cross_encoder_rerank_experiment.py:43
↓ 2 callersFunctionemit_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 callersFunctionenable_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 callersMethodencode
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 callersFunctionendGame
()
site/assets/games/oom.js:159
↓ 2 callersFunctionendGame
()
site/assets/games/oom.mjs:388
↓ 2 callersMethodendGame
* End the game and show final results
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:4001
↓ 2 callersMethodendGame
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callersMethodendQuizRound
* End current quiz round and show results
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:3943
↓ 2 callersMethodendQuizRound
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callersFunctionenhanceQuizSubmit
(originalHandleQuizSubmit, quizForm, title)
socratiq/src_shadow/js/components/quiz/quiz-storage.js:216
↓ 2 callersFunctionensureTooltipStyles
(shadowRoot)
socratiq/src_shadow/js/components/tooltip/tooltip.js:5
↓ 2 callersFunctionensure_dirs
()
book/tools/scripts/audit/svg_audit.py:98
↓ 2 callersFunctionensure_writable_target
Ensure target file is writable before export.
tinytorch/tito/commands/export_utils.py:292
↓ 2 callersMethodensure_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 callersFunctionescape
(value)
labs/vol1/lab_12_perf_bench.py:258
↓ 2 callersMethodescapeField
(field)
socratiq/src_shadow/js/components/spaced_repetition/utils/anki-converter.js:195
↓ 2 callersFunctionescapeHtml
(value)
socratiq/src_shadow/js/components/markdown/streamdown_markdown.js:95
↓ 2 callersMethodescapeHtml
(e)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callersFunctionescapeRegex
(input: string)
book/vscode-ext/src/utils/labelRename.ts:27
↓ 2 callersFunctionestimate_w
(role: dict)
design-grammar/paper/scripts/generate_primitive_catalog.py:210
↓ 2 callersFunctionevaluate
Evaluate model on dataset.
tinytorch/milestones/05_2017_transformer/01_vaswani_attention.py:393
↓ 2 callersMethodevaluate_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 callersFunctionevaluate_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 callersFunctionevaluate_on_xor
Evaluate model on XOR and return accuracy + predictions.
tinytorch/milestones/02_1969_xor/01_xor_crisis.py:171
↓ 2 callersMethodevaluate_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 callersMethodexecute
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 callersMethodexecute
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 callersMethodexecute_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 callersMethodexpand_chapter_patterns
Expand glob/regex chapter patterns into concrete chapter specs. Supported pattern forms: - **Glob** (default): `appendix*`,
book/cli/core/discovery.py:499
↓ 2 callersFunctionexpected_uniform
(total: int, n_cells: int)
interviews/vault/scripts/analyze_coverage_gaps.py:157
↓ 2 callersMethodexplain
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 callersFunctionexportAsGitHubBody
()
interviews/staffml/src/app/contribute/page.tsx:150
↓ 2 callersMethodexport_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 callersFunctionextractChapterNumber
(title)
socratiq/src_shadow/js/components/spaced_repetition/utils/chaptermap-utils.js:9
↓ 2 callersFunctionextractInlineRefs
(text: string)
book/vscode-ext/src/providers/qmdPythonValueResolver.ts:75
← previousnext →2,501–2,600 of 13,553, ranked by callers