GitHub PullRequestReviewCommentEvent at 2014-08-20 10:39:39
Repository: flower-platform-4
Actor: cristina-constantinescu
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/comments/16468701","id":16468701,"diff_hunk":"@@ -0,0 +1,132 @@\n+/* license-start\r\n+ * \r\n+ * Copyright (C) 2008 - 2013 Crispico, <http://www.crispico.com/>.\r\n+ * \r\n+ * This program is free software: you can redistribute it and/or modify\r\n+ * it under the terms of the GNU General Public License as published by\r\n+ * the Free Software Foundation version 3.\r\n+ * \r\n+ * This program is distributed in the hope that it will be useful,\r\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\n+ * GNU General Public License for more details, at <http://www.gnu.org/licenses/>.\r\n+ * \r\n+ * Contributors:\r\n+ *   Crispico - Initial API and implementation\r\n+ *\r\n+ * license-end\r\n+ */\r\n+package org.flowerplatform.team.git.history.internal;\r\n+\r\n+import java.util.ArrayList;\r\n+\r\n+import org.eclipse.jgit.lib.Ref;\r\n+import org.eclipse.jgit.lib.Repository;\r\n+import org.eclipse.jgit.revplot.AbstractPlotRenderer;\r\n+import org.flowerplatform.core.node.remote.Node;\r\n+\r\n+/**\r\n+ *\t@author Cristina Constantinescu\r\n+ */\r\n+public class WebCommitPlotRenderer extends AbstractPlotRenderer<WebLane, String> {\r\n+\r\n+\tprivate final String black = \"#000000\";\t\r\n+\tprivate final String gray = \"#bebebe\";\r\n+\tprivate final String white = \"#ffffff\";\r\n+\tprivate final String commitDotFill = \"#DCDCDC\";\r\n+\tprivate final String commitDotOutline = \"#6E6E6E\";\r\n+\t\r\n+\tprivate WebCommit commit;\r\n+\t\t\t\t\r\n+\tprivate Node drawings;\r\n+\t\r\n+\tprivate String specialMessage;\r\n+\t\t\t\r\n+\tpublic Node getDrawings() {\r\n+\t\treturn drawings;\r\n+\t}\r\n+\r\n+\tpublic String getSpecialMessage() {\r\n+\t\treturn specialMessage;\r\n+\t}\r\n+\r\n+\tpublic WebCommitPlotRenderer(String nodeUri, WebCommit commit) {\t\t\r\n+\t\tthis.commit = commit;\r\n+\t\tdrawings = new Node(nodeUri,null);\r\n+\t\tspecialMessage = \"\";\r\n+\t}\r\n+\r\n+\tpublic void paint() {\r\n+\t\tpaintCommit(commit, 23);\r\n+\t}\r\n+\t\r\n+\t@Override\r\n+\tprotected String laneColor(WebLane myLane) {\r\n+\t\treturn myLane != null ? myLane.color : black;\r\n+\t}\r\n+\r\n+\t@SuppressWarnings(\"unchecked\")\r\n+\t@Override\r\n+\tprotected void drawLine(String color, int x1, int y1, int x2, int y2, int width) {\r\n+\t\tObject existingLine =  new  ArrayList<Object>();\t\r\n+\t\t\texistingLine = drawings.getProperties().get(GitHistoryConstants.DRAW_LINE_LIST);\r\n+\t\tif (existingLine == null) {\r\n+\t\t\tArrayList<Object> line = new ArrayList<Object>();\t\t\r\n+\t\t\tline.add(GitHistoryConstants.DRAW_LINE);\r\n+\t\t\tline.add(x1);\r\n+\t\t\tline.add(y1);\r\n+\t\t\tline.add(x2);\r\n+\t\t\tline.add(y2);\t\t\r\n+\t\t\tline.add(width);\r\n+\t\t\tline.add(color);\r\n+\t\t\tdrawings.getProperties().put(GitHistoryConstants.DRAW_LINE_LIST,line);\t\t\t\r\n+\t\t}\r\n+\t\telse {\r\n+\t\t\t((ArrayList<Object>)existingLine).add(GitHistoryConstants.DRAW_LINE);\r\n+\t\t\t((ArrayList<Object>)existingLine).add(x1);\r\n+\t\t\t((ArrayList<Object>)existingLine).add(y1);\r\n+\t\t\t((ArrayList<Object>)existingLine).add(x2);\r\n+\t\t\t((ArrayList<Object>)existingLine).add(y2);\t\r\n+\t\t\t((ArrayList<Object>)existingLine).add(width);\r\n+\t\t\t((ArrayList<Object>)existingLine).add(color);\t\t\t\r\n+\t\t\tdrawings.getProperties().put(GitHistoryConstants.DRAW_LINE_LIST,existingLine);\r","path":"org.flowerplatform.team.git/src/org/flowerplatform/team/git/history/internal/WebCommitPlotRenderer.java","position":92,"original_position":92,"commit_id":"4817e68b0e99860b7c991a23bd33abcedb094d9e","original_commit_id":"4817e68b0e99860b7c991a23bd33abcedb094d9e","user":{"login":"cristina-constantinescu","id":4476480,"avatar_url":"https://avatars.githubusercontent.com/u/4476480?v=2","gravatar_id":"faf9c59638240f9c771e0cc3e3b2f8ac","url":"https://api.github.com/users/cristina-constantinescu","html_url":"https://github.com/cristina-constantinescu","followers_url":"https://api.github.com/users/cristina-constantinescu/followers","following_url":"https://api.github.com/users/cristina-constantinescu/following{/other_user}","gists_url":"https://api.github.com/users/cristina-constantinescu/gists{/gist_id}","starred_url":"https://api.github.com/users/cristina-constantinescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristina-constantinescu/subscriptions","organizations_url":"https://api.github.com/users/cristina-constantinescu/orgs","repos_url":"https://api.github.com/users/cristina-constantinescu/repos","events_url":"https://api.github.com/users/cristina-constantinescu/events{/privacy}","received_events_url":"https://api.github.com/users/cristina-constantinescu/received_events","type":"User","site_admin":false},"body":"don't forget to format code everywhere","created_at":"2014-08-20T10:39:39Z","updated_at":"2014-08-20T10:39:39Z","html_url":"https://github.com/flower-platform/flower-platform-4/pull/474#discussion_r16468701","pull_request_url":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/474","_links":{"self":{"href":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/comments/16468701"},"html":{"href":"https://github.com/flower-platform/flower-platform-4/pull/474#discussion_r16468701"},"pull_request":{"href":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/474"}}},"pull_request":{"url":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/474","id":19975445,"html_url":"https://github.com/flower-platform/flower-platform-4/pull/474","diff_url":"https://github.com/flower-platform/flower-platform-4/pull/474.diff","patch_url":"https://github.com/flower-platform/flower-platform-4/pull/474.patch","issue_url":"https://api.github.com/repos/flower-platform/flower-platform-4/issues/474","number":474,"state":"open","locked":false,"title":"Gh394 git history","user":{"login":"cristina-constantinescu","id":4476480,"avatar_url":"https://avatars.githubusercontent.com/u/4476480?v=2","gravatar_id":"faf9c59638240f9c771e0cc3e3b2f8ac","url":"https://api.github.com/users/cristina-constantinescu","html_url":"https://github.com/cristina-constantinescu","followers_url":"https://api.github.com/users/cristina-constantinescu/followers","following_url":"https://api.github.com/users/cristina-constantinescu/following{/other_user}","gists_url":"https://api.github.com/users/cristina-constantinescu/gists{/gist_id}","starred_url":"https://api.github.com/users/cristina-constantinescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristina-constantinescu/subscriptions","organizations_url":"https://api.github.com/users/cristina-constantinescu/orgs","repos_url":"https://api.github.com/users/cristina-constantinescu/repos","events_url":"https://api.github.com/users/cristina-constantinescu/events{/privacy}","received_events_url":"https://api.github.com/users/cristina-constantinescu/received_events","type":"User","site_admin":false},"body":"#394","created_at":"2014-08-19T11:54:40Z","updated_at":"2014-08-20T10:39:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/474/commits","review_comments_url":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/474/comments","review_comment_url":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/comments/{number}","comments_url":"https://api.github.com/repos/flower-platform/flower-platform-4/issues/474/comments","statuses_url":"https://api.github.com/repos/flower-platform/flower-platform-4/statuses/4817e68b0e99860b7c991a23bd33abcedb094d9e","head":{"label":"flower-platform:GH394-git-history","ref":"GH394-git-history","sha":"4817e68b0e99860b7c991a23bd33abcedb094d9e","user":{"login":"flower-platform","id":4466055,"avatar_url":"https://avatars.githubusercontent.com/u/4466055?v=2","gravatar_id":"6f90f5acae31f7dd730e1ea29a6cb41d","url":"https://api.github.com/users/flower-platform","html_url":"https://github.com/flower-platform","followers_url":"https://api.github.com/users/flower-platform/followers","following_url":"https://api.github.com/users/flower-platform/following{/other_user}","gists_url":"https://api.github.com/users/flower-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/flower-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flower-platform/subscriptions","organizations_url":"https://api.github.com/users/flower-platform/orgs","repos_url":"https://api.github.com/users/flower-platform/repos","events_url":"https://api.github.com/users/flower-platform/events{/privacy}","received_events_url":"https://api.github.com/users/flower-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":15898309,"name":"flower-platform-4","full_name":"flower-platform/flower-platform-4","owner":{"login":"flower-platform","id":4466055,"avatar_url":"https://avatars.githubusercontent.com/u/4466055?v=2","gravatar_id":"6f90f5acae31f7dd730e1ea29a6cb41d","url":"https://api.github.com/users/flower-platform","html_url":"https://github.com/flower-platform","followers_url":"https://api.github.com/users/flower-platform/followers","following_url":"https://api.github.com/users/flower-platform/following{/other_user}","gists_url":"https://api.github.com/users/flower-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/flower-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flower-platform/subscriptions","organizations_url":"https://api.github.com/users/flower-platform/orgs","repos_url":"https://api.github.com/users/flower-platform/repos","events_url":"https://api.github.com/users/flower-platform/events{/privacy}","received_events_url":"https://api.github.com/users/flower-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flower-platform/flower-platform-4","description":"Source code for Flower Platform","fork":false,"url":"https://api.github.com/repos/flower-platform/flower-platform-4","forks_url":"https://api.github.com/repos/flower-platform/flower-platform-4/forks","keys_url":"https://api.github.com/repos/flower-platform/flower-platform-4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flower-platform/flower-platform-4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flower-platform/flower-platform-4/teams","hooks_url":"https://api.github.com/repos/flower-platform/flower-platform-4/hooks","issue_events_url":"https://api.github.com/repos/flower-platform/flower-platform-4/issues/events{/number}","events_url":"https://api.github.com/repos/flower-platform/flower-platform-4/events","assignees_url":"https://api.github.com/repos/flower-platform/flower-platform-4/assignees{/user}","branches_url":"https://api.github.com/repos/flower-platform/flower-platform-4/branches{/branch}","tags_url":"https://api.github.com/repos/flower-platform/flower-platform-4/tags","blobs_url":"https://api.github.com/repos/flower-platform/flower-platform-4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flower-platform/flower-platform-4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flower-platform/flower-platform-4/git/refs{/sha}","trees_url":"https://api.github.com/repos/flower-platform/flower-platform-4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flower-platform/flower-platform-4/statuses/{sha}","languages_url":"https://api.github.com/repos/flower-platform/flower-platform-4/languages","stargazers_url":"https://api.github.com/repos/flower-platform/flower-platform-4/stargazers","contributors_url":"https://api.github.com/repos/flower-platform/flower-platform-4/contributors","subscribers_url":"https://api.github.com/repos/flower-platform/flower-platform-4/subscribers","subscription_url":"https://api.github.com/repos/flower-platform/flower-platform-4/subscription","commits_url":"https://api.github.com/repos/flower-platform/flower-platform-4/commits{/sha}","git_commits_url":"https://api.github.com/repos/flower-platform/flower-platform-4/git/commits{/sha}","comments_url":"https://api.github.com/repos/flower-platform/flower-platform-4/comments{/number}","issue_comment_url":"https://api.github.com/repos/flower-platform/flower-platform-4/issues/comments/{number}","contents_url":"https://api.github.com/repos/flower-platform/flower-platform-4/contents/{+path}","compare_url":"https://api.github.com/repos/flower-platform/flower-platform-4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flower-platform/flower-platform-4/merges","archive_url":"https://api.github.com/repos/flower-platform/flower-platform-4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flower-platform/flower-platform-4/downloads","issues_url":"https://api.github.com/repos/flower-platform/flower-platform-4/issues{/number}","pulls_url":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls{/number}","milestones_url":"https://api.github.com/repos/flower-platform/flower-platform-4/milestones{/number}","notifications_url":"https://api.github.com/repos/flower-platform/flower-platform-4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flower-platform/flower-platform-4/labels{/name}","releases_url":"https://api.github.com/repos/flower-platform/flower-platform-4/releases{/id}","created_at":"2014-01-14T10:00:56Z","updated_at":"2014-07-26T22:38:12Z","pushed_at":"2014-08-20T09:02:36Z","git_url":"git://github.com/flower-platform/flower-platform-4.git","ssh_url":"git@github.com:flower-platform/flower-platform-4.git","clone_url":"https://github.com/flower-platform/flower-platform-4.git","svn_url":"https://github.com/flower-platform/flower-platform-4","homepage":"http://flower-platform.org","size":70688,"stargazers_count":3,"watchers_count":3,"language":"ActionScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":202,"forks":1,"open_issues":202,"watchers":3,"default_branch":"master"}},"base":{"label":"flower-platform:master_before_git_history_merge","ref":"master_before_git_history_merge","sha":"7b91eab99652dde6c387fa007e0a86c8f90eaba0","user":{"login":"flower-platform","id":4466055,"avatar_url":"https://avatars.githubusercontent.com/u/4466055?v=2","gravatar_id":"6f90f5acae31f7dd730e1ea29a6cb41d","url":"https://api.github.com/users/flower-platform","html_url":"https://github.com/flower-platform","followers_url":"https://api.github.com/users/flower-platform/followers","following_url":"https://api.github.com/users/flower-platform/following{/other_user}","gists_url":"https://api.github.com/users/flower-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/flower-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flower-platform/subscriptions","organizations_url":"https://api.github.com/users/flower-platform/orgs","repos_url":"https://api.github.com/users/flower-platform/repos","events_url":"https://api.github.com/users/flower-platform/events{/privacy}","received_events_url":"https://api.github.com/users/flower-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":15898309,"name":"flower-platform-4","full_name":"flower-platform/flower-platform-4","owner":{"login":"flower-platform","id":4466055,"avatar_url":"https://avatars.githubusercontent.com/u/4466055?v=2","gravatar_id":"6f90f5acae31f7dd730e1ea29a6cb41d","url":"https://api.github.com/users/flower-platform","html_url":"https://github.com/flower-platform","followers_url":"https://api.github.com/users/flower-platform/followers","following_url":"https://api.github.com/users/flower-platform/following{/other_user}","gists_url":"https://api.github.com/users/flower-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/flower-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flower-platform/subscriptions","organizations_url":"https://api.github.com/users/flower-platform/orgs","repos_url":"https://api.github.com/users/flower-platform/repos","events_url":"https://api.github.com/users/flower-platform/events{/privacy}","received_events_url":"https://api.github.com/users/flower-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flower-platform/flower-platform-4","description":"Source code for Flower Platform","fork":false,"url":"https://api.github.com/repos/flower-platform/flower-platform-4","forks_url":"https://api.github.com/repos/flower-platform/flower-platform-4/forks","keys_url":"https://api.github.com/repos/flower-platform/flower-platform-4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flower-platform/flower-platform-4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flower-platform/flower-platform-4/teams","hooks_url":"https://api.github.com/repos/flower-platform/flower-platform-4/hooks","issue_events_url":"https://api.github.com/repos/flower-platform/flower-platform-4/issues/events{/number}","events_url":"https://api.github.com/repos/flower-platform/flower-platform-4/events","assignees_url":"https://api.github.com/repos/flower-platform/flower-platform-4/assignees{/user}","branches_url":"https://api.github.com/repos/flower-platform/flower-platform-4/branches{/branch}","tags_url":"https://api.github.com/repos/flower-platform/flower-platform-4/tags","blobs_url":"https://api.github.com/repos/flower-platform/flower-platform-4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flower-platform/flower-platform-4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flower-platform/flower-platform-4/git/refs{/sha}","trees_url":"https://api.github.com/repos/flower-platform/flower-platform-4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flower-platform/flower-platform-4/statuses/{sha}","languages_url":"https://api.github.com/repos/flower-platform/flower-platform-4/languages","stargazers_url":"https://api.github.com/repos/flower-platform/flower-platform-4/stargazers","contributors_url":"https://api.github.com/repos/flower-platform/flower-platform-4/contributors","subscribers_url":"https://api.github.com/repos/flower-platform/flower-platform-4/subscribers","subscription_url":"https://api.github.com/repos/flower-platform/flower-platform-4/subscription","commits_url":"https://api.github.com/repos/flower-platform/flower-platform-4/commits{/sha}","git_commits_url":"https://api.github.com/repos/flower-platform/flower-platform-4/git/commits{/sha}","comments_url":"https://api.github.com/repos/flower-platform/flower-platform-4/comments{/number}","issue_comment_url":"https://api.github.com/repos/flower-platform/flower-platform-4/issues/comments/{number}","contents_url":"https://api.github.com/repos/flower-platform/flower-platform-4/contents/{+path}","compare_url":"https://api.github.com/repos/flower-platform/flower-platform-4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flower-platform/flower-platform-4/merges","archive_url":"https://api.github.com/repos/flower-platform/flower-platform-4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flower-platform/flower-platform-4/downloads","issues_url":"https://api.github.com/repos/flower-platform/flower-platform-4/issues{/number}","pulls_url":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls{/number}","milestones_url":"https://api.github.com/repos/flower-platform/flower-platform-4/milestones{/number}","notifications_url":"https://api.github.com/repos/flower-platform/flower-platform-4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flower-platform/flower-platform-4/labels{/name}","releases_url":"https://api.github.com/repos/flower-platform/flower-platform-4/releases{/id}","created_at":"2014-01-14T10:00:56Z","updated_at":"2014-07-26T22:38:12Z","pushed_at":"2014-08-20T09:02:36Z","git_url":"git://github.com/flower-platform/flower-platform-4.git","ssh_url":"git@github.com:flower-platform/flower-platform-4.git","clone_url":"https://github.com/flower-platform/flower-platform-4.git","svn_url":"https://github.com/flower-platform/flower-platform-4","homepage":"http://flower-platform.org","size":70688,"stargazers_count":3,"watchers_count":3,"language":"ActionScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":202,"forks":1,"open_issues":202,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/474"},"html":{"href":"https://github.com/flower-platform/flower-platform-4/pull/474"},"issue":{"href":"https://api.github.com/repos/flower-platform/flower-platform-4/issues/474"},"comments":{"href":"https://api.github.com/repos/flower-platform/flower-platform-4/issues/474/comments"},"review_comments":{"href":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/474/comments"},"review_comment":{"href":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/flower-platform/flower-platform-4/pulls/474/commits"},"statuses":{"href":"https://api.github.com/repos/flower-platform/flower-platform-4/statuses/4817e68b0e99860b7c991a23bd33abcedb094d9e"}}}}