MCPcopy Index your code
hub / github.com/dataease/SQLBot / compileList

Function compileList

frontend/public/swagger-ui-bundle.js:20518–20524  ·  view source on GitHub ↗
(s, i)

Source from the content-addressed store, hash-verified

20516 a
20517 )
20518 function compileList(s, i) {
20519 ;(o && (i = i.map((s) => s.toLowerCase())),
20520 i.forEach(function (o) {
20521 const i = o.split('|')
20522 a[i[0]] = [s, scoreForKeyword(i[0], i[1])]
20523 }))
20524 }
20525 }
20526 function scoreForKeyword(s, o) {
20527 return o

Callers 2

compileKeywordsFunction · 0.85

Calls 3

scoreForKeywordFunction · 0.85
mapMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected