MCPcopy Create free account

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

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

↓ 2 callersFunction_collect_chains
Return {chain_id: [(position, loaded_question), ...]}.
interviews/vault-cli/src/vault_cli/commands/chain.py:25
↓ 2 callersMethod_collect_margin_findings
Detection core (no console output). Returns (findings, pages_scanned). Shared by the ``binder layout margins`` gate and the warn-only build
book/cli/commands/layout.py:2452
↓ 2 callersMethod_collect_margin_geometry_rows
( self, pdf_path: Path, limit: int = 0, chapter_filter: Optional[List[str]] =
book/cli/commands/layout.py:1931
↓ 2 callersMethod_collect_whitespace_reports
( self, pdf_path: Path, threshold: float, limit: int = 0, chapter_filt
book/cli/commands/layout.py:1603
↓ 2 callersFunction_command
(tmp_path)
book/tests/test_footnote_cross_chapter.py:6
↓ 2 callersFunction_compact_unit_suffix
Derive a leading-space compact unit label from a pint display unit.
mlsysim/mlsysim/fmt.py:1870
↓ 2 callersFunction_compute_attention_scores
Compute raw attention scores via Q @ K^T. TODO: Transpose K and multiply by Q to get similarity matrix APPROACH: 1. Transpose K: swap la
tinytorch/src/12_attention/12_attention.py:306
↓ 2 callersMethod_compute_derived_metrics
Compute throughput and efficiency metrics from raw measurements. ``` Derived Metrics Pipeline: FLOPs + Latency → GFL
tinytorch/src/14_profiling/14_profiling.py:696
↓ 2 callersMethod_confirm_reset
Ask user for confirmation.
tinytorch/tito/commands/module/reset.py:80
↓ 2 callersFunction_context
(text: str, start: int, end: int, *, width: int = 80)
book/cli/checks/currency_style.py:201
↓ 2 callersFunction_context_windows
(text: str, needle: str, *, width: int = 220)
book/tools/audit/fmt/audit_lego_rendered_prose.py:114
↓ 2 callersMethod_convertContentToParts
* Convert content to Gemini parts format
socratiq/src_shadow/js/libs/agents/gemini-adapter.js:100
↓ 2 callersFunction_count_all_issues
Count issues by category for a single file using all registered checks.
book/tools/audit/fix_script_lane.py:175
↓ 2 callersFunction_counts
(text: str)
book/tools/audit/fix_script_lane.py:115
↓ 2 callersFunction_create_frozen_batch
Create a fixed batch of synthetic data outside the gradient loop. The model must memorize this exact structure — if the architecture is b
mlperf-edu/scripts/orchestration/auto_trainer.py:74
↓ 2 callersFunction_credentials_dir
()
tinytorch/tito/core/auth.py:44
↓ 2 callersMethod_dedupe_paths
(paths: List[Path])
book/cli/commands/layout.py:835
↓ 2 callersMethod_delegate_script
Run an external-binary-wrapping script and convert its exit code to a ValidationRunResult.
book/cli/commands/validate.py:8563
↓ 2 callersFunction_delete_stmt
(table: str, pk_cols: tuple[str, ...], pk: tuple)
interviews/vault-cli/src/vault_cli/release.py:173
↓ 2 callersFunction_display_prefix
Build a standardized leading marker for a formatted display value.
mlsysim/mlsysim/fmt.py:162
↓ 2 callersFunction_do_deploy
Take the R2 snapshot (unless skipped) then apply the migration. Shared by `deploy_cmd` and `ship_cmd`. Returns metadata for journaling.
interviews/vault-cli/src/vault_cli/commands/release.py:81
↓ 2 callersFunction_domain
(text: str)
book/tools/scripts/margin_figures/generate_margin_figures.py:1716
↓ 2 callersFunction_dump_table
Return (column_list, rows_by_pk) for one table.
interviews/vault-cli/src/vault_cli/release.py:142
↓ 2 callersFunction_emit
(code: str, m)
book/tools/audit/fmt/audit_prose_semantics.py:129
↓ 2 callersMethod_emit_report
(self, payload: dict[str, Any], ns: argparse.Namespace)
book/cli/commands/release.py:570
↓ 2 callersMethod_encode_query
Encode input tokens into a retrieval query vector.
mlperf-edu/reference/cloud/nano_rag_agent.py:144
↓ 2 callersFunction_ensure_import
Make `fn_name` resolvable in every cell that received an edit. Cells share one namespace (a top ``from mlsysim import *`` covers all), but ch
book/tools/audit/fmt/run_percent_lane.py:53
↓ 2 callersFunction_entry_error_messages
(entry)
book/tools/bib_sync_preserve.py:273
↓ 2 callersFunction_entry_field_map
(entry)
book/tools/bib_sync_preserve.py:231
↓ 2 callersMethod_excerpt
(self, text: str, limit: int)
book/cli/commands/release.py:632
↓ 2 callersFunction_exec_cells
(qmd: Path)
book/tools/audit/fmt/audit_lego_html.py:93
↓ 2 callersFunction_exec_preamble
()
book/tools/audit/generate_appendix_constants.py:108
↓ 2 callersFunction_exit_code
(unresolved: list, scope_violations: list, orphans: list, strict: bool)
book/tools/scripts/check_bib_qmd_integrity.py:487
↓ 2 callersMethod_extractContentFromStreamingResponse
* Extract content from streaming response based on provider * @param {Object} parsed - Parsed JSON response * @param {string} provider - Provide
socratiq/src_shadow/js/libs/agents/custom-api-adapter.js:339
↓ 2 callersFunction_extract_bold_title
(text: str)
book/quarto/scripts/resolve_cross_references.py:136
↓ 2 callersMethod_extract_caption
Find a 'Table X.Y:' or 'Figure X.Y:' caption on a page. Captions in this book are rendered by Quarto as: Table N.M: Some caption
book/cli/commands/layout.py:3558
↓ 2 callersFunction_extract_cells
(path: Path)
book/tools/audit/generate_appendix_constants.py:73
↓ 2 callersFunction_extract_label_from_caption
Extract the bold title from a caption string.
book/tools/scripts/publish/extract_figures.py:87
↓ 2 callersMethod_extract_packages_from_line
Extract package names from a single line of LaTeX content.
book/tools/scripts/maintenance/update_texlive_packages.py:155
↓ 2 callersMethod_find_draft
Find a draft file matching the given slug (partial match).
book/cli/commands/newsletter.py:418
↓ 2 callersFunction_find_flat
Helper to do a deep search for a name in the registry tree.
mlsysim/mlsysim/cli/schemas.py:15
↓ 2 callersFunction_find_project_root
Find the TinyTorch project root directory.
tinytorch/tito/core/modules.py:27
↓ 2 callersFunction_find_qmd_roots
Locate the Quarto project source tree from common run locations. Quarto post-render hooks run from the project root (where _quarto.yml lives
book/quarto/scripts/resolve_cross_references.py:310
↓ 2 callersMethod_find_section
Walk backwards from line_num to find the nearest H2/H3. Returns the header text without the markdown ## / ### prefix, with any traili
book/cli/commands/layout.py:3230
↓ 2 callersFunction_fit_label
(label: str, max_chars: int = 34)
book/tools/scripts/margin_figures/render_margin_contact_sheet.py:107
↓ 2 callersFunction_fleet_16k_h100
()
mlsysim/paper/scripts/validate_anchors.py:53
↓ 2 callersFunction_fmt_scaled_count_quantity
( value, *, unit, scale, precision, commas, what, scale_style="symbol", at
mlsysim/mlsysim/fmt.py:1267
↓ 2 callersFunction_format_report
(build_dir: Path, findings: dict)
book/quarto/scripts/verify_rendered_xrefs.py:130
↓ 2 callersFunction_format_value
Auto-format a value for display.
mlsysim/mlsysim/show.py:23
↓ 2 callersFunction_formatter_call_from_value
Return the formatter call that owns an exported value, when unambiguous.
book/cli/checks/fmt_prose_contract.py:122
↓ 2 callersFunction_forward_pass
Run one forward pass and compute loss. Returns (outputs, loss).
mlperf-edu/scripts/orchestration/auto_trainer.py:109
↓ 2 callersFunction_fresh_ns
(prior: list[str])
book/tools/audit/fmt/fix_spurious_prose.py:21
↓ 2 callersMethod_generate_receipt
Generates a cryptographically signed JSON receipt for auto-grading.
mlperf-edu/src/mlperf/core.py:270
↓ 2 callersFunction_generate_recommendations
Generate deployment recommendations from improvement data. TODO: Find best model for each deployment scenario APPROACH: 1. Track be
tinytorch/src/19_benchmarking/19_benchmarking.py:3373
↓ 2 callersMethod_generate_section_id
Generate a unique section ID.
book/cli/commands/maintenance.py:463
↓ 2 callersMethod_generate_welcome_text
Generate dynamic welcome text for interactive mode.
tinytorch/tito/main.py:128
↓ 2 callersFunction_generic_taxonomy
(candidate)
book/tools/scripts/margin_figures/generate_margin_figures.py:1910
↓ 2 callersFunction_getAngle
(e)
socratiq/src_shadow/js/components/meditation/meditationTimer.js:248
↓ 2 callersMethod_getMimeTypeFromUrl
* Get MIME type from URL
socratiq/src_shadow/js/libs/agents/gemini-adapter.js:140
↓ 2 callersFunction_getPos
(e)
socratiq/src_shadow/js/components/draw-select/drawSelect.js:81
↓ 2 callersMethod_get_body
Extract markdown body (everything after front matter).
book/cli/commands/newsletter.py:74
↓ 2 callersMethod_get_config
Get community configuration.
tinytorch/tito/commands/benchmark.py:592
↓ 2 callersFunction_get_id_index
Return the memoized ID index for `root`, building it if needed.
book/tools/audit/checks/unresolved_xref.py:124
↓ 2 callersMethod_get_metric_value
Helper to extract a metric value via dotted path (e.g. 'performance.metrics.latency').
mlsysim/mlsysim/engine/dse.py:57
↓ 2 callersMethod_get_milestone_progress_data
Get or create milestone progress data.
tinytorch/tito/commands/milestone.py:472
↓ 2 callersMethod_get_milestone_progress_data
Get or create milestone progress data.
tinytorch/tito/commands/milestone.py:1485
↓ 2 callersMethod_get_module_directories
Get all module directory names in curriculum order.
tinytorch/tito/commands/nbgrader.py:203
↓ 2 callersFunction_git
(*args: str)
interviews/vault-cli/scripts/check_reviewer_identity.py:24
↓ 2 callersMethod_git
(self, args: Iterable[str])
book/cli/commands/release.py:615
↓ 2 callersFunction_git_leaf
Leaf binding source-tree state (sha + dirty + tree hash).
mlperf-edu/src/mlperf/manifest.py:58
↓ 2 callersFunction_git_user_email
Resolve the committer identity for auto-populating ``authors:`` (David H4).
interviews/vault-cli/src/vault_cli/commands/authoring.py:119
↓ 2 callersFunction_has_app_cell_decorator
True if the function is decorated with @app.cell or @app.cell(...).
labs/tests/test_static.py:554
↓ 2 callersMethod_has_attr_math
True iff *value* contains a `$...$` math span (after currency false-positive filtering).
book/cli/commands/validate.py:5958
↓ 2 callersFunction_has_match
(line: str)
book/tools/audit/checks/concept_term_capitalization.py:565
↓ 2 callersFunction_hash_file
(path: Path)
interviews/vault-cli/src/vault_cli/commands/codegen.py:34
↓ 2 callersFunction_heading_level
(line: str)
book/tools/audit/checks/layout_proxies.py:161
↓ 2 callersFunction_inside_parens
True if position `pos` is inside any parenthetical span.
book/tools/audit/checks/latin_running_text.py:121
↓ 2 callersFunction_intra_node_latency
Resolve the per-hop latency for intra-node (NVLink) communication. Implements the instance -> tech-class fallback: prefer the latency on the
mlsysim/mlsysim/engine/solvers/utils.py:6
↓ 2 callersFunction_isAllowedOrigin
(origin)
interviews/staffml/public/sw.js:204
↓ 2 callersFunction_is_body_intrusion
Return true when a candidate is really an internal body-figure object.
book/cli/checks/margin_geometry.py:185
↓ 2 callersFunction_is_chapter_anchor
True when the cell header documents an intentional chapter-wide anchor. Chapter anchors keep one scenario's numbers consistent across a problem
book/tools/audit/lego_focal_verify.py:26
↓ 2 callersFunction_is_const_100
(node)
book/tools/audit/fmt/codemod_fmt.py:94
↓ 2 callersMethod_is_latex_manifest
(path: Path)
book/cli/commands/info.py:650
↓ 2 callersFunction_is_mo_ui_assign
If stmt is `<name> = mo.ui.<widget>(...)`, return the name. Else None.
labs/tests/test_static.py:583
↓ 2 callersMethod_is_pipe_separator
(line: str)
book/cli/commands/layout.py:932
↓ 2 callersFunction_is_substantive_body_line
A 'body line' for orphan-detection purposes. Blank lines, pure attribute lines, div fences, and HTML comments don't count toward the body-lin
book/tools/audit/checks/layout_proxies.py:168
↓ 2 callersFunction_is_testable
(path_str: str)
book/cli/core/discovery.py:73
↓ 2 callersFunction_iter_bibs
(quarto_dir: Path)
book/cli/commands/_epub_checks.py:118
↓ 2 callersFunction_iter_svgs
(contents_dir: Path)
book/cli/commands/_epub_checks.py:104
↓ 2 callersFunction_iter_text_lines
Yield (idx, line) for lines that are prose (skip code fences, YAML, #|).
book/cli/checks/mitpress_terms.py:113
↓ 2 callersFunction_label
(lab, v, yy, frac, inside_x, out_x)
book/tools/figures/margin/devices.py:183
↓ 2 callersFunction_label_suffix
Return a leading-space count label that agrees with the raw count.
mlsysim/mlsysim/fmt.py:323
↓ 2 callersFunction_lego_cell_lines
(qmd: Path)
book/tools/audit/lego_prose_coherence.py:57
↓ 2 callersMethod_line_text
(line_chars: list)
book/cli/commands/layout.py:1861
↓ 2 callersFunction_line_violations
( line: str, in_callout: bool, callout_has_python: bool, *, strict: bool = False, supp
book/cli/checks/lego_prose_literals.py:268
↓ 2 callersFunction_lint_question
(lq: LoadedQuestion)
interviews/vault-cli/src/vault_cli/commands/lint.py:132
↓ 2 callersFunction_llama_405b
()
mlsysim/paper/scripts/validate_anchors.py:49
↓ 2 callersFunction_load_acks
(vault_dir: Path = DEFAULT_VAULT_DIR)
interviews/vault-cli/src/vault_cli/commands/dup.py:35
↓ 2 callersMethod_load_all
Discovers and registers all built-in and third-party resolvers. This method is idempotent and ensures that subclasses of Bas
mlsysim/mlsysim/engine/resolver_factory.py:19
↓ 2 callersFunction_load_cache
(cache_path: Path)
book/cli/commands/reference_check.py:190
← previousnext →2,101–2,200 of 13,553, ranked by callers