def calculated_data
      @data ||= @raw_data.group_by { |contributor|
        contributor['login']
      }.map {|login, data|
        log "user: #{login}"
        [login, user_data(login, data)]
      }.sort_by{|login, data|
        [1000000/data['contributions'], login]
      }
    end
def calculated_data
      @data ||= @raw_data.group_by { |contributor|
        contributor['login']
      }.map {|login, data|
        log "user: #{login}"
        [login, user_data(login, data)]
      }.sort_by{|login, data|
        [1000000/data['contributions'], login]
      }
    end
def calculated_data @data ||= @raw_data . group_by { | contributor | contributor [ 'login' ] } . map { | login , data | log "user: #{login}" [ login , user_data ( login , data ) ] } . sort_by { | login , data | [ 1000000 / data [ 'contributions' ] , login ] } end
group data, calculate contributions, sort by contributions
group data calculate contributions sort by contributions