{"action":"created","comment":{"url":"https://api.github.com/repos/Parazitxxxxx/library/pulls/comments/223230171","pull_request_review_id":162306728,"id":223230171,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzIzMDE3MQ==","diff_hunk":"@@ -0,0 +1,71 @@\n+import re\n+\n+\n+class Visitor:\n+\n+    # Class show human which come in library.\n+\n+    def __init__(self):\n+        # usedBooks_id - saved which books used visitors\n+        self._used_books_id = []\n+\n+    def create_visitor(self, visitor_id, name, email):\n+\n+        if not isinstance(name, int) and name != \"\" and \\\n+                3 < len(str(name)) < 15 and not name.isdigit():\n+            self._name = name\n+        else:\n+            raise Exception(\"Delivered empty name or not expected \\\n+                                quantity symbols in name or they is digit\")\n+\n+        if not isinstance(visitor_id, str) and visitor_id != \"\" and \\\n+                3 < len(str(abs(visitor_id))) < 15:\n+            self._visitor_id = visitor_id\n+        else:\n+            raise Exception(\"Delivered empty name or not expected \\\n+                                quantity symbols in name or they is digit\")\n+\n+        # EMAIL\n+        # Mask for email\n+        reg = '(^|\\s)[-a-z0-9_.]+@([-a-z0-9]+\\.)+[a-z]{2,6}(\\s|$)'\n+        email = email.lower()\n+        if email != \"\" and 3 < len(str(email)) < 64 and \\\n+                re.fullmatch(reg, email):\n+            self._email = email\n+        else:\n+            raise Exception(\"!Delivered empty  Email or bad Email address\")\n+\n+        # Check and saved this which books used visitors\n+\n+    def add_book_id(self, *used_books_id):\n+\n+        for book_id in used_books_id:\n+            if not isinstance(book_id, str) and book_id != \"\" and \\\n+                    3 < len(str(abs(book_id))) < 10:\n+                self._used_books_id.append(book_id)\n+            else:\n+                raise Exception(\"Delivered empty usedBookID or not\\\n+                                    expected quantity symbols in usedBookID\")\n+\n+    def get_name(self):\n+        return self._name\n+\n+    def get_id(self):\n+        return self._visitor_id\n+\n+    def get_email(self):\n+        return self._email\n+\n+    def get_used_books_id(self):\n+        return self._used_books_id\n+\n+    def delete_used_book_id(self, del_book_id ):\n+        self._used_books_id.remove(del_book_id)\n+\n+    def get_status(self):\n+        return 'id:', self._visitor_id, 'name: ', self._name, 'email :', \\","path":"visitor.py","position":66,"original_position":66,"commit_id":"c361902dede8be79a9519b4f9e95326556022e4e","original_commit_id":"c361902dede8be79a9519b4f9e95326556022e4e","user":{"login":"gizzatov","id":5235034,"node_id":"MDQ6VXNlcjUyMzUwMzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5235034?v=4","gravatar_id":"","url":"https://api.github.com/users/gizzatov","html_url":"https://github.com/gizzatov","followers_url":"https://api.github.com/users/gizzatov/followers","following_url":"https://api.github.com/users/gizzatov/following{/other_user}","gists_url":"https://api.github.com/users/gizzatov/gists{/gist_id}","starred_url":"https://api.github.com/users/gizzatov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gizzatov/subscriptions","organizations_url":"https://api.github.com/users/gizzatov/orgs","repos_url":"https://api.github.com/users/gizzatov/repos","events_url":"https://api.github.com/users/gizzatov/events{/privacy}","received_events_url":"https://api.github.com/users/gizzatov/received_events","type":"User","site_admin":false},"body":"это еще что? :)","created_at":"2018-10-07T22:11:07Z","updated_at":"2018-10-07T22:11:14Z","html_url":"https://github.com/Parazitxxxxx/library/pull/1#discussion_r223230171","pull_request_url":"https://api.github.com/repos/Parazitxxxxx/library/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Parazitxxxxx/library/pulls/comments/223230171"},"html":{"href":"https://github.com/Parazitxxxxx/library/pull/1#discussion_r223230171"},"pull_request":{"href":"https://api.github.com/repos/Parazitxxxxx/library/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Parazitxxxxx/library/pulls/1","id":218802651,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4ODAyNjUx","html_url":"https://github.com/Parazitxxxxx/library/pull/1","diff_url":"https://github.com/Parazitxxxxx/library/pull/1.diff","patch_url":"https://github.com/Parazitxxxxx/library/pull/1.patch","issue_url":"https://api.github.com/repos/Parazitxxxxx/library/issues/1","number":1,"state":"open","locked":false,"title":"add class user","user":{"login":"Parazitxxxxx","id":20334681,"node_id":"MDQ6VXNlcjIwMzM0Njgx","avatar_url":"https://avatars0.githubusercontent.com/u/20334681?v=4","gravatar_id":"","url":"https://api.github.com/users/Parazitxxxxx","html_url":"https://github.com/Parazitxxxxx","followers_url":"https://api.github.com/users/Parazitxxxxx/followers","following_url":"https://api.github.com/users/Parazitxxxxx/following{/other_user}","gists_url":"https://api.github.com/users/Parazitxxxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/Parazitxxxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parazitxxxxx/subscriptions","organizations_url":"https://api.github.com/users/Parazitxxxxx/orgs","repos_url":"https://api.github.com/users/Parazitxxxxx/repos","events_url":"https://api.github.com/users/Parazitxxxxx/events{/privacy}","received_events_url":"https://api.github.com/users/Parazitxxxxx/received_events","type":"User","site_admin":false},"body":"add class user","created_at":"2018-09-27T22:07:48Z","updated_at":"2018-10-07T22:11:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03bb3cf8b366d96b0fc2a111e583e791ac1de03b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Parazitxxxxx/library/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Parazitxxxxx/library/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Parazitxxxxx/library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Parazitxxxxx/library/issues/1/comments","statuses_url":"https://api.github.com/repos/Parazitxxxxx/library/statuses/c361902dede8be79a9519b4f9e95326556022e4e","head":{"label":"Parazitxxxxx:feature/user","ref":"feature/user","sha":"c361902dede8be79a9519b4f9e95326556022e4e","user":{"login":"Parazitxxxxx","id":20334681,"node_id":"MDQ6VXNlcjIwMzM0Njgx","avatar_url":"https://avatars0.githubusercontent.com/u/20334681?v=4","gravatar_id":"","url":"https://api.github.com/users/Parazitxxxxx","html_url":"https://github.com/Parazitxxxxx","followers_url":"https://api.github.com/users/Parazitxxxxx/followers","following_url":"https://api.github.com/users/Parazitxxxxx/following{/other_user}","gists_url":"https://api.github.com/users/Parazitxxxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/Parazitxxxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parazitxxxxx/subscriptions","organizations_url":"https://api.github.com/users/Parazitxxxxx/orgs","repos_url":"https://api.github.com/users/Parazitxxxxx/repos","events_url":"https://api.github.com/users/Parazitxxxxx/events{/privacy}","received_events_url":"https://api.github.com/users/Parazitxxxxx/received_events","type":"User","site_admin":false},"repo":{"id":150652931,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA2NTI5MzE=","name":"library","full_name":"Parazitxxxxx/library","private":false,"owner":{"login":"Parazitxxxxx","id":20334681,"node_id":"MDQ6VXNlcjIwMzM0Njgx","avatar_url":"https://avatars0.githubusercontent.com/u/20334681?v=4","gravatar_id":"","url":"https://api.github.com/users/Parazitxxxxx","html_url":"https://github.com/Parazitxxxxx","followers_url":"https://api.github.com/users/Parazitxxxxx/followers","following_url":"https://api.github.com/users/Parazitxxxxx/following{/other_user}","gists_url":"https://api.github.com/users/Parazitxxxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/Parazitxxxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parazitxxxxx/subscriptions","organizations_url":"https://api.github.com/users/Parazitxxxxx/orgs","repos_url":"https://api.github.com/users/Parazitxxxxx/repos","events_url":"https://api.github.com/users/Parazitxxxxx/events{/privacy}","received_events_url":"https://api.github.com/users/Parazitxxxxx/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Parazitxxxxx/library","description":"for writing library class","fork":false,"url":"https://api.github.com/repos/Parazitxxxxx/library","forks_url":"https://api.github.com/repos/Parazitxxxxx/library/forks","keys_url":"https://api.github.com/repos/Parazitxxxxx/library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Parazitxxxxx/library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Parazitxxxxx/library/teams","hooks_url":"https://api.github.com/repos/Parazitxxxxx/library/hooks","issue_events_url":"https://api.github.com/repos/Parazitxxxxx/library/issues/events{/number}","events_url":"https://api.github.com/repos/Parazitxxxxx/library/events","assignees_url":"https://api.github.com/repos/Parazitxxxxx/library/assignees{/user}","branches_url":"https://api.github.com/repos/Parazitxxxxx/library/branches{/branch}","tags_url":"https://api.github.com/repos/Parazitxxxxx/library/tags","blobs_url":"https://api.github.com/repos/Parazitxxxxx/library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Parazitxxxxx/library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Parazitxxxxx/library/git/refs{/sha}","trees_url":"https://api.github.com/repos/Parazitxxxxx/library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Parazitxxxxx/library/statuses/{sha}","languages_url":"https://api.github.com/repos/Parazitxxxxx/library/languages","stargazers_url":"https://api.github.com/repos/Parazitxxxxx/library/stargazers","contributors_url":"https://api.github.com/repos/Parazitxxxxx/library/contributors","subscribers_url":"https://api.github.com/repos/Parazitxxxxx/library/subscribers","subscription_url":"https://api.github.com/repos/Parazitxxxxx/library/subscription","commits_url":"https://api.github.com/repos/Parazitxxxxx/library/commits{/sha}","git_commits_url":"https://api.github.com/repos/Parazitxxxxx/library/git/commits{/sha}","comments_url":"https://api.github.com/repos/Parazitxxxxx/library/comments{/number}","issue_comment_url":"https://api.github.com/repos/Parazitxxxxx/library/issues/comments{/number}","contents_url":"https://api.github.com/repos/Parazitxxxxx/library/contents/{+path}","compare_url":"https://api.github.com/repos/Parazitxxxxx/library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Parazitxxxxx/library/merges","archive_url":"https://api.github.com/repos/Parazitxxxxx/library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Parazitxxxxx/library/downloads","issues_url":"https://api.github.com/repos/Parazitxxxxx/library/issues{/number}","pulls_url":"https://api.github.com/repos/Parazitxxxxx/library/pulls{/number}","milestones_url":"https://api.github.com/repos/Parazitxxxxx/library/milestones{/number}","notifications_url":"https://api.github.com/repos/Parazitxxxxx/library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Parazitxxxxx/library/labels{/name}","releases_url":"https://api.github.com/repos/Parazitxxxxx/library/releases{/id}","deployments_url":"https://api.github.com/repos/Parazitxxxxx/library/deployments","created_at":"2018-09-27T22:01:24Z","updated_at":"2018-09-27T22:37:45Z","pushed_at":"2018-10-01T18:24:39Z","git_url":"git://github.com/Parazitxxxxx/library.git","ssh_url":"git@github.com:Parazitxxxxx/library.git","clone_url":"https://github.com/Parazitxxxxx/library.git","svn_url":"https://github.com/Parazitxxxxx/library","homepage":"","size":4,"stargazers_count":0,"watchers_count":0,"language":null,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Parazitxxxxx:master","ref":"master","sha":"48adde6bdc442de1e7e7a355bbb3fae3b62d77f7","user":{"login":"Parazitxxxxx","id":20334681,"node_id":"MDQ6VXNlcjIwMzM0Njgx","avatar_url":"https://avatars0.githubusercontent.com/u/20334681?v=4","gravatar_id":"","url":"https://api.github.com/users/Parazitxxxxx","html_url":"https://github.com/Parazitxxxxx","followers_url":"https://api.github.com/users/Parazitxxxxx/followers","following_url":"https://api.github.com/users/Parazitxxxxx/following{/other_user}","gists_url":"https://api.github.com/users/Parazitxxxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/Parazitxxxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parazitxxxxx/subscriptions","organizations_url":"https://api.github.com/users/Parazitxxxxx/orgs","repos_url":"https://api.github.com/users/Parazitxxxxx/repos","events_url":"https://api.github.com/users/Parazitxxxxx/events{/privacy}","received_events_url":"https://api.github.com/users/Parazitxxxxx/received_events","type":"User","site_admin":false},"repo":{"id":150652931,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA2NTI5MzE=","name":"library","full_name":"Parazitxxxxx/library","private":false,"owner":{"login":"Parazitxxxxx","id":20334681,"node_id":"MDQ6VXNlcjIwMzM0Njgx","avatar_url":"https://avatars0.githubusercontent.com/u/20334681?v=4","gravatar_id":"","url":"https://api.github.com/users/Parazitxxxxx","html_url":"https://github.com/Parazitxxxxx","followers_url":"https://api.github.com/users/Parazitxxxxx/followers","following_url":"https://api.github.com/users/Parazitxxxxx/following{/other_user}","gists_url":"https://api.github.com/users/Parazitxxxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/Parazitxxxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parazitxxxxx/subscriptions","organizations_url":"https://api.github.com/users/Parazitxxxxx/orgs","repos_url":"https://api.github.com/users/Parazitxxxxx/repos","events_url":"https://api.github.com/users/Parazitxxxxx/events{/privacy}","received_events_url":"https://api.github.com/users/Parazitxxxxx/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Parazitxxxxx/library","description":"for writing library class","fork":false,"url":"https://api.github.com/repos/Parazitxxxxx/library","forks_url":"https://api.github.com/repos/Parazitxxxxx/library/forks","keys_url":"https://api.github.com/repos/Parazitxxxxx/library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Parazitxxxxx/library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Parazitxxxxx/library/teams","hooks_url":"https://api.github.com/repos/Parazitxxxxx/library/hooks","issue_events_url":"https://api.github.com/repos/Parazitxxxxx/library/issues/events{/number}","events_url":"https://api.github.com/repos/Parazitxxxxx/library/events","assignees_url":"https://api.github.com/repos/Parazitxxxxx/library/assignees{/user}","branches_url":"https://api.github.com/repos/Parazitxxxxx/library/branches{/branch}","tags_url":"https://api.github.com/repos/Parazitxxxxx/library/tags","blobs_url":"https://api.github.com/repos/Parazitxxxxx/library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Parazitxxxxx/library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Parazitxxxxx/library/git/refs{/sha}","trees_url":"https://api.github.com/repos/Parazitxxxxx/library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Parazitxxxxx/library/statuses/{sha}","languages_url":"https://api.github.com/repos/Parazitxxxxx/library/languages","stargazers_url":"https://api.github.com/repos/Parazitxxxxx/library/stargazers","contributors_url":"https://api.github.com/repos/Parazitxxxxx/library/contributors","subscribers_url":"https://api.github.com/repos/Parazitxxxxx/library/subscribers","subscription_url":"https://api.github.com/repos/Parazitxxxxx/library/subscription","commits_url":"https://api.github.com/repos/Parazitxxxxx/library/commits{/sha}","git_commits_url":"https://api.github.com/repos/Parazitxxxxx/library/git/commits{/sha}","comments_url":"https://api.github.com/repos/Parazitxxxxx/library/comments{/number}","issue_comment_url":"https://api.github.com/repos/Parazitxxxxx/library/issues/comments{/number}","contents_url":"https://api.github.com/repos/Parazitxxxxx/library/contents/{+path}","compare_url":"https://api.github.com/repos/Parazitxxxxx/library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Parazitxxxxx/library/merges","archive_url":"https://api.github.com/repos/Parazitxxxxx/library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Parazitxxxxx/library/downloads","issues_url":"https://api.github.com/repos/Parazitxxxxx/library/issues{/number}","pulls_url":"https://api.github.com/repos/Parazitxxxxx/library/pulls{/number}","milestones_url":"https://api.github.com/repos/Parazitxxxxx/library/milestones{/number}","notifications_url":"https://api.github.com/repos/Parazitxxxxx/library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Parazitxxxxx/library/labels{/name}","releases_url":"https://api.github.com/repos/Parazitxxxxx/library/releases{/id}","deployments_url":"https://api.github.com/repos/Parazitxxxxx/library/deployments","created_at":"2018-09-27T22:01:24Z","updated_at":"2018-09-27T22:37:45Z","pushed_at":"2018-10-01T18:24:39Z","git_url":"git://github.com/Parazitxxxxx/library.git","ssh_url":"git@github.com:Parazitxxxxx/library.git","clone_url":"https://github.com/Parazitxxxxx/library.git","svn_url":"https://github.com/Parazitxxxxx/library","homepage":"","size":4,"stargazers_count":0,"watchers_count":0,"language":null,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Parazitxxxxx/library/pulls/1"},"html":{"href":"https://github.com/Parazitxxxxx/library/pull/1"},"issue":{"href":"https://api.github.com/repos/Parazitxxxxx/library/issues/1"},"comments":{"href":"https://api.github.com/repos/Parazitxxxxx/library/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Parazitxxxxx/library/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Parazitxxxxx/library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Parazitxxxxx/library/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Parazitxxxxx/library/statuses/c361902dede8be79a9519b4f9e95326556022e4e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"gizzatov"}}