Review feedback

pull/10343/head
Craig Tiller 8 years ago
parent 14d59ac25f
commit 240b20da06
  1. 3
      tools/line_count/collect-history.py
  2. 2
      tools/line_count/collect-now.sh
  3. 3
      tools/line_count/summarize-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)

@ -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

@ -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)

Loading…
Cancel
Save