MCPcopy Create free account

hub / github.com/mwmbl/mwmbl / functions

Functions929 in github.com/mwmbl/mwmbl

Methodprocess_batch_continuously
Continuously process batches with error handling.
mwmbl/crawl.py:245
Functionprotected
(request)
mwmbl/platform/api.py:113
Functionrandom_api_key
Kept for migration compatibility (0010_apikey references this by name).
mwmbl/models.py:125
Functionrandom_query
(query)
analyse/stress_test_request.py:12
Functionraw
(request, s: str)
mwmbl/tinysearchengine/search.py:435
Functionread_page
(page_index: int)
analyse/index_concurrency.py:40
Methodready
(self)
mwmbl/apps.py:41
Methodredis
Lazy initialization of Redis connection.
mwmbl/crawl.py:106
Functionregister
(request, registration: Registration)
mwmbl/platform/api.py:51
Functionremove_vote
(request, vote_request: VoteRemoveRequest)
mwmbl/platform/api.py:315
Functionrequest_new_batch
(request, batch_request: NewBatchRequest)
mwmbl/crawler/app.py:156
Functionrequire_email_confirmation
(user)
mwmbl/auth.py:6
Functionreset_password
(request, body: ResetPasswordRequest)
mwmbl/platform/api.py:871
Methodresponse_format
(self)
mwmbl/tinysearchengine/super_search_sources/recipe.py:50
Methodretrieve_batch
(self, url)
mwmbl/indexer/batch_cache.py:69
Functionrevert_current_curation
(request)
mwmbl/views.py:286
Functionrun
(data_path: str)
mwmbl/background.py:31
Functionrun
(batch_cache: BatchCache, start_status: BatchStatus, end_status: BatchStatus, process: Callable[[Colle
mwmbl/indexer/process_batch.py:12
Functionrun
(batch_cache: BatchCache, index_path: str)
mwmbl/indexer/index_batches.py:49
Functionrun_evaluation
(request, job_id: int)
mwmbl/evaluation/api.py:74
Functionrun_indexing
Run indexing (backward compatibility).
mwmbl/crawl.py:348
Methodrun_indexing_continuously
Continuously run indexing with error handling.
mwmbl/crawl.py:255
Functionrun_query
(query)
analyse/load_test.py:30
Functionsample_found_urls
Create sample FoundURL objects for testing
test/test_crawl_functional.py:77
Functionsample_vote_data
Sample vote data for testing
test/test_voting_api.py:96
Methodsave_model
(self, request, obj, form, change)
mwmbl/admin.py:28
Functionscore_documents
Run the LTR model over the given documents and return raw per-doc scores. Sync — call from a thread when used inside an async context.
mwmbl/tinysearchengine/ltr_rank.py:87
Functionsearch
(request, s: str)
mwmbl/tinysearchengine/search.py:245
Functionsearch
(client: httpx.AsyncClient, query: str, limit: int)
mwmbl/tinysearchengine/super_search_sources/stackexchange.py:18
Functionsearch
(client: httpx.AsyncClient, query: str, limit: int)
mwmbl/tinysearchengine/super_search_sources/github.py:18
Functionsearch
(client: httpx.AsyncClient, query: str, limit: int)
mwmbl/tinysearchengine/super_search_sources/mwmbl_index.py:13
Functionsearch
(client: httpx.AsyncClient, query: str, limit: int)
mwmbl/tinysearchengine/super_search_sources/hn.py:14
Functionsearch
(client: httpx.AsyncClient, query: str, limit: int)
mwmbl/tinysearchengine/super_search_sources/recipe.py:91
Functionsearch
(client: httpx.AsyncClient, query: str, limit: int)
mwmbl/tinysearchengine/super_search_sources/arxiv.py:19
Functionsearch
(client: httpx.AsyncClient, query: str, limit: int)
mwmbl/tinysearchengine/super_search_sources/pypi.py:19
Methodsearch
(self, s, additional_results)
test/test_mmr_rank.py:67
Functionsearch_api_key
A search-scoped ApiKey for verified_user. Has a .raw_key attribute for use in headers.
test/test_search_api_key.py:88
Methodserialize
(self, item)
mwmbl/indexer/fsqueue.py:44
Methodserialize
(self, items: list[object])
mwmbl/indexer/fsqueue.py:52
Methodserialize
(self, items: Any)
mwmbl/indexer/fsqueue.py:62
Functionset_crawl_scope
Set scopes=["crawl"] on all existing ApiKey rows that have no scopes.
mwmbl/migrations/0017_backfill_apikey_scopes.py:4
Functionsingle_query
(query: str)
mwmbl/rankeval/evaluation/evaluate_remote.py:44
Functionslow_source
(client, query, limit)
test/test_super_search.py:434
MethodstartElementNS
(self, name, qname, attrs)
mwmbl/justext/core.py:166
Functionstatus
(request)
mwmbl/crawler/app.py:237
Functionsubmit_domain
(request)
mwmbl/views.py:204
Functionsubmit_domain
(request, domain: str)
mwmbl/platform/api.py:178
Functionsubmit_wasm
(request, file: UploadedFile = File(...))
mwmbl/evaluation/api.py:33
Functionsuper_search
(request, q: str)
mwmbl/tinysearchengine/super_search.py:673
Functiontemp_data_path
Create a temporary directory for test data
test/test_crawl_functional.py:28
Functiontest_add_url_rejects_internal_url
(monkeypatch)
test/test_ssrf.py:137
Functiontest_archive_org_nested_results_and_template
(httpx_mock)
test/test_super_search_recipes.py:113
Functiontest_arxiv_returns_documents
(httpx_mock)
test/test_super_search_sources.py:111
Functiontest_as_tuple_only_last_crawled_none_strips_it
()
test/test_indexer.py:139
Functiontest_as_tuple_strips_trailing_nones
()
test/test_indexer.py:134
Functiontest_as_tuple_with_new_fields
()
test/test_indexer.py:129
Methodtest_batch_queue_operations
Test batch queue operations in Redis
test/test_crawl_functional.py:283
Functiontest_binary_search_fitting_size_all_fit
()
test/test_indexer.py:21
Functiontest_binary_search_fitting_size_none_fit
()
test/test_indexer.py:39
Functiontest_binary_search_fitting_size_subset_fit
()
test/test_indexer.py:30
Functiontest_blacklist_allows_other_domains
Test that built-in rules allow other legitimate domains.
test/test_blacklist.py:24
Functiontest_blacklist_allows_top_domains
Test that built-in rules allow legitimate domains.
test/test_blacklist.py:18
Functiontest_blacklist_excludes_bad_pattern
Test that built-in rules blacklist bad patterns.
test/test_blacklist.py:4
Functiontest_blacklist_provider
Create a static blacklist provider for tests to avoid network calls.
test/test_crawl_functional.py:105
Functiontest_cancel_subscription_already_canceled
Test that canceling an already canceled subscription returns 409.
test/test_platform_billing.py:103
Functiontest_cancel_subscription_success
Test successful subscription cancellation at period end.
test/test_platform_billing.py:78
Functiontest_cancel_subscription_unauthenticated
Test that canceling without authentication returns 401.
test/test_platform_billing.py:140
Functiontest_cancel_subscription_unverified_email
Test that canceling without a subscription returns 404.
test/test_platform_billing.py:147
Functiontest_change_plan_invalid_plan
Test that changing to an invalid plan returns 400.
test/test_platform_billing.py:265
Functiontest_change_plan_no_subscription
Test that changing plan without a subscription returns 404.
test/test_platform_billing.py:278
Functiontest_change_plan_success
Test successful plan change.
test/test_platform_billing.py:225
Functiontest_change_plan_unauthenticated
Test that changing plan without authentication returns 401.
test/test_platform_billing.py:254
Functiontest_clean_unicode
()
test/test_indexdb.py:4
Functiontest_combine_documents_merges_user_ids_for_same_url
()
test/test_index_batches.py:180
Functiontest_combine_documents_propagates_user_ids_to_winner
When multiple docs share a URL, whichever wins carries the merged user_ids.
test/test_index_batches.py:195
Functiontest_combine_documents_uses_max_last_crawled
()
test/test_index_batches.py:188
Functiontest_combined_blacklist_provider
Test CombinedBlacklistProvider with is_domain_blacklisted method.
test/test_blacklist_providers.py:62
Functiontest_combined_blacklist_provider_handles_failures
Test CombinedBlacklistProvider continues even if one provider fails.
test/test_blacklist_providers.py:78
Functiontest_compress_decompress
()
analyse/decompress_errors.py:12
Functiontest_constructing_document_removes_none
()
test/test_indexer.py:123
Functiontest_copy_pages
()
test/test_copy_index.py:12
Functiontest_correctCompletions
(mocker)
test/test_completer.py:12
Functiontest_correctSortOrder
(mocker)
test/test_completer.py:26
Methodtest_crawl_url_error_handling
Test URL crawling error handling
test/test_crawl_functional.py:257
Functiontest_crawl_url_falls_back_to_first_paragraph
(monkeypatch)
test/test_retrieve_extract.py:68
Methodtest_crawl_url_functionality
Test individual URL crawling functionality
test/test_crawl_functional.py:228
Functiontest_crawl_url_prefers_meta_description_over_first_paragraph
(monkeypatch)
test/test_retrieve_extract.py:79
Functiontest_crawl_url_prefers_og_description
(monkeypatch)
test/test_retrieve_extract.py:87
Functiontest_crawled_url_is_not_requeued
End-to-end: a just-crawled URL is not put back on the queue, but a newly discovered link is.
test/test_url_database.py:71
Functiontest_crawled_url_marked_as_recently_crawled
A first-time crawled URL should come back with last_crawled set to now.
test/test_url_database.py:40
Functiontest_create_api_key
(api_client, access_token)
test/test_search_api_key.py:143
Functiontest_create_api_key_default_name
(api_client, access_token)
test/test_search_api_key.py:170
Functiontest_create_api_key_unauthenticated
(api_client)
test/test_search_api_key.py:160
Functiontest_create_crawl_api_key
(api_client, access_token)
test/test_search_api_key.py:194
Functiontest_create_crawl_api_key_without_gui_tos_returns_403
A user who has only accepted the API TOS cannot create a crawl key.
test/test_search_api_key.py:209
Functiontest_create_index
()
test/test_indexer.py:10
Functiontest_create_search_api_key_explicit_scope
(api_client, access_token)
test/test_search_api_key.py:182
Functiontest_delete_api_key
(api_client, access_token, search_api_key)
test/test_search_api_key.py:273
Functiontest_delete_crawl_api_key
(api_client, access_token, crawl_api_key)
test/test_search_api_key.py:303
Functiontest_delete_nonexistent_key_returns_404
(api_client, access_token)
test/test_search_api_key.py:294
← previousnext →601–700 of 929, ranked by callers