Skip to content

Commit

Permalink
wip: post mortem extraction not really working :c
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleoutIce committed Oct 24, 2023
1 parent 3e2682b commit 59d51fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cli/summarizer-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async function getStatisticsSummarizer() {
})
shell.tryToInjectHomeLibPath()
await shell.obtainTmpDir()
await shell.tokenMap()
return new StatisticsSummarizer({
inputPath: options.input,
outputPath: `${outputBase}-final`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ async function processNextLine(data: FunctionDefinitionSummaryInformation<number

const fullPath = context ? path.join(config.sourceBasePath, context) : undefined
const content = fullPath && fs.existsSync(fullPath) ? fs.readFileSync(fullPath, 'utf-8').split('\n') : undefined
console.log(context,fullPath,content)

const forFile: FunctionDefinitionSummaryInformation<number[]> = emptyFunctionDefinitionSummary()

Expand All @@ -247,6 +246,7 @@ async function processNextLine(data: FunctionDefinitionSummaryInformation<number

if(content) {
const functionCode = retrieveOriginalFunctionCode(content, location, length)
console.log(functionCode)
const result = await new SteppingSlicer({
stepOfInterest: 'normalize',
request: requestFromInput(functionCode),
Expand Down

0 comments on commit 59d51fd

Please sign in to comment.