 
   correct_object: (f) -> 
     index = Repo.find_index_of(f[0], Repo.prepared_files)
-
-    #console.log(index + " " + f[0])
     return Repo.prepared_files[index]
 
   display_with_filtered_commits: (filtered_commits) ->

  draw: ->
    Repo.chart.attr
      height: Repo.formated_files.length * 23
    textscale   = d3.scale.linear().domain([0, d3.max(Repo.formated_files, (d)-> d[3] )]).range([0, 100])

    Repo.sort_files()
    changes = Repo.chart.selectAll("rect").data(Repo.formated_files).enter().append("g").attr("class", "changes")

    @height = @$el.height()
    @x      = d3.scale.linear().range([0, @width])
    @rx     = d3.scale.linear().domain([0, @width])
    @y      = d3.scale.pow().exponent(.3).range([@height, 0])
    @ry     = d3.scale.linear().range([@height, 0])

  get_timestamp:            (commit) -> commit.timestamp
  get_aggregated_additions: (commit) -> commit.aggregated_additions or 0
