{"action":"created","comment":{"url":"https://api.github.com/repos/hastic/hastic-server/pulls/comments/232751461","pull_request_review_id":174017874,"id":232751461,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjc1MTQ2MQ==","diff_hunk":"@@ -250,3 +250,19 @@ def best_pat(pat_list, data, dir):\n                     ind = i\n         new_pat_list.append(ind)\n     return new_pat_list\n+\n+def nan_checker(segment):\n+    nan_list = np.isnan(segment)\n+    nan_count = 0\n+    nan_indexes = []\n+    for i, val in enumerate(nan_list):\n+        if val:\n+            nan_count += 1\n+            nan_indexes.append(i)\n+    return nan_count / len(segment), nan_indexes\n+\n+def nan_for_zero(segment, nan_list):","path":"analytics/analytics/utils/common.py","position":15,"original_position":15,"commit_id":"448fc306aa84e2d3584ac2196b968d4fdb888444","original_commit_id":"448fc306aa84e2d3584ac2196b968d4fdb888444","user":{"login":"rozetko","id":1989898,"node_id":"MDQ6VXNlcjE5ODk4OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/1989898?v=4","gravatar_id":"","url":"https://api.github.com/users/rozetko","html_url":"https://github.com/rozetko","followers_url":"https://api.github.com/users/rozetko/followers","following_url":"https://api.github.com/users/rozetko/following{/other_user}","gists_url":"https://api.github.com/users/rozetko/gists{/gist_id}","starred_url":"https://api.github.com/users/rozetko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rozetko/subscriptions","organizations_url":"https://api.github.com/users/rozetko/orgs","repos_url":"https://api.github.com/users/rozetko/repos","events_url":"https://api.github.com/users/rozetko/events{/privacy}","received_events_url":"https://api.github.com/users/rozetko/received_events","type":"User","site_admin":false},"body":"```suggestion\r\ndef nan_to_zero(segment, nan_list):\r\n```","created_at":"2018-11-12T17:40:37Z","updated_at":"2018-11-12T17:40:37Z","html_url":"https://github.com/hastic/hastic-server/pull/236#discussion_r232751461","pull_request_url":"https://api.github.com/repos/hastic/hastic-server/pulls/236","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/hastic/hastic-server/pulls/comments/232751461"},"html":{"href":"https://github.com/hastic/hastic-server/pull/236#discussion_r232751461"},"pull_request":{"href":"https://api.github.com/repos/hastic/hastic-server/pulls/236"}}},"pull_request":{"url":"https://api.github.com/repos/hastic/hastic-server/pulls/236","id":229975655,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5OTc1NjU1","html_url":"https://github.com/hastic/hastic-server/pull/236","diff_url":"https://github.com/hastic/hastic-server/pull/236.diff","patch_url":"https://github.com/hastic/hastic-server/pull/236.patch","issue_url":"https://api.github.com/repos/hastic/hastic-server/issues/236","number":236,"state":"open","locked":false,"title":"Proccesing for nan values #231","user":{"login":"VargBurz","id":39257464,"node_id":"MDQ6VXNlcjM5MjU3NDY0","avatar_url":"https://avatars0.githubusercontent.com/u/39257464?v=4","gravatar_id":"","url":"https://api.github.com/users/VargBurz","html_url":"https://github.com/VargBurz","followers_url":"https://api.github.com/users/VargBurz/followers","following_url":"https://api.github.com/users/VargBurz/following{/other_user}","gists_url":"https://api.github.com/users/VargBurz/gists{/gist_id}","starred_url":"https://api.github.com/users/VargBurz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VargBurz/subscriptions","organizations_url":"https://api.github.com/users/VargBurz/orgs","repos_url":"https://api.github.com/users/VargBurz/repos","events_url":"https://api.github.com/users/VargBurz/events{/privacy}","received_events_url":"https://api.github.com/users/VargBurz/received_events","type":"User","site_admin":false},"body":"close #231 ","created_at":"2018-11-11T20:23:56Z","updated_at":"2018-11-12T17:40:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d91b25e4d0cfc2c889d41320a0cbfb41e618b34","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hastic/hastic-server/pulls/236/commits","review_comments_url":"https://api.github.com/repos/hastic/hastic-server/pulls/236/comments","review_comment_url":"https://api.github.com/repos/hastic/hastic-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hastic/hastic-server/issues/236/comments","statuses_url":"https://api.github.com/repos/hastic/hastic-server/statuses/448fc306aa84e2d3584ac2196b968d4fdb888444","head":{"label":"hastic:proccesing-for-nan-values-#231","ref":"proccesing-for-nan-values-#231","sha":"448fc306aa84e2d3584ac2196b968d4fdb888444","user":{"login":"hastic","id":39477570,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NDc3NTcw","avatar_url":"https://avatars0.githubusercontent.com/u/39477570?v=4","gravatar_id":"","url":"https://api.github.com/users/hastic","html_url":"https://github.com/hastic","followers_url":"https://api.github.com/users/hastic/followers","following_url":"https://api.github.com/users/hastic/following{/other_user}","gists_url":"https://api.github.com/users/hastic/gists{/gist_id}","starred_url":"https://api.github.com/users/hastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hastic/subscriptions","organizations_url":"https://api.github.com/users/hastic/orgs","repos_url":"https://api.github.com/users/hastic/repos","events_url":"https://api.github.com/users/hastic/events{/privacy}","received_events_url":"https://api.github.com/users/hastic/received_events","type":"Organization","site_admin":false},"repo":{"id":134279309,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyNzkzMDk=","name":"hastic-server","full_name":"hastic/hastic-server","private":false,"owner":{"login":"hastic","id":39477570,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NDc3NTcw","avatar_url":"https://avatars0.githubusercontent.com/u/39477570?v=4","gravatar_id":"","url":"https://api.github.com/users/hastic","html_url":"https://github.com/hastic","followers_url":"https://api.github.com/users/hastic/followers","following_url":"https://api.github.com/users/hastic/following{/other_user}","gists_url":"https://api.github.com/users/hastic/gists{/gist_id}","starred_url":"https://api.github.com/users/hastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hastic/subscriptions","organizations_url":"https://api.github.com/users/hastic/orgs","repos_url":"https://api.github.com/users/hastic/repos","events_url":"https://api.github.com/users/hastic/events{/privacy}","received_events_url":"https://api.github.com/users/hastic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hastic/hastic-server","description":"Server for managing data for analytics ","fork":false,"url":"https://api.github.com/repos/hastic/hastic-server","forks_url":"https://api.github.com/repos/hastic/hastic-server/forks","keys_url":"https://api.github.com/repos/hastic/hastic-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hastic/hastic-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hastic/hastic-server/teams","hooks_url":"https://api.github.com/repos/hastic/hastic-server/hooks","issue_events_url":"https://api.github.com/repos/hastic/hastic-server/issues/events{/number}","events_url":"https://api.github.com/repos/hastic/hastic-server/events","assignees_url":"https://api.github.com/repos/hastic/hastic-server/assignees{/user}","branches_url":"https://api.github.com/repos/hastic/hastic-server/branches{/branch}","tags_url":"https://api.github.com/repos/hastic/hastic-server/tags","blobs_url":"https://api.github.com/repos/hastic/hastic-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hastic/hastic-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hastic/hastic-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/hastic/hastic-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hastic/hastic-server/statuses/{sha}","languages_url":"https://api.github.com/repos/hastic/hastic-server/languages","stargazers_url":"https://api.github.com/repos/hastic/hastic-server/stargazers","contributors_url":"https://api.github.com/repos/hastic/hastic-server/contributors","subscribers_url":"https://api.github.com/repos/hastic/hastic-server/subscribers","subscription_url":"https://api.github.com/repos/hastic/hastic-server/subscription","commits_url":"https://api.github.com/repos/hastic/hastic-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/hastic/hastic-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/hastic/hastic-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/hastic/hastic-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/hastic/hastic-server/contents/{+path}","compare_url":"https://api.github.com/repos/hastic/hastic-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hastic/hastic-server/merges","archive_url":"https://api.github.com/repos/hastic/hastic-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hastic/hastic-server/downloads","issues_url":"https://api.github.com/repos/hastic/hastic-server/issues{/number}","pulls_url":"https://api.github.com/repos/hastic/hastic-server/pulls{/number}","milestones_url":"https://api.github.com/repos/hastic/hastic-server/milestones{/number}","notifications_url":"https://api.github.com/repos/hastic/hastic-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hastic/hastic-server/labels{/name}","releases_url":"https://api.github.com/repos/hastic/hastic-server/releases{/id}","deployments_url":"https://api.github.com/repos/hastic/hastic-server/deployments","created_at":"2018-05-21T14:19:25Z","updated_at":"2018-11-12T17:30:29Z","pushed_at":"2018-11-12T17:30:27Z","git_url":"git://github.com/hastic/hastic-server.git","ssh_url":"git@github.com:hastic/hastic-server.git","clone_url":"https://github.com/hastic/hastic-server.git","svn_url":"https://github.com/hastic/hastic-server","homepage":null,"size":2432,"stargazers_count":64,"watchers_count":64,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":63,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":63,"watchers":64,"default_branch":"master"}},"base":{"label":"hastic:master","ref":"master","sha":"79b302ab7eaae1831b0c121fb2b521fcf2f61a91","user":{"login":"hastic","id":39477570,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NDc3NTcw","avatar_url":"https://avatars0.githubusercontent.com/u/39477570?v=4","gravatar_id":"","url":"https://api.github.com/users/hastic","html_url":"https://github.com/hastic","followers_url":"https://api.github.com/users/hastic/followers","following_url":"https://api.github.com/users/hastic/following{/other_user}","gists_url":"https://api.github.com/users/hastic/gists{/gist_id}","starred_url":"https://api.github.com/users/hastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hastic/subscriptions","organizations_url":"https://api.github.com/users/hastic/orgs","repos_url":"https://api.github.com/users/hastic/repos","events_url":"https://api.github.com/users/hastic/events{/privacy}","received_events_url":"https://api.github.com/users/hastic/received_events","type":"Organization","site_admin":false},"repo":{"id":134279309,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyNzkzMDk=","name":"hastic-server","full_name":"hastic/hastic-server","private":false,"owner":{"login":"hastic","id":39477570,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NDc3NTcw","avatar_url":"https://avatars0.githubusercontent.com/u/39477570?v=4","gravatar_id":"","url":"https://api.github.com/users/hastic","html_url":"https://github.com/hastic","followers_url":"https://api.github.com/users/hastic/followers","following_url":"https://api.github.com/users/hastic/following{/other_user}","gists_url":"https://api.github.com/users/hastic/gists{/gist_id}","starred_url":"https://api.github.com/users/hastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hastic/subscriptions","organizations_url":"https://api.github.com/users/hastic/orgs","repos_url":"https://api.github.com/users/hastic/repos","events_url":"https://api.github.com/users/hastic/events{/privacy}","received_events_url":"https://api.github.com/users/hastic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hastic/hastic-server","description":"Server for managing data for analytics ","fork":false,"url":"https://api.github.com/repos/hastic/hastic-server","forks_url":"https://api.github.com/repos/hastic/hastic-server/forks","keys_url":"https://api.github.com/repos/hastic/hastic-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hastic/hastic-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hastic/hastic-server/teams","hooks_url":"https://api.github.com/repos/hastic/hastic-server/hooks","issue_events_url":"https://api.github.com/repos/hastic/hastic-server/issues/events{/number}","events_url":"https://api.github.com/repos/hastic/hastic-server/events","assignees_url":"https://api.github.com/repos/hastic/hastic-server/assignees{/user}","branches_url":"https://api.github.com/repos/hastic/hastic-server/branches{/branch}","tags_url":"https://api.github.com/repos/hastic/hastic-server/tags","blobs_url":"https://api.github.com/repos/hastic/hastic-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hastic/hastic-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hastic/hastic-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/hastic/hastic-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hastic/hastic-server/statuses/{sha}","languages_url":"https://api.github.com/repos/hastic/hastic-server/languages","stargazers_url":"https://api.github.com/repos/hastic/hastic-server/stargazers","contributors_url":"https://api.github.com/repos/hastic/hastic-server/contributors","subscribers_url":"https://api.github.com/repos/hastic/hastic-server/subscribers","subscription_url":"https://api.github.com/repos/hastic/hastic-server/subscription","commits_url":"https://api.github.com/repos/hastic/hastic-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/hastic/hastic-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/hastic/hastic-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/hastic/hastic-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/hastic/hastic-server/contents/{+path}","compare_url":"https://api.github.com/repos/hastic/hastic-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hastic/hastic-server/merges","archive_url":"https://api.github.com/repos/hastic/hastic-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hastic/hastic-server/downloads","issues_url":"https://api.github.com/repos/hastic/hastic-server/issues{/number}","pulls_url":"https://api.github.com/repos/hastic/hastic-server/pulls{/number}","milestones_url":"https://api.github.com/repos/hastic/hastic-server/milestones{/number}","notifications_url":"https://api.github.com/repos/hastic/hastic-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hastic/hastic-server/labels{/name}","releases_url":"https://api.github.com/repos/hastic/hastic-server/releases{/id}","deployments_url":"https://api.github.com/repos/hastic/hastic-server/deployments","created_at":"2018-05-21T14:19:25Z","updated_at":"2018-11-12T17:30:29Z","pushed_at":"2018-11-12T17:30:27Z","git_url":"git://github.com/hastic/hastic-server.git","ssh_url":"git@github.com:hastic/hastic-server.git","clone_url":"https://github.com/hastic/hastic-server.git","svn_url":"https://github.com/hastic/hastic-server","homepage":null,"size":2432,"stargazers_count":64,"watchers_count":64,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":63,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":63,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hastic/hastic-server/pulls/236"},"html":{"href":"https://github.com/hastic/hastic-server/pull/236"},"issue":{"href":"https://api.github.com/repos/hastic/hastic-server/issues/236"},"comments":{"href":"https://api.github.com/repos/hastic/hastic-server/issues/236/comments"},"review_comments":{"href":"https://api.github.com/repos/hastic/hastic-server/pulls/236/comments"},"review_comment":{"href":"https://api.github.com/repos/hastic/hastic-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hastic/hastic-server/pulls/236/commits"},"statuses":{"href":"https://api.github.com/repos/hastic/hastic-server/statuses/448fc306aa84e2d3584ac2196b968d4fdb888444"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"rozetko"}}