MCPcopy Create free account

hub / github.com/idank/explainshell / functions

Functions2,183 in github.com/idank/explainshell

↓ 286 callersMethodcall
(self, user_content: str)
explainshell/extraction/llm/providers/codex.py:42
↓ 128 callersMethodadd_manpage
add `m` into the store, if it exists first remove it and its mappings each man page may have aliases besides the name determined by its
explainshell/store.py:474
↓ 127 callersFunctione
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 107 callersFunction$
(n,t,e)
explainshell/web/static/js/d3.v3.min.js:1
↓ 69 callersMethodfind_man_page
find a man page by its name, everything following the last dot (.) in name, is taken as the section of the man page we return the man
explainshell/store.py:151
↓ 68 callersFunction_make_raw
Build a minimal RawManpage for test use.
tests/test_store.py:12
↓ 60 callersMethodexec
(e)
explainshell/web/static/js/highlight.min.js:133
↓ 52 callersFunction_opt
( text: str = "", short: list[str] | None = None, long: list[str] | None = None, has_argument:
tests/extraction/test_postprocess.py:18
↓ 52 callersMethodmatch
(self)
explainshell/matcher.py:822
↓ 51 callersMethodcreate
Create a new (or open an existing) writable database and return a Store.
explainshell/store.py:128
↓ 51 callersFunctionjQuery
( selector, context )
explainshell/web/static/js/jquery.js:60
↓ 51 callersFunctionn
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 51 callersFunctiont
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 50 callersFunctionu
()
explainshell/web/static/js/d3.v3.min.js:1
↓ 47 callersFunction_make_manpage
Helper to build a ParsedManpage with the conventional source path.
tests/test_store.py:29
↓ 47 callersFunctionr
(n,t)
explainshell/web/static/js/d3.v3.min.js:1
↓ 41 callersFunction_make_batch
Build a fake Batch object matching openai.types.Batch shape.
tests/extraction/llm/test_openai_provider.py:24
↓ 41 callersMethodadd
(e)
explainshell/web/static/js/highlight.min.js:29
↓ 41 callersMethodclose
(self)
explainshell/store.py:134
↓ 41 callersFunctionrange
(t0, t1, dt)
explainshell/web/static/js/d3.v3.js:7881
↓ 40 callersMethodassertMatchSingle
(self, what, expectedmanpage, expectedresults)
tests/test_matcher.py:14
↓ 37 callersFunction_make_prepared
Build a minimal PreparedFile for testing.
tests/extraction/test_runner.py:25
↓ 37 callersFunction_temp_db
Yield a path to a fresh temp SQLite file, cleaned up on exit.
tests/test_manager.py:76
↓ 35 callersFunction_make_raw
(sha256: str | None = None)
tests/test_manager.py:45
↓ 31 callersFunctiond3_functor
(v)
explainshell/web/static/js/d3.v3.js:1616
↓ 31 callersFunctionlt
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 26 callersMethodclassify
(self, gz_path: str)
explainshell/extraction/prefilter.py:133
↓ 25 callersFunction_pick
(pool: list[str], rng: random.Random)
tools/loadtest.py:63
↓ 24 callersMethodcompile
()
explainshell/web/static/js/highlight.min.js:131
↓ 22 callersFunctionl
()
explainshell/web/static/js/d3.v3.min.js:1
↓ 21 callersFunctioni
()
explainshell/web/static/js/d3.v3.min.js:1
↓ 20 callersFunction_make_classifier
( s: _FakeStore, *, overwrite: bool = False, filter_specs: list[tuple[str, str | None]] | None
tests/extraction/test_prefilter.py:54
↓ 20 callersFunctiondedup_options
Remove options whose flag set is a subset of (or equal to) another's. Covers both strict-subset (e.g. {Z} vs {-M, Z}) and exact-match duplica
explainshell/extraction/postprocess.py:116
↓ 19 callersFunctionnext
()
explainshell/web/static/js/jquery.js:1915
↓ 19 callersFunctionpostprocess
Copy and restructure manpages from *src_dir* to *dst_dir*. Only sections listed in ``SECTIONS_TO_KEEP`` are copied. Section directories are r
tools/postprocess_ubuntu_archive.py:140
↓ 18 callersFunction_make_extractor
Build a fake BatchExtractor with prepare/finalize/batch_provider.
tests/extraction/test_runner.py:66
↓ 18 callersFunction_make_manpage
( name: str, section: str = "1", distro: str = "ubuntu", release: str = "26.04", aliases:
tests/test_manager.py:54
↓ 18 callersFunctiona
(n,t,e)
explainshell/web/static/js/d3.v3.min.js:1
↓ 17 callersMethodaddpoint
(x, y)
explainshell/web/static/js/es.js:263
↓ 17 callersFunctionf
()
explainshell/web/static/js/d3.v3.min.js:1
↓ 17 callersFunctionrun_batch_collected
Like ``run_batch``, but collects per-file results into a list.
explainshell/extraction/runner.py:713
↓ 16 callersFunctionc
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 16 callersMethodpoll_batch
( self, client: OpenAI, job_id: str, poll_interval: int, stop_event: t
explainshell/extraction/llm/providers/openai.py:166
↓ 15 callersFunctionNi
(n,t,e)
explainshell/web/static/js/d3.v3.min.js:2
↓ 15 callersFunction_write
(path: Path, content: str = "content")
tests/test_postprocess_ubuntu_archive.py:23
↓ 15 callersFunctiond3_time_formatPad
(value, fill, width)
explainshell/web/static/js/d3.v3.js:8037
↓ 15 callersFunctionrescale
()
explainshell/web/static/js/d3.v3.js:1145
↓ 14 callersFunction_make_batch_provider
Build a mock batch provider.
tests/extraction/test_runner.py:101
↓ 14 callersFunctiongetAll
( context, tag )
explainshell/web/static/js/jquery.js:6352
↓ 13 callersMethod_make_mp
( self, name: str, section: str = "1", *, extractor: str | None = None
tests/test_store.py:451
↓ 13 callersFunction_make_result
(gz_path: str = "")
tests/extraction/test_runner.py:39
↓ 13 callersFunction_make_src
Create a minimal source directory with man1/ and man8/.
tests/test_postprocess_ubuntu_archive.py:15
↓ 13 callersMethodempty
Zero-everything summary, used when the histogram is unavailable. Old reports written before option-count tracking existed migrate to
explainshell/extraction/report.py:72
↓ 13 callersFunctionget_store
Return the serving Store for the current Flask app. Production keeps one read-only CachingStore per worker process. Debug/dev keeps the old p
explainshell/web/__init__.py:15
↓ 13 callersFunctioninterpolate
(from, to, direction, listener)
explainshell/web/static/js/d3.v3.js:2694
↓ 12 callersFunctiond3_eventCancel
()
explainshell/web/static/js/d3.v3.js:403
↓ 12 callersFunctionllm_option_to_store_option
Convert one LLM option dict to a models.Option. Uses the "lines" field to slice the description from original_lines.
explainshell/extraction/llm/response.py:203
↓ 12 callersMethodlog_event
Append an entry to the db_events log.
explainshell/store.py:315
↓ 12 callersMethodmapping_score
Return the score of the mapping from *src* to *dst*, or None.
explainshell/store.py:443
↓ 12 callersFunctionnormalize_option_fields
Normalize known LLM type mistakes in a raw option dict before validation. Fixes observed in the top-1000 corpus run: - ``has_argument: null``
explainshell/extraction/llm/response.py:128
↓ 12 callersFunctionon_result
(path: str, entry: ExtractionResult)
tools/experiments/eval_size_routing.py:99
↓ 11 callersFunction_estimate_value_size
(value: object)
explainshell/caching_store.py:45
↓ 11 callersFunction_make_manpage_with_extractor
( name: str, extractor: str, extraction_meta: dict | None = None, distro: str = "ubuntu",
tests/test_manager.py:1217
↓ 11 callersFunction_parse_jsonl
Extract response content and token usage from codex JSONL output. Looks for ``item.completed`` events whose ``item.type`` is ``"agent_message
explainshell/extraction/llm/providers/codex.py:94
↓ 11 callersFunction_require_db
Return the --db path or raise a UsageError if not set. When *must_exist* is True, also verify the file is present on disk.
explainshell/manager.py:502
↓ 11 callersFunctionget_manpage_text
Run patched ``mandoc -T markdown <gz_path>`` to get markdown directly.
explainshell/extraction/llm/text.py:45
↓ 11 callersFunctiono
()
explainshell/web/static/js/d3.v3.min.js:1
↓ 11 callersFunctionrun
Unified dispatcher for all execution modes. - ``batch_size`` set → batch mode (requires ``BatchExtractor``). - ``jobs > 1`` → parallel mode v
explainshell/extraction/runner.py:640
↓ 10 callersFunctionBe
(n,t)
explainshell/web/static/js/d3.v3.min.js:1
↓ 10 callersFunctiond
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 10 callersFunctiond3_svg_lineDot4
(a, b)
explainshell/web/static/js/d3.v3.js:3890
↓ 10 callersFunctionextract_text_from_lines
Build description text from line range [start, end] (1-indexed, inclusive). The first line is treated as the flag line. Remaining lines form the
explainshell/extraction/llm/response.py:95
↓ 10 callersFunctionmarkFunction
* Mark a function for special use by Sizzle * @param {Function} fn The function to mark
explainshell/web/static/js/jquery.js:3869
↓ 10 callersMethodrecord_batch
Record a batch outcome and flush to disk. If an entry with the same ``batch_idx`` already exists (e.g. from an earlier "submitted" re
explainshell/extraction/manifest.py:74
↓ 10 callersFunctionrun_collected
Like ``run``, but collects per-file results into a list.
explainshell/extraction/runner.py:690
↓ 10 callersMethodupdate_subcommand_mappings
Reconcile subcommand mappings using declared subcommands from LLM-extracted pages. For each parent manpage that has a non-empty ``subcommands
explainshell/store.py:564
↓ 9 callersFunction_make_manpage
( name: str, section: str, aliases: Sequence[tuple[str, int]] | None = None, distro: str = "ub
tests/test_caching_store.py:72
↓ 9 callersFunctiond3_layout_treeVisitAfter
(node, callback)
explainshell/web/static/js/d3.v3.js:5916
↓ 9 callersFunctiond3_selection
(groups)
explainshell/web/static/js/d3.v3.js:543
↓ 9 callersFunctiondu
(n,t)
explainshell/web/static/js/d3.v3.min.js:2
↓ 9 callersFunctionfilter_sections
Remove blacklisted top-level sections from manpage text. Returns (filtered_text, removal_counts).
explainshell/extraction/llm/text.py:114
↓ 9 callersFunctiongroup_work_items
Group work items into batches, respecting batch_size as a request count limit. Each work item stays whole (all its chunks in one batch). A batch
explainshell/extraction/runner.py:255
↓ 9 callersFunctionsanitize_option_fields
Fix common LLM mistakes in option fields. Returns (short, long, has_argument, positional, nested_cmd, prefix).
explainshell/extraction/llm/response.py:167
↓ 9 callersFunctionspecialparam
(text)
explainshell/web/static/js/es.js:77
↓ 8 callersFunctionD
(n,t)
explainshell/web/static/js/d3.v3.min.js:1
↓ 8 callersFunctionSizzle
( selector, context, results, seed )
explainshell/web/static/js/jquery.js:3891
↓ 8 callersFunction_get_metric
Read a dotted metric path, returning 0 if any segment is missing.
tests/evals/_common.py:97
↓ 8 callersFunction_make_manpage_from_source
Create a ParsedManpage from a source path like 'distro/release/1/name.1.gz'.
tests/test_manager.py:86
↓ 8 callersFunction_page_map
(summary: dict[str, Any])
tests/evals/_common.py:93
↓ 8 callersFunction_read_manifest
(path: str)
tests/extraction/test_manifest.py:13
↓ 8 callersFunction_write_report
Write report.json to the run directory.
explainshell/manager.py:418
↓ 8 callersFunctionassert
* Support testing using an element * @param {Function} fn Passed the created div and expects a boolean result
explainshell/web/static/js/jquery.js:3878
↓ 8 callersFunctionchunk_text
Split text into numbered chunks at section boundaries. Each chunk gets line numbers corresponding to the original text. If the text is small
explainshell/extraction/llm/text.py:196
↓ 8 callersFunctioncreate_app
Application factory.
explainshell/web/__init__.py:85
↓ 8 callersFunctiond3_interpolateNumber
(a, b)
explainshell/web/static/js/d3.v3.js:4685
↓ 8 callersFunctiond3_selection_each
(groups, callback)
explainshell/web/static/js/d3.v3.js:1020
↓ 8 callersFunctiond3_svg_lineLinear
(points)
explainshell/web/static/js/d3.v3.js:3753
↓ 8 callersMethodget_events
Return recent db_events, newest first. If *event* is given, only rows matching that event type are returned.
explainshell/store.py:324
↓ 8 callersFunctiongrouptext
(group)
explainshell/web/static/js/es.js:1013
↓ 8 callersFunctionh
(...e)
explainshell/web/static/js/highlight.min.js:46
next →1–100 of 2,183, ranked by callers