{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/billy7907/Final-Project/pulls/2","id":50292623,"html_url":"https://github.com/billy7907/Final-Project/pull/2","diff_url":"https://github.com/billy7907/Final-Project/pull/2.diff","patch_url":"https://github.com/billy7907/Final-Project/pull/2.patch","issue_url":"https://api.github.com/repos/billy7907/Final-Project/issues/2","number":2,"state":"open","locked":false,"title":"Comments on code for Billy.","user":{"login":"isaac-menninga","id":15328933,"avatar_url":"https://avatars.githubusercontent.com/u/15328933?v=3","gravatar_id":"","url":"https://api.github.com/users/isaac-menninga","html_url":"https://github.com/isaac-menninga","followers_url":"https://api.github.com/users/isaac-menninga/followers","following_url":"https://api.github.com/users/isaac-menninga/following{/other_user}","gists_url":"https://api.github.com/users/isaac-menninga/gists{/gist_id}","starred_url":"https://api.github.com/users/isaac-menninga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaac-menninga/subscriptions","organizations_url":"https://api.github.com/users/isaac-menninga/orgs","repos_url":"https://api.github.com/users/isaac-menninga/repos","events_url":"https://api.github.com/users/isaac-menninga/events{/privacy}","received_events_url":"https://api.github.com/users/isaac-menninga/received_events","type":"User","site_admin":false},"body":"Your code looks great, and everything is working with the data you have at this point. Most of my comments are about organization. Defining functions in your code that would perform each operation you perform (plotting, least squares, etc.) would greatly improve the readability and clarity of your code. Even though it is perfectly functional to have code that simply goes from the top to the bottom, having different operations nested in functions makes each operation easier to change and manipulate. Doing this also can make your job  much easier when working with all your data. As an outside reviewer, having modular code makes it easier to understand top-level flow of the program, and also where to look at the more specific operations. To me, it is similar to having a table of contents in your code. ","created_at":"2015-11-10T18:36:38Z","updated_at":"2015-11-10T18:36:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/billy7907/Final-Project/pulls/2/commits","review_comments_url":"https://api.github.com/repos/billy7907/Final-Project/pulls/2/comments","review_comment_url":"https://api.github.com/repos/billy7907/Final-Project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/billy7907/Final-Project/issues/2/comments","statuses_url":"https://api.github.com/repos/billy7907/Final-Project/statuses/8d0ac611ed5a737f03b61b4e3818aa71a9f6d1a5","head":{"label":"isaac-menninga:master","ref":"master","sha":"8d0ac611ed5a737f03b61b4e3818aa71a9f6d1a5","user":{"login":"isaac-menninga","id":15328933,"avatar_url":"https://avatars.githubusercontent.com/u/15328933?v=3","gravatar_id":"","url":"https://api.github.com/users/isaac-menninga","html_url":"https://github.com/isaac-menninga","followers_url":"https://api.github.com/users/isaac-menninga/followers","following_url":"https://api.github.com/users/isaac-menninga/following{/other_user}","gists_url":"https://api.github.com/users/isaac-menninga/gists{/gist_id}","starred_url":"https://api.github.com/users/isaac-menninga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaac-menninga/subscriptions","organizations_url":"https://api.github.com/users/isaac-menninga/orgs","repos_url":"https://api.github.com/users/isaac-menninga/repos","events_url":"https://api.github.com/users/isaac-menninga/events{/privacy}","received_events_url":"https://api.github.com/users/isaac-menninga/received_events","type":"User","site_admin":false},"repo":{"id":45925871,"name":"Final-Project","full_name":"isaac-menninga/Final-Project","owner":{"login":"isaac-menninga","id":15328933,"avatar_url":"https://avatars.githubusercontent.com/u/15328933?v=3","gravatar_id":"","url":"https://api.github.com/users/isaac-menninga","html_url":"https://github.com/isaac-menninga","followers_url":"https://api.github.com/users/isaac-menninga/followers","following_url":"https://api.github.com/users/isaac-menninga/following{/other_user}","gists_url":"https://api.github.com/users/isaac-menninga/gists{/gist_id}","starred_url":"https://api.github.com/users/isaac-menninga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaac-menninga/subscriptions","organizations_url":"https://api.github.com/users/isaac-menninga/orgs","repos_url":"https://api.github.com/users/isaac-menninga/repos","events_url":"https://api.github.com/users/isaac-menninga/events{/privacy}","received_events_url":"https://api.github.com/users/isaac-menninga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/isaac-menninga/Final-Project","description":"","fork":true,"url":"https://api.github.com/repos/isaac-menninga/Final-Project","forks_url":"https://api.github.com/repos/isaac-menninga/Final-Project/forks","keys_url":"https://api.github.com/repos/isaac-menninga/Final-Project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/isaac-menninga/Final-Project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/isaac-menninga/Final-Project/teams","hooks_url":"https://api.github.com/repos/isaac-menninga/Final-Project/hooks","issue_events_url":"https://api.github.com/repos/isaac-menninga/Final-Project/issues/events{/number}","events_url":"https://api.github.com/repos/isaac-menninga/Final-Project/events","assignees_url":"https://api.github.com/repos/isaac-menninga/Final-Project/assignees{/user}","branches_url":"https://api.github.com/repos/isaac-menninga/Final-Project/branches{/branch}","tags_url":"https://api.github.com/repos/isaac-menninga/Final-Project/tags","blobs_url":"https://api.github.com/repos/isaac-menninga/Final-Project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/isaac-menninga/Final-Project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/isaac-menninga/Final-Project/git/refs{/sha}","trees_url":"https://api.github.com/repos/isaac-menninga/Final-Project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/isaac-menninga/Final-Project/statuses/{sha}","languages_url":"https://api.github.com/repos/isaac-menninga/Final-Project/languages","stargazers_url":"https://api.github.com/repos/isaac-menninga/Final-Project/stargazers","contributors_url":"https://api.github.com/repos/isaac-menninga/Final-Project/contributors","subscribers_url":"https://api.github.com/repos/isaac-menninga/Final-Project/subscribers","subscription_url":"https://api.github.com/repos/isaac-menninga/Final-Project/subscription","commits_url":"https://api.github.com/repos/isaac-menninga/Final-Project/commits{/sha}","git_commits_url":"https://api.github.com/repos/isaac-menninga/Final-Project/git/commits{/sha}","comments_url":"https://api.github.com/repos/isaac-menninga/Final-Project/comments{/number}","issue_comment_url":"https://api.github.com/repos/isaac-menninga/Final-Project/issues/comments{/number}","contents_url":"https://api.github.com/repos/isaac-menninga/Final-Project/contents/{+path}","compare_url":"https://api.github.com/repos/isaac-menninga/Final-Project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/isaac-menninga/Final-Project/merges","archive_url":"https://api.github.com/repos/isaac-menninga/Final-Project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/isaac-menninga/Final-Project/downloads","issues_url":"https://api.github.com/repos/isaac-menninga/Final-Project/issues{/number}","pulls_url":"https://api.github.com/repos/isaac-menninga/Final-Project/pulls{/number}","milestones_url":"https://api.github.com/repos/isaac-menninga/Final-Project/milestones{/number}","notifications_url":"https://api.github.com/repos/isaac-menninga/Final-Project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/isaac-menninga/Final-Project/labels{/name}","releases_url":"https://api.github.com/repos/isaac-menninga/Final-Project/releases{/id}","created_at":"2015-11-10T16:46:43Z","updated_at":"2015-11-09T22:58:01Z","pushed_at":"2015-11-10T18:25:25Z","git_url":"git://github.com/isaac-menninga/Final-Project.git","ssh_url":"git@github.com:isaac-menninga/Final-Project.git","clone_url":"https://github.com/isaac-menninga/Final-Project.git","svn_url":"https://github.com/isaac-menninga/Final-Project","homepage":null,"size":0,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"billy7907:master","ref":"master","sha":"687ec439837cd1bf845b9faa8e672edf1444af05","user":{"login":"billy7907","id":15349731,"avatar_url":"https://avatars.githubusercontent.com/u/15349731?v=3","gravatar_id":"","url":"https://api.github.com/users/billy7907","html_url":"https://github.com/billy7907","followers_url":"https://api.github.com/users/billy7907/followers","following_url":"https://api.github.com/users/billy7907/following{/other_user}","gists_url":"https://api.github.com/users/billy7907/gists{/gist_id}","starred_url":"https://api.github.com/users/billy7907/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billy7907/subscriptions","organizations_url":"https://api.github.com/users/billy7907/orgs","repos_url":"https://api.github.com/users/billy7907/repos","events_url":"https://api.github.com/users/billy7907/events{/privacy}","received_events_url":"https://api.github.com/users/billy7907/received_events","type":"User","site_admin":false},"repo":{"id":45872478,"name":"Final-Project","full_name":"billy7907/Final-Project","owner":{"login":"billy7907","id":15349731,"avatar_url":"https://avatars.githubusercontent.com/u/15349731?v=3","gravatar_id":"","url":"https://api.github.com/users/billy7907","html_url":"https://github.com/billy7907","followers_url":"https://api.github.com/users/billy7907/followers","following_url":"https://api.github.com/users/billy7907/following{/other_user}","gists_url":"https://api.github.com/users/billy7907/gists{/gist_id}","starred_url":"https://api.github.com/users/billy7907/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billy7907/subscriptions","organizations_url":"https://api.github.com/users/billy7907/orgs","repos_url":"https://api.github.com/users/billy7907/repos","events_url":"https://api.github.com/users/billy7907/events{/privacy}","received_events_url":"https://api.github.com/users/billy7907/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/billy7907/Final-Project","description":"","fork":false,"url":"https://api.github.com/repos/billy7907/Final-Project","forks_url":"https://api.github.com/repos/billy7907/Final-Project/forks","keys_url":"https://api.github.com/repos/billy7907/Final-Project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/billy7907/Final-Project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/billy7907/Final-Project/teams","hooks_url":"https://api.github.com/repos/billy7907/Final-Project/hooks","issue_events_url":"https://api.github.com/repos/billy7907/Final-Project/issues/events{/number}","events_url":"https://api.github.com/repos/billy7907/Final-Project/events","assignees_url":"https://api.github.com/repos/billy7907/Final-Project/assignees{/user}","branches_url":"https://api.github.com/repos/billy7907/Final-Project/branches{/branch}","tags_url":"https://api.github.com/repos/billy7907/Final-Project/tags","blobs_url":"https://api.github.com/repos/billy7907/Final-Project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/billy7907/Final-Project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/billy7907/Final-Project/git/refs{/sha}","trees_url":"https://api.github.com/repos/billy7907/Final-Project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/billy7907/Final-Project/statuses/{sha}","languages_url":"https://api.github.com/repos/billy7907/Final-Project/languages","stargazers_url":"https://api.github.com/repos/billy7907/Final-Project/stargazers","contributors_url":"https://api.github.com/repos/billy7907/Final-Project/contributors","subscribers_url":"https://api.github.com/repos/billy7907/Final-Project/subscribers","subscription_url":"https://api.github.com/repos/billy7907/Final-Project/subscription","commits_url":"https://api.github.com/repos/billy7907/Final-Project/commits{/sha}","git_commits_url":"https://api.github.com/repos/billy7907/Final-Project/git/commits{/sha}","comments_url":"https://api.github.com/repos/billy7907/Final-Project/comments{/number}","issue_comment_url":"https://api.github.com/repos/billy7907/Final-Project/issues/comments{/number}","contents_url":"https://api.github.com/repos/billy7907/Final-Project/contents/{+path}","compare_url":"https://api.github.com/repos/billy7907/Final-Project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/billy7907/Final-Project/merges","archive_url":"https://api.github.com/repos/billy7907/Final-Project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/billy7907/Final-Project/downloads","issues_url":"https://api.github.com/repos/billy7907/Final-Project/issues{/number}","pulls_url":"https://api.github.com/repos/billy7907/Final-Project/pulls{/number}","milestones_url":"https://api.github.com/repos/billy7907/Final-Project/milestones{/number}","notifications_url":"https://api.github.com/repos/billy7907/Final-Project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/billy7907/Final-Project/labels{/name}","releases_url":"https://api.github.com/repos/billy7907/Final-Project/releases{/id}","created_at":"2015-11-09T22:58:01Z","updated_at":"2015-11-09T22:58:01Z","pushed_at":"2015-11-09T23:57:42Z","git_url":"git://github.com/billy7907/Final-Project.git","ssh_url":"git@github.com:billy7907/Final-Project.git","clone_url":"https://github.com/billy7907/Final-Project.git","svn_url":"https://github.com/billy7907/Final-Project","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/billy7907/Final-Project/pulls/2"},"html":{"href":"https://github.com/billy7907/Final-Project/pull/2"},"issue":{"href":"https://api.github.com/repos/billy7907/Final-Project/issues/2"},"comments":{"href":"https://api.github.com/repos/billy7907/Final-Project/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/billy7907/Final-Project/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/billy7907/Final-Project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/billy7907/Final-Project/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/billy7907/Final-Project/statuses/8d0ac611ed5a737f03b61b4e3818aa71a9f6d1a5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":91,"deletions":217,"changed_files":1}}