MCPcopy Create free account

hub / github.com/castorini/covidex / functions

Functions96 in github.com/castorini/covidex

↓ 7 callersFunctionsubmitQuery
(q: string = query)
client/src/components/pages/HomePage/SearchBar.tsx:33
↓ 4 callersMethodget_path
(self, path)
hnsw/index_hnsw.py:13
↓ 4 callersFunctionmakePOSTRequest
(url: string, data: Object)
client/src/shared/Util.ts:20
↓ 4 callersFunctionparseAbstract
(abstract: string)
client/src/shared/Util.ts:41
↓ 3 callersFunctionhighlightMatches
(queryTokens: Array<string>, text: string)
client/src/components/dataset/cord19/SearchResult.tsx:68
↓ 3 callersFunctionlog_info_data
(type)
api/test/routers/search/test_search_log.py:15
↓ 2 callersMethod_add_to_index
(self, data, data_labels, index)
hnsw/index_hnsw.py:71
↓ 2 callersFunctionbuild_timed_logger
Returns a logger that creates appends a new log file daily
api/app/util/logging.py:10
↓ 2 callersFunctionget_request_ip
(request: Request)
api/app/util/request.py:6
↓ 2 callersFunctionhighlightText
( text: string, highlights: Array<[number, number]>, queryTokens: Array<string>, )
client/src/components/dataset/cord19/SearchResult.tsx:19
↓ 2 callersFunctionpopulate_article
(doc, article_fields, lucene_schema)
api/app/util/request.py:29
↓ 2 callersFunctionregisterValidSW
(swUrl: string, config?: Config)
client/src/serviceWorker.ts:60
↓ 2 callersMethodtext_to_vectors
Converts a text to a sequence of vectors, one for each subword.
api/app/services/highlighter.py:30
↓ 1 callersMethod_save_index
(self, data, data_labels, index_to_uid, index)
hnsw/index_hnsw.py:75
↓ 1 callersFunctionadjustHighlights
( highlights: Array<[number, number]>, adjustment: number, )
client/src/components/dataset/cord19/SearchResult.tsx:80
↓ 1 callersMethodadjust_highlights
Adjusts highlights to ignore extra spaces introduced by the tokenization process. Iterates over highlighted and original text simulta
api/app/services/highlighter.py:67
↓ 1 callersFunctionbuild_article
( hit, score: float, paragraphs: List[str], highlighted_abstract: bool, )
api/app/routers/search.py:168
↓ 1 callersMethodbuild_ranker
(self)
api/app/services/ranker.py:15
↓ 1 callersFunctionbuild_related_result
(hit, dist: float)
api/app/routers/related.py:90
↓ 1 callersMethodbuild_searcher
(self, index_path)
api/app/services/searcher.py:12
↓ 1 callersFunctioncheckValidServiceWorker
(swUrl: string, config?: Config)
client/src/serviceWorker.ts:104
↓ 1 callersMethoddoc
(self, id: str)
api/app/services/searcher.py:36
↓ 1 callersFunctionfetchData
()
client/src/components/pages/RelatedPage/RelatedPage.tsx:44
↓ 1 callersFunctionfetchData
(query: string | null)
client/src/components/pages/HomePage/HomePage.tsx:115
↓ 1 callersFunctionfilterArticle
(selectedFilters: any, article: SearchArticle)
client/src/components/pages/HomePage/HomePage.tsx:63
↓ 1 callersFunctionformat
(bibtex)
scripts/aclanthology/cleanup_bibcollection.py:13
↓ 1 callersFunctiongetSearchFilters
(searchResults: SearchArticle[] | null)
client/src/components/pages/HomePage/HomePage.tsx:19
↓ 1 callersFunctionget_doc_url
(doc)
api/app/util/request.py:15
↓ 1 callersFunctionget_multivalued_field
(doc, field)
api/app/util/request.py:25
↓ 1 callersMethodhighlight_paragraph
Returns the start and end character positions of highlighted sentences
api/app/services/highlighter.py:115
↓ 1 callersMethodhighlight_paragraphs
Highlight sentences in a list of paragraph based on their similarity to the query. Args: query: A query text.
api/app/services/highlighter.py:156
↓ 1 callersMethodindex_and_save
(self)
hnsw/index_hnsw.py:41
↓ 1 callersMethodinitialize_hnsw_index
(self)
hnsw/index_hnsw.py:29
↓ 1 callersMethodload_data
(self)
hnsw/index_hnsw.py:16
↓ 1 callersMethodload_hnsw
(self)
api/app/services/related_searcher.py:56
↓ 1 callersMethodload_index_to_uid
(self)
api/app/services/related_searcher.py:24
↓ 1 callersMethodload_specter_embedding
(self)
api/app/services/related_searcher.py:35
↓ 1 callersFunctionlog_info_data
(type)
api/test/routers/related/test_related_log.py:12
↓ 1 callersFunctionmain
()
scripts/aclanthology/cleanup_bibcollection.py:29
↓ 1 callersFunctionremove_if_exist
(path)
hnsw/helper.py:5
↓ 1 callersMethodrescore
(self, query: str, texts: List[str])
api/app/services/ranker.py:25
↓ 1 callersMethodsearch
(self, query: str)
api/app/services/searcher.py:33
↓ 1 callersMethodsimilarity_matrix
Compute the cosine similarity matrix of two vectors of same size. Args: vector1: A torch vector of size N. vector2: A
api/app/services/highlighter.py:53
↓ 1 callersFunctiontokenize
(text: string)
client/src/shared/Util.ts:4
↓ 1 callersFunctiontransformPreprintSource
(source: string)
client/src/components/dataset/cord19/ArticleInfo.tsx:23
↓ 1 callersFunctionupdateSelectionFilter
(selectedFilter: Set<string>, value: string)
client/src/components/pages/HomePage/Filters.tsx:16
FunctionApp
()
client/src/App.tsx:16
FunctionArticleInfo
({ article, position, onClickTitle = () => {}, boldTitle = false, })
client/src/components/dataset/cord19/ArticleInfo.tsx:8
FunctionArticleInfo
({ article, position, onClickTitle = () => {}, boldTitle = false, })
client/src/components/dataset/acl/ArticleInfo.tsx:7
FunctionFilters
({ filters, selectedFilters, setSelectedFilters })
client/src/components/pages/HomePage/Filters.tsx:26
FunctionFooter
()
client/src/components/navigation/Footer.tsx:10
FunctionHomePage
()
client/src/components/pages/HomePage/HomePage.tsx:93
FunctionHomeText
()
client/src/components/dataset/cord19/HomeText.tsx:5
FunctionHomeText
()
client/src/components/dataset/acl/HomeText.tsx:5
FunctionLoading
()
client/src/components/common/Loading.tsx:4
FunctionNavbar
({ history }: RouteComponentProps)
client/src/components/navigation/Navbar.tsx:11
FunctionNotFoundComponent
()
client/src/components/pages/RelatedPage/RelatedPage.tsx:27
FunctionNotFoundPage
()
client/src/components/pages/NotFoundPage.tsx:4
FunctionRangeSlider
({ min = 0, max = 1, step = 1, values, setValues, })
client/src/components/common/RangeSlider.tsx:15
FunctionRelatedPage
()
client/src/components/pages/RelatedPage/RelatedPage.tsx:29
FunctionRelatedResult
({ article, position, queryId })
client/src/components/pages/RelatedPage/RelatedResult.tsx:20
FunctionSearchBar
({ query, vertical, setQuery, setVertical, history }: SearchBarProps)
client/src/components/pages/HomePage/SearchBar.tsx:25
FunctionSearchResult
({ article, position, queryId, queryTokens }: SearchResultProps)
client/src/components/dataset/cord19/SearchResult.tsx:91
FunctionSearchResult
({ article, position, queryId, queryTokens }: SearchResultProps)
client/src/components/dataset/acl/SearchResult.tsx:11
FunctionSelectionFilter
({ options = [], selectedOptions = new Set([]), setSelectedOptions = () => {}, maxDisplayed = 5, })
client/src/components/common/SelectionFilter.tsx:13
Method__init__
(self)
api/app/services/highlighter.py:11
Method__init__
(self)
api/app/services/searcher.py:9
Method__init__
(self)
api/app/services/related_searcher.py:10
Method__init__
(self)
api/app/services/ranker.py:12
Method__init__
(self, folder_path)
hnsw/index_hnsw.py:10
Functionclient
Client for testing endpoints
api/test/conftest.py:16
Functionfavicon
()
api/app/main.py:70
Functionget_related
( request: Request, uid: str, page_number: int = 1, query_id: str = None )
api/app/routers/related.py:18
Functionget_search
(request: Request, query: str)
api/app/routers/search.py:20
FunctionhandleInput
(event: React.ChangeEvent<HTMLInputElement>)
client/src/components/pages/HomePage/SearchBar.tsx:31
Functioninvalid_api
()
api/app/main.py:51
FunctionloadMoreResults
()
client/src/components/pages/RelatedPage/RelatedPage.tsx:81
Functionload_metadata
(path)
hnsw/helper.py:10
Functionload_specter_embeddings
(path)
hnsw/helper.py:32
FunctionmakeAsyncPOSTRequest
(url: string, body: Object)
client/src/shared/Util.ts:30
Functionmanifest
()
api/app/main.py:64
Functionpost_clicked
(data: SearchLogData)
api/app/routers/related.py:76
Functionpost_clicked
(data: SearchLogData)
api/app/routers/search.py:154
Functionpost_collapsed
(data: SearchLogData)
api/app/routers/search.py:124
Functionpost_expanded
(data: SearchLogData)
api/app/routers/search.py:139
Functionregister
(config?: Config)
client/src/serviceWorker.ts:26
Functionroot
()
api/app/main.py:88
Functionsave_index_to_uid_file
(index_to_uid, index, path)
hnsw/helper.py:52
Functionstatus
()
api/app/main.py:46
Functiontest_log_clicked
(client, mocker)
api/test/routers/related/test_related_log.py:21
Functiontest_log_clicked
(client, mocker)
api/test/routers/search/test_search_log.py:38
Functiontest_log_collapsed
(client, mocker)
api/test/routers/search/test_search_log.py:24
Functiontest_log_expanded
(client, mocker)
api/test/routers/search/test_search_log.py:31
Functiontest_status
()
api/test/test_main.py:7
Functionunregister
()
client/src/serviceWorker.ts:132
Methodvalidate_highlights
(cls, v, values)
api/app/models.py:30