Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: heuristics/distillable/write_features_csv.py

Issue 1620043002: Add scripts for distillability modelling (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: set upstream patchset, identical to patch set 2 Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « heuristics/distillable/server.py ('k') | quick_score.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import argparse 6 import argparse
7 import csv 7 import csv
8 import json 8 import json
9 import os 9 import os
10 import shutil 10 import shutil
11 import sys 11 import sys
12 12
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 writer = csv.writer(csvfile) 51 writer = csv.writer(csvfile)
52 writer.writerow(header) 52 writer.writerow(header)
53 for e in merged: 53 for e in merged:
54 writer.writerow(e) 54 writer.writerow(e)
55 55
56 return 0 56 return 0
57 57
58 if __name__ == '__main__': 58 if __name__ == '__main__':
59 sys.exit(main(sys.argv[1:])) 59 sys.exit(main(sys.argv[1:]))
60 60
OLDNEW
« no previous file with comments | « heuristics/distillable/server.py ('k') | quick_score.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698