{"action":"created","comment":{"url":"https://api.github.com/repos/Eventfull/Eventfull/pulls/comments/33873880","id":33873880,"diff_hunk":"@@ -0,0 +1,92 @@\n+// title: DataTypes.STRING,\n+// type: DataTypes.ENUM('wedding', 'birthday', 'business'),\n+// date: DataTypes.DATE,\n+// start_time: DataTypes.TIME,\n+// end_time: DataTypes.TIME,\n+// complexity: DataTypes.INTEGER,\n+// health: DataTypes.INTEGER\n+\n+function randomItemFromArray(array){\n+  return array[Math.floor(Math.random()*array.length)];\n+}\n+\n+var moment = require('moment');\n+\n+var titles = [\n+  'George Washington Event',\n+  'John Adams Event',\n+  'Thomas Jefferson Event',\n+  'James Madison Event',\n+  'James Monroe Event',\n+  'John Quincy Event',\n+  'Andrew Jackson Event',\n+  'Martin Van Event',\n+  'William Henry Event',\n+  'John Tyler Event',\n+  'James Knox Event',\n+  'Zachary Taylor Event',\n+  'Millard Fillmore Event',\n+  'Franklin Pierce Event',\n+  'James Buchanan Event',\n+  'Abraham Lincoln Event',\n+  'Andrew Johnson Event',\n+  'Ulysses Simpson Event',\n+  'Rutherford Birchard Event',\n+  'James Abram Event',\n+  'Chester Alan Event',\n+  'Grover Cleveland Event',\n+  'Benjamin Harrison Event',\n+  'Grover Cleveland Event',\n+  'William McKinley Event',\n+  'William Howard Event',\n+  'Woodrow Wilson Event',\n+  'Warren Gamaliel Event',\n+  'Calvin Coolidge Event',\n+];\n+\n+var types = [\n+  'Wedding',\n+  'Birthday',\n+  'Batmitzvah',\n+  'Party',\n+  'Graduation',\n+  'Launch party',\n+  'Bachelors party',\n+  'Bachelorette party'\n+];\n+\n+var today = moment();\n+\n+var dates = [\n+  // today.subtract(1, 'days').toISOString(),","path":"server/db/seed/Gig.js","position":61,"original_position":61,"commit_id":"dcd5385234abb53950fbcaa43ab71aa373e5e80b","original_commit_id":"dcd5385234abb53950fbcaa43ab71aa373e5e80b","user":{"login":"joshuaNewman10","id":6551383,"avatar_url":"https://avatars.githubusercontent.com/u/6551383?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuaNewman10","html_url":"https://github.com/joshuaNewman10","followers_url":"https://api.github.com/users/joshuaNewman10/followers","following_url":"https://api.github.com/users/joshuaNewman10/following{/other_user}","gists_url":"https://api.github.com/users/joshuaNewman10/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuaNewman10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuaNewman10/subscriptions","organizations_url":"https://api.github.com/users/joshuaNewman10/orgs","repos_url":"https://api.github.com/users/joshuaNewman10/repos","events_url":"https://api.github.com/users/joshuaNewman10/events{/privacy}","received_events_url":"https://api.github.com/users/joshuaNewman10/received_events","type":"User","site_admin":false},"body":"Same as above, whats with all the commented out code?","created_at":"2015-07-03T16:46:16Z","updated_at":"2015-07-03T16:46:16Z","html_url":"https://github.com/Eventfull/Eventfull/pull/46#discussion_r33873880","pull_request_url":"https://api.github.com/repos/Eventfull/Eventfull/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/Eventfull/Eventfull/pulls/comments/33873880"},"html":{"href":"https://github.com/Eventfull/Eventfull/pull/46#discussion_r33873880"},"pull_request":{"href":"https://api.github.com/repos/Eventfull/Eventfull/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/Eventfull/Eventfull/pulls/46","id":39134770,"html_url":"https://github.com/Eventfull/Eventfull/pull/46","diff_url":"https://github.com/Eventfull/Eventfull/pull/46.diff","patch_url":"https://github.com/Eventfull/Eventfull/pull/46.patch","issue_url":"https://api.github.com/repos/Eventfull/Eventfull/issues/46","number":46,"state":"open","locked":false,"title":"(feat) Added data seed and changed to avoid multiple db connections and use app.get for models","user":{"login":"benignbemine","id":7146049,"avatar_url":"https://avatars.githubusercontent.com/u/7146049?v=3","gravatar_id":"","url":"https://api.github.com/users/benignbemine","html_url":"https://github.com/benignbemine","followers_url":"https://api.github.com/users/benignbemine/followers","following_url":"https://api.github.com/users/benignbemine/following{/other_user}","gists_url":"https://api.github.com/users/benignbemine/gists{/gist_id}","starred_url":"https://api.github.com/users/benignbemine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benignbemine/subscriptions","organizations_url":"https://api.github.com/users/benignbemine/orgs","repos_url":"https://api.github.com/users/benignbemine/repos","events_url":"https://api.github.com/users/benignbemine/events{/privacy}","received_events_url":"https://api.github.com/users/benignbemine/received_events","type":"User","site_admin":false},"body":"note: \r\n\r\nusing the command SHOW STATUS LIKE '%ONN%' will show you a table summarizing the connections. In this table: \r\n\r\n**Connections** stands for the number of connection attempts (successful or not) to the MySQL server. **Threads_connected** stands for the number of currently open connections. \r\n\r\nsee http://stackoverflow.com/questions/7432241/mysql-show-status-active-or-total-connections\r\n\r\nyou can also use:  SHOW STATUS WHERE `variable_name` = 'Threads_connected' to see the number of threads connected. ","created_at":"2015-07-02T23:20:41Z","updated_at":"2015-07-03T16:46:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c24ce97531f01035a308132ee3c98680aad7d0c","assignee":{"login":"joshuaNewman10","id":6551383,"avatar_url":"https://avatars.githubusercontent.com/u/6551383?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuaNewman10","html_url":"https://github.com/joshuaNewman10","followers_url":"https://api.github.com/users/joshuaNewman10/followers","following_url":"https://api.github.com/users/joshuaNewman10/following{/other_user}","gists_url":"https://api.github.com/users/joshuaNewman10/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuaNewman10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuaNewman10/subscriptions","organizations_url":"https://api.github.com/users/joshuaNewman10/orgs","repos_url":"https://api.github.com/users/joshuaNewman10/repos","events_url":"https://api.github.com/users/joshuaNewman10/events{/privacy}","received_events_url":"https://api.github.com/users/joshuaNewman10/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Eventfull/Eventfull/pulls/46/commits","review_comments_url":"https://api.github.com/repos/Eventfull/Eventfull/pulls/46/comments","review_comment_url":"https://api.github.com/repos/Eventfull/Eventfull/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Eventfull/Eventfull/issues/46/comments","statuses_url":"https://api.github.com/repos/Eventfull/Eventfull/statuses/dcd5385234abb53950fbcaa43ab71aa373e5e80b","head":{"label":"benignbemine:feat/db","ref":"feat/db","sha":"dcd5385234abb53950fbcaa43ab71aa373e5e80b","user":{"login":"benignbemine","id":7146049,"avatar_url":"https://avatars.githubusercontent.com/u/7146049?v=3","gravatar_id":"","url":"https://api.github.com/users/benignbemine","html_url":"https://github.com/benignbemine","followers_url":"https://api.github.com/users/benignbemine/followers","following_url":"https://api.github.com/users/benignbemine/following{/other_user}","gists_url":"https://api.github.com/users/benignbemine/gists{/gist_id}","starred_url":"https://api.github.com/users/benignbemine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benignbemine/subscriptions","organizations_url":"https://api.github.com/users/benignbemine/orgs","repos_url":"https://api.github.com/users/benignbemine/repos","events_url":"https://api.github.com/users/benignbemine/events{/privacy}","received_events_url":"https://api.github.com/users/benignbemine/received_events","type":"User","site_admin":false},"repo":{"id":37025223,"name":"Eventfull","full_name":"benignbemine/Eventfull","owner":{"login":"benignbemine","id":7146049,"avatar_url":"https://avatars.githubusercontent.com/u/7146049?v=3","gravatar_id":"","url":"https://api.github.com/users/benignbemine","html_url":"https://github.com/benignbemine","followers_url":"https://api.github.com/users/benignbemine/followers","following_url":"https://api.github.com/users/benignbemine/following{/other_user}","gists_url":"https://api.github.com/users/benignbemine/gists{/gist_id}","starred_url":"https://api.github.com/users/benignbemine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benignbemine/subscriptions","organizations_url":"https://api.github.com/users/benignbemine/orgs","repos_url":"https://api.github.com/users/benignbemine/repos","events_url":"https://api.github.com/users/benignbemine/events{/privacy}","received_events_url":"https://api.github.com/users/benignbemine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benignbemine/Eventfull","description":"","fork":true,"url":"https://api.github.com/repos/benignbemine/Eventfull","forks_url":"https://api.github.com/repos/benignbemine/Eventfull/forks","keys_url":"https://api.github.com/repos/benignbemine/Eventfull/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benignbemine/Eventfull/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benignbemine/Eventfull/teams","hooks_url":"https://api.github.com/repos/benignbemine/Eventfull/hooks","issue_events_url":"https://api.github.com/repos/benignbemine/Eventfull/issues/events{/number}","events_url":"https://api.github.com/repos/benignbemine/Eventfull/events","assignees_url":"https://api.github.com/repos/benignbemine/Eventfull/assignees{/user}","branches_url":"https://api.github.com/repos/benignbemine/Eventfull/branches{/branch}","tags_url":"https://api.github.com/repos/benignbemine/Eventfull/tags","blobs_url":"https://api.github.com/repos/benignbemine/Eventfull/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benignbemine/Eventfull/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benignbemine/Eventfull/git/refs{/sha}","trees_url":"https://api.github.com/repos/benignbemine/Eventfull/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benignbemine/Eventfull/statuses/{sha}","languages_url":"https://api.github.com/repos/benignbemine/Eventfull/languages","stargazers_url":"https://api.github.com/repos/benignbemine/Eventfull/stargazers","contributors_url":"https://api.github.com/repos/benignbemine/Eventfull/contributors","subscribers_url":"https://api.github.com/repos/benignbemine/Eventfull/subscribers","subscription_url":"https://api.github.com/repos/benignbemine/Eventfull/subscription","commits_url":"https://api.github.com/repos/benignbemine/Eventfull/commits{/sha}","git_commits_url":"https://api.github.com/repos/benignbemine/Eventfull/git/commits{/sha}","comments_url":"https://api.github.com/repos/benignbemine/Eventfull/comments{/number}","issue_comment_url":"https://api.github.com/repos/benignbemine/Eventfull/issues/comments{/number}","contents_url":"https://api.github.com/repos/benignbemine/Eventfull/contents/{+path}","compare_url":"https://api.github.com/repos/benignbemine/Eventfull/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benignbemine/Eventfull/merges","archive_url":"https://api.github.com/repos/benignbemine/Eventfull/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benignbemine/Eventfull/downloads","issues_url":"https://api.github.com/repos/benignbemine/Eventfull/issues{/number}","pulls_url":"https://api.github.com/repos/benignbemine/Eventfull/pulls{/number}","milestones_url":"https://api.github.com/repos/benignbemine/Eventfull/milestones{/number}","notifications_url":"https://api.github.com/repos/benignbemine/Eventfull/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benignbemine/Eventfull/labels{/name}","releases_url":"https://api.github.com/repos/benignbemine/Eventfull/releases{/id}","created_at":"2015-06-07T17:21:39Z","updated_at":"2015-06-07T17:21:39Z","pushed_at":"2015-07-03T07:37:12Z","git_url":"git://github.com/benignbemine/Eventfull.git","ssh_url":"git@github.com:benignbemine/Eventfull.git","clone_url":"https://github.com/benignbemine/Eventfull.git","svn_url":"https://github.com/benignbemine/Eventfull","homepage":null,"size":251,"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":"Eventfull:master","ref":"master","sha":"a6729bb467debb1e5fe59a44fd7b9c80d9ebfe20","user":{"login":"Eventfull","id":12654870,"avatar_url":"https://avatars.githubusercontent.com/u/12654870?v=3","gravatar_id":"","url":"https://api.github.com/users/Eventfull","html_url":"https://github.com/Eventfull","followers_url":"https://api.github.com/users/Eventfull/followers","following_url":"https://api.github.com/users/Eventfull/following{/other_user}","gists_url":"https://api.github.com/users/Eventfull/gists{/gist_id}","starred_url":"https://api.github.com/users/Eventfull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eventfull/subscriptions","organizations_url":"https://api.github.com/users/Eventfull/orgs","repos_url":"https://api.github.com/users/Eventfull/repos","events_url":"https://api.github.com/users/Eventfull/events{/privacy}","received_events_url":"https://api.github.com/users/Eventfull/received_events","type":"Organization","site_admin":false},"repo":{"id":36484951,"name":"Eventfull","full_name":"Eventfull/Eventfull","owner":{"login":"Eventfull","id":12654870,"avatar_url":"https://avatars.githubusercontent.com/u/12654870?v=3","gravatar_id":"","url":"https://api.github.com/users/Eventfull","html_url":"https://github.com/Eventfull","followers_url":"https://api.github.com/users/Eventfull/followers","following_url":"https://api.github.com/users/Eventfull/following{/other_user}","gists_url":"https://api.github.com/users/Eventfull/gists{/gist_id}","starred_url":"https://api.github.com/users/Eventfull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eventfull/subscriptions","organizations_url":"https://api.github.com/users/Eventfull/orgs","repos_url":"https://api.github.com/users/Eventfull/repos","events_url":"https://api.github.com/users/Eventfull/events{/privacy}","received_events_url":"https://api.github.com/users/Eventfull/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Eventfull/Eventfull","description":"","fork":false,"url":"https://api.github.com/repos/Eventfull/Eventfull","forks_url":"https://api.github.com/repos/Eventfull/Eventfull/forks","keys_url":"https://api.github.com/repos/Eventfull/Eventfull/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Eventfull/Eventfull/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Eventfull/Eventfull/teams","hooks_url":"https://api.github.com/repos/Eventfull/Eventfull/hooks","issue_events_url":"https://api.github.com/repos/Eventfull/Eventfull/issues/events{/number}","events_url":"https://api.github.com/repos/Eventfull/Eventfull/events","assignees_url":"https://api.github.com/repos/Eventfull/Eventfull/assignees{/user}","branches_url":"https://api.github.com/repos/Eventfull/Eventfull/branches{/branch}","tags_url":"https://api.github.com/repos/Eventfull/Eventfull/tags","blobs_url":"https://api.github.com/repos/Eventfull/Eventfull/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Eventfull/Eventfull/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Eventfull/Eventfull/git/refs{/sha}","trees_url":"https://api.github.com/repos/Eventfull/Eventfull/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Eventfull/Eventfull/statuses/{sha}","languages_url":"https://api.github.com/repos/Eventfull/Eventfull/languages","stargazers_url":"https://api.github.com/repos/Eventfull/Eventfull/stargazers","contributors_url":"https://api.github.com/repos/Eventfull/Eventfull/contributors","subscribers_url":"https://api.github.com/repos/Eventfull/Eventfull/subscribers","subscription_url":"https://api.github.com/repos/Eventfull/Eventfull/subscription","commits_url":"https://api.github.com/repos/Eventfull/Eventfull/commits{/sha}","git_commits_url":"https://api.github.com/repos/Eventfull/Eventfull/git/commits{/sha}","comments_url":"https://api.github.com/repos/Eventfull/Eventfull/comments{/number}","issue_comment_url":"https://api.github.com/repos/Eventfull/Eventfull/issues/comments{/number}","contents_url":"https://api.github.com/repos/Eventfull/Eventfull/contents/{+path}","compare_url":"https://api.github.com/repos/Eventfull/Eventfull/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Eventfull/Eventfull/merges","archive_url":"https://api.github.com/repos/Eventfull/Eventfull/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Eventfull/Eventfull/downloads","issues_url":"https://api.github.com/repos/Eventfull/Eventfull/issues{/number}","pulls_url":"https://api.github.com/repos/Eventfull/Eventfull/pulls{/number}","milestones_url":"https://api.github.com/repos/Eventfull/Eventfull/milestones{/number}","notifications_url":"https://api.github.com/repos/Eventfull/Eventfull/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Eventfull/Eventfull/labels{/name}","releases_url":"https://api.github.com/repos/Eventfull/Eventfull/releases{/id}","created_at":"2015-05-29T05:58:46Z","updated_at":"2015-06-24T14:46:36Z","pushed_at":"2015-07-03T07:37:12Z","git_url":"git://github.com/Eventfull/Eventfull.git","ssh_url":"git@github.com:Eventfull/Eventfull.git","clone_url":"https://github.com/Eventfull/Eventfull.git","svn_url":"https://github.com/Eventfull/Eventfull","homepage":null,"size":827,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":6,"forks":3,"open_issues":6,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Eventfull/Eventfull/pulls/46"},"html":{"href":"https://github.com/Eventfull/Eventfull/pull/46"},"issue":{"href":"https://api.github.com/repos/Eventfull/Eventfull/issues/46"},"comments":{"href":"https://api.github.com/repos/Eventfull/Eventfull/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/Eventfull/Eventfull/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/Eventfull/Eventfull/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Eventfull/Eventfull/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/Eventfull/Eventfull/statuses/dcd5385234abb53950fbcaa43ab71aa373e5e80b"}}}}