MCPcopy Index your code
hub / github.com/deepnote/deepnote / computeStats

Function computeStats

packages/cli/src/commands/stats.ts:37–50  ·  view source on GitHub ↗
(path: string | undefined, options: StatsOptions)

Source from the content-addressed store, hash-verified

35}
36
37async function computeStats(path: string | undefined, options: StatsOptions): Promise<StatsFileResult> {
38 const { absolutePath } = await resolvePathToDeepnoteFile(path)
39
40 const { file: deepnoteFile, warnings } = await loadAndResolveDeepnoteFile(absolutePath)
41 emitInitResolverWarnings(warnings, options.output === 'json')
42
43 debug('Analyzing project...')
44 const { stats } = await analyzeProject(deepnoteFile, { notebook: options.notebook })
45
46 return {
47 path: absolutePath,
48 ...stats,
49 }
50}
51
52function outputStats(stats: StatsFileResult, options: StatsOptions): void {
53 if (options.output === 'json') {

Callers 1

createStatsActionFunction · 0.70

Calls 5

emitInitResolverWarningsFunction · 0.90
debugFunction · 0.90
analyzeProjectFunction · 0.90

Tested by

no test coverage detected