{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/ProfOak/dotstribute/pulls/2","id":39201826,"html_url":"https://github.com/ProfOak/dotstribute/pull/2","diff_url":"https://github.com/ProfOak/dotstribute/pull/2.diff","patch_url":"https://github.com/ProfOak/dotstribute/pull/2.patch","issue_url":"https://api.github.com/repos/ProfOak/dotstribute/issues/2","number":2,"state":"closed","locked":false,"title":"Rearranged the code for easier debugging","user":{"login":"hectron","id":1649281,"avatar_url":"https://avatars.githubusercontent.com/u/1649281?v=3","gravatar_id":"","url":"https://api.github.com/users/hectron","html_url":"https://github.com/hectron","followers_url":"https://api.github.com/users/hectron/followers","following_url":"https://api.github.com/users/hectron/following{/other_user}","gists_url":"https://api.github.com/users/hectron/gists{/gist_id}","starred_url":"https://api.github.com/users/hectron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectron/subscriptions","organizations_url":"https://api.github.com/users/hectron/orgs","repos_url":"https://api.github.com/users/hectron/repos","events_url":"https://api.github.com/users/hectron/events{/privacy}","received_events_url":"https://api.github.com/users/hectron/received_events","type":"User","site_admin":false},"body":"# Context\r\n\r\nThe program was nested within one method. I believe that a method should have a single purpose.\r\n\r\n# Cause\r\n\r\nMany python programs are single method scripts. However, troubleshooting is a lot easier with smaller, single purpose methods.\r\n\r\n# Solution\r\n\r\nSplit up the main method into logical methods.","created_at":"2015-07-04T03:10:08Z","updated_at":"2015-07-04T03:34:04Z","closed_at":"2015-07-04T03:34:04Z","merged_at":null,"merge_commit_sha":"fc860d2f407f81f852f4849434fa8fdb1806f6df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ProfOak/dotstribute/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ProfOak/dotstribute/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ProfOak/dotstribute/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ProfOak/dotstribute/issues/2/comments","statuses_url":"https://api.github.com/repos/ProfOak/dotstribute/statuses/1375f6306b53a94f1c01f19831b5a8821a9549b8","head":{"label":"BlowUpTheOcean:master","ref":"master","sha":"1375f6306b53a94f1c01f19831b5a8821a9549b8","user":{"login":"BlowUpTheOcean","id":9451357,"avatar_url":"https://avatars.githubusercontent.com/u/9451357?v=3","gravatar_id":"","url":"https://api.github.com/users/BlowUpTheOcean","html_url":"https://github.com/BlowUpTheOcean","followers_url":"https://api.github.com/users/BlowUpTheOcean/followers","following_url":"https://api.github.com/users/BlowUpTheOcean/following{/other_user}","gists_url":"https://api.github.com/users/BlowUpTheOcean/gists{/gist_id}","starred_url":"https://api.github.com/users/BlowUpTheOcean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlowUpTheOcean/subscriptions","organizations_url":"https://api.github.com/users/BlowUpTheOcean/orgs","repos_url":"https://api.github.com/users/BlowUpTheOcean/repos","events_url":"https://api.github.com/users/BlowUpTheOcean/events{/privacy}","received_events_url":"https://api.github.com/users/BlowUpTheOcean/received_events","type":"Organization","site_admin":false},"repo":{"id":38517560,"name":"dotstribute","full_name":"BlowUpTheOcean/dotstribute","owner":{"login":"BlowUpTheOcean","id":9451357,"avatar_url":"https://avatars.githubusercontent.com/u/9451357?v=3","gravatar_id":"","url":"https://api.github.com/users/BlowUpTheOcean","html_url":"https://github.com/BlowUpTheOcean","followers_url":"https://api.github.com/users/BlowUpTheOcean/followers","following_url":"https://api.github.com/users/BlowUpTheOcean/following{/other_user}","gists_url":"https://api.github.com/users/BlowUpTheOcean/gists{/gist_id}","starred_url":"https://api.github.com/users/BlowUpTheOcean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlowUpTheOcean/subscriptions","organizations_url":"https://api.github.com/users/BlowUpTheOcean/orgs","repos_url":"https://api.github.com/users/BlowUpTheOcean/repos","events_url":"https://api.github.com/users/BlowUpTheOcean/events{/privacy}","received_events_url":"https://api.github.com/users/BlowUpTheOcean/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BlowUpTheOcean/dotstribute","description":"Make your dotfiles easier to manage with version control","fork":true,"url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute","forks_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/forks","keys_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/teams","hooks_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/hooks","issue_events_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/issues/events{/number}","events_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/events","assignees_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/assignees{/user}","branches_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/branches{/branch}","tags_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/tags","blobs_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/statuses/{sha}","languages_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/languages","stargazers_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/stargazers","contributors_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/contributors","subscribers_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/subscribers","subscription_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/subscription","commits_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/contents/{+path}","compare_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/merges","archive_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/downloads","issues_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/issues{/number}","pulls_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/pulls{/number}","milestones_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/milestones{/number}","notifications_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/labels{/name}","releases_url":"https://api.github.com/repos/BlowUpTheOcean/dotstribute/releases{/id}","created_at":"2015-07-04T01:47:35Z","updated_at":"2015-07-04T01:47:38Z","pushed_at":"2015-07-04T03:04:26Z","git_url":"git://github.com/BlowUpTheOcean/dotstribute.git","ssh_url":"git@github.com:BlowUpTheOcean/dotstribute.git","clone_url":"https://github.com/BlowUpTheOcean/dotstribute.git","svn_url":"https://github.com/BlowUpTheOcean/dotstribute","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"ProfOak:master","ref":"master","sha":"f15e00701343dbce9a07cd0187380f62f404671b","user":{"login":"ProfOak","id":585087,"avatar_url":"https://avatars.githubusercontent.com/u/585087?v=3","gravatar_id":"","url":"https://api.github.com/users/ProfOak","html_url":"https://github.com/ProfOak","followers_url":"https://api.github.com/users/ProfOak/followers","following_url":"https://api.github.com/users/ProfOak/following{/other_user}","gists_url":"https://api.github.com/users/ProfOak/gists{/gist_id}","starred_url":"https://api.github.com/users/ProfOak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProfOak/subscriptions","organizations_url":"https://api.github.com/users/ProfOak/orgs","repos_url":"https://api.github.com/users/ProfOak/repos","events_url":"https://api.github.com/users/ProfOak/events{/privacy}","received_events_url":"https://api.github.com/users/ProfOak/received_events","type":"User","site_admin":false},"repo":{"id":38471455,"name":"dotstribute","full_name":"ProfOak/dotstribute","owner":{"login":"ProfOak","id":585087,"avatar_url":"https://avatars.githubusercontent.com/u/585087?v=3","gravatar_id":"","url":"https://api.github.com/users/ProfOak","html_url":"https://github.com/ProfOak","followers_url":"https://api.github.com/users/ProfOak/followers","following_url":"https://api.github.com/users/ProfOak/following{/other_user}","gists_url":"https://api.github.com/users/ProfOak/gists{/gist_id}","starred_url":"https://api.github.com/users/ProfOak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProfOak/subscriptions","organizations_url":"https://api.github.com/users/ProfOak/orgs","repos_url":"https://api.github.com/users/ProfOak/repos","events_url":"https://api.github.com/users/ProfOak/events{/privacy}","received_events_url":"https://api.github.com/users/ProfOak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ProfOak/dotstribute","description":"Make your dotfiles easier to manage with version control","fork":false,"url":"https://api.github.com/repos/ProfOak/dotstribute","forks_url":"https://api.github.com/repos/ProfOak/dotstribute/forks","keys_url":"https://api.github.com/repos/ProfOak/dotstribute/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProfOak/dotstribute/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProfOak/dotstribute/teams","hooks_url":"https://api.github.com/repos/ProfOak/dotstribute/hooks","issue_events_url":"https://api.github.com/repos/ProfOak/dotstribute/issues/events{/number}","events_url":"https://api.github.com/repos/ProfOak/dotstribute/events","assignees_url":"https://api.github.com/repos/ProfOak/dotstribute/assignees{/user}","branches_url":"https://api.github.com/repos/ProfOak/dotstribute/branches{/branch}","tags_url":"https://api.github.com/repos/ProfOak/dotstribute/tags","blobs_url":"https://api.github.com/repos/ProfOak/dotstribute/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProfOak/dotstribute/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProfOak/dotstribute/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProfOak/dotstribute/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProfOak/dotstribute/statuses/{sha}","languages_url":"https://api.github.com/repos/ProfOak/dotstribute/languages","stargazers_url":"https://api.github.com/repos/ProfOak/dotstribute/stargazers","contributors_url":"https://api.github.com/repos/ProfOak/dotstribute/contributors","subscribers_url":"https://api.github.com/repos/ProfOak/dotstribute/subscribers","subscription_url":"https://api.github.com/repos/ProfOak/dotstribute/subscription","commits_url":"https://api.github.com/repos/ProfOak/dotstribute/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProfOak/dotstribute/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProfOak/dotstribute/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProfOak/dotstribute/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProfOak/dotstribute/contents/{+path}","compare_url":"https://api.github.com/repos/ProfOak/dotstribute/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProfOak/dotstribute/merges","archive_url":"https://api.github.com/repos/ProfOak/dotstribute/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProfOak/dotstribute/downloads","issues_url":"https://api.github.com/repos/ProfOak/dotstribute/issues{/number}","pulls_url":"https://api.github.com/repos/ProfOak/dotstribute/pulls{/number}","milestones_url":"https://api.github.com/repos/ProfOak/dotstribute/milestones{/number}","notifications_url":"https://api.github.com/repos/ProfOak/dotstribute/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProfOak/dotstribute/labels{/name}","releases_url":"https://api.github.com/repos/ProfOak/dotstribute/releases{/id}","created_at":"2015-07-03T04:14:29Z","updated_at":"2015-07-03T19:36:42Z","pushed_at":"2015-07-04T03:10:08Z","git_url":"git://github.com/ProfOak/dotstribute.git","ssh_url":"git@github.com:ProfOak/dotstribute.git","clone_url":"https://github.com/ProfOak/dotstribute.git","svn_url":"https://github.com/ProfOak/dotstribute","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ProfOak/dotstribute/pulls/2"},"html":{"href":"https://github.com/ProfOak/dotstribute/pull/2"},"issue":{"href":"https://api.github.com/repos/ProfOak/dotstribute/issues/2"},"comments":{"href":"https://api.github.com/repos/ProfOak/dotstribute/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ProfOak/dotstribute/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ProfOak/dotstribute/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ProfOak/dotstribute/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ProfOak/dotstribute/statuses/1375f6306b53a94f1c01f19831b5a8821a9549b8"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":2,"additions":41,"deletions":35,"changed_files":1}}