{"action":"created","comment":{"url":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/comments/64443844","id":64443844,"diff_hunk":"@@ -0,0 +1,81 @@\n+from collections import OrderedDict\n+from queue import Queue\n+import os\n+\n+\n+class Node:\n+    \"\"\"\n+    Node class that defines an individual node.\n+    \"\"\"\n+\n+    def __init__(self, path):\n+        self.child = {}\n+        self.parent = None\n+        self.path = path\n+        self.abspath = \"\"\n+        self._id = id(self)\n+\n+\n+class Tree:\n+\n+    def __init__(self, file_list):\n+        \"\"\"\n+        Create a root and build the graph.\n+        \"\"\"\n+        self.root = Node(os.path.commonprefix(file_list))","path":"coalahtml/tree.py","position":25,"original_position":25,"commit_id":"5b50775a35145780712ec7ebe58b4f6c903eb1fb","original_commit_id":"1141f2923903e149ebe7d8d95c3a220e62a965f4","user":{"login":"Uran198","id":3969221,"avatar_url":"https://avatars.githubusercontent.com/u/3969221?v=3","gravatar_id":"","url":"https://api.github.com/users/Uran198","html_url":"https://github.com/Uran198","followers_url":"https://api.github.com/users/Uran198/followers","following_url":"https://api.github.com/users/Uran198/following{/other_user}","gists_url":"https://api.github.com/users/Uran198/gists{/gist_id}","starred_url":"https://api.github.com/users/Uran198/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uran198/subscriptions","organizations_url":"https://api.github.com/users/Uran198/orgs","repos_url":"https://api.github.com/users/Uran198/repos","events_url":"https://api.github.com/users/Uran198/events{/privacy}","received_events_url":"https://api.github.com/users/Uran198/received_events","type":"User","site_admin":false},"body":"You can get here wrong path. Consider:\r\n```\r\n        \"/home/tushar/coala-html/A1_tests\",\r\n        \"/home/tushar/coala-html/A1_coalahtml\",\r\n        \"/home/tushar/coala-html/A1_tests/specs/directives/\",\r\n        \"/home/tushar/coala-html/A1_setup.py\",\r\n        \"/home/tushar/coala-html/A1_tests/TestUtilities.py\",\r\n```\r\n`self.root.path == /home/tushar/coala-html/A1_`","created_at":"2016-05-24T18:03:31Z","updated_at":"2016-05-24T18:03:31Z","html_url":"https://github.com/coala-analyzer/coala-html/pull/46#discussion_r64443844","pull_request_url":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/comments/64443844"},"html":{"href":"https://github.com/coala-analyzer/coala-html/pull/46#discussion_r64443844"},"pull_request":{"href":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/46","id":70120561,"html_url":"https://github.com/coala-analyzer/coala-html/pull/46","diff_url":"https://github.com/coala-analyzer/coala-html/pull/46.diff","patch_url":"https://github.com/coala-analyzer/coala-html/pull/46.patch","issue_url":"https://api.github.com/repos/coala-analyzer/coala-html/issues/46","number":46,"state":"open","locked":false,"title":"coala_html.py: Create python package from angular","user":{"login":"tushar-rishav","id":7397433,"avatar_url":"https://avatars.githubusercontent.com/u/7397433?v=3","gravatar_id":"","url":"https://api.github.com/users/tushar-rishav","html_url":"https://github.com/tushar-rishav","followers_url":"https://api.github.com/users/tushar-rishav/followers","following_url":"https://api.github.com/users/tushar-rishav/following{/other_user}","gists_url":"https://api.github.com/users/tushar-rishav/gists{/gist_id}","starred_url":"https://api.github.com/users/tushar-rishav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tushar-rishav/subscriptions","organizations_url":"https://api.github.com/users/tushar-rishav/orgs","repos_url":"https://api.github.com/users/tushar-rishav/repos","events_url":"https://api.github.com/users/tushar-rishav/events{/privacy}","received_events_url":"https://api.github.com/users/tushar-rishav/received_events","type":"User","site_admin":false},"body":"This commit wraps the angular app within a standalone\r\nPython package. Functionalities implemented with present\r\nversion are:\r\n1. Create necessary `data` files like files.json, coala.json\r\n   etc. and launch the server.\r\n2. User can run coala and has an option to either launch the\r\n   server or just update the data files.\r\n3. Static dependencies are being fetched from bower. If\r\n   bower isn't installed then user gets a info to install bower\r\n   first and then try again.\r\n4. `files.json` has been implemented using data obtained from\r\n   `file_dict` which coala returns post analysis.\r\n\r\nFixes https://github.com/coala-analyzer/coala-html/issues/31,\r\nhttps://github.com/coala-analyzer/coala-html/issues/43\r\n\r\nCC @Uran198 ","created_at":"2016-05-15T12:57:08Z","updated_at":"2016-05-24T18:03:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78f9423c95855720509ff38b401c355adbbb5e41","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/46/commits","review_comments_url":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/46/comments","review_comment_url":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala-analyzer/coala-html/issues/46/comments","statuses_url":"https://api.github.com/repos/coala-analyzer/coala-html/statuses/5b50775a35145780712ec7ebe58b4f6c903eb1fb","head":{"label":"coala-analyzer:tushar-rishav","ref":"tushar-rishav","sha":"5b50775a35145780712ec7ebe58b4f6c903eb1fb","user":{"login":"coala-analyzer","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala-analyzer","html_url":"https://github.com/coala-analyzer","followers_url":"https://api.github.com/users/coala-analyzer/followers","following_url":"https://api.github.com/users/coala-analyzer/following{/other_user}","gists_url":"https://api.github.com/users/coala-analyzer/gists{/gist_id}","starred_url":"https://api.github.com/users/coala-analyzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala-analyzer/subscriptions","organizations_url":"https://api.github.com/users/coala-analyzer/orgs","repos_url":"https://api.github.com/users/coala-analyzer/repos","events_url":"https://api.github.com/users/coala-analyzer/events{/privacy}","received_events_url":"https://api.github.com/users/coala-analyzer/received_events","type":"Organization","site_admin":false},"repo":{"id":51780179,"name":"coala-html","full_name":"coala-analyzer/coala-html","owner":{"login":"coala-analyzer","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala-analyzer","html_url":"https://github.com/coala-analyzer","followers_url":"https://api.github.com/users/coala-analyzer/followers","following_url":"https://api.github.com/users/coala-analyzer/following{/other_user}","gists_url":"https://api.github.com/users/coala-analyzer/gists{/gist_id}","starred_url":"https://api.github.com/users/coala-analyzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala-analyzer/subscriptions","organizations_url":"https://api.github.com/users/coala-analyzer/orgs","repos_url":"https://api.github.com/users/coala-analyzer/repos","events_url":"https://api.github.com/users/coala-analyzer/events{/privacy}","received_events_url":"https://api.github.com/users/coala-analyzer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala-analyzer/coala-html","description":"A website generator using results from coala","fork":false,"url":"https://api.github.com/repos/coala-analyzer/coala-html","forks_url":"https://api.github.com/repos/coala-analyzer/coala-html/forks","keys_url":"https://api.github.com/repos/coala-analyzer/coala-html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala-analyzer/coala-html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala-analyzer/coala-html/teams","hooks_url":"https://api.github.com/repos/coala-analyzer/coala-html/hooks","issue_events_url":"https://api.github.com/repos/coala-analyzer/coala-html/issues/events{/number}","events_url":"https://api.github.com/repos/coala-analyzer/coala-html/events","assignees_url":"https://api.github.com/repos/coala-analyzer/coala-html/assignees{/user}","branches_url":"https://api.github.com/repos/coala-analyzer/coala-html/branches{/branch}","tags_url":"https://api.github.com/repos/coala-analyzer/coala-html/tags","blobs_url":"https://api.github.com/repos/coala-analyzer/coala-html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala-analyzer/coala-html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala-analyzer/coala-html/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala-analyzer/coala-html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala-analyzer/coala-html/statuses/{sha}","languages_url":"https://api.github.com/repos/coala-analyzer/coala-html/languages","stargazers_url":"https://api.github.com/repos/coala-analyzer/coala-html/stargazers","contributors_url":"https://api.github.com/repos/coala-analyzer/coala-html/contributors","subscribers_url":"https://api.github.com/repos/coala-analyzer/coala-html/subscribers","subscription_url":"https://api.github.com/repos/coala-analyzer/coala-html/subscription","commits_url":"https://api.github.com/repos/coala-analyzer/coala-html/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala-analyzer/coala-html/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala-analyzer/coala-html/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala-analyzer/coala-html/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala-analyzer/coala-html/contents/{+path}","compare_url":"https://api.github.com/repos/coala-analyzer/coala-html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala-analyzer/coala-html/merges","archive_url":"https://api.github.com/repos/coala-analyzer/coala-html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala-analyzer/coala-html/downloads","issues_url":"https://api.github.com/repos/coala-analyzer/coala-html/issues{/number}","pulls_url":"https://api.github.com/repos/coala-analyzer/coala-html/pulls{/number}","milestones_url":"https://api.github.com/repos/coala-analyzer/coala-html/milestones{/number}","notifications_url":"https://api.github.com/repos/coala-analyzer/coala-html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala-analyzer/coala-html/labels{/name}","releases_url":"https://api.github.com/repos/coala-analyzer/coala-html/releases{/id}","deployments_url":"https://api.github.com/repos/coala-analyzer/coala-html/deployments","created_at":"2016-02-15T19:36:06Z","updated_at":"2016-03-30T17:38:21Z","pushed_at":"2016-05-24T14:41:48Z","git_url":"git://github.com/coala-analyzer/coala-html.git","ssh_url":"git@github.com:coala-analyzer/coala-html.git","clone_url":"https://github.com/coala-analyzer/coala-html.git","svn_url":"https://github.com/coala-analyzer/coala-html","homepage":"","size":1491,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":16,"forks":7,"open_issues":16,"watchers":4,"default_branch":"master"}},"base":{"label":"coala-analyzer:master","ref":"master","sha":"69f1027f7378aff094b68747f8c55194a0013474","user":{"login":"coala-analyzer","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala-analyzer","html_url":"https://github.com/coala-analyzer","followers_url":"https://api.github.com/users/coala-analyzer/followers","following_url":"https://api.github.com/users/coala-analyzer/following{/other_user}","gists_url":"https://api.github.com/users/coala-analyzer/gists{/gist_id}","starred_url":"https://api.github.com/users/coala-analyzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala-analyzer/subscriptions","organizations_url":"https://api.github.com/users/coala-analyzer/orgs","repos_url":"https://api.github.com/users/coala-analyzer/repos","events_url":"https://api.github.com/users/coala-analyzer/events{/privacy}","received_events_url":"https://api.github.com/users/coala-analyzer/received_events","type":"Organization","site_admin":false},"repo":{"id":51780179,"name":"coala-html","full_name":"coala-analyzer/coala-html","owner":{"login":"coala-analyzer","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala-analyzer","html_url":"https://github.com/coala-analyzer","followers_url":"https://api.github.com/users/coala-analyzer/followers","following_url":"https://api.github.com/users/coala-analyzer/following{/other_user}","gists_url":"https://api.github.com/users/coala-analyzer/gists{/gist_id}","starred_url":"https://api.github.com/users/coala-analyzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala-analyzer/subscriptions","organizations_url":"https://api.github.com/users/coala-analyzer/orgs","repos_url":"https://api.github.com/users/coala-analyzer/repos","events_url":"https://api.github.com/users/coala-analyzer/events{/privacy}","received_events_url":"https://api.github.com/users/coala-analyzer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala-analyzer/coala-html","description":"A website generator using results from coala","fork":false,"url":"https://api.github.com/repos/coala-analyzer/coala-html","forks_url":"https://api.github.com/repos/coala-analyzer/coala-html/forks","keys_url":"https://api.github.com/repos/coala-analyzer/coala-html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala-analyzer/coala-html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala-analyzer/coala-html/teams","hooks_url":"https://api.github.com/repos/coala-analyzer/coala-html/hooks","issue_events_url":"https://api.github.com/repos/coala-analyzer/coala-html/issues/events{/number}","events_url":"https://api.github.com/repos/coala-analyzer/coala-html/events","assignees_url":"https://api.github.com/repos/coala-analyzer/coala-html/assignees{/user}","branches_url":"https://api.github.com/repos/coala-analyzer/coala-html/branches{/branch}","tags_url":"https://api.github.com/repos/coala-analyzer/coala-html/tags","blobs_url":"https://api.github.com/repos/coala-analyzer/coala-html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala-analyzer/coala-html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala-analyzer/coala-html/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala-analyzer/coala-html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala-analyzer/coala-html/statuses/{sha}","languages_url":"https://api.github.com/repos/coala-analyzer/coala-html/languages","stargazers_url":"https://api.github.com/repos/coala-analyzer/coala-html/stargazers","contributors_url":"https://api.github.com/repos/coala-analyzer/coala-html/contributors","subscribers_url":"https://api.github.com/repos/coala-analyzer/coala-html/subscribers","subscription_url":"https://api.github.com/repos/coala-analyzer/coala-html/subscription","commits_url":"https://api.github.com/repos/coala-analyzer/coala-html/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala-analyzer/coala-html/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala-analyzer/coala-html/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala-analyzer/coala-html/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala-analyzer/coala-html/contents/{+path}","compare_url":"https://api.github.com/repos/coala-analyzer/coala-html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala-analyzer/coala-html/merges","archive_url":"https://api.github.com/repos/coala-analyzer/coala-html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala-analyzer/coala-html/downloads","issues_url":"https://api.github.com/repos/coala-analyzer/coala-html/issues{/number}","pulls_url":"https://api.github.com/repos/coala-analyzer/coala-html/pulls{/number}","milestones_url":"https://api.github.com/repos/coala-analyzer/coala-html/milestones{/number}","notifications_url":"https://api.github.com/repos/coala-analyzer/coala-html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala-analyzer/coala-html/labels{/name}","releases_url":"https://api.github.com/repos/coala-analyzer/coala-html/releases{/id}","deployments_url":"https://api.github.com/repos/coala-analyzer/coala-html/deployments","created_at":"2016-02-15T19:36:06Z","updated_at":"2016-03-30T17:38:21Z","pushed_at":"2016-05-24T14:41:48Z","git_url":"git://github.com/coala-analyzer/coala-html.git","ssh_url":"git@github.com:coala-analyzer/coala-html.git","clone_url":"https://github.com/coala-analyzer/coala-html.git","svn_url":"https://github.com/coala-analyzer/coala-html","homepage":"","size":1491,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":16,"forks":7,"open_issues":16,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/46"},"html":{"href":"https://github.com/coala-analyzer/coala-html/pull/46"},"issue":{"href":"https://api.github.com/repos/coala-analyzer/coala-html/issues/46"},"comments":{"href":"https://api.github.com/repos/coala-analyzer/coala-html/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala-analyzer/coala-html/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/coala-analyzer/coala-html/statuses/5b50775a35145780712ec7ebe58b4f6c903eb1fb"}}}}
{"actor":{"display_login":"Uran198"}}