Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Debian/dcs
/ functions
Functions
1,028 in github.com/Debian/dcs
⨍
Functions
1,028
◇
Types & classes
198
↓ 1 callers
Function
markFed
(pkg string)
cmd/dcs-feeder/feeder.go:514
↓ 1 callers
Method
matchString
(b string, beginText, endText bool)
regexp/match.go:313
↓ 1 callers
Function
matches
(args []string)
cmd/dcs/matches.go:22
↓ 1 callers
Method
matchesWithBuffer
(t Trigram, buffers *bufferPair)
internal/index/read.go:447
↓ 1 callers
Function
maxRune
(n int)
regexp/utf.go:124
↓ 1 callers
Method
maybeMadvise
release every 512KB maybeMadvise calls MADV_DONTNEED on processed pages to reduce RSS.
internal/index/read.go:147
↓ 1 callers
Function
measure
(dir string, pos bool)
cmd/dcs/du.go:59
↓ 1 callers
Method
measure
(idx int, query string, pos, skipFile, skipGrep bool)
cmd/dcs/replay.go:460
↓ 1 callers
Function
merge
Calls /merge on the specified shard in a period of inactivity (2 minutes after being called), or every 10 minutes in case there is continuous activity
cmd/dcs-feeder/feeder.go:127
↓ 1 callers
Function
merge
(args []string)
cmd/dcs/merge.go:19
↓ 1 callers
Function
mergeDocidMaps
(destdir string, srcdirs []string)
internal/index/merge.go:113
↓ 1 callers
Function
mergeOr
(l1, l2 []uint32)
internal/index/query.go:118
↓ 1 callers
Function
mergeOr
(l1, l2 []uint32)
index/read.go:413
↓ 1 callers
Method
mergePost
mergePost reads the flushed index entries and merges them into posting lists, writing the resulting lists to out.
index/write.go:296
↓ 1 callers
Function
mergeToShard
Merges all packages in *unpackedPath into a big index shard.
cmd/dcs-package-importer/importer.go:314
↓ 1 callers
Function
mmap
mmap maps the given file into memory.
index/read.go:446
↓ 1 callers
Function
myPostingAnd
(data []byte, count int, list []uint32, restrict []uint32)
index/myvarint.go:134
↓ 1 callers
Function
myPostingLast
(data []byte, count uint32, fileid uint32)
index/myvarint.go:184
↓ 1 callers
Function
myPostingList
(data []byte, count int, restrict []uint32)
index/myvarint.go:117
↓ 1 callers
Function
myPostingOr
(data []byte, count int, list []uint32, restrict []uint32)
index/myvarint.go:157
↓ 1 callers
Function
n
(t,w,r)
static/highlightjs.min.js:1
↓ 1 callers
Function
needRefeed
(pkg string)
cmd/dcs-feeder/feeder.go:493
↓ 1 callers
Function
newDocidReader
(dir string)
internal/index/read.go:35
↓ 1 callers
Function
oneByteRange
(i *syntax.Inst)
regexp/utf.go:72
↓ 1 callers
Function
onloadcssdefined
( cb )
static/loadCSS.js:44
↓ 1 callers
Function
p
(e)
static/url-search-params.min.js:2
↓ 1 callers
Function
p4getx16
internal/turbopfor/vp4.h:307
↓ 1 callers
Function
p4getx32
internal/turbopfor/vp4.h:311
↓ 1 callers
Function
p4getx8
---------- Get a single value with index "idx" from a "p4encx32" packed array
internal/turbopfor/vp4.h:302
↓ 1 callers
Function
packageImporter
()
cmd/dcs-package-importer/importer.go:572
↓ 1 callers
Function
parseCacheControl
(headers http.Header)
internal/openapiclient/client.go:405
↓ 1 callers
Function
pb
()
static/jquery.min.js:2
↓ 1 callers
Function
periodically
(checkFunc func() healthUpdate, updates chan healthUpdate)
cmd/dcs-web/health/health.go:30
↓ 1 callers
Function
popconInstallations
(binaryPackages []godebiancontrol.Paragraph)
cmd/dcs-compute-ranking/popcon.go:20
↓ 1 callers
Function
posting
(args []string)
cmd/dcs/posting.go:27
↓ 1 callers
Method
postingAnd
(list []uint32, tri uint32, restrict []uint32)
internal/index/query.go:179
↓ 1 callers
Method
postingOr
(list []uint32, tri uint32, restrict []uint32)
internal/index/query.go:199
↓ 1 callers
Method
postingQuery
(qry *Query, restrict []uint32)
internal/index/query.go:33
↓ 1 callers
Method
postingQuery
(q *Query, restrict []uint32)
index/read.go:337
↓ 1 callers
Method
putUint32flush
()
internal/index/pforwriter.go:32
↓ 1 callers
Function
query
(args []string)
cmd/dcs/query.go:32
↓ 1 callers
Method
query
(query *index.Query)
internal/sourcebackend/sourcebackend.go:276
↓ 1 callers
Function
queryBackend
(ctx context.Context, queryid, src string, backend sourcebackendpb.SourceBackendClient, backendidx int, search
cmd/dcs-web/querymanager.go:183
↓ 1 callers
Function
queryExists
queryExists returns true if a query with the specified queryid exists and is not expired yet.
cmd/dcs-web/querymanager.go:284
↓ 1 callers
Method
queryPositional
(literal string)
internal/sourcebackend/sourcebackend.go:253
↓ 1 callers
Function
raw
(args []string)
cmd/dcs/raw.go:28
↓ 1 callers
Function
readMeta
(dir, typ string, idx map[Trigram][]uint32, idxid uint32)
internal/index/merge.go:35
↓ 1 callers
Function
ready
( cb )
static/loadCSS.js:29
↓ 1 callers
Function
recordResource
recordResource appends a line to a file in -localnet_dir so that we can clean up resources (tempdirs, pids) when being called with -stop later.
internal/localdcs/localdcs.go:99
↓ 1 callers
Function
renderPerPackage
(w http.ResponseWriter, r *http.Request, queryid string, page int)
cmd/dcs-web/serverrendered.go:119
↓ 1 callers
Function
replay
(args []string)
cmd/dcs/replay.go:511
↓ 1 callers
Function
s
(r,O)
static/highlightjs.min.js:1
↓ 1 callers
Function
search
(args []string)
cmd/dcs/search.go:29
↓ 1 callers
Function
sendPaginationUpdate
Caller needs to hold s.clientsMu
cmd/dcs-web/querymanager.go:462
↓ 1 callers
Function
serveAPIOnMux
(mux *http.ServeMux, apiOpts apikeys.Options)
cmd/dcs-web/api.go:323
↓ 1 callers
Function
setBody
Set request body from an interface{}
internal/openapiclient/client.go:351
↓ 1 callers
Method
siftUp
(j int)
index/write.go:452
↓ 1 callers
Function
startQuery
(queryid string, querystate queryState)
cmd/dcs-web/querymanager.go:291
↓ 1 callers
Method
stepByte
stepByte steps runq to nextq consuming c and then expanding according to flag. It returns true if a match ends immediately before c. c is either an in
regexp/match.go:159
↓ 1 callers
Method
stepEmpty
stepEmpty steps runq to nextq expanding according to flag.
regexp/match.go:149
↓ 1 callers
Function
storeResult
(queryid string, backendidx int, result *sourcebackendpb.Match, resultLen int)
cmd/dcs-web/querymanager.go:479
↓ 1 callers
Function
toByteProg
(prog *syntax.Prog)
regexp/utf.go:21
↓ 1 callers
Function
toEventProto
TODO: consider refactoring so that protos are retained instead of JSON bytes. maybe accompanied by a lazily-initialized JSON version?
cmd/dcs-web/dcs-web.go:512
↓ 1 callers
Function
trigram
(args []string)
cmd/dcs/trigram.go:18
↓ 1 callers
Function
trigramsImply
(t []string, q *Query)
internal/index/regexp.go:199
↓ 1 callers
Function
trigramsImply
(t []string, q *Query)
index/regexp.go:199
↓ 1 callers
Function
u
()
static/highlightjs.min.js:1
↓ 1 callers
Function
uc
(a,b,c)
static/jquery.min.js:4
↓ 1 callers
Function
unpack
(dscPath, unpacked string)
cmd/dcs-package-importer/importer.go:481
↓ 1 callers
Function
unpackAndIndex
unpackAndIndex unpacks a .dsc file, indexes its contents and deletes the .dsc and referenced files.
cmd/dcs-package-importer/importer.go:522
↓ 1 callers
Function
validUTF8
validUTF8 reports whether the byte pair can appear in a valid sequence of UTF-8-encoded code points.
internal/index/write.go:130
↓ 1 callers
Function
validUTF8
validUTF8 reports whether the byte pair can appear in a valid sequence of UTF-8-encoded code points.
index/write.go:592
↓ 1 callers
Function
vb
(a,b,c,d,e,f)
static/jquery.min.js:2
↓ 1 callers
Function
vc
(a,b,c,d)
static/jquery.min.js:4
↓ 1 callers
Function
verifyBinariesAreExecutable
()
internal/localdcs/localdcs.go:73
↓ 1 callers
Function
verifyMatches
TODO: refactor to verifyBundle(), use bcmills concurrency pattern
cmd/dcs/replay.go:125
↓ 1 callers
Function
w
(M,r)
static/highlightjs.min.js:1
↓ 1 callers
Method
writeByte
(x byte)
index/write.go:508
↓ 1 callers
Method
writeDocid
(dir string, trigrams []Trigram)
internal/index/write.go:355
↓ 1 callers
Method
writeDocidMap
writeDocidMap creates the index’s docid.map file, which is a list of \n-separated strings (for easy printing by humans using less(1) or strings(1)), f
internal/index/write.go:333
↓ 1 callers
Function
writeDocids
(destdir string, trigrams []Trigram, idxDocid map[Trigram][]uint32, idxMetaDocid []indexMeta)
internal/index/merge.go:252
↓ 1 callers
Function
writePos
(destdir string, trigrams []Trigram, idxDocid map[Trigram][]uint32, idxMetaPos []indexMeta)
internal/index/merge.go:407
↓ 1 callers
Method
writePos
(dir string, trigrams []Trigram)
internal/index/write.go:413
↓ 1 callers
Function
writePosrel
(destdir string, trigrams []Trigram, idxDocid map[Trigram][]uint32, idxMetaPos []indexMeta, idxMetaPosrel []po
internal/index/merge.go:343
↓ 1 callers
Method
writePosrel
(dir string, trigrams []Trigram)
internal/index/write.go:468
↓ 1 callers
Method
writePostingList
Directly writes the entire posting list to w. Useful to avoid function call overhead, and also expects to be called from ConcatN only (i.e. takes shor
index/merge.go:398
↓ 1 callers
Function
writeToDisk
(queryid string)
cmd/dcs-web/querymanager.go:671
Method
AddFile
AddFile adds the file with the given name (opened using os.Open) to the index. It logs errors using package log.
index/write.go:116
Method
AddFlags
()
regexp/match.go:368
Function
B
(a,b)
static/jquery.min.js:2
Function
BenchmarkConcatN
(b *testing.B)
internal/index/concatn_test.go:268
Function
BenchmarkRewriteQuery
(b *testing.B)
cmd/dcs-web/search/query-rewrite_test.go:20
Method
Body
Body returns the raw bytes of the response
internal/openapiclient/client.go:468
Function
CacheExpires
CacheExpires helper function to determine remaining time before repeating a request.
internal/openapiclient/client.go:424
Method
ChangeBasePath
Change base path to allow switching to mocks
internal/openapiclient/client.go:153
Method
Close
()
internal/index/pforwriter.go:80
Method
Close
()
internal/index/read.go:51
Method
Close
()
internal/index/read.go:133
Method
Close
()
internal/index/read.go:364
Method
CloseAndRecv
()
internal/proto/packageimporterpb/packageimporter_grpc.pb.go:69
← previous
next →
501–600 of 1,028, ranked by callers