 
   @groupByWeek = (anArray, attribute) ->
     if _.isUndefined(attribute)
-      throw new RangeError("required param \"attribute\" not supplied")
-    return [] if _.isEmpty(anArray)
+      throw new RangeError "required param \"attribute\" not supplied"
+    return [] if _.isEmpty anArray
 
     items = _.sortBy(anArray, attribute)
     weekEndingDate = _.last(items)[attribute]



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



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