{"action":"created","comment":{"url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/comments/110212228","pull_request_review_id":31368872,"id":110212228,"diff_hunk":"@@ -0,0 +1,34 @@\n+var binarySearch = (function () {\n+  var recursiveSearch = function (items, key, left, right) {\n+    if (_isInvalid(items, key)) return;\n+    if (left === undefined) left = 0;\n+    if (right === undefined) right = items.length - 1;\n+    var index = left + right >>> 1;\n+    if (left > right) return -1;\n+    if (items[index] === key) return index;\n+    if (items[index] > key) {\n+      return recursiveSearch(items, key, left, index - 1);\n+    } else {\n+      return recursiveSearch(items, key, index + 1, right);\n+    }\n+  };\n+\n+  var cyclicSearch = function (items, key) {\n+    if (_isInvalid(items, key)) return;","path":"sort/js/search.js","position":17,"original_position":17,"commit_id":"30dfd9192c77f7fd48e835060c7b893ee54860c2","original_commit_id":"30dfd9192c77f7fd48e835060c7b893ee54860c2","user":{"login":"NikitaSedyx","id":12440608,"avatar_url":"https://avatars0.githubusercontent.com/u/12440608?v=3","gravatar_id":"","url":"https://api.github.com/users/NikitaSedyx","html_url":"https://github.com/NikitaSedyx","followers_url":"https://api.github.com/users/NikitaSedyx/followers","following_url":"https://api.github.com/users/NikitaSedyx/following{/other_user}","gists_url":"https://api.github.com/users/NikitaSedyx/gists{/gist_id}","starred_url":"https://api.github.com/users/NikitaSedyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikitaSedyx/subscriptions","organizations_url":"https://api.github.com/users/NikitaSedyx/orgs","repos_url":"https://api.github.com/users/NikitaSedyx/repos","events_url":"https://api.github.com/users/NikitaSedyx/events{/privacy}","received_events_url":"https://api.github.com/users/NikitaSedyx/received_events","type":"User","site_admin":false},"body":"it's good if you understand why `_isInvalid` is defined here when you used function expression ","created_at":"2017-04-06T16:48:03Z","updated_at":"2017-04-06T16:48:12Z","html_url":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pull/4#discussion_r110212228","pull_request_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/comments/110212228"},"html":{"href":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pull/4#discussion_r110212228"},"pull_request":{"href":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/4","id":114383996,"html_url":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pull/4","diff_url":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pull/4.diff","patch_url":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pull/4.patch","issue_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/issues/4","number":4,"state":"open","locked":false,"title":"Search","user":{"login":"vialikanau-aliaksei","id":26303120,"avatar_url":"https://avatars0.githubusercontent.com/u/26303120?v=3","gravatar_id":"","url":"https://api.github.com/users/vialikanau-aliaksei","html_url":"https://github.com/vialikanau-aliaksei","followers_url":"https://api.github.com/users/vialikanau-aliaksei/followers","following_url":"https://api.github.com/users/vialikanau-aliaksei/following{/other_user}","gists_url":"https://api.github.com/users/vialikanau-aliaksei/gists{/gist_id}","starred_url":"https://api.github.com/users/vialikanau-aliaksei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vialikanau-aliaksei/subscriptions","organizations_url":"https://api.github.com/users/vialikanau-aliaksei/orgs","repos_url":"https://api.github.com/users/vialikanau-aliaksei/repos","events_url":"https://api.github.com/users/vialikanau-aliaksei/events{/privacy}","received_events_url":"https://api.github.com/users/vialikanau-aliaksei/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-05T14:02:07Z","updated_at":"2017-04-06T16:48:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b1f0d8f60f430e62c8433ed8ec9417424402a57","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/4/commits","review_comments_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/4/comments","review_comment_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/issues/4/comments","statuses_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/statuses/30dfd9192c77f7fd48e835060c7b893ee54860c2","head":{"label":"vialikanau-aliaksei:search","ref":"search","sha":"30dfd9192c77f7fd48e835060c7b893ee54860c2","user":{"login":"vialikanau-aliaksei","id":26303120,"avatar_url":"https://avatars0.githubusercontent.com/u/26303120?v=3","gravatar_id":"","url":"https://api.github.com/users/vialikanau-aliaksei","html_url":"https://github.com/vialikanau-aliaksei","followers_url":"https://api.github.com/users/vialikanau-aliaksei/followers","following_url":"https://api.github.com/users/vialikanau-aliaksei/following{/other_user}","gists_url":"https://api.github.com/users/vialikanau-aliaksei/gists{/gist_id}","starred_url":"https://api.github.com/users/vialikanau-aliaksei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vialikanau-aliaksei/subscriptions","organizations_url":"https://api.github.com/users/vialikanau-aliaksei/orgs","repos_url":"https://api.github.com/users/vialikanau-aliaksei/repos","events_url":"https://api.github.com/users/vialikanau-aliaksei/events{/privacy}","received_events_url":"https://api.github.com/users/vialikanau-aliaksei/received_events","type":"User","site_admin":false},"repo":{"id":85606055,"name":"vialikanau-aliaksei.github.io","full_name":"vialikanau-aliaksei/vialikanau-aliaksei.github.io","owner":{"login":"vialikanau-aliaksei","id":26303120,"avatar_url":"https://avatars0.githubusercontent.com/u/26303120?v=3","gravatar_id":"","url":"https://api.github.com/users/vialikanau-aliaksei","html_url":"https://github.com/vialikanau-aliaksei","followers_url":"https://api.github.com/users/vialikanau-aliaksei/followers","following_url":"https://api.github.com/users/vialikanau-aliaksei/following{/other_user}","gists_url":"https://api.github.com/users/vialikanau-aliaksei/gists{/gist_id}","starred_url":"https://api.github.com/users/vialikanau-aliaksei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vialikanau-aliaksei/subscriptions","organizations_url":"https://api.github.com/users/vialikanau-aliaksei/orgs","repos_url":"https://api.github.com/users/vialikanau-aliaksei/repos","events_url":"https://api.github.com/users/vialikanau-aliaksei/events{/privacy}","received_events_url":"https://api.github.com/users/vialikanau-aliaksei/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io","description":null,"fork":false,"url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io","forks_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/forks","keys_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/teams","hooks_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/hooks","issue_events_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/events","assignees_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/tags","blobs_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/languages","stargazers_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/stargazers","contributors_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/contributors","subscribers_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/subscribers","subscription_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/subscription","commits_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/merges","archive_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/downloads","issues_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/labels{/name}","releases_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/deployments","created_at":"2017-03-20T17:26:54Z","updated_at":"2017-03-25T12:15:54Z","pushed_at":"2017-04-06T15:35:53Z","git_url":"git://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io.git","ssh_url":"git@github.com:vialikanau-aliaksei/vialikanau-aliaksei.github.io.git","clone_url":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io.git","svn_url":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io","homepage":null,"size":15,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"vialikanau-aliaksei:master","ref":"master","sha":"04409dbb7d7a2a11f49dd2d09f35a73aa197356e","user":{"login":"vialikanau-aliaksei","id":26303120,"avatar_url":"https://avatars0.githubusercontent.com/u/26303120?v=3","gravatar_id":"","url":"https://api.github.com/users/vialikanau-aliaksei","html_url":"https://github.com/vialikanau-aliaksei","followers_url":"https://api.github.com/users/vialikanau-aliaksei/followers","following_url":"https://api.github.com/users/vialikanau-aliaksei/following{/other_user}","gists_url":"https://api.github.com/users/vialikanau-aliaksei/gists{/gist_id}","starred_url":"https://api.github.com/users/vialikanau-aliaksei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vialikanau-aliaksei/subscriptions","organizations_url":"https://api.github.com/users/vialikanau-aliaksei/orgs","repos_url":"https://api.github.com/users/vialikanau-aliaksei/repos","events_url":"https://api.github.com/users/vialikanau-aliaksei/events{/privacy}","received_events_url":"https://api.github.com/users/vialikanau-aliaksei/received_events","type":"User","site_admin":false},"repo":{"id":85606055,"name":"vialikanau-aliaksei.github.io","full_name":"vialikanau-aliaksei/vialikanau-aliaksei.github.io","owner":{"login":"vialikanau-aliaksei","id":26303120,"avatar_url":"https://avatars0.githubusercontent.com/u/26303120?v=3","gravatar_id":"","url":"https://api.github.com/users/vialikanau-aliaksei","html_url":"https://github.com/vialikanau-aliaksei","followers_url":"https://api.github.com/users/vialikanau-aliaksei/followers","following_url":"https://api.github.com/users/vialikanau-aliaksei/following{/other_user}","gists_url":"https://api.github.com/users/vialikanau-aliaksei/gists{/gist_id}","starred_url":"https://api.github.com/users/vialikanau-aliaksei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vialikanau-aliaksei/subscriptions","organizations_url":"https://api.github.com/users/vialikanau-aliaksei/orgs","repos_url":"https://api.github.com/users/vialikanau-aliaksei/repos","events_url":"https://api.github.com/users/vialikanau-aliaksei/events{/privacy}","received_events_url":"https://api.github.com/users/vialikanau-aliaksei/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io","description":null,"fork":false,"url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io","forks_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/forks","keys_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/teams","hooks_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/hooks","issue_events_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/events","assignees_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/tags","blobs_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/languages","stargazers_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/stargazers","contributors_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/contributors","subscribers_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/subscribers","subscription_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/subscription","commits_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/merges","archive_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/downloads","issues_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/labels{/name}","releases_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/deployments","created_at":"2017-03-20T17:26:54Z","updated_at":"2017-03-25T12:15:54Z","pushed_at":"2017-04-06T15:35:53Z","git_url":"git://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io.git","ssh_url":"git@github.com:vialikanau-aliaksei/vialikanau-aliaksei.github.io.git","clone_url":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io.git","svn_url":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io","homepage":null,"size":15,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/4"},"html":{"href":"https://github.com/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pull/4"},"issue":{"href":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/issues/4"},"comments":{"href":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/vialikanau-aliaksei/vialikanau-aliaksei.github.io/statuses/30dfd9192c77f7fd48e835060c7b893ee54860c2"}}}}
{"actor":{"display_login":"NikitaSedyx"}}