 
 
 sixDaysBefore = (aDate) ->
-  new Date(aDate.getFullYear(), aDate.getMonth(), aDate.getDate() - 6)
+  new Date aDate.getFullYear(), aDate.getMonth(), aDate.getDate() - 6



  @effectiveness = (merged_prs, proposed_prs, closed_issues, new_issues) ->
    inputs = [ merged_prs, proposed_prs, closed_issues, new_issues ].join(", ")
    prs = @pr_effectiveness(merged_prs, proposed_prs)
    issues = @issue_effectiveness(closed_issues, new_issues)
    (0.66 * prs) + (0.34 * issues)


  @prEffectiveness = (repo) ->
    @pr_effectiveness(
      repo.closedPullRequestCount(),
      repo.openPullRequestCount())


  @issueEffectiveness = (repo) ->



  @pr_effectiveness = (merged_prs, proposed_prs) ->
    @scaled @ratio merged_prs, proposed_prs


  @issue_effectiveness = (closed_issues, new_issues) ->
    @scaled @ratio closed_issues, new_issues


  @effectivenessDesc = (rating) ->
    return "In the weeds"  if rating >= 0 and rating <= 3
    return "Doing fine"  if rating >= 4 and rating <= 6
    return "Super effective!"  if rating >= 7 and rating <= 10
    throw new RangeError "Rating must be between 0 and 10"


  # Convert a ratio of two Reals into a floating point.
