{"action":"created","comment":{"url":"https://api.github.com/repos/rchain/rchain/pulls/comments/172734459","pull_request_review_id":101800754,"id":172734459,"diff_hunk":"@@ -0,0 +1,106 @@\n+package coop.rchain.rosette\n+\n+import coop.rchain.rosette.Ob.ABSENT\n+\n+case class Queue(elems: Tuple) extends Ob {\n+\n+  def head: Ob = elems.elem.head\n+\n+  def tail: Ob = elems.elem.last\n+\n+  def nElems: Ob = Fixnum(elems.elem.length)\n+\n+  def depth(): Int =\n+    elems.elem.length\n+\n+  def isEmpty(): Boolean =\n+    (nElems.asInstanceOf[Fixnum] == Fixnum(0)).value\n+\n+  def enqueue(ele: Ob): Queue =\n+    Queue(Tuple(elems.elem :+ ele))\n+\n+  def dequeue(): (Ob, Queue) =\n+    if (isEmpty()) {\n+      (ABSENT, this)\n+    } else {\n+      val v = elems.elem.head\n+      (v, Queue(Tuple(elems.elem.drop(1))))\n+    }\n+\n+  def reset(): Queue =\n+    Queue.create()\n+\n+  override def indexedSize: Ob = nElems\n+\n+  override def nth(i: Int): Option[Ob] = {","path":"roscala/src/main/scala/coop/rchain/rosette/Queue.scala","position":35,"original_position":35,"commit_id":"32b9ac1e7e4ac80b61d2d3d2b562a22650e54d53","original_commit_id":"32b9ac1e7e4ac80b61d2d3d2b562a22650e54d53","user":{"login":"linsheng9731","id":5237574,"avatar_url":"https://avatars3.githubusercontent.com/u/5237574?v=4","gravatar_id":"","url":"https://api.github.com/users/linsheng9731","html_url":"https://github.com/linsheng9731","followers_url":"https://api.github.com/users/linsheng9731/followers","following_url":"https://api.github.com/users/linsheng9731/following{/other_user}","gists_url":"https://api.github.com/users/linsheng9731/gists{/gist_id}","starred_url":"https://api.github.com/users/linsheng9731/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linsheng9731/subscriptions","organizations_url":"https://api.github.com/users/linsheng9731/orgs","repos_url":"https://api.github.com/users/linsheng9731/repos","events_url":"https://api.github.com/users/linsheng9731/events{/privacy}","received_events_url":"https://api.github.com/users/linsheng9731/received_events","type":"User","site_admin":false},"body":"nth is a override method, and the definition in Ob trait is `def nth(i: Int): Option[Ob]    = Some(notImplementedOb())` .","created_at":"2018-03-07T03:43:41Z","updated_at":"2018-03-07T03:43:41Z","html_url":"https://github.com/rchain/rchain/pull/296#discussion_r172734459","pull_request_url":"https://api.github.com/repos/rchain/rchain/pulls/296","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/rchain/rchain/pulls/comments/172734459"},"html":{"href":"https://github.com/rchain/rchain/pull/296#discussion_r172734459"},"pull_request":{"href":"https://api.github.com/repos/rchain/rchain/pulls/296"}},"in_reply_to_id":172623367},"pull_request":{"url":"https://api.github.com/repos/rchain/rchain/pulls/296","id":169779938,"html_url":"https://github.com/rchain/rchain/pull/296","diff_url":"https://github.com/rchain/rchain/pull/296.diff","patch_url":"https://github.com/rchain/rchain/pull/296.patch","issue_url":"https://api.github.com/repos/rchain/rchain/issues/296","number":296,"state":"open","locked":false,"title":"Ros-247 and Ros-314","user":{"login":"linsheng9731","id":5237574,"avatar_url":"https://avatars3.githubusercontent.com/u/5237574?v=4","gravatar_id":"","url":"https://api.github.com/users/linsheng9731","html_url":"https://github.com/linsheng9731","followers_url":"https://api.github.com/users/linsheng9731/followers","following_url":"https://api.github.com/users/linsheng9731/following{/other_user}","gists_url":"https://api.github.com/users/linsheng9731/gists{/gist_id}","starred_url":"https://api.github.com/users/linsheng9731/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linsheng9731/subscriptions","organizations_url":"https://api.github.com/users/linsheng9731/orgs","repos_url":"https://api.github.com/users/linsheng9731/repos","events_url":"https://api.github.com/users/linsheng9731/events{/privacy}","received_events_url":"https://api.github.com/users/linsheng9731/received_events","type":"User","site_admin":false},"body":"This PR related to these Jira tickets.\r\nhttps://rchain.atlassian.net/browse/ROS-247\r\nhttps://rchain.atlassian.net/browse/ROS-314","created_at":"2018-02-17T11:43:04Z","updated_at":"2018-03-07T03:43:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1146f119a3bf2248cde16df4f1c449781f08d5d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rchain/rchain/pulls/296/commits","review_comments_url":"https://api.github.com/repos/rchain/rchain/pulls/296/comments","review_comment_url":"https://api.github.com/repos/rchain/rchain/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rchain/rchain/issues/296/comments","statuses_url":"https://api.github.com/repos/rchain/rchain/statuses/32b9ac1e7e4ac80b61d2d3d2b562a22650e54d53","head":{"label":"linsheng9731:ROS-247-314","ref":"ROS-247-314","sha":"32b9ac1e7e4ac80b61d2d3d2b562a22650e54d53","user":{"login":"linsheng9731","id":5237574,"avatar_url":"https://avatars3.githubusercontent.com/u/5237574?v=4","gravatar_id":"","url":"https://api.github.com/users/linsheng9731","html_url":"https://github.com/linsheng9731","followers_url":"https://api.github.com/users/linsheng9731/followers","following_url":"https://api.github.com/users/linsheng9731/following{/other_user}","gists_url":"https://api.github.com/users/linsheng9731/gists{/gist_id}","starred_url":"https://api.github.com/users/linsheng9731/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linsheng9731/subscriptions","organizations_url":"https://api.github.com/users/linsheng9731/orgs","repos_url":"https://api.github.com/users/linsheng9731/repos","events_url":"https://api.github.com/users/linsheng9731/events{/privacy}","received_events_url":"https://api.github.com/users/linsheng9731/received_events","type":"User","site_admin":false},"repo":{"id":119788364,"name":"rchain","full_name":"linsheng9731/rchain","owner":{"login":"linsheng9731","id":5237574,"avatar_url":"https://avatars3.githubusercontent.com/u/5237574?v=4","gravatar_id":"","url":"https://api.github.com/users/linsheng9731","html_url":"https://github.com/linsheng9731","followers_url":"https://api.github.com/users/linsheng9731/followers","following_url":"https://api.github.com/users/linsheng9731/following{/other_user}","gists_url":"https://api.github.com/users/linsheng9731/gists{/gist_id}","starred_url":"https://api.github.com/users/linsheng9731/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linsheng9731/subscriptions","organizations_url":"https://api.github.com/users/linsheng9731/orgs","repos_url":"https://api.github.com/users/linsheng9731/repos","events_url":"https://api.github.com/users/linsheng9731/events{/privacy}","received_events_url":"https://api.github.com/users/linsheng9731/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/linsheng9731/rchain","description":null,"fork":true,"url":"https://api.github.com/repos/linsheng9731/rchain","forks_url":"https://api.github.com/repos/linsheng9731/rchain/forks","keys_url":"https://api.github.com/repos/linsheng9731/rchain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linsheng9731/rchain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linsheng9731/rchain/teams","hooks_url":"https://api.github.com/repos/linsheng9731/rchain/hooks","issue_events_url":"https://api.github.com/repos/linsheng9731/rchain/issues/events{/number}","events_url":"https://api.github.com/repos/linsheng9731/rchain/events","assignees_url":"https://api.github.com/repos/linsheng9731/rchain/assignees{/user}","branches_url":"https://api.github.com/repos/linsheng9731/rchain/branches{/branch}","tags_url":"https://api.github.com/repos/linsheng9731/rchain/tags","blobs_url":"https://api.github.com/repos/linsheng9731/rchain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linsheng9731/rchain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linsheng9731/rchain/git/refs{/sha}","trees_url":"https://api.github.com/repos/linsheng9731/rchain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linsheng9731/rchain/statuses/{sha}","languages_url":"https://api.github.com/repos/linsheng9731/rchain/languages","stargazers_url":"https://api.github.com/repos/linsheng9731/rchain/stargazers","contributors_url":"https://api.github.com/repos/linsheng9731/rchain/contributors","subscribers_url":"https://api.github.com/repos/linsheng9731/rchain/subscribers","subscription_url":"https://api.github.com/repos/linsheng9731/rchain/subscription","commits_url":"https://api.github.com/repos/linsheng9731/rchain/commits{/sha}","git_commits_url":"https://api.github.com/repos/linsheng9731/rchain/git/commits{/sha}","comments_url":"https://api.github.com/repos/linsheng9731/rchain/comments{/number}","issue_comment_url":"https://api.github.com/repos/linsheng9731/rchain/issues/comments{/number}","contents_url":"https://api.github.com/repos/linsheng9731/rchain/contents/{+path}","compare_url":"https://api.github.com/repos/linsheng9731/rchain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linsheng9731/rchain/merges","archive_url":"https://api.github.com/repos/linsheng9731/rchain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linsheng9731/rchain/downloads","issues_url":"https://api.github.com/repos/linsheng9731/rchain/issues{/number}","pulls_url":"https://api.github.com/repos/linsheng9731/rchain/pulls{/number}","milestones_url":"https://api.github.com/repos/linsheng9731/rchain/milestones{/number}","notifications_url":"https://api.github.com/repos/linsheng9731/rchain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linsheng9731/rchain/labels{/name}","releases_url":"https://api.github.com/repos/linsheng9731/rchain/releases{/id}","deployments_url":"https://api.github.com/repos/linsheng9731/rchain/deployments","created_at":"2018-02-01T05:40:12Z","updated_at":"2018-02-01T05:40:15Z","pushed_at":"2018-03-06T02:44:43Z","git_url":"git://github.com/linsheng9731/rchain.git","ssh_url":"git@github.com:linsheng9731/rchain.git","clone_url":"https://github.com/linsheng9731/rchain.git","svn_url":"https://github.com/linsheng9731/rchain","homepage":null,"size":7031,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rchain:dev","ref":"dev","sha":"ee5074cd28c49442d748ad9af00f9d091c8aad5d","user":{"login":"rchain","id":20671765,"avatar_url":"https://avatars0.githubusercontent.com/u/20671765?v=4","gravatar_id":"","url":"https://api.github.com/users/rchain","html_url":"https://github.com/rchain","followers_url":"https://api.github.com/users/rchain/followers","following_url":"https://api.github.com/users/rchain/following{/other_user}","gists_url":"https://api.github.com/users/rchain/gists{/gist_id}","starred_url":"https://api.github.com/users/rchain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rchain/subscriptions","organizations_url":"https://api.github.com/users/rchain/orgs","repos_url":"https://api.github.com/users/rchain/repos","events_url":"https://api.github.com/users/rchain/events{/privacy}","received_events_url":"https://api.github.com/users/rchain/received_events","type":"Organization","site_admin":false},"repo":{"id":84493691,"name":"rchain","full_name":"rchain/rchain","owner":{"login":"rchain","id":20671765,"avatar_url":"https://avatars0.githubusercontent.com/u/20671765?v=4","gravatar_id":"","url":"https://api.github.com/users/rchain","html_url":"https://github.com/rchain","followers_url":"https://api.github.com/users/rchain/followers","following_url":"https://api.github.com/users/rchain/following{/other_user}","gists_url":"https://api.github.com/users/rchain/gists{/gist_id}","starred_url":"https://api.github.com/users/rchain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rchain/subscriptions","organizations_url":"https://api.github.com/users/rchain/orgs","repos_url":"https://api.github.com/users/rchain/repos","events_url":"https://api.github.com/users/rchain/events{/privacy}","received_events_url":"https://api.github.com/users/rchain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rchain/rchain","description":null,"fork":false,"url":"https://api.github.com/repos/rchain/rchain","forks_url":"https://api.github.com/repos/rchain/rchain/forks","keys_url":"https://api.github.com/repos/rchain/rchain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rchain/rchain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rchain/rchain/teams","hooks_url":"https://api.github.com/repos/rchain/rchain/hooks","issue_events_url":"https://api.github.com/repos/rchain/rchain/issues/events{/number}","events_url":"https://api.github.com/repos/rchain/rchain/events","assignees_url":"https://api.github.com/repos/rchain/rchain/assignees{/user}","branches_url":"https://api.github.com/repos/rchain/rchain/branches{/branch}","tags_url":"https://api.github.com/repos/rchain/rchain/tags","blobs_url":"https://api.github.com/repos/rchain/rchain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rchain/rchain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rchain/rchain/git/refs{/sha}","trees_url":"https://api.github.com/repos/rchain/rchain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rchain/rchain/statuses/{sha}","languages_url":"https://api.github.com/repos/rchain/rchain/languages","stargazers_url":"https://api.github.com/repos/rchain/rchain/stargazers","contributors_url":"https://api.github.com/repos/rchain/rchain/contributors","subscribers_url":"https://api.github.com/repos/rchain/rchain/subscribers","subscription_url":"https://api.github.com/repos/rchain/rchain/subscription","commits_url":"https://api.github.com/repos/rchain/rchain/commits{/sha}","git_commits_url":"https://api.github.com/repos/rchain/rchain/git/commits{/sha}","comments_url":"https://api.github.com/repos/rchain/rchain/comments{/number}","issue_comment_url":"https://api.github.com/repos/rchain/rchain/issues/comments{/number}","contents_url":"https://api.github.com/repos/rchain/rchain/contents/{+path}","compare_url":"https://api.github.com/repos/rchain/rchain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rchain/rchain/merges","archive_url":"https://api.github.com/repos/rchain/rchain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rchain/rchain/downloads","issues_url":"https://api.github.com/repos/rchain/rchain/issues{/number}","pulls_url":"https://api.github.com/repos/rchain/rchain/pulls{/number}","milestones_url":"https://api.github.com/repos/rchain/rchain/milestones{/number}","notifications_url":"https://api.github.com/repos/rchain/rchain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rchain/rchain/labels{/name}","releases_url":"https://api.github.com/repos/rchain/rchain/releases{/id}","deployments_url":"https://api.github.com/repos/rchain/rchain/deployments","created_at":"2017-03-09T22:15:35Z","updated_at":"2018-03-07T02:31:50Z","pushed_at":"2018-03-06T23:12:04Z","git_url":"git://github.com/rchain/rchain.git","ssh_url":"git@github.com:rchain/rchain.git","clone_url":"https://github.com/rchain/rchain.git","svn_url":"https://github.com/rchain/rchain","homepage":null,"size":7079,"stargazers_count":187,"watchers_count":187,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":52,"open_issues":10,"watchers":187,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rchain/rchain/pulls/296"},"html":{"href":"https://github.com/rchain/rchain/pull/296"},"issue":{"href":"https://api.github.com/repos/rchain/rchain/issues/296"},"comments":{"href":"https://api.github.com/repos/rchain/rchain/issues/296/comments"},"review_comments":{"href":"https://api.github.com/repos/rchain/rchain/pulls/296/comments"},"review_comment":{"href":"https://api.github.com/repos/rchain/rchain/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rchain/rchain/pulls/296/commits"},"statuses":{"href":"https://api.github.com/repos/rchain/rchain/statuses/32b9ac1e7e4ac80b61d2d3d2b562a22650e54d53"}},"author_association":"NONE"}}
{"actor":{"display_login":"linsheng9731"}}