{"action":"created","comment":{"url":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/comments/38823675","id":38823675,"diff_hunk":"@@ -0,0 +1,73 @@\n+import static org.junit.Assert.*;\n+\n+import org.junit.After;\n+import org.junit.AfterClass;\n+import org.junit.Before;\n+import org.junit.BeforeClass;\n+import org.junit.Test;\n+\n+//test case class\n+public class BinarySearchTest {\n+\tBinarySearch object = new BinarySearch();\n+\n+\t@BeforeClass\n+\tpublic static void setUpBeforeClass() throws Exception {\n+\t}\n+\n+\t@AfterClass\n+\tpublic static void tearDownAfterClass() throws Exception {\n+\t}\n+\n+\t@Before\n+\tpublic void setUp() throws Exception {\n+\t}\n+\n+\t@After\n+\tpublic void tearDown() throws Exception {\n+\t}\n+\n+\t@Test\n+\t// to test For Array With Identical Numbers\n+\tpublic void testForArrayWithIdenticalNumbers() {\n+\n+\t\tint[] arr = { 1, 1, 1, 1, 1 };\n+\t\tint num = 1;\n+\t\tint index = object.binarySearch(num, 0, 4, arr);\n+\t\tint left = object.leftmostOccurance(arr, index);\n+\t\tint right = object.rightmostOccurance(arr, index);\n+\t\tassertEquals(2, index);\n+\t\tassertEquals(0, left);","path":"PF/Assignment1/BinarySearchTest.java","position":39,"original_position":39,"commit_id":"fe62ccc0a8865b5aa47bfb042f85b847b28a2561","original_commit_id":"fe62ccc0a8865b5aa47bfb042f85b847b28a2561","user":{"login":"pragati2015","id":13686659,"avatar_url":"https://avatars.githubusercontent.com/u/13686659?v=3","gravatar_id":"","url":"https://api.github.com/users/pragati2015","html_url":"https://github.com/pragati2015","followers_url":"https://api.github.com/users/pragati2015/followers","following_url":"https://api.github.com/users/pragati2015/following{/other_user}","gists_url":"https://api.github.com/users/pragati2015/gists{/gist_id}","starred_url":"https://api.github.com/users/pragati2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pragati2015/subscriptions","organizations_url":"https://api.github.com/users/pragati2015/orgs","repos_url":"https://api.github.com/users/pragati2015/repos","events_url":"https://api.github.com/users/pragati2015/events{/privacy}","received_events_url":"https://api.github.com/users/pragati2015/received_events","type":"User","site_admin":false},"body":"ACTION: Try to cover different cases where left most occurrence is  grater than 0","created_at":"2015-09-06T17:20:50Z","updated_at":"2015-09-06T17:20:50Z","html_url":"https://github.com/meta-anshita-arya/get2015/pull/16#discussion_r38823675","pull_request_url":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/comments/38823675"},"html":{"href":"https://github.com/meta-anshita-arya/get2015/pull/16#discussion_r38823675"},"pull_request":{"href":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/16","id":43986347,"html_url":"https://github.com/meta-anshita-arya/get2015/pull/16","diff_url":"https://github.com/meta-anshita-arya/get2015/pull/16.diff","patch_url":"https://github.com/meta-anshita-arya/get2015/pull/16.patch","issue_url":"https://api.github.com/repos/meta-anshita-arya/get2015/issues/16","number":16,"state":"open","locked":false,"title":"Dsa assignment7","user":{"login":"meta-anshita-arya","id":13674224,"avatar_url":"https://avatars.githubusercontent.com/u/13674224?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-anshita-arya","html_url":"https://github.com/meta-anshita-arya","followers_url":"https://api.github.com/users/meta-anshita-arya/followers","following_url":"https://api.github.com/users/meta-anshita-arya/following{/other_user}","gists_url":"https://api.github.com/users/meta-anshita-arya/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-anshita-arya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-anshita-arya/subscriptions","organizations_url":"https://api.github.com/users/meta-anshita-arya/orgs","repos_url":"https://api.github.com/users/meta-anshita-arya/repos","events_url":"https://api.github.com/users/meta-anshita-arya/events{/privacy}","received_events_url":"https://api.github.com/users/meta-anshita-arya/received_events","type":"User","site_admin":false},"body":"submitted","created_at":"2015-09-02T12:38:32Z","updated_at":"2015-09-06T17:20:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"965baa74ddcf839d74dfc46ae6a2632205c56fa9","assignee":{"login":"pragati2015","id":13686659,"avatar_url":"https://avatars.githubusercontent.com/u/13686659?v=3","gravatar_id":"","url":"https://api.github.com/users/pragati2015","html_url":"https://github.com/pragati2015","followers_url":"https://api.github.com/users/pragati2015/followers","following_url":"https://api.github.com/users/pragati2015/following{/other_user}","gists_url":"https://api.github.com/users/pragati2015/gists{/gist_id}","starred_url":"https://api.github.com/users/pragati2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pragati2015/subscriptions","organizations_url":"https://api.github.com/users/pragati2015/orgs","repos_url":"https://api.github.com/users/pragati2015/repos","events_url":"https://api.github.com/users/pragati2015/events{/privacy}","received_events_url":"https://api.github.com/users/pragati2015/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/16/commits","review_comments_url":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/16/comments","review_comment_url":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meta-anshita-arya/get2015/issues/16/comments","statuses_url":"https://api.github.com/repos/meta-anshita-arya/get2015/statuses/fe62ccc0a8865b5aa47bfb042f85b847b28a2561","head":{"label":"meta-anshita-arya:DSA-Assignment7","ref":"DSA-Assignment7","sha":"fe62ccc0a8865b5aa47bfb042f85b847b28a2561","user":{"login":"meta-anshita-arya","id":13674224,"avatar_url":"https://avatars.githubusercontent.com/u/13674224?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-anshita-arya","html_url":"https://github.com/meta-anshita-arya","followers_url":"https://api.github.com/users/meta-anshita-arya/followers","following_url":"https://api.github.com/users/meta-anshita-arya/following{/other_user}","gists_url":"https://api.github.com/users/meta-anshita-arya/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-anshita-arya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-anshita-arya/subscriptions","organizations_url":"https://api.github.com/users/meta-anshita-arya/orgs","repos_url":"https://api.github.com/users/meta-anshita-arya/repos","events_url":"https://api.github.com/users/meta-anshita-arya/events{/privacy}","received_events_url":"https://api.github.com/users/meta-anshita-arya/received_events","type":"User","site_admin":false},"repo":{"id":40305284,"name":"get2015","full_name":"meta-anshita-arya/get2015","owner":{"login":"meta-anshita-arya","id":13674224,"avatar_url":"https://avatars.githubusercontent.com/u/13674224?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-anshita-arya","html_url":"https://github.com/meta-anshita-arya","followers_url":"https://api.github.com/users/meta-anshita-arya/followers","following_url":"https://api.github.com/users/meta-anshita-arya/following{/other_user}","gists_url":"https://api.github.com/users/meta-anshita-arya/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-anshita-arya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-anshita-arya/subscriptions","organizations_url":"https://api.github.com/users/meta-anshita-arya/orgs","repos_url":"https://api.github.com/users/meta-anshita-arya/repos","events_url":"https://api.github.com/users/meta-anshita-arya/events{/privacy}","received_events_url":"https://api.github.com/users/meta-anshita-arya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meta-anshita-arya/get2015","description":"Training repo for GET 2015 batch","fork":true,"url":"https://api.github.com/repos/meta-anshita-arya/get2015","forks_url":"https://api.github.com/repos/meta-anshita-arya/get2015/forks","keys_url":"https://api.github.com/repos/meta-anshita-arya/get2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meta-anshita-arya/get2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meta-anshita-arya/get2015/teams","hooks_url":"https://api.github.com/repos/meta-anshita-arya/get2015/hooks","issue_events_url":"https://api.github.com/repos/meta-anshita-arya/get2015/issues/events{/number}","events_url":"https://api.github.com/repos/meta-anshita-arya/get2015/events","assignees_url":"https://api.github.com/repos/meta-anshita-arya/get2015/assignees{/user}","branches_url":"https://api.github.com/repos/meta-anshita-arya/get2015/branches{/branch}","tags_url":"https://api.github.com/repos/meta-anshita-arya/get2015/tags","blobs_url":"https://api.github.com/repos/meta-anshita-arya/get2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meta-anshita-arya/get2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meta-anshita-arya/get2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/meta-anshita-arya/get2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meta-anshita-arya/get2015/statuses/{sha}","languages_url":"https://api.github.com/repos/meta-anshita-arya/get2015/languages","stargazers_url":"https://api.github.com/repos/meta-anshita-arya/get2015/stargazers","contributors_url":"https://api.github.com/repos/meta-anshita-arya/get2015/contributors","subscribers_url":"https://api.github.com/repos/meta-anshita-arya/get2015/subscribers","subscription_url":"https://api.github.com/repos/meta-anshita-arya/get2015/subscription","commits_url":"https://api.github.com/repos/meta-anshita-arya/get2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/meta-anshita-arya/get2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/meta-anshita-arya/get2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/meta-anshita-arya/get2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/meta-anshita-arya/get2015/contents/{+path}","compare_url":"https://api.github.com/repos/meta-anshita-arya/get2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meta-anshita-arya/get2015/merges","archive_url":"https://api.github.com/repos/meta-anshita-arya/get2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meta-anshita-arya/get2015/downloads","issues_url":"https://api.github.com/repos/meta-anshita-arya/get2015/issues{/number}","pulls_url":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls{/number}","milestones_url":"https://api.github.com/repos/meta-anshita-arya/get2015/milestones{/number}","notifications_url":"https://api.github.com/repos/meta-anshita-arya/get2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meta-anshita-arya/get2015/labels{/name}","releases_url":"https://api.github.com/repos/meta-anshita-arya/get2015/releases{/id}","created_at":"2015-08-06T13:06:07Z","updated_at":"2015-08-04T12:33:00Z","pushed_at":"2015-09-04T11:14:58Z","git_url":"git://github.com/meta-anshita-arya/get2015.git","ssh_url":"git@github.com:meta-anshita-arya/get2015.git","clone_url":"https://github.com/meta-anshita-arya/get2015.git","svn_url":"https://github.com/meta-anshita-arya/get2015","homepage":null,"size":1340,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"base":{"label":"meta-anshita-arya:master","ref":"master","sha":"e52a6c4ff8198a2f43d5b4cfa46944c6f4686dfe","user":{"login":"meta-anshita-arya","id":13674224,"avatar_url":"https://avatars.githubusercontent.com/u/13674224?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-anshita-arya","html_url":"https://github.com/meta-anshita-arya","followers_url":"https://api.github.com/users/meta-anshita-arya/followers","following_url":"https://api.github.com/users/meta-anshita-arya/following{/other_user}","gists_url":"https://api.github.com/users/meta-anshita-arya/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-anshita-arya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-anshita-arya/subscriptions","organizations_url":"https://api.github.com/users/meta-anshita-arya/orgs","repos_url":"https://api.github.com/users/meta-anshita-arya/repos","events_url":"https://api.github.com/users/meta-anshita-arya/events{/privacy}","received_events_url":"https://api.github.com/users/meta-anshita-arya/received_events","type":"User","site_admin":false},"repo":{"id":40305284,"name":"get2015","full_name":"meta-anshita-arya/get2015","owner":{"login":"meta-anshita-arya","id":13674224,"avatar_url":"https://avatars.githubusercontent.com/u/13674224?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-anshita-arya","html_url":"https://github.com/meta-anshita-arya","followers_url":"https://api.github.com/users/meta-anshita-arya/followers","following_url":"https://api.github.com/users/meta-anshita-arya/following{/other_user}","gists_url":"https://api.github.com/users/meta-anshita-arya/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-anshita-arya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-anshita-arya/subscriptions","organizations_url":"https://api.github.com/users/meta-anshita-arya/orgs","repos_url":"https://api.github.com/users/meta-anshita-arya/repos","events_url":"https://api.github.com/users/meta-anshita-arya/events{/privacy}","received_events_url":"https://api.github.com/users/meta-anshita-arya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meta-anshita-arya/get2015","description":"Training repo for GET 2015 batch","fork":true,"url":"https://api.github.com/repos/meta-anshita-arya/get2015","forks_url":"https://api.github.com/repos/meta-anshita-arya/get2015/forks","keys_url":"https://api.github.com/repos/meta-anshita-arya/get2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meta-anshita-arya/get2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meta-anshita-arya/get2015/teams","hooks_url":"https://api.github.com/repos/meta-anshita-arya/get2015/hooks","issue_events_url":"https://api.github.com/repos/meta-anshita-arya/get2015/issues/events{/number}","events_url":"https://api.github.com/repos/meta-anshita-arya/get2015/events","assignees_url":"https://api.github.com/repos/meta-anshita-arya/get2015/assignees{/user}","branches_url":"https://api.github.com/repos/meta-anshita-arya/get2015/branches{/branch}","tags_url":"https://api.github.com/repos/meta-anshita-arya/get2015/tags","blobs_url":"https://api.github.com/repos/meta-anshita-arya/get2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meta-anshita-arya/get2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meta-anshita-arya/get2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/meta-anshita-arya/get2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meta-anshita-arya/get2015/statuses/{sha}","languages_url":"https://api.github.com/repos/meta-anshita-arya/get2015/languages","stargazers_url":"https://api.github.com/repos/meta-anshita-arya/get2015/stargazers","contributors_url":"https://api.github.com/repos/meta-anshita-arya/get2015/contributors","subscribers_url":"https://api.github.com/repos/meta-anshita-arya/get2015/subscribers","subscription_url":"https://api.github.com/repos/meta-anshita-arya/get2015/subscription","commits_url":"https://api.github.com/repos/meta-anshita-arya/get2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/meta-anshita-arya/get2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/meta-anshita-arya/get2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/meta-anshita-arya/get2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/meta-anshita-arya/get2015/contents/{+path}","compare_url":"https://api.github.com/repos/meta-anshita-arya/get2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meta-anshita-arya/get2015/merges","archive_url":"https://api.github.com/repos/meta-anshita-arya/get2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meta-anshita-arya/get2015/downloads","issues_url":"https://api.github.com/repos/meta-anshita-arya/get2015/issues{/number}","pulls_url":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls{/number}","milestones_url":"https://api.github.com/repos/meta-anshita-arya/get2015/milestones{/number}","notifications_url":"https://api.github.com/repos/meta-anshita-arya/get2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meta-anshita-arya/get2015/labels{/name}","releases_url":"https://api.github.com/repos/meta-anshita-arya/get2015/releases{/id}","created_at":"2015-08-06T13:06:07Z","updated_at":"2015-08-04T12:33:00Z","pushed_at":"2015-09-04T11:14:58Z","git_url":"git://github.com/meta-anshita-arya/get2015.git","ssh_url":"git@github.com:meta-anshita-arya/get2015.git","clone_url":"https://github.com/meta-anshita-arya/get2015.git","svn_url":"https://github.com/meta-anshita-arya/get2015","homepage":null,"size":1340,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/16"},"html":{"href":"https://github.com/meta-anshita-arya/get2015/pull/16"},"issue":{"href":"https://api.github.com/repos/meta-anshita-arya/get2015/issues/16"},"comments":{"href":"https://api.github.com/repos/meta-anshita-arya/get2015/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meta-anshita-arya/get2015/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/meta-anshita-arya/get2015/statuses/fe62ccc0a8865b5aa47bfb042f85b847b28a2561"}}}}