{"action":"created","comment":{"url":"https://api.github.com/repos/numenta/nupic/pulls/comments/25799358","id":25799358,"diff_hunk":"@@ -32,9 +32,9 @@\n import json\n import os\n import math\n+from pkg_resources import resource_filename","path":"examples/network/hierarchy_network_demo.py","position":4,"original_position":4,"commit_id":"a0688914ca83234ed8df38e9780234faa9791fe6","original_commit_id":"a0688914ca83234ed8df38e9780234faa9791fe6","user":{"login":"scottpurdy","id":239726,"avatar_url":"https://avatars.githubusercontent.com/u/239726?v=3","gravatar_id":"","url":"https://api.github.com/users/scottpurdy","html_url":"https://github.com/scottpurdy","followers_url":"https://api.github.com/users/scottpurdy/followers","following_url":"https://api.github.com/users/scottpurdy/following{/other_user}","gists_url":"https://api.github.com/users/scottpurdy/gists{/gist_id}","starred_url":"https://api.github.com/users/scottpurdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottpurdy/subscriptions","organizations_url":"https://api.github.com/users/scottpurdy/orgs","repos_url":"https://api.github.com/users/scottpurdy/repos","events_url":"https://api.github.com/users/scottpurdy/events{/privacy}","received_events_url":"https://api.github.com/users/scottpurdy/received_events","type":"User","site_admin":false},"body":"nit: put blank line before pkg_resources, it is a third-party lib","created_at":"2015-03-04T18:30:07Z","updated_at":"2015-03-04T18:30:07Z","html_url":"https://github.com/numenta/nupic/pull/1902#discussion_r25799358","pull_request_url":"https://api.github.com/repos/numenta/nupic/pulls/1902","_links":{"self":{"href":"https://api.github.com/repos/numenta/nupic/pulls/comments/25799358"},"html":{"href":"https://github.com/numenta/nupic/pull/1902#discussion_r25799358"},"pull_request":{"href":"https://api.github.com/repos/numenta/nupic/pulls/1902"}}},"pull_request":{"url":"https://api.github.com/repos/numenta/nupic/pulls/1902","id":30426725,"html_url":"https://github.com/numenta/nupic/pull/1902","diff_url":"https://github.com/numenta/nupic/pull/1902.diff","patch_url":"https://github.com/numenta/nupic/pull/1902.patch","issue_url":"https://api.github.com/repos/numenta/nupic/issues/1902","number":1902,"state":"open","locked":false,"title":"Replaces datasethelpers with pkg_resources.","user":{"login":"rhyolight","id":15566,"avatar_url":"https://avatars.githubusercontent.com/u/15566?v=3","gravatar_id":"","url":"https://api.github.com/users/rhyolight","html_url":"https://github.com/rhyolight","followers_url":"https://api.github.com/users/rhyolight/followers","following_url":"https://api.github.com/users/rhyolight/following{/other_user}","gists_url":"https://api.github.com/users/rhyolight/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyolight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyolight/subscriptions","organizations_url":"https://api.github.com/users/rhyolight/orgs","repos_url":"https://api.github.com/users/rhyolight/repos","events_url":"https://api.github.com/users/rhyolight/events{/privacy}","received_events_url":"https://api.github.com/users/rhyolight/received_events","type":"User","site_admin":false},"body":"Fixes #1899\r\n\r\n- Added example data location to setup.py as package data.\r\n- Added example/prediction/data files to MANIFEST.\r\n- Updated tests to use pkg_resources to fetch data files.\r\n- Updated example code to fetch data through pkg_resources.\r\n- Used pkg_resources to load files in nupic.data code.\r\n- Removing datasethelpers and tests.\r\n- Updated tests to write data files into examples/prediction/data.\r\n- Updated experiment runner to resolve paths better.\r\n    - The experiment stream source could be an absolute path or a\r\n      path relative to the \"examples.prediction.data\" pkg_resource.  Updated its logic to identify absolute paths and convert relative paths through pkg_resources.\r\n    - Updated swarming test configuration.\r\n        - A bunch of the swarming test configurations were expecting datasethelpers to find the input file on a search path that doesn't exist anymore. I solved this by:\r\n            - moving test_data.csv from tests/swarming/nupic/swarming/data into the package_data directory in the \"swarming\" folder\r\n            - adding \\_\\_init\\_\\_.py to the swarming folder mentioned above\r\n            - updating ModelRunner to call normalizeStreamSources(), which now does the pkg_resoruces lookup\r\n            - updating all the description files to refer to \"swarming/test_data.csv\"","created_at":"2015-03-04T00:14:42Z","updated_at":"2015-03-04T18:30:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8af17e55a5a3f1c07535d6ed757232d70a8040e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/numenta/nupic/pulls/1902/commits","review_comments_url":"https://api.github.com/repos/numenta/nupic/pulls/1902/comments","review_comment_url":"https://api.github.com/repos/numenta/nupic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/numenta/nupic/issues/1902/comments","statuses_url":"https://api.github.com/repos/numenta/nupic/statuses/a0688914ca83234ed8df38e9780234faa9791fe6","head":{"label":"rhyolight:standard-example-data3","ref":"standard-example-data3","sha":"a0688914ca83234ed8df38e9780234faa9791fe6","user":{"login":"rhyolight","id":15566,"avatar_url":"https://avatars.githubusercontent.com/u/15566?v=3","gravatar_id":"","url":"https://api.github.com/users/rhyolight","html_url":"https://github.com/rhyolight","followers_url":"https://api.github.com/users/rhyolight/followers","following_url":"https://api.github.com/users/rhyolight/following{/other_user}","gists_url":"https://api.github.com/users/rhyolight/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyolight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyolight/subscriptions","organizations_url":"https://api.github.com/users/rhyolight/orgs","repos_url":"https://api.github.com/users/rhyolight/repos","events_url":"https://api.github.com/users/rhyolight/events{/privacy}","received_events_url":"https://api.github.com/users/rhyolight/received_events","type":"User","site_admin":false},"repo":{"id":10489159,"name":"nupic","full_name":"rhyolight/nupic","owner":{"login":"rhyolight","id":15566,"avatar_url":"https://avatars.githubusercontent.com/u/15566?v=3","gravatar_id":"","url":"https://api.github.com/users/rhyolight","html_url":"https://github.com/rhyolight","followers_url":"https://api.github.com/users/rhyolight/followers","following_url":"https://api.github.com/users/rhyolight/following{/other_user}","gists_url":"https://api.github.com/users/rhyolight/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyolight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyolight/subscriptions","organizations_url":"https://api.github.com/users/rhyolight/orgs","repos_url":"https://api.github.com/users/rhyolight/repos","events_url":"https://api.github.com/users/rhyolight/events{/privacy}","received_events_url":"https://api.github.com/users/rhyolight/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rhyolight/nupic","description":"","fork":true,"url":"https://api.github.com/repos/rhyolight/nupic","forks_url":"https://api.github.com/repos/rhyolight/nupic/forks","keys_url":"https://api.github.com/repos/rhyolight/nupic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhyolight/nupic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhyolight/nupic/teams","hooks_url":"https://api.github.com/repos/rhyolight/nupic/hooks","issue_events_url":"https://api.github.com/repos/rhyolight/nupic/issues/events{/number}","events_url":"https://api.github.com/repos/rhyolight/nupic/events","assignees_url":"https://api.github.com/repos/rhyolight/nupic/assignees{/user}","branches_url":"https://api.github.com/repos/rhyolight/nupic/branches{/branch}","tags_url":"https://api.github.com/repos/rhyolight/nupic/tags","blobs_url":"https://api.github.com/repos/rhyolight/nupic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhyolight/nupic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhyolight/nupic/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhyolight/nupic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhyolight/nupic/statuses/{sha}","languages_url":"https://api.github.com/repos/rhyolight/nupic/languages","stargazers_url":"https://api.github.com/repos/rhyolight/nupic/stargazers","contributors_url":"https://api.github.com/repos/rhyolight/nupic/contributors","subscribers_url":"https://api.github.com/repos/rhyolight/nupic/subscribers","subscription_url":"https://api.github.com/repos/rhyolight/nupic/subscription","commits_url":"https://api.github.com/repos/rhyolight/nupic/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhyolight/nupic/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhyolight/nupic/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhyolight/nupic/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhyolight/nupic/contents/{+path}","compare_url":"https://api.github.com/repos/rhyolight/nupic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhyolight/nupic/merges","archive_url":"https://api.github.com/repos/rhyolight/nupic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhyolight/nupic/downloads","issues_url":"https://api.github.com/repos/rhyolight/nupic/issues{/number}","pulls_url":"https://api.github.com/repos/rhyolight/nupic/pulls{/number}","milestones_url":"https://api.github.com/repos/rhyolight/nupic/milestones{/number}","notifications_url":"https://api.github.com/repos/rhyolight/nupic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhyolight/nupic/labels{/name}","releases_url":"https://api.github.com/repos/rhyolight/nupic/releases{/id}","created_at":"2013-06-04T21:22:07Z","updated_at":"2015-01-08T21:04:50Z","pushed_at":"2015-03-04T00:15:42Z","git_url":"git://github.com/rhyolight/nupic.git","ssh_url":"git@github.com:rhyolight/nupic.git","clone_url":"https://github.com/rhyolight/nupic.git","svn_url":"https://github.com/rhyolight/nupic","homepage":null,"size":221371,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"numenta:master","ref":"master","sha":"b5c206008af87822f82d65678e4f86a9fc741640","user":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=3","gravatar_id":"","url":"https://api.github.com/users/numenta","html_url":"https://github.com/numenta","followers_url":"https://api.github.com/users/numenta/followers","following_url":"https://api.github.com/users/numenta/following{/other_user}","gists_url":"https://api.github.com/users/numenta/gists{/gist_id}","starred_url":"https://api.github.com/users/numenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numenta/subscriptions","organizations_url":"https://api.github.com/users/numenta/orgs","repos_url":"https://api.github.com/users/numenta/repos","events_url":"https://api.github.com/users/numenta/events{/privacy}","received_events_url":"https://api.github.com/users/numenta/received_events","type":"Organization","site_admin":false},"repo":{"id":9252533,"name":"nupic","full_name":"numenta/nupic","owner":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=3","gravatar_id":"","url":"https://api.github.com/users/numenta","html_url":"https://github.com/numenta","followers_url":"https://api.github.com/users/numenta/followers","following_url":"https://api.github.com/users/numenta/following{/other_user}","gists_url":"https://api.github.com/users/numenta/gists{/gist_id}","starred_url":"https://api.github.com/users/numenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numenta/subscriptions","organizations_url":"https://api.github.com/users/numenta/orgs","repos_url":"https://api.github.com/users/numenta/repos","events_url":"https://api.github.com/users/numenta/events{/privacy}","received_events_url":"https://api.github.com/users/numenta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/numenta/nupic","description":"Numenta Platform for Intelligent Computing: a brain-inspired machine intelligence platform, and biologically accurate neural network based on cortical learning algorithms.","fork":false,"url":"https://api.github.com/repos/numenta/nupic","forks_url":"https://api.github.com/repos/numenta/nupic/forks","keys_url":"https://api.github.com/repos/numenta/nupic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numenta/nupic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numenta/nupic/teams","hooks_url":"https://api.github.com/repos/numenta/nupic/hooks","issue_events_url":"https://api.github.com/repos/numenta/nupic/issues/events{/number}","events_url":"https://api.github.com/repos/numenta/nupic/events","assignees_url":"https://api.github.com/repos/numenta/nupic/assignees{/user}","branches_url":"https://api.github.com/repos/numenta/nupic/branches{/branch}","tags_url":"https://api.github.com/repos/numenta/nupic/tags","blobs_url":"https://api.github.com/repos/numenta/nupic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numenta/nupic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numenta/nupic/git/refs{/sha}","trees_url":"https://api.github.com/repos/numenta/nupic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numenta/nupic/statuses/{sha}","languages_url":"https://api.github.com/repos/numenta/nupic/languages","stargazers_url":"https://api.github.com/repos/numenta/nupic/stargazers","contributors_url":"https://api.github.com/repos/numenta/nupic/contributors","subscribers_url":"https://api.github.com/repos/numenta/nupic/subscribers","subscription_url":"https://api.github.com/repos/numenta/nupic/subscription","commits_url":"https://api.github.com/repos/numenta/nupic/commits{/sha}","git_commits_url":"https://api.github.com/repos/numenta/nupic/git/commits{/sha}","comments_url":"https://api.github.com/repos/numenta/nupic/comments{/number}","issue_comment_url":"https://api.github.com/repos/numenta/nupic/issues/comments{/number}","contents_url":"https://api.github.com/repos/numenta/nupic/contents/{+path}","compare_url":"https://api.github.com/repos/numenta/nupic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numenta/nupic/merges","archive_url":"https://api.github.com/repos/numenta/nupic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numenta/nupic/downloads","issues_url":"https://api.github.com/repos/numenta/nupic/issues{/number}","pulls_url":"https://api.github.com/repos/numenta/nupic/pulls{/number}","milestones_url":"https://api.github.com/repos/numenta/nupic/milestones{/number}","notifications_url":"https://api.github.com/repos/numenta/nupic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numenta/nupic/labels{/name}","releases_url":"https://api.github.com/repos/numenta/nupic/releases{/id}","created_at":"2013-04-05T23:14:27Z","updated_at":"2015-03-04T13:40:36Z","pushed_at":"2015-03-04T00:43:41Z","git_url":"git://github.com/numenta/nupic.git","ssh_url":"git@github.com:numenta/nupic.git","clone_url":"https://github.com/numenta/nupic.git","svn_url":"https://github.com/numenta/nupic","homepage":"http://numenta.org/","size":299935,"stargazers_count":2829,"watchers_count":2829,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":731,"mirror_url":null,"open_issues_count":308,"forks":731,"open_issues":308,"watchers":2829,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numenta/nupic/pulls/1902"},"html":{"href":"https://github.com/numenta/nupic/pull/1902"},"issue":{"href":"https://api.github.com/repos/numenta/nupic/issues/1902"},"comments":{"href":"https://api.github.com/repos/numenta/nupic/issues/1902/comments"},"review_comments":{"href":"https://api.github.com/repos/numenta/nupic/pulls/1902/comments"},"review_comment":{"href":"https://api.github.com/repos/numenta/nupic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/numenta/nupic/pulls/1902/commits"},"statuses":{"href":"https://api.github.com/repos/numenta/nupic/statuses/a0688914ca83234ed8df38e9780234faa9791fe6"}}}}