SYMBOL INDEX (338 symbols across 38 files) FILE: bin/app.py class SkipFlaskLogger (line 65) | class SkipFlaskLogger(object): method filter (line 66) | def filter(self, record): function _is_html_needed (line 96) | def _is_html_needed(user_agent): function is_result_a_script (line 103) | def is_result_a_script(query): function send_static (line 108) | def send_static(path): function send_favicon (line 117) | def send_favicon(): function send_malformed (line 126) | def send_malformed(): function log_query (line 135) | def log_query(ip_addr, found, topic, user_agent): function get_request_ip (line 144) | def get_request_ip(req): function get_answer_language (line 165) | def get_answer_language(request): function _proxy (line 212) | def _proxy(*args, **kwargs): function answer (line 256) | def answer(topic=None): FILE: bin/release.py function run (line 17) | def run(args): FILE: lib/adapter/adapter.py class AdapterMC (line 15) | class AdapterMC(type): method __repr__ (line 21) | def __repr__(cls): class Adapter (line 27) | class Adapter(with_metaclass(AdapterMC, object)): method _class_repr (line 54) | def _class_repr(cls): method __init__ (line 57) | def __init__(self): method name (line 61) | def name(cls): method _get_list (line 68) | def _get_list(self, prefix=None): method get_list (line 71) | def get_list(self, prefix=None): method is_found (line 82) | def is_found(self, topic): method is_cache_needed (line 89) | def is_cache_needed(self): method _format_page (line 97) | def _format_page(text): method _get_page (line 107) | def _get_page(self, topic, request_options=None): method _get_output_format (line 113) | def _get_output_format(self, topic): method _get_filetype (line 125) | def _get_filetype(topic): method get_page_dict (line 131) | def get_page_dict(self, topic, request_options=None): method local_repository_location (line 162) | def local_repository_location(cls, cheat_sheets_location=False): method repository_url (line 212) | def repository_url(cls): method fetch_command (line 219) | def fetch_command(cls): method update_command (line 235) | def update_command(cls): method current_state_command (line 256) | def current_state_command(cls): method save_state (line 276) | def save_state(cls, state): method get_state (line 286) | def get_state(cls): method get_updates_list_command (line 300) | def get_updates_list_command(cls): method get_updates_list (line 309) | def get_updates_list(cls, updated_files_list): function all_adapters (line 327) | def all_adapters(as_dict=False): function adapter_by_name (line 343) | def adapter_by_name(name): FILE: lib/adapter/cheat_cheat.py class Cheat (line 13) | class Cheat(GitRepositoryAdapter): FILE: lib/adapter/cheat_sheets.py function _remove_initial_underscore (line 15) | def _remove_initial_underscore(filename): function _sanitize_dirnames (line 21) | def _sanitize_dirnames(filename, restore=False): class CheatSheets (line 42) | class CheatSheets(GitRepositoryAdapter): method _get_list (line 52) | def _get_list(self, prefix=None): method _get_page (line 75) | def _get_page(self, topic, request_options=None): class CheatSheetsDir (line 92) | class CheatSheetsDir(CheatSheets): method _get_list (line 105) | def _get_list(self, prefix=None): method _get_page (line 121) | def _get_page(self, topic, request_options=None): method is_found (line 136) | def is_found(self, topic): FILE: lib/adapter/cmd.py function _get_abspath (line 12) | def _get_abspath(path): class CommandAdapter (line 25) | class CommandAdapter(Adapter): method _get_command (line 30) | def _get_command(self, topic, request_options=None): method _get_page (line 33) | def _get_page(self, topic, request_options=None): class Fosdem (line 48) | class Fosdem(CommandAdapter): class Translation (line 71) | class Translation(CommandAdapter): method _get_page (line 78) | def _get_page(self, topic, request_options=None): class AdapterRfc (line 92) | class AdapterRfc(CommandAdapter): method _get_command (line 103) | def _get_command(self, topic, request_options=None): method _get_list (line 114) | def _get_list(self, prefix=None): method is_found (line 117) | def is_found(self, topic): class AdapterOeis (line 121) | class AdapterOeis(CommandAdapter): method _get_filetype (line 133) | def _get_filetype(topic): method _get_command (line 139) | def _get_command(self, topic, request_options=None): method is_found (line 158) | def is_found(self, topic): class AdapterChmod (line 162) | class AdapterChmod(CommandAdapter): method _get_command (line 173) | def _get_command(self, topic, request_options=None): method is_found (line 184) | def is_found(self, topic): FILE: lib/adapter/common.py class Adapter (line 1) | class Adapter(object): class cheatAdapter (line 5) | class cheatAdapter(Adapter): FILE: lib/adapter/git_adapter.py function _get_filenames (line 11) | def _get_filenames(path): class RepositoryAdapter (line 15) | class RepositoryAdapter(Adapter): method _get_list (line 21) | def _get_list(self, prefix=None): method _get_page (line 43) | def _get_page(self, topic, request_options=None): class GitRepositoryAdapter (line 58) | class GitRepositoryAdapter(RepositoryAdapter): # pylint: disable=abstra... method fetch_command (line 65) | def fetch_command(cls): method update_command (line 89) | def update_command(cls): method current_state_command (line 113) | def current_state_command(cls): method save_state (line 136) | def save_state(cls, state): method get_state (line 146) | def get_state(cls): method get_updates_list_command (line 160) | def get_updates_list_command(cls): FILE: lib/adapter/internal.py class InternalPages (line 49) | class InternalPages(Adapter): method __init__ (line 54) | def __init__(self, get_topic_type=None, get_topics_list=None): method _get_stat (line 59) | def _get_stat(self): method get_list (line 70) | def get_list(prefix=None): method _get_list_answer (line 73) | def _get_list_answer(self, topic, request_options=None): method _get_page (line 90) | def _get_page(self, topic, request_options=None): method is_found (line 108) | def is_found(self, topic): class UnknownPages (line 112) | class UnknownPages(InternalPages): method get_list (line 118) | def get_list(prefix=None): method is_found (line 122) | def is_found(topic): method _get_page (line 125) | def _get_page(self, topic, request_options=None): class Search (line 152) | class Search(Adapter): method get_list (line 159) | def get_list(prefix=None): method is_found (line 162) | def is_found(self, topic): FILE: lib/adapter/latenz.py class Latenz (line 16) | class Latenz(GitRepositoryAdapter): method _get_page (line 25) | def _get_page(self, topic, request_options=None): method _get_list (line 31) | def _get_list(self, prefix=None): method is_found (line 34) | def is_found(self, topic): FILE: lib/adapter/learnxiny.py class LearnXinY (line 18) | class LearnXinY(GitRepositoryAdapter): method __init__ (line 28) | def __init__(self): method _get_page (line 32) | def _get_page(self, topic, request_options=None): method _get_list (line 42) | def _get_list(self, prefix=None): method is_found (line 51) | def is_found(self, topic): class LearnXYAdapter (line 66) | class LearnXYAdapter(object): method __init__ (line 80) | def __init__(self): method _is_block_separator (line 93) | def _is_block_separator(self, before, now, after): method _cut_block (line 109) | def _cut_block(self, block, start_block=False): method _read_cheatsheet (line 120) | def _read_cheatsheet(self): method _extract_blocks (line 142) | def _extract_blocks(self): method is_valid (line 171) | def is_valid(self, name): method get_list (line 181) | def get_list(self, prefix=None): method get_page (line 189) | def get_page(self, name, partial=False): class LearnAwkAdapter (line 227) | class LearnAwkAdapter(LearnXYAdapter): class LearnBashAdapter (line 235) | class LearnBashAdapter(LearnXYAdapter): class LearnBfAdapter (line 243) | class LearnBfAdapter(LearnXYAdapter): class LearnCAdapter (line 251) | class LearnCAdapter(LearnXYAdapter): class LearnChapelAdapter (line 259) | class LearnChapelAdapter(LearnXYAdapter): class LearnClojureAdapter (line 267) | class LearnClojureAdapter(LearnXYAdapter): method _is_block_separator (line 275) | def _is_block_separator(self, before, now, after): method _cut_block (line 289) | def _cut_block(block, start_block=False): class LearnCoffeeScriptAdapter (line 299) | class LearnCoffeeScriptAdapter(LearnXYAdapter): class LearnCppAdapter (line 307) | class LearnCppAdapter(LearnXYAdapter): method _is_block_separator (line 318) | def _is_block_separator(self, before, now, after): method _cut_block (line 335) | def _cut_block(block, start_block=False): class LearnCsharpAdapter (line 346) | class LearnCsharpAdapter(LearnXYAdapter): class LearnDAdapter (line 354) | class LearnDAdapter(LearnXYAdapter): class LearnDartAdapter (line 362) | class LearnDartAdapter(LearnXYAdapter): class LearnFactorAdapter (line 370) | class LearnFactorAdapter(LearnXYAdapter): class LearnForthAdapter (line 378) | class LearnForthAdapter(LearnXYAdapter): class LearnFsharpAdapter (line 386) | class LearnFsharpAdapter(LearnXYAdapter): class LearnElispAdapter (line 394) | class LearnElispAdapter(LearnXYAdapter): class LearnElixirAdapter (line 402) | class LearnElixirAdapter(LearnXYAdapter): method _is_block_separator (line 413) | def _is_block_separator(self, before, now, after): method _cut_block (line 430) | def _cut_block(block, start_block=False): class LearnElmAdapter (line 439) | class LearnElmAdapter(LearnXYAdapter): method _is_block_separator (line 450) | def _is_block_separator(self, before, now, after): method _cut_block (line 468) | def _cut_block(block, start_block=False): class LearnErlangAdapter (line 477) | class LearnErlangAdapter(LearnXYAdapter): method _is_block_separator (line 485) | def _is_block_separator(self, before, now, after): method _cut_block (line 497) | def _cut_block(block, start_block=False): class LearnFortranAdapter (line 506) | class LearnFortranAdapter(LearnXYAdapter): class LearnGoAdapter (line 514) | class LearnGoAdapter(LearnXYAdapter): class LearnGroovyAdapter (line 522) | class LearnGroovyAdapter(LearnXYAdapter): class LearnJavaAdapter (line 530) | class LearnJavaAdapter(LearnXYAdapter): class LearnJavaScriptAdapter (line 538) | class LearnJavaScriptAdapter(LearnXYAdapter): method _is_block_separator (line 549) | def _is_block_separator(self, before, now, after): method _cut_block (line 564) | def _cut_block(block, start_block=False): class LearnJuliaAdapter (line 573) | class LearnJuliaAdapter(LearnXYAdapter): method _is_block_separator (line 581) | def _is_block_separator(self, before, now, after): method _cut_block (line 593) | def _cut_block(block, start_block=False): class LearnHaskellAdapter (line 602) | class LearnHaskellAdapter(LearnXYAdapter): method _is_block_separator (line 613) | def _is_block_separator(self, before, now, after): method _cut_block (line 628) | def _cut_block(block, start_block=False): class LearnLispAdapter (line 637) | class LearnLispAdapter(LearnXYAdapter): class LearnLuaAdapter (line 645) | class LearnLuaAdapter(LearnXYAdapter): method _is_block_separator (line 658) | def _is_block_separator(self, before, now, after): method _cut_block (line 672) | def _cut_block(block, start_block=False): class LearnMathematicaAdapter (line 681) | class LearnMathematicaAdapter(LearnXYAdapter): class LearnMatlabAdapter (line 689) | class LearnMatlabAdapter(LearnXYAdapter): class LearnOctaveAdapter (line 697) | class LearnOctaveAdapter(LearnXYAdapter): class LearnKotlinAdapter (line 705) | class LearnKotlinAdapter(LearnXYAdapter): method _is_block_separator (line 713) | def _is_block_separator(self, before, now, after): method _cut_block (line 725) | def _cut_block(block, start_block=False): class LearnObjectiveCAdapter (line 734) | class LearnObjectiveCAdapter(LearnXYAdapter): class LearnOCamlAdapter (line 742) | class LearnOCamlAdapter(LearnXYAdapter): method _is_block_separator (line 753) | def _is_block_separator(self, before, now, after): method _cut_block (line 769) | def _cut_block(block, start_block=False): class LearnPerlAdapter (line 778) | class LearnPerlAdapter(LearnXYAdapter): method _is_block_separator (line 792) | def _is_block_separator(self, before, now, after): method _cut_block (line 803) | def _cut_block(block, start_block=False): class LearnPerl6Adapter (line 815) | class LearnPerl6Adapter(LearnXYAdapter): class LearnPHPAdapter (line 823) | class LearnPHPAdapter(LearnXYAdapter): method _is_block_separator (line 831) | def _is_block_separator(self, before, now, after): method _cut_block (line 844) | def _cut_block(block, start_block=False): class LearnPythonAdapter (line 848) | class LearnPythonAdapter(LearnXYAdapter): method _is_block_separator (line 856) | def _is_block_separator(self, before, now, after): method _cut_block (line 868) | def _cut_block(block, start_block=False): class LearnPython3Adapter (line 877) | class LearnPython3Adapter(LearnXYAdapter): class LearnRAdapter (line 885) | class LearnRAdapter(LearnXYAdapter): class LearnRacketAdapter (line 893) | class LearnRacketAdapter(LearnXYAdapter): class LearnRubyAdapter (line 901) | class LearnRubyAdapter(LearnXYAdapter): method _is_block_separator (line 914) | def _is_block_separator(self, before, now, after): method _cut_block (line 926) | def _cut_block(block, start_block=False): class LearnRustAdapter (line 935) | class LearnRustAdapter(LearnXYAdapter): class LearnSolidityAdapter (line 943) | class LearnSolidityAdapter(LearnXYAdapter): class LearnSwiftAdapter (line 951) | class LearnSwiftAdapter(LearnXYAdapter): class LearnTclAdapter (line 959) | class LearnTclAdapter(LearnXYAdapter): class LearnTcshAdapter (line 967) | class LearnTcshAdapter(LearnXYAdapter): class LearnVisualBasicAdapter (line 975) | class LearnVisualBasicAdapter(LearnXYAdapter): class LearnCMakeAdapter (line 983) | class LearnCMakeAdapter(LearnXYAdapter): class LearnNimAdapter (line 991) | class LearnNimAdapter(LearnXYAdapter): class LearnGitAdapter (line 999) | class LearnGitAdapter(LearnXYAdapter): class LearnLatexAdapter (line 1007) | class LearnLatexAdapter(LearnXYAdapter): FILE: lib/adapter/question.py class Question (line 42) | class Question(UpstreamAdapter): method _get_page (line 57) | def _get_page(self, topic, request_options=None): method get_list (line 130) | def get_list(self, prefix=None): method is_found (line 133) | def is_found(self, topic): FILE: lib/adapter/rosetta.py class Rosetta (line 19) | class Rosetta(GitRepositoryAdapter): method __init__ (line 31) | def __init__(self): method _load_rosetta_code_names (line 36) | def _load_rosetta_code_names(): method _rosetta_get_list (line 54) | def _rosetta_get_list(self, query, task=None): method _parse_query (line 76) | def _parse_query(query): method _get_task (line 83) | def _get_task(self, lang, query): method _starting_page (line 122) | def _starting_page(self, query): method _get_page (line 127) | def _get_page(self, topic, request_options=None): method _get_list (line 144) | def _get_list(self, prefix=None): method get_list (line 147) | def get_list(self, prefix=None): method is_found (line 153) | def is_found(self, _): FILE: lib/adapter/tldr.py class Tldr (line 18) | class Tldr(GitRepositoryAdapter): method _format_page (line 31) | def _format_page(text): method _get_page (line 70) | def _get_page(self, topic, request_options=None): method get_updates_list (line 96) | def get_updates_list(cls, updated_files_list): FILE: lib/adapter/upstream.py function _are_you_offline (line 19) | def _are_you_offline(): class UpstreamAdapter (line 40) | class UpstreamAdapter(Adapter): method _get_page (line 55) | def _get_page(self, topic, request_options=None): method _get_list (line 74) | def _get_list(self, prefix=None): FILE: lib/cache.py function put (line 34) | def put(key, value): function get (line 49) | def get(key): function delete (line 67) | def delete(key): FILE: lib/cheat_wrapper.py function _add_section_name (line 23) | def _add_section_name(query): function cheat_wrapper (line 36) | def cheat_wrapper(query, request_options=None, output_format="ansi"): FILE: lib/cheat_wrapper_test.py function test_header_split (line 34) | def test_header_split(): FILE: lib/config.py function _config_locations (line 57) | def _config_locations(): class Config (line 157) | class Config(dict): method _absolute_path (line 163) | def _absolute_path(self, val): method __init__ (line 168) | def __init__(self, *args, **kwargs): method __setitem__ (line 172) | def __setitem__(self, key, val): method update (line 177) | def update(self, *args, **kwargs): function _load_config_from_environ (line 192) | def _load_config_from_environ(config): function _get_nested (line 215) | def _get_nested(data, key): function _load_config_from_file (line 246) | def _load_config_from_file(default_config, filename): FILE: lib/fetch.py function _log (line 28) | def _log(*message): function _run_cmd (line 38) | def _run_cmd(cmd): function fetch_all (line 47) | def fetch_all(skip_existing=True): function _update_adapter (line 121) | def _update_adapter(adptr): function update_all (line 190) | def update_all(): function update_by_name (line 207) | def update_by_name(name): function _show_usage (line 214) | def _show_usage(): function main (line 233) | def main(args): FILE: lib/fmt/comments.py function _language_name (line 43) | def _language_name(name): function _remove_empty_lines_from_beginning (line 47) | def _remove_empty_lines_from_beginning(lines): function _remove_empty_lines_from_end (line 55) | def _remove_empty_lines_from_end(lines): function _cleanup_lines (line 63) | def _cleanup_lines(lines): function _line_type (line 85) | def _line_type(line): function _classify_lines (line 115) | def _classify_lines(lines): function _unindent_code (line 154) | def _unindent_code(line, shift=0): function _wrap_lines (line 164) | def _wrap_lines(lines_classes, unindent_code=False): function _run_vim_script (line 185) | def _run_vim_script(script_lines, text_lines): function _commenting_script (line 217) | def _commenting_script(lines_blocks, filetype): function _beautify (line 247) | def _beautify(text, filetype, add_comments=False, remove_text=False): function code_blocks (line 277) | def code_blocks(text, wrap_lines=False, unindent_code=False): function beautify (line 295) | def beautify(text, lang, options): function __main__ (line 336) | def __main__(): FILE: lib/fmt/internal.py function _reverse_palette (line 30) | def _reverse_palette(code): function _back_color (line 34) | def _back_color(code): function colorize_internal (line 45) | def colorize_internal(text, palette_number=1): function colorize_internal_firstpage_v1 (line 97) | def colorize_internal_firstpage_v1(answer): FILE: lib/fmt/markdown.py function format_text (line 15) | def format_text(text, config=None, highlighter=None): function _split_into_paragraphs (line 24) | def _split_into_paragraphs(text): function _colorize (line 28) | def _colorize(text): function _format_section (line 45) | def _format_section(section_text, config=None, highlighter=None): FILE: lib/frontend/ansi.py function visualize (line 44) | def visualize(answer_data, request_options): function remove_ansi (line 57) | def remove_ansi(sometext): function _limited_answer (line 64) | def _limited_answer(answer): function _colorize_ansi_answer (line 76) | def _colorize_ansi_answer( function _visualize (line 126) | def _visualize(answers, request_options, search_mode=False): FILE: lib/frontend/html.py function visualize (line 37) | def visualize(answer_data, request_options): function _github_button (line 56) | def _github_button(topic_type): function _render_html (line 77) | def _render_html( FILE: lib/globals.py function fatal (line 13) | def fatal(text): function error (line 23) | def error(text): function log (line 33) | def log(text): FILE: lib/languages_data.py function rewrite_editor_section_name (line 227) | def rewrite_editor_section_name(section_name): function get_lexer_name (line 262) | def get_lexer_name(section_name): FILE: lib/limits.py function _time_caps (line 25) | def _time_caps(minutes, hours, days): class Limits (line 33) | class Limits(object): method __init__ (line 42) | def __init__(self): method _log_visit (line 57) | def _log_visit(self, interval, ip_address): method _limit_exceeded (line 62) | def _limit_exceeded(self, interval, ip_address): method _get_limit (line 67) | def _get_limit(self, interval): method _report_excessive_visits (line 70) | def _report_excessive_visits(self, interval, ip_address): method check_ip (line 75) | def check_ip(self, ip_address): method reset (line 93) | def reset(self): method _clear_counters_if_needed (line 100) | def _clear_counters_if_needed(self): FILE: lib/options.py function parse_args (line 6) | def parse_args(args): FILE: lib/panela/colors.py function rgb_from_str (line 10) | def rgb_from_str(s): function find_nearest_color (line 16) | def find_nearest_color(hex_color): FILE: lib/panela/panela_colors.py function color_mapping (line 33) | def color_mapping(clr): class Point (line 39) | class Point(object): method __init__ (line 44) | def __init__(self, char=None, foreground=None, background=None): class Panela (line 50) | class Panela: method __init__ (line 86) | def __init__(self, x=80, y=25, panela=None, field=None): method in_field (line 104) | def in_field(self, col, row): method copy (line 119) | def copy(self, x1, y1, x2, y2): method cut (line 140) | def cut(self, x1, y1, x2, y2): method extend (line 164) | def extend(self, cols=None, rows=None): method crop (line 179) | def crop(self, left=None, right=None, top=None, bottom=None): method paste (line 210) | def paste(self, panela, x1, y1, extend=False, transparence=False): method strip (line 249) | def strip(self): method put_point (line 291) | def put_point(self, col, row, char=None, color=None, background=None): method put_string (line 311) | def put_string(self, col, row, s=None, color=None, background=None): method put_line (line 319) | def put_line(self, x1, y1, x2, y2, char=None, color=None, background=N... method paint (line 406) | def paint( method put_rectangle (line 471) | def put_rectangle( method put_circle (line 501) | def put_circle(self, x0, y0, radius, char=None, color=None, background... method read_ansi (line 558) | def read_ansi(self, seq, x=0, y=0, transparence=True): method __str__ (line 578) | def __str__(self): class Template (line 612) | class Template(object): method __init__ (line 613) | def __init__(self): method _process_line (line 637) | def _process_line(self, line): method read (line 643) | def read(self, filename): method apply_mask (line 662) | def apply_mask(self): method show (line 678) | def show(self): function main (line 686) | def main(): FILE: lib/post.py function _save_cheatsheet (line 16) | def _save_cheatsheet(topic_name, cheatsheet): function process_post_request (line 31) | def process_post_request(req, topic): FILE: lib/postprocessing.py function postprocess (line 5) | def postprocess(answer, keyword, options, request_options=None): function _answer_add_comments (line 13) | def _answer_add_comments(answer, request_options=None): function _answer_filter_by_keyword (line 36) | def _answer_filter_by_keyword(answer, keyword, options, request_options=... function _filter_by_keyword (line 41) | def _filter_by_keyword(answer, keyword, options): FILE: lib/routing.py class Router (line 25) | class Router(object): method __init__ (line 34) | def __init__(self): method get_topics_list (line 63) | def get_topics_list(self, skip_dirs=False, skip_internal=False): method get_topic_type (line 86) | def get_topic_type(self, topic: str) -> List[str]: method _get_page_dict (line 113) | def _get_page_dict(self, query, topic_type, request_options=None): method handle_if_random_request (line 121) | def handle_if_random_request(self, topic): method get_answers (line 168) | def get_answers( FILE: lib/search.py function _limited_entry (line 28) | def _limited_entry(): function _parse_options (line 37) | def _parse_options(options): function match (line 51) | def match(paragraph, keyword, options=None, options_dict=None): function find_answers_by_keyword (line 88) | def find_answers_by_keyword(directory, keyword, options="", request_opti... FILE: lib/standalone.py function show_usage (line 23) | def show_usage(): function parse_cmdline (line 41) | def parse_cmdline(args): function main (line 64) | def main(args): FILE: lib/stateful_queries.py function save_query (line 8) | def save_query(client_id, query): function last_query (line 15) | def last_query(client_id): FILE: share/scripts/cacheCleanup.go function removeInvalidEntries (line 16) | func removeInvalidEntries() error { function main (line 47) | func main() {