MCPcopy Create free account

hub / github.com/timelinize/timelinize / functions

Functions1,120 in github.com/timelinize/timelinize

↓ 5 callersMethodFileImport
TODO: write godoc. It is expected that context cancellation will be honored (i.e. return if the context has an error or its done channel is closed), a
timeline/datasource.go:534
↓ 5 callersFunctionItemClassByExtension
ItemClassByExtension uses the file extension to return a best-guess item classification. It returns false if no matching classification could be found
datasources/media/media.go:345
↓ 5 callersMethodMessage
Message updates the current job message or status to show the user.
timeline/jobs.go:723
↓ 5 callersMethodSearch
(ctx context.Context, params ItemSearchParams)
timeline/search.go:178
↓ 5 callersMethodSetKey
SetKey sets the retrieval key for this item. It should be a globally unique value; note that other data sources may collaborate on the same item if th
timeline/graph.go:354
↓ 5 callersMethodWrite
(data []byte)
tlzapp/app.go:525
↓ 5 callersFunctiondirectoryEmpty
directoryEmpty returns true if dirPath is an empty directory except for some common, but non-critical, OS files. If false, the name of the first disco
timeline/timeline.go:156
↓ 5 callersMethodfileIDToPath
fileIDToPath converts a fileID (the checksum by which it is organized in the backup) to the absolute path it can be accessed on disk. The return value
datasources/iphone/iphone.go:182
↓ 5 callersMethodfileIDToRelativePath
fileIDToRelativePath returns the path to the file relative to the root folder of the backup. The term "relative path" here is NOT the same as the "rel
datasources/iphone/iphone.go:190
↓ 5 callersMethodpath
()
datasources/gpx/gpx.go:398
↓ 5 callersFunctionsanitizeFlag
sanitizeFlag turns a flag string like "--foo-bar" into "foo_bar"; i.e. it strips the flag prefix and standardizes its format.
tlzapp/cli2api.go:45
↓ 5 callersFunctionsplitCamelCaseIntoWords
splitCamelCaseIntoWords splits camel-cased strings into words by inserting spaces at the most sensible places. This algorithm isn't perfect as it does
datasources/media/metadata.go:522
↓ 5 callersFunctionstore
(key, val)
frontend/resources/js/app.js:191
↓ 5 callersFunctionuserHomeDir
userHomeDir returns the best guess of the user's home directory, or "." (current directory) if the home directory is unknown (to make it safe to use i
tlzapp/helpers.go:48
↓ 4 callersMethodAddMetadata
AddMetadata adds meta to the item's metadata with the given merge policy.
timeline/graph.go:417
↓ 4 callersFunctionConnectMotionPhoto
ConnectMotionPhoto connects a motion photo for the item represented by ig, at path pictureFile in the fsys, if one exists. It looks for sidecars and e
datasources/media/motionpictures.go:97
↓ 4 callersMethodContains
Contains returns true if the circle approximately contains the given coordinate.
timeline/obfuscation.go:623
↓ 4 callersMethodContinue
Continue should be called by all job actions frequently, typically at the beginning of their main loop (and any longer-running inner loops). It blocks
timeline/jobs.go:646
↓ 4 callersMethodFromEntityWithValue
FromEntityWithValue connects entity to g with a relation that has the given value.
timeline/graph.go:176
↓ 4 callersMethodID
()
timeline/timeline.go:85
↓ 4 callersFunctionIsSidecarVideo
* Motion pictures ("live photos" and similar) are little videos that some cameras take along with a still capture. This is a well-known feature of G
datasources/media/motionpictures.go:63
↓ 4 callersMethodLoadEntity
(id uint64)
timeline/timeline.go:812
↓ 4 callersFunctionNormalizePhoneNumber
NormalizePhoneNumber attempts to parse number and returns a standardized version in E164 format. If the number does not have an explicit region/countr
timeline/entities.go:362
↓ 4 callersMethodObfuscate
Obfuscate returns obfuscated lat/lon values.
timeline/obfuscation.go:628
↓ 4 callersMethodProgress
Progress updates the progress of the job in the DB by adding delta, which is work completed since the previous update, towards the expected total. Thi
timeline/jobs.go:694
↓ 4 callersMethodRepositoryIsEmpty
func (a App) AddAccount(repoID string, dataSourceID string, auth bool, dsOpt json.RawMessage) (timeline.Account, error) { tl, err := getOpenTimeline(
tlzapp/bindings.go:286
↓ 4 callersMethodServe
Serve serves the application server only if it is not already running (possibly in another process). It returns true if it started the application ser
tlzapp/app.go:254
↓ 4 callersMethodTokenSource
(ctx context.Context, token *oauth2.Token)
oauth2client/oauth2.go:109
↓ 4 callersMethodWasDiverted
()
datasources/flighty/types.go:34
↓ 4 callersFunctionautoType
autoType returns the value of str in its JSON type.
tlzapp/argparse.go:90
↓ 4 callersFunctioncoordRound
(x float64, decimalPlaces int)
timeline/processing.go:1387
↓ 4 callersFunctiondegreesToRadians
(d float64)
timeline/obfuscation.go:656
↓ 4 callersFunctiondegreesToRadians
(d float64)
datasources/googlelocation/googlelocation.go:392
↓ 4 callersMethodfileName
()
datasources/twitter/models.go:609
↓ 4 callersFunctionfilenameHasJSONExtAndContains
filenameHasJSONExtAndContains returns true if filename has a ".json" extension and contains one of the strings in the list.
datasources/googlelocation/recognize.go:133
↓ 4 callersFunctionjobProgressUpdate
(job)
frontend/resources/js/jobs.js:117
↓ 4 callersFunctionmapNamesToIDs
(ctx context.Context, db sqliteDB, table string)
timeline/timeline.go:526
↓ 4 callersMethodmatch
match returns a mapping of canonical field names to the matched column indices of the header row.
datasources/contactlist/formats.go:35
↓ 4 callersFunctionnewLocation
(lat, lng, alt float64)
datasources/flighty/flighty_test.go:230
↓ 4 callersFunctionnewPlace
(airportName, exactName string, latitude, longitude, altitude float64, url string)
datasources/flighty/flighty_test.go:238
↓ 4 callersFunctionnoContentElem
()
frontend/resources/js/common-lib.js:1292
↓ 4 callersMethodopenFile
openFile opens a file given its domain and path. The manifest DB maps domain+path to file ID. We look up the file ID from the manifest and then use th
datasources/iphone/iphone.go:153
↓ 4 callersMethodoptimizeDB
optimizeDB runs ANALYZE on the database. It can be very slow. Recommended to run in a goroutine.
timeline/maintenance.go:83
↓ 4 callersFunctionparseExampleTime
(t *testing.T, timeStr string)
datasources/flighty/flighty_test.go:221
↓ 4 callersMethodpipeline
(ctx context.Context, batch []*Graph)
timeline/pipeline.go:43
↓ 4 callersFunctionqualifiesForThumbnail
(mimeType *string)
timeline/thumbnails.go:881
↓ 4 callersFunctionrenderJobPreview
(containerElem, job)
frontend/resources/js/jobs.js:67
↓ 4 callersFunctionsafeRandomString
(n int, sameCase bool, r weakrand.Source)
timeline/itemfiles.go:356
↓ 4 callersFunctionscanItemRow
scanItemRow reads an item from row and returns the structured ItemRow. The item must have been queried to select all of itemDBColumns. It scans column
timeline/graph.go:863
↓ 4 callersFunctionsqlArray
sqlArray builds a placeholder array for SQL queries that will have all the row IDs in it, e.g. "(?, ?, ?)" for use with 'IN' clauses, returning the ar
timeline/timeline.go:1291
↓ 4 callersMethodtranscodeVideo
(ctx context.Context, w http.ResponseWriter, inputVideoFilePath string, inputVideoStream io.Reader, obfuscate
tlzapp/frontend.go:678
↓ 3 callersMethodChangeSettings
(ctx context.Context, newSettings *changeSettingsPayload)
tlzapp/bindings.go:882
↓ 3 callersMethodCheckpoint
Checkpoint creates a checkpoint and syncs the job state with the database. When creating a checkpoint, the total, progress, and message data should be
timeline/jobs.go:746
↓ 3 callersMethodCloseRepository
(repoID string)
tlzapp/bindings.go:179
↓ 3 callersFunctionCocoaNanoToTime
CocoaNanoToTime converts Apple timestamp in nanoseconds to a normal timestamp.
datasources/imessage/appledate.go:48
↓ 3 callersFunctionCocoaSecondsToTime
CocoaSecondsToTime converts Apple timestamp in seconds to a normal timestamp.
datasources/imessage/appledate.go:43
↓ 3 callersMethodCreateJob
CreateJob creates and runs a job described by action, with an estimated total units of work, to be repeated after a certain interval (if > 0). If an i
timeline/jobs.go:49
↓ 3 callersMethodDataSources
(ctx context.Context, targetDSName string)
tlzapp/bindings.go:807
↓ 3 callersFunctionDefaultConfigFilePath
DefaultConfigFilePath returns the file path where configuration is persisted.
tlzapp/config.go:156
↓ 3 callersFunctionDownloadData
DownloadData returns a function that opens the response body for the given url.
timeline/timeline.go:1356
↓ 3 callersFunctionFloatStringToIntE7
FloatStringToIntE7 is the same thing as FloatToIntE7, but takes a string representation of a float as input.
datasources/googlelocation/googlelocation.go:360
↓ 3 callersMethodGetContentType
GetContentType returns the Content-Type of the endpoint considering its default of JSON if method is POST, PUT, PATCH, or DELETE.
tlzapp/endpoints.go:229
↓ 3 callersMethodGetEntity
(repoID string, entityID uint64)
tlzapp/bindings.go:214
↓ 3 callersMethodGetSettings
(ctx context.Context)
tlzapp/bindings.go:862
↓ 3 callersMethodMatchString
(input string)
datasources/contactlist/formats.go:131
↓ 3 callersMethodMergeEntities
(repo string, base uint64, others []uint64)
tlzapp/bindings.go:1002
↓ 3 callersMethodNextGraph
(repoID string, jobID uint64)
tlzapp/bindings.go:757
↓ 3 callersFunctionNormalizePhoneNumber
NormalizePhoneNumber tries to NormalizePhoneNumber the ID (phone number), and simply returns the input if it fails.
datasources/imessage/imessage.go:559
↓ 3 callersFunctionParseBirthday
ParseBirthday parses bday in one of these formats: - "--MMDD" (year is omitted, and as such, the Unix timestamp of the date will compute to be over 2
datasources/vcard/vcard.go:308
↓ 3 callersFunctionParseCocoaDate
TODO: Standardize these function names. It's Core Data API, Cocoa Epoch. ParseCocoaDate converts a date represented by a string of the decimal number
datasources/imessage/appledate.go:33
↓ 3 callersMethodReadFrom
(r io.Reader)
tlzapp/responsewriter.go:262
↓ 3 callersMethodSetTotal
Set the total size of the job in the DB. Ideally, this should only be set once the total size is properly known, not accumulated as you go, since prog
timeline/jobs.go:674
↓ 3 callersMethodShutdown
()
tlzapp/app.go:153
↓ 3 callersMethodSize
Size returns the number of bytes written, not including the response headers.
tlzapp/responsewriter.go:210
↓ 3 callersMethodStartJob
(ctx context.Context, repo string, jobID uint64, startOver bool)
tlzapp/bindings.go:1053
↓ 3 callersMethodWriteHeader
WriteHeader writes the headers with statusCode to the wrapped ResponseWriter unless the response is to be buffered instead. 1xx responses are never bu
tlzapp/responsewriter.go:148
↓ 3 callersMethod_load_model
(self, force_cpu=False)
tlzapp/python/server/server.py:63
↓ 3 callersMethod_switch_to_cpu
(self)
tlzapp/python/server/server.py:93
↓ 3 callersFunctionactivateTooltips
()
frontend/resources/js/common.js:127
↓ 3 callersFunctionadvanceToPersonForm
()
frontend/resources/js/setup.js:4
↓ 3 callersMethodattribute
()
timeline/search.go:1020
↓ 3 callersFunctionchatDBPath
(input timeline.DirEntry)
datasources/imessage/imessage.go:312
↓ 3 callersMethodconvertNamesToIDs
TODO: favorites? or maybe a more flexible albums/lists feature? what to call it... "scrapbooks" or "curations"?
timeline/search.go:373
↓ 3 callersMethoddeleteRepoFiles
(ctx context.Context, logger *zap.Logger, dataFilesToDelete []string)
timeline/maintenance.go:260
↓ 3 callersFunctionentityFromSenderCiteTag
entityFromSenderCiteTag returns the entity described by the given selection, which should be a <cite class="sender"> tag.
datasources/googlevoice/googlevoice.go:347
↓ 3 callersFunctionextractAirport
(airportDB airports.DB, row fieldLookup, field string)
datasources/flighty/flighty.go:290
↓ 3 callersFunctionfilterAndRenderEntitiesList
()
frontend/resources/js/entities.js:5
↓ 3 callersFunctionflagValPairs
flagValPairs parses args and associates flags with their values.
tlzapp/argparse.go:33
↓ 3 callersFunctiongalleryFilterParams
(peekPrevOrNext, peekFromItem)
frontend/resources/js/gallery.js:133
↓ 3 callersFunctionhaversineDistanceEarth
haversineDistanceEarth computes the great-circle distance in kilometers between two points on Earth. The latitude and longitude values must be integer
datasources/googlelocation/googlelocation.go:375
↓ 3 callersFunctionhomeDirUnsafe
homeDirUnsafe is a low-level function that returns the user's home directory from environment variables. Careful: if it cannot be determined, an empty
tlzapp/config.go:241
↓ 3 callersFunctionhourDecimalToHumanTime
(decimalHour)
frontend/resources/js/dashboard.js:265
↓ 3 callersFunctionhumanizeBytes
(size)
frontend/resources/js/common-lib.js:1169
↓ 3 callersMethodid
id returns either the item ID or the attribute ID, whichever is set.
timeline/entities.go:1111
↓ 3 callersMethodidentifyingAttributeID
identifyingAttributeID returns either the known row ID of the attribute identifying the entity, or it will create a pass-thru attribute for the entity
timeline/entities.go:1124
↓ 3 callersFunctionisEmpty
(v any)
timeline/graph.go:611
↓ 3 callersMethodisEmpty
()
datasources/twitter/models.go:402
↓ 3 callersFunctionisNil
isNil returns true if v is nil. It returns true even if v is a non-nil interface (has a type) which has a nil value.
timeline/graph.go:747
↓ 3 callersFunctionisoIEC14496Timestamp
isoIEC14496Timestamp converts the number of seconds since January 1, 1904 (as defined by ISO/IEC 14496-12 5th Edition [2015], page 23) to a normal tim
datasources/media/metadata.go:564
↓ 3 callersFunctionitemImgSrc
(item, thumbnail = false)
frontend/resources/js/common-lib.js:1074
← previousnext →101–200 of 1,120, ranked by callers