{"action":"created","comment":{"url":"https://api.github.com/repos/Yoctol/strpipe/pulls/comments/223273321","pull_request_review_id":162357478,"id":223273321,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzI3MzMyMQ==","diff_hunk":"@@ -0,0 +1,37 @@\n+import pprint\n+\n+\n+class Intermediate:\n+\n+    def __init__(self):\n+        self.reset()\n+\n+    def set_index(self, index: int):\n+        self._pointed_indices.append(index)\n+\n+    def reset(self):\n+        self._interm_data = []\n+        self._pointed_indices = []\n+        self._ind = 0\n+\n+    def cond_add(self, data):\n+        if self._ind in self._pointed_indices:\n+            self._interm_data.append(data)\n+        self._ind += 1","path":"strpipe/ intermediate.py","position":20,"original_position":20,"commit_id":"a26c8a1a19ecaa22db0c2e2f1d3b66bf1803a823","original_commit_id":"a26c8a1a19ecaa22db0c2e2f1d3b66bf1803a823","user":{"login":"stegben","id":6868283,"node_id":"MDQ6VXNlcjY4NjgyODM=","avatar_url":"https://avatars3.githubusercontent.com/u/6868283?v=4","gravatar_id":"","url":"https://api.github.com/users/stegben","html_url":"https://github.com/stegben","followers_url":"https://api.github.com/users/stegben/followers","following_url":"https://api.github.com/users/stegben/following{/other_user}","gists_url":"https://api.github.com/users/stegben/gists{/gist_id}","starred_url":"https://api.github.com/users/stegben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stegben/subscriptions","organizations_url":"https://api.github.com/users/stegben/orgs","repos_url":"https://api.github.com/users/stegben/repos","events_url":"https://api.github.com/users/stegben/events{/privacy}","received_events_url":"https://api.github.com/users/stegben/received_events","type":"User","site_admin":false},"body":"這個 method 太過 stateful ，如果把 ind 傳進去呢？","created_at":"2018-10-08T07:51:41Z","updated_at":"2018-10-08T07:51:45Z","html_url":"https://github.com/Yoctol/strpipe/pull/56#discussion_r223273321","pull_request_url":"https://api.github.com/repos/Yoctol/strpipe/pulls/56","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Yoctol/strpipe/pulls/comments/223273321"},"html":{"href":"https://github.com/Yoctol/strpipe/pull/56#discussion_r223273321"},"pull_request":{"href":"https://api.github.com/repos/Yoctol/strpipe/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/Yoctol/strpipe/pulls/56","id":221001300,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxMDAxMzAw","html_url":"https://github.com/Yoctol/strpipe/pull/56","diff_url":"https://github.com/Yoctol/strpipe/pull/56.diff","patch_url":"https://github.com/Yoctol/strpipe/pull/56.patch","issue_url":"https://api.github.com/repos/Yoctol/strpipe/issues/56","number":56,"state":"open","locked":false,"title":"TxInfoCollection","user":{"login":"SoluMilken","id":19161836,"node_id":"MDQ6VXNlcjE5MTYxODM2","avatar_url":"https://avatars1.githubusercontent.com/u/19161836?v=4","gravatar_id":"","url":"https://api.github.com/users/SoluMilken","html_url":"https://github.com/SoluMilken","followers_url":"https://api.github.com/users/SoluMilken/followers","following_url":"https://api.github.com/users/SoluMilken/following{/other_user}","gists_url":"https://api.github.com/users/SoluMilken/gists{/gist_id}","starred_url":"https://api.github.com/users/SoluMilken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoluMilken/subscriptions","organizations_url":"https://api.github.com/users/SoluMilken/orgs","repos_url":"https://api.github.com/users/SoluMilken/repos","events_url":"https://api.github.com/users/SoluMilken/events{/privacy}","received_events_url":"https://api.github.com/users/SoluMilken/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-08T04:28:30Z","updated_at":"2018-10-08T07:51:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"912df7cfeed84a65f9d289fd3ff057ff8a0a4ff9","assignee":null,"assignees":[],"requested_reviewers":[{"login":"GBLin5566","id":7339902,"node_id":"MDQ6VXNlcjczMzk5MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/7339902?v=4","gravatar_id":"","url":"https://api.github.com/users/GBLin5566","html_url":"https://github.com/GBLin5566","followers_url":"https://api.github.com/users/GBLin5566/followers","following_url":"https://api.github.com/users/GBLin5566/following{/other_user}","gists_url":"https://api.github.com/users/GBLin5566/gists{/gist_id}","starred_url":"https://api.github.com/users/GBLin5566/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GBLin5566/subscriptions","organizations_url":"https://api.github.com/users/GBLin5566/orgs","repos_url":"https://api.github.com/users/GBLin5566/repos","events_url":"https://api.github.com/users/GBLin5566/events{/privacy}","received_events_url":"https://api.github.com/users/GBLin5566/received_events","type":"User","site_admin":false},{"login":"noobOriented","id":14981698,"node_id":"MDQ6VXNlcjE0OTgxNjk4","avatar_url":"https://avatars2.githubusercontent.com/u/14981698?v=4","gravatar_id":"","url":"https://api.github.com/users/noobOriented","html_url":"https://github.com/noobOriented","followers_url":"https://api.github.com/users/noobOriented/followers","following_url":"https://api.github.com/users/noobOriented/following{/other_user}","gists_url":"https://api.github.com/users/noobOriented/gists{/gist_id}","starred_url":"https://api.github.com/users/noobOriented/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noobOriented/subscriptions","organizations_url":"https://api.github.com/users/noobOriented/orgs","repos_url":"https://api.github.com/users/noobOriented/repos","events_url":"https://api.github.com/users/noobOriented/events{/privacy}","received_events_url":"https://api.github.com/users/noobOriented/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1045119946,"node_id":"MDU6TGFiZWwxMDQ1MTE5OTQ2","url":"https://api.github.com/repos/Yoctol/strpipe/labels/discuss","name":"discuss","color":"ca16f7","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Yoctol/strpipe/pulls/56/commits","review_comments_url":"https://api.github.com/repos/Yoctol/strpipe/pulls/56/comments","review_comment_url":"https://api.github.com/repos/Yoctol/strpipe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yoctol/strpipe/issues/56/comments","statuses_url":"https://api.github.com/repos/Yoctol/strpipe/statuses/a26c8a1a19ecaa22db0c2e2f1d3b66bf1803a823","head":{"label":"Yoctol:tx_info","ref":"tx_info","sha":"a26c8a1a19ecaa22db0c2e2f1d3b66bf1803a823","user":{"login":"Yoctol","id":10671553,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjcxNTUz","avatar_url":"https://avatars3.githubusercontent.com/u/10671553?v=4","gravatar_id":"","url":"https://api.github.com/users/Yoctol","html_url":"https://github.com/Yoctol","followers_url":"https://api.github.com/users/Yoctol/followers","following_url":"https://api.github.com/users/Yoctol/following{/other_user}","gists_url":"https://api.github.com/users/Yoctol/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoctol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoctol/subscriptions","organizations_url":"https://api.github.com/users/Yoctol/orgs","repos_url":"https://api.github.com/users/Yoctol/repos","events_url":"https://api.github.com/users/Yoctol/events{/privacy}","received_events_url":"https://api.github.com/users/Yoctol/received_events","type":"Organization","site_admin":false},"repo":{"id":145549389,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU1NDkzODk=","name":"strpipe","full_name":"Yoctol/strpipe","private":false,"owner":{"login":"Yoctol","id":10671553,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjcxNTUz","avatar_url":"https://avatars3.githubusercontent.com/u/10671553?v=4","gravatar_id":"","url":"https://api.github.com/users/Yoctol","html_url":"https://github.com/Yoctol","followers_url":"https://api.github.com/users/Yoctol/followers","following_url":"https://api.github.com/users/Yoctol/following{/other_user}","gists_url":"https://api.github.com/users/Yoctol/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoctol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoctol/subscriptions","organizations_url":"https://api.github.com/users/Yoctol/orgs","repos_url":"https://api.github.com/users/Yoctol/repos","events_url":"https://api.github.com/users/Yoctol/events{/privacy}","received_events_url":"https://api.github.com/users/Yoctol/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Yoctol/strpipe","description":"text preprocessing pipeline","fork":false,"url":"https://api.github.com/repos/Yoctol/strpipe","forks_url":"https://api.github.com/repos/Yoctol/strpipe/forks","keys_url":"https://api.github.com/repos/Yoctol/strpipe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yoctol/strpipe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yoctol/strpipe/teams","hooks_url":"https://api.github.com/repos/Yoctol/strpipe/hooks","issue_events_url":"https://api.github.com/repos/Yoctol/strpipe/issues/events{/number}","events_url":"https://api.github.com/repos/Yoctol/strpipe/events","assignees_url":"https://api.github.com/repos/Yoctol/strpipe/assignees{/user}","branches_url":"https://api.github.com/repos/Yoctol/strpipe/branches{/branch}","tags_url":"https://api.github.com/repos/Yoctol/strpipe/tags","blobs_url":"https://api.github.com/repos/Yoctol/strpipe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yoctol/strpipe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yoctol/strpipe/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yoctol/strpipe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yoctol/strpipe/statuses/{sha}","languages_url":"https://api.github.com/repos/Yoctol/strpipe/languages","stargazers_url":"https://api.github.com/repos/Yoctol/strpipe/stargazers","contributors_url":"https://api.github.com/repos/Yoctol/strpipe/contributors","subscribers_url":"https://api.github.com/repos/Yoctol/strpipe/subscribers","subscription_url":"https://api.github.com/repos/Yoctol/strpipe/subscription","commits_url":"https://api.github.com/repos/Yoctol/strpipe/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yoctol/strpipe/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yoctol/strpipe/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yoctol/strpipe/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yoctol/strpipe/contents/{+path}","compare_url":"https://api.github.com/repos/Yoctol/strpipe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yoctol/strpipe/merges","archive_url":"https://api.github.com/repos/Yoctol/strpipe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yoctol/strpipe/downloads","issues_url":"https://api.github.com/repos/Yoctol/strpipe/issues{/number}","pulls_url":"https://api.github.com/repos/Yoctol/strpipe/pulls{/number}","milestones_url":"https://api.github.com/repos/Yoctol/strpipe/milestones{/number}","notifications_url":"https://api.github.com/repos/Yoctol/strpipe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yoctol/strpipe/labels{/name}","releases_url":"https://api.github.com/repos/Yoctol/strpipe/releases{/id}","deployments_url":"https://api.github.com/repos/Yoctol/strpipe/deployments","created_at":"2018-08-21T10:37:42Z","updated_at":"2018-10-02T03:33:35Z","pushed_at":"2018-10-08T07:42:34Z","git_url":"git://github.com/Yoctol/strpipe.git","ssh_url":"git@github.com:Yoctol/strpipe.git","clone_url":"https://github.com/Yoctol/strpipe.git","svn_url":"https://github.com/Yoctol/strpipe","homepage":"","size":508,"stargazers_count":0,"watchers_count":0,"language":"Python","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":11,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"Yoctol:master","ref":"master","sha":"80d325f7b74bb7082f9a2eb93b75bc789eda61b0","user":{"login":"Yoctol","id":10671553,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjcxNTUz","avatar_url":"https://avatars3.githubusercontent.com/u/10671553?v=4","gravatar_id":"","url":"https://api.github.com/users/Yoctol","html_url":"https://github.com/Yoctol","followers_url":"https://api.github.com/users/Yoctol/followers","following_url":"https://api.github.com/users/Yoctol/following{/other_user}","gists_url":"https://api.github.com/users/Yoctol/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoctol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoctol/subscriptions","organizations_url":"https://api.github.com/users/Yoctol/orgs","repos_url":"https://api.github.com/users/Yoctol/repos","events_url":"https://api.github.com/users/Yoctol/events{/privacy}","received_events_url":"https://api.github.com/users/Yoctol/received_events","type":"Organization","site_admin":false},"repo":{"id":145549389,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU1NDkzODk=","name":"strpipe","full_name":"Yoctol/strpipe","private":false,"owner":{"login":"Yoctol","id":10671553,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjcxNTUz","avatar_url":"https://avatars3.githubusercontent.com/u/10671553?v=4","gravatar_id":"","url":"https://api.github.com/users/Yoctol","html_url":"https://github.com/Yoctol","followers_url":"https://api.github.com/users/Yoctol/followers","following_url":"https://api.github.com/users/Yoctol/following{/other_user}","gists_url":"https://api.github.com/users/Yoctol/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoctol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoctol/subscriptions","organizations_url":"https://api.github.com/users/Yoctol/orgs","repos_url":"https://api.github.com/users/Yoctol/repos","events_url":"https://api.github.com/users/Yoctol/events{/privacy}","received_events_url":"https://api.github.com/users/Yoctol/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Yoctol/strpipe","description":"text preprocessing pipeline","fork":false,"url":"https://api.github.com/repos/Yoctol/strpipe","forks_url":"https://api.github.com/repos/Yoctol/strpipe/forks","keys_url":"https://api.github.com/repos/Yoctol/strpipe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yoctol/strpipe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yoctol/strpipe/teams","hooks_url":"https://api.github.com/repos/Yoctol/strpipe/hooks","issue_events_url":"https://api.github.com/repos/Yoctol/strpipe/issues/events{/number}","events_url":"https://api.github.com/repos/Yoctol/strpipe/events","assignees_url":"https://api.github.com/repos/Yoctol/strpipe/assignees{/user}","branches_url":"https://api.github.com/repos/Yoctol/strpipe/branches{/branch}","tags_url":"https://api.github.com/repos/Yoctol/strpipe/tags","blobs_url":"https://api.github.com/repos/Yoctol/strpipe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yoctol/strpipe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yoctol/strpipe/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yoctol/strpipe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yoctol/strpipe/statuses/{sha}","languages_url":"https://api.github.com/repos/Yoctol/strpipe/languages","stargazers_url":"https://api.github.com/repos/Yoctol/strpipe/stargazers","contributors_url":"https://api.github.com/repos/Yoctol/strpipe/contributors","subscribers_url":"https://api.github.com/repos/Yoctol/strpipe/subscribers","subscription_url":"https://api.github.com/repos/Yoctol/strpipe/subscription","commits_url":"https://api.github.com/repos/Yoctol/strpipe/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yoctol/strpipe/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yoctol/strpipe/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yoctol/strpipe/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yoctol/strpipe/contents/{+path}","compare_url":"https://api.github.com/repos/Yoctol/strpipe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yoctol/strpipe/merges","archive_url":"https://api.github.com/repos/Yoctol/strpipe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yoctol/strpipe/downloads","issues_url":"https://api.github.com/repos/Yoctol/strpipe/issues{/number}","pulls_url":"https://api.github.com/repos/Yoctol/strpipe/pulls{/number}","milestones_url":"https://api.github.com/repos/Yoctol/strpipe/milestones{/number}","notifications_url":"https://api.github.com/repos/Yoctol/strpipe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yoctol/strpipe/labels{/name}","releases_url":"https://api.github.com/repos/Yoctol/strpipe/releases{/id}","deployments_url":"https://api.github.com/repos/Yoctol/strpipe/deployments","created_at":"2018-08-21T10:37:42Z","updated_at":"2018-10-02T03:33:35Z","pushed_at":"2018-10-08T07:42:34Z","git_url":"git://github.com/Yoctol/strpipe.git","ssh_url":"git@github.com:Yoctol/strpipe.git","clone_url":"https://github.com/Yoctol/strpipe.git","svn_url":"https://github.com/Yoctol/strpipe","homepage":"","size":508,"stargazers_count":0,"watchers_count":0,"language":"Python","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":11,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yoctol/strpipe/pulls/56"},"html":{"href":"https://github.com/Yoctol/strpipe/pull/56"},"issue":{"href":"https://api.github.com/repos/Yoctol/strpipe/issues/56"},"comments":{"href":"https://api.github.com/repos/Yoctol/strpipe/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/Yoctol/strpipe/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/Yoctol/strpipe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yoctol/strpipe/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/Yoctol/strpipe/statuses/a26c8a1a19ecaa22db0c2e2f1d3b66bf1803a823"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"stegben"}}