<commit_before>class ChartsDeviationController < ChartsController

  unloadable
  
  protected  

  def get_data
    rows = ChartTimeEntry.get_aggregation(:issue_id, @conditions)

    done_ratios = ChartDoneRatio.get_aggregation_for_issue(@conditions)

    rows.sort! do |row1, row2|
      row1.group_id <=> row2.group_id
    end

    labels = []
    max = 0

    total_logged_hours = 0
    total_estimated_hours = 0
    total_remaining_hours = 0
    total_done_ratio = 0
    total_remaining_ratio = 0
    total_logged_ratio = 0

    logged_values = []
    remaining_values = []

    logged_hours_for_not_estimated_issues = 0

    issues_tree = {}
<commit_msg>fixed #12 Deviation throws internal error<commit_after>class ChartsDeviationController < ChartsController

  unloadable
  
  protected  

  def get_data
    rows = ChartTimeEntry.get_aggregation(:issue_id, @conditions)

    done_ratios = ChartDoneRatio.get_aggregation_for_issue(@conditions)

    rows.sort! do |row1, row2|
      row1.group_id.to_i <=> row2.group_id.to_i
    end

    labels = []
    max = 0

    total_logged_hours = 0
    total_estimated_hours = 0
    total_remaining_hours = 0
    total_done_ratio = 0
    total_remaining_ratio = 0
    total_logged_ratio = 0

    logged_values = []
    remaining_values = []

    logged_hours_for_not_estimated_issues = 0

    issues_tree = {}

{'fraction_non_alphanumeric': 0.06995581737849779, 'fraction_numerical': 0.01914580265095729, 'mean_word_length': 3.300632911392405, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '362079', 'n_tokens_mistral': 493, 'n_tokens_neox': 455, 'n_words': 83}