{"action":"created","comment":{"url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/comments/76457367","id":76457367,"diff_hunk":"@@ -139,26 +136,34 @@\n     \"        rowct = 0\\n\",\n     \"        with open(score_tmp, 'w') as score:\\n\",\n     \"            wr = csv.writer(score, delimiter=',', quoting=csv.QUOTE_NONE)\\n\",\n-    \"            wr = csv.DictWriter(score, delimiter=',', quoting=csv.QUOTE_NONE, fieldnames=reader.fieldnames)\\n\",\n-    \"            \\n\",\n+    \"            wr = csv.DictWriter(score, delimiter=',', quoting=csv.QUOTE_NONE, fieldnames=reader.fieldnames)            \\n\",\n     \"            wr.writeheader()\\n\",\n-    \"\\n\",\n+    \"                \\n\",\n     \"            for row in reader:\\n\",\n     \"                if row['fulluri'] == uri:\\n\",\n     \"                    row['uri_sev'] = uri_sev\\n\",\n+    \"                    scored_threats.append(row)                    \\n\",\n     \"                    rowct += 1\\n\",\n-    \"\\n\",\n     \"                try:\\n\",\n     \"                    wr.writerow(row)\\n\",\n     \"                except:\\n\",\n     \"                    print str(row)\\n\",\n-    \"\\n\",\n+    \"                    \\n\",\n+    \"        #works on the feedback tab-separated file\\n\",\n+    \"        if not os.path.exists(score_fbk):  \\n\",\n+    \"            with open(score_fbk, 'w') as feedback:\\n\",\n+    \"                wr = csv.DictWriter(feedback, delimiter='\\\\t', quoting=csv.QUOTE_NONE, fieldnames=reader.fieldnames)            \\n\",","path":"oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb","position":66,"original_position":66,"commit_id":"b27062fd08326d44674aa60f0a983b6b77996bb0","original_commit_id":"b27062fd08326d44674aa60f0a983b6b77996bb0","user":{"login":"rabarona","id":17070509,"avatar_url":"https://avatars.githubusercontent.com/u/17070509?v=3","gravatar_id":"","url":"https://api.github.com/users/rabarona","html_url":"https://github.com/rabarona","followers_url":"https://api.github.com/users/rabarona/followers","following_url":"https://api.github.com/users/rabarona/following{/other_user}","gists_url":"https://api.github.com/users/rabarona/gists{/gist_id}","starred_url":"https://api.github.com/users/rabarona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabarona/subscriptions","organizations_url":"https://api.github.com/users/rabarona/orgs","repos_url":"https://api.github.com/users/rabarona/repos","events_url":"https://api.github.com/users/rabarona/events{/privacy}","received_events_url":"https://api.github.com/users/rabarona/received_events","type":"User","site_admin":false},"body":"@NathanSegerlind  and this is for Proxy","created_at":"2016-08-26T17:36:38Z","updated_at":"2016-08-26T17:36:38Z","html_url":"https://github.com/Open-Network-Insight/oni-oa/pull/132#discussion_r76457367","pull_request_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/132","_links":{"self":{"href":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/comments/76457367"},"html":{"href":"https://github.com/Open-Network-Insight/oni-oa/pull/132#discussion_r76457367"},"pull_request":{"href":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/132","id":82920473,"html_url":"https://github.com/Open-Network-Insight/oni-oa/pull/132","diff_url":"https://github.com/Open-Network-Insight/oni-oa/pull/132.diff","patch_url":"https://github.com/Open-Network-Insight/oni-oa/pull/132.patch","issue_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/issues/132","number":132,"state":"open","locked":false,"title":"Edge Notebooks now create a tab-separated file for ML feedback","user":{"login":"LedaLima","id":16786862,"avatar_url":"https://avatars.githubusercontent.com/u/16786862?v=3","gravatar_id":"","url":"https://api.github.com/users/LedaLima","html_url":"https://github.com/LedaLima","followers_url":"https://api.github.com/users/LedaLima/followers","following_url":"https://api.github.com/users/LedaLima/following{/other_user}","gists_url":"https://api.github.com/users/LedaLima/gists{/gist_id}","starred_url":"https://api.github.com/users/LedaLima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LedaLima/subscriptions","organizations_url":"https://api.github.com/users/LedaLima/orgs","repos_url":"https://api.github.com/users/LedaLima/repos","events_url":"https://api.github.com/users/LedaLima/events{/privacy}","received_events_url":"https://api.github.com/users/LedaLima/received_events","type":"User","site_admin":false},"body":"Since ML now expects a tab separated file as feedback, this PR creates the necessary files on the UI for each pipeline and copies them back to ML node.","created_at":"2016-08-26T16:57:54Z","updated_at":"2016-08-26T17:36:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d0006f333ae6b83955ce483e773c558edde1b7dd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/132/commits","review_comments_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/132/comments","review_comment_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/issues/132/comments","statuses_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/statuses/b27062fd08326d44674aa60f0a983b6b77996bb0","head":{"label":"Open-Network-Insight:dev_ui_tab_separated_feedback","ref":"dev_ui_tab_separated_feedback","sha":"b27062fd08326d44674aa60f0a983b6b77996bb0","user":{"login":"Open-Network-Insight","id":16139109,"avatar_url":"https://avatars.githubusercontent.com/u/16139109?v=3","gravatar_id":"","url":"https://api.github.com/users/Open-Network-Insight","html_url":"https://github.com/Open-Network-Insight","followers_url":"https://api.github.com/users/Open-Network-Insight/followers","following_url":"https://api.github.com/users/Open-Network-Insight/following{/other_user}","gists_url":"https://api.github.com/users/Open-Network-Insight/gists{/gist_id}","starred_url":"https://api.github.com/users/Open-Network-Insight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Open-Network-Insight/subscriptions","organizations_url":"https://api.github.com/users/Open-Network-Insight/orgs","repos_url":"https://api.github.com/users/Open-Network-Insight/repos","events_url":"https://api.github.com/users/Open-Network-Insight/events{/privacy}","received_events_url":"https://api.github.com/users/Open-Network-Insight/received_events","type":"Organization","site_admin":false},"repo":{"id":52106168,"name":"oni-oa","full_name":"Open-Network-Insight/oni-oa","owner":{"login":"Open-Network-Insight","id":16139109,"avatar_url":"https://avatars.githubusercontent.com/u/16139109?v=3","gravatar_id":"","url":"https://api.github.com/users/Open-Network-Insight","html_url":"https://github.com/Open-Network-Insight","followers_url":"https://api.github.com/users/Open-Network-Insight/followers","following_url":"https://api.github.com/users/Open-Network-Insight/following{/other_user}","gists_url":"https://api.github.com/users/Open-Network-Insight/gists{/gist_id}","starred_url":"https://api.github.com/users/Open-Network-Insight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Open-Network-Insight/subscriptions","organizations_url":"https://api.github.com/users/Open-Network-Insight/orgs","repos_url":"https://api.github.com/users/Open-Network-Insight/repos","events_url":"https://api.github.com/users/Open-Network-Insight/events{/privacy}","received_events_url":"https://api.github.com/users/Open-Network-Insight/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Open-Network-Insight/oni-oa","description":"Operational analytics component of Open Network Insight - provides functions for interactive visualization, noise filters, white listing, and attack heuristics.","fork":false,"url":"https://api.github.com/repos/Open-Network-Insight/oni-oa","forks_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/forks","keys_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/teams","hooks_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/hooks","issue_events_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/issues/events{/number}","events_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/events","assignees_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/assignees{/user}","branches_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/branches{/branch}","tags_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/tags","blobs_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/git/refs{/sha}","trees_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/statuses/{sha}","languages_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/languages","stargazers_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/stargazers","contributors_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/contributors","subscribers_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/subscribers","subscription_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/subscription","commits_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/commits{/sha}","git_commits_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/git/commits{/sha}","comments_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/comments{/number}","issue_comment_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/issues/comments{/number}","contents_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/contents/{+path}","compare_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/merges","archive_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/downloads","issues_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/issues{/number}","pulls_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls{/number}","milestones_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/milestones{/number}","notifications_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/labels{/name}","releases_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/releases{/id}","deployments_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/deployments","created_at":"2016-02-19T17:59:46Z","updated_at":"2016-03-29T07:02:42Z","pushed_at":"2016-08-26T16:57:54Z","git_url":"git://github.com/Open-Network-Insight/oni-oa.git","ssh_url":"git@github.com:Open-Network-Insight/oni-oa.git","clone_url":"https://github.com/Open-Network-Insight/oni-oa.git","svn_url":"https://github.com/Open-Network-Insight/oni-oa","homepage":"","size":14888,"stargazers_count":2,"watchers_count":2,"language":"Jupyter Notebook","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":6,"forks":8,"open_issues":6,"watchers":2,"default_branch":"1.0.1"}},"base":{"label":"Open-Network-Insight:dev","ref":"dev","sha":"8729ce6bf7b8379d5c9171a415d1da4acecf7f83","user":{"login":"Open-Network-Insight","id":16139109,"avatar_url":"https://avatars.githubusercontent.com/u/16139109?v=3","gravatar_id":"","url":"https://api.github.com/users/Open-Network-Insight","html_url":"https://github.com/Open-Network-Insight","followers_url":"https://api.github.com/users/Open-Network-Insight/followers","following_url":"https://api.github.com/users/Open-Network-Insight/following{/other_user}","gists_url":"https://api.github.com/users/Open-Network-Insight/gists{/gist_id}","starred_url":"https://api.github.com/users/Open-Network-Insight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Open-Network-Insight/subscriptions","organizations_url":"https://api.github.com/users/Open-Network-Insight/orgs","repos_url":"https://api.github.com/users/Open-Network-Insight/repos","events_url":"https://api.github.com/users/Open-Network-Insight/events{/privacy}","received_events_url":"https://api.github.com/users/Open-Network-Insight/received_events","type":"Organization","site_admin":false},"repo":{"id":52106168,"name":"oni-oa","full_name":"Open-Network-Insight/oni-oa","owner":{"login":"Open-Network-Insight","id":16139109,"avatar_url":"https://avatars.githubusercontent.com/u/16139109?v=3","gravatar_id":"","url":"https://api.github.com/users/Open-Network-Insight","html_url":"https://github.com/Open-Network-Insight","followers_url":"https://api.github.com/users/Open-Network-Insight/followers","following_url":"https://api.github.com/users/Open-Network-Insight/following{/other_user}","gists_url":"https://api.github.com/users/Open-Network-Insight/gists{/gist_id}","starred_url":"https://api.github.com/users/Open-Network-Insight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Open-Network-Insight/subscriptions","organizations_url":"https://api.github.com/users/Open-Network-Insight/orgs","repos_url":"https://api.github.com/users/Open-Network-Insight/repos","events_url":"https://api.github.com/users/Open-Network-Insight/events{/privacy}","received_events_url":"https://api.github.com/users/Open-Network-Insight/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Open-Network-Insight/oni-oa","description":"Operational analytics component of Open Network Insight - provides functions for interactive visualization, noise filters, white listing, and attack heuristics.","fork":false,"url":"https://api.github.com/repos/Open-Network-Insight/oni-oa","forks_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/forks","keys_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/teams","hooks_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/hooks","issue_events_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/issues/events{/number}","events_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/events","assignees_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/assignees{/user}","branches_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/branches{/branch}","tags_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/tags","blobs_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/git/refs{/sha}","trees_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/statuses/{sha}","languages_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/languages","stargazers_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/stargazers","contributors_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/contributors","subscribers_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/subscribers","subscription_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/subscription","commits_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/commits{/sha}","git_commits_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/git/commits{/sha}","comments_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/comments{/number}","issue_comment_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/issues/comments{/number}","contents_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/contents/{+path}","compare_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/merges","archive_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/downloads","issues_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/issues{/number}","pulls_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls{/number}","milestones_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/milestones{/number}","notifications_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/labels{/name}","releases_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/releases{/id}","deployments_url":"https://api.github.com/repos/Open-Network-Insight/oni-oa/deployments","created_at":"2016-02-19T17:59:46Z","updated_at":"2016-03-29T07:02:42Z","pushed_at":"2016-08-26T16:57:54Z","git_url":"git://github.com/Open-Network-Insight/oni-oa.git","ssh_url":"git@github.com:Open-Network-Insight/oni-oa.git","clone_url":"https://github.com/Open-Network-Insight/oni-oa.git","svn_url":"https://github.com/Open-Network-Insight/oni-oa","homepage":"","size":14888,"stargazers_count":2,"watchers_count":2,"language":"Jupyter Notebook","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":6,"forks":8,"open_issues":6,"watchers":2,"default_branch":"1.0.1"}},"_links":{"self":{"href":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/132"},"html":{"href":"https://github.com/Open-Network-Insight/oni-oa/pull/132"},"issue":{"href":"https://api.github.com/repos/Open-Network-Insight/oni-oa/issues/132"},"comments":{"href":"https://api.github.com/repos/Open-Network-Insight/oni-oa/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Open-Network-Insight/oni-oa/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/Open-Network-Insight/oni-oa/statuses/b27062fd08326d44674aa60f0a983b6b77996bb0"}}}}
{"actor":{"display_login":"rabarona"}}