# The views scripts/repo-stats builds over the model it imported, run by # `improvise script` with the output directory as the working directory. # Every `export` here is a table the text report prints. See # context/code/tooling.md section 7. # The prose-to-code ratio is a formula over the kind category's own items. add-formula kind "ProseToCode = prose / code FORMAT .3" # Churn by area, with the deletion ratio (a _Measure formula from the import). create-view "By area" switch-view "By area" set-axis File page set-page File churn set-axis area row set-axis _Measure column set-axis kind none set-axis week none set-axis date none set-axis commit none set-axis entity none set-axis coupled none set-axis crosses-crate none set-axis agent-rules none toggle-prune-empty set-format .0 export report/by-area.csv # Prose, code and other, and the ratio of the first two. create-view "By kind" switch-view "By kind" set-axis File page set-page File churn set-axis kind row set-axis _Measure column set-axis area none set-axis week none set-axis date none set-axis commit none set-axis entity none set-axis coupled none set-axis crosses-crate none set-axis agent-rules none toggle-prune-empty set-format .0 export report/by-kind.csv # Lines added per area per ISO week. create-view "Area by week" switch-view "Area by week" set-axis File page set-page File churn set-axis area row set-axis week column set-axis _Measure page set-page _Measure added set-axis kind none set-axis date none set-axis commit none set-axis entity none set-axis coupled none set-axis crosses-crate none set-axis agent-rules none toggle-prune-empty set-format .0 export report/area-by-week.csv # Lines added per day, from both sources side by side: this script's churn # rows and code-maat's abs-churn. The two columns must agree. create-view "By day" switch-view "By day" set-axis date row set-axis File column set-axis _Measure page set-page _Measure added set-axis area none set-axis kind none set-axis week none set-axis commit none set-axis entity none set-axis coupled none set-axis crosses-crate none set-axis agent-rules none toggle-prune-empty set-format .0 export report/by-day.csv switch-view "By area"