 
   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) ->


  display_with_filtered_commits_and_text_filter: (text) ->

    scale = d3.scale.log().base(10).domain([0.1, d3.max(Repo.formated_files, (d)-> d[3] )]).range([0, settings.width - settings.offset - 2 * settings.padding])
    console.log(Repo.saved_files)
    Repo.prepared_files = Repo.filter(text, Repo.saved_files)
    console.log(Repo.prepared_files)

    Repo.prepared_files = Repo.prepared_files.sort (a,b) -> (b[3] - a[3])
    

        style: (f, i) -> "fill: #333"

  animate: -> #called after the original draw function and will animate everything into place.
    scale = d3.scale.pow().exponent(.5).domain([0.1, d3.max(Repo.formated_files, (d)-> d[3] )]).range([0, settings.width - settings.offset - 2 * settings.padding])
    Repo.chart.selectAll("rect.deletions")
      
      .transition(settings.duration)
