{"action":"created","comment":{"url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/comments/31379372","id":31379372,"diff_hunk":"@@ -0,0 +1,194 @@\n+﻿#include <iostream>\n+#include <vector>\n+#include <cmath>\n+#include <fstream>\n+#include <ctime>\n+\n+double interval(const std::vector<double> &analysis, const std::vector<double> &centre) {\n+\tdouble sum = 0;\n+\tfor (size_t k = 0; k != analysis.size(); ++k)","path":"k_means.cpp","position":9,"original_position":9,"commit_id":"bdff1a156e1307d27cc85d0bc043d4b9c5bbc2b2","original_commit_id":"bdff1a156e1307d27cc85d0bc043d4b9c5bbc2b2","user":{"login":"Kontakter","id":374677,"avatar_url":"https://avatars.githubusercontent.com/u/374677?v=3","gravatar_id":"","url":"https://api.github.com/users/Kontakter","html_url":"https://github.com/Kontakter","followers_url":"https://api.github.com/users/Kontakter/followers","following_url":"https://api.github.com/users/Kontakter/following{/other_user}","gists_url":"https://api.github.com/users/Kontakter/gists{/gist_id}","starred_url":"https://api.github.com/users/Kontakter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kontakter/subscriptions","organizations_url":"https://api.github.com/users/Kontakter/orgs","repos_url":"https://api.github.com/users/Kontakter/repos","events_url":"https://api.github.com/users/Kontakter/events{/privacy}","received_events_url":"https://api.github.com/users/Kontakter/received_events","type":"User","site_admin":false},"body":"Я рекомендую везде в циклах, условиях и.т.п писать фигурные скобки. Это убережет вас от глупых ошибок.","created_at":"2015-05-30T09:51:54Z","updated_at":"2015-05-30T09:51:54Z","html_url":"https://github.com/cs-hse-projects/Bykov-cancer/pull/8#discussion_r31379372","pull_request_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/comments/31379372"},"html":{"href":"https://github.com/cs-hse-projects/Bykov-cancer/pull/8#discussion_r31379372"},"pull_request":{"href":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/8","id":36563206,"html_url":"https://github.com/cs-hse-projects/Bykov-cancer/pull/8","diff_url":"https://github.com/cs-hse-projects/Bykov-cancer/pull/8.diff","patch_url":"https://github.com/cs-hse-projects/Bykov-cancer/pull/8.patch","issue_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/issues/8","number":8,"state":"open","locked":false,"title":"All code","user":{"login":"Kontakter","id":374677,"avatar_url":"https://avatars.githubusercontent.com/u/374677?v=3","gravatar_id":"","url":"https://api.github.com/users/Kontakter","html_url":"https://github.com/Kontakter","followers_url":"https://api.github.com/users/Kontakter/followers","following_url":"https://api.github.com/users/Kontakter/following{/other_user}","gists_url":"https://api.github.com/users/Kontakter/gists{/gist_id}","starred_url":"https://api.github.com/users/Kontakter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kontakter/subscriptions","organizations_url":"https://api.github.com/users/Kontakter/orgs","repos_url":"https://api.github.com/users/Kontakter/repos","events_url":"https://api.github.com/users/Kontakter/events{/privacy}","received_events_url":"https://api.github.com/users/Kontakter/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-30T09:48:42Z","updated_at":"2015-05-30T09:51:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5df6f55d2bca14068329465250fc659a78172738","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/8/commits","review_comments_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/8/comments","review_comment_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/issues/8/comments","statuses_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/statuses/bdff1a156e1307d27cc85d0bc043d4b9c5bbc2b2","head":{"label":"cs-hse-projects:master","ref":"master","sha":"bdff1a156e1307d27cc85d0bc043d4b9c5bbc2b2","user":{"login":"cs-hse-projects","id":10801300,"avatar_url":"https://avatars.githubusercontent.com/u/10801300?v=3","gravatar_id":"","url":"https://api.github.com/users/cs-hse-projects","html_url":"https://github.com/cs-hse-projects","followers_url":"https://api.github.com/users/cs-hse-projects/followers","following_url":"https://api.github.com/users/cs-hse-projects/following{/other_user}","gists_url":"https://api.github.com/users/cs-hse-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/cs-hse-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs-hse-projects/subscriptions","organizations_url":"https://api.github.com/users/cs-hse-projects/orgs","repos_url":"https://api.github.com/users/cs-hse-projects/repos","events_url":"https://api.github.com/users/cs-hse-projects/events{/privacy}","received_events_url":"https://api.github.com/users/cs-hse-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":36514458,"name":"Bykov-cancer","full_name":"cs-hse-projects/Bykov-cancer","owner":{"login":"cs-hse-projects","id":10801300,"avatar_url":"https://avatars.githubusercontent.com/u/10801300?v=3","gravatar_id":"","url":"https://api.github.com/users/cs-hse-projects","html_url":"https://github.com/cs-hse-projects","followers_url":"https://api.github.com/users/cs-hse-projects/followers","following_url":"https://api.github.com/users/cs-hse-projects/following{/other_user}","gists_url":"https://api.github.com/users/cs-hse-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/cs-hse-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs-hse-projects/subscriptions","organizations_url":"https://api.github.com/users/cs-hse-projects/orgs","repos_url":"https://api.github.com/users/cs-hse-projects/repos","events_url":"https://api.github.com/users/cs-hse-projects/events{/privacy}","received_events_url":"https://api.github.com/users/cs-hse-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cs-hse-projects/Bykov-cancer","description":"","fork":false,"url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer","forks_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/forks","keys_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/teams","hooks_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/hooks","issue_events_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/issues/events{/number}","events_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/events","assignees_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/assignees{/user}","branches_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/branches{/branch}","tags_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/tags","blobs_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/git/refs{/sha}","trees_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/statuses/{sha}","languages_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/languages","stargazers_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/stargazers","contributors_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/contributors","subscribers_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/subscribers","subscription_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/subscription","commits_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/commits{/sha}","git_commits_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/git/commits{/sha}","comments_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/comments{/number}","issue_comment_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/issues/comments{/number}","contents_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/contents/{+path}","compare_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/merges","archive_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/downloads","issues_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/issues{/number}","pulls_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls{/number}","milestones_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/milestones{/number}","notifications_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/labels{/name}","releases_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/releases{/id}","created_at":"2015-05-29T16:00:59Z","updated_at":"2015-05-29T16:34:43Z","pushed_at":"2015-05-30T09:48:43Z","git_url":"git://github.com/cs-hse-projects/Bykov-cancer.git","ssh_url":"git@github.com:cs-hse-projects/Bykov-cancer.git","clone_url":"https://github.com/cs-hse-projects/Bykov-cancer.git","svn_url":"https://github.com/cs-hse-projects/Bykov-cancer","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"cs-hse-projects:initial","ref":"initial","sha":"7d1d6e8d2f48792b0e9ea54db94c3006c205bbbf","user":{"login":"cs-hse-projects","id":10801300,"avatar_url":"https://avatars.githubusercontent.com/u/10801300?v=3","gravatar_id":"","url":"https://api.github.com/users/cs-hse-projects","html_url":"https://github.com/cs-hse-projects","followers_url":"https://api.github.com/users/cs-hse-projects/followers","following_url":"https://api.github.com/users/cs-hse-projects/following{/other_user}","gists_url":"https://api.github.com/users/cs-hse-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/cs-hse-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs-hse-projects/subscriptions","organizations_url":"https://api.github.com/users/cs-hse-projects/orgs","repos_url":"https://api.github.com/users/cs-hse-projects/repos","events_url":"https://api.github.com/users/cs-hse-projects/events{/privacy}","received_events_url":"https://api.github.com/users/cs-hse-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":36514458,"name":"Bykov-cancer","full_name":"cs-hse-projects/Bykov-cancer","owner":{"login":"cs-hse-projects","id":10801300,"avatar_url":"https://avatars.githubusercontent.com/u/10801300?v=3","gravatar_id":"","url":"https://api.github.com/users/cs-hse-projects","html_url":"https://github.com/cs-hse-projects","followers_url":"https://api.github.com/users/cs-hse-projects/followers","following_url":"https://api.github.com/users/cs-hse-projects/following{/other_user}","gists_url":"https://api.github.com/users/cs-hse-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/cs-hse-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs-hse-projects/subscriptions","organizations_url":"https://api.github.com/users/cs-hse-projects/orgs","repos_url":"https://api.github.com/users/cs-hse-projects/repos","events_url":"https://api.github.com/users/cs-hse-projects/events{/privacy}","received_events_url":"https://api.github.com/users/cs-hse-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cs-hse-projects/Bykov-cancer","description":"","fork":false,"url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer","forks_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/forks","keys_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/teams","hooks_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/hooks","issue_events_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/issues/events{/number}","events_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/events","assignees_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/assignees{/user}","branches_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/branches{/branch}","tags_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/tags","blobs_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/git/refs{/sha}","trees_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/statuses/{sha}","languages_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/languages","stargazers_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/stargazers","contributors_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/contributors","subscribers_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/subscribers","subscription_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/subscription","commits_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/commits{/sha}","git_commits_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/git/commits{/sha}","comments_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/comments{/number}","issue_comment_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/issues/comments{/number}","contents_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/contents/{+path}","compare_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/merges","archive_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/downloads","issues_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/issues{/number}","pulls_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls{/number}","milestones_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/milestones{/number}","notifications_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/labels{/name}","releases_url":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/releases{/id}","created_at":"2015-05-29T16:00:59Z","updated_at":"2015-05-29T16:34:43Z","pushed_at":"2015-05-30T09:48:43Z","git_url":"git://github.com/cs-hse-projects/Bykov-cancer.git","ssh_url":"git@github.com:cs-hse-projects/Bykov-cancer.git","clone_url":"https://github.com/cs-hse-projects/Bykov-cancer.git","svn_url":"https://github.com/cs-hse-projects/Bykov-cancer","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/8"},"html":{"href":"https://github.com/cs-hse-projects/Bykov-cancer/pull/8"},"issue":{"href":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/issues/8"},"comments":{"href":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/cs-hse-projects/Bykov-cancer/statuses/bdff1a156e1307d27cc85d0bc043d4b9c5bbc2b2"}}}}