Commit 202a8bbeef1b3706603a11bee6674540bbf48202
1 parent
119aa027
Exists in
master
and in
1 other branch
fix syntax issue
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/tasks/test_api.rake
... | ... | @@ -314,7 +314,7 @@ namespace :test_api do |
314 | 314 | sum = total_appearances = appearances_by_choice_id.values.inject(0) {|sum, x| sum +=x} |
315 | 315 | mean = average_appearances = total_appearances.to_f / appearances_by_choice_id.size.to_f |
316 | 316 | |
317 | - if sum > 0: | |
317 | + if sum > 0 | |
318 | 318 | stddev = Math.sqrt( appearances_by_choice_id.values.inject(0) { |sum, e| sum + (e - mean) ** 2 } / appearances_by_choice_id.size.to_f ) |
319 | 319 | |
320 | 320 | # add small number to standard deviation to give some leniency when stddev is low | ... | ... |