MCPcopy Create free account

hub / github.com/amirgamil/apollo / functions

Functions170 in github.com/amirgamil/apollo

↓ 20 callersMethodrender
(dataIn)
static/js/poseidon.min.js:473
↓ 17 callersMethodbind
(source, handler)
static/js/poseidon.min.js:386
↓ 15 callersMethodconsume
()
static/js/poseidon.min.js:978
↓ 11 callersMethodgetNextWord
(includeQuotes = false)
static/js/poseidon.min.js:931
↓ 11 callersFunctionhtml
(templates, ...values)
static/js/poseidon.min.js:1237
↓ 11 callersMethodupdate
(object)
static/js/poseidon.min.js:566
↓ 9 callersMethodskipToNextChar
()
static/js/poseidon.min.js:983
↓ 8 callersFunctionTokenize
takes in a source of text and converts into an array of stemmed tokens (filtering out stop words and punctuation) This gets called when ingesting new
pkg/apollo/backend/tokenizer.go:72
↓ 8 callersMethodget
(key)
static/js/poseidon.min.js:576
↓ 7 callersFunctioncompareArrays
compare arrays because deepEqual is inconsistent smh
tests/main_test.go:11
↓ 7 callersMethodskipSpaces
()
static/js/poseidon.min.js:972
↓ 4 callersFunctionaddWord
helper function to add word
pkg/apollo/backend/tokenizer.go:14
↓ 4 callersMethodfire
()
static/js/poseidon.min.js:513
↓ 4 callersMethodhandleInput
(el, evt)
static/js/main.js:409
↓ 4 callersMethodhas
(value)
static/js/poseidon.min.js:733
↓ 4 callersMethodnavigate
(path, {replace = false} = {})
static/js/poseidon.min.js:873
↓ 4 callersFunctionnormalize
(vNode)
static/js/poseidon.min.js:147
↓ 4 callersFunctionparseTag
(reader, values)
static/js/poseidon.min.js:1127
↓ 4 callersMethodpeek
()
static/js/poseidon.min.js:920
↓ 3 callersFunctionensureDataExists
called at the global start
pkg/apollo/backend/api.go:51
↓ 3 callersFunctiongetFilesInFolder
(path string, folderName string)
pkg/apollo/sources/utils.go:23
↓ 3 callersMethodgetUntilChar
(char)
static/js/poseidon.min.js:989
↓ 3 callersMethodmatch
(route)
static/js/poseidon.min.js:843
↓ 3 callersMethodon
(...pageRoutes)
static/js/poseidon.min.js:886
↓ 3 callersFunctionparseJSExpr
(reader, values, attribute)
static/js/poseidon.min.js:1076
↓ 3 callersMethodremove
()
static/js/poseidon.min.js:456
↓ 3 callersMethodsetStore
(data)
static/js/poseidon.min.js:689
↓ 3 callersMethodshowAuthError
()
static/js/main.js:317
↓ 3 callersFunctionwriteRecordListToDisk
helper method which writes the current the record list to disk parameters determine which record list we write
pkg/apollo/backend/api.go:122
↓ 2 callersFunctionAnalyze
(source string)
pkg/apollo/backend/tokenizer.go:63
↓ 2 callersFunctionGetRecordFromData
(currData schema.Data, uniqueID string)
pkg/apollo/backend/api.go:172
↓ 2 callersFunctionRefreshInvertedIndex
highest-level function that is called at regular intervals to recompute the ENTIRE inverted index to integrate new data added via Apollo, resync data
pkg/apollo/backend/api.go:134
↓ 2 callersFunctionScrape
(link string)
pkg/apollo/schema/crawler.go:17
↓ 2 callersMethodadd
(newData)
static/js/poseidon.min.js:719
↓ 2 callersMethodaddHandler
(handler)
static/js/poseidon.min.js:530
↓ 2 callersFunctionflushSavedRecordsIntoInvertedIndex
takes all of the saved records and puts them in our inverted index
pkg/apollo/backend/api.go:165
↓ 2 callersFunctionfoundClosingTag
(closingTag, reader)
static/js/poseidon.min.js:1061
↓ 2 callersFunctiongetRecordFromID
helper method which return a record from the associated id
pkg/apollo/backend/searcher.go:78
↓ 2 callersFunctiongetRegexFromRouteString
(route)
static/js/poseidon.min.js:784
↓ 2 callersFunctioninstantiate
(vNode)
static/js/poseidon.min.js:75
↓ 2 callersFunctionloadGlobals
()
pkg/apollo/backend/api.go:158
↓ 2 callersFunctionloadRecordsList
(path string, list map[string]schema.Record)
pkg/apollo/backend/api.go:85
↓ 2 callersMethodsetSearchInput
(value)
static/js/main.js:173
↓ 2 callersMethodskipPastChar
(char)
static/js/poseidon.min.js:1024
↓ 2 callersFunctionupdateDOMProperties
(node, prevVNode, nextVNode)
static/js/poseidon.min.js:15
↓ 2 callersFunctionwriteTokenFrequenciesToInvertedIndex
write a map of tokens to their counts in our inverted index
pkg/apollo/backend/api.go:210
↓ 1 callersFunctionAddNewEntryToLocalData
(data schema.Data)
pkg/apollo/backend/api.go:222
↓ 1 callersFunctionCollectionStoreOf
(classOf)
static/js/poseidon.min.js:775
↓ 1 callersFunctionGetData
TODO: make sourcesMap a global so we don't keep passing large maps in parameters TODO: should return map[string]schema.Data so we have control over th
pkg/apollo/sources/source.go:11
↓ 1 callersFunctionHandleYouTubeVideo
(link string)
pkg/apollo/schema/crawler.go:33
↓ 1 callersFunctionInitializeFilesAndData
helper function which should be called when the program is initialized so that the necessary files and paths exist in our database
pkg/apollo/backend/api.go:62
↓ 1 callersFunctionListOf
(itemOf)
static/js/poseidon.min.js:670
↓ 1 callersFunctionSearch
TODO: should search titles too (and put high probability mass on those tokens) given a query string a search type (AND / OR ) returns a list of matche
pkg/apollo/backend/searcher.go:18
↓ 1 callersFunctionStart
()
pkg/apollo/server.go:136
↓ 1 callersFunctionaddNewBooksToDb
(books []Book)
pkg/apollo/sources/kindle.go:106
↓ 1 callersFunctionaddNewEpisodesToDb
(episodes []schema.Data)
pkg/apollo/sources/podcast.go:97
↓ 1 callersMethodaddStyle
(vdom)
static/js/poseidon.min.js:410
↓ 1 callersFunctioncheck
(e error)
pkg/apollo/server.go:19
↓ 1 callersFunctioncheckForNewBooks
()
pkg/apollo/sources/kindle.go:120
↓ 1 callersFunctioncheckForNewEpisodes
(rssFeed RSS)
pkg/apollo/sources/podcast.go:108
↓ 1 callersFunctionconvertBooksToData
()
pkg/apollo/sources/kindle.go:72
↓ 1 callersFunctionconvertToReqFormat
takes a lists of thoughts and converts it into the require data struct we need for the api
pkg/apollo/sources/athena.go:43
↓ 1 callersFunctioncountFrequencyTokens
takes a string of tokens and returns a map of each token to its frequency
pkg/apollo/backend/api.go:96
↓ 1 callersMethodcreate
(data)
static/js/poseidon.min.js:466
↓ 1 callersFunctioncreateFile
(path string)
pkg/apollo/backend/api.go:41
↓ 1 callersFunctioncss
(templates, ...values)
static/js/poseidon.min.js:1381
↓ 1 callersFunctiondebounce
(fn, delay)
static/js/main.js:2
↓ 1 callersFunctiondeleteFiles
(path string, folderName string)
pkg/apollo/sources/utils.go:34
↓ 1 callersFunctionensureFileExists
(path string)
pkg/apollo/sources/utils.go:9
↓ 1 callersMethodfetch
(query)
static/js/main.js:24
↓ 1 callersFunctionfindEpisodeInRSSWithName
(name string, rssFeed RSS)
pkg/apollo/sources/podcast.go:88
↓ 1 callersFunctionflushDataSourcesIntoInvertedIndex
method takes data and flushes it into our inverted index Note since th
pkg/apollo/backend/api.go:201
↓ 1 callersFunctiongenerateUniqueHash
(string)
static/js/poseidon.min.js:347
↓ 1 callersFunctiongetAthena
()
pkg/apollo/sources/athena.go:21
↓ 1 callersFunctiongetDataFromList
(listData string, listKey string, index int)
pkg/apollo/sources/zeus.go:65
↓ 1 callersFunctiongetKindle
Kindle does not directly provide a way to get highlights except via https://read.amazon.com/ I use a readwise extension to download my highlights into
pkg/apollo/sources/kindle.go:48
↓ 1 callersFunctiongetPodcast
follows similar approach to Kindle, podcast folder - put new txt files there
pkg/apollo/sources/podcast.go:40
↓ 1 callersMethodgetQueryParameters
(queryParameters, routeParams)
static/js/poseidon.min.js:833
↓ 1 callersFunctiongetSurroundingText
helper method to get small window of matching result don't send the full text back to the client cause this is too slow
pkg/apollo/backend/searcher.go:138
↓ 1 callersMethodgetTagArrayFromString
(tagString)
static/js/main.js:365
↓ 1 callersMethodgetUntilWord
(word)
static/js/poseidon.min.js:999
↓ 1 callersFunctiongetZeus
()
pkg/apollo/sources/zeus.go:23
↓ 1 callersFunctionhighlightContent
(text, query)
static/js/main.js:17
↓ 1 callersFunctionidf
idf = log(total number of documents / number of documents that contain term) - ensures tokens which are rarer get a higher score
pkg/apollo/backend/searcher.go:87
↓ 1 callersMethodinit
()
static/js/main.js:484
↓ 1 callersFunctioninitConstants
load the sets for the first time to prevent repeated work
pkg/apollo/backend/tokenizer.go:97
↓ 1 callersMethodinitList
(item, store, remove)
static/js/poseidon.min.js:598
↓ 1 callersFunctioninitStyleSheet
(userJSONStyles, name, rules)
static/js/poseidon.min.js:335
↓ 1 callersFunctioninjectStyles
(rules)
static/js/poseidon.min.js:356
↓ 1 callersFunctionisValidPassword
(password string)
pkg/apollo/server.go:129
↓ 1 callersMethoditemsChanged
()
static/js/poseidon.min.js:619
↓ 1 callersFunctionloadAthenaData
()
pkg/apollo/sources/athena.go:32
↓ 1 callersFunctionloadInvertedIndex
loads the inverted path from disk to memory opt to use a more optimized JSON decoding and encoding library than Go's native one as our inverted index
pkg/apollo/backend/api.go:74
↓ 1 callersFunctionloadKindle
()
pkg/apollo/sources/kindle.go:112
↓ 1 callersMethodloadPreview
()
static/js/main.js:70
↓ 1 callersMethodloadSearchResults
(evt)
static/js/main.js:158
↓ 1 callersFunctionparseCSSJSON
(JSONCSS, containerHash, styleRules, specialTag = false)
static/js/poseidon.min.js:286
↓ 1 callersFunctionparseCSStringToDict
(reader, dict, selector, values)
static/js/poseidon.min.js:1254
↓ 1 callersFunctionparseChildren
(closingTag, reader, values)
static/js/poseidon.min.js:1033
↓ 1 callersFunctionperformWork
()
static/js/poseidon.min.js:107
next →1–100 of 170, ranked by callers