From 240b20da06e717ffdb921330093d5c8cef9a0f21 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 29 Mar 2017 14:46:34 -0700 Subject: [PATCH] Review feedback --- tools/line_count/collect-history.py | 3 +++ tools/line_count/collect-now.sh | 2 +- tools/line_count/summarize-history.py | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/line_count/collect-history.py b/tools/line_count/collect-history.py index 858a6e1d30c..4c1bf73b1e1 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 2db26298dc4..44f4b4ed310 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 756dc79a4dc..cb6d570f665 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)