{"action":"created","comment":{"url":"https://api.github.com/repos/lukalabs/cakechat/pulls/comments/166038208","pull_request_review_id":94064058,"id":166038208,"diff_hunk":"@@ -14,6 +15,7 @@\n from cakechat.utils.logger import get_logger\n from cakechat.utils.plotters import TensorboardMetricsPlotter\n \n+","path":"cakechat/dialog_model/quality/logging.py","position":12,"original_position":12,"commit_id":"2172c0c1d7c1e79852d06e2718e5a723c706384a","original_commit_id":"2172c0c1d7c1e79852d06e2718e5a723c706384a","user":{"login":"rodart","id":2788915,"avatar_url":"https://avatars0.githubusercontent.com/u/2788915?v=4","gravatar_id":"","url":"https://api.github.com/users/rodart","html_url":"https://github.com/rodart","followers_url":"https://api.github.com/users/rodart/followers","following_url":"https://api.github.com/users/rodart/following{/other_user}","gists_url":"https://api.github.com/users/rodart/gists{/gist_id}","starred_url":"https://api.github.com/users/rodart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodart/subscriptions","organizations_url":"https://api.github.com/users/rodart/orgs","repos_url":"https://api.github.com/users/rodart/repos","events_url":"https://api.github.com/users/rodart/events{/privacy}","received_events_url":"https://api.github.com/users/rodart/received_events","type":"User","site_admin":false},"body":"extra \\n, please del","created_at":"2018-02-05T17:00:00Z","updated_at":"2018-02-05T17:04:00Z","html_url":"https://github.com/lukalabs/cakechat/pull/1#discussion_r166038208","pull_request_url":"https://api.github.com/repos/lukalabs/cakechat/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/lukalabs/cakechat/pulls/comments/166038208"},"html":{"href":"https://github.com/lukalabs/cakechat/pull/1#discussion_r166038208"},"pull_request":{"href":"https://api.github.com/repos/lukalabs/cakechat/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/lukalabs/cakechat/pulls/1","id":166478727,"html_url":"https://github.com/lukalabs/cakechat/pull/1","diff_url":"https://github.com/lukalabs/cakechat/pull/1.diff","patch_url":"https://github.com/lukalabs/cakechat/pull/1.patch","issue_url":"https://api.github.com/repos/lukalabs/cakechat/issues/1","number":1,"state":"open","locked":false,"title":"Modernize Python 2 code to get ready for Python 3","user":{"login":"cclauss","id":3709715,"avatar_url":"https://avatars3.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"body":"Make the minimal, safe changes required to convert the repo's code to be syntax compatible with both Python 2 and Python 3.  There may be other changes required to complete a port to Python 3 but this PR is a minimal, safe first step.\r\n\r\nRun: [futurize --stage1 -w **/*.py](http://python-future.org/futurize_cheatsheet.html)\r\n\r\n    See Stage 1: \"safe\" fixes http://python-future.org/automatic_conversion.html#stage-1-safe-fixes\r\n\r\nOne change that I was not so sure about was the change of a ur'string' to be just a u'string'.\r\nIn Python 3, you can have __u__'strings' or __r__'strings' but __ur__'strings' are a syntax error.\r\n\r\n```\r\n./cakechat/utils/text_processing/str_processor.py:9:66: E999 SyntaxError: invalid syntax\r\n_tokenizer = nltk.tokenize.RegexpTokenizer(pattern=ur'\\w+|[^\\w\\s]')\r\n                                                                 ^\r\n1     E999 SyntaxError: invalid syntax\r\n```","created_at":"2018-02-01T09:05:40Z","updated_at":"2018-02-05T17:04:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f2cbbc3ee36c44599f2127c7b4e61dc64e37bc2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/lukalabs/cakechat/pulls/1/commits","review_comments_url":"https://api.github.com/repos/lukalabs/cakechat/pulls/1/comments","review_comment_url":"https://api.github.com/repos/lukalabs/cakechat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lukalabs/cakechat/issues/1/comments","statuses_url":"https://api.github.com/repos/lukalabs/cakechat/statuses/2172c0c1d7c1e79852d06e2718e5a723c706384a","head":{"label":"cclauss:modernize-python2-code","ref":"modernize-python2-code","sha":"2172c0c1d7c1e79852d06e2718e5a723c706384a","user":{"login":"cclauss","id":3709715,"avatar_url":"https://avatars3.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"repo":{"id":119805597,"name":"cakechat","full_name":"cclauss/cakechat","owner":{"login":"cclauss","id":3709715,"avatar_url":"https://avatars3.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cclauss/cakechat","description":"CakeChat: Emotional Generative Dialog System","fork":true,"url":"https://api.github.com/repos/cclauss/cakechat","forks_url":"https://api.github.com/repos/cclauss/cakechat/forks","keys_url":"https://api.github.com/repos/cclauss/cakechat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cclauss/cakechat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cclauss/cakechat/teams","hooks_url":"https://api.github.com/repos/cclauss/cakechat/hooks","issue_events_url":"https://api.github.com/repos/cclauss/cakechat/issues/events{/number}","events_url":"https://api.github.com/repos/cclauss/cakechat/events","assignees_url":"https://api.github.com/repos/cclauss/cakechat/assignees{/user}","branches_url":"https://api.github.com/repos/cclauss/cakechat/branches{/branch}","tags_url":"https://api.github.com/repos/cclauss/cakechat/tags","blobs_url":"https://api.github.com/repos/cclauss/cakechat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cclauss/cakechat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cclauss/cakechat/git/refs{/sha}","trees_url":"https://api.github.com/repos/cclauss/cakechat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cclauss/cakechat/statuses/{sha}","languages_url":"https://api.github.com/repos/cclauss/cakechat/languages","stargazers_url":"https://api.github.com/repos/cclauss/cakechat/stargazers","contributors_url":"https://api.github.com/repos/cclauss/cakechat/contributors","subscribers_url":"https://api.github.com/repos/cclauss/cakechat/subscribers","subscription_url":"https://api.github.com/repos/cclauss/cakechat/subscription","commits_url":"https://api.github.com/repos/cclauss/cakechat/commits{/sha}","git_commits_url":"https://api.github.com/repos/cclauss/cakechat/git/commits{/sha}","comments_url":"https://api.github.com/repos/cclauss/cakechat/comments{/number}","issue_comment_url":"https://api.github.com/repos/cclauss/cakechat/issues/comments{/number}","contents_url":"https://api.github.com/repos/cclauss/cakechat/contents/{+path}","compare_url":"https://api.github.com/repos/cclauss/cakechat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cclauss/cakechat/merges","archive_url":"https://api.github.com/repos/cclauss/cakechat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cclauss/cakechat/downloads","issues_url":"https://api.github.com/repos/cclauss/cakechat/issues{/number}","pulls_url":"https://api.github.com/repos/cclauss/cakechat/pulls{/number}","milestones_url":"https://api.github.com/repos/cclauss/cakechat/milestones{/number}","notifications_url":"https://api.github.com/repos/cclauss/cakechat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cclauss/cakechat/labels{/name}","releases_url":"https://api.github.com/repos/cclauss/cakechat/releases{/id}","deployments_url":"https://api.github.com/repos/cclauss/cakechat/deployments","created_at":"2018-02-01T08:22:52Z","updated_at":"2018-02-01T08:22:55Z","pushed_at":"2018-02-05T10:49:24Z","git_url":"git://github.com/cclauss/cakechat.git","ssh_url":"git@github.com:cclauss/cakechat.git","clone_url":"https://github.com/cclauss/cakechat.git","svn_url":"https://github.com/cclauss/cakechat","homepage":"https://cakechat.replika.ai","size":110,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lukalabs:master","ref":"master","sha":"93cb30f698d285741a1378ff01d95cd16eb0ef85","user":{"login":"lukalabs","id":4477861,"avatar_url":"https://avatars1.githubusercontent.com/u/4477861?v=4","gravatar_id":"","url":"https://api.github.com/users/lukalabs","html_url":"https://github.com/lukalabs","followers_url":"https://api.github.com/users/lukalabs/followers","following_url":"https://api.github.com/users/lukalabs/following{/other_user}","gists_url":"https://api.github.com/users/lukalabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lukalabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukalabs/subscriptions","organizations_url":"https://api.github.com/users/lukalabs/orgs","repos_url":"https://api.github.com/users/lukalabs/repos","events_url":"https://api.github.com/users/lukalabs/events{/privacy}","received_events_url":"https://api.github.com/users/lukalabs/received_events","type":"Organization","site_admin":false},"repo":{"id":119573866,"name":"cakechat","full_name":"lukalabs/cakechat","owner":{"login":"lukalabs","id":4477861,"avatar_url":"https://avatars1.githubusercontent.com/u/4477861?v=4","gravatar_id":"","url":"https://api.github.com/users/lukalabs","html_url":"https://github.com/lukalabs","followers_url":"https://api.github.com/users/lukalabs/followers","following_url":"https://api.github.com/users/lukalabs/following{/other_user}","gists_url":"https://api.github.com/users/lukalabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lukalabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukalabs/subscriptions","organizations_url":"https://api.github.com/users/lukalabs/orgs","repos_url":"https://api.github.com/users/lukalabs/repos","events_url":"https://api.github.com/users/lukalabs/events{/privacy}","received_events_url":"https://api.github.com/users/lukalabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lukalabs/cakechat","description":"CakeChat: Emotional Generative Dialog System","fork":false,"url":"https://api.github.com/repos/lukalabs/cakechat","forks_url":"https://api.github.com/repos/lukalabs/cakechat/forks","keys_url":"https://api.github.com/repos/lukalabs/cakechat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukalabs/cakechat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukalabs/cakechat/teams","hooks_url":"https://api.github.com/repos/lukalabs/cakechat/hooks","issue_events_url":"https://api.github.com/repos/lukalabs/cakechat/issues/events{/number}","events_url":"https://api.github.com/repos/lukalabs/cakechat/events","assignees_url":"https://api.github.com/repos/lukalabs/cakechat/assignees{/user}","branches_url":"https://api.github.com/repos/lukalabs/cakechat/branches{/branch}","tags_url":"https://api.github.com/repos/lukalabs/cakechat/tags","blobs_url":"https://api.github.com/repos/lukalabs/cakechat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukalabs/cakechat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukalabs/cakechat/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukalabs/cakechat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukalabs/cakechat/statuses/{sha}","languages_url":"https://api.github.com/repos/lukalabs/cakechat/languages","stargazers_url":"https://api.github.com/repos/lukalabs/cakechat/stargazers","contributors_url":"https://api.github.com/repos/lukalabs/cakechat/contributors","subscribers_url":"https://api.github.com/repos/lukalabs/cakechat/subscribers","subscription_url":"https://api.github.com/repos/lukalabs/cakechat/subscription","commits_url":"https://api.github.com/repos/lukalabs/cakechat/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukalabs/cakechat/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukalabs/cakechat/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukalabs/cakechat/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukalabs/cakechat/contents/{+path}","compare_url":"https://api.github.com/repos/lukalabs/cakechat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukalabs/cakechat/merges","archive_url":"https://api.github.com/repos/lukalabs/cakechat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukalabs/cakechat/downloads","issues_url":"https://api.github.com/repos/lukalabs/cakechat/issues{/number}","pulls_url":"https://api.github.com/repos/lukalabs/cakechat/pulls{/number}","milestones_url":"https://api.github.com/repos/lukalabs/cakechat/milestones{/number}","notifications_url":"https://api.github.com/repos/lukalabs/cakechat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukalabs/cakechat/labels{/name}","releases_url":"https://api.github.com/repos/lukalabs/cakechat/releases{/id}","deployments_url":"https://api.github.com/repos/lukalabs/cakechat/deployments","created_at":"2018-01-30T18:02:58Z","updated_at":"2018-02-05T16:50:14Z","pushed_at":"2018-02-05T16:33:41Z","git_url":"git://github.com/lukalabs/cakechat.git","ssh_url":"git@github.com:lukalabs/cakechat.git","clone_url":"https://github.com/lukalabs/cakechat.git","svn_url":"https://github.com/lukalabs/cakechat","homepage":"https://cakechat.replika.ai","size":106,"stargazers_count":281,"watchers_count":281,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":33,"open_issues":3,"watchers":281,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lukalabs/cakechat/pulls/1"},"html":{"href":"https://github.com/lukalabs/cakechat/pull/1"},"issue":{"href":"https://api.github.com/repos/lukalabs/cakechat/issues/1"},"comments":{"href":"https://api.github.com/repos/lukalabs/cakechat/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/lukalabs/cakechat/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/lukalabs/cakechat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lukalabs/cakechat/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/lukalabs/cakechat/statuses/2172c0c1d7c1e79852d06e2718e5a723c706384a"}},"author_association":"NONE"}}
{"actor":{"display_login":"rodart"}}