MCPcopy Create free account

hub / github.com/mwmbl/mwmbl / functions

Functions929 in github.com/mwmbl/mwmbl

↓ 3 callersFunctionget_default_blacklist_provider
Get the default blacklist provider configuration.
mwmbl/indexer/blacklist.py:16
↓ 3 callersFunctionget_document_source
(state: DocumentState)
mwmbl/format.py:36
↓ 3 callersFunctionget_domain_result_count
(domain: str)
mwmbl/count_urls.py:111
↓ 3 callersFunctionget_index_tokens
(tokens)
mwmbl/indexer/index.py:48
↓ 3 callersFunctionget_meta_description
Return the <meta name="description"> content, or empty string.
mwmbl/crawler/retrieve.py:273
↓ 3 callersFunctionget_next_neighbour
Return the class of the paragraph at the bottom end of the short/neargood paragraphs block. If ignore_neargood is True, than only 'bad' or 'g
mwmbl/justext/core.py:308
↓ 3 callersFunctionget_prev_neighbour
Return the class of the paragraph at the top end of the short/neargood paragraphs block. If ignore_neargood is True, than only 'bad' or 'good
mwmbl/justext/core.py:299
↓ 3 callersFunctionget_redis
()
mwmbl/count_urls.py:30
↓ 3 callersFunctionindex_results_against_query
Index each document against the query unigrams/bigrams it matches. A query term matches a document when all of the term's words are present in
mwmbl/indexer/index_batches.py:101
↓ 3 callersMethodis_domain_blacklisted
Check if domain is in the static blacklist.
mwmbl/indexer/blacklist_providers.py:30
↓ 3 callersMethodis_domain_blacklisted
Check if domain should be blacklisted based on built-in rules.
mwmbl/indexer/blacklist_providers.py:47
↓ 3 callersMethodload_model
Load a model from disk (XGBoost binary format).
mwmbl/tinysearchengine/ltr.py:196
↓ 3 callersFunctionprepare_url_for_tokenizing
(url: str)
mwmbl/indexer/index.py:37
↓ 3 callersFunctionprocess_link
(user_id_hash: str, crawled_page_domain: str, link: Link, timestamp: datetime, url_timestamps
mwmbl/indexer/update_urls.py:109
↓ 3 callersFunctionrequest_cache
(expire_after: Optional[timedelta] = None)
mwmbl/utils.py:91
↓ 3 callersMethodsave_model
Save the trained model to disk (XGBoost binary format).
mwmbl/tinysearchengine/ltr.py:192
↓ 3 callersFunctionscore_result
(terms: list[str], result: Document, is_complete: bool)
mwmbl/tinysearchengine/rank.py:40
↓ 3 callersFunctionsort_documents
(documents, all_existing_documents, ranker)
mwmbl/indexer/index_batches.py:176
↓ 3 callersMethodstore_in_page
(self, page_index: int, values: list[T])
mwmbl/tinysearchengine/indexer.py:252
↓ 3 callersMethodupdate_batch_status
(self, batch_urls: list[str], status: BatchStatus)
mwmbl/indexer/indexdb.py:61
↓ 3 callersFunctionupload_object
(model_object: Schema, now: datetime, user_id_hash: str, object_type: str)
mwmbl/crawler/app.py:65
↓ 2 callersMethod__enter__
(self)
mwmbl/database.py:28
↓ 2 callersMethod__init__
(self, tiny_index: TinyIndex, completer: Completer)
mwmbl/tinysearchengine/rank.py:239
↓ 2 callersFunction_add_found_urls_to_db_and_queue
(found_urls, new_item_queue)
mwmbl/indexer/update_urls.py:86
↓ 2 callersFunction_coerce_str
(value, strip_html: bool = False)
mwmbl/tinysearchengine/super_search_sources/recipe.py:139
↓ 2 callersMethod_construct_bloom_filter
(self, i, month_date, urls_path)
mwmbl/crawler/urls.py:72
↓ 2 callersFunction_crawl
Run the synchronous crawl_url on the dedicated crawl executor.
mwmbl/tinysearchengine/super_search.py:81
↓ 2 callersFunction_current_month
()
test/test_url_database.py:35
↓ 2 callersMethod_df_to_records
Convert a DataFrame to a list of dicts for the Rust boundary.
mwmbl/tinysearchengine/ltr.py:141
↓ 2 callersFunction_extract_highlights
Merge consecutive bold segments (with whitespace-only gaps) into phrases.
mwmbl/format.py:80
↓ 2 callersFunction_fill_template
Fill ``template`` from ``context``, URL-quoting each substituted value.
mwmbl/tinysearchengine/super_search_sources/recipe.py:148
↓ 2 callersFunction_get_curation
(request, query, documents, reranked_documents)
mwmbl/views.py:319
↓ 2 callersFunction_get_documents
(request, term: str)
mwmbl/views.py:367
↓ 2 callersFunction_get_neighbour
(i, paragraphs, ignore_neargood, inc, boundary)
mwmbl/justext/core.py:288
↓ 2 callersFunction_get_results_and_activity
(request)
mwmbl/views.py:109
↓ 2 callersFunction_insert_document
(documents, approved_document)
mwmbl/views.py:350
↓ 2 callersFunction_ip_is_safe
Return True only for ordinary, routable public addresses.
mwmbl/crawler/ssrf.py:26
↓ 2 callersFunction_register_routes
Register all crawler routes on the given router or API instance.
mwmbl/crawler/app.py:81
↓ 2 callersFunction_register_search_v1
Register the v1 search endpoint: returns a plain list of SearchResult.
mwmbl/tinysearchengine/search.py:212
↓ 2 callersFunction_remove
()
test/test_url_database.py:26
↓ 2 callersFunction_require_current_agreement
(user: MwmblUser, agreement_type: AgreementType)
mwmbl/platform/api.py:363
↓ 2 callersFunction_resolve_and_validate_link
Resolve a raw href to an absolute URL and validate it. Returns None if invalid.
mwmbl/crawler/retrieve.py:184
↓ 2 callersFunction_result_payload
(doc: Document, score: float, source: str, origin: Literal["direct", "final"])
mwmbl/tinysearchengine/super_search.py:269
↓ 2 callersFunction_revert_curation
(curation)
mwmbl/views.py:304
↓ 2 callersFunction_save_to_index
(query: str, new_results: list[Document])
mwmbl/views.py:385
↓ 2 callersFunction_select_html
(el, spec, strip_html: bool = False)
mwmbl/tinysearchengine/super_search_sources/recipe.py:231
↓ 2 callersFunction_select_xml
(item: Element, spec, strip_html: bool = False)
mwmbl/tinysearchengine/super_search_sources/recipe.py:278
↓ 2 callersFunction_sse_frame
(event_type: str, data: Any)
mwmbl/tinysearchengine/super_search.py:262
↓ 2 callersFunction_truncate
(text: str, limit: int)
mwmbl/crawler/retrieve.py:302
↓ 2 callersFunctionadd_term_info
(document: Document, index: TinyIndex, page_index: int)
mwmbl/utils.py:35
↓ 2 callersFunctionadd_term_infos
(documents: list[Document], index: TinyIndex, page_index: int)
mwmbl/utils.py:44
↓ 2 callersMethodappend_text
(self, text)
mwmbl/justext/paragraph.py:48
↓ 2 callersFunctioncheck_public_user_id
(public_user_id)
mwmbl/crawler/app.py:370
↓ 2 callersMethodcheck_user_crawled_urls
(self, user_id: str, urls: list[str])
mwmbl/redis_url_queue.py:153
↓ 2 callersFunctionclassify_paragraphs
Context-free paragraph classification.
mwmbl/justext/core.py:253
↓ 2 callersMethodcomplete
(self, q: str)
mwmbl/tinysearchengine/rank.py:261
↓ 2 callersFunctioncopy_pages
(old_index_path: str, new_index_path: str, start_page: int, num_pages_to_copy)
mwmbl/tinysearchengine/copy_index.py:14
↓ 2 callersFunctioncount_urls
()
mwmbl/count_urls.py:45
↓ 2 callersMethoddone
Mark a task/file as done
mwmbl/indexer/fsqueue.py:131
↓ 2 callersFunctionfetch_raw
(term: str)
scripts/verify_user_ids_beta.py:43
↓ 2 callersFunctionfix_document_state
(result: Document)
mwmbl/tinysearchengine/rank.py:218
↓ 2 callersFunctionformat_result
(result, query)
mwmbl/format.py:73
↓ 2 callersFunctionformat_result_with_pattern
(pattern, result)
mwmbl/format.py:40
↓ 2 callersFunctionget_all_monthly_keys
Return all active monthly counter keys for the current month. Uses the underlying Redis SCAN command via django-redis. Only call this fro
mwmbl/quota.py:112
↓ 2 callersMethodget_batches_by_status
(self, status: BatchStatus, num_batches=1000)
mwmbl/indexer/indexdb.py:51
↓ 2 callersFunctionget_batches_for_prefix
(prefix)
mwmbl/crawler/app.py:394
↓ 2 callersFunctionget_counts
()
mwmbl/count_urls.py:89
↓ 2 callersFunctionget_datetime_from_timestamp
(timestamp: float)
mwmbl/indexer/update_urls.py:134
↓ 2 callersFunctionget_domain_max_urls
(domain: str, curated_domains: set[str])
mwmbl/redis_url_queue.py:45
↓ 2 callersMethodget_path_from_url
(self, url)
mwmbl/indexer/batch_cache.py:88
↓ 2 callersMethodget_results
(self, q: str, additional_results: list[Document])
mwmbl/tinysearchengine/rank.py:277
↓ 2 callersFunctionget_wiki_results
(s: str, max_wiki_results: int)
mwmbl/tinysearchengine/rank.py:369
↓ 2 callersFunctionget_wiki_url
(title: str)
mwmbl/tinysearchengine/rank.py:358
↓ 2 callersFunctionindex_batches
(batch_data: Collection[HashedBatch], index_path: str)
mwmbl/indexer/index_batches.py:63
↓ 2 callersFunctionindex_documents
(documents, index_path)
mwmbl/indexer/index_batches.py:71
↓ 2 callersFunctionload_curated
()
scripts/build_super_search_candidates.py:72
↓ 2 callersMethodmake_paragraphs
Converts DOM into paragraphs.
mwmbl/justext/core.py:146
↓ 2 callersFunctionnormalize_whitespace
Translates multiple whitespace into single space character. If there is at least one new line character chunk is replaced by single LF (U
mwmbl/justext/utils.py:15
↓ 2 callersMethodorder_results
(self, terms: list[str], pages: list[Document], is_complete: bool)
mwmbl/tinysearchengine/rank.py:244
↓ 2 callersMethodpop
(self)
mwmbl/justext/core.py:241
↓ 2 callersFunctionpreprocessor
Removes unwanted parts of DOM.
mwmbl/justext/core.py:113
↓ 2 callersMethodrecord_batch
(self, hashed_batch: HashedBatch)
mwmbl/crawler/stats.py:85
↓ 2 callersMethodrecord_batches
(self, batch_infos: list[BatchInfo])
mwmbl/indexer/indexdb.py:40
↓ 2 callersFunctionrecord_urls_in_database
(batches: Collection[HashedBatch], new_item_queue: RedisURLQueue)
mwmbl/indexer/update_urls.py:42
↓ 2 callersMethodretrieve
(self, query: str, refresh: bool = False)
mwmbl/rankeval/evaluation/remote_index.py:21
↓ 2 callersFunctionretrieve_from_endpoint
(query, endpoint, **args)
mwmbl/rankeval/dataset/search_api.py:20
↓ 2 callersFunctionrevise_paragraph_classification
Context-sensitive paragraph classification. Assumes that classify_pragraphs has already been called.
mwmbl/justext/core.py:317
↓ 2 callersFunctionrun
(batch_cache: BatchCache, new_item_queue: RedisURLQueue, num_batches: int = 1000)
mwmbl/indexer/update_urls.py:37
↓ 2 callersMethodstore
(self, batch, url)
mwmbl/indexer/batch_cache.py:80
↓ 2 callersFunctionsubject
(token)
test/test_auth.py:107
↓ 2 callersFunctiontokenize_document
(url, title_cleaned, extract, score)
mwmbl/indexer/index.py:54
↓ 2 callersFunctionupdateStats
()
front-end/src/stats/stats.js:82
↓ 2 callersFunctionupload
(data: bytes, name: str)
mwmbl/crawler/app.py:55
↓ 1 callersMethod__events
()
front-end/src/components/molecules/add-result.js:20
↓ 1 callersMethod__events
()
front-end/src/components/molecules/add-button.js:14
↓ 1 callersMethod__events
()
front-end/src/components/molecules/result.js:16
↓ 1 callersMethod__init__
(self, directory: Union[str, Path], name: str, serializer: Serializer)
mwmbl/indexer/fsqueue.py:71
↓ 1 callersMethod__setup
()
front-end/src/components/molecules/add-result.js:15
↓ 1 callersMethod__setup
()
front-end/src/components/molecules/add-button.js:10
↓ 1 callersMethod__setup
()
front-end/src/components/molecules/result.js:12
← previousnext →101–200 of 929, ranked by callers