{"action":"created","comment":{"url":"https://api.github.com/repos/privat/nit/pulls/comments/30931121","id":30931121,"diff_hunk":"@@ -0,0 +1,48 @@\n+# This file is part of NIT ( http://www.nitlanguage.org ).\n+# This program is public domain\n+#\n+# Task: Programming_Task/Rock-paper-scissors\n+# SEE: <http://rosettacode.org/wiki/Rock-paper-scissors>\n+#\n+#author: Istvan szalai 22/05/2015\n+\n+fun core(player, computer: Int): Int do\n+\tif player == computer then return 0\n+\tif player > computer then return 1\n+\treturn 2\n+\n+end\n+\n+fun resultMessage(number: Int): String do\n+\tif number == 0 then return \"it's a tie !\"\n+\tif number == 1 then return \"You win\"\n+\treturn \"You loose\"","path":"examples/rosettacode/rock_paper_scissor.nit","position":19,"original_position":19,"commit_id":"00304e40db821821d20511ed3625829c74d5e64e","original_commit_id":"00304e40db821821d20511ed3625829c74d5e64e","user":{"login":"R4PaSs","id":1444825,"avatar_url":"https://avatars.githubusercontent.com/u/1444825?v=3","gravatar_id":"","url":"https://api.github.com/users/R4PaSs","html_url":"https://github.com/R4PaSs","followers_url":"https://api.github.com/users/R4PaSs/followers","following_url":"https://api.github.com/users/R4PaSs/following{/other_user}","gists_url":"https://api.github.com/users/R4PaSs/gists{/gist_id}","starred_url":"https://api.github.com/users/R4PaSs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/R4PaSs/subscriptions","organizations_url":"https://api.github.com/users/R4PaSs/orgs","repos_url":"https://api.github.com/users/R4PaSs/repos","events_url":"https://api.github.com/users/R4PaSs/events{/privacy}","received_events_url":"https://api.github.com/users/R4PaSs/received_events","type":"User","site_admin":false},"body":":s/loose/lose","created_at":"2015-05-22T21:14:33Z","updated_at":"2015-05-22T21:14:33Z","html_url":"https://github.com/privat/nit/pull/1381#discussion_r30931121","pull_request_url":"https://api.github.com/repos/privat/nit/pulls/1381","_links":{"self":{"href":"https://api.github.com/repos/privat/nit/pulls/comments/30931121"},"html":{"href":"https://github.com/privat/nit/pull/1381#discussion_r30931121"},"pull_request":{"href":"https://api.github.com/repos/privat/nit/pulls/1381"}}},"pull_request":{"url":"https://api.github.com/repos/privat/nit/pulls/1381","id":36069326,"html_url":"https://github.com/privat/nit/pull/1381","diff_url":"https://github.com/privat/nit/pull/1381.diff","patch_url":"https://github.com/privat/nit/pull/1381.patch","issue_url":"https://api.github.com/repos/privat/nit/issues/1381","number":1381,"state":"open","locked":false,"title":"Rock Paper Scissors","user":{"login":"ventilooo","id":9092178,"avatar_url":"https://avatars.githubusercontent.com/u/9092178?v=3","gravatar_id":"","url":"https://api.github.com/users/ventilooo","html_url":"https://github.com/ventilooo","followers_url":"https://api.github.com/users/ventilooo/followers","following_url":"https://api.github.com/users/ventilooo/following{/other_user}","gists_url":"https://api.github.com/users/ventilooo/gists{/gist_id}","starred_url":"https://api.github.com/users/ventilooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ventilooo/subscriptions","organizations_url":"https://api.github.com/users/ventilooo/orgs","repos_url":"https://api.github.com/users/ventilooo/repos","events_url":"https://api.github.com/users/ventilooo/events{/privacy}","received_events_url":"https://api.github.com/users/ventilooo/received_events","type":"User","site_admin":false},"body":"A new task from rosettacode.","created_at":"2015-05-22T21:11:29Z","updated_at":"2015-05-22T21:14:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"281fcaa652b8361e82e042e57a195e3f49d1528f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/privat/nit/pulls/1381/commits","review_comments_url":"https://api.github.com/repos/privat/nit/pulls/1381/comments","review_comment_url":"https://api.github.com/repos/privat/nit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/privat/nit/issues/1381/comments","statuses_url":"https://api.github.com/repos/privat/nit/statuses/00304e40db821821d20511ed3625829c74d5e64e","head":{"label":"ventilooo:master","ref":"master","sha":"00304e40db821821d20511ed3625829c74d5e64e","user":{"login":"ventilooo","id":9092178,"avatar_url":"https://avatars.githubusercontent.com/u/9092178?v=3","gravatar_id":"","url":"https://api.github.com/users/ventilooo","html_url":"https://github.com/ventilooo","followers_url":"https://api.github.com/users/ventilooo/followers","following_url":"https://api.github.com/users/ventilooo/following{/other_user}","gists_url":"https://api.github.com/users/ventilooo/gists{/gist_id}","starred_url":"https://api.github.com/users/ventilooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ventilooo/subscriptions","organizations_url":"https://api.github.com/users/ventilooo/orgs","repos_url":"https://api.github.com/users/ventilooo/repos","events_url":"https://api.github.com/users/ventilooo/events{/privacy}","received_events_url":"https://api.github.com/users/ventilooo/received_events","type":"User","site_admin":false},"repo":{"id":35974657,"name":"nit","full_name":"ventilooo/nit","owner":{"login":"ventilooo","id":9092178,"avatar_url":"https://avatars.githubusercontent.com/u/9092178?v=3","gravatar_id":"","url":"https://api.github.com/users/ventilooo","html_url":"https://github.com/ventilooo","followers_url":"https://api.github.com/users/ventilooo/followers","following_url":"https://api.github.com/users/ventilooo/following{/other_user}","gists_url":"https://api.github.com/users/ventilooo/gists{/gist_id}","starred_url":"https://api.github.com/users/ventilooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ventilooo/subscriptions","organizations_url":"https://api.github.com/users/ventilooo/orgs","repos_url":"https://api.github.com/users/ventilooo/repos","events_url":"https://api.github.com/users/ventilooo/events{/privacy}","received_events_url":"https://api.github.com/users/ventilooo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ventilooo/nit","description":"Nit language","fork":true,"url":"https://api.github.com/repos/ventilooo/nit","forks_url":"https://api.github.com/repos/ventilooo/nit/forks","keys_url":"https://api.github.com/repos/ventilooo/nit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ventilooo/nit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ventilooo/nit/teams","hooks_url":"https://api.github.com/repos/ventilooo/nit/hooks","issue_events_url":"https://api.github.com/repos/ventilooo/nit/issues/events{/number}","events_url":"https://api.github.com/repos/ventilooo/nit/events","assignees_url":"https://api.github.com/repos/ventilooo/nit/assignees{/user}","branches_url":"https://api.github.com/repos/ventilooo/nit/branches{/branch}","tags_url":"https://api.github.com/repos/ventilooo/nit/tags","blobs_url":"https://api.github.com/repos/ventilooo/nit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ventilooo/nit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ventilooo/nit/git/refs{/sha}","trees_url":"https://api.github.com/repos/ventilooo/nit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ventilooo/nit/statuses/{sha}","languages_url":"https://api.github.com/repos/ventilooo/nit/languages","stargazers_url":"https://api.github.com/repos/ventilooo/nit/stargazers","contributors_url":"https://api.github.com/repos/ventilooo/nit/contributors","subscribers_url":"https://api.github.com/repos/ventilooo/nit/subscribers","subscription_url":"https://api.github.com/repos/ventilooo/nit/subscription","commits_url":"https://api.github.com/repos/ventilooo/nit/commits{/sha}","git_commits_url":"https://api.github.com/repos/ventilooo/nit/git/commits{/sha}","comments_url":"https://api.github.com/repos/ventilooo/nit/comments{/number}","issue_comment_url":"https://api.github.com/repos/ventilooo/nit/issues/comments{/number}","contents_url":"https://api.github.com/repos/ventilooo/nit/contents/{+path}","compare_url":"https://api.github.com/repos/ventilooo/nit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ventilooo/nit/merges","archive_url":"https://api.github.com/repos/ventilooo/nit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ventilooo/nit/downloads","issues_url":"https://api.github.com/repos/ventilooo/nit/issues{/number}","pulls_url":"https://api.github.com/repos/ventilooo/nit/pulls{/number}","milestones_url":"https://api.github.com/repos/ventilooo/nit/milestones{/number}","notifications_url":"https://api.github.com/repos/ventilooo/nit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ventilooo/nit/labels{/name}","releases_url":"https://api.github.com/repos/ventilooo/nit/releases{/id}","created_at":"2015-05-20T21:15:16Z","updated_at":"2015-05-20T21:15:26Z","pushed_at":"2015-05-22T21:10:04Z","git_url":"git://github.com/ventilooo/nit.git","ssh_url":"git@github.com:ventilooo/nit.git","clone_url":"https://github.com/ventilooo/nit.git","svn_url":"https://github.com/ventilooo/nit","homepage":"http://nitlanguage.org","size":59896,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"privat:master","ref":"master","sha":"aa935cdfd61e7d1efec06a8fb55ed8752d4d776b","user":{"login":"privat","id":135828,"avatar_url":"https://avatars.githubusercontent.com/u/135828?v=3","gravatar_id":"","url":"https://api.github.com/users/privat","html_url":"https://github.com/privat","followers_url":"https://api.github.com/users/privat/followers","following_url":"https://api.github.com/users/privat/following{/other_user}","gists_url":"https://api.github.com/users/privat/gists{/gist_id}","starred_url":"https://api.github.com/users/privat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/privat/subscriptions","organizations_url":"https://api.github.com/users/privat/orgs","repos_url":"https://api.github.com/users/privat/repos","events_url":"https://api.github.com/users/privat/events{/privacy}","received_events_url":"https://api.github.com/users/privat/received_events","type":"User","site_admin":false},"repo":{"id":328597,"name":"nit","full_name":"privat/nit","owner":{"login":"privat","id":135828,"avatar_url":"https://avatars.githubusercontent.com/u/135828?v=3","gravatar_id":"","url":"https://api.github.com/users/privat","html_url":"https://github.com/privat","followers_url":"https://api.github.com/users/privat/followers","following_url":"https://api.github.com/users/privat/following{/other_user}","gists_url":"https://api.github.com/users/privat/gists{/gist_id}","starred_url":"https://api.github.com/users/privat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/privat/subscriptions","organizations_url":"https://api.github.com/users/privat/orgs","repos_url":"https://api.github.com/users/privat/repos","events_url":"https://api.github.com/users/privat/events{/privacy}","received_events_url":"https://api.github.com/users/privat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/privat/nit","description":"Nit language","fork":false,"url":"https://api.github.com/repos/privat/nit","forks_url":"https://api.github.com/repos/privat/nit/forks","keys_url":"https://api.github.com/repos/privat/nit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/privat/nit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/privat/nit/teams","hooks_url":"https://api.github.com/repos/privat/nit/hooks","issue_events_url":"https://api.github.com/repos/privat/nit/issues/events{/number}","events_url":"https://api.github.com/repos/privat/nit/events","assignees_url":"https://api.github.com/repos/privat/nit/assignees{/user}","branches_url":"https://api.github.com/repos/privat/nit/branches{/branch}","tags_url":"https://api.github.com/repos/privat/nit/tags","blobs_url":"https://api.github.com/repos/privat/nit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/privat/nit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/privat/nit/git/refs{/sha}","trees_url":"https://api.github.com/repos/privat/nit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/privat/nit/statuses/{sha}","languages_url":"https://api.github.com/repos/privat/nit/languages","stargazers_url":"https://api.github.com/repos/privat/nit/stargazers","contributors_url":"https://api.github.com/repos/privat/nit/contributors","subscribers_url":"https://api.github.com/repos/privat/nit/subscribers","subscription_url":"https://api.github.com/repos/privat/nit/subscription","commits_url":"https://api.github.com/repos/privat/nit/commits{/sha}","git_commits_url":"https://api.github.com/repos/privat/nit/git/commits{/sha}","comments_url":"https://api.github.com/repos/privat/nit/comments{/number}","issue_comment_url":"https://api.github.com/repos/privat/nit/issues/comments{/number}","contents_url":"https://api.github.com/repos/privat/nit/contents/{+path}","compare_url":"https://api.github.com/repos/privat/nit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/privat/nit/merges","archive_url":"https://api.github.com/repos/privat/nit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/privat/nit/downloads","issues_url":"https://api.github.com/repos/privat/nit/issues{/number}","pulls_url":"https://api.github.com/repos/privat/nit/pulls{/number}","milestones_url":"https://api.github.com/repos/privat/nit/milestones{/number}","notifications_url":"https://api.github.com/repos/privat/nit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/privat/nit/labels{/name}","releases_url":"https://api.github.com/repos/privat/nit/releases{/id}","created_at":"2009-10-06T15:03:00Z","updated_at":"2015-05-21T14:04:08Z","pushed_at":"2015-05-22T21:11:29Z","git_url":"git://github.com/privat/nit.git","ssh_url":"git@github.com:privat/nit.git","clone_url":"https://github.com/privat/nit.git","svn_url":"https://github.com/privat/nit","homepage":"http://nitlanguage.org","size":88221,"stargazers_count":68,"watchers_count":68,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":131,"forks":41,"open_issues":131,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/privat/nit/pulls/1381"},"html":{"href":"https://github.com/privat/nit/pull/1381"},"issue":{"href":"https://api.github.com/repos/privat/nit/issues/1381"},"comments":{"href":"https://api.github.com/repos/privat/nit/issues/1381/comments"},"review_comments":{"href":"https://api.github.com/repos/privat/nit/pulls/1381/comments"},"review_comment":{"href":"https://api.github.com/repos/privat/nit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/privat/nit/pulls/1381/commits"},"statuses":{"href":"https://api.github.com/repos/privat/nit/statuses/00304e40db821821d20511ed3625829c74d5e64e"}}}}