{"action":"created","comment":{"url":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/comments/92117661","pull_request_review_id":12623541,"id":92117661,"diff_hunk":"@@ -0,0 +1,104 @@\n+package school.lemon.changerequest.java.matrix;\n+\n+/**\n+ * Created by Yaroslav Pavlinskiy on 12.12.2016.\n+ */\n+public class Matrix {\n+\n+    private final int Rows; // count Rows\n+    private final int Columns; // count Columns\n+    private final int[][] data; // 2d array for matrix\n+\n+    public Matrix(int R,int C)// Constructor with Rows and Columns\n+    {\n+        this.Rows = R;\n+        this.Columns = C;\n+        this.data = new int[R][C];\n+    }\n+\n+    public Matrix(int[][]data) //Constructor 2d array\n+    {\n+        this.Rows = data.length;\n+        this.Columns = data[0].length;\n+        this.data = data;\n+    }\n+    private Matrix(Matrix A) { this(A.data); }\n+\n+    public Matrix AddMatrix(Matrix B) // Method that adding matrix A and B\n+    {\n+        return Calculate(B,'+');\n+    }\n+\n+    public Matrix SubtractMatrix(Matrix B)\n+    {\n+        return Calculate(B,'-');\n+    }\n+\n+    public Matrix MultiplyNumber(int n)\n+    {\n+        Matrix A = this;\n+        Matrix C = new Matrix(Rows, Columns);\n+        for (int i = 0; i < Rows; i++)\n+            for (int j = 0; j < Columns; j++)\n+                C.data[i][j] = A.data[i][j] * n;\n+        return C;\n+    }\n+\n+    public  Matrix MultiplyMatrix(Matrix B)\n+    {\n+        return Calculate(B,'*');\n+    }\n+\n+    public Matrix Transpose()\n+    {\n+        Matrix A = this;","path":"src/main/java/school/lemon/changerequest/java/matrix/Matrix.java","position":54,"original_position":54,"commit_id":"ecbc3bd81d8697efe706075e1fb660bb2acc8fb6","original_commit_id":"ecbc3bd81d8697efe706075e1fb660bb2acc8fb6","user":{"login":"didva","id":6191109,"avatar_url":"https://avatars.githubusercontent.com/u/6191109?v=3","gravatar_id":"","url":"https://api.github.com/users/didva","html_url":"https://github.com/didva","followers_url":"https://api.github.com/users/didva/followers","following_url":"https://api.github.com/users/didva/following{/other_user}","gists_url":"https://api.github.com/users/didva/gists{/gist_id}","starred_url":"https://api.github.com/users/didva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didva/subscriptions","organizations_url":"https://api.github.com/users/didva/orgs","repos_url":"https://api.github.com/users/didva/repos","events_url":"https://api.github.com/users/didva/events{/privacy}","received_events_url":"https://api.github.com/users/didva/received_events","type":"User","site_admin":false},"body":"Not sure you need extract this to variable. As for me it's even better to use data directly. Like `C.data[i][j] = data[j][i];`","created_at":"2016-12-13T08:27:38Z","updated_at":"2016-12-13T08:29:53Z","html_url":"https://github.com/ChangeRequest/oop.pr1/pull/5#discussion_r92117661","pull_request_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/comments/92117661"},"html":{"href":"https://github.com/ChangeRequest/oop.pr1/pull/5#discussion_r92117661"},"pull_request":{"href":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/5","id":97592000,"html_url":"https://github.com/ChangeRequest/oop.pr1/pull/5","diff_url":"https://github.com/ChangeRequest/oop.pr1/pull/5.diff","patch_url":"https://github.com/ChangeRequest/oop.pr1/pull/5.patch","issue_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/issues/5","number":5,"state":"open","locked":false,"title":"Task with matrix done.","user":{"login":"yarikpavlin","id":17334986,"avatar_url":"https://avatars.githubusercontent.com/u/17334986?v=3","gravatar_id":"","url":"https://api.github.com/users/yarikpavlin","html_url":"https://github.com/yarikpavlin","followers_url":"https://api.github.com/users/yarikpavlin/followers","following_url":"https://api.github.com/users/yarikpavlin/following{/other_user}","gists_url":"https://api.github.com/users/yarikpavlin/gists{/gist_id}","starred_url":"https://api.github.com/users/yarikpavlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarikpavlin/subscriptions","organizations_url":"https://api.github.com/users/yarikpavlin/orgs","repos_url":"https://api.github.com/users/yarikpavlin/repos","events_url":"https://api.github.com/users/yarikpavlin/events{/privacy}","received_events_url":"https://api.github.com/users/yarikpavlin/received_events","type":"User","site_admin":false},"body":"Other tasks will be done soon","created_at":"2016-12-12T17:01:50Z","updated_at":"2016-12-13T08:29:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4095acafa1861b910a469c91f767d64752814826","assignee":{"login":"didva","id":6191109,"avatar_url":"https://avatars.githubusercontent.com/u/6191109?v=3","gravatar_id":"","url":"https://api.github.com/users/didva","html_url":"https://github.com/didva","followers_url":"https://api.github.com/users/didva/followers","following_url":"https://api.github.com/users/didva/following{/other_user}","gists_url":"https://api.github.com/users/didva/gists{/gist_id}","starred_url":"https://api.github.com/users/didva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didva/subscriptions","organizations_url":"https://api.github.com/users/didva/orgs","repos_url":"https://api.github.com/users/didva/repos","events_url":"https://api.github.com/users/didva/events{/privacy}","received_events_url":"https://api.github.com/users/didva/received_events","type":"User","site_admin":false},"assignees":[{"login":"didva","id":6191109,"avatar_url":"https://avatars.githubusercontent.com/u/6191109?v=3","gravatar_id":"","url":"https://api.github.com/users/didva","html_url":"https://github.com/didva","followers_url":"https://api.github.com/users/didva/followers","following_url":"https://api.github.com/users/didva/following{/other_user}","gists_url":"https://api.github.com/users/didva/gists{/gist_id}","starred_url":"https://api.github.com/users/didva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didva/subscriptions","organizations_url":"https://api.github.com/users/didva/orgs","repos_url":"https://api.github.com/users/didva/repos","events_url":"https://api.github.com/users/didva/events{/privacy}","received_events_url":"https://api.github.com/users/didva/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/issues/5/comments","statuses_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/statuses/ecbc3bd81d8697efe706075e1fb660bb2acc8fb6","head":{"label":"yarikpavlin:master","ref":"master","sha":"ecbc3bd81d8697efe706075e1fb660bb2acc8fb6","user":{"login":"yarikpavlin","id":17334986,"avatar_url":"https://avatars.githubusercontent.com/u/17334986?v=3","gravatar_id":"","url":"https://api.github.com/users/yarikpavlin","html_url":"https://github.com/yarikpavlin","followers_url":"https://api.github.com/users/yarikpavlin/followers","following_url":"https://api.github.com/users/yarikpavlin/following{/other_user}","gists_url":"https://api.github.com/users/yarikpavlin/gists{/gist_id}","starred_url":"https://api.github.com/users/yarikpavlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarikpavlin/subscriptions","organizations_url":"https://api.github.com/users/yarikpavlin/orgs","repos_url":"https://api.github.com/users/yarikpavlin/repos","events_url":"https://api.github.com/users/yarikpavlin/events{/privacy}","received_events_url":"https://api.github.com/users/yarikpavlin/received_events","type":"User","site_admin":false},"repo":{"id":75650793,"name":"oop.pr1","full_name":"yarikpavlin/oop.pr1","owner":{"login":"yarikpavlin","id":17334986,"avatar_url":"https://avatars.githubusercontent.com/u/17334986?v=3","gravatar_id":"","url":"https://api.github.com/users/yarikpavlin","html_url":"https://github.com/yarikpavlin","followers_url":"https://api.github.com/users/yarikpavlin/followers","following_url":"https://api.github.com/users/yarikpavlin/following{/other_user}","gists_url":"https://api.github.com/users/yarikpavlin/gists{/gist_id}","starred_url":"https://api.github.com/users/yarikpavlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarikpavlin/subscriptions","organizations_url":"https://api.github.com/users/yarikpavlin/orgs","repos_url":"https://api.github.com/users/yarikpavlin/repos","events_url":"https://api.github.com/users/yarikpavlin/events{/privacy}","received_events_url":"https://api.github.com/users/yarikpavlin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yarikpavlin/oop.pr1","description":null,"fork":true,"url":"https://api.github.com/repos/yarikpavlin/oop.pr1","forks_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/forks","keys_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/teams","hooks_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/hooks","issue_events_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/issues/events{/number}","events_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/events","assignees_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/assignees{/user}","branches_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/branches{/branch}","tags_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/tags","blobs_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/git/refs{/sha}","trees_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/statuses/{sha}","languages_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/languages","stargazers_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/stargazers","contributors_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/contributors","subscribers_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/subscribers","subscription_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/subscription","commits_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/commits{/sha}","git_commits_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/git/commits{/sha}","comments_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/comments{/number}","issue_comment_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/issues/comments{/number}","contents_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/contents/{+path}","compare_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/merges","archive_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/downloads","issues_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/issues{/number}","pulls_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/pulls{/number}","milestones_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/milestones{/number}","notifications_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/labels{/name}","releases_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/releases{/id}","deployments_url":"https://api.github.com/repos/yarikpavlin/oop.pr1/deployments","created_at":"2016-12-05T17:44:33Z","updated_at":"2016-12-12T14:02:14Z","pushed_at":"2016-12-12T14:02:13Z","git_url":"git://github.com/yarikpavlin/oop.pr1.git","ssh_url":"git@github.com:yarikpavlin/oop.pr1.git","clone_url":"https://github.com/yarikpavlin/oop.pr1.git","svn_url":"https://github.com/yarikpavlin/oop.pr1","homepage":null,"size":58,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ChangeRequest:master","ref":"master","sha":"3eaed1ae8847132493f7f69da268bcb71b337096","user":{"login":"ChangeRequest","id":20873305,"avatar_url":"https://avatars.githubusercontent.com/u/20873305?v=3","gravatar_id":"","url":"https://api.github.com/users/ChangeRequest","html_url":"https://github.com/ChangeRequest","followers_url":"https://api.github.com/users/ChangeRequest/followers","following_url":"https://api.github.com/users/ChangeRequest/following{/other_user}","gists_url":"https://api.github.com/users/ChangeRequest/gists{/gist_id}","starred_url":"https://api.github.com/users/ChangeRequest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChangeRequest/subscriptions","organizations_url":"https://api.github.com/users/ChangeRequest/orgs","repos_url":"https://api.github.com/users/ChangeRequest/repos","events_url":"https://api.github.com/users/ChangeRequest/events{/privacy}","received_events_url":"https://api.github.com/users/ChangeRequest/received_events","type":"Organization","site_admin":false},"repo":{"id":74277949,"name":"oop.pr1","full_name":"ChangeRequest/oop.pr1","owner":{"login":"ChangeRequest","id":20873305,"avatar_url":"https://avatars.githubusercontent.com/u/20873305?v=3","gravatar_id":"","url":"https://api.github.com/users/ChangeRequest","html_url":"https://github.com/ChangeRequest","followers_url":"https://api.github.com/users/ChangeRequest/followers","following_url":"https://api.github.com/users/ChangeRequest/following{/other_user}","gists_url":"https://api.github.com/users/ChangeRequest/gists{/gist_id}","starred_url":"https://api.github.com/users/ChangeRequest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChangeRequest/subscriptions","organizations_url":"https://api.github.com/users/ChangeRequest/orgs","repos_url":"https://api.github.com/users/ChangeRequest/repos","events_url":"https://api.github.com/users/ChangeRequest/events{/privacy}","received_events_url":"https://api.github.com/users/ChangeRequest/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ChangeRequest/oop.pr1","description":null,"fork":false,"url":"https://api.github.com/repos/ChangeRequest/oop.pr1","forks_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/forks","keys_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/teams","hooks_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/hooks","issue_events_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/issues/events{/number}","events_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/events","assignees_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/assignees{/user}","branches_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/branches{/branch}","tags_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/tags","blobs_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/statuses/{sha}","languages_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/languages","stargazers_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/stargazers","contributors_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/contributors","subscribers_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/subscribers","subscription_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/subscription","commits_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/contents/{+path}","compare_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/merges","archive_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/downloads","issues_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/issues{/number}","pulls_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls{/number}","milestones_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/milestones{/number}","notifications_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/labels{/name}","releases_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/releases{/id}","deployments_url":"https://api.github.com/repos/ChangeRequest/oop.pr1/deployments","created_at":"2016-11-20T14:01:43Z","updated_at":"2016-11-20T14:01:43Z","pushed_at":"2016-12-12T17:01:50Z","git_url":"git://github.com/ChangeRequest/oop.pr1.git","ssh_url":"git@github.com:ChangeRequest/oop.pr1.git","clone_url":"https://github.com/ChangeRequest/oop.pr1.git","svn_url":"https://github.com/ChangeRequest/oop.pr1","homepage":null,"size":57,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":4,"forks":10,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/5"},"html":{"href":"https://github.com/ChangeRequest/oop.pr1/pull/5"},"issue":{"href":"https://api.github.com/repos/ChangeRequest/oop.pr1/issues/5"},"comments":{"href":"https://api.github.com/repos/ChangeRequest/oop.pr1/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ChangeRequest/oop.pr1/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ChangeRequest/oop.pr1/statuses/ecbc3bd81d8697efe706075e1fb660bb2acc8fb6"}}}}
{"actor":{"display_login":"didva"}}