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

Function scoreForKeyword

frontend/public/swagger-ui-bundle.js:20526–20534  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

20524 }
20525 }
20526 function scoreForKeyword(s, o) {
20527 return o
20528 ? Number(o)
20529 : (function commonKeyword(s) {
20530 return fe.includes(s.toLowerCase())
20531 })(s)
20532 ? 0
20533 : 1
20534 }
20535 function compileLanguage(s, { plugins: o }) {
20536 function langRe(o, i) {
20537 return new RegExp(source(o), 'm' + (s.case_insensitive ? 'i' : '') + (i ? 'g' : ''))

Callers 1

compileListFunction · 0.85

Calls 1

includesMethod · 0.45

Tested by

no test coverage detected