UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

17 lines (16 loc) 658 B
import type { ClusterReport } from './clusterer'; export interface FileBasedTable { header: string[]; rows: string[][]; } /** * The purpose of this function is to reformat {@link ClusterReport} in way that lists file-based contributions. * E.g., "the file with id 12 contained the assignment with `<-` 3 times". * Feature Values are listed in the header. * @param report - the report to reformat */ export declare function fileBasedCount(report: ClusterReport): FileBasedTable; /** * The threshold will cap of values larger to the threshold. */ export declare function writeFileBasedCountToFile(table: FileBasedTable, filepath: string): void;