payload: {"action":"created","comment":{"url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/comments/282187941","pull_request_review_id":235212292,"id":282187941,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4MjE4Nzk0MQ==","diff_hunk":"@@ -0,0 +1,32 @@\n+// Copyright 2019 Galuzina Anna\n+#include \"include/distance_between_vectors.h\"\n+#include <vector>\n+\n+float DistanceBetweenVectors::CalculateDistance(std::vector<float> vector1,\n+std::vector<float> vector2, Metric::TypeMetric typemetric) {\n+  if (vector1.size() == vector2.size()) {\n+    float distance;\n+    int size;\n+    std::vector<float>vect1 = vector1;\n+    std::vector<float>vect2 = vector2;\n+    size = vector1.size();\n+    if (typemetric == Metric::LInf) {\n+      float max = 0;\n+      for (int i = 0; i < size; i++)\n+        if (max < fabs(vect1[i] - vect2[i]))\n+          max = static_cast<float>(fabs(vect1[i] - vect2[i]));\n+      distance = max;\n+    } else {\n+      float Sum_Of_Components = 0;\n+      for (int i = 0; i < size; i++)\n+        Sum_Of_Components += powf(static_cast<float>\n+        (fabs(vect1[i] - vect2[i])),\n+          1.0f * static_cast<float>(typemetric));\n+      distance = powf(Sum_Of_Components,\n+      1.0f / static_cast<float>(typemetric));","path":"modules/distance_between_vectors/src/distance_between_vectors.cpp","position":26,"original_position":26,"commit_id":"b92f64c8eaa0bf4a49143e7170598320108b15b2","original_commit_id":"b92f64c8eaa0bf4a49143e7170598320108b15b2","user":{"login":"alexbatashev","id":829678,"node_id":"MDQ6VXNlcjgyOTY3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/829678?v=4","gravatar_id":"","url":"https://api.github.com/users/alexbatashev","html_url":"https://github.com/alexbatashev","followers_url":"https://api.github.com/users/alexbatashev/followers","following_url":"https://api.github.com/users/alexbatashev/following{/other_user}","gists_url":"https://api.github.com/users/alexbatashev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbatashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbatashev/subscriptions","organizations_url":"https://api.github.com/users/alexbatashev/orgs","repos_url":"https://api.github.com/users/alexbatashev/repos","events_url":"https://api.github.com/users/alexbatashev/events{/privacy}","received_events_url":"https://api.github.com/users/alexbatashev/received_events","type":"User","site_admin":false},"body":"Отступы","created_at":"2019-05-08T18:18:02Z","updated_at":"2019-05-08T18:19:10Z","html_url":"https://github.com/UNN-ITMM-Software/devtools-course-practice/pull/174#discussion_r282187941","pull_request_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/174","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/comments/282187941"},"html":{"href":"https://github.com/UNN-ITMM-Software/devtools-course-practice/pull/174#discussion_r282187941"},"pull_request":{"href":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/174"}}},"pull_request":{"url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/174","id":274722759,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc0NzIyNzU5","html_url":"https://github.com/UNN-ITMM-Software/devtools-course-practice/pull/174","diff_url":"https://github.com/UNN-ITMM-Software/devtools-course-practice/pull/174.diff","patch_url":"https://github.com/UNN-ITMM-Software/devtools-course-practice/pull/174.patch","issue_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/issues/174","number":174,"state":"open","locked":false,"title":"Галузина - Лабораторная работа #2 ","user":{"login":"Galuzina","id":42965044,"node_id":"MDQ6VXNlcjQyOTY1MDQ0","avatar_url":"https://avatars0.githubusercontent.com/u/42965044?v=4","gravatar_id":"","url":"https://api.github.com/users/Galuzina","html_url":"https://github.com/Galuzina","followers_url":"https://api.github.com/users/Galuzina/followers","following_url":"https://api.github.com/users/Galuzina/following{/other_user}","gists_url":"https://api.github.com/users/Galuzina/gists{/gist_id}","starred_url":"https://api.github.com/users/Galuzina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Galuzina/subscriptions","organizations_url":"https://api.github.com/users/Galuzina/orgs","repos_url":"https://api.github.com/users/Galuzina/repos","events_url":"https://api.github.com/users/Galuzina/events{/privacy}","received_events_url":"https://api.github.com/users/Galuzina/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-04-30T13:05:06Z","updated_at":"2019-05-08T18:19:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73cb225583abdb958d778e2510faaecb03355f18","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/174/commits","review_comments_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/174/comments","review_comment_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/issues/174/comments","statuses_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/statuses/b92f64c8eaa0bf4a49143e7170598320108b15b2","head":{"label":"Galuzina:lab2-GALUZINA-ANNA","ref":"lab2-GALUZINA-ANNA","sha":"b92f64c8eaa0bf4a49143e7170598320108b15b2","user":{"login":"Galuzina","id":42965044,"node_id":"MDQ6VXNlcjQyOTY1MDQ0","avatar_url":"https://avatars0.githubusercontent.com/u/42965044?v=4","gravatar_id":"","url":"https://api.github.com/users/Galuzina","html_url":"https://github.com/Galuzina","followers_url":"https://api.github.com/users/Galuzina/followers","following_url":"https://api.github.com/users/Galuzina/following{/other_user}","gists_url":"https://api.github.com/users/Galuzina/gists{/gist_id}","starred_url":"https://api.github.com/users/Galuzina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Galuzina/subscriptions","organizations_url":"https://api.github.com/users/Galuzina/orgs","repos_url":"https://api.github.com/users/Galuzina/repos","events_url":"https://api.github.com/users/Galuzina/events{/privacy}","received_events_url":"https://api.github.com/users/Galuzina/received_events","type":"User","site_admin":false},"repo":{"id":180146822,"node_id":"MDEwOlJlcG9zaXRvcnkxODAxNDY4MjI=","name":"devtools-course-practice","full_name":"Galuzina/devtools-course-practice","private":false,"owner":{"login":"Galuzina","id":42965044,"node_id":"MDQ6VXNlcjQyOTY1MDQ0","avatar_url":"https://avatars0.githubusercontent.com/u/42965044?v=4","gravatar_id":"","url":"https://api.github.com/users/Galuzina","html_url":"https://github.com/Galuzina","followers_url":"https://api.github.com/users/Galuzina/followers","following_url":"https://api.github.com/users/Galuzina/following{/other_user}","gists_url":"https://api.github.com/users/Galuzina/gists{/gist_id}","starred_url":"https://api.github.com/users/Galuzina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Galuzina/subscriptions","organizations_url":"https://api.github.com/users/Galuzina/orgs","repos_url":"https://api.github.com/users/Galuzina/repos","events_url":"https://api.github.com/users/Galuzina/events{/privacy}","received_events_url":"https://api.github.com/users/Galuzina/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Galuzina/devtools-course-practice","description":"Course on Development Tools (in Russian)","fork":true,"url":"https://api.github.com/repos/Galuzina/devtools-course-practice","forks_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/forks","keys_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/teams","hooks_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/hooks","issue_events_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/events","assignees_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/tags","blobs_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/languages","stargazers_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/stargazers","contributors_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/contributors","subscribers_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/subscribers","subscription_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/subscription","commits_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/merges","archive_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/downloads","issues_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/releases{/id}","deployments_url":"https://api.github.com/repos/Galuzina/devtools-course-practice/deployments","created_at":"2019-04-08T12:43:45Z","updated_at":"2019-04-08T12:43:47Z","pushed_at":"2019-04-30T12:52:20Z","git_url":"git://github.com/Galuzina/devtools-course-practice.git","ssh_url":"git@github.com:Galuzina/devtools-course-practice.git","clone_url":"https://github.com/Galuzina/devtools-course-practice.git","svn_url":"https://github.com/Galuzina/devtools-course-practice","homepage":"https://gitter.im/devtools-course-practice-2019/community","size":4678,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"UNN-ITMM-Software:master","ref":"master","sha":"515fb2a45c222b0ad608d0e7fa5b6430135d3faa","user":{"login":"UNN-ITMM-Software","id":5463209,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NjMyMDk=","avatar_url":"https://avatars2.githubusercontent.com/u/5463209?v=4","gravatar_id":"","url":"https://api.github.com/users/UNN-ITMM-Software","html_url":"https://github.com/UNN-ITMM-Software","followers_url":"https://api.github.com/users/UNN-ITMM-Software/followers","following_url":"https://api.github.com/users/UNN-ITMM-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-ITMM-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-ITMM-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-ITMM-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-ITMM-Software/orgs","repos_url":"https://api.github.com/users/UNN-ITMM-Software/repos","events_url":"https://api.github.com/users/UNN-ITMM-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-ITMM-Software/received_events","type":"Organization","site_admin":false},"repo":{"id":177419410,"node_id":"MDEwOlJlcG9zaXRvcnkxNzc0MTk0MTA=","name":"devtools-course-practice","full_name":"UNN-ITMM-Software/devtools-course-practice","private":false,"owner":{"login":"UNN-ITMM-Software","id":5463209,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NjMyMDk=","avatar_url":"https://avatars2.githubusercontent.com/u/5463209?v=4","gravatar_id":"","url":"https://api.github.com/users/UNN-ITMM-Software","html_url":"https://github.com/UNN-ITMM-Software","followers_url":"https://api.github.com/users/UNN-ITMM-Software/followers","following_url":"https://api.github.com/users/UNN-ITMM-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-ITMM-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-ITMM-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-ITMM-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-ITMM-Software/orgs","repos_url":"https://api.github.com/users/UNN-ITMM-Software/repos","events_url":"https://api.github.com/users/UNN-ITMM-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-ITMM-Software/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/UNN-ITMM-Software/devtools-course-practice","description":"Course on Development Tools (in Russian)","fork":false,"url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice","forks_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/forks","keys_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/teams","hooks_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/hooks","issue_events_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/events","assignees_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/tags","blobs_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/languages","stargazers_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/stargazers","contributors_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/contributors","subscribers_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/subscribers","subscription_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/subscription","commits_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/merges","archive_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/downloads","issues_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/releases{/id}","deployments_url":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/deployments","created_at":"2019-03-24T13:36:16Z","updated_at":"2019-05-08T17:48:55Z","pushed_at":"2019-05-08T17:48:52Z","git_url":"git://github.com/UNN-ITMM-Software/devtools-course-practice.git","ssh_url":"git@github.com:UNN-ITMM-Software/devtools-course-practice.git","clone_url":"https://github.com/UNN-ITMM-Software/devtools-course-practice.git","svn_url":"https://github.com/UNN-ITMM-Software/devtools-course-practice","homepage":"https://gitter.im/devtools-course-practice-2019/community","size":4818,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":8,"license":null,"forks":69,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/174"},"html":{"href":"https://github.com/UNN-ITMM-Software/devtools-course-practice/pull/174"},"issue":{"href":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/issues/174"},"comments":{"href":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/issues/174/comments"},"review_comments":{"href":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/174/comments"},"review_comment":{"href":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/pulls/174/commits"},"statuses":{"href":"https://api.github.com/repos/UNN-ITMM-Software/devtools-course-practice/statuses/b92f64c8eaa0bf4a49143e7170598320108b15b2"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"alexbatashev"}}