<commit_before><%

chart = GoogleChart::LineChart.new('650x300',"Proposals over time",false)

data_sets = {
  'All Proposals' => {
    :color => "000000",
    :records => @proposals
  }
}

@event.tracks.each do |track|
  data_sets[track.title] = {
    :color => track.color,
    :records => track.proposals.find(:all,:order => 'created_at')
  }
end

data_sets.each do |name,set|
  date_cursor = @proposals.first.created_at.to_date
  data = [0]
  previous_date = nil
  set[:records].each_with_index do |proposal,i|
    proposal_date = proposal.created_at.to_date
    if proposal_date != previous_date<commit_msg>Increasing chart height.<commit_after><%

chart = GoogleChart::LineChart.new('650x400',"Proposals over time",false)

data_sets = {
  'All Proposals' => {
    :color => "000000",
    :records => @proposals
  }
}

@event.tracks.each do |track|
  data_sets[track.title] = {
    :color => track.color,
    :records => track.proposals.find(:all,:order => 'created_at')
  }
end

data_sets.each do |name,set|
  date_cursor = @proposals.first.created_at.to_date
  data = [0]
  previous_date = nil
  set[:records].each_with_index do |proposal,i|
    proposal_date = proposal.created_at.to_date
    if proposal_date != previous_date
{'fraction_non_alphanumeric': 0.14841849148418493, 'fraction_numerical': 0.021086780210867802, 'mean_word_length': 4.228813559322034, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4649370', 'n_tokens_mistral': 473, 'n_tokens_neox': 453, 'n_words': 79}