MCPcopy Create free account

hub / github.com/mwmbl/mwmbl / functions

Functions929 in github.com/mwmbl/mwmbl

↓ 1 callersFunction_assert_usable
(docs, expected_title_substr: str)
test/test_super_search_smoke.py:32
↓ 1 callersFunction_build_params
(params: dict | None, query: str, limit: int)
mwmbl/tinysearchengine/super_search_sources/recipe.py:131
↓ 1 callersFunction_call_source
(name: str, fn, client: httpx.AsyncClient, query: str, limit: int)
mwmbl/tinysearchengine/super_search.py:334
↓ 1 callersFunction_client
()
test/test_super_search_smoke.py:28
↓ 1 callersFunction_doc_passes_term_filter
Return True if more than half the query terms have a whole-word match in the document. Uses \b word boundaries so that a query term like "exa" do
mwmbl/tinysearchengine/super_search.py:280
↓ 1 callersFunction_document_token_set
Unigram tokens of a document's title, URL and extract (no bigrams).
mwmbl/indexer/index_batches.py:93
↓ 1 callersFunction_follow_links
Crawl the parent URL, score its outbound links, and collect the best for final ranking.
mwmbl/tinysearchengine/super_search.py:348
↓ 1 callersMethod_get_blacklisted_domains
Fetch HaGeZi blacklist with caching.
mwmbl/indexer/blacklist_providers.py:96
↓ 1 callersMethod_get_children
(self)
mwmbl/justext/core.py:235
↓ 1 callersFunction_get_database_url
Derive a psycopg2 DSN from Django's DATABASES['default'] setting. Supports both a pre-built URL (via dj_database_url) and a dict of individua
mwmbl/database.py:6
↓ 1 callersMethod_get_page_tuples
(self, i)
mwmbl/tinysearchengine/indexer.py:242
↓ 1 callersFunction_get_redis
Get or create Redis connection for robots.txt caching.
scripts/verify_user_ids_beta.py:32
↓ 1 callersFunction_get_redis
Get or create Redis connection for robots.txt caching.
mwmbl/tinysearchengine/super_search.py:73
↓ 1 callersFunction_get_robots_from_cache
(redis: Redis, domain: str)
mwmbl/crawler/retrieve.py:151
↓ 1 callersFunction_index_results
Index everything Super Search found against the query's unigrams/bigrams. Runs the blocking index write off the event loop and never lets an inde
mwmbl/tinysearchengine/super_search.py:453
↓ 1 callersFunction_inline_defs
Inline pydantic ``$defs`` so the schema is self-contained. ``model_json_schema`` emits nested models (e.g. ``ResultItem``) as ``$ref``s into
mwmbl/tinysearchengine/super_search.py:226
↓ 1 callersFunction_maybe_promote
(doc: Document, score: float)
mwmbl/tinysearchengine/super_search.py:485
↓ 1 callersFunction_normalized_bow
L2-normalised bag-of-words over title + extract, so cosine is a plain dot product.
mwmbl/tinysearchengine/mmr_rank.py:25
↓ 1 callersFunction_parse_html
(html_text: str, spec: dict)
mwmbl/tinysearchengine/super_search_sources/recipe.py:213
↓ 1 callersFunction_parse_json
(payload, spec: dict)
mwmbl/tinysearchengine/super_search_sources/recipe.py:180
↓ 1 callersFunction_parse_xml
(xml_text: str, spec: dict)
mwmbl/tinysearchengine/super_search_sources/recipe.py:259
↓ 1 callersFunction_rate_key
(user_id: int)
mwmbl/quota.py:35
↓ 1 callersFunction_record_agreements
(user: MwmblUser, agreement_types: list)
mwmbl/platform/api.py:352
↓ 1 callersFunction_register_search_v2
Register the v2 search endpoint: returns SearchResponse with optional quota info.
mwmbl/tinysearchengine/search.py:250
↓ 1 callersFunction_resolve_url_html
(url_spec, el, base_url: str)
mwmbl/tinysearchengine/super_search_sources/recipe.py:248
↓ 1 callersFunction_resolve_url_json
(url_spec, item: dict, values: dict)
mwmbl/tinysearchengine/super_search_sources/recipe.py:199
↓ 1 callersFunction_resolve_url_xml
(url_spec, item: Element, values: dict)
mwmbl/tinysearchengine/super_search_sources/recipe.py:293
↓ 1 callersFunction_run_pipeline
( query: str, emit, all_docs: list[Document], last_results_key: list, lock: asyncio.Lock )
mwmbl/tinysearchengine/super_search.py:470
↓ 1 callersMethod_schedule_background_tasks
Schedule periodic background tasks if they are not already queued. Uses django-background-tasks; requires `manage.py process_tasks` t
mwmbl/apps.py:48
↓ 1 callersFunction_sse_stream
(query: str, monthly_usage: int, monthly_limit: int)
mwmbl/tinysearchengine/super_search.py:546
↓ 1 callersFunction_substitute
(value, query: str, limit: int)
mwmbl/tinysearchengine/super_search_sources/recipe.py:123
↓ 1 callersFunction_text_cosine
(a: dict[str, float], b: dict[str, float])
mwmbl/tinysearchengine/mmr_rank.py:34
↓ 1 callersFunction_title_from_url
Cheap human-readable proxy used to score outbound links with the LTR model.
mwmbl/tinysearchengine/super_search.py:315
↓ 1 callersFunction_upgrade_message
(tier: str)
mwmbl/tinysearchengine/search.py:197
↓ 1 callersFunction_url_term_score
Count how many query terms appear as whole words anywhere in the URL. Uses \b word boundaries so that "exa" does not score a URL containing "
mwmbl/tinysearchengine/super_search.py:304
↓ 1 callersMethod_write_page
Serialise the data using JSON, compress it and store it at index i. If the data is too big, it will store the first items in the list
mwmbl/tinysearchengine/indexer.py:256
↓ 1 callersFunctionaggregate_stats
(stats: Iterable[str], num_titles: int = 100_000)
analyse/wiki_stats.py:56
↓ 1 callersFunctionanalyse_urls
(urls)
analyse/analyse_crawled_domains.py:25
↓ 1 callersMethodauthenticate
(self, request, username=None, password=None, **kwargs)
mwmbl/auth.py:22
↓ 1 callersFunctionauthenticate_user
Resolve the requesting user from either an X-API-Key header or a JWT. Returns the user on success; raises ``HttpError(401)`` otherwise. Database
mwmbl/search_auth.py:57
↓ 1 callersFunctioncheck_invalid_key_rejected
()
scripts/check_search_api_key.py:59
↓ 1 callersFunctioncheck_rate_limit
()
scripts/check_search_api_key.py:67
↓ 1 callersFunctioncheck_subscription_usage
(expected_usage: int)
scripts/check_search_api_key.py:98
↓ 1 callersFunctioncheck_usage_increases
()
scripts/check_search_api_key.py:34
↓ 1 callersFunctionclean_html
(s: str)
mwmbl/tinysearchengine/rank.py:365
↓ 1 callersFunctioncmd_merge
()
scripts/build_super_search_candidates.py:119
↓ 1 callersFunctioncmd_prepare
()
scripts/build_super_search_candidates.py:98
↓ 1 callersFunctioncmd_shortlist
Select v2 source candidates: recommended + has on-site search + non-obscure.
scripts/build_super_search_candidates.py:201
↓ 1 callersFunctioncollect_links
(urls)
mwmbl/indexer/links.py:23
↓ 1 callersMethodcomplete
(self, q: str)
mwmbl/tinysearchengine/mmr_rank.py:95
↓ 1 callersMethodcontains_text
(self)
mwmbl/justext/paragraph.py:45
↓ 1 callersFunctionconvert_item
(item)
analyse/record_historical_batches.py:26
↓ 1 callersFunctioncopy_all_indexes
(new_index_path)
mwmbl/background.py:50
↓ 1 callersFunctioncount_unique_urls
(index_path: str)
analyse/estimate_unique_urls.py:23
↓ 1 callersFunctioncount_urls_continuously
()
mwmbl/count_urls.py:34
↓ 1 callersFunctioncreate_database
()
analyse/export_urls.py:10
↓ 1 callersFunctioncreate_dataset
()
mwmbl/rankeval/dataset/queries.py:27
↓ 1 callersFunctioncreate_dataset
()
mwmbl/rankeval/dataset/extension_dataset.py:21
↓ 1 callersFunctioncreate_index
()
mwmbl/apps.py:11
↓ 1 callersFunctioncreate_index_db
()
mwmbl/apps.py:31
↓ 1 callersFunctiondecode_html
Converts a `html` containing an HTML page into Unicode. Tries to guess character encoding from meta tag.
mwmbl/justext/core.py:83
↓ 1 callersFunctiondeduplicate
(results, seen_titles)
mwmbl/tinysearchengine/rank.py:209
↓ 1 callersFunctiondefine_stoplist
Lower-case all words in stoplist and create frozen set.
mwmbl/justext/core.py:247
↓ 1 callersMethoddeserialize
(self, serialized_item: bytes)
mwmbl/indexer/fsqueue.py:35
↓ 1 callersMethoddispatch
(event)
front-end/src/utils/events.js:18
↓ 1 callersFunctiondownload_wiki_stats_files
(urls: Iterable[str])
analyse/wiki_stats.py:50
↓ 1 callersFunctionestimate_unique_urls
(index_path: str, num_pages_to_sample: int = 100)
analyse/estimate_unique_urls.py:34
↓ 1 callersFunctionexport_top_domains_to_json
()
analyse/export_top_domains.py:7
↓ 1 callersMethodexternal_search
(self, q: str)
mwmbl/tinysearchengine/rank.py:322
↓ 1 callersFunctionextract_from_html_text
Extract a clean plain-text snippet from an HTML fragment using the justext pipeline.
mwmbl/crawler/retrieve.py:238
↓ 1 callersFunctionfetch_results
(query: str)
mwmbl/rankeval/evaluation/evaluate_wiki.py:17
↓ 1 callersFunctionfind_matching_urls
(url_db_path: str, urls: list[str])
mwmbl/rankeval/evaluation/urldb.py:4
↓ 1 callersFunctionfind_worst_pages
(url_set)
analyse/analyse_crawled_domains.py:44
↓ 1 callersFunctionfloat_or_none
(s: str)
mwmbl/utils.py:95
↓ 1 callersFunctionformat_result_v2
(result, position: int, query: str)
mwmbl/format.py:100
↓ 1 callersMethodfrom_bytes
(data: bytes)
mwmbl/tinysearchengine/indexer.py:118
↓ 1 callersFunctiongenerate_username
()
mwmbl/usernames.py:228
↓ 1 callersFunctionget_batch_id_from_file_name
(file_name: str)
mwmbl/crawler/app.py:382
↓ 1 callersFunctionget_batch_ids_for_prefix
(prefix)
mwmbl/crawler/app.py:387
↓ 1 callersFunctionget_batch_url
(batch_id, date_str, public_user_id)
mwmbl/crawler/app.py:375
↓ 1 callersFunctionget_batches
()
analyse/record_historical_batches.py:20
↓ 1 callersFunctionget_batches_for_date
(date_str)
mwmbl/crawler/app.py:418
↓ 1 callersFunctionget_bloom_filter
(domain_group: str)
mwmbl/crawler/domains.py:30
↓ 1 callersFunctionget_bucket
(name)
mwmbl/crawler/app.py:49
↓ 1 callersMethodget_cached
(self, batch_urls: list[str])
mwmbl/indexer/batch_cache.py:32
↓ 1 callersFunctionget_curated_domains
()
mwmbl/search_setup.py:22
↓ 1 callersFunctionget_dataset
(completer)
mwmbl/rankeval/ltr/dataset.py:23
↓ 1 callersFunctionget_deduped_pages
()
mwmbl/indexer/dedupe.py:16
↓ 1 callersFunctionget_documents_from_batches
(batches: Collection[HashedBatch])
mwmbl/indexer/index_batches.py:39
↓ 1 callersFunctionget_dom_links
Extract hrefs from all <a> elements in the DOM. justext drops paragraphs with no text nodes (e.g. icon-only anchors like <a href="/discord"><
mwmbl/crawler/retrieve.py:198
↓ 1 callersFunctionget_domain
(url)
mwmbl/utils.py:28
↓ 1 callersFunctionget_domain_score
(url)
mwmbl/tinysearchengine/rank.py:172
↓ 1 callersMethodget_domain_score
(self, domain: str)
mwmbl/crawler/domains.py:66
↓ 1 callersMethodget_domain_stats
(self)
mwmbl/crawler/stats.py:218
↓ 1 callersFunctionget_domains
()
mwmbl/indexer/domains/queue_domains.py:13
↓ 1 callersFunctionget_en_stats
(url: str)
analyse/wiki_stats.py:42
↓ 1 callersFunctionget_frequencies
()
analyse/tfidf.py:18
↓ 1 callersFunctionget_match_features
(terms, result_string, is_complete, is_url)
mwmbl/tinysearchengine/rank.py:182
↓ 1 callersFunctionget_new_links
(paragraphs: list[Paragraph], current_url)
mwmbl/crawler/retrieve.py:216
↓ 1 callersFunctionget_og_meta
Return (og:title, og:description) from Open Graph meta tags, or empty strings.
mwmbl/crawler/retrieve.py:257
← previousnext →201–300 of 929, ranked by callers