GitHub PullRequestReviewCommentEvent at 2014-06-02 04:59:00
Repository: gitlabhq
Actor: houndci
Payload: {"comment":{"url":"https://api.github.com/repos/drleviste/gitlabhq/pulls/comments/13271330","id":13271330,"diff_hunk":"@@ -138,6 +138,21 @@ def graph_log\n     end\n   end\n \n+  def graph_logs_by_user_email(user)\n+    graph_log.select { |u_email| u_email[:author_email] == user.email }\n+  end\n+\n+  def timestamps_by_user_from_graph_log(user)\n+    graph_logs_by_user_email(user).\n+    map { |graph_log| Date.parse(graph_log[:date]).to_time.to_i }\n+  end\n+\n+  def commits_log_of_user_by_date(user)\n+    timestamps_by_user_from_graph_log(user).\n+      group_by { |commit_date| commit_date }.\n+      inject({}) { |hash, (timestamp_date,commits)| hash[timestamp_date]=commits.count; hash }","path":"app/models/repository.rb","position":16,"original_position":16,"commit_id":"421eec0e15e8be5944eb9588861d05606ec94ded","original_commit_id":"421eec0e15e8be5944eb9588861d05606ec94ded","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [94/80]<br>Do not use semicolons to terminate expressions.<br>Space missing after comma.<br>Surrounding space missing for operator '='.","created_at":"2014-06-02T04:59:00Z","updated_at":"2014-06-02T04:59:00Z","html_url":"https://github.com/drleviste/gitlabhq/pull/2#discussion_r13271330","pull_request_url":"https://api.github.com/repos/drleviste/gitlabhq/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/drleviste/gitlabhq/pulls/comments/13271330"},"html":{"href":"https://github.com/drleviste/gitlabhq/pull/2#discussion_r13271330"},"pull_request":{"href":"https://api.github.com/repos/drleviste/gitlabhq/pulls/2"}}}}