Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/castorini/covidex
/ functions
Functions
96 in github.com/castorini/covidex
⨍
Functions
96
◇
Types & classes
26
↳
Endpoints
11
↓ 7 callers
Function
submitQuery
(q: string = query)
client/src/components/pages/HomePage/SearchBar.tsx:33
↓ 4 callers
Method
get_path
(self, path)
hnsw/index_hnsw.py:13
↓ 4 callers
Function
makePOSTRequest
(url: string, data: Object)
client/src/shared/Util.ts:20
↓ 4 callers
Function
parseAbstract
(abstract: string)
client/src/shared/Util.ts:41
↓ 3 callers
Function
highlightMatches
(queryTokens: Array<string>, text: string)
client/src/components/dataset/cord19/SearchResult.tsx:68
↓ 3 callers
Function
log_info_data
(type)
api/test/routers/search/test_search_log.py:15
↓ 2 callers
Method
_add_to_index
(self, data, data_labels, index)
hnsw/index_hnsw.py:71
↓ 2 callers
Function
build_timed_logger
Returns a logger that creates appends a new log file daily
api/app/util/logging.py:10
↓ 2 callers
Function
get_request_ip
(request: Request)
api/app/util/request.py:6
↓ 2 callers
Function
highlightText
( text: string, highlights: Array<[number, number]>, queryTokens: Array<string>, )
client/src/components/dataset/cord19/SearchResult.tsx:19
↓ 2 callers
Function
populate_article
(doc, article_fields, lucene_schema)
api/app/util/request.py:29
↓ 2 callers
Function
registerValidSW
(swUrl: string, config?: Config)
client/src/serviceWorker.ts:60
↓ 2 callers
Method
text_to_vectors
Converts a text to a sequence of vectors, one for each subword.
api/app/services/highlighter.py:30
↓ 1 callers
Method
_save_index
(self, data, data_labels, index_to_uid, index)
hnsw/index_hnsw.py:75
↓ 1 callers
Function
adjustHighlights
( highlights: Array<[number, number]>, adjustment: number, )
client/src/components/dataset/cord19/SearchResult.tsx:80
↓ 1 callers
Method
adjust_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 callers
Function
build_article
( hit, score: float, paragraphs: List[str], highlighted_abstract: bool, )
api/app/routers/search.py:168
↓ 1 callers
Method
build_ranker
(self)
api/app/services/ranker.py:15
↓ 1 callers
Function
build_related_result
(hit, dist: float)
api/app/routers/related.py:90
↓ 1 callers
Method
build_searcher
(self, index_path)
api/app/services/searcher.py:12
↓ 1 callers
Function
checkValidServiceWorker
(swUrl: string, config?: Config)
client/src/serviceWorker.ts:104
↓ 1 callers
Method
doc
(self, id: str)
api/app/services/searcher.py:36
↓ 1 callers
Function
fetchData
()
client/src/components/pages/RelatedPage/RelatedPage.tsx:44
↓ 1 callers
Function
fetchData
(query: string | null)
client/src/components/pages/HomePage/HomePage.tsx:115
↓ 1 callers
Function
filterArticle
(selectedFilters: any, article: SearchArticle)
client/src/components/pages/HomePage/HomePage.tsx:63
↓ 1 callers
Function
format
(bibtex)
scripts/aclanthology/cleanup_bibcollection.py:13
↓ 1 callers
Function
getSearchFilters
(searchResults: SearchArticle[] | null)
client/src/components/pages/HomePage/HomePage.tsx:19
↓ 1 callers
Function
get_doc_url
(doc)
api/app/util/request.py:15
↓ 1 callers
Function
get_multivalued_field
(doc, field)
api/app/util/request.py:25
↓ 1 callers
Method
highlight_paragraph
Returns the start and end character positions of highlighted sentences
api/app/services/highlighter.py:115
↓ 1 callers
Method
highlight_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 callers
Method
index_and_save
(self)
hnsw/index_hnsw.py:41
↓ 1 callers
Method
initialize_hnsw_index
(self)
hnsw/index_hnsw.py:29
↓ 1 callers
Method
load_data
(self)
hnsw/index_hnsw.py:16
↓ 1 callers
Method
load_hnsw
(self)
api/app/services/related_searcher.py:56
↓ 1 callers
Method
load_index_to_uid
(self)
api/app/services/related_searcher.py:24
↓ 1 callers
Method
load_specter_embedding
(self)
api/app/services/related_searcher.py:35
↓ 1 callers
Function
log_info_data
(type)
api/test/routers/related/test_related_log.py:12
↓ 1 callers
Function
main
()
scripts/aclanthology/cleanup_bibcollection.py:29
↓ 1 callers
Function
remove_if_exist
(path)
hnsw/helper.py:5
↓ 1 callers
Method
rescore
(self, query: str, texts: List[str])
api/app/services/ranker.py:25
↓ 1 callers
Method
search
(self, query: str)
api/app/services/searcher.py:33
↓ 1 callers
Method
similarity_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 callers
Function
tokenize
(text: string)
client/src/shared/Util.ts:4
↓ 1 callers
Function
transformPreprintSource
(source: string)
client/src/components/dataset/cord19/ArticleInfo.tsx:23
↓ 1 callers
Function
updateSelectionFilter
(selectedFilter: Set<string>, value: string)
client/src/components/pages/HomePage/Filters.tsx:16
Function
App
()
client/src/App.tsx:16
Function
ArticleInfo
({ article, position, onClickTitle = () => {}, boldTitle = false, })
client/src/components/dataset/cord19/ArticleInfo.tsx:8
Function
ArticleInfo
({ article, position, onClickTitle = () => {}, boldTitle = false, })
client/src/components/dataset/acl/ArticleInfo.tsx:7
Function
Filters
({ filters, selectedFilters, setSelectedFilters })
client/src/components/pages/HomePage/Filters.tsx:26
Function
Footer
()
client/src/components/navigation/Footer.tsx:10
Function
HomePage
()
client/src/components/pages/HomePage/HomePage.tsx:93
Function
HomeText
()
client/src/components/dataset/cord19/HomeText.tsx:5
Function
HomeText
()
client/src/components/dataset/acl/HomeText.tsx:5
Function
Loading
()
client/src/components/common/Loading.tsx:4
Function
Navbar
({ history }: RouteComponentProps)
client/src/components/navigation/Navbar.tsx:11
Function
NotFoundComponent
()
client/src/components/pages/RelatedPage/RelatedPage.tsx:27
Function
NotFoundPage
()
client/src/components/pages/NotFoundPage.tsx:4
Function
RangeSlider
({ min = 0, max = 1, step = 1, values, setValues, })
client/src/components/common/RangeSlider.tsx:15
Function
RelatedPage
()
client/src/components/pages/RelatedPage/RelatedPage.tsx:29
Function
RelatedResult
({ article, position, queryId })
client/src/components/pages/RelatedPage/RelatedResult.tsx:20
Function
SearchBar
({ query, vertical, setQuery, setVertical, history }: SearchBarProps)
client/src/components/pages/HomePage/SearchBar.tsx:25
Function
SearchResult
({ article, position, queryId, queryTokens }: SearchResultProps)
client/src/components/dataset/cord19/SearchResult.tsx:91
Function
SearchResult
({ article, position, queryId, queryTokens }: SearchResultProps)
client/src/components/dataset/acl/SearchResult.tsx:11
Function
SelectionFilter
({ 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
Function
client
Client for testing endpoints
api/test/conftest.py:16
Function
favicon
()
api/app/main.py:70
Function
get_related
( request: Request, uid: str, page_number: int = 1, query_id: str = None )
api/app/routers/related.py:18
Function
get_search
(request: Request, query: str)
api/app/routers/search.py:20
Function
handleInput
(event: React.ChangeEvent<HTMLInputElement>)
client/src/components/pages/HomePage/SearchBar.tsx:31
Function
invalid_api
()
api/app/main.py:51
Function
loadMoreResults
()
client/src/components/pages/RelatedPage/RelatedPage.tsx:81
Function
load_metadata
(path)
hnsw/helper.py:10
Function
load_specter_embeddings
(path)
hnsw/helper.py:32
Function
makeAsyncPOSTRequest
(url: string, body: Object)
client/src/shared/Util.ts:30
Function
manifest
()
api/app/main.py:64
Function
post_clicked
(data: SearchLogData)
api/app/routers/related.py:76
Function
post_clicked
(data: SearchLogData)
api/app/routers/search.py:154
Function
post_collapsed
(data: SearchLogData)
api/app/routers/search.py:124
Function
post_expanded
(data: SearchLogData)
api/app/routers/search.py:139
Function
register
(config?: Config)
client/src/serviceWorker.ts:26
Function
root
()
api/app/main.py:88
Function
save_index_to_uid_file
(index_to_uid, index, path)
hnsw/helper.py:52
Function
status
()
api/app/main.py:46
Function
test_log_clicked
(client, mocker)
api/test/routers/related/test_related_log.py:21
Function
test_log_clicked
(client, mocker)
api/test/routers/search/test_search_log.py:38
Function
test_log_collapsed
(client, mocker)
api/test/routers/search/test_search_log.py:24
Function
test_log_expanded
(client, mocker)
api/test/routers/search/test_search_log.py:31
Function
test_status
()
api/test/test_main.py:7
Function
unregister
()
client/src/serviceWorker.ts:132
Method
validate_highlights
(cls, v, values)
api/app/models.py:30