{"action":"created","comment":{"url":"https://api.github.com/repos/logpai/logparser/pulls/comments/203263712","pull_request_review_id":138117385,"id":203263712,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzI2MzcxMg==","diff_hunk":"@@ -267,11 +278,22 @@ def parse(self, logname):\n             count += 1\r\n             if count % 1000 == 0 or count == len(self.df_log):\r\n                 print 'Processed {0:.1f}% of log lines.'.format(count * 100.0 / len(self.df_log))\r\n-            \r\n+\r\n         if not os.path.exists(self.savePath):\r\n             os.makedirs(self.savePath)\r\n \r\n-        self.outputResult(logCluL)\r\n+        parameter_vectors = []\r\n+        for idx, line in self.df_log.iterrows():\r\n+            logmessageL = filter(lambda x: x != '', re.split(r'[\\s=:,]', self.preprocess(line['Content'])))\r\n+            constLogMessL = [w for w in logmessageL if w != '*']\r\n+            matchCluster = self.PrefixTreeMatch(rootNode, constLogMessL, 0)\r","path":"logparser/Spell/Spell.py","position":70,"original_position":70,"commit_id":"c548952b6889dadd16e80b737c4235f75f959c10","original_commit_id":"c548952b6889dadd16e80b737c4235f75f959c10","user":{"login":"AndyRao","id":3284068,"node_id":"MDQ6VXNlcjMyODQwNjg=","avatar_url":"https://avatars1.githubusercontent.com/u/3284068?v=4","gravatar_id":"","url":"https://api.github.com/users/AndyRao","html_url":"https://github.com/AndyRao","followers_url":"https://api.github.com/users/AndyRao/followers","following_url":"https://api.github.com/users/AndyRao/following{/other_user}","gists_url":"https://api.github.com/users/AndyRao/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyRao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyRao/subscriptions","organizations_url":"https://api.github.com/users/AndyRao/orgs","repos_url":"https://api.github.com/users/AndyRao/repos","events_url":"https://api.github.com/users/AndyRao/events{/privacy}","received_events_url":"https://api.github.com/users/AndyRao/received_events","type":"User","site_admin":false},"body":"This can save the time calling PrefixTreeMatch function again","created_at":"2018-07-18T06:30:02Z","updated_at":"2018-07-18T06:30:02Z","html_url":"https://github.com/logpai/logparser/pull/8#discussion_r203263712","pull_request_url":"https://api.github.com/repos/logpai/logparser/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/logpai/logparser/pulls/comments/203263712"},"html":{"href":"https://github.com/logpai/logparser/pull/8#discussion_r203263712"},"pull_request":{"href":"https://api.github.com/repos/logpai/logparser/pulls/8"}},"in_reply_to_id":203263124},"pull_request":{"url":"https://api.github.com/repos/logpai/logparser/pulls/8","id":202142739,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyMTQyNzM5","html_url":"https://github.com/logpai/logparser/pull/8","diff_url":"https://github.com/logpai/logparser/pull/8.diff","patch_url":"https://github.com/logpai/logparser/pull/8.patch","issue_url":"https://api.github.com/repos/logpai/logparser/issues/8","number":8,"state":"open","locked":false,"title":"[Spell] Support Parameter vector","user":{"login":"OopsOutOfMemory","id":6489401,"node_id":"MDQ6VXNlcjY0ODk0MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/6489401?v=4","gravatar_id":"","url":"https://api.github.com/users/OopsOutOfMemory","html_url":"https://github.com/OopsOutOfMemory","followers_url":"https://api.github.com/users/OopsOutOfMemory/followers","following_url":"https://api.github.com/users/OopsOutOfMemory/following{/other_user}","gists_url":"https://api.github.com/users/OopsOutOfMemory/gists{/gist_id}","starred_url":"https://api.github.com/users/OopsOutOfMemory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OopsOutOfMemory/subscriptions","organizations_url":"https://api.github.com/users/OopsOutOfMemory/orgs","repos_url":"https://api.github.com/users/OopsOutOfMemory/repos","events_url":"https://api.github.com/users/OopsOutOfMemory/events{/privacy}","received_events_url":"https://api.github.com/users/OopsOutOfMemory/received_events","type":"User","site_admin":false},"body":"![image](https://user-images.githubusercontent.com/6489401/42861800-3b38f51a-8a8f-11e8-96a9-7b6ce68868fb.png)\r\n","created_at":"2018-07-18T05:34:15Z","updated_at":"2018-07-18T06:30:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb1d43e20b37c53dcda3b6ae0d162d99415d5512","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/logpai/logparser/pulls/8/commits","review_comments_url":"https://api.github.com/repos/logpai/logparser/pulls/8/comments","review_comment_url":"https://api.github.com/repos/logpai/logparser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/logpai/logparser/issues/8/comments","statuses_url":"https://api.github.com/repos/logpai/logparser/statuses/c548952b6889dadd16e80b737c4235f75f959c10","head":{"label":"OopsOutOfMemory:parameter_vector_support","ref":"parameter_vector_support","sha":"c548952b6889dadd16e80b737c4235f75f959c10","user":{"login":"OopsOutOfMemory","id":6489401,"node_id":"MDQ6VXNlcjY0ODk0MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/6489401?v=4","gravatar_id":"","url":"https://api.github.com/users/OopsOutOfMemory","html_url":"https://github.com/OopsOutOfMemory","followers_url":"https://api.github.com/users/OopsOutOfMemory/followers","following_url":"https://api.github.com/users/OopsOutOfMemory/following{/other_user}","gists_url":"https://api.github.com/users/OopsOutOfMemory/gists{/gist_id}","starred_url":"https://api.github.com/users/OopsOutOfMemory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OopsOutOfMemory/subscriptions","organizations_url":"https://api.github.com/users/OopsOutOfMemory/orgs","repos_url":"https://api.github.com/users/OopsOutOfMemory/repos","events_url":"https://api.github.com/users/OopsOutOfMemory/events{/privacy}","received_events_url":"https://api.github.com/users/OopsOutOfMemory/received_events","type":"User","site_admin":false},"repo":{"id":141223568,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEyMjM1Njg=","name":"logparser","full_name":"OopsOutOfMemory/logparser","owner":{"login":"OopsOutOfMemory","id":6489401,"node_id":"MDQ6VXNlcjY0ODk0MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/6489401?v=4","gravatar_id":"","url":"https://api.github.com/users/OopsOutOfMemory","html_url":"https://github.com/OopsOutOfMemory","followers_url":"https://api.github.com/users/OopsOutOfMemory/followers","following_url":"https://api.github.com/users/OopsOutOfMemory/following{/other_user}","gists_url":"https://api.github.com/users/OopsOutOfMemory/gists{/gist_id}","starred_url":"https://api.github.com/users/OopsOutOfMemory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OopsOutOfMemory/subscriptions","organizations_url":"https://api.github.com/users/OopsOutOfMemory/orgs","repos_url":"https://api.github.com/users/OopsOutOfMemory/repos","events_url":"https://api.github.com/users/OopsOutOfMemory/events{/privacy}","received_events_url":"https://api.github.com/users/OopsOutOfMemory/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OopsOutOfMemory/logparser","description":"A toolkit for automated log parsing ","fork":true,"url":"https://api.github.com/repos/OopsOutOfMemory/logparser","forks_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/forks","keys_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/teams","hooks_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/hooks","issue_events_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/issues/events{/number}","events_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/events","assignees_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/assignees{/user}","branches_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/branches{/branch}","tags_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/tags","blobs_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/git/refs{/sha}","trees_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/statuses/{sha}","languages_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/languages","stargazers_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/stargazers","contributors_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/contributors","subscribers_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/subscribers","subscription_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/subscription","commits_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/commits{/sha}","git_commits_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/git/commits{/sha}","comments_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/comments{/number}","issue_comment_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/issues/comments{/number}","contents_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/contents/{+path}","compare_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/merges","archive_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/downloads","issues_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/issues{/number}","pulls_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/pulls{/number}","milestones_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/milestones{/number}","notifications_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/labels{/name}","releases_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/releases{/id}","deployments_url":"https://api.github.com/repos/OopsOutOfMemory/logparser/deployments","created_at":"2018-07-17T03:01:57Z","updated_at":"2018-07-17T03:01:59Z","pushed_at":"2018-07-18T06:04:46Z","git_url":"git://github.com/OopsOutOfMemory/logparser.git","ssh_url":"git@github.com:OopsOutOfMemory/logparser.git","clone_url":"https://github.com/OopsOutOfMemory/logparser.git","svn_url":"https://github.com/OopsOutOfMemory/logparser","homepage":"https://logparser.readthedocs.io","size":8026,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"logpai:dev","ref":"dev","sha":"6c02fa88714a434b429947af86f8282e211f40f5","user":{"login":"logpai","id":23229062,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjI5MDYy","avatar_url":"https://avatars3.githubusercontent.com/u/23229062?v=4","gravatar_id":"","url":"https://api.github.com/users/logpai","html_url":"https://github.com/logpai","followers_url":"https://api.github.com/users/logpai/followers","following_url":"https://api.github.com/users/logpai/following{/other_user}","gists_url":"https://api.github.com/users/logpai/gists{/gist_id}","starred_url":"https://api.github.com/users/logpai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logpai/subscriptions","organizations_url":"https://api.github.com/users/logpai/orgs","repos_url":"https://api.github.com/users/logpai/repos","events_url":"https://api.github.com/users/logpai/events{/privacy}","received_events_url":"https://api.github.com/users/logpai/received_events","type":"Organization","site_admin":false},"repo":{"id":40241789,"node_id":"MDEwOlJlcG9zaXRvcnk0MDI0MTc4OQ==","name":"logparser","full_name":"logpai/logparser","owner":{"login":"logpai","id":23229062,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjI5MDYy","avatar_url":"https://avatars3.githubusercontent.com/u/23229062?v=4","gravatar_id":"","url":"https://api.github.com/users/logpai","html_url":"https://github.com/logpai","followers_url":"https://api.github.com/users/logpai/followers","following_url":"https://api.github.com/users/logpai/following{/other_user}","gists_url":"https://api.github.com/users/logpai/gists{/gist_id}","starred_url":"https://api.github.com/users/logpai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logpai/subscriptions","organizations_url":"https://api.github.com/users/logpai/orgs","repos_url":"https://api.github.com/users/logpai/repos","events_url":"https://api.github.com/users/logpai/events{/privacy}","received_events_url":"https://api.github.com/users/logpai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/logpai/logparser","description":"A toolkit for automated log parsing ","fork":false,"url":"https://api.github.com/repos/logpai/logparser","forks_url":"https://api.github.com/repos/logpai/logparser/forks","keys_url":"https://api.github.com/repos/logpai/logparser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/logpai/logparser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/logpai/logparser/teams","hooks_url":"https://api.github.com/repos/logpai/logparser/hooks","issue_events_url":"https://api.github.com/repos/logpai/logparser/issues/events{/number}","events_url":"https://api.github.com/repos/logpai/logparser/events","assignees_url":"https://api.github.com/repos/logpai/logparser/assignees{/user}","branches_url":"https://api.github.com/repos/logpai/logparser/branches{/branch}","tags_url":"https://api.github.com/repos/logpai/logparser/tags","blobs_url":"https://api.github.com/repos/logpai/logparser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/logpai/logparser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/logpai/logparser/git/refs{/sha}","trees_url":"https://api.github.com/repos/logpai/logparser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/logpai/logparser/statuses/{sha}","languages_url":"https://api.github.com/repos/logpai/logparser/languages","stargazers_url":"https://api.github.com/repos/logpai/logparser/stargazers","contributors_url":"https://api.github.com/repos/logpai/logparser/contributors","subscribers_url":"https://api.github.com/repos/logpai/logparser/subscribers","subscription_url":"https://api.github.com/repos/logpai/logparser/subscription","commits_url":"https://api.github.com/repos/logpai/logparser/commits{/sha}","git_commits_url":"https://api.github.com/repos/logpai/logparser/git/commits{/sha}","comments_url":"https://api.github.com/repos/logpai/logparser/comments{/number}","issue_comment_url":"https://api.github.com/repos/logpai/logparser/issues/comments{/number}","contents_url":"https://api.github.com/repos/logpai/logparser/contents/{+path}","compare_url":"https://api.github.com/repos/logpai/logparser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/logpai/logparser/merges","archive_url":"https://api.github.com/repos/logpai/logparser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/logpai/logparser/downloads","issues_url":"https://api.github.com/repos/logpai/logparser/issues{/number}","pulls_url":"https://api.github.com/repos/logpai/logparser/pulls{/number}","milestones_url":"https://api.github.com/repos/logpai/logparser/milestones{/number}","notifications_url":"https://api.github.com/repos/logpai/logparser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/logpai/logparser/labels{/name}","releases_url":"https://api.github.com/repos/logpai/logparser/releases{/id}","deployments_url":"https://api.github.com/repos/logpai/logparser/deployments","created_at":"2015-08-05T11:32:39Z","updated_at":"2018-07-17T07:41:07Z","pushed_at":"2018-07-18T06:04:48Z","git_url":"git://github.com/logpai/logparser.git","ssh_url":"git@github.com:logpai/logparser.git","clone_url":"https://github.com/logpai/logparser.git","svn_url":"https://github.com/logpai/logparser","homepage":"https://logparser.readthedocs.io","size":8026,"stargazers_count":66,"watchers_count":66,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":44,"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":44,"open_issues":1,"watchers":66,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/logpai/logparser/pulls/8"},"html":{"href":"https://github.com/logpai/logparser/pull/8"},"issue":{"href":"https://api.github.com/repos/logpai/logparser/issues/8"},"comments":{"href":"https://api.github.com/repos/logpai/logparser/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/logpai/logparser/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/logpai/logparser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/logpai/logparser/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/logpai/logparser/statuses/c548952b6889dadd16e80b737c4235f75f959c10"}},"author_association":"NONE"}}
{"actor":{"display_login":"AndyRao"}}