MCPcopy Index your code
hub / github.com/google/adk-python / Lm

Function Lm

src/google/adk/cli/browser/main-3CUQG2IN.js:113–122  ·  view source on GitHub ↗
({comment:i,type:e,value:A},t,n,o)

Source from the content-addressed store, hash-verified

111))
112+(?!
113|$)`,"g")}catch(i){M7=/\n+(?!\n|$)/g}function Lm({comment:i,type:e,value:A},t,n,o){let{blockQuote:a,commentString:r,lineWidth:s}=t.options;if(!a||/\n[\t ]+$/.test(A))return SB(A,t);let l=t.indent||(t.forceBlockIndent||Km(A)?" ":""),g=a==="literal"?!0:a==="folded"||e===$t.BLOCK_FOLDED?!1:e===$t.BLOCK_LITERAL?!0:!JrA(A,s,l.length);if(!A)return g?`|
114`:`>
115`;let C,d;for(d=A.length;d>0;--d){let M=A[d-1];if(M!==`
116`&&M!==" "&&M!==" ")break}let B=A.substring(d),u=B.indexOf(`
117`);u===-1?C="-":A===B||u!==B.length-1?(C="+",o&&o()):C="",B&&(A=A.slice(0,-B.length),B[B.length-1]===`
118`&&(B=B.slice(0,-1)),B=B.replace(M7,`$&${l}`));let E=!1,f,m=-1;for(f=0;f<A.length;++f){let M=A[f];if(M===" ")E=!0;else if(M===`
119`)m=f;else break}let v=A.substring(0,m<f?m+1:f);v&&(A=A.substring(v.length),v=v.replace(/\n+/g,`$&${l}`));let k=(E?l?"2":"1":"")+C;if(i&&(k+=" "+r(i.replace(/ ?[\r\n]+/g," ")),n&&n()),!g){let M=A.replace(/\n+/g,`
120$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`),x=!1,F=Gm(t,!0);a!=="folded"&&e!==$t.BLOCK_FOLDED&&(F.onOverflow=()=>{x=!0});let z=cu(`${v}${M}${B}`,l,Fm,F);if(!x)return`>${k}
121${l}${z}`}return A=A.replace(/\n+/g,`$&${l}`),`|${k}
122${l}${v}${A}${B}`}function YrA(i,e,A,t){let{type:n,value:o}=i,{actualString:a,implicitKey:r,indent:s,indentStep:l,inFlow:g}=e;if(r&&o.includes(`
123`)||g&&/[[\]{},]/.test(o))return SB(o,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return r||g||!o.includes(`
124`)?SB(o,e):Lm(i,e,A,t);if(!r&&!g&&n!==$t.PLAIN&&o.includes(`
125`))return Lm(i,e,A,t);if(Km(o)){if(s==="")return e.forceBlockIndent=!0,Lm(i,e,A,t);if(r&&s===l)return SB(o,e)}let C=o.replace(/\n+/g,`$&

Callers 2

YrAFunction · 0.70
sFunction · 0.70

Calls 11

oFunction · 0.90
rFunction · 0.90
nFunction · 0.90
SBFunction · 0.85
JrAFunction · 0.85
sliceMethod · 0.80
KmFunction · 0.70
GmFunction · 0.70
cuFunction · 0.70
indexOfMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected