{"action":"created","comment":{"url":"https://api.github.com/repos/PuzaTech/Fugue/pulls/comments/55800217","id":55800217,"diff_hunk":"@@ -0,0 +1,72 @@\n+import argparse\n+import sys\n+import subprocess\n+\n+class ProfileParam:\n+    def __init__(self):\n+        self._inputFile = 'input.db'\n+        self._modelFile = 'model.db'\n+        self._task = 'train'\n+        self._topics = 100\n+        self._iters = 1000\n+        self._topk = 100000\n+        self._LDASampler = 'binary'\n+        self._random = 'deterministic'\n+        self._exp = 0\n+        self._log = 0\n+        self._saveModel = 1\n+\n+    def getParams(self):\n+        return_args = []\n+        for key, value in self.__dict__.iteritems():\n+            paramName = key.replace('_', '-')\n+            return_args.append(paramName)\n+            return_args.append(str(value))\n+        return return_args\n+\n+class ProfileAP(ProfileParam, object):\n+    def __init__(self):\n+        super(ProfileAP, self).__init__()\n+        self._inputFile = 'examples/data/ap.json'\n+        self._modelFile = 'examples/models/model.ap.json'\n+        self._LDASampler = 'binary'\n+        self._random = 'deterministic'\n+\n+\n+class cmdBuilder:","path":"Fugue.py","position":36,"original_position":36,"commit_id":"1db1573fee5ada127521faf752e99527d581512f","original_commit_id":"1db1573fee5ada127521faf752e99527d581512f","user":{"login":"hongliangjie","id":679051,"avatar_url":"https://avatars.githubusercontent.com/u/679051?v=3","gravatar_id":"","url":"https://api.github.com/users/hongliangjie","html_url":"https://github.com/hongliangjie","followers_url":"https://api.github.com/users/hongliangjie/followers","following_url":"https://api.github.com/users/hongliangjie/following{/other_user}","gists_url":"https://api.github.com/users/hongliangjie/gists{/gist_id}","starred_url":"https://api.github.com/users/hongliangjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongliangjie/subscriptions","organizations_url":"https://api.github.com/users/hongliangjie/orgs","repos_url":"https://api.github.com/users/hongliangjie/repos","events_url":"https://api.github.com/users/hongliangjie/events{/privacy}","received_events_url":"https://api.github.com/users/hongliangjie/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Old-style class defined.](https://www.codacy.com/app/hongliangjie/Fugue/file/2219349967/issues/source?bid=3162994&fileBranchId=3172800#l36)","created_at":"2016-03-11T08:05:37Z","updated_at":"2016-03-11T08:05:37Z","html_url":"https://github.com/PuzaTech/Fugue/pull/65#discussion_r55800217","pull_request_url":"https://api.github.com/repos/PuzaTech/Fugue/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/PuzaTech/Fugue/pulls/comments/55800217"},"html":{"href":"https://github.com/PuzaTech/Fugue/pull/65#discussion_r55800217"},"pull_request":{"href":"https://api.github.com/repos/PuzaTech/Fugue/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/PuzaTech/Fugue/pulls/65","id":62505192,"html_url":"https://github.com/PuzaTech/Fugue/pull/65","diff_url":"https://github.com/PuzaTech/Fugue/pull/65.diff","patch_url":"https://github.com/PuzaTech/Fugue/pull/65.patch","issue_url":"https://api.github.com/repos/PuzaTech/Fugue/issues/65","number":65,"state":"open","locked":false,"title":"Add Python launch script support","user":{"login":"hongliangjie","id":679051,"avatar_url":"https://avatars.githubusercontent.com/u/679051?v=3","gravatar_id":"","url":"https://api.github.com/users/hongliangjie","html_url":"https://github.com/hongliangjie","followers_url":"https://api.github.com/users/hongliangjie/followers","following_url":"https://api.github.com/users/hongliangjie/following{/other_user}","gists_url":"https://api.github.com/users/hongliangjie/gists{/gist_id}","starred_url":"https://api.github.com/users/hongliangjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongliangjie/subscriptions","organizations_url":"https://api.github.com/users/hongliangjie/orgs","repos_url":"https://api.github.com/users/hongliangjie/repos","events_url":"https://api.github.com/users/hongliangjie/events{/privacy}","received_events_url":"https://api.github.com/users/hongliangjie/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-11T07:04:00Z","updated_at":"2016-03-11T08:05:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"400ec52ce9aee7d7c6f334f43c94b0ec5c37ad45","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PuzaTech/Fugue/pulls/65/commits","review_comments_url":"https://api.github.com/repos/PuzaTech/Fugue/pulls/65/comments","review_comment_url":"https://api.github.com/repos/PuzaTech/Fugue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PuzaTech/Fugue/issues/65/comments","statuses_url":"https://api.github.com/repos/PuzaTech/Fugue/statuses/1db1573fee5ada127521faf752e99527d581512f","head":{"label":"PuzaTech:py_script","ref":"py_script","sha":"1db1573fee5ada127521faf752e99527d581512f","user":{"login":"PuzaTech","id":17636849,"avatar_url":"https://avatars.githubusercontent.com/u/17636849?v=3","gravatar_id":"","url":"https://api.github.com/users/PuzaTech","html_url":"https://github.com/PuzaTech","followers_url":"https://api.github.com/users/PuzaTech/followers","following_url":"https://api.github.com/users/PuzaTech/following{/other_user}","gists_url":"https://api.github.com/users/PuzaTech/gists{/gist_id}","starred_url":"https://api.github.com/users/PuzaTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PuzaTech/subscriptions","organizations_url":"https://api.github.com/users/PuzaTech/orgs","repos_url":"https://api.github.com/users/PuzaTech/repos","events_url":"https://api.github.com/users/PuzaTech/events{/privacy}","received_events_url":"https://api.github.com/users/PuzaTech/received_events","type":"Organization","site_admin":false},"repo":{"id":52705186,"name":"Fugue","full_name":"PuzaTech/Fugue","owner":{"login":"PuzaTech","id":17636849,"avatar_url":"https://avatars.githubusercontent.com/u/17636849?v=3","gravatar_id":"","url":"https://api.github.com/users/PuzaTech","html_url":"https://github.com/PuzaTech","followers_url":"https://api.github.com/users/PuzaTech/followers","following_url":"https://api.github.com/users/PuzaTech/following{/other_user}","gists_url":"https://api.github.com/users/PuzaTech/gists{/gist_id}","starred_url":"https://api.github.com/users/PuzaTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PuzaTech/subscriptions","organizations_url":"https://api.github.com/users/PuzaTech/orgs","repos_url":"https://api.github.com/users/PuzaTech/repos","events_url":"https://api.github.com/users/PuzaTech/events{/privacy}","received_events_url":"https://api.github.com/users/PuzaTech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PuzaTech/Fugue","description":"A research package for topic modeling","fork":false,"url":"https://api.github.com/repos/PuzaTech/Fugue","forks_url":"https://api.github.com/repos/PuzaTech/Fugue/forks","keys_url":"https://api.github.com/repos/PuzaTech/Fugue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PuzaTech/Fugue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PuzaTech/Fugue/teams","hooks_url":"https://api.github.com/repos/PuzaTech/Fugue/hooks","issue_events_url":"https://api.github.com/repos/PuzaTech/Fugue/issues/events{/number}","events_url":"https://api.github.com/repos/PuzaTech/Fugue/events","assignees_url":"https://api.github.com/repos/PuzaTech/Fugue/assignees{/user}","branches_url":"https://api.github.com/repos/PuzaTech/Fugue/branches{/branch}","tags_url":"https://api.github.com/repos/PuzaTech/Fugue/tags","blobs_url":"https://api.github.com/repos/PuzaTech/Fugue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PuzaTech/Fugue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PuzaTech/Fugue/git/refs{/sha}","trees_url":"https://api.github.com/repos/PuzaTech/Fugue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PuzaTech/Fugue/statuses/{sha}","languages_url":"https://api.github.com/repos/PuzaTech/Fugue/languages","stargazers_url":"https://api.github.com/repos/PuzaTech/Fugue/stargazers","contributors_url":"https://api.github.com/repos/PuzaTech/Fugue/contributors","subscribers_url":"https://api.github.com/repos/PuzaTech/Fugue/subscribers","subscription_url":"https://api.github.com/repos/PuzaTech/Fugue/subscription","commits_url":"https://api.github.com/repos/PuzaTech/Fugue/commits{/sha}","git_commits_url":"https://api.github.com/repos/PuzaTech/Fugue/git/commits{/sha}","comments_url":"https://api.github.com/repos/PuzaTech/Fugue/comments{/number}","issue_comment_url":"https://api.github.com/repos/PuzaTech/Fugue/issues/comments{/number}","contents_url":"https://api.github.com/repos/PuzaTech/Fugue/contents/{+path}","compare_url":"https://api.github.com/repos/PuzaTech/Fugue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PuzaTech/Fugue/merges","archive_url":"https://api.github.com/repos/PuzaTech/Fugue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PuzaTech/Fugue/downloads","issues_url":"https://api.github.com/repos/PuzaTech/Fugue/issues{/number}","pulls_url":"https://api.github.com/repos/PuzaTech/Fugue/pulls{/number}","milestones_url":"https://api.github.com/repos/PuzaTech/Fugue/milestones{/number}","notifications_url":"https://api.github.com/repos/PuzaTech/Fugue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PuzaTech/Fugue/labels{/name}","releases_url":"https://api.github.com/repos/PuzaTech/Fugue/releases{/id}","deployments_url":"https://api.github.com/repos/PuzaTech/Fugue/deployments","created_at":"2016-02-28T04:49:33Z","updated_at":"2016-03-05T06:03:01Z","pushed_at":"2016-03-11T07:04:01Z","git_url":"git://github.com/PuzaTech/Fugue.git","ssh_url":"git@github.com:PuzaTech/Fugue.git","clone_url":"https://github.com/PuzaTech/Fugue.git","svn_url":"https://github.com/PuzaTech/Fugue","homepage":"http://puzatech.github.io/Fugue/","size":5047,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":23,"forks":1,"open_issues":23,"watchers":0,"default_branch":"master"}},"base":{"label":"PuzaTech:master","ref":"master","sha":"403f351387952e14fc95d2fd7c2d300d16e122b9","user":{"login":"PuzaTech","id":17636849,"avatar_url":"https://avatars.githubusercontent.com/u/17636849?v=3","gravatar_id":"","url":"https://api.github.com/users/PuzaTech","html_url":"https://github.com/PuzaTech","followers_url":"https://api.github.com/users/PuzaTech/followers","following_url":"https://api.github.com/users/PuzaTech/following{/other_user}","gists_url":"https://api.github.com/users/PuzaTech/gists{/gist_id}","starred_url":"https://api.github.com/users/PuzaTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PuzaTech/subscriptions","organizations_url":"https://api.github.com/users/PuzaTech/orgs","repos_url":"https://api.github.com/users/PuzaTech/repos","events_url":"https://api.github.com/users/PuzaTech/events{/privacy}","received_events_url":"https://api.github.com/users/PuzaTech/received_events","type":"Organization","site_admin":false},"repo":{"id":52705186,"name":"Fugue","full_name":"PuzaTech/Fugue","owner":{"login":"PuzaTech","id":17636849,"avatar_url":"https://avatars.githubusercontent.com/u/17636849?v=3","gravatar_id":"","url":"https://api.github.com/users/PuzaTech","html_url":"https://github.com/PuzaTech","followers_url":"https://api.github.com/users/PuzaTech/followers","following_url":"https://api.github.com/users/PuzaTech/following{/other_user}","gists_url":"https://api.github.com/users/PuzaTech/gists{/gist_id}","starred_url":"https://api.github.com/users/PuzaTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PuzaTech/subscriptions","organizations_url":"https://api.github.com/users/PuzaTech/orgs","repos_url":"https://api.github.com/users/PuzaTech/repos","events_url":"https://api.github.com/users/PuzaTech/events{/privacy}","received_events_url":"https://api.github.com/users/PuzaTech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PuzaTech/Fugue","description":"A research package for topic modeling","fork":false,"url":"https://api.github.com/repos/PuzaTech/Fugue","forks_url":"https://api.github.com/repos/PuzaTech/Fugue/forks","keys_url":"https://api.github.com/repos/PuzaTech/Fugue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PuzaTech/Fugue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PuzaTech/Fugue/teams","hooks_url":"https://api.github.com/repos/PuzaTech/Fugue/hooks","issue_events_url":"https://api.github.com/repos/PuzaTech/Fugue/issues/events{/number}","events_url":"https://api.github.com/repos/PuzaTech/Fugue/events","assignees_url":"https://api.github.com/repos/PuzaTech/Fugue/assignees{/user}","branches_url":"https://api.github.com/repos/PuzaTech/Fugue/branches{/branch}","tags_url":"https://api.github.com/repos/PuzaTech/Fugue/tags","blobs_url":"https://api.github.com/repos/PuzaTech/Fugue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PuzaTech/Fugue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PuzaTech/Fugue/git/refs{/sha}","trees_url":"https://api.github.com/repos/PuzaTech/Fugue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PuzaTech/Fugue/statuses/{sha}","languages_url":"https://api.github.com/repos/PuzaTech/Fugue/languages","stargazers_url":"https://api.github.com/repos/PuzaTech/Fugue/stargazers","contributors_url":"https://api.github.com/repos/PuzaTech/Fugue/contributors","subscribers_url":"https://api.github.com/repos/PuzaTech/Fugue/subscribers","subscription_url":"https://api.github.com/repos/PuzaTech/Fugue/subscription","commits_url":"https://api.github.com/repos/PuzaTech/Fugue/commits{/sha}","git_commits_url":"https://api.github.com/repos/PuzaTech/Fugue/git/commits{/sha}","comments_url":"https://api.github.com/repos/PuzaTech/Fugue/comments{/number}","issue_comment_url":"https://api.github.com/repos/PuzaTech/Fugue/issues/comments{/number}","contents_url":"https://api.github.com/repos/PuzaTech/Fugue/contents/{+path}","compare_url":"https://api.github.com/repos/PuzaTech/Fugue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PuzaTech/Fugue/merges","archive_url":"https://api.github.com/repos/PuzaTech/Fugue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PuzaTech/Fugue/downloads","issues_url":"https://api.github.com/repos/PuzaTech/Fugue/issues{/number}","pulls_url":"https://api.github.com/repos/PuzaTech/Fugue/pulls{/number}","milestones_url":"https://api.github.com/repos/PuzaTech/Fugue/milestones{/number}","notifications_url":"https://api.github.com/repos/PuzaTech/Fugue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PuzaTech/Fugue/labels{/name}","releases_url":"https://api.github.com/repos/PuzaTech/Fugue/releases{/id}","deployments_url":"https://api.github.com/repos/PuzaTech/Fugue/deployments","created_at":"2016-02-28T04:49:33Z","updated_at":"2016-03-05T06:03:01Z","pushed_at":"2016-03-11T07:04:01Z","git_url":"git://github.com/PuzaTech/Fugue.git","ssh_url":"git@github.com:PuzaTech/Fugue.git","clone_url":"https://github.com/PuzaTech/Fugue.git","svn_url":"https://github.com/PuzaTech/Fugue","homepage":"http://puzatech.github.io/Fugue/","size":5047,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":23,"forks":1,"open_issues":23,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PuzaTech/Fugue/pulls/65"},"html":{"href":"https://github.com/PuzaTech/Fugue/pull/65"},"issue":{"href":"https://api.github.com/repos/PuzaTech/Fugue/issues/65"},"comments":{"href":"https://api.github.com/repos/PuzaTech/Fugue/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/PuzaTech/Fugue/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/PuzaTech/Fugue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PuzaTech/Fugue/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/PuzaTech/Fugue/statuses/1db1573fee5ada127521faf752e99527d581512f"}}}}