{"action":"created","comment":{"url":"https://api.github.com/repos/sdukshis/vector/pulls/comments/54052738","id":54052738,"diff_hunk":"@@ -0,0 +1,119 @@\n+#include \"vector.h\"\n+\n+Vector::Vector() {\n+    for (unsigned int i = 0; i < n; ++i) {\n+        coords_[i] = 0;\n+    }\n+}\n+\n+Vector::Vector(double a) {\n+    for (unsigned int i = 0; i < n; ++i) {\n+        coords_[i] = a;\n+    }\n+}\n+\n+Vector::Vector(const Vector &op) {\n+    for (unsigned int i = 0; i < n; ++i) {\n+        coords_[i] = op.coords_[i];\n+    }\n+}\n+\n+Vector &Vector::operator=(const Vector &op) {\n+    for (unsigned int i = 0; i < n; ++i) {\n+        coords_[i] = op.coords_[i];\n+    }\n+    return *this;\n+}\n+\n+double Vector::operator[](unsigned long i) const {\n+    return coords_[i];\n+}\n+\n+double &Vector::operator[](unsigned long i) {\n+    return coords_[i];\n+}\n+\n+Vector &Vector::operator+=(const Vector &op) {\n+    for (unsigned int i = 0; i < n; ++i) {\n+        coords_[i] += op.coords_[i];\n+    }\n+    return *this;\n+}\n+\n+\n+Vector &Vector::operator-=(const Vector &op) {\n+    for (unsigned int i = 0; i < n; ++i) {\n+        coords_[i] -= op.coords_[i];\n+    }\n+    return *this;\n+}\n+\n+Vector &Vector::operator*=(double a) {\n+    for (unsigned int i = 0; i < n; ++i) {\n+        coords_[i] = coords_[i] * a;","path":"src/vector.cpp","position":53,"original_position":53,"commit_id":"755e25de4cb0bbf5d9dc2d88fea20e0a9f5316cc","original_commit_id":"755e25de4cb0bbf5d9dc2d88fea20e0a9f5316cc","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":"```coords_[i] *= a;```","created_at":"2016-02-25T06:11:27Z","updated_at":"2016-02-25T06:11:27Z","html_url":"https://github.com/sdukshis/vector/pull/3#discussion_r54052738","pull_request_url":"https://api.github.com/repos/sdukshis/vector/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/sdukshis/vector/pulls/comments/54052738"},"html":{"href":"https://github.com/sdukshis/vector/pull/3#discussion_r54052738"},"pull_request":{"href":"https://api.github.com/repos/sdukshis/vector/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/sdukshis/vector/pulls/3","id":59862853,"html_url":"https://github.com/sdukshis/vector/pull/3","diff_url":"https://github.com/sdukshis/vector/pull/3.diff","patch_url":"https://github.com/sdukshis/vector/pull/3.patch","issue_url":"https://api.github.com/repos/sdukshis/vector/issues/3","number":3,"state":"open","locked":false,"title":"Solomon","user":{"login":"ElenaVinogradova","id":15254409,"avatar_url":"https://avatars.githubusercontent.com/u/15254409?v=3","gravatar_id":"","url":"https://api.github.com/users/ElenaVinogradova","html_url":"https://github.com/ElenaVinogradova","followers_url":"https://api.github.com/users/ElenaVinogradova/followers","following_url":"https://api.github.com/users/ElenaVinogradova/following{/other_user}","gists_url":"https://api.github.com/users/ElenaVinogradova/gists{/gist_id}","starred_url":"https://api.github.com/users/ElenaVinogradova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElenaVinogradova/subscriptions","organizations_url":"https://api.github.com/users/ElenaVinogradova/orgs","repos_url":"https://api.github.com/users/ElenaVinogradova/repos","events_url":"https://api.github.com/users/ElenaVinogradova/events{/privacy}","received_events_url":"https://api.github.com/users/ElenaVinogradova/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-18T21:04:13Z","updated_at":"2016-02-25T06:11:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"348fe7c5ee7abd32d47c1f4c426bb6a5884b91d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sdukshis/vector/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sdukshis/vector/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sdukshis/vector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sdukshis/vector/issues/3/comments","statuses_url":"https://api.github.com/repos/sdukshis/vector/statuses/755e25de4cb0bbf5d9dc2d88fea20e0a9f5316cc","head":{"label":"ElenaVinogradova:solomon","ref":"solomon","sha":"755e25de4cb0bbf5d9dc2d88fea20e0a9f5316cc","user":{"login":"ElenaVinogradova","id":15254409,"avatar_url":"https://avatars.githubusercontent.com/u/15254409?v=3","gravatar_id":"","url":"https://api.github.com/users/ElenaVinogradova","html_url":"https://github.com/ElenaVinogradova","followers_url":"https://api.github.com/users/ElenaVinogradova/followers","following_url":"https://api.github.com/users/ElenaVinogradova/following{/other_user}","gists_url":"https://api.github.com/users/ElenaVinogradova/gists{/gist_id}","starred_url":"https://api.github.com/users/ElenaVinogradova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElenaVinogradova/subscriptions","organizations_url":"https://api.github.com/users/ElenaVinogradova/orgs","repos_url":"https://api.github.com/users/ElenaVinogradova/repos","events_url":"https://api.github.com/users/ElenaVinogradova/events{/privacy}","received_events_url":"https://api.github.com/users/ElenaVinogradova/received_events","type":"User","site_admin":false},"repo":{"id":44771724,"name":"vector","full_name":"ElenaVinogradova/vector","owner":{"login":"ElenaVinogradova","id":15254409,"avatar_url":"https://avatars.githubusercontent.com/u/15254409?v=3","gravatar_id":"","url":"https://api.github.com/users/ElenaVinogradova","html_url":"https://github.com/ElenaVinogradova","followers_url":"https://api.github.com/users/ElenaVinogradova/followers","following_url":"https://api.github.com/users/ElenaVinogradova/following{/other_user}","gists_url":"https://api.github.com/users/ElenaVinogradova/gists{/gist_id}","starred_url":"https://api.github.com/users/ElenaVinogradova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElenaVinogradova/subscriptions","organizations_url":"https://api.github.com/users/ElenaVinogradova/orgs","repos_url":"https://api.github.com/users/ElenaVinogradova/repos","events_url":"https://api.github.com/users/ElenaVinogradova/events{/privacy}","received_events_url":"https://api.github.com/users/ElenaVinogradova/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ElenaVinogradova/vector","description":"Linear space element representation","fork":true,"url":"https://api.github.com/repos/ElenaVinogradova/vector","forks_url":"https://api.github.com/repos/ElenaVinogradova/vector/forks","keys_url":"https://api.github.com/repos/ElenaVinogradova/vector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ElenaVinogradova/vector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ElenaVinogradova/vector/teams","hooks_url":"https://api.github.com/repos/ElenaVinogradova/vector/hooks","issue_events_url":"https://api.github.com/repos/ElenaVinogradova/vector/issues/events{/number}","events_url":"https://api.github.com/repos/ElenaVinogradova/vector/events","assignees_url":"https://api.github.com/repos/ElenaVinogradova/vector/assignees{/user}","branches_url":"https://api.github.com/repos/ElenaVinogradova/vector/branches{/branch}","tags_url":"https://api.github.com/repos/ElenaVinogradova/vector/tags","blobs_url":"https://api.github.com/repos/ElenaVinogradova/vector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ElenaVinogradova/vector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ElenaVinogradova/vector/git/refs{/sha}","trees_url":"https://api.github.com/repos/ElenaVinogradova/vector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ElenaVinogradova/vector/statuses/{sha}","languages_url":"https://api.github.com/repos/ElenaVinogradova/vector/languages","stargazers_url":"https://api.github.com/repos/ElenaVinogradova/vector/stargazers","contributors_url":"https://api.github.com/repos/ElenaVinogradova/vector/contributors","subscribers_url":"https://api.github.com/repos/ElenaVinogradova/vector/subscribers","subscription_url":"https://api.github.com/repos/ElenaVinogradova/vector/subscription","commits_url":"https://api.github.com/repos/ElenaVinogradova/vector/commits{/sha}","git_commits_url":"https://api.github.com/repos/ElenaVinogradova/vector/git/commits{/sha}","comments_url":"https://api.github.com/repos/ElenaVinogradova/vector/comments{/number}","issue_comment_url":"https://api.github.com/repos/ElenaVinogradova/vector/issues/comments{/number}","contents_url":"https://api.github.com/repos/ElenaVinogradova/vector/contents/{+path}","compare_url":"https://api.github.com/repos/ElenaVinogradova/vector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ElenaVinogradova/vector/merges","archive_url":"https://api.github.com/repos/ElenaVinogradova/vector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ElenaVinogradova/vector/downloads","issues_url":"https://api.github.com/repos/ElenaVinogradova/vector/issues{/number}","pulls_url":"https://api.github.com/repos/ElenaVinogradova/vector/pulls{/number}","milestones_url":"https://api.github.com/repos/ElenaVinogradova/vector/milestones{/number}","notifications_url":"https://api.github.com/repos/ElenaVinogradova/vector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ElenaVinogradova/vector/labels{/name}","releases_url":"https://api.github.com/repos/ElenaVinogradova/vector/releases{/id}","deployments_url":"https://api.github.com/repos/ElenaVinogradova/vector/deployments","created_at":"2015-10-22T20:35:04Z","updated_at":"2015-10-22T20:35:05Z","pushed_at":"2016-02-18T21:03:20Z","git_url":"git://github.com/ElenaVinogradova/vector.git","ssh_url":"git@github.com:ElenaVinogradova/vector.git","clone_url":"https://github.com/ElenaVinogradova/vector.git","svn_url":"https://github.com/ElenaVinogradova/vector","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"sdukshis:master","ref":"master","sha":"ca2a3723b78964d5421dc6337ddcc8390decba8a","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},"repo":{"id":43676437,"name":"vector","full_name":"sdukshis/vector","owner":{"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},"private":false,"html_url":"https://github.com/sdukshis/vector","description":"Linear space element representation","fork":false,"url":"https://api.github.com/repos/sdukshis/vector","forks_url":"https://api.github.com/repos/sdukshis/vector/forks","keys_url":"https://api.github.com/repos/sdukshis/vector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdukshis/vector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdukshis/vector/teams","hooks_url":"https://api.github.com/repos/sdukshis/vector/hooks","issue_events_url":"https://api.github.com/repos/sdukshis/vector/issues/events{/number}","events_url":"https://api.github.com/repos/sdukshis/vector/events","assignees_url":"https://api.github.com/repos/sdukshis/vector/assignees{/user}","branches_url":"https://api.github.com/repos/sdukshis/vector/branches{/branch}","tags_url":"https://api.github.com/repos/sdukshis/vector/tags","blobs_url":"https://api.github.com/repos/sdukshis/vector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdukshis/vector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdukshis/vector/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdukshis/vector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdukshis/vector/statuses/{sha}","languages_url":"https://api.github.com/repos/sdukshis/vector/languages","stargazers_url":"https://api.github.com/repos/sdukshis/vector/stargazers","contributors_url":"https://api.github.com/repos/sdukshis/vector/contributors","subscribers_url":"https://api.github.com/repos/sdukshis/vector/subscribers","subscription_url":"https://api.github.com/repos/sdukshis/vector/subscription","commits_url":"https://api.github.com/repos/sdukshis/vector/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdukshis/vector/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdukshis/vector/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdukshis/vector/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdukshis/vector/contents/{+path}","compare_url":"https://api.github.com/repos/sdukshis/vector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdukshis/vector/merges","archive_url":"https://api.github.com/repos/sdukshis/vector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdukshis/vector/downloads","issues_url":"https://api.github.com/repos/sdukshis/vector/issues{/number}","pulls_url":"https://api.github.com/repos/sdukshis/vector/pulls{/number}","milestones_url":"https://api.github.com/repos/sdukshis/vector/milestones{/number}","notifications_url":"https://api.github.com/repos/sdukshis/vector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdukshis/vector/labels{/name}","releases_url":"https://api.github.com/repos/sdukshis/vector/releases{/id}","deployments_url":"https://api.github.com/repos/sdukshis/vector/deployments","created_at":"2015-10-05T09:50:01Z","updated_at":"2015-10-05T10:19:35Z","pushed_at":"2016-02-18T21:04:13Z","git_url":"git://github.com/sdukshis/vector.git","ssh_url":"git@github.com:sdukshis/vector.git","clone_url":"https://github.com/sdukshis/vector.git","svn_url":"https://github.com/sdukshis/vector","homepage":null,"size":144,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sdukshis/vector/pulls/3"},"html":{"href":"https://github.com/sdukshis/vector/pull/3"},"issue":{"href":"https://api.github.com/repos/sdukshis/vector/issues/3"},"comments":{"href":"https://api.github.com/repos/sdukshis/vector/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sdukshis/vector/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sdukshis/vector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sdukshis/vector/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sdukshis/vector/statuses/755e25de4cb0bbf5d9dc2d88fea20e0a9f5316cc"}}}}