Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/idank/explainshell
/ functions
Functions
2,183 in github.com/idank/explainshell
⨍
Functions
2,183
◇
Types & classes
195
↳
Endpoints
100
↓ 286 callers
Method
call
(self, user_content: str)
explainshell/extraction/llm/providers/codex.py:42
↓ 128 callers
Method
add_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 callers
Function
e
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 107 callers
Function
$
(n,t,e)
explainshell/web/static/js/d3.v3.min.js:1
↓ 69 callers
Method
find_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 callers
Function
_make_raw
Build a minimal RawManpage for test use.
tests/test_store.py:12
↓ 60 callers
Method
exec
(e)
explainshell/web/static/js/highlight.min.js:133
↓ 52 callers
Function
_opt
( text: str = "", short: list[str] | None = None, long: list[str] | None = None, has_argument:
tests/extraction/test_postprocess.py:18
↓ 52 callers
Method
match
(self)
explainshell/matcher.py:822
↓ 51 callers
Method
create
Create a new (or open an existing) writable database and return a Store.
explainshell/store.py:128
↓ 51 callers
Function
jQuery
( selector, context )
explainshell/web/static/js/jquery.js:60
↓ 51 callers
Function
n
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 51 callers
Function
t
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 50 callers
Function
u
()
explainshell/web/static/js/d3.v3.min.js:1
↓ 47 callers
Function
_make_manpage
Helper to build a ParsedManpage with the conventional source path.
tests/test_store.py:29
↓ 47 callers
Function
r
(n,t)
explainshell/web/static/js/d3.v3.min.js:1
↓ 41 callers
Function
_make_batch
Build a fake Batch object matching openai.types.Batch shape.
tests/extraction/llm/test_openai_provider.py:24
↓ 41 callers
Method
add
(e)
explainshell/web/static/js/highlight.min.js:29
↓ 41 callers
Method
close
(self)
explainshell/store.py:134
↓ 41 callers
Function
range
(t0, t1, dt)
explainshell/web/static/js/d3.v3.js:7881
↓ 40 callers
Method
assertMatchSingle
(self, what, expectedmanpage, expectedresults)
tests/test_matcher.py:14
↓ 37 callers
Function
_make_prepared
Build a minimal PreparedFile for testing.
tests/extraction/test_runner.py:25
↓ 37 callers
Function
_temp_db
Yield a path to a fresh temp SQLite file, cleaned up on exit.
tests/test_manager.py:76
↓ 35 callers
Function
_make_raw
(sha256: str | None = None)
tests/test_manager.py:45
↓ 31 callers
Function
d3_functor
(v)
explainshell/web/static/js/d3.v3.js:1616
↓ 31 callers
Function
lt
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 26 callers
Method
classify
(self, gz_path: str)
explainshell/extraction/prefilter.py:133
↓ 25 callers
Function
_pick
(pool: list[str], rng: random.Random)
tools/loadtest.py:63
↓ 24 callers
Method
compile
()
explainshell/web/static/js/highlight.min.js:131
↓ 22 callers
Function
l
()
explainshell/web/static/js/d3.v3.min.js:1
↓ 21 callers
Function
i
()
explainshell/web/static/js/d3.v3.min.js:1
↓ 20 callers
Function
_make_classifier
( s: _FakeStore, *, overwrite: bool = False, filter_specs: list[tuple[str, str | None]] | None
tests/extraction/test_prefilter.py:54
↓ 20 callers
Function
dedup_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 callers
Function
next
()
explainshell/web/static/js/jquery.js:1915
↓ 19 callers
Function
postprocess
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 callers
Function
_make_extractor
Build a fake BatchExtractor with prepare/finalize/batch_provider.
tests/extraction/test_runner.py:66
↓ 18 callers
Function
_make_manpage
( name: str, section: str = "1", distro: str = "ubuntu", release: str = "26.04", aliases:
tests/test_manager.py:54
↓ 18 callers
Function
a
(n,t,e)
explainshell/web/static/js/d3.v3.min.js:1
↓ 17 callers
Method
addpoint
(x, y)
explainshell/web/static/js/es.js:263
↓ 17 callers
Function
f
()
explainshell/web/static/js/d3.v3.min.js:1
↓ 17 callers
Function
run_batch_collected
Like ``run_batch``, but collects per-file results into a list.
explainshell/extraction/runner.py:713
↓ 16 callers
Function
c
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 16 callers
Method
poll_batch
( self, client: OpenAI, job_id: str, poll_interval: int, stop_event: t
explainshell/extraction/llm/providers/openai.py:166
↓ 15 callers
Function
Ni
(n,t,e)
explainshell/web/static/js/d3.v3.min.js:2
↓ 15 callers
Function
_write
(path: Path, content: str = "content")
tests/test_postprocess_ubuntu_archive.py:23
↓ 15 callers
Function
d3_time_formatPad
(value, fill, width)
explainshell/web/static/js/d3.v3.js:8037
↓ 15 callers
Function
rescale
()
explainshell/web/static/js/d3.v3.js:1145
↓ 14 callers
Function
_make_batch_provider
Build a mock batch provider.
tests/extraction/test_runner.py:101
↓ 14 callers
Function
getAll
( context, tag )
explainshell/web/static/js/jquery.js:6352
↓ 13 callers
Method
_make_mp
( self, name: str, section: str = "1", *, extractor: str | None = None
tests/test_store.py:451
↓ 13 callers
Function
_make_result
(gz_path: str = "")
tests/extraction/test_runner.py:39
↓ 13 callers
Function
_make_src
Create a minimal source directory with man1/ and man8/.
tests/test_postprocess_ubuntu_archive.py:15
↓ 13 callers
Method
empty
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 callers
Function
get_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 callers
Function
interpolate
(from, to, direction, listener)
explainshell/web/static/js/d3.v3.js:2694
↓ 12 callers
Function
d3_eventCancel
()
explainshell/web/static/js/d3.v3.js:403
↓ 12 callers
Function
llm_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 callers
Method
log_event
Append an entry to the db_events log.
explainshell/store.py:315
↓ 12 callers
Method
mapping_score
Return the score of the mapping from *src* to *dst*, or None.
explainshell/store.py:443
↓ 12 callers
Function
normalize_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 callers
Function
on_result
(path: str, entry: ExtractionResult)
tools/experiments/eval_size_routing.py:99
↓ 11 callers
Function
_estimate_value_size
(value: object)
explainshell/caching_store.py:45
↓ 11 callers
Function
_make_manpage_with_extractor
( name: str, extractor: str, extraction_meta: dict | None = None, distro: str = "ubuntu",
tests/test_manager.py:1217
↓ 11 callers
Function
_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 callers
Function
_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 callers
Function
get_manpage_text
Run patched ``mandoc -T markdown <gz_path>`` to get markdown directly.
explainshell/extraction/llm/text.py:45
↓ 11 callers
Function
o
()
explainshell/web/static/js/d3.v3.min.js:1
↓ 11 callers
Function
run
Unified dispatcher for all execution modes. - ``batch_size`` set → batch mode (requires ``BatchExtractor``). - ``jobs > 1`` → parallel mode v
explainshell/extraction/runner.py:640
↓ 10 callers
Function
Be
(n,t)
explainshell/web/static/js/d3.v3.min.js:1
↓ 10 callers
Function
d
(n)
explainshell/web/static/js/d3.v3.min.js:1
↓ 10 callers
Function
d3_svg_lineDot4
(a, b)
explainshell/web/static/js/d3.v3.js:3890
↓ 10 callers
Function
extract_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 callers
Function
markFunction
* Mark a function for special use by Sizzle * @param {Function} fn The function to mark
explainshell/web/static/js/jquery.js:3869
↓ 10 callers
Method
record_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 callers
Function
run_collected
Like ``run``, but collects per-file results into a list.
explainshell/extraction/runner.py:690
↓ 10 callers
Method
update_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 callers
Function
_make_manpage
( name: str, section: str, aliases: Sequence[tuple[str, int]] | None = None, distro: str = "ub
tests/test_caching_store.py:72
↓ 9 callers
Function
d3_layout_treeVisitAfter
(node, callback)
explainshell/web/static/js/d3.v3.js:5916
↓ 9 callers
Function
d3_selection
(groups)
explainshell/web/static/js/d3.v3.js:543
↓ 9 callers
Function
du
(n,t)
explainshell/web/static/js/d3.v3.min.js:2
↓ 9 callers
Function
filter_sections
Remove blacklisted top-level sections from manpage text. Returns (filtered_text, removal_counts).
explainshell/extraction/llm/text.py:114
↓ 9 callers
Function
group_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 callers
Function
sanitize_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 callers
Function
specialparam
(text)
explainshell/web/static/js/es.js:77
↓ 8 callers
Function
D
(n,t)
explainshell/web/static/js/d3.v3.min.js:1
↓ 8 callers
Function
Sizzle
( selector, context, results, seed )
explainshell/web/static/js/jquery.js:3891
↓ 8 callers
Function
_get_metric
Read a dotted metric path, returning 0 if any segment is missing.
tests/evals/_common.py:97
↓ 8 callers
Function
_make_manpage_from_source
Create a ParsedManpage from a source path like 'distro/release/1/name.1.gz'.
tests/test_manager.py:86
↓ 8 callers
Function
_page_map
(summary: dict[str, Any])
tests/evals/_common.py:93
↓ 8 callers
Function
_read_manifest
(path: str)
tests/extraction/test_manifest.py:13
↓ 8 callers
Function
_write_report
Write report.json to the run directory.
explainshell/manager.py:418
↓ 8 callers
Function
assert
* 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 callers
Function
chunk_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 callers
Function
create_app
Application factory.
explainshell/web/__init__.py:85
↓ 8 callers
Function
d3_interpolateNumber
(a, b)
explainshell/web/static/js/d3.v3.js:4685
↓ 8 callers
Function
d3_selection_each
(groups, callback)
explainshell/web/static/js/d3.v3.js:1020
↓ 8 callers
Function
d3_svg_lineLinear
(points)
explainshell/web/static/js/d3.v3.js:3753
↓ 8 callers
Method
get_events
Return recent db_events, newest first. If *event* is given, only rows matching that event type are returned.
explainshell/store.py:324
↓ 8 callers
Function
grouptext
(group)
explainshell/web/static/js/es.js:1013
↓ 8 callers
Function
h
(...e)
explainshell/web/static/js/highlight.min.js:46
next →
1–100 of 2,183, ranked by callers