{"action":"created","comment":{"url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/comments/86512942","pull_request_review_id":7168334,"id":86512942,"diff_hunk":"@@ -12,8 +12,7 @@ std::string runCaeserCipher(const std::string& inputText,\n     encrypt: bool defining whether to encrypt or decrypt\n \n     return: encrypted string*/\n-  while (key<0)   key+=26;\n-  while (key>=26) key-=26;//converts large or negative keys to something usable\n+  key = key % 26;","path":"MPAGSCipher/runCaeserCipher.cpp","position":6,"original_position":6,"commit_id":"ddb0ddfb48c794390eeebbbe7a93ebd3b5e79dac","original_commit_id":"ddb0ddfb48c794390eeebbbe7a93ebd3b5e79dac","user":{"login":"drmarkwslater","id":13677368,"avatar_url":"https://avatars.githubusercontent.com/u/13677368?v=3","gravatar_id":"","url":"https://api.github.com/users/drmarkwslater","html_url":"https://github.com/drmarkwslater","followers_url":"https://api.github.com/users/drmarkwslater/followers","following_url":"https://api.github.com/users/drmarkwslater/following{/other_user}","gists_url":"https://api.github.com/users/drmarkwslater/gists{/gist_id}","starred_url":"https://api.github.com/users/drmarkwslater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmarkwslater/subscriptions","organizations_url":"https://api.github.com/users/drmarkwslater/orgs","repos_url":"https://api.github.com/users/drmarkwslater/repos","events_url":"https://api.github.com/users/drmarkwslater/events{/privacy}","received_events_url":"https://api.github.com/users/drmarkwslater/received_events","type":"User","site_admin":false},"body":"The modulus operator (`%`) can do this for you :smile: ","created_at":"2016-11-04T09:44:16Z","updated_at":"2016-11-04T09:44:16Z","html_url":"https://github.com/cpp-pg-mpags/mpags-c-day-2-russsell/pull/1#discussion_r86512942","pull_request_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/comments/86512942"},"html":{"href":"https://github.com/cpp-pg-mpags/mpags-c-day-2-russsell/pull/1#discussion_r86512942"},"pull_request":{"href":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/1","id":92309082,"html_url":"https://github.com/cpp-pg-mpags/mpags-c-day-2-russsell/pull/1","diff_url":"https://github.com/cpp-pg-mpags/mpags-c-day-2-russsell/pull/1.diff","patch_url":"https://github.com/cpp-pg-mpags/mpags-c-day-2-russsell/pull/1.patch","issue_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/issues/1","number":1,"state":"open","locked":false,"title":"Comments on Day 2 code","user":{"login":"drmarkwslater","id":13677368,"avatar_url":"https://avatars.githubusercontent.com/u/13677368?v=3","gravatar_id":"","url":"https://api.github.com/users/drmarkwslater","html_url":"https://github.com/drmarkwslater","followers_url":"https://api.github.com/users/drmarkwslater/followers","following_url":"https://api.github.com/users/drmarkwslater/following{/other_user}","gists_url":"https://api.github.com/users/drmarkwslater/gists{/gist_id}","starred_url":"https://api.github.com/users/drmarkwslater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmarkwslater/subscriptions","organizations_url":"https://api.github.com/users/drmarkwslater/orgs","repos_url":"https://api.github.com/users/drmarkwslater/repos","events_url":"https://api.github.com/users/drmarkwslater/events{/privacy}","received_events_url":"https://api.github.com/users/drmarkwslater/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-04T09:43:53Z","updated_at":"2016-11-04T09:45:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d058d892801123423bb105036c9ef6da430ec410","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/1/commits","review_comments_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/1/comments","review_comment_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/issues/1/comments","statuses_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/statuses/ddb0ddfb48c794390eeebbbe7a93ebd3b5e79dac","head":{"label":"drmarkwslater:master","ref":"master","sha":"ddb0ddfb48c794390eeebbbe7a93ebd3b5e79dac","user":{"login":"drmarkwslater","id":13677368,"avatar_url":"https://avatars.githubusercontent.com/u/13677368?v=3","gravatar_id":"","url":"https://api.github.com/users/drmarkwslater","html_url":"https://github.com/drmarkwslater","followers_url":"https://api.github.com/users/drmarkwslater/followers","following_url":"https://api.github.com/users/drmarkwslater/following{/other_user}","gists_url":"https://api.github.com/users/drmarkwslater/gists{/gist_id}","starred_url":"https://api.github.com/users/drmarkwslater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmarkwslater/subscriptions","organizations_url":"https://api.github.com/users/drmarkwslater/orgs","repos_url":"https://api.github.com/users/drmarkwslater/repos","events_url":"https://api.github.com/users/drmarkwslater/events{/privacy}","received_events_url":"https://api.github.com/users/drmarkwslater/received_events","type":"User","site_admin":false},"repo":{"id":72833722,"name":"mpags-c-day-2-russsell","full_name":"drmarkwslater/mpags-c-day-2-russsell","owner":{"login":"drmarkwslater","id":13677368,"avatar_url":"https://avatars.githubusercontent.com/u/13677368?v=3","gravatar_id":"","url":"https://api.github.com/users/drmarkwslater","html_url":"https://github.com/drmarkwslater","followers_url":"https://api.github.com/users/drmarkwslater/followers","following_url":"https://api.github.com/users/drmarkwslater/following{/other_user}","gists_url":"https://api.github.com/users/drmarkwslater/gists{/gist_id}","starred_url":"https://api.github.com/users/drmarkwslater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmarkwslater/subscriptions","organizations_url":"https://api.github.com/users/drmarkwslater/orgs","repos_url":"https://api.github.com/users/drmarkwslater/repos","events_url":"https://api.github.com/users/drmarkwslater/events{/privacy}","received_events_url":"https://api.github.com/users/drmarkwslater/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drmarkwslater/mpags-c-day-2-russsell","description":"mpags-c-day-2-russsell created by GitHub Classroom","fork":true,"url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell","forks_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/forks","keys_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/teams","hooks_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/hooks","issue_events_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/issues/events{/number}","events_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/events","assignees_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/assignees{/user}","branches_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/branches{/branch}","tags_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/tags","blobs_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/git/refs{/sha}","trees_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/statuses/{sha}","languages_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/languages","stargazers_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/stargazers","contributors_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/contributors","subscribers_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/subscribers","subscription_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/subscription","commits_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/commits{/sha}","git_commits_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/git/commits{/sha}","comments_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/comments{/number}","issue_comment_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/issues/comments{/number}","contents_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/contents/{+path}","compare_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/merges","archive_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/downloads","issues_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/issues{/number}","pulls_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/pulls{/number}","milestones_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/milestones{/number}","notifications_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/labels{/name}","releases_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/releases{/id}","deployments_url":"https://api.github.com/repos/drmarkwslater/mpags-c-day-2-russsell/deployments","created_at":"2016-11-04T09:35:25Z","updated_at":"2016-11-04T09:35:27Z","pushed_at":"2016-11-04T09:43:24Z","git_url":"git://github.com/drmarkwslater/mpags-c-day-2-russsell.git","ssh_url":"git@github.com:drmarkwslater/mpags-c-day-2-russsell.git","clone_url":"https://github.com/drmarkwslater/mpags-c-day-2-russsell.git","svn_url":"https://github.com/drmarkwslater/mpags-c-day-2-russsell","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"cpp-pg-mpags:master","ref":"master","sha":"857ac396710b8154e5ca678144c4bd4e27c95374","user":{"login":"cpp-pg-mpags","id":22007561,"avatar_url":"https://avatars.githubusercontent.com/u/22007561?v=3","gravatar_id":"","url":"https://api.github.com/users/cpp-pg-mpags","html_url":"https://github.com/cpp-pg-mpags","followers_url":"https://api.github.com/users/cpp-pg-mpags/followers","following_url":"https://api.github.com/users/cpp-pg-mpags/following{/other_user}","gists_url":"https://api.github.com/users/cpp-pg-mpags/gists{/gist_id}","starred_url":"https://api.github.com/users/cpp-pg-mpags/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpp-pg-mpags/subscriptions","organizations_url":"https://api.github.com/users/cpp-pg-mpags/orgs","repos_url":"https://api.github.com/users/cpp-pg-mpags/repos","events_url":"https://api.github.com/users/cpp-pg-mpags/events{/privacy}","received_events_url":"https://api.github.com/users/cpp-pg-mpags/received_events","type":"Organization","site_admin":false},"repo":{"id":72193695,"name":"mpags-c-day-2-russsell","full_name":"cpp-pg-mpags/mpags-c-day-2-russsell","owner":{"login":"cpp-pg-mpags","id":22007561,"avatar_url":"https://avatars.githubusercontent.com/u/22007561?v=3","gravatar_id":"","url":"https://api.github.com/users/cpp-pg-mpags","html_url":"https://github.com/cpp-pg-mpags","followers_url":"https://api.github.com/users/cpp-pg-mpags/followers","following_url":"https://api.github.com/users/cpp-pg-mpags/following{/other_user}","gists_url":"https://api.github.com/users/cpp-pg-mpags/gists{/gist_id}","starred_url":"https://api.github.com/users/cpp-pg-mpags/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpp-pg-mpags/subscriptions","organizations_url":"https://api.github.com/users/cpp-pg-mpags/orgs","repos_url":"https://api.github.com/users/cpp-pg-mpags/repos","events_url":"https://api.github.com/users/cpp-pg-mpags/events{/privacy}","received_events_url":"https://api.github.com/users/cpp-pg-mpags/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cpp-pg-mpags/mpags-c-day-2-russsell","description":"mpags-c-day-2-russsell created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell","forks_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/forks","keys_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/teams","hooks_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/hooks","issue_events_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/issues/events{/number}","events_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/events","assignees_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/assignees{/user}","branches_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/branches{/branch}","tags_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/tags","blobs_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/git/refs{/sha}","trees_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/statuses/{sha}","languages_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/languages","stargazers_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/stargazers","contributors_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/contributors","subscribers_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/subscribers","subscription_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/subscription","commits_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/commits{/sha}","git_commits_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/git/commits{/sha}","comments_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/comments{/number}","issue_comment_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/issues/comments{/number}","contents_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/contents/{+path}","compare_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/merges","archive_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/downloads","issues_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/issues{/number}","pulls_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls{/number}","milestones_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/milestones{/number}","notifications_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/labels{/name}","releases_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/releases{/id}","deployments_url":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/deployments","created_at":"2016-10-28T09:25:56Z","updated_at":"2016-10-28T09:26:05Z","pushed_at":"2016-11-04T09:43:53Z","git_url":"git://github.com/cpp-pg-mpags/mpags-c-day-2-russsell.git","ssh_url":"git@github.com:cpp-pg-mpags/mpags-c-day-2-russsell.git","clone_url":"https://github.com/cpp-pg-mpags/mpags-c-day-2-russsell.git","svn_url":"https://github.com/cpp-pg-mpags/mpags-c-day-2-russsell","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"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/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/1"},"html":{"href":"https://github.com/cpp-pg-mpags/mpags-c-day-2-russsell/pull/1"},"issue":{"href":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/issues/1"},"comments":{"href":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/cpp-pg-mpags/mpags-c-day-2-russsell/statuses/ddb0ddfb48c794390eeebbbe7a93ebd3b5e79dac"}}}}
{"actor":{"display_login":"drmarkwslater"}}