diff options
author | Craig Tiller <ctiller@google.com> | 2017-03-29 14:46:34 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-03-29 14:46:34 -0700 |
commit | 240b20da06e717ffdb921330093d5c8cef9a0f21 (patch) | |
tree | 6be007b270afb87b45b808c555ef6bc53d9fd112 /tools/line_count | |
parent | 14d59ac25f29c7f0c4ca2e9cf9bea2deb9dcf6a0 (diff) |
Review feedback
Diffstat (limited to 'tools/line_count')
-rwxr-xr-x | tools/line_count/collect-history.py | 3 | ||||
-rw-r--r-- | tools/line_count/collect-now.sh | 2 | ||||
-rwxr-xr-x | tools/line_count/summarize-history.py | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/tools/line_count/collect-history.py b/tools/line_count/collect-history.py index 858a6e1d30..4c1bf73b1e 100755 --- a/tools/line_count/collect-history.py +++ b/tools/line_count/collect-history.py @@ -31,6 +31,9 @@ import subprocess import datetime +# this script is only of historical interest: it's the script that was used to +# bootstrap the dataset + def daterange(start, end): for n in range(int((end - start).days)): yield start + datetime.timedelta(n) diff --git a/tools/line_count/collect-now.sh b/tools/line_count/collect-now.sh index 2db26298dc..44f4b4ed31 100644 --- a/tools/line_count/collect-now.sh +++ b/tools/line_count/collect-now.sh @@ -31,6 +31,6 @@ set -ex cloc --vcs=git --by-file --yaml --out=cloc.yaml . -tools/line_count/yaml2csv -i cloc.yaml -d `date +%Y-%m-%d` -o cloc.csv +tools/line_count/yaml2csv.py -i cloc.yaml -d `date +%Y-%m-%d` -o cloc.csv bq load line_counts.grpc cloc.csv diff --git a/tools/line_count/summarize-history.py b/tools/line_count/summarize-history.py index 756dc79a4d..cb6d570f66 100755 --- a/tools/line_count/summarize-history.py +++ b/tools/line_count/summarize-history.py @@ -32,6 +32,9 @@ import subprocess import datetime +# this script is only of historical interest: it's the script that was used to +# bootstrap the dataset + def daterange(start, end): for n in range(int((end - start).days)): yield start + datetime.timedelta(n) |