MCPcopy Create free account
hub / github.com/Noumena-Network/code / makeLargeRenderedFileCode

Function makeLargeRenderedFileCode

src/ink/highlightedCodePerfHarness.tsx:46–55  ·  view source on GitHub ↗
(
  lineCount = 640,
  lineWidth = 96,
)

Source from the content-addressed store, hash-verified

44 * previews alive in the transcript, not from tiny examples.
45 */
46export function makeLargeRenderedFileCode(
47 lineCount = 640,
48 lineWidth = 96,
49): string {
50 return Array.from(
51 { length: lineCount },
52 (_, line) =>
53 `export const value_${line.toString(36).padStart(3, '0')} = '${`${line}`.padEnd(lineWidth, 'x')}';`,
54 ).join('\n')
55}
56
57function summarizeFrames(
58 scenario: string,

Callers 1

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected