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
Method
test_reason_gate_skipped_under_threshold
(self, mock_collect)
tests/test_manager.py:437
Method
test_reason_required_for_bulk_extraction
(self, mock_collect)
tests/test_manager.py:396
Method
test_reasoning_effort_passed
reasoning_effort='high' should pass -c model_reasoning_effort.
tests/extraction/llm/test_codex_provider.py:163
Method
test_record_replaces_existing_entry
A second record_batch with the same batch_idx replaces the first.
tests/extraction/test_manifest.py:138
Method
test_records_incrementally
(self)
tests/extraction/test_manifest.py:55
Method
test_redirect_first_word_of_command
(self)
tests/test_matcher.py:599
Function
test_regular_files_copied
(tmp_path: Path)
tests/test_postprocess_ubuntu_archive.py:27
Method
test_reimport_logs_lost_symlink_mapping
Re-importing a canonical logs a debug message about lost non-alias mappings.
tests/test_store.py:644
Method
test_reimport_no_log_when_only_aliases
Re-importing when all mappings are aliases produces no non-alias log.
tests/test_store.py:666
Method
test_rejects_non_gz_file
(self)
tests/test_manager.py:3212
Method
test_release_index
(self)
tests/test_web_views.py:519
Method
test_release_index_unknown_distro
(self)
tests/test_web_views.py:525
Method
test_removes_blacklisted_sections
(self)
tests/extraction/llm/test_text.py:304
Method
test_removes_stale_mappings
Reconciliation removes subcommand mappings no longer declared by parent.
tests/test_store.py:553
Method
test_removes_subsections_under_blacklisted_top_level
(self)
tests/extraction/llm/test_text.py:325
Method
test_report_schema
report.json has the expected top-level fields and values.
tests/test_manager.py:2664
Method
test_reports_issues
Insert an orphaned mapping so db-check has something to report.
tests/test_manager.py:2468
Method
test_reset_current_option_if_argument_taken
(self)
tests/test_matcher.py:186
Method
test_returns_distinct_sections
(self, store)
tests/test_store.py:334
Method
test_returns_distro_release_pairs
(self, store)
tests/test_store.py:281
Method
test_returns_extractor_and_meta_for_all_rows
(self, store)
tests/test_store.py:173
Method
test_returns_false_for_missing_source
(self, store)
tests/test_store.py:168
Method
test_returns_fresh_list_from_cache
( self, cached_store_factory: _CachedStoreFactory )
tests/test_caching_store.py:91
Method
test_returns_response_and_usage
(self)
tests/extraction/llm/test_codex_provider.py:130
Method
test_returns_text_and_generator
(self, store)
tests/test_store.py:302
Method
test_returns_true_for_existing_source
(self, store)
tests/test_store.py:162
Method
test_same_name_different_distro_succeeds
Same name+section in different distros should be allowed.
tests/test_store.py:234
Method
test_same_name_different_section_succeeds
Same name in different sections within same distro should be allowed.
tests/test_store.py:241
Method
test_same_name_section_distro_different_source_raises
Two manpages with same name+section+distro but different source should raise.
tests/test_store.py:216
Function
test_same_section_symlink_preserved
(tmp_path: Path)
tests/test_postprocess_ubuntu_archive.py:42
Method
test_same_source_reimport_succeeds
Re-importing the same source should replace the old entry.
tests/test_store.py:210
Method
test_section_8
(self)
tests/test_web_views.py:577
Method
test_section_among_multiple
When multiple sections exist, the requested one should come first.
tests/test_store.py:115
Method
test_section_filter
Specifying a section should return that section first.
tests/test_store.py:89
Method
test_section_filter_first_result_fully_loaded
The first result should be fully populated (have options data).
tests/test_store.py:99
Method
test_section_index
(self)
tests/test_web_views.py:533
Method
test_self_symlink_falls_through
(self, _h, _il, _rp, _gs)
tests/extraction/test_prefilter.py:153
Method
test_sequential_fallback
No batch_size and jobs=1 runs sequentially.
tests/extraction/test_runner.py:601
Method
test_sequential_unexpected_exception_aborts_run
Sequential mode also propagates unexpected extractor exceptions as fatal.
tests/extraction/test_runner.py:723
Method
test_shadowed_duplicate
Two manpages with same name+section+distro should be flagged.
tests/test_db_check.py:89
Method
test_short_subset_with_cross_ref
Case 1 from ps: Z ⊂ {-M, Z} — subset mentions '-M'.
tests/extraction/test_postprocess.py:34
Method
test_show_distros
(self)
tests/test_manager.py:2231
Method
test_show_events_date_format
(self)
tests/test_manager.py:2336
Method
test_show_events_empty
(self)
tests/test_manager.py:2329
Method
test_show_events_extraction
(self)
tests/test_manager.py:2361
Method
test_show_events_extraction_with_reason
(self)
tests/test_manager.py:2392
Method
test_show_events_limit
(self)
tests/test_manager.py:2417
Method
test_show_manpage
(self)
tests/test_manager.py:2238
Method
test_show_manpage_distro_release
(self)
tests/test_manager.py:2247
Method
test_show_manpage_distro_without_release
(self)
tests/test_manager.py:2273
Method
test_show_manpage_not_found
(self)
tests/test_manager.py:2293
Method
test_show_manpage_release_without_distro
(self)
tests/test_manager.py:2283
Method
test_show_manpages
(self)
tests/test_manager.py:2311
Method
test_show_mappings
(self)
tests/test_manager.py:2321
Method
test_show_sections
(self)
tests/test_manager.py:2302
Method
test_show_stats
(self)
tests/test_manager.py:2223
Method
test_sigil_not_stripped_when_prefix_present
(self)
tests/extraction/llm/test_response.py:452
Method
test_sigil_stripped_from_positional_name
(self)
tests/extraction/llm/test_response.py:446
Method
test_single_char_flag_not_in_prose
Bare 'k' must not match inside words like 'work' or 'make'.
tests/extraction/test_postprocess.py:253
Method
test_single_char_flag_standalone
Bare 'k' as a standalone token does match.
tests/extraction/test_postprocess.py:258
Method
test_single_chunk_files_even_split
4 single-chunk files with batch_size=2 → 2 batches of 2.
tests/extraction/test_runner.py:1048
Method
test_single_count_p90_fallback
statistics.quantiles needs >= 2 points; single point falls back.
tests/test_manager.py:2790
Method
test_single_file_many_chunks
One file with many chunks → single batch.
tests/extraction/test_runner.py:1082
Method
test_single_line
(self)
tests/extraction/llm/test_text.py:276
Method
test_single_option
(self)
tests/extraction/test_postprocess.py:243
Method
test_single_turn
(self)
tests/extraction/llm/test_codex_provider.py:44
Method
test_single_unsplittable_line
(self)
tests/extraction/llm/test_text.py:153
Method
test_size_filter_recorded_in_report
( self, mock_source, mock_collect, mock_make_ext, mock_run, _m
tests/test_manager.py:3166
Method
test_skipped_files_get_entries
Files that fail prepare() with SkippedExtraction get SKIPPED entries.
tests/extraction/test_runner.py:355
Method
test_skips_leading_blank_body_lines
(self)
tests/extraction/llm/test_response.py:135
Method
test_skips_none_file_ids
(self, _cls: MagicMock)
tests/extraction/llm/test_openai_provider.py:860
Method
test_small_and_large_mutually_exclusive
(self)
tests/test_manager.py:3139
Method
test_small_only_keeps_files_at_or_below_threshold
( self, mock_source, mock_collect, mock_make_ext, mock_run, _m
tests/test_manager.py:3050
Method
test_small_only_passes_at_threshold
(self, _h, _gs, _il)
tests/extraction/test_prefilter.py:99
Method
test_small_only_skips_large_file
(self, _gs, _il)
tests/extraction/test_prefilter.py:88
Method
test_small_text_no_split
(self)
tests/extraction/llm/test_text.py:126
Method
test_stale_subcommand_mapping_missing_parent
Subcommand mapping whose parent doesn't exist should be an error.
tests/test_db_check.py:157
Method
test_stale_subcommand_mapping_not_declared
Subcommand mapping where parent doesn't declare the subcommand should warn.
tests/test_db_check.py:174
Method
test_stale_symlink_deletes_db_row
(self)
tests/extraction/test_prefilter.py:327
Method
test_stall_cancels_and_returns_partial
After stall_timeout with no progress, the batch is cancelled and the cancelled batch is returned for partial result collection.
tests/extraction/llm/test_openai_provider.py:56
Method
test_standalone_manifest_cleaned_up
_write_report removes batch-manifest.json if it exists.
tests/test_manager.py:2718
Function
test_stats_counts
(tmp_path: Path)
tests/test_postprocess_ubuntu_archive.py:183
Method
test_stats_only_from_successful_files
Token counts in BatchResult.stats come only from successful finalization.
tests/extraction/test_runner.py:124
Method
test_stop_event_during_error_backoff
A stop_event set during error backoff should raise KeyboardInterrupt.
tests/extraction/llm/test_openai_provider.py:638
Method
test_store_is_app_scoped
(self)
tests/test_web_views.py:213
Method
test_strips_backtick_fence_no_lang
(self)
tests/extraction/llm/test_response.py:35
Method
test_strips_blockquote_prefix
(self)
tests/extraction/llm/test_response.py:120
Method
test_strips_both_leading_and_trailing_blank_lines
(self)
tests/extraction/llm/test_response.py:159
Method
test_strips_markdown_fences
(self)
tests/extraction/llm/test_response.py:30
Method
test_strips_multiple_trailing_blank_lines
(self)
tests/extraction/llm/test_response.py:147
Method
test_strips_parent_prefix
(self)
tests/extraction/llm/test_extractor.py:387
Method
test_strips_trailing_blank_body_lines
(self)
tests/extraction/llm/test_response.py:142
Method
test_subcommands
(self)
tests/test_matcher.py:355
Method
test_submit_batch_uses_azure_deployment_name
( self, mock_openai_cls: MagicMock )
tests/extraction/llm/test_openai_provider.py:727
Method
test_subset_and_exact_dedup_combined
Both subset and exact-match are handled in one pass.
tests/extraction/test_postprocess.py:320
Method
test_subset_dedup_runs_by_default
(self)
tests/extraction/test_postprocess.py:313
Method
test_subset_keeps_longer_description
When the subset entry has a longer description, transfer it.
tests/extraction/test_postprocess.py:57
Method
test_subset_no_cross_ref_long_flags
Subset with long flag, no cross-ref -> not merged.
tests/extraction/test_postprocess.py:164
Method
test_subset_no_cross_ref_not_merged
False positive guard: no mention of extra flags -> skip merge. Prevents merges like ps ``e`` (show env) ⊂ ``{-A, -e}`` (select all) w
tests/extraction/test_postprocess.py:152
Method
test_subset_picks_closest_superset
With competing supersets, merge into the closest (fewest extra flags).
tests/extraction/test_postprocess.py:103
← previous
next →
2,001–2,100 of 2,183, ranked by callers