We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9347e8 commit 061230cCopy full SHA for 061230c
2 files changed
.gitignore
@@ -0,0 +1 @@
1
+/analysis-data
scripts/generate_fixture_stats.rb
@@ -0,0 +1,31 @@
+$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
2
+require "analyzer"
3
+
4
+output = []
5
+["two-fer"].each do |slug|
6
+ output << slug
7
+ output << "--------"
8
9
+ path = File.expand_path("#{__FILE__}/../../analysis-data/#{slug}")
10
+ p path
11
+ statuses = Hash.new {|h,k|h[k] = 0}
12
+ Dir.foreach(path) do |dir|
13
+ next if dir == "." || dir == ".."
14
15
+ begin
16
+ Analyzer.analyze(slug, "#{path}/#{dir}")
17
+ res = JSON.parse(File.read("#{path}/#{dir}/analysis.json"))
18
+ statuses[res['status']] += 1
19
+ rescue
20
+ statuses["exploded"] += 1
21
+ end
22
23
24
+ statuses.each do |status, score|
25
+ output << "#{status}: #{score}"
26
27
28
+ output << "\n"
29
+end
30
31
+puts output.join("\n")
0 commit comments