| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 | syntax = "proto3";message Metadata {    // this format is versioned    int32 version = 1;    // git hash of the revision from which Hercules is built    string hash = 2;    // repository's name    string repository = 3;    // timestamp of the first analysed commit    int64 begin_unix_time = 4;    // timestamp of the last analysed commit    int64 end_unix_time = 5;    // number of processed commits    int32 commits = 6;}message BurndownSparseMatrixRow {    // the first `len(column)` elements are stored,    // the rest `number_of_columns - len(column)` values are zeros    repeated uint32 columns = 1;}message BurndownSparseMatrix {    string name = 1;    int32 number_of_rows = 2;    int32 number_of_columns = 3;    // `len(row)` matches `number_of_rows`    repeated BurndownSparseMatrixRow rows = 4;}message BurndownAnalysisResults {    // how many days are in each band [burndown_project, burndown_file, burndown_developer]    int32 granularity = 1;    // how frequently we measure the state of each band [burndown_project, burndown_file, burndown_developer]    int32 sampling = 2;    // always exists    BurndownSparseMatrix project = 3;    // this is included if `-burndown-files` was specified    repeated BurndownSparseMatrix files = 4;    // these two are included if `-burndown-people` was specified    repeated BurndownSparseMatrix people = 5;    // rows and cols order correspond to `burndown_developer`    CompressedSparseRowMatrix people_interaction = 6;}message CompressedSparseRowMatrix {    int32 number_of_rows = 1;    int32 number_of_columns = 2;    // https://en.wikipedia.org/wiki/Sparse_matrix#Compressed_sparse_row_.28CSR.2C_CRS_or_Yale_format.29    repeated int64 data = 3;    repeated int32 indices = 4;    repeated int64 indptr = 5;}message Couples {    // name of each `matrix`'s row and column    repeated string index = 1;    // is always square    CompressedSparseRowMatrix matrix = 2;}message TouchedFiles {    repeated int32 files = 1;  // values correspond to `file_couples::index`}message DeveloperTouchedFiles {    // order corresponds to `developer_couples::index`    repeated TouchedFiles developers = 1;}message CouplesAnalysisResults {    Couples file_couples = 6;    Couples developer_couples = 7;    DeveloperTouchedFiles touched_files = 8;}message UASTChange {    string file_name = 1;    string src_before = 2;	string src_after = 3;	string uast_before = 4;	string uast_after = 5;}message UASTChangesSaverResults {    repeated UASTChange changes = 1;}message AnalysisResults {    Metadata header = 1;    // the mapped values are dynamic messages which require the second parsing pass.    map<string, bytes> contents = 2;}
 |