MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / f

Function f

hyperagent-ext/media/scripts/highlight.min.js:51–55  ·  view source on GitHub ↗
(e,{joinWith:n})

Source from the content-addressed store, hash-verified

49 function _(e){return RegExp(e.toString()+"|").exec("").length-1}
50 const h=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
51 ;function f(e,{joinWith:n}){let t=0;return e.map((e=>{t+=1;const n=t
52 ;let a=d(e),i="";for(;a.length>0;){const e=h.exec(a);if(!e){i+=a;break}
53 i+=a.substring(0,e.index),
54 a=a.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+(Number(e[1])+n):(i+=e[0],
55 "("===e[0]&&t++)}return i})).map((e=>`(${e})`)).join(n)}
56 const E="[a-zA-Z]\\w*",y="[a-zA-Z_]\\w*",w="\\b\\d+(\\.\\d+)?",N="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",v="\\b(0b[01]+)",O={
57 begin:"\\\\[\\s\\S]",relevance:0},k={scope:"string",begin:"'",end:"'",
58 illegal:"\\n",contains:[O]},x={scope:"string",begin:'"',end:'"',illegal:"\\n",

Callers 7

WFunction · 0.70
compileMethod · 0.70
hFunction · 0.70
gFunction · 0.70
EFunction · 0.70
wFunction · 0.70
NFunction · 0.70

Calls 15

dFunction · 0.85
ErrorClass · 0.85
QFunction · 0.85
JFunction · 0.85
mapMethod · 0.80
replaceMethod · 0.80
considerAllMethod · 0.80
closeAllNodesMethod · 0.80
finalizeMethod · 0.80
toHTMLMethod · 0.80
vFunction · 0.70
KFunction · 0.70

Tested by

no test coverage detected