GitHub PullRequestReviewCommentEvent at 2014-07-04 06:49:16
Repository: Test
Actor: balauru
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Agilefreaks/Test/pulls/comments/14548790","id":14548790,"diff_hunk":"@@ -0,0 +1,49 @@\n+\n+namespace SimpleProblems\n+{\n+    public class IndentifyLargestTwoNumbers\n+    {\n+        #region Methods\n+\n+        /// <summary>\n+        /// Finds the largest two numbers in an array\n+        /// </summary>\n+        /// <param name=\"array\">array with int values</param>\n+        /// <returns>array with largest two numbers; int[0] - largest number; int[1] - second largers number</returns>\n+        public int[] CalcLargestTwoNumbers(int[] array)\n+        {\n+            int[] resultArray = new int[2] { 0, 0 };\n+            int pivotValue;\n+\n+            //check if array is not null and if it has elements\n+            if (array != null && array.Length > 0)","path":"IndentifyLargestTwoNumbers","position":19,"original_position":19,"commit_id":"a7d2627ec34b30f2e65bb3cc081a096fcd758770","original_commit_id":"a7d2627ec34b30f2e65bb3cc081a096fcd758770","user":{"login":"balauru","id":679198,"avatar_url":"https://avatars.githubusercontent.com/u/679198?","gravatar_id":"9965204e5fcfc7437ad7c7a1039df909","url":"https://api.github.com/users/balauru","html_url":"https://github.com/balauru","followers_url":"https://api.github.com/users/balauru/followers","following_url":"https://api.github.com/users/balauru/following{/other_user}","gists_url":"https://api.github.com/users/balauru/gists{/gist_id}","starred_url":"https://api.github.com/users/balauru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balauru/subscriptions","organizations_url":"https://api.github.com/users/balauru/orgs","repos_url":"https://api.github.com/users/balauru/repos","events_url":"https://api.github.com/users/balauru/events{/privacy}","received_events_url":"https://api.github.com/users/balauru/received_events","type":"User","site_admin":false},"body":"Same condition appears all in other solutions, not really usefull but if we where to keep it I will extract it in a helper class or better yet create a (Extension Method)[http://msdn.microsoft.com/en-us/library/bb383977.aspx]","created_at":"2014-07-04T06:49:16Z","updated_at":"2014-07-04T06:49:16Z","html_url":"https://github.com/Agilefreaks/Test/pull/1#discussion_r14548790","pull_request_url":"https://api.github.com/repos/Agilefreaks/Test/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/comments/14548790"},"html":{"href":"https://github.com/Agilefreaks/Test/pull/1#discussion_r14548790"},"pull_request":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Agilefreaks/Test/pulls/1","id":17981085,"html_url":"https://github.com/Agilefreaks/Test/pull/1","diff_url":"https://github.com/Agilefreaks/Test/pull/1.diff","patch_url":"https://github.com/Agilefreaks/Test/pull/1.patch","issue_url":"https://api.github.com/repos/Agilefreaks/Test/issues/1","number":1,"state":"open","title":"Simple problems resolved","user":{"login":"ioandanpopa","id":8064846,"avatar_url":"https://avatars.githubusercontent.com/u/8064846?","gravatar_id":"7cf1a9ffdd0f8d49721b427554d3ac65","url":"https://api.github.com/users/ioandanpopa","html_url":"https://github.com/ioandanpopa","followers_url":"https://api.github.com/users/ioandanpopa/followers","following_url":"https://api.github.com/users/ioandanpopa/following{/other_user}","gists_url":"https://api.github.com/users/ioandanpopa/gists{/gist_id}","starred_url":"https://api.github.com/users/ioandanpopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioandanpopa/subscriptions","organizations_url":"https://api.github.com/users/ioandanpopa/orgs","repos_url":"https://api.github.com/users/ioandanpopa/repos","events_url":"https://api.github.com/users/ioandanpopa/events{/privacy}","received_events_url":"https://api.github.com/users/ioandanpopa/received_events","type":"User","site_admin":false},"body":"Good morning!\r\n\r\nI added the files with the solutions.\r\nThey were created in Visual Studio 2010.\r\n\r\nHere is a print screen of the VS Solution if you want to reproduce it:\r\n![vs_solution](https://cloud.githubusercontent.com/assets/8064846/3478786/0748603c-0344-11e4-9cd8-14a79bd121ac.png)\r\n\r\nThe UnitTests project needs a reference to the SimpleProblems project.\r\n\r\nThank you for your time.","created_at":"2014-07-04T06:36:21Z","updated_at":"2014-07-04T06:49:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"756ec2b48c721a48a894a49b25f050a7ace6fe97","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Agilefreaks/Test/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Agilefreaks/Test/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Agilefreaks/Test/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Agilefreaks/Test/issues/1/comments","statuses_url":"https://api.github.com/repos/Agilefreaks/Test/statuses/a7d2627ec34b30f2e65bb3cc081a096fcd758770","head":{"label":"ioandanpopa:patch-1","ref":"patch-1","sha":"a7d2627ec34b30f2e65bb3cc081a096fcd758770","user":{"login":"ioandanpopa","id":8064846,"avatar_url":"https://avatars.githubusercontent.com/u/8064846?","gravatar_id":"7cf1a9ffdd0f8d49721b427554d3ac65","url":"https://api.github.com/users/ioandanpopa","html_url":"https://github.com/ioandanpopa","followers_url":"https://api.github.com/users/ioandanpopa/followers","following_url":"https://api.github.com/users/ioandanpopa/following{/other_user}","gists_url":"https://api.github.com/users/ioandanpopa/gists{/gist_id}","starred_url":"https://api.github.com/users/ioandanpopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioandanpopa/subscriptions","organizations_url":"https://api.github.com/users/ioandanpopa/orgs","repos_url":"https://api.github.com/users/ioandanpopa/repos","events_url":"https://api.github.com/users/ioandanpopa/events{/privacy}","received_events_url":"https://api.github.com/users/ioandanpopa/received_events","type":"User","site_admin":false},"repo":{"id":21486207,"name":"Test","full_name":"ioandanpopa/Test","owner":{"login":"ioandanpopa","id":8064846,"avatar_url":"https://avatars.githubusercontent.com/u/8064846?","gravatar_id":"7cf1a9ffdd0f8d49721b427554d3ac65","url":"https://api.github.com/users/ioandanpopa","html_url":"https://github.com/ioandanpopa","followers_url":"https://api.github.com/users/ioandanpopa/followers","following_url":"https://api.github.com/users/ioandanpopa/following{/other_user}","gists_url":"https://api.github.com/users/ioandanpopa/gists{/gist_id}","starred_url":"https://api.github.com/users/ioandanpopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioandanpopa/subscriptions","organizations_url":"https://api.github.com/users/ioandanpopa/orgs","repos_url":"https://api.github.com/users/ioandanpopa/repos","events_url":"https://api.github.com/users/ioandanpopa/events{/privacy}","received_events_url":"https://api.github.com/users/ioandanpopa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ioandanpopa/Test","description":"A simple 3 problem test, for your consideration","fork":true,"url":"https://api.github.com/repos/ioandanpopa/Test","forks_url":"https://api.github.com/repos/ioandanpopa/Test/forks","keys_url":"https://api.github.com/repos/ioandanpopa/Test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ioandanpopa/Test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ioandanpopa/Test/teams","hooks_url":"https://api.github.com/repos/ioandanpopa/Test/hooks","issue_events_url":"https://api.github.com/repos/ioandanpopa/Test/issues/events{/number}","events_url":"https://api.github.com/repos/ioandanpopa/Test/events","assignees_url":"https://api.github.com/repos/ioandanpopa/Test/assignees{/user}","branches_url":"https://api.github.com/repos/ioandanpopa/Test/branches{/branch}","tags_url":"https://api.github.com/repos/ioandanpopa/Test/tags","blobs_url":"https://api.github.com/repos/ioandanpopa/Test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ioandanpopa/Test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ioandanpopa/Test/git/refs{/sha}","trees_url":"https://api.github.com/repos/ioandanpopa/Test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ioandanpopa/Test/statuses/{sha}","languages_url":"https://api.github.com/repos/ioandanpopa/Test/languages","stargazers_url":"https://api.github.com/repos/ioandanpopa/Test/stargazers","contributors_url":"https://api.github.com/repos/ioandanpopa/Test/contributors","subscribers_url":"https://api.github.com/repos/ioandanpopa/Test/subscribers","subscription_url":"https://api.github.com/repos/ioandanpopa/Test/subscription","commits_url":"https://api.github.com/repos/ioandanpopa/Test/commits{/sha}","git_commits_url":"https://api.github.com/repos/ioandanpopa/Test/git/commits{/sha}","comments_url":"https://api.github.com/repos/ioandanpopa/Test/comments{/number}","issue_comment_url":"https://api.github.com/repos/ioandanpopa/Test/issues/comments/{number}","contents_url":"https://api.github.com/repos/ioandanpopa/Test/contents/{+path}","compare_url":"https://api.github.com/repos/ioandanpopa/Test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ioandanpopa/Test/merges","archive_url":"https://api.github.com/repos/ioandanpopa/Test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ioandanpopa/Test/downloads","issues_url":"https://api.github.com/repos/ioandanpopa/Test/issues{/number}","pulls_url":"https://api.github.com/repos/ioandanpopa/Test/pulls{/number}","milestones_url":"https://api.github.com/repos/ioandanpopa/Test/milestones{/number}","notifications_url":"https://api.github.com/repos/ioandanpopa/Test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ioandanpopa/Test/labels{/name}","releases_url":"https://api.github.com/repos/ioandanpopa/Test/releases{/id}","created_at":"2014-07-04T05:17:55Z","updated_at":"2014-07-04T05:27:34Z","pushed_at":"2014-07-04T06:11:12Z","git_url":"git://github.com/ioandanpopa/Test.git","ssh_url":"git@github.com:ioandanpopa/Test.git","clone_url":"https://github.com/ioandanpopa/Test.git","svn_url":"https://github.com/ioandanpopa/Test","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Agilefreaks:master","ref":"master","sha":"00c61783ee7f5ca2e0c7e206b3e8b73d765985dc","user":{"login":"Agilefreaks","id":1319488,"avatar_url":"https://avatars.githubusercontent.com/u/1319488?","gravatar_id":"859feea2e91d3c2c4445312f38e53cf6","url":"https://api.github.com/users/Agilefreaks","html_url":"https://github.com/Agilefreaks","followers_url":"https://api.github.com/users/Agilefreaks/followers","following_url":"https://api.github.com/users/Agilefreaks/following{/other_user}","gists_url":"https://api.github.com/users/Agilefreaks/gists{/gist_id}","starred_url":"https://api.github.com/users/Agilefreaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Agilefreaks/subscriptions","organizations_url":"https://api.github.com/users/Agilefreaks/orgs","repos_url":"https://api.github.com/users/Agilefreaks/repos","events_url":"https://api.github.com/users/Agilefreaks/events{/privacy}","received_events_url":"https://api.github.com/users/Agilefreaks/received_events","type":"Organization","site_admin":false},"repo":{"id":21396239,"name":"Test","full_name":"Agilefreaks/Test","owner":{"login":"Agilefreaks","id":1319488,"avatar_url":"https://avatars.githubusercontent.com/u/1319488?","gravatar_id":"859feea2e91d3c2c4445312f38e53cf6","url":"https://api.github.com/users/Agilefreaks","html_url":"https://github.com/Agilefreaks","followers_url":"https://api.github.com/users/Agilefreaks/followers","following_url":"https://api.github.com/users/Agilefreaks/following{/other_user}","gists_url":"https://api.github.com/users/Agilefreaks/gists{/gist_id}","starred_url":"https://api.github.com/users/Agilefreaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Agilefreaks/subscriptions","organizations_url":"https://api.github.com/users/Agilefreaks/orgs","repos_url":"https://api.github.com/users/Agilefreaks/repos","events_url":"https://api.github.com/users/Agilefreaks/events{/privacy}","received_events_url":"https://api.github.com/users/Agilefreaks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Agilefreaks/Test","description":"A simple 3 problem test, for your consideration","fork":false,"url":"https://api.github.com/repos/Agilefreaks/Test","forks_url":"https://api.github.com/repos/Agilefreaks/Test/forks","keys_url":"https://api.github.com/repos/Agilefreaks/Test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Agilefreaks/Test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Agilefreaks/Test/teams","hooks_url":"https://api.github.com/repos/Agilefreaks/Test/hooks","issue_events_url":"https://api.github.com/repos/Agilefreaks/Test/issues/events{/number}","events_url":"https://api.github.com/repos/Agilefreaks/Test/events","assignees_url":"https://api.github.com/repos/Agilefreaks/Test/assignees{/user}","branches_url":"https://api.github.com/repos/Agilefreaks/Test/branches{/branch}","tags_url":"https://api.github.com/repos/Agilefreaks/Test/tags","blobs_url":"https://api.github.com/repos/Agilefreaks/Test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Agilefreaks/Test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Agilefreaks/Test/git/refs{/sha}","trees_url":"https://api.github.com/repos/Agilefreaks/Test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Agilefreaks/Test/statuses/{sha}","languages_url":"https://api.github.com/repos/Agilefreaks/Test/languages","stargazers_url":"https://api.github.com/repos/Agilefreaks/Test/stargazers","contributors_url":"https://api.github.com/repos/Agilefreaks/Test/contributors","subscribers_url":"https://api.github.com/repos/Agilefreaks/Test/subscribers","subscription_url":"https://api.github.com/repos/Agilefreaks/Test/subscription","commits_url":"https://api.github.com/repos/Agilefreaks/Test/commits{/sha}","git_commits_url":"https://api.github.com/repos/Agilefreaks/Test/git/commits{/sha}","comments_url":"https://api.github.com/repos/Agilefreaks/Test/comments{/number}","issue_comment_url":"https://api.github.com/repos/Agilefreaks/Test/issues/comments/{number}","contents_url":"https://api.github.com/repos/Agilefreaks/Test/contents/{+path}","compare_url":"https://api.github.com/repos/Agilefreaks/Test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Agilefreaks/Test/merges","archive_url":"https://api.github.com/repos/Agilefreaks/Test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Agilefreaks/Test/downloads","issues_url":"https://api.github.com/repos/Agilefreaks/Test/issues{/number}","pulls_url":"https://api.github.com/repos/Agilefreaks/Test/pulls{/number}","milestones_url":"https://api.github.com/repos/Agilefreaks/Test/milestones{/number}","notifications_url":"https://api.github.com/repos/Agilefreaks/Test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Agilefreaks/Test/labels{/name}","releases_url":"https://api.github.com/repos/Agilefreaks/Test/releases{/id}","created_at":"2014-07-01T17:17:09Z","updated_at":"2014-07-02T04:06:21Z","pushed_at":"2014-07-01T17:23:04Z","git_url":"git://github.com/Agilefreaks/Test.git","ssh_url":"git@github.com:Agilefreaks/Test.git","clone_url":"https://github.com/Agilefreaks/Test.git","svn_url":"https://github.com/Agilefreaks/Test","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/1"},"html":{"href":"https://github.com/Agilefreaks/Test/pull/1"},"issue":{"href":"https://api.github.com/repos/Agilefreaks/Test/issues/1"},"comments":{"href":"https://api.github.com/repos/Agilefreaks/Test/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Agilefreaks/Test/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Agilefreaks/Test/statuses/a7d2627ec34b30f2e65bb3cc081a096fcd758770"}}}}