{"action":"created","comment":{"url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/comments/234358221","pull_request_review_id":175994163,"id":234358221,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDM1ODIyMQ==","diff_hunk":"@@ -0,0 +1,44 @@\n+#include <vector>\n+#include <iostream>\n+#include \"RangeBasedForLoopExample.h\"\n+\n+using namespace std;\n+\n+namespace samples\n+{\n+\tvoid RangeBasedForLoopExample()\n+\t{\n+\t\tvector<int> nums;\n+\t\tnums.reserve(5);\n+\n+\t\tnums.push_back(1);\n+\t\tnums.push_back(2);\n+\t\tnums.push_back(3);\n+\t\tnums.push_back(4);\n+\t\tnums.push_back(5);\n+\n+\t\tfor (int n : nums)\n+\t\t{\n+\t\t\tn++;\n+\t\t}\n+\n+\t\tcout << \"Print nums:\" << endl;\n+\n+\t\tfor (auto it = nums.begin(); it != nums.end(); ++it)\n+\t\t{\n+\t\t\tcout << *it << endl;\n+\t\t}\n+\n+\t\tfor (int& n : nums)\n+\t\t{\n+\t\t\tn--;\n+\t\t}\n+\n+\t\tcout << \"Print nums again:\" << endl;\n+\n+\t\tfor (auto it = nums.begin(); it != nums.end(); ++it)","path":"11/RangeBasedForLoopExample.cpp","position":39,"original_position":39,"commit_id":"44fc120b510d237019e693cdbb609e88fa520f97","original_commit_id":"44fc120b510d237019e693cdbb609e88fa520f97","user":{"login":"popekim","id":6261778,"node_id":"MDQ6VXNlcjYyNjE3Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/6261778?v=4","gravatar_id":"","url":"https://api.github.com/users/popekim","html_url":"https://github.com/popekim","followers_url":"https://api.github.com/users/popekim/followers","following_url":"https://api.github.com/users/popekim/following{/other_user}","gists_url":"https://api.github.com/users/popekim/gists{/gist_id}","starred_url":"https://api.github.com/users/popekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/popekim/subscriptions","organizations_url":"https://api.github.com/users/popekim/orgs","repos_url":"https://api.github.com/users/popekim/repos","events_url":"https://api.github.com/users/popekim/events{/privacy}","received_events_url":"https://api.github.com/users/popekim/received_events","type":"User","site_admin":false},"body":"same","created_at":"2018-11-16T21:49:33Z","updated_at":"2018-11-16T21:55:00Z","html_url":"https://github.com/POCU/COMP3200CodeSamples/pull/1#discussion_r234358221","pull_request_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/1","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/comments/234358221"},"html":{"href":"https://github.com/POCU/COMP3200CodeSamples/pull/1#discussion_r234358221"},"pull_request":{"href":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/1","id":231664025,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNjY0MDI1","html_url":"https://github.com/POCU/COMP3200CodeSamples/pull/1","diff_url":"https://github.com/POCU/COMP3200CodeSamples/pull/1.diff","patch_url":"https://github.com/POCU/COMP3200CodeSamples/pull/1.patch","issue_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/issues/1","number":1,"state":"open","locked":false,"title":"Feature/ch11","user":{"login":"monkeywithbanana","id":42082981,"node_id":"MDQ6VXNlcjQyMDgyOTgx","avatar_url":"https://avatars1.githubusercontent.com/u/42082981?v=4","gravatar_id":"","url":"https://api.github.com/users/monkeywithbanana","html_url":"https://github.com/monkeywithbanana","followers_url":"https://api.github.com/users/monkeywithbanana/followers","following_url":"https://api.github.com/users/monkeywithbanana/following{/other_user}","gists_url":"https://api.github.com/users/monkeywithbanana/gists{/gist_id}","starred_url":"https://api.github.com/users/monkeywithbanana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monkeywithbanana/subscriptions","organizations_url":"https://api.github.com/users/monkeywithbanana/orgs","repos_url":"https://api.github.com/users/monkeywithbanana/repos","events_url":"https://api.github.com/users/monkeywithbanana/events{/privacy}","received_events_url":"https://api.github.com/users/monkeywithbanana/received_events","type":"User","site_admin":false},"body":"Chapter 11 code examples","created_at":"2018-11-16T21:44:52Z","updated_at":"2018-11-16T21:55:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"868e4b4b43a096e051c6d9844976e24854abf919","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/1/commits","review_comments_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/1/comments","review_comment_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/issues/1/comments","statuses_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/statuses/44fc120b510d237019e693cdbb609e88fa520f97","head":{"label":"POCU:feature/ch11","ref":"feature/ch11","sha":"44fc120b510d237019e693cdbb609e88fa520f97","user":{"login":"POCU","id":40330777,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzMwNzc3","avatar_url":"https://avatars3.githubusercontent.com/u/40330777?v=4","gravatar_id":"","url":"https://api.github.com/users/POCU","html_url":"https://github.com/POCU","followers_url":"https://api.github.com/users/POCU/followers","following_url":"https://api.github.com/users/POCU/following{/other_user}","gists_url":"https://api.github.com/users/POCU/gists{/gist_id}","starred_url":"https://api.github.com/users/POCU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/POCU/subscriptions","organizations_url":"https://api.github.com/users/POCU/orgs","repos_url":"https://api.github.com/users/POCU/repos","events_url":"https://api.github.com/users/POCU/events{/privacy}","received_events_url":"https://api.github.com/users/POCU/received_events","type":"Organization","site_admin":false},"repo":{"id":157486071,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc0ODYwNzE=","name":"COMP3200CodeSamples","full_name":"POCU/COMP3200CodeSamples","private":false,"owner":{"login":"POCU","id":40330777,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzMwNzc3","avatar_url":"https://avatars3.githubusercontent.com/u/40330777?v=4","gravatar_id":"","url":"https://api.github.com/users/POCU","html_url":"https://github.com/POCU","followers_url":"https://api.github.com/users/POCU/followers","following_url":"https://api.github.com/users/POCU/following{/other_user}","gists_url":"https://api.github.com/users/POCU/gists{/gist_id}","starred_url":"https://api.github.com/users/POCU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/POCU/subscriptions","organizations_url":"https://api.github.com/users/POCU/orgs","repos_url":"https://api.github.com/users/POCU/repos","events_url":"https://api.github.com/users/POCU/events{/privacy}","received_events_url":"https://api.github.com/users/POCU/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/POCU/COMP3200CodeSamples","description":"Code samples for COMP3200","fork":false,"url":"https://api.github.com/repos/POCU/COMP3200CodeSamples","forks_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/forks","keys_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/teams","hooks_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/hooks","issue_events_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/issues/events{/number}","events_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/events","assignees_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/assignees{/user}","branches_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/branches{/branch}","tags_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/tags","blobs_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/git/refs{/sha}","trees_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/statuses/{sha}","languages_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/languages","stargazers_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/stargazers","contributors_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/contributors","subscribers_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/subscribers","subscription_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/subscription","commits_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/commits{/sha}","git_commits_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/git/commits{/sha}","comments_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/comments{/number}","issue_comment_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/issues/comments{/number}","contents_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/contents/{+path}","compare_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/merges","archive_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/downloads","issues_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/issues{/number}","pulls_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls{/number}","milestones_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/milestones{/number}","notifications_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/labels{/name}","releases_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/releases{/id}","deployments_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/deployments","created_at":"2018-11-14T03:39:28Z","updated_at":"2018-11-16T01:09:19Z","pushed_at":"2018-11-16T21:44:52Z","git_url":"git://github.com/POCU/COMP3200CodeSamples.git","ssh_url":"git@github.com:POCU/COMP3200CodeSamples.git","clone_url":"https://github.com/POCU/COMP3200CodeSamples.git","svn_url":"https://github.com/POCU/COMP3200CodeSamples","homepage":null,"size":109,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"POCU:master","ref":"master","sha":"5f523875d2c7ad87367b9c524146e6a3c98f02d4","user":{"login":"POCU","id":40330777,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzMwNzc3","avatar_url":"https://avatars3.githubusercontent.com/u/40330777?v=4","gravatar_id":"","url":"https://api.github.com/users/POCU","html_url":"https://github.com/POCU","followers_url":"https://api.github.com/users/POCU/followers","following_url":"https://api.github.com/users/POCU/following{/other_user}","gists_url":"https://api.github.com/users/POCU/gists{/gist_id}","starred_url":"https://api.github.com/users/POCU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/POCU/subscriptions","organizations_url":"https://api.github.com/users/POCU/orgs","repos_url":"https://api.github.com/users/POCU/repos","events_url":"https://api.github.com/users/POCU/events{/privacy}","received_events_url":"https://api.github.com/users/POCU/received_events","type":"Organization","site_admin":false},"repo":{"id":157486071,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc0ODYwNzE=","name":"COMP3200CodeSamples","full_name":"POCU/COMP3200CodeSamples","private":false,"owner":{"login":"POCU","id":40330777,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzMwNzc3","avatar_url":"https://avatars3.githubusercontent.com/u/40330777?v=4","gravatar_id":"","url":"https://api.github.com/users/POCU","html_url":"https://github.com/POCU","followers_url":"https://api.github.com/users/POCU/followers","following_url":"https://api.github.com/users/POCU/following{/other_user}","gists_url":"https://api.github.com/users/POCU/gists{/gist_id}","starred_url":"https://api.github.com/users/POCU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/POCU/subscriptions","organizations_url":"https://api.github.com/users/POCU/orgs","repos_url":"https://api.github.com/users/POCU/repos","events_url":"https://api.github.com/users/POCU/events{/privacy}","received_events_url":"https://api.github.com/users/POCU/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/POCU/COMP3200CodeSamples","description":"Code samples for COMP3200","fork":false,"url":"https://api.github.com/repos/POCU/COMP3200CodeSamples","forks_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/forks","keys_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/teams","hooks_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/hooks","issue_events_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/issues/events{/number}","events_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/events","assignees_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/assignees{/user}","branches_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/branches{/branch}","tags_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/tags","blobs_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/git/refs{/sha}","trees_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/statuses/{sha}","languages_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/languages","stargazers_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/stargazers","contributors_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/contributors","subscribers_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/subscribers","subscription_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/subscription","commits_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/commits{/sha}","git_commits_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/git/commits{/sha}","comments_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/comments{/number}","issue_comment_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/issues/comments{/number}","contents_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/contents/{+path}","compare_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/merges","archive_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/downloads","issues_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/issues{/number}","pulls_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls{/number}","milestones_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/milestones{/number}","notifications_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/labels{/name}","releases_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/releases{/id}","deployments_url":"https://api.github.com/repos/POCU/COMP3200CodeSamples/deployments","created_at":"2018-11-14T03:39:28Z","updated_at":"2018-11-16T01:09:19Z","pushed_at":"2018-11-16T21:44:52Z","git_url":"git://github.com/POCU/COMP3200CodeSamples.git","ssh_url":"git@github.com:POCU/COMP3200CodeSamples.git","clone_url":"https://github.com/POCU/COMP3200CodeSamples.git","svn_url":"https://github.com/POCU/COMP3200CodeSamples","homepage":null,"size":109,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/1"},"html":{"href":"https://github.com/POCU/COMP3200CodeSamples/pull/1"},"issue":{"href":"https://api.github.com/repos/POCU/COMP3200CodeSamples/issues/1"},"comments":{"href":"https://api.github.com/repos/POCU/COMP3200CodeSamples/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/POCU/COMP3200CodeSamples/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/POCU/COMP3200CodeSamples/statuses/44fc120b510d237019e693cdbb609e88fa520f97"}},"author_association":"NONE"}}
{"actor":{"display_login":"popekim"}}