{"action":"created","comment":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/81351870","pull_request_review_id":2338531,"id":81351870,"diff_hunk":"@@ -44,7 +50,15 @@ fun ageDescription(age: Int): String = TODO()\n  */\n fun timeForHalfWay(t1: Double, v1: Double,\n                    t2: Double, v2: Double,\n-                   t3: Double, v3: Double): Double = TODO()\n+                   t3: Double, v3: Double): Double {\n+    val s1 = t1 * v1\n+    val s2 = t2 * v2\n+    val s3 = t3 * v3\n+    val s = (s1 + s2 + s3) / 2\n+    if (s <= s1) return s / v1 else\n+        if (s <= s1 + s2) return t1 + (s - s1) / v2 else","path":"src/lesson2/task1/IfElse.kt","position":26,"original_position":26,"commit_id":"bb60a7e3313f0fbf4816a83aee0fd21e0fcb4983","original_commit_id":"bb60a7e3313f0fbf4816a83aee0fd21e0fcb4983","user":{"login":"mglukhikh","id":1127631,"avatar_url":"https://avatars.githubusercontent.com/u/1127631?v=3","gravatar_id":"","url":"https://api.github.com/users/mglukhikh","html_url":"https://github.com/mglukhikh","followers_url":"https://api.github.com/users/mglukhikh/followers","following_url":"https://api.github.com/users/mglukhikh/following{/other_user}","gists_url":"https://api.github.com/users/mglukhikh/gists{/gist_id}","starred_url":"https://api.github.com/users/mglukhikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mglukhikh/subscriptions","organizations_url":"https://api.github.com/users/mglukhikh/orgs","repos_url":"https://api.github.com/users/mglukhikh/repos","events_url":"https://api.github.com/users/mglukhikh/events{/privacy}","received_events_url":"https://api.github.com/users/mglukhikh/received_events","type":"User","site_admin":false},"body":"`if..else if` записывается на одном уровне:\r\n\r\n```\r\nif (...) return ...\r\nelse if (...) return ...\r\nelse if ...\r\n```","created_at":"2016-09-30T14:41:30Z","updated_at":"2016-09-30T14:44:37Z","html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/147#discussion_r81351870","pull_request_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/147","_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/81351870"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/147#discussion_r81351870"},"pull_request":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/147"}}},"pull_request":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/147","id":87420358,"html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/147","diff_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/147.diff","patch_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/147.patch","issue_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/147","number":147,"state":"open","locked":false,"title":"2 урок","user":{"login":"copchenka","id":22070446,"avatar_url":"https://avatars.githubusercontent.com/u/22070446?v=3","gravatar_id":"","url":"https://api.github.com/users/copchenka","html_url":"https://github.com/copchenka","followers_url":"https://api.github.com/users/copchenka/followers","following_url":"https://api.github.com/users/copchenka/following{/other_user}","gists_url":"https://api.github.com/users/copchenka/gists{/gist_id}","starred_url":"https://api.github.com/users/copchenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copchenka/subscriptions","organizations_url":"https://api.github.com/users/copchenka/orgs","repos_url":"https://api.github.com/users/copchenka/repos","events_url":"https://api.github.com/users/copchenka/events{/privacy}","received_events_url":"https://api.github.com/users/copchenka/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-30T01:13:28Z","updated_at":"2016-09-30T14:44:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"375843c1db1f9dca18385d73cd74434f0de7e2e7","assignee":{"login":"mglukhikh","id":1127631,"avatar_url":"https://avatars.githubusercontent.com/u/1127631?v=3","gravatar_id":"","url":"https://api.github.com/users/mglukhikh","html_url":"https://github.com/mglukhikh","followers_url":"https://api.github.com/users/mglukhikh/followers","following_url":"https://api.github.com/users/mglukhikh/following{/other_user}","gists_url":"https://api.github.com/users/mglukhikh/gists{/gist_id}","starred_url":"https://api.github.com/users/mglukhikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mglukhikh/subscriptions","organizations_url":"https://api.github.com/users/mglukhikh/orgs","repos_url":"https://api.github.com/users/mglukhikh/repos","events_url":"https://api.github.com/users/mglukhikh/events{/privacy}","received_events_url":"https://api.github.com/users/mglukhikh/received_events","type":"User","site_admin":false},"assignees":[{"login":"mglukhikh","id":1127631,"avatar_url":"https://avatars.githubusercontent.com/u/1127631?v=3","gravatar_id":"","url":"https://api.github.com/users/mglukhikh","html_url":"https://github.com/mglukhikh","followers_url":"https://api.github.com/users/mglukhikh/followers","following_url":"https://api.github.com/users/mglukhikh/following{/other_user}","gists_url":"https://api.github.com/users/mglukhikh/gists{/gist_id}","starred_url":"https://api.github.com/users/mglukhikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mglukhikh/subscriptions","organizations_url":"https://api.github.com/users/mglukhikh/orgs","repos_url":"https://api.github.com/users/mglukhikh/repos","events_url":"https://api.github.com/users/mglukhikh/events{/privacy}","received_events_url":"https://api.github.com/users/mglukhikh/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/147/commits","review_comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/147/comments","review_comment_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/147/comments","statuses_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/bb60a7e3313f0fbf4816a83aee0fd21e0fcb4983","head":{"label":"copchenka:master","ref":"master","sha":"bb60a7e3313f0fbf4816a83aee0fd21e0fcb4983","user":{"login":"copchenka","id":22070446,"avatar_url":"https://avatars.githubusercontent.com/u/22070446?v=3","gravatar_id":"","url":"https://api.github.com/users/copchenka","html_url":"https://github.com/copchenka","followers_url":"https://api.github.com/users/copchenka/followers","following_url":"https://api.github.com/users/copchenka/following{/other_user}","gists_url":"https://api.github.com/users/copchenka/gists{/gist_id}","starred_url":"https://api.github.com/users/copchenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copchenka/subscriptions","organizations_url":"https://api.github.com/users/copchenka/orgs","repos_url":"https://api.github.com/users/copchenka/repos","events_url":"https://api.github.com/users/copchenka/events{/privacy}","received_events_url":"https://api.github.com/users/copchenka/received_events","type":"User","site_admin":false},"repo":{"id":67678435,"name":"KotlinAsFirst2016","full_name":"copchenka/KotlinAsFirst2016","owner":{"login":"copchenka","id":22070446,"avatar_url":"https://avatars.githubusercontent.com/u/22070446?v=3","gravatar_id":"","url":"https://api.github.com/users/copchenka","html_url":"https://github.com/copchenka","followers_url":"https://api.github.com/users/copchenka/followers","following_url":"https://api.github.com/users/copchenka/following{/other_user}","gists_url":"https://api.github.com/users/copchenka/gists{/gist_id}","starred_url":"https://api.github.com/users/copchenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copchenka/subscriptions","organizations_url":"https://api.github.com/users/copchenka/orgs","repos_url":"https://api.github.com/users/copchenka/repos","events_url":"https://api.github.com/users/copchenka/events{/privacy}","received_events_url":"https://api.github.com/users/copchenka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/copchenka/KotlinAsFirst2016","description":null,"fork":true,"url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016","forks_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/forks","keys_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/teams","hooks_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/hooks","issue_events_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/issues/events{/number}","events_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/events","assignees_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/assignees{/user}","branches_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/branches{/branch}","tags_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/tags","blobs_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/statuses/{sha}","languages_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/languages","stargazers_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/stargazers","contributors_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/contributors","subscribers_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/subscribers","subscription_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/subscription","commits_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/contents/{+path}","compare_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/merges","archive_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/downloads","issues_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/issues{/number}","pulls_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/pulls{/number}","milestones_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/milestones{/number}","notifications_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/labels{/name}","releases_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/releases{/id}","deployments_url":"https://api.github.com/repos/copchenka/KotlinAsFirst2016/deployments","created_at":"2016-09-08T07:15:20Z","updated_at":"2016-09-08T07:15:22Z","pushed_at":"2016-09-30T14:13:10Z","git_url":"git://github.com/copchenka/KotlinAsFirst2016.git","ssh_url":"git@github.com:copchenka/KotlinAsFirst2016.git","clone_url":"https://github.com/copchenka/KotlinAsFirst2016.git","svn_url":"https://github.com/copchenka/KotlinAsFirst2016","homepage":null,"size":3056,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","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":"Kotlin-Polytech:master","ref":"master","sha":"7926a781d6c533d797a9bb82c70eb00508a94f34","user":{"login":"Kotlin-Polytech","id":20967488,"avatar_url":"https://avatars.githubusercontent.com/u/20967488?v=3","gravatar_id":"","url":"https://api.github.com/users/Kotlin-Polytech","html_url":"https://github.com/Kotlin-Polytech","followers_url":"https://api.github.com/users/Kotlin-Polytech/followers","following_url":"https://api.github.com/users/Kotlin-Polytech/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin-Polytech/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin-Polytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin-Polytech/subscriptions","organizations_url":"https://api.github.com/users/Kotlin-Polytech/orgs","repos_url":"https://api.github.com/users/Kotlin-Polytech/repos","events_url":"https://api.github.com/users/Kotlin-Polytech/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin-Polytech/received_events","type":"Organization","site_admin":false},"repo":{"id":67405509,"name":"KotlinAsFirst2016","full_name":"Kotlin-Polytech/KotlinAsFirst2016","owner":{"login":"Kotlin-Polytech","id":20967488,"avatar_url":"https://avatars.githubusercontent.com/u/20967488?v=3","gravatar_id":"","url":"https://api.github.com/users/Kotlin-Polytech","html_url":"https://github.com/Kotlin-Polytech","followers_url":"https://api.github.com/users/Kotlin-Polytech/followers","following_url":"https://api.github.com/users/Kotlin-Polytech/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin-Polytech/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin-Polytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin-Polytech/subscriptions","organizations_url":"https://api.github.com/users/Kotlin-Polytech/orgs","repos_url":"https://api.github.com/users/Kotlin-Polytech/repos","events_url":"https://api.github.com/users/Kotlin-Polytech/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin-Polytech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016","description":null,"fork":false,"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016","forks_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/forks","keys_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/teams","hooks_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/hooks","issue_events_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/events{/number}","events_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/events","assignees_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/assignees{/user}","branches_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/branches{/branch}","tags_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/tags","blobs_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/{sha}","languages_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/languages","stargazers_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/stargazers","contributors_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/contributors","subscribers_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/subscribers","subscription_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/subscription","commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/contents/{+path}","compare_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/merges","archive_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/downloads","issues_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues{/number}","pulls_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls{/number}","milestones_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/milestones{/number}","notifications_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/labels{/name}","releases_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/releases{/id}","deployments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/deployments","created_at":"2016-09-05T09:06:26Z","updated_at":"2016-09-30T08:39:26Z","pushed_at":"2016-09-30T14:39:11Z","git_url":"git://github.com/Kotlin-Polytech/KotlinAsFirst2016.git","ssh_url":"git@github.com:Kotlin-Polytech/KotlinAsFirst2016.git","clone_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016.git","svn_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016","homepage":null,"size":8271,"stargazers_count":13,"watchers_count":13,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"open_issues_count":62,"forks":97,"open_issues":62,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/147"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/147"},"issue":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/147"},"comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/147/comments"},"review_comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/147/comments"},"review_comment":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/147/commits"},"statuses":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/bb60a7e3313f0fbf4816a83aee0fd21e0fcb4983"}}}}
{"actor":{"display_login":"mglukhikh"}}