{"action":"created","comment":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/85088362","pull_request_review_id":5821846,"id":85088362,"diff_hunk":"@@ -123,15 +183,37 @@ fun sin(x: Double, eps: Double): Double = TODO()\n  * cos(x) = 1 - x^2 / 2! + x^4 / 4! - x^6 / 6! + ...\n  * Нужную точность считать достигнутой, если очередной член ряда меньше eps по модулю\n  */\n-fun cos(x: Double, eps: Double): Double = TODO()\n+fun cos(x: Double, eps: Double): Double {\n+    var f = x % (2 * Math.PI)","path":"src/lesson3/task1/Loop.kt","position":140,"original_position":141,"commit_id":"45aaf771f819cad6941dcd6d15f945756fcec4f0","original_commit_id":"4adc301178153f00804cc040e6dd0f3d839947d7","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":"Можно объявить как val. Старайтесь объявлять как var только переменные, которые собираетесь изменять. Тем более, что IDEA подсвечивает жёлтым цветом те var, которые на самом деле никем не изменяются","created_at":"2016-10-26T10:00:24Z","updated_at":"2016-10-26T10:00:24Z","html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/153#discussion_r85088362","pull_request_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/153","_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/85088362"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/153#discussion_r85088362"},"pull_request":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/153","id":87570626,"html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/153","diff_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/153.diff","patch_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/153.patch","issue_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/153","number":153,"state":"open","locked":false,"title":"2 урок","user":{"login":"malashik35","id":22061082,"avatar_url":"https://avatars.githubusercontent.com/u/22061082?v=3","gravatar_id":"","url":"https://api.github.com/users/malashik35","html_url":"https://github.com/malashik35","followers_url":"https://api.github.com/users/malashik35/followers","following_url":"https://api.github.com/users/malashik35/following{/other_user}","gists_url":"https://api.github.com/users/malashik35/gists{/gist_id}","starred_url":"https://api.github.com/users/malashik35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malashik35/subscriptions","organizations_url":"https://api.github.com/users/malashik35/orgs","repos_url":"https://api.github.com/users/malashik35/repos","events_url":"https://api.github.com/users/malashik35/events{/privacy}","received_events_url":"https://api.github.com/users/malashik35/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-30T21:40:31Z","updated_at":"2016-10-26T10:17:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e2436fa76f5fdbc62892810f9450efbe147e391","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/153/commits","review_comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/153/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/153/comments","statuses_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/45aaf771f819cad6941dcd6d15f945756fcec4f0","head":{"label":"malashik35:master","ref":"master","sha":"45aaf771f819cad6941dcd6d15f945756fcec4f0","user":{"login":"malashik35","id":22061082,"avatar_url":"https://avatars.githubusercontent.com/u/22061082?v=3","gravatar_id":"","url":"https://api.github.com/users/malashik35","html_url":"https://github.com/malashik35","followers_url":"https://api.github.com/users/malashik35/followers","following_url":"https://api.github.com/users/malashik35/following{/other_user}","gists_url":"https://api.github.com/users/malashik35/gists{/gist_id}","starred_url":"https://api.github.com/users/malashik35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malashik35/subscriptions","organizations_url":"https://api.github.com/users/malashik35/orgs","repos_url":"https://api.github.com/users/malashik35/repos","events_url":"https://api.github.com/users/malashik35/events{/privacy}","received_events_url":"https://api.github.com/users/malashik35/received_events","type":"User","site_admin":false},"repo":{"id":68006787,"name":"KotlinAsFirst2016","full_name":"malashik35/KotlinAsFirst2016","owner":{"login":"malashik35","id":22061082,"avatar_url":"https://avatars.githubusercontent.com/u/22061082?v=3","gravatar_id":"","url":"https://api.github.com/users/malashik35","html_url":"https://github.com/malashik35","followers_url":"https://api.github.com/users/malashik35/followers","following_url":"https://api.github.com/users/malashik35/following{/other_user}","gists_url":"https://api.github.com/users/malashik35/gists{/gist_id}","starred_url":"https://api.github.com/users/malashik35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malashik35/subscriptions","organizations_url":"https://api.github.com/users/malashik35/orgs","repos_url":"https://api.github.com/users/malashik35/repos","events_url":"https://api.github.com/users/malashik35/events{/privacy}","received_events_url":"https://api.github.com/users/malashik35/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/malashik35/KotlinAsFirst2016","description":null,"fork":true,"url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016","forks_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/forks","keys_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/teams","hooks_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/hooks","issue_events_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/issues/events{/number}","events_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/events","assignees_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/assignees{/user}","branches_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/branches{/branch}","tags_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/tags","blobs_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/statuses/{sha}","languages_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/languages","stargazers_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/stargazers","contributors_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/contributors","subscribers_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/subscribers","subscription_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/subscription","commits_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/contents/{+path}","compare_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/merges","archive_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/downloads","issues_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/issues{/number}","pulls_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/pulls{/number}","milestones_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/milestones{/number}","notifications_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/labels{/name}","releases_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/releases{/id}","deployments_url":"https://api.github.com/repos/malashik35/KotlinAsFirst2016/deployments","created_at":"2016-09-12T12:25:49Z","updated_at":"2016-09-12T12:25:50Z","pushed_at":"2016-10-25T21:47:02Z","git_url":"git://github.com/malashik35/KotlinAsFirst2016.git","ssh_url":"git@github.com:malashik35/KotlinAsFirst2016.git","clone_url":"https://github.com/malashik35/KotlinAsFirst2016.git","svn_url":"https://github.com/malashik35/KotlinAsFirst2016","homepage":null,"size":3061,"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-10-24T11:05:48Z","pushed_at":"2016-10-26T10:14:14Z","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":18416,"stargazers_count":14,"watchers_count":14,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":98,"mirror_url":null,"open_issues_count":75,"forks":98,"open_issues":75,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/153"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/153"},"issue":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/153"},"comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/153/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/153/commits"},"statuses":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/45aaf771f819cad6941dcd6d15f945756fcec4f0"}}}}
{"actor":{"display_login":"mglukhikh"}}