{"action":"created","comment":{"url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/comments/212574554","pull_request_review_id":149237891,"id":212574554,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjU3NDU1NA==","diff_hunk":"@@ -0,0 +1,145 @@\n+/*!\n+\\file\n+\\brief Header template print_ip function's\n+\n+\\details print ip address to stdout\n+*/\n+\n+#pragma once\n+\n+#include \"tuple.h\"\n+\n+#include <list>\n+#include <vector>\n+#include <type_traits>\n+\n+/// Home work #4 (print ip)\n+namespace HW_04\n+{\n+\n+/// Print IP template\n+namespace PRINT\n+{\n+\n+using namespace std;\n+using namespace TUPLE;\n+\n+/*!\n+\\brief Print ip address to stdout\n+\\details Printing(reference) byte sequence to ip address format\n+\\param[in] arg input data\n+\\tparam T Type of data\n+\\return void\n+*/\n+template <class T>\n+enable_if_t\n+<\n+\tis_integral<typename std::decay<T>::type>::value,\n+\tvoid\n+>\n+print_ip (const T arg, bool is_number = true)\n+{\n+\tconst auto size = sizeof(T);\n+\tstatic_assert(size > 0, \"T must be > 0\");\n+\n+\tif (!is_number)\n+\t{\n+\t\tif (size == 1)\n+\t\t\tcout << static_cast<int>(arg);\n+\t\telse\n+\t\t\tcout << arg;\n+\t\treturn;\n+\t}\n+\n+\tstringstream str;\n+\n+\tfor (auto i = 1; i <= size; ++i)\n+    {\n+\t\tif (str.tellp() != 0)\n+\t\t\tstr << '.';\n+\n+\t\tuint8_t raw = arg >> ((size - i) * 8);\n+\t\tstr << static_cast<int>(raw);\n+\t}\n+\n+\tcout << str.str() << endl;\n+}\n+\n+/*!\n+\\brief Print text\n+\\param[in] arg input data\n+\\tparam T Type of data\n+\\return void\n+*/\n+template <class T>\n+enable_if_t\n+<\n+\tis_same<typename std::decay<T>::type, string>::value,\n+\tvoid\n+>\n+print_ip (const T arg, bool new_line = true)","path":"hw_04/include/print.h","position":null,"original_position":80,"commit_id":"80d409084a950a535e931682c8ecb7631896ed07","original_commit_id":"80d409084a950a535e931682c8ecb7631896ed07","user":{"login":"Ranihilator","id":36754445,"node_id":"MDQ6VXNlcjM2NzU0NDQ1","avatar_url":"https://avatars2.githubusercontent.com/u/36754445?v=4","gravatar_id":"","url":"https://api.github.com/users/Ranihilator","html_url":"https://github.com/Ranihilator","followers_url":"https://api.github.com/users/Ranihilator/followers","following_url":"https://api.github.com/users/Ranihilator/following{/other_user}","gists_url":"https://api.github.com/users/Ranihilator/gists{/gist_id}","starred_url":"https://api.github.com/users/Ranihilator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ranihilator/subscriptions","organizations_url":"https://api.github.com/users/Ranihilator/orgs","repos_url":"https://api.github.com/users/Ranihilator/repos","events_url":"https://api.github.com/users/Ranihilator/events{/privacy}","received_events_url":"https://api.github.com/users/Ranihilator/received_events","type":"User","site_admin":false},"body":"хм, хорошая идея, попробую поменять","created_at":"2018-08-24T09:40:22Z","updated_at":"2018-08-24T09:40:23Z","html_url":"https://github.com/Ranihilator/projects_for_home_work/pull/8#discussion_r212574554","pull_request_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/8","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/comments/212574554"},"html":{"href":"https://github.com/Ranihilator/projects_for_home_work/pull/8#discussion_r212574554"},"pull_request":{"href":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/8"}},"in_reply_to_id":212399345},"pull_request":{"url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/8","id":208325491,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4MzI1NDkx","html_url":"https://github.com/Ranihilator/projects_for_home_work/pull/8","diff_url":"https://github.com/Ranihilator/projects_for_home_work/pull/8.diff","patch_url":"https://github.com/Ranihilator/projects_for_home_work/pull/8.patch","issue_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/issues/8","number":8,"state":"open","locked":false,"title":"Review/hw 04","user":{"login":"Ranihilator","id":36754445,"node_id":"MDQ6VXNlcjM2NzU0NDQ1","avatar_url":"https://avatars2.githubusercontent.com/u/36754445?v=4","gravatar_id":"","url":"https://api.github.com/users/Ranihilator","html_url":"https://github.com/Ranihilator","followers_url":"https://api.github.com/users/Ranihilator/followers","following_url":"https://api.github.com/users/Ranihilator/following{/other_user}","gists_url":"https://api.github.com/users/Ranihilator/gists{/gist_id}","starred_url":"https://api.github.com/users/Ranihilator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ranihilator/subscriptions","organizations_url":"https://api.github.com/users/Ranihilator/orgs","repos_url":"https://api.github.com/users/Ranihilator/repos","events_url":"https://api.github.com/users/Ranihilator/events{/privacy}","received_events_url":"https://api.github.com/users/Ranihilator/received_events","type":"User","site_admin":false},"body":"Ревью печать ип адресса","created_at":"2018-08-14T15:40:04Z","updated_at":"2018-08-24T09:40:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e010e5fbd7f79a1f2a7e4ab3e24eea47516b5be","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/issues/8/comments","statuses_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/statuses/80d409084a950a535e931682c8ecb7631896ed07","head":{"label":"Ranihilator:review/hw_04","ref":"review/hw_04","sha":"80d409084a950a535e931682c8ecb7631896ed07","user":{"login":"Ranihilator","id":36754445,"node_id":"MDQ6VXNlcjM2NzU0NDQ1","avatar_url":"https://avatars2.githubusercontent.com/u/36754445?v=4","gravatar_id":"","url":"https://api.github.com/users/Ranihilator","html_url":"https://github.com/Ranihilator","followers_url":"https://api.github.com/users/Ranihilator/followers","following_url":"https://api.github.com/users/Ranihilator/following{/other_user}","gists_url":"https://api.github.com/users/Ranihilator/gists{/gist_id}","starred_url":"https://api.github.com/users/Ranihilator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ranihilator/subscriptions","organizations_url":"https://api.github.com/users/Ranihilator/orgs","repos_url":"https://api.github.com/users/Ranihilator/repos","events_url":"https://api.github.com/users/Ranihilator/events{/privacy}","received_events_url":"https://api.github.com/users/Ranihilator/received_events","type":"User","site_admin":false},"repo":{"id":124273583,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQyNzM1ODM=","name":"projects_for_home_work","full_name":"Ranihilator/projects_for_home_work","owner":{"login":"Ranihilator","id":36754445,"node_id":"MDQ6VXNlcjM2NzU0NDQ1","avatar_url":"https://avatars2.githubusercontent.com/u/36754445?v=4","gravatar_id":"","url":"https://api.github.com/users/Ranihilator","html_url":"https://github.com/Ranihilator","followers_url":"https://api.github.com/users/Ranihilator/followers","following_url":"https://api.github.com/users/Ranihilator/following{/other_user}","gists_url":"https://api.github.com/users/Ranihilator/gists{/gist_id}","starred_url":"https://api.github.com/users/Ranihilator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ranihilator/subscriptions","organizations_url":"https://api.github.com/users/Ranihilator/orgs","repos_url":"https://api.github.com/users/Ranihilator/repos","events_url":"https://api.github.com/users/Ranihilator/events{/privacy}","received_events_url":"https://api.github.com/users/Ranihilator/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ranihilator/projects_for_home_work","description":"This repository for home work project's","fork":false,"url":"https://api.github.com/repos/Ranihilator/projects_for_home_work","forks_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/forks","keys_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/teams","hooks_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/hooks","issue_events_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/issues/events{/number}","events_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/events","assignees_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/assignees{/user}","branches_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/branches{/branch}","tags_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/tags","blobs_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/statuses/{sha}","languages_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/languages","stargazers_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/stargazers","contributors_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/contributors","subscribers_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/subscribers","subscription_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/subscription","commits_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/contents/{+path}","compare_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/merges","archive_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/downloads","issues_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/issues{/number}","pulls_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls{/number}","milestones_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/milestones{/number}","notifications_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/labels{/name}","releases_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/releases{/id}","deployments_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/deployments","created_at":"2018-03-07T17:54:29Z","updated_at":"2018-08-13T08:34:43Z","pushed_at":"2018-08-23T16:41:58Z","git_url":"git://github.com/Ranihilator/projects_for_home_work.git","ssh_url":"git@github.com:Ranihilator/projects_for_home_work.git","clone_url":"https://github.com/Ranihilator/projects_for_home_work.git","svn_url":"https://github.com/Ranihilator/projects_for_home_work","homepage":null,"size":6900,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":1,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"Ranihilator:master","ref":"master","sha":"2d6efc96b0f9c6988ae0d46df9f30ae234c2e1a5","user":{"login":"Ranihilator","id":36754445,"node_id":"MDQ6VXNlcjM2NzU0NDQ1","avatar_url":"https://avatars2.githubusercontent.com/u/36754445?v=4","gravatar_id":"","url":"https://api.github.com/users/Ranihilator","html_url":"https://github.com/Ranihilator","followers_url":"https://api.github.com/users/Ranihilator/followers","following_url":"https://api.github.com/users/Ranihilator/following{/other_user}","gists_url":"https://api.github.com/users/Ranihilator/gists{/gist_id}","starred_url":"https://api.github.com/users/Ranihilator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ranihilator/subscriptions","organizations_url":"https://api.github.com/users/Ranihilator/orgs","repos_url":"https://api.github.com/users/Ranihilator/repos","events_url":"https://api.github.com/users/Ranihilator/events{/privacy}","received_events_url":"https://api.github.com/users/Ranihilator/received_events","type":"User","site_admin":false},"repo":{"id":124273583,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQyNzM1ODM=","name":"projects_for_home_work","full_name":"Ranihilator/projects_for_home_work","owner":{"login":"Ranihilator","id":36754445,"node_id":"MDQ6VXNlcjM2NzU0NDQ1","avatar_url":"https://avatars2.githubusercontent.com/u/36754445?v=4","gravatar_id":"","url":"https://api.github.com/users/Ranihilator","html_url":"https://github.com/Ranihilator","followers_url":"https://api.github.com/users/Ranihilator/followers","following_url":"https://api.github.com/users/Ranihilator/following{/other_user}","gists_url":"https://api.github.com/users/Ranihilator/gists{/gist_id}","starred_url":"https://api.github.com/users/Ranihilator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ranihilator/subscriptions","organizations_url":"https://api.github.com/users/Ranihilator/orgs","repos_url":"https://api.github.com/users/Ranihilator/repos","events_url":"https://api.github.com/users/Ranihilator/events{/privacy}","received_events_url":"https://api.github.com/users/Ranihilator/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ranihilator/projects_for_home_work","description":"This repository for home work project's","fork":false,"url":"https://api.github.com/repos/Ranihilator/projects_for_home_work","forks_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/forks","keys_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/teams","hooks_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/hooks","issue_events_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/issues/events{/number}","events_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/events","assignees_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/assignees{/user}","branches_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/branches{/branch}","tags_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/tags","blobs_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/statuses/{sha}","languages_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/languages","stargazers_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/stargazers","contributors_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/contributors","subscribers_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/subscribers","subscription_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/subscription","commits_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/contents/{+path}","compare_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/merges","archive_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/downloads","issues_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/issues{/number}","pulls_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls{/number}","milestones_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/milestones{/number}","notifications_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/labels{/name}","releases_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/releases{/id}","deployments_url":"https://api.github.com/repos/Ranihilator/projects_for_home_work/deployments","created_at":"2018-03-07T17:54:29Z","updated_at":"2018-08-13T08:34:43Z","pushed_at":"2018-08-23T16:41:58Z","git_url":"git://github.com/Ranihilator/projects_for_home_work.git","ssh_url":"git@github.com:Ranihilator/projects_for_home_work.git","clone_url":"https://github.com/Ranihilator/projects_for_home_work.git","svn_url":"https://github.com/Ranihilator/projects_for_home_work","homepage":null,"size":6900,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":1,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/8"},"html":{"href":"https://github.com/Ranihilator/projects_for_home_work/pull/8"},"issue":{"href":"https://api.github.com/repos/Ranihilator/projects_for_home_work/issues/8"},"comments":{"href":"https://api.github.com/repos/Ranihilator/projects_for_home_work/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ranihilator/projects_for_home_work/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Ranihilator/projects_for_home_work/statuses/80d409084a950a535e931682c8ecb7631896ed07"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Ranihilator"}}