{"action":"created","comment":{"url":"https://api.github.com/repos/plasma-umass/Fission/pulls/comments/84818895","pull_request_review_id":5571608,"id":84818895,"diff_hunk":"@@ -66,14 +66,41 @@ Array -> {\n   \"prototype\" : ArrayPrototype\n };\n toNumber -> (\n-  function (x) = \n-  if typeof x == \"boolean\" then\n-    if x then 1 else 0\n-  else x\n+  function(x) = \n+    if x == null then 0\n+    else if x == undefined then NaN\n+    else if typeof x == \"boolean\" then\n+      if x then 1 else 0\n+    else x\n+);\n+toBoolean -> (\n+  function(x) =\n+    if x == null or x == undefined then false\n+    else if typeof x == boolean then x\n+    else if typeof x == number then\n+      not (x == 0 or x == NaN)\n+    else if typeof x == string then\n+      x == \"\"\n+    else if typeof x == object then true\n+    else if typeof x == string then (builtin \"stringToInt\")(x)\n+    else throw(\"cannot apply toBoolean\")\n );\n add -> (\n   function (x, y) = \n     if (typeof x == \"string\" or typeof y == \"string\") then\n       toString x  + toString y \n     else toNumber(x) + toNumber(y)\n+);\n+fuzzy_equal -> (","path":"config/init.quark","position":42,"original_position":42,"commit_id":"ba7f9071b7cab5123ed9171d623dc2aea72fdadf","original_commit_id":"ba7f9071b7cab5123ed9171d623dc2aea72fdadf","user":{"login":"arjunguha","id":20065,"avatar_url":"https://avatars.githubusercontent.com/u/20065?v=3","gravatar_id":"","url":"https://api.github.com/users/arjunguha","html_url":"https://github.com/arjunguha","followers_url":"https://api.github.com/users/arjunguha/followers","following_url":"https://api.github.com/users/arjunguha/following{/other_user}","gists_url":"https://api.github.com/users/arjunguha/gists{/gist_id}","starred_url":"https://api.github.com/users/arjunguha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjunguha/subscriptions","organizations_url":"https://api.github.com/users/arjunguha/orgs","repos_url":"https://api.github.com/users/arjunguha/repos","events_url":"https://api.github.com/users/arjunguha/events{/privacy}","received_events_url":"https://api.github.com/users/arjunguha/received_events","type":"User","site_admin":false},"body":"Where is fuzzy_equal used?","created_at":"2016-10-25T01:57:54Z","updated_at":"2016-10-25T01:57:54Z","html_url":"https://github.com/plasma-umass/Fission/pull/79#discussion_r84818895","pull_request_url":"https://api.github.com/repos/plasma-umass/Fission/pulls/79","_links":{"self":{"href":"https://api.github.com/repos/plasma-umass/Fission/pulls/comments/84818895"},"html":{"href":"https://github.com/plasma-umass/Fission/pull/79#discussion_r84818895"},"pull_request":{"href":"https://api.github.com/repos/plasma-umass/Fission/pulls/79"}}},"pull_request":{"url":"https://api.github.com/repos/plasma-umass/Fission/pulls/79","id":90725602,"html_url":"https://github.com/plasma-umass/Fission/pull/79","diff_url":"https://github.com/plasma-umass/Fission/pull/79.diff","patch_url":"https://github.com/plasma-umass/Fission/pull/79.patch","issue_url":"https://api.github.com/repos/plasma-umass/Fission/issues/79","number":79,"state":"open","locked":false,"title":"Implemented fuzzy equality","user":{"login":"rachitnigam","id":15348827,"avatar_url":"https://avatars.githubusercontent.com/u/15348827?v=3","gravatar_id":"","url":"https://api.github.com/users/rachitnigam","html_url":"https://github.com/rachitnigam","followers_url":"https://api.github.com/users/rachitnigam/followers","following_url":"https://api.github.com/users/rachitnigam/following{/other_user}","gists_url":"https://api.github.com/users/rachitnigam/gists{/gist_id}","starred_url":"https://api.github.com/users/rachitnigam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachitnigam/subscriptions","organizations_url":"https://api.github.com/users/rachitnigam/orgs","repos_url":"https://api.github.com/users/rachitnigam/repos","events_url":"https://api.github.com/users/rachitnigam/events{/privacy}","received_events_url":"https://api.github.com/users/rachitnigam/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-25T01:53:29Z","updated_at":"2016-10-25T01:58:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d83f0f2e43644d0bb5944fc4e3db2cf3d94dbd84","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/plasma-umass/Fission/pulls/79/commits","review_comments_url":"https://api.github.com/repos/plasma-umass/Fission/pulls/79/comments","review_comment_url":"https://api.github.com/repos/plasma-umass/Fission/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plasma-umass/Fission/issues/79/comments","statuses_url":"https://api.github.com/repos/plasma-umass/Fission/statuses/ba7f9071b7cab5123ed9171d623dc2aea72fdadf","head":{"label":"plasma-umass:equality","ref":"equality","sha":"ba7f9071b7cab5123ed9171d623dc2aea72fdadf","user":{"login":"plasma-umass","id":1880823,"avatar_url":"https://avatars.githubusercontent.com/u/1880823?v=3","gravatar_id":"","url":"https://api.github.com/users/plasma-umass","html_url":"https://github.com/plasma-umass","followers_url":"https://api.github.com/users/plasma-umass/followers","following_url":"https://api.github.com/users/plasma-umass/following{/other_user}","gists_url":"https://api.github.com/users/plasma-umass/gists{/gist_id}","starred_url":"https://api.github.com/users/plasma-umass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plasma-umass/subscriptions","organizations_url":"https://api.github.com/users/plasma-umass/orgs","repos_url":"https://api.github.com/users/plasma-umass/repos","events_url":"https://api.github.com/users/plasma-umass/events{/privacy}","received_events_url":"https://api.github.com/users/plasma-umass/received_events","type":"Organization","site_admin":false},"repo":{"id":50946256,"name":"Fission","full_name":"plasma-umass/Fission","owner":{"login":"plasma-umass","id":1880823,"avatar_url":"https://avatars.githubusercontent.com/u/1880823?v=3","gravatar_id":"","url":"https://api.github.com/users/plasma-umass","html_url":"https://github.com/plasma-umass","followers_url":"https://api.github.com/users/plasma-umass/followers","following_url":"https://api.github.com/users/plasma-umass/following{/other_user}","gists_url":"https://api.github.com/users/plasma-umass/gists{/gist_id}","starred_url":"https://api.github.com/users/plasma-umass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plasma-umass/subscriptions","organizations_url":"https://api.github.com/users/plasma-umass/orgs","repos_url":"https://api.github.com/users/plasma-umass/repos","events_url":"https://api.github.com/users/plasma-umass/events{/privacy}","received_events_url":"https://api.github.com/users/plasma-umass/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plasma-umass/Fission","description":null,"fork":false,"url":"https://api.github.com/repos/plasma-umass/Fission","forks_url":"https://api.github.com/repos/plasma-umass/Fission/forks","keys_url":"https://api.github.com/repos/plasma-umass/Fission/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plasma-umass/Fission/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plasma-umass/Fission/teams","hooks_url":"https://api.github.com/repos/plasma-umass/Fission/hooks","issue_events_url":"https://api.github.com/repos/plasma-umass/Fission/issues/events{/number}","events_url":"https://api.github.com/repos/plasma-umass/Fission/events","assignees_url":"https://api.github.com/repos/plasma-umass/Fission/assignees{/user}","branches_url":"https://api.github.com/repos/plasma-umass/Fission/branches{/branch}","tags_url":"https://api.github.com/repos/plasma-umass/Fission/tags","blobs_url":"https://api.github.com/repos/plasma-umass/Fission/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plasma-umass/Fission/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plasma-umass/Fission/git/refs{/sha}","trees_url":"https://api.github.com/repos/plasma-umass/Fission/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plasma-umass/Fission/statuses/{sha}","languages_url":"https://api.github.com/repos/plasma-umass/Fission/languages","stargazers_url":"https://api.github.com/repos/plasma-umass/Fission/stargazers","contributors_url":"https://api.github.com/repos/plasma-umass/Fission/contributors","subscribers_url":"https://api.github.com/repos/plasma-umass/Fission/subscribers","subscription_url":"https://api.github.com/repos/plasma-umass/Fission/subscription","commits_url":"https://api.github.com/repos/plasma-umass/Fission/commits{/sha}","git_commits_url":"https://api.github.com/repos/plasma-umass/Fission/git/commits{/sha}","comments_url":"https://api.github.com/repos/plasma-umass/Fission/comments{/number}","issue_comment_url":"https://api.github.com/repos/plasma-umass/Fission/issues/comments{/number}","contents_url":"https://api.github.com/repos/plasma-umass/Fission/contents/{+path}","compare_url":"https://api.github.com/repos/plasma-umass/Fission/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plasma-umass/Fission/merges","archive_url":"https://api.github.com/repos/plasma-umass/Fission/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plasma-umass/Fission/downloads","issues_url":"https://api.github.com/repos/plasma-umass/Fission/issues{/number}","pulls_url":"https://api.github.com/repos/plasma-umass/Fission/pulls{/number}","milestones_url":"https://api.github.com/repos/plasma-umass/Fission/milestones{/number}","notifications_url":"https://api.github.com/repos/plasma-umass/Fission/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plasma-umass/Fission/labels{/name}","releases_url":"https://api.github.com/repos/plasma-umass/Fission/releases{/id}","deployments_url":"https://api.github.com/repos/plasma-umass/Fission/deployments","created_at":"2016-02-02T19:32:48Z","updated_at":"2016-10-22T17:52:00Z","pushed_at":"2016-10-25T01:55:47Z","git_url":"git://github.com/plasma-umass/Fission.git","ssh_url":"git@github.com:plasma-umass/Fission.git","clone_url":"https://github.com/plasma-umass/Fission.git","svn_url":"https://github.com/plasma-umass/Fission","homepage":null,"size":2612,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"plasma-umass:master","ref":"master","sha":"6de3385c36b9f64a4d59484dcdf2f5cc0add736c","user":{"login":"plasma-umass","id":1880823,"avatar_url":"https://avatars.githubusercontent.com/u/1880823?v=3","gravatar_id":"","url":"https://api.github.com/users/plasma-umass","html_url":"https://github.com/plasma-umass","followers_url":"https://api.github.com/users/plasma-umass/followers","following_url":"https://api.github.com/users/plasma-umass/following{/other_user}","gists_url":"https://api.github.com/users/plasma-umass/gists{/gist_id}","starred_url":"https://api.github.com/users/plasma-umass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plasma-umass/subscriptions","organizations_url":"https://api.github.com/users/plasma-umass/orgs","repos_url":"https://api.github.com/users/plasma-umass/repos","events_url":"https://api.github.com/users/plasma-umass/events{/privacy}","received_events_url":"https://api.github.com/users/plasma-umass/received_events","type":"Organization","site_admin":false},"repo":{"id":50946256,"name":"Fission","full_name":"plasma-umass/Fission","owner":{"login":"plasma-umass","id":1880823,"avatar_url":"https://avatars.githubusercontent.com/u/1880823?v=3","gravatar_id":"","url":"https://api.github.com/users/plasma-umass","html_url":"https://github.com/plasma-umass","followers_url":"https://api.github.com/users/plasma-umass/followers","following_url":"https://api.github.com/users/plasma-umass/following{/other_user}","gists_url":"https://api.github.com/users/plasma-umass/gists{/gist_id}","starred_url":"https://api.github.com/users/plasma-umass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plasma-umass/subscriptions","organizations_url":"https://api.github.com/users/plasma-umass/orgs","repos_url":"https://api.github.com/users/plasma-umass/repos","events_url":"https://api.github.com/users/plasma-umass/events{/privacy}","received_events_url":"https://api.github.com/users/plasma-umass/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plasma-umass/Fission","description":null,"fork":false,"url":"https://api.github.com/repos/plasma-umass/Fission","forks_url":"https://api.github.com/repos/plasma-umass/Fission/forks","keys_url":"https://api.github.com/repos/plasma-umass/Fission/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plasma-umass/Fission/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plasma-umass/Fission/teams","hooks_url":"https://api.github.com/repos/plasma-umass/Fission/hooks","issue_events_url":"https://api.github.com/repos/plasma-umass/Fission/issues/events{/number}","events_url":"https://api.github.com/repos/plasma-umass/Fission/events","assignees_url":"https://api.github.com/repos/plasma-umass/Fission/assignees{/user}","branches_url":"https://api.github.com/repos/plasma-umass/Fission/branches{/branch}","tags_url":"https://api.github.com/repos/plasma-umass/Fission/tags","blobs_url":"https://api.github.com/repos/plasma-umass/Fission/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plasma-umass/Fission/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plasma-umass/Fission/git/refs{/sha}","trees_url":"https://api.github.com/repos/plasma-umass/Fission/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plasma-umass/Fission/statuses/{sha}","languages_url":"https://api.github.com/repos/plasma-umass/Fission/languages","stargazers_url":"https://api.github.com/repos/plasma-umass/Fission/stargazers","contributors_url":"https://api.github.com/repos/plasma-umass/Fission/contributors","subscribers_url":"https://api.github.com/repos/plasma-umass/Fission/subscribers","subscription_url":"https://api.github.com/repos/plasma-umass/Fission/subscription","commits_url":"https://api.github.com/repos/plasma-umass/Fission/commits{/sha}","git_commits_url":"https://api.github.com/repos/plasma-umass/Fission/git/commits{/sha}","comments_url":"https://api.github.com/repos/plasma-umass/Fission/comments{/number}","issue_comment_url":"https://api.github.com/repos/plasma-umass/Fission/issues/comments{/number}","contents_url":"https://api.github.com/repos/plasma-umass/Fission/contents/{+path}","compare_url":"https://api.github.com/repos/plasma-umass/Fission/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plasma-umass/Fission/merges","archive_url":"https://api.github.com/repos/plasma-umass/Fission/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plasma-umass/Fission/downloads","issues_url":"https://api.github.com/repos/plasma-umass/Fission/issues{/number}","pulls_url":"https://api.github.com/repos/plasma-umass/Fission/pulls{/number}","milestones_url":"https://api.github.com/repos/plasma-umass/Fission/milestones{/number}","notifications_url":"https://api.github.com/repos/plasma-umass/Fission/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plasma-umass/Fission/labels{/name}","releases_url":"https://api.github.com/repos/plasma-umass/Fission/releases{/id}","deployments_url":"https://api.github.com/repos/plasma-umass/Fission/deployments","created_at":"2016-02-02T19:32:48Z","updated_at":"2016-10-22T17:52:00Z","pushed_at":"2016-10-25T01:55:47Z","git_url":"git://github.com/plasma-umass/Fission.git","ssh_url":"git@github.com:plasma-umass/Fission.git","clone_url":"https://github.com/plasma-umass/Fission.git","svn_url":"https://github.com/plasma-umass/Fission","homepage":null,"size":2612,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plasma-umass/Fission/pulls/79"},"html":{"href":"https://github.com/plasma-umass/Fission/pull/79"},"issue":{"href":"https://api.github.com/repos/plasma-umass/Fission/issues/79"},"comments":{"href":"https://api.github.com/repos/plasma-umass/Fission/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/plasma-umass/Fission/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/plasma-umass/Fission/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plasma-umass/Fission/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/plasma-umass/Fission/statuses/ba7f9071b7cab5123ed9171d623dc2aea72fdadf"}}}}
{"actor":{"display_login":"arjunguha"}}