{"action":"created","comment":{"url":"https://api.github.com/repos/coolhunter1994/Vector/pulls/comments/56123970","id":56123970,"diff_hunk":"@@ -0,0 +1,137 @@\n+//\n+//File Vector.cpp\n+//\n+\n+#include \"../include/vector.h\"\n+\n+Vector::Vector() { //DE_STROYED\n+        for(int i = 0; i < n; i++) {\n+                coords_[i] = 0.0;\n+        }\n+}\n+\n+Vector::Vector(double a) {\n+        for(int i = 0; i < n; i++) {\n+                coords_[i] = a;\n+        }\n+}\n+\n+Vector::Vector(const Vector &other) {\n+        for(int i = 0; i < n; i++) {\n+                coords_[i] = other.coords_[i];\n+        }\n+}\n+\n+Vector &Vector::operator=(const Vector &other) {\n+    for (unsigned int i = 0; i < n; i++) {\n+        coords_[i] = other.coords_[i];\n+    }\n+    return *this;\n+}\n+\n+Vector &Vector::operator+=(const Vector &other) {\n+    for (unsigned int i = 0; i < n; i++)\n+        coords_[i] += other.coords_[i];\n+    return *this;\n+}\n+\n+Vector &Vector::operator-=(const Vector &other) {\n+    for (unsigned int i = 0; i < n; i++)\n+        coords_[i] -= other.coords_[i];\n+    return *this;\n+}\n+\n+Vector &Vector::operator*=(double number) {\n+    for (unsigned int i = 0; i < n; i++)\n+        coords_[i] *= number;\n+    return *this;\n+}\n+\n+Vector &Vector::operator/=(double number) {\n+    for (unsigned int i = 0; i < n; i++)\n+        coords_[i] /= number;\n+    return *this;\n+}\n+\n+Vector operator+(const Vector &left, const Vector &right) {\n+        Vector a;\n+        for(int i = 0; i < Vector::n; i++) {\n+                a.coords_[i] = left.coords_[i] + right.coords_[i];\n+        }\n+        return a;\n+}\n+\n+Vector operator-(const Vector &left, const Vector &right) {","path":"src/vector.cpp","position":64,"original_position":64,"commit_id":"55b90b97c7e43378e9dfb963a78ababd2adcf620","original_commit_id":"55b90b97c7e43378e9dfb963a78ababd2adcf620","user":{"login":"sdukshis","id":751874,"avatar_url":"https://avatars.githubusercontent.com/u/751874?v=3","gravatar_id":"","url":"https://api.github.com/users/sdukshis","html_url":"https://github.com/sdukshis","followers_url":"https://api.github.com/users/sdukshis/followers","following_url":"https://api.github.com/users/sdukshis/following{/other_user}","gists_url":"https://api.github.com/users/sdukshis/gists{/gist_id}","starred_url":"https://api.github.com/users/sdukshis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdukshis/subscriptions","organizations_url":"https://api.github.com/users/sdukshis/orgs","repos_url":"https://api.github.com/users/sdukshis/repos","events_url":"https://api.github.com/users/sdukshis/events{/privacy}","received_events_url":"https://api.github.com/users/sdukshis/received_events","type":"User","site_admin":false},"body":"``` return Vector(left) -= right ```","created_at":"2016-03-15T07:30:24Z","updated_at":"2016-03-15T07:30:24Z","html_url":"https://github.com/coolhunter1994/Vector/pull/1#discussion_r56123970","pull_request_url":"https://api.github.com/repos/coolhunter1994/Vector/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/coolhunter1994/Vector/pulls/comments/56123970"},"html":{"href":"https://github.com/coolhunter1994/Vector/pull/1#discussion_r56123970"},"pull_request":{"href":"https://api.github.com/repos/coolhunter1994/Vector/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/coolhunter1994/Vector/pulls/1","id":61681866,"html_url":"https://github.com/coolhunter1994/Vector/pull/1","diff_url":"https://github.com/coolhunter1994/Vector/pull/1.diff","patch_url":"https://github.com/coolhunter1994/Vector/pull/1.patch","issue_url":"https://api.github.com/repos/coolhunter1994/Vector/issues/1","number":1,"state":"open","locked":false,"title":"Second","user":{"login":"coolhunter1994","id":17330423,"avatar_url":"https://avatars.githubusercontent.com/u/17330423?v=3","gravatar_id":"","url":"https://api.github.com/users/coolhunter1994","html_url":"https://github.com/coolhunter1994","followers_url":"https://api.github.com/users/coolhunter1994/followers","following_url":"https://api.github.com/users/coolhunter1994/following{/other_user}","gists_url":"https://api.github.com/users/coolhunter1994/gists{/gist_id}","starred_url":"https://api.github.com/users/coolhunter1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolhunter1994/subscriptions","organizations_url":"https://api.github.com/users/coolhunter1994/orgs","repos_url":"https://api.github.com/users/coolhunter1994/repos","events_url":"https://api.github.com/users/coolhunter1994/events{/privacy}","received_events_url":"https://api.github.com/users/coolhunter1994/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-04T08:41:02Z","updated_at":"2016-03-15T07:30:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a78bc967c90a0762a67e24446f35fa15773816b6","assignee":{"login":"sdukshis","id":751874,"avatar_url":"https://avatars.githubusercontent.com/u/751874?v=3","gravatar_id":"","url":"https://api.github.com/users/sdukshis","html_url":"https://github.com/sdukshis","followers_url":"https://api.github.com/users/sdukshis/followers","following_url":"https://api.github.com/users/sdukshis/following{/other_user}","gists_url":"https://api.github.com/users/sdukshis/gists{/gist_id}","starred_url":"https://api.github.com/users/sdukshis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdukshis/subscriptions","organizations_url":"https://api.github.com/users/sdukshis/orgs","repos_url":"https://api.github.com/users/sdukshis/repos","events_url":"https://api.github.com/users/sdukshis/events{/privacy}","received_events_url":"https://api.github.com/users/sdukshis/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/coolhunter1994/Vector/pulls/1/commits","review_comments_url":"https://api.github.com/repos/coolhunter1994/Vector/pulls/1/comments","review_comment_url":"https://api.github.com/repos/coolhunter1994/Vector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coolhunter1994/Vector/issues/1/comments","statuses_url":"https://api.github.com/repos/coolhunter1994/Vector/statuses/55b90b97c7e43378e9dfb963a78ababd2adcf620","head":{"label":"coolhunter1994:Second","ref":"Second","sha":"55b90b97c7e43378e9dfb963a78ababd2adcf620","user":{"login":"coolhunter1994","id":17330423,"avatar_url":"https://avatars.githubusercontent.com/u/17330423?v=3","gravatar_id":"","url":"https://api.github.com/users/coolhunter1994","html_url":"https://github.com/coolhunter1994","followers_url":"https://api.github.com/users/coolhunter1994/followers","following_url":"https://api.github.com/users/coolhunter1994/following{/other_user}","gists_url":"https://api.github.com/users/coolhunter1994/gists{/gist_id}","starred_url":"https://api.github.com/users/coolhunter1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolhunter1994/subscriptions","organizations_url":"https://api.github.com/users/coolhunter1994/orgs","repos_url":"https://api.github.com/users/coolhunter1994/repos","events_url":"https://api.github.com/users/coolhunter1994/events{/privacy}","received_events_url":"https://api.github.com/users/coolhunter1994/received_events","type":"User","site_admin":false},"repo":{"id":52587463,"name":"Vector","full_name":"coolhunter1994/Vector","owner":{"login":"coolhunter1994","id":17330423,"avatar_url":"https://avatars.githubusercontent.com/u/17330423?v=3","gravatar_id":"","url":"https://api.github.com/users/coolhunter1994","html_url":"https://github.com/coolhunter1994","followers_url":"https://api.github.com/users/coolhunter1994/followers","following_url":"https://api.github.com/users/coolhunter1994/following{/other_user}","gists_url":"https://api.github.com/users/coolhunter1994/gists{/gist_id}","starred_url":"https://api.github.com/users/coolhunter1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolhunter1994/subscriptions","organizations_url":"https://api.github.com/users/coolhunter1994/orgs","repos_url":"https://api.github.com/users/coolhunter1994/repos","events_url":"https://api.github.com/users/coolhunter1994/events{/privacy}","received_events_url":"https://api.github.com/users/coolhunter1994/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coolhunter1994/Vector","description":"","fork":false,"url":"https://api.github.com/repos/coolhunter1994/Vector","forks_url":"https://api.github.com/repos/coolhunter1994/Vector/forks","keys_url":"https://api.github.com/repos/coolhunter1994/Vector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coolhunter1994/Vector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coolhunter1994/Vector/teams","hooks_url":"https://api.github.com/repos/coolhunter1994/Vector/hooks","issue_events_url":"https://api.github.com/repos/coolhunter1994/Vector/issues/events{/number}","events_url":"https://api.github.com/repos/coolhunter1994/Vector/events","assignees_url":"https://api.github.com/repos/coolhunter1994/Vector/assignees{/user}","branches_url":"https://api.github.com/repos/coolhunter1994/Vector/branches{/branch}","tags_url":"https://api.github.com/repos/coolhunter1994/Vector/tags","blobs_url":"https://api.github.com/repos/coolhunter1994/Vector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coolhunter1994/Vector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coolhunter1994/Vector/git/refs{/sha}","trees_url":"https://api.github.com/repos/coolhunter1994/Vector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coolhunter1994/Vector/statuses/{sha}","languages_url":"https://api.github.com/repos/coolhunter1994/Vector/languages","stargazers_url":"https://api.github.com/repos/coolhunter1994/Vector/stargazers","contributors_url":"https://api.github.com/repos/coolhunter1994/Vector/contributors","subscribers_url":"https://api.github.com/repos/coolhunter1994/Vector/subscribers","subscription_url":"https://api.github.com/repos/coolhunter1994/Vector/subscription","commits_url":"https://api.github.com/repos/coolhunter1994/Vector/commits{/sha}","git_commits_url":"https://api.github.com/repos/coolhunter1994/Vector/git/commits{/sha}","comments_url":"https://api.github.com/repos/coolhunter1994/Vector/comments{/number}","issue_comment_url":"https://api.github.com/repos/coolhunter1994/Vector/issues/comments{/number}","contents_url":"https://api.github.com/repos/coolhunter1994/Vector/contents/{+path}","compare_url":"https://api.github.com/repos/coolhunter1994/Vector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coolhunter1994/Vector/merges","archive_url":"https://api.github.com/repos/coolhunter1994/Vector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coolhunter1994/Vector/downloads","issues_url":"https://api.github.com/repos/coolhunter1994/Vector/issues{/number}","pulls_url":"https://api.github.com/repos/coolhunter1994/Vector/pulls{/number}","milestones_url":"https://api.github.com/repos/coolhunter1994/Vector/milestones{/number}","notifications_url":"https://api.github.com/repos/coolhunter1994/Vector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coolhunter1994/Vector/labels{/name}","releases_url":"https://api.github.com/repos/coolhunter1994/Vector/releases{/id}","deployments_url":"https://api.github.com/repos/coolhunter1994/Vector/deployments","created_at":"2016-02-26T07:41:55Z","updated_at":"2016-03-04T08:40:37Z","pushed_at":"2016-03-04T08:41:02Z","git_url":"git://github.com/coolhunter1994/Vector.git","ssh_url":"git@github.com:coolhunter1994/Vector.git","clone_url":"https://github.com/coolhunter1994/Vector.git","svn_url":"https://github.com/coolhunter1994/Vector","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"coolhunter1994:master","ref":"master","sha":"eed8c63bbe387d957bd2230d9b199048c54fa6af","user":{"login":"coolhunter1994","id":17330423,"avatar_url":"https://avatars.githubusercontent.com/u/17330423?v=3","gravatar_id":"","url":"https://api.github.com/users/coolhunter1994","html_url":"https://github.com/coolhunter1994","followers_url":"https://api.github.com/users/coolhunter1994/followers","following_url":"https://api.github.com/users/coolhunter1994/following{/other_user}","gists_url":"https://api.github.com/users/coolhunter1994/gists{/gist_id}","starred_url":"https://api.github.com/users/coolhunter1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolhunter1994/subscriptions","organizations_url":"https://api.github.com/users/coolhunter1994/orgs","repos_url":"https://api.github.com/users/coolhunter1994/repos","events_url":"https://api.github.com/users/coolhunter1994/events{/privacy}","received_events_url":"https://api.github.com/users/coolhunter1994/received_events","type":"User","site_admin":false},"repo":{"id":52587463,"name":"Vector","full_name":"coolhunter1994/Vector","owner":{"login":"coolhunter1994","id":17330423,"avatar_url":"https://avatars.githubusercontent.com/u/17330423?v=3","gravatar_id":"","url":"https://api.github.com/users/coolhunter1994","html_url":"https://github.com/coolhunter1994","followers_url":"https://api.github.com/users/coolhunter1994/followers","following_url":"https://api.github.com/users/coolhunter1994/following{/other_user}","gists_url":"https://api.github.com/users/coolhunter1994/gists{/gist_id}","starred_url":"https://api.github.com/users/coolhunter1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolhunter1994/subscriptions","organizations_url":"https://api.github.com/users/coolhunter1994/orgs","repos_url":"https://api.github.com/users/coolhunter1994/repos","events_url":"https://api.github.com/users/coolhunter1994/events{/privacy}","received_events_url":"https://api.github.com/users/coolhunter1994/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coolhunter1994/Vector","description":"","fork":false,"url":"https://api.github.com/repos/coolhunter1994/Vector","forks_url":"https://api.github.com/repos/coolhunter1994/Vector/forks","keys_url":"https://api.github.com/repos/coolhunter1994/Vector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coolhunter1994/Vector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coolhunter1994/Vector/teams","hooks_url":"https://api.github.com/repos/coolhunter1994/Vector/hooks","issue_events_url":"https://api.github.com/repos/coolhunter1994/Vector/issues/events{/number}","events_url":"https://api.github.com/repos/coolhunter1994/Vector/events","assignees_url":"https://api.github.com/repos/coolhunter1994/Vector/assignees{/user}","branches_url":"https://api.github.com/repos/coolhunter1994/Vector/branches{/branch}","tags_url":"https://api.github.com/repos/coolhunter1994/Vector/tags","blobs_url":"https://api.github.com/repos/coolhunter1994/Vector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coolhunter1994/Vector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coolhunter1994/Vector/git/refs{/sha}","trees_url":"https://api.github.com/repos/coolhunter1994/Vector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coolhunter1994/Vector/statuses/{sha}","languages_url":"https://api.github.com/repos/coolhunter1994/Vector/languages","stargazers_url":"https://api.github.com/repos/coolhunter1994/Vector/stargazers","contributors_url":"https://api.github.com/repos/coolhunter1994/Vector/contributors","subscribers_url":"https://api.github.com/repos/coolhunter1994/Vector/subscribers","subscription_url":"https://api.github.com/repos/coolhunter1994/Vector/subscription","commits_url":"https://api.github.com/repos/coolhunter1994/Vector/commits{/sha}","git_commits_url":"https://api.github.com/repos/coolhunter1994/Vector/git/commits{/sha}","comments_url":"https://api.github.com/repos/coolhunter1994/Vector/comments{/number}","issue_comment_url":"https://api.github.com/repos/coolhunter1994/Vector/issues/comments{/number}","contents_url":"https://api.github.com/repos/coolhunter1994/Vector/contents/{+path}","compare_url":"https://api.github.com/repos/coolhunter1994/Vector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coolhunter1994/Vector/merges","archive_url":"https://api.github.com/repos/coolhunter1994/Vector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coolhunter1994/Vector/downloads","issues_url":"https://api.github.com/repos/coolhunter1994/Vector/issues{/number}","pulls_url":"https://api.github.com/repos/coolhunter1994/Vector/pulls{/number}","milestones_url":"https://api.github.com/repos/coolhunter1994/Vector/milestones{/number}","notifications_url":"https://api.github.com/repos/coolhunter1994/Vector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coolhunter1994/Vector/labels{/name}","releases_url":"https://api.github.com/repos/coolhunter1994/Vector/releases{/id}","deployments_url":"https://api.github.com/repos/coolhunter1994/Vector/deployments","created_at":"2016-02-26T07:41:55Z","updated_at":"2016-03-04T08:40:37Z","pushed_at":"2016-03-04T08:41:02Z","git_url":"git://github.com/coolhunter1994/Vector.git","ssh_url":"git@github.com:coolhunter1994/Vector.git","clone_url":"https://github.com/coolhunter1994/Vector.git","svn_url":"https://github.com/coolhunter1994/Vector","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coolhunter1994/Vector/pulls/1"},"html":{"href":"https://github.com/coolhunter1994/Vector/pull/1"},"issue":{"href":"https://api.github.com/repos/coolhunter1994/Vector/issues/1"},"comments":{"href":"https://api.github.com/repos/coolhunter1994/Vector/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/coolhunter1994/Vector/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/coolhunter1994/Vector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coolhunter1994/Vector/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/coolhunter1994/Vector/statuses/55b90b97c7e43378e9dfb963a78ababd2adcf620"}}}}