{"action":"created","comment":{"url":"https://api.github.com/repos/duckduckgo/community-platform/pulls/comments/63520851","id":63520851,"diff_hunk":"@@ -0,0 +1,52 @@\n+#!/usr/bin/env perl\n+\n+use strict;\n+use warnings;\n+\n+$ENV{DDGC_IA_AUTOUPDATES} = 0;","path":"script/ddgc_generate_traffic.pl","position":7,"original_position":6,"commit_id":"07463eb0d8f571372d74ccd065665f2d19c21b12","original_commit_id":"b72a0dc7c8e7af0bf605cfc86ca8e1018fb238c1","user":{"login":"jdorweiler","id":1882892,"avatar_url":"https://avatars.githubusercontent.com/u/1882892?v=3","gravatar_id":"","url":"https://api.github.com/users/jdorweiler","html_url":"https://github.com/jdorweiler","followers_url":"https://api.github.com/users/jdorweiler/followers","following_url":"https://api.github.com/users/jdorweiler/following{/other_user}","gists_url":"https://api.github.com/users/jdorweiler/gists{/gist_id}","starred_url":"https://api.github.com/users/jdorweiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdorweiler/subscriptions","organizations_url":"https://api.github.com/users/jdorweiler/orgs","repos_url":"https://api.github.com/users/jdorweiler/repos","events_url":"https://api.github.com/users/jdorweiler/events{/privacy}","received_events_url":"https://api.github.com/users/jdorweiler/received_events","type":"User","site_admin":false},"body":"You can leave it. ","created_at":"2016-05-17T13:27:30Z","updated_at":"2016-05-17T13:27:30Z","html_url":"https://github.com/duckduckgo/community-platform/pull/1357#discussion_r63520851","pull_request_url":"https://api.github.com/repos/duckduckgo/community-platform/pulls/1357","_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/community-platform/pulls/comments/63520851"},"html":{"href":"https://github.com/duckduckgo/community-platform/pull/1357#discussion_r63520851"},"pull_request":{"href":"https://api.github.com/repos/duckduckgo/community-platform/pulls/1357"}}},"pull_request":{"url":"https://api.github.com/repos/duckduckgo/community-platform/pulls/1357","id":70262815,"html_url":"https://github.com/duckduckgo/community-platform/pull/1357","diff_url":"https://github.com/duckduckgo/community-platform/pull/1357.diff","patch_url":"https://github.com/duckduckgo/community-platform/pull/1357.patch","issue_url":"https://api.github.com/repos/duckduckgo/community-platform/issues/1357","number":1357,"state":"open","locked":false,"title":"Add script for random traffic data generation","user":{"login":"GuiltyDolphin","id":8598426,"avatar_url":"https://avatars.githubusercontent.com/u/8598426?v=3","gravatar_id":"","url":"https://api.github.com/users/GuiltyDolphin","html_url":"https://github.com/GuiltyDolphin","followers_url":"https://api.github.com/users/GuiltyDolphin/followers","following_url":"https://api.github.com/users/GuiltyDolphin/following{/other_user}","gists_url":"https://api.github.com/users/GuiltyDolphin/gists{/gist_id}","starred_url":"https://api.github.com/users/GuiltyDolphin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuiltyDolphin/subscriptions","organizations_url":"https://api.github.com/users/GuiltyDolphin/orgs","repos_url":"https://api.github.com/users/GuiltyDolphin/repos","events_url":"https://api.github.com/users/GuiltyDolphin/events{/privacy}","received_events_url":"https://api.github.com/users/GuiltyDolphin/received_events","type":"User","site_admin":false},"body":"`script/ddgc_generate_traffic.pl` generates random traffic data for local testing.\r\n\r\nFixes #1303 \r\n\r\n![screenshot-2016-05-16-22 05 04_784_466](https://cloud.githubusercontent.com/assets/8598426/15304120/7620c5c4-1bb3-11e6-9e2f-8a41d9aef01d.png)\r\n\r\n#### TO-DO\r\n\r\n- [x] More realistic data (not 3 million queries!)\r\n- [x] Truncate tables on update (@jdorweiler)\r\n\r\n/cc @jdorweiler @MariagraziaAlastra @jbarrett ","created_at":"2016-05-16T21:15:15Z","updated_at":"2016-05-17T13:27:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1b02d6795b6ae09f593b7e269c2402271112812","assignee":{"login":"jdorweiler","id":1882892,"avatar_url":"https://avatars.githubusercontent.com/u/1882892?v=3","gravatar_id":"","url":"https://api.github.com/users/jdorweiler","html_url":"https://github.com/jdorweiler","followers_url":"https://api.github.com/users/jdorweiler/followers","following_url":"https://api.github.com/users/jdorweiler/following{/other_user}","gists_url":"https://api.github.com/users/jdorweiler/gists{/gist_id}","starred_url":"https://api.github.com/users/jdorweiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdorweiler/subscriptions","organizations_url":"https://api.github.com/users/jdorweiler/orgs","repos_url":"https://api.github.com/users/jdorweiler/repos","events_url":"https://api.github.com/users/jdorweiler/events{/privacy}","received_events_url":"https://api.github.com/users/jdorweiler/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/duckduckgo/community-platform/pulls/1357/commits","review_comments_url":"https://api.github.com/repos/duckduckgo/community-platform/pulls/1357/comments","review_comment_url":"https://api.github.com/repos/duckduckgo/community-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duckduckgo/community-platform/issues/1357/comments","statuses_url":"https://api.github.com/repos/duckduckgo/community-platform/statuses/07463eb0d8f571372d74ccd065665f2d19c21b12","head":{"label":"GuiltyDolphin:gd/traffic-test-data","ref":"gd/traffic-test-data","sha":"07463eb0d8f571372d74ccd065665f2d19c21b12","user":{"login":"GuiltyDolphin","id":8598426,"avatar_url":"https://avatars.githubusercontent.com/u/8598426?v=3","gravatar_id":"","url":"https://api.github.com/users/GuiltyDolphin","html_url":"https://github.com/GuiltyDolphin","followers_url":"https://api.github.com/users/GuiltyDolphin/followers","following_url":"https://api.github.com/users/GuiltyDolphin/following{/other_user}","gists_url":"https://api.github.com/users/GuiltyDolphin/gists{/gist_id}","starred_url":"https://api.github.com/users/GuiltyDolphin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuiltyDolphin/subscriptions","organizations_url":"https://api.github.com/users/GuiltyDolphin/orgs","repos_url":"https://api.github.com/users/GuiltyDolphin/repos","events_url":"https://api.github.com/users/GuiltyDolphin/events{/privacy}","received_events_url":"https://api.github.com/users/GuiltyDolphin/received_events","type":"User","site_admin":false},"repo":{"id":52895408,"name":"community-platform","full_name":"GuiltyDolphin/community-platform","owner":{"login":"GuiltyDolphin","id":8598426,"avatar_url":"https://avatars.githubusercontent.com/u/8598426?v=3","gravatar_id":"","url":"https://api.github.com/users/GuiltyDolphin","html_url":"https://github.com/GuiltyDolphin","followers_url":"https://api.github.com/users/GuiltyDolphin/followers","following_url":"https://api.github.com/users/GuiltyDolphin/following{/other_user}","gists_url":"https://api.github.com/users/GuiltyDolphin/gists{/gist_id}","starred_url":"https://api.github.com/users/GuiltyDolphin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuiltyDolphin/subscriptions","organizations_url":"https://api.github.com/users/GuiltyDolphin/orgs","repos_url":"https://api.github.com/users/GuiltyDolphin/repos","events_url":"https://api.github.com/users/GuiltyDolphin/events{/privacy}","received_events_url":"https://api.github.com/users/GuiltyDolphin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GuiltyDolphin/community-platform","description":"DuckDuckGo Community Platform","fork":true,"url":"https://api.github.com/repos/GuiltyDolphin/community-platform","forks_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/forks","keys_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/teams","hooks_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/hooks","issue_events_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/issues/events{/number}","events_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/events","assignees_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/assignees{/user}","branches_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/branches{/branch}","tags_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/tags","blobs_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/languages","stargazers_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/stargazers","contributors_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/contributors","subscribers_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/subscribers","subscription_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/subscription","commits_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/contents/{+path}","compare_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/merges","archive_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/downloads","issues_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/issues{/number}","pulls_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/labels{/name}","releases_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/releases{/id}","deployments_url":"https://api.github.com/repos/GuiltyDolphin/community-platform/deployments","created_at":"2016-03-01T17:20:16Z","updated_at":"2016-03-01T17:20:20Z","pushed_at":"2016-05-17T11:59:18Z","git_url":"git://github.com/GuiltyDolphin/community-platform.git","ssh_url":"git@github.com:GuiltyDolphin/community-platform.git","clone_url":"https://github.com/GuiltyDolphin/community-platform.git","svn_url":"https://github.com/GuiltyDolphin/community-platform","homepage":"https://duck.co/","size":27746,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"duckduckgo:master","ref":"master","sha":"53add3568522e961881ea35bac5453f51eddeeb3","user":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"repo":{"id":1751775,"name":"community-platform","full_name":"duckduckgo/community-platform","owner":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/duckduckgo/community-platform","description":"DuckDuckGo Community Platform","fork":false,"url":"https://api.github.com/repos/duckduckgo/community-platform","forks_url":"https://api.github.com/repos/duckduckgo/community-platform/forks","keys_url":"https://api.github.com/repos/duckduckgo/community-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckduckgo/community-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckduckgo/community-platform/teams","hooks_url":"https://api.github.com/repos/duckduckgo/community-platform/hooks","issue_events_url":"https://api.github.com/repos/duckduckgo/community-platform/issues/events{/number}","events_url":"https://api.github.com/repos/duckduckgo/community-platform/events","assignees_url":"https://api.github.com/repos/duckduckgo/community-platform/assignees{/user}","branches_url":"https://api.github.com/repos/duckduckgo/community-platform/branches{/branch}","tags_url":"https://api.github.com/repos/duckduckgo/community-platform/tags","blobs_url":"https://api.github.com/repos/duckduckgo/community-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckduckgo/community-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckduckgo/community-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckduckgo/community-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckduckgo/community-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/duckduckgo/community-platform/languages","stargazers_url":"https://api.github.com/repos/duckduckgo/community-platform/stargazers","contributors_url":"https://api.github.com/repos/duckduckgo/community-platform/contributors","subscribers_url":"https://api.github.com/repos/duckduckgo/community-platform/subscribers","subscription_url":"https://api.github.com/repos/duckduckgo/community-platform/subscription","commits_url":"https://api.github.com/repos/duckduckgo/community-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckduckgo/community-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckduckgo/community-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckduckgo/community-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/duckduckgo/community-platform/contents/{+path}","compare_url":"https://api.github.com/repos/duckduckgo/community-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckduckgo/community-platform/merges","archive_url":"https://api.github.com/repos/duckduckgo/community-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckduckgo/community-platform/downloads","issues_url":"https://api.github.com/repos/duckduckgo/community-platform/issues{/number}","pulls_url":"https://api.github.com/repos/duckduckgo/community-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/duckduckgo/community-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/duckduckgo/community-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckduckgo/community-platform/labels{/name}","releases_url":"https://api.github.com/repos/duckduckgo/community-platform/releases{/id}","deployments_url":"https://api.github.com/repos/duckduckgo/community-platform/deployments","created_at":"2011-05-15T17:35:41Z","updated_at":"2016-05-06T17:13:45Z","pushed_at":"2016-05-17T13:00:37Z","git_url":"git://github.com/duckduckgo/community-platform.git","ssh_url":"git@github.com:duckduckgo/community-platform.git","clone_url":"https://github.com/duckduckgo/community-platform.git","svn_url":"https://github.com/duckduckgo/community-platform","homepage":"https://duck.co/","size":29242,"stargazers_count":419,"watchers_count":419,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":117,"mirror_url":null,"open_issues_count":155,"forks":117,"open_issues":155,"watchers":419,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/community-platform/pulls/1357"},"html":{"href":"https://github.com/duckduckgo/community-platform/pull/1357"},"issue":{"href":"https://api.github.com/repos/duckduckgo/community-platform/issues/1357"},"comments":{"href":"https://api.github.com/repos/duckduckgo/community-platform/issues/1357/comments"},"review_comments":{"href":"https://api.github.com/repos/duckduckgo/community-platform/pulls/1357/comments"},"review_comment":{"href":"https://api.github.com/repos/duckduckgo/community-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duckduckgo/community-platform/pulls/1357/commits"},"statuses":{"href":"https://api.github.com/repos/duckduckgo/community-platform/statuses/07463eb0d8f571372d74ccd065665f2d19c21b12"}}}}