{"action":"created","comment":{"url":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/comments/62556943","id":62556943,"diff_hunk":"@@ -0,0 +1,82 @@\n+from __future__ import print_function, absolute_import, division\n+\n+import pandas as pd\n+import numpy as np\n+from path_features import compute_angles\n+from detect_noise import detect_noise\n+\n+\n+def smooth_noise(movement, paths, angle_threshold, delta_t):\n+    r\"\"\"\n+    Return a new movement pandas DataFrame object containing\n+    CT, CX, CY coordinates and the homebase status. The points at which\n+    noise, as defined by the input parameters, is detected have been","path":"mousestyles/path_diversity/smooth_noise.py","position":13,"original_position":13,"commit_id":"02f6fa4409a97d5c2c20725fe2874eb299c94eda","original_commit_id":"02f6fa4409a97d5c2c20725fe2874eb299c94eda","user":{"login":"aksam-ahmad","id":14062114,"avatar_url":"https://avatars.githubusercontent.com/u/14062114?v=3","gravatar_id":"","url":"https://api.github.com/users/aksam-ahmad","html_url":"https://github.com/aksam-ahmad","followers_url":"https://api.github.com/users/aksam-ahmad/followers","following_url":"https://api.github.com/users/aksam-ahmad/following{/other_user}","gists_url":"https://api.github.com/users/aksam-ahmad/gists{/gist_id}","starred_url":"https://api.github.com/users/aksam-ahmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aksam-ahmad/subscriptions","organizations_url":"https://api.github.com/users/aksam-ahmad/orgs","repos_url":"https://api.github.com/users/aksam-ahmad/repos","events_url":"https://api.github.com/users/aksam-ahmad/events{/privacy}","received_events_url":"https://api.github.com/users/aksam-ahmad/received_events","type":"User","site_admin":false},"body":"Updated!","created_at":"2016-05-09T19:21:35Z","updated_at":"2016-05-09T19:21:35Z","html_url":"https://github.com/berkeley-stat222/mousestyles/pull/156#discussion_r62556943","pull_request_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/156","_links":{"self":{"href":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/comments/62556943"},"html":{"href":"https://github.com/berkeley-stat222/mousestyles/pull/156#discussion_r62556943"},"pull_request":{"href":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/156"}}},"pull_request":{"url":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/156","id":68773018,"html_url":"https://github.com/berkeley-stat222/mousestyles/pull/156","diff_url":"https://github.com/berkeley-stat222/mousestyles/pull/156.diff","patch_url":"https://github.com/berkeley-stat222/mousestyles/pull/156.patch","issue_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/issues/156","number":156,"state":"open","locked":false,"title":"WIP: Path Diversity Function for Noise Detection","user":{"login":"aksam-ahmad","id":14062114,"avatar_url":"https://avatars.githubusercontent.com/u/14062114?v=3","gravatar_id":"","url":"https://api.github.com/users/aksam-ahmad","html_url":"https://github.com/aksam-ahmad","followers_url":"https://api.github.com/users/aksam-ahmad/followers","following_url":"https://api.github.com/users/aksam-ahmad/following{/other_user}","gists_url":"https://api.github.com/users/aksam-ahmad/gists{/gist_id}","starred_url":"https://api.github.com/users/aksam-ahmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aksam-ahmad/subscriptions","organizations_url":"https://api.github.com/users/aksam-ahmad/orgs","repos_url":"https://api.github.com/users/aksam-ahmad/repos","events_url":"https://api.github.com/users/aksam-ahmad/events{/privacy}","received_events_url":"https://api.github.com/users/aksam-ahmad/received_events","type":"User","site_admin":false},"body":"The purpose of this function is to detect points where noise (defined by consecutive high-turning angles in short periods of time) is measured. \r\n\r\n@togawa28, could you please review?\r\n\r\nA few things to note: \r\n\r\n- The length of the noise output is in line with the total length of the paths as defined by the path_index function (i.e., if you sum over all lengths of the paths as defined by path_index function). This may be an issue. The movement object contains all points recorded, where the path_index function outputs start/end points of defined paths. \r\n- I'm working on ways to make the testing more robust.","created_at":"2016-05-03T20:53:00Z","updated_at":"2016-05-09T19:21:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"150bceda11ff006db436470474a0ea27d773670b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/156/commits","review_comments_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/156/comments","review_comment_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/comments{/number}","comments_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/issues/156/comments","statuses_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/statuses/02f6fa4409a97d5c2c20725fe2874eb299c94eda","head":{"label":"aksam-ahmad:noisedetection-issue#122","ref":"noisedetection-issue#122","sha":"02f6fa4409a97d5c2c20725fe2874eb299c94eda","user":{"login":"aksam-ahmad","id":14062114,"avatar_url":"https://avatars.githubusercontent.com/u/14062114?v=3","gravatar_id":"","url":"https://api.github.com/users/aksam-ahmad","html_url":"https://github.com/aksam-ahmad","followers_url":"https://api.github.com/users/aksam-ahmad/followers","following_url":"https://api.github.com/users/aksam-ahmad/following{/other_user}","gists_url":"https://api.github.com/users/aksam-ahmad/gists{/gist_id}","starred_url":"https://api.github.com/users/aksam-ahmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aksam-ahmad/subscriptions","organizations_url":"https://api.github.com/users/aksam-ahmad/orgs","repos_url":"https://api.github.com/users/aksam-ahmad/repos","events_url":"https://api.github.com/users/aksam-ahmad/events{/privacy}","received_events_url":"https://api.github.com/users/aksam-ahmad/received_events","type":"User","site_admin":false},"repo":{"id":55311384,"name":"mousestyles","full_name":"aksam-ahmad/mousestyles","owner":{"login":"aksam-ahmad","id":14062114,"avatar_url":"https://avatars.githubusercontent.com/u/14062114?v=3","gravatar_id":"","url":"https://api.github.com/users/aksam-ahmad","html_url":"https://github.com/aksam-ahmad","followers_url":"https://api.github.com/users/aksam-ahmad/followers","following_url":"https://api.github.com/users/aksam-ahmad/following{/other_user}","gists_url":"https://api.github.com/users/aksam-ahmad/gists{/gist_id}","starred_url":"https://api.github.com/users/aksam-ahmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aksam-ahmad/subscriptions","organizations_url":"https://api.github.com/users/aksam-ahmad/orgs","repos_url":"https://api.github.com/users/aksam-ahmad/repos","events_url":"https://api.github.com/users/aksam-ahmad/events{/privacy}","received_events_url":"https://api.github.com/users/aksam-ahmad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aksam-ahmad/mousestyles","description":"2016 final project","fork":true,"url":"https://api.github.com/repos/aksam-ahmad/mousestyles","forks_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/forks","keys_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/teams","hooks_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/hooks","issue_events_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/issues/events{/number}","events_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/events","assignees_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/assignees{/user}","branches_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/branches{/branch}","tags_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/tags","blobs_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/git/refs{/sha}","trees_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/statuses/{sha}","languages_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/languages","stargazers_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/stargazers","contributors_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/contributors","subscribers_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/subscribers","subscription_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/subscription","commits_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/commits{/sha}","git_commits_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/git/commits{/sha}","comments_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/comments{/number}","issue_comment_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/issues/comments{/number}","contents_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/contents/{+path}","compare_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/merges","archive_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/downloads","issues_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/issues{/number}","pulls_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/pulls{/number}","milestones_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/milestones{/number}","notifications_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/labels{/name}","releases_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/releases{/id}","deployments_url":"https://api.github.com/repos/aksam-ahmad/mousestyles/deployments","created_at":"2016-04-02T19:01:59Z","updated_at":"2016-04-02T19:02:02Z","pushed_at":"2016-05-08T06:00:53Z","git_url":"git://github.com/aksam-ahmad/mousestyles.git","ssh_url":"git@github.com:aksam-ahmad/mousestyles.git","clone_url":"https://github.com/aksam-ahmad/mousestyles.git","svn_url":"https://github.com/aksam-ahmad/mousestyles","homepage":null,"size":96318,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"berkeley-stat222:master","ref":"master","sha":"4a83e2dddbb63750d5fda889e2b8306ddbb4275c","user":{"login":"berkeley-stat222","id":10637124,"avatar_url":"https://avatars.githubusercontent.com/u/10637124?v=3","gravatar_id":"","url":"https://api.github.com/users/berkeley-stat222","html_url":"https://github.com/berkeley-stat222","followers_url":"https://api.github.com/users/berkeley-stat222/followers","following_url":"https://api.github.com/users/berkeley-stat222/following{/other_user}","gists_url":"https://api.github.com/users/berkeley-stat222/gists{/gist_id}","starred_url":"https://api.github.com/users/berkeley-stat222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berkeley-stat222/subscriptions","organizations_url":"https://api.github.com/users/berkeley-stat222/orgs","repos_url":"https://api.github.com/users/berkeley-stat222/repos","events_url":"https://api.github.com/users/berkeley-stat222/events{/privacy}","received_events_url":"https://api.github.com/users/berkeley-stat222/received_events","type":"Organization","site_admin":false},"repo":{"id":53807239,"name":"mousestyles","full_name":"berkeley-stat222/mousestyles","owner":{"login":"berkeley-stat222","id":10637124,"avatar_url":"https://avatars.githubusercontent.com/u/10637124?v=3","gravatar_id":"","url":"https://api.github.com/users/berkeley-stat222","html_url":"https://github.com/berkeley-stat222","followers_url":"https://api.github.com/users/berkeley-stat222/followers","following_url":"https://api.github.com/users/berkeley-stat222/following{/other_user}","gists_url":"https://api.github.com/users/berkeley-stat222/gists{/gist_id}","starred_url":"https://api.github.com/users/berkeley-stat222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berkeley-stat222/subscriptions","organizations_url":"https://api.github.com/users/berkeley-stat222/orgs","repos_url":"https://api.github.com/users/berkeley-stat222/repos","events_url":"https://api.github.com/users/berkeley-stat222/events{/privacy}","received_events_url":"https://api.github.com/users/berkeley-stat222/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/berkeley-stat222/mousestyles","description":"2016 final project","fork":false,"url":"https://api.github.com/repos/berkeley-stat222/mousestyles","forks_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/forks","keys_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/teams","hooks_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/hooks","issue_events_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/issues/events{/number}","events_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/events","assignees_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/assignees{/user}","branches_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/branches{/branch}","tags_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/tags","blobs_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/git/refs{/sha}","trees_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/statuses/{sha}","languages_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/languages","stargazers_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/stargazers","contributors_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/contributors","subscribers_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/subscribers","subscription_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/subscription","commits_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/commits{/sha}","git_commits_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/git/commits{/sha}","comments_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/comments{/number}","issue_comment_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/issues/comments{/number}","contents_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/contents/{+path}","compare_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/merges","archive_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/downloads","issues_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/issues{/number}","pulls_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls{/number}","milestones_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/milestones{/number}","notifications_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/labels{/name}","releases_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/releases{/id}","deployments_url":"https://api.github.com/repos/berkeley-stat222/mousestyles/deployments","created_at":"2016-03-13T20:55:24Z","updated_at":"2016-05-03T20:55:44Z","pushed_at":"2016-05-09T19:07:18Z","git_url":"git://github.com/berkeley-stat222/mousestyles.git","ssh_url":"git@github.com:berkeley-stat222/mousestyles.git","clone_url":"https://github.com/berkeley-stat222/mousestyles.git","svn_url":"https://github.com/berkeley-stat222/mousestyles","homepage":"http://berkeley-stat222.github.io/mousestyles/","size":98643,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":35,"mirror_url":null,"open_issues_count":35,"forks":35,"open_issues":35,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/156"},"html":{"href":"https://github.com/berkeley-stat222/mousestyles/pull/156"},"issue":{"href":"https://api.github.com/repos/berkeley-stat222/mousestyles/issues/156"},"comments":{"href":"https://api.github.com/repos/berkeley-stat222/mousestyles/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/berkeley-stat222/mousestyles/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/berkeley-stat222/mousestyles/statuses/02f6fa4409a97d5c2c20725fe2874eb299c94eda"}}}}