{"action":"created","comment":{"url":"https://api.github.com/repos/antblessing/DataStructures/pulls/comments/59826885","id":59826885,"diff_hunk":"@@ -12,18 +13,47 @@ def insert(data)\n     current_node = @root\n     if @root\n       while current_node != nil\n-        if data < current_node && current_node.left = nil\n+        if data < current_node.data && current_node.left == nil\n           current_node.left = TreeNode.new(data)\n-        elsif data > current_node && current_node.right = nil\n+        elsif data > current_node.data && current_node.right == nil","path":"BinaryTree.rb","position":17,"original_position":17,"commit_id":"754faa49269863a670ba0173f6c5ac99d50ec215","original_commit_id":"754faa49269863a670ba0173f6c5ac99d50ec215","user":{"login":"cambriz902","id":4467931,"avatar_url":"https://avatars.githubusercontent.com/u/4467931?v=3","gravatar_id":"","url":"https://api.github.com/users/cambriz902","html_url":"https://github.com/cambriz902","followers_url":"https://api.github.com/users/cambriz902/followers","following_url":"https://api.github.com/users/cambriz902/following{/other_user}","gists_url":"https://api.github.com/users/cambriz902/gists{/gist_id}","starred_url":"https://api.github.com/users/cambriz902/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cambriz902/subscriptions","organizations_url":"https://api.github.com/users/cambriz902/orgs","repos_url":"https://api.github.com/users/cambriz902/repos","events_url":"https://api.github.com/users/cambriz902/events{/privacy}","received_events_url":"https://api.github.com/users/cambriz902/received_events","type":"User","site_admin":false},"body":"should this be >= ?","created_at":"2016-04-15T04:52:46Z","updated_at":"2016-04-15T04:52:46Z","html_url":"https://github.com/antblessing/DataStructures/pull/7#discussion_r59826885","pull_request_url":"https://api.github.com/repos/antblessing/DataStructures/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/antblessing/DataStructures/pulls/comments/59826885"},"html":{"href":"https://github.com/antblessing/DataStructures/pull/7#discussion_r59826885"},"pull_request":{"href":"https://api.github.com/repos/antblessing/DataStructures/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/antblessing/DataStructures/pulls/7","id":66417106,"html_url":"https://github.com/antblessing/DataStructures/pull/7","diff_url":"https://github.com/antblessing/DataStructures/pull/7.diff","patch_url":"https://github.com/antblessing/DataStructures/pull/7.patch","issue_url":"https://api.github.com/repos/antblessing/DataStructures/issues/7","number":7,"state":"open","locked":false,"title":"binary search methods","user":{"login":"antblessing","id":13940396,"avatar_url":"https://avatars.githubusercontent.com/u/13940396?v=3","gravatar_id":"","url":"https://api.github.com/users/antblessing","html_url":"https://github.com/antblessing","followers_url":"https://api.github.com/users/antblessing/followers","following_url":"https://api.github.com/users/antblessing/following{/other_user}","gists_url":"https://api.github.com/users/antblessing/gists{/gist_id}","starred_url":"https://api.github.com/users/antblessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antblessing/subscriptions","organizations_url":"https://api.github.com/users/antblessing/orgs","repos_url":"https://api.github.com/users/antblessing/repos","events_url":"https://api.github.com/users/antblessing/events{/privacy}","received_events_url":"https://api.github.com/users/antblessing/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-14T01:31:42Z","updated_at":"2016-04-15T04:52:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f92ac59d5cdb9af4c9b76bebce2bab8b06636732","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/antblessing/DataStructures/pulls/7/commits","review_comments_url":"https://api.github.com/repos/antblessing/DataStructures/pulls/7/comments","review_comment_url":"https://api.github.com/repos/antblessing/DataStructures/pulls/comments{/number}","comments_url":"https://api.github.com/repos/antblessing/DataStructures/issues/7/comments","statuses_url":"https://api.github.com/repos/antblessing/DataStructures/statuses/754faa49269863a670ba0173f6c5ac99d50ec215","head":{"label":"antblessing:binary_search_tree","ref":"binary_search_tree","sha":"754faa49269863a670ba0173f6c5ac99d50ec215","user":{"login":"antblessing","id":13940396,"avatar_url":"https://avatars.githubusercontent.com/u/13940396?v=3","gravatar_id":"","url":"https://api.github.com/users/antblessing","html_url":"https://github.com/antblessing","followers_url":"https://api.github.com/users/antblessing/followers","following_url":"https://api.github.com/users/antblessing/following{/other_user}","gists_url":"https://api.github.com/users/antblessing/gists{/gist_id}","starred_url":"https://api.github.com/users/antblessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antblessing/subscriptions","organizations_url":"https://api.github.com/users/antblessing/orgs","repos_url":"https://api.github.com/users/antblessing/repos","events_url":"https://api.github.com/users/antblessing/events{/privacy}","received_events_url":"https://api.github.com/users/antblessing/received_events","type":"User","site_admin":false},"repo":{"id":54283814,"name":"DataStructures","full_name":"antblessing/DataStructures","owner":{"login":"antblessing","id":13940396,"avatar_url":"https://avatars.githubusercontent.com/u/13940396?v=3","gravatar_id":"","url":"https://api.github.com/users/antblessing","html_url":"https://github.com/antblessing","followers_url":"https://api.github.com/users/antblessing/followers","following_url":"https://api.github.com/users/antblessing/following{/other_user}","gists_url":"https://api.github.com/users/antblessing/gists{/gist_id}","starred_url":"https://api.github.com/users/antblessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antblessing/subscriptions","organizations_url":"https://api.github.com/users/antblessing/orgs","repos_url":"https://api.github.com/users/antblessing/repos","events_url":"https://api.github.com/users/antblessing/events{/privacy}","received_events_url":"https://api.github.com/users/antblessing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/antblessing/DataStructures","description":"","fork":false,"url":"https://api.github.com/repos/antblessing/DataStructures","forks_url":"https://api.github.com/repos/antblessing/DataStructures/forks","keys_url":"https://api.github.com/repos/antblessing/DataStructures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/antblessing/DataStructures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/antblessing/DataStructures/teams","hooks_url":"https://api.github.com/repos/antblessing/DataStructures/hooks","issue_events_url":"https://api.github.com/repos/antblessing/DataStructures/issues/events{/number}","events_url":"https://api.github.com/repos/antblessing/DataStructures/events","assignees_url":"https://api.github.com/repos/antblessing/DataStructures/assignees{/user}","branches_url":"https://api.github.com/repos/antblessing/DataStructures/branches{/branch}","tags_url":"https://api.github.com/repos/antblessing/DataStructures/tags","blobs_url":"https://api.github.com/repos/antblessing/DataStructures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/antblessing/DataStructures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/antblessing/DataStructures/git/refs{/sha}","trees_url":"https://api.github.com/repos/antblessing/DataStructures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/antblessing/DataStructures/statuses/{sha}","languages_url":"https://api.github.com/repos/antblessing/DataStructures/languages","stargazers_url":"https://api.github.com/repos/antblessing/DataStructures/stargazers","contributors_url":"https://api.github.com/repos/antblessing/DataStructures/contributors","subscribers_url":"https://api.github.com/repos/antblessing/DataStructures/subscribers","subscription_url":"https://api.github.com/repos/antblessing/DataStructures/subscription","commits_url":"https://api.github.com/repos/antblessing/DataStructures/commits{/sha}","git_commits_url":"https://api.github.com/repos/antblessing/DataStructures/git/commits{/sha}","comments_url":"https://api.github.com/repos/antblessing/DataStructures/comments{/number}","issue_comment_url":"https://api.github.com/repos/antblessing/DataStructures/issues/comments{/number}","contents_url":"https://api.github.com/repos/antblessing/DataStructures/contents/{+path}","compare_url":"https://api.github.com/repos/antblessing/DataStructures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/antblessing/DataStructures/merges","archive_url":"https://api.github.com/repos/antblessing/DataStructures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/antblessing/DataStructures/downloads","issues_url":"https://api.github.com/repos/antblessing/DataStructures/issues{/number}","pulls_url":"https://api.github.com/repos/antblessing/DataStructures/pulls{/number}","milestones_url":"https://api.github.com/repos/antblessing/DataStructures/milestones{/number}","notifications_url":"https://api.github.com/repos/antblessing/DataStructures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/antblessing/DataStructures/labels{/name}","releases_url":"https://api.github.com/repos/antblessing/DataStructures/releases{/id}","deployments_url":"https://api.github.com/repos/antblessing/DataStructures/deployments","created_at":"2016-03-19T19:38:12Z","updated_at":"2016-03-19T19:39:13Z","pushed_at":"2016-04-14T01:31:42Z","git_url":"git://github.com/antblessing/DataStructures.git","ssh_url":"git@github.com:antblessing/DataStructures.git","clone_url":"https://github.com/antblessing/DataStructures.git","svn_url":"https://github.com/antblessing/DataStructures","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"antblessing:master","ref":"master","sha":"bcbbb9d05c5e43145004007056d12b28bb1a6e01","user":{"login":"antblessing","id":13940396,"avatar_url":"https://avatars.githubusercontent.com/u/13940396?v=3","gravatar_id":"","url":"https://api.github.com/users/antblessing","html_url":"https://github.com/antblessing","followers_url":"https://api.github.com/users/antblessing/followers","following_url":"https://api.github.com/users/antblessing/following{/other_user}","gists_url":"https://api.github.com/users/antblessing/gists{/gist_id}","starred_url":"https://api.github.com/users/antblessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antblessing/subscriptions","organizations_url":"https://api.github.com/users/antblessing/orgs","repos_url":"https://api.github.com/users/antblessing/repos","events_url":"https://api.github.com/users/antblessing/events{/privacy}","received_events_url":"https://api.github.com/users/antblessing/received_events","type":"User","site_admin":false},"repo":{"id":54283814,"name":"DataStructures","full_name":"antblessing/DataStructures","owner":{"login":"antblessing","id":13940396,"avatar_url":"https://avatars.githubusercontent.com/u/13940396?v=3","gravatar_id":"","url":"https://api.github.com/users/antblessing","html_url":"https://github.com/antblessing","followers_url":"https://api.github.com/users/antblessing/followers","following_url":"https://api.github.com/users/antblessing/following{/other_user}","gists_url":"https://api.github.com/users/antblessing/gists{/gist_id}","starred_url":"https://api.github.com/users/antblessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antblessing/subscriptions","organizations_url":"https://api.github.com/users/antblessing/orgs","repos_url":"https://api.github.com/users/antblessing/repos","events_url":"https://api.github.com/users/antblessing/events{/privacy}","received_events_url":"https://api.github.com/users/antblessing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/antblessing/DataStructures","description":"","fork":false,"url":"https://api.github.com/repos/antblessing/DataStructures","forks_url":"https://api.github.com/repos/antblessing/DataStructures/forks","keys_url":"https://api.github.com/repos/antblessing/DataStructures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/antblessing/DataStructures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/antblessing/DataStructures/teams","hooks_url":"https://api.github.com/repos/antblessing/DataStructures/hooks","issue_events_url":"https://api.github.com/repos/antblessing/DataStructures/issues/events{/number}","events_url":"https://api.github.com/repos/antblessing/DataStructures/events","assignees_url":"https://api.github.com/repos/antblessing/DataStructures/assignees{/user}","branches_url":"https://api.github.com/repos/antblessing/DataStructures/branches{/branch}","tags_url":"https://api.github.com/repos/antblessing/DataStructures/tags","blobs_url":"https://api.github.com/repos/antblessing/DataStructures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/antblessing/DataStructures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/antblessing/DataStructures/git/refs{/sha}","trees_url":"https://api.github.com/repos/antblessing/DataStructures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/antblessing/DataStructures/statuses/{sha}","languages_url":"https://api.github.com/repos/antblessing/DataStructures/languages","stargazers_url":"https://api.github.com/repos/antblessing/DataStructures/stargazers","contributors_url":"https://api.github.com/repos/antblessing/DataStructures/contributors","subscribers_url":"https://api.github.com/repos/antblessing/DataStructures/subscribers","subscription_url":"https://api.github.com/repos/antblessing/DataStructures/subscription","commits_url":"https://api.github.com/repos/antblessing/DataStructures/commits{/sha}","git_commits_url":"https://api.github.com/repos/antblessing/DataStructures/git/commits{/sha}","comments_url":"https://api.github.com/repos/antblessing/DataStructures/comments{/number}","issue_comment_url":"https://api.github.com/repos/antblessing/DataStructures/issues/comments{/number}","contents_url":"https://api.github.com/repos/antblessing/DataStructures/contents/{+path}","compare_url":"https://api.github.com/repos/antblessing/DataStructures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/antblessing/DataStructures/merges","archive_url":"https://api.github.com/repos/antblessing/DataStructures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/antblessing/DataStructures/downloads","issues_url":"https://api.github.com/repos/antblessing/DataStructures/issues{/number}","pulls_url":"https://api.github.com/repos/antblessing/DataStructures/pulls{/number}","milestones_url":"https://api.github.com/repos/antblessing/DataStructures/milestones{/number}","notifications_url":"https://api.github.com/repos/antblessing/DataStructures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/antblessing/DataStructures/labels{/name}","releases_url":"https://api.github.com/repos/antblessing/DataStructures/releases{/id}","deployments_url":"https://api.github.com/repos/antblessing/DataStructures/deployments","created_at":"2016-03-19T19:38:12Z","updated_at":"2016-03-19T19:39:13Z","pushed_at":"2016-04-14T01:31:42Z","git_url":"git://github.com/antblessing/DataStructures.git","ssh_url":"git@github.com:antblessing/DataStructures.git","clone_url":"https://github.com/antblessing/DataStructures.git","svn_url":"https://github.com/antblessing/DataStructures","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/antblessing/DataStructures/pulls/7"},"html":{"href":"https://github.com/antblessing/DataStructures/pull/7"},"issue":{"href":"https://api.github.com/repos/antblessing/DataStructures/issues/7"},"comments":{"href":"https://api.github.com/repos/antblessing/DataStructures/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/antblessing/DataStructures/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/antblessing/DataStructures/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/antblessing/DataStructures/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/antblessing/DataStructures/statuses/754faa49269863a670ba0173f6c5ac99d50ec215"}}}}