{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments/65969965","id":65969965,"diff_hunk":"@@ -0,0 +1,234 @@\n+'use strict'\n+\n+var exports = module.exports = {};\n+\n+const fs = require('fs')\n+const moment = require('moment')\n+const handlebars = require('handlebars')\n+\n+const tpl = handlebars.compile(fs.readFileSync(__dirname + '/schedule.tpl').toString('utf-8'))\n+const sessionsData = require('../../../mockjson/sessions.json')\n+const speakersData = require('../../../mockjson/speakers.json')\n+const servicesData = require('../../../mockjson/event.json')\n+const sponsorsData = require('../../../mockjson/sponsors.json')\n+\n+if(!String.linkify) {\n+  String.prototype.linkify = function() {\n+    var urlPattern = /\\b(?:https?|ftp):\\/\\/[a-z0-9-+&@#\\/%?=~_|!:,.;]*[a-z0-9-+&@#\\/%=~_|]/gim;\n+    var pseudoUrlPattern = /(^|[^\\/])(www\\.[\\S]+(\\b|$))/gim;\n+    var emailAddressPattern = /[\\w.]+@[a-zA-Z_-]+?(?:\\.[a-zA-Z]{2,6})+/gim;\n+    return this\n+            .replace(urlPattern, '<a href=\"$&\">$&</a>')\n+            .replace(pseudoUrlPattern, '$1<a href=\"http://$2\">$2</a>')\n+            .replace(emailAddressPattern, '<a href=\"mailto:$&\">$&</a>');\n+  };\n+}\n+\n+handlebars.registerHelper('linkify', function (options) {\n+  var content = options.fn(this);\n+  return new handlebars.SafeString(content.linkify());\n+});\n+\n+function slugify(str) {\n+  if (str === undefined) {\n+    return \"\"\n+  }\n+  return str.replace(/[^\\w]/g, '-').replace(/-+/g, '-').toLowerCase()\n+}\n+\n+function speakerNameWithOrg(speaker) {\n+  return speaker.organisation ?\n+    `${speaker.name} (${speaker.organisation})` :\n+    speaker.name\n+}\n+\n+function foldByDate(tracks) {\n+  let dateMap = new Map()\n+\n+  tracks.forEach(track => {\n+    if (!dateMap.has(track.date)) dateMap.set(track.date, {\n+      caption: track.date,\n+      tracks: []\n+    })\n+    dateMap.get(track.date).tracks.push(track)\n+  })\n+\n+  let dates = Array.from(dateMap.values())\n+  dates.forEach(date => date.tracks.sort(byProperty('sortKey')))\n+\n+  return dates;\n+}\n+\n+function byProperty(key) {\n+  return (a, b) => {\n+    if (a[key] > b[key]) return 1\n+    if (a[key] < b[key]) return -1\n+    else return 0\n+  }\n+}\n+\n+function zeroFill(num) {\n+  if (num === undefined) {\n+    return \"\"\n+  }\n+  if (num >= 10) return num.toString()","path":"src/generator/backend/generator.js","position":74,"original_position":74,"commit_id":"6b6f5cfd630538618e10fe1d008992289ce1f28e","original_commit_id":"6b6f5cfd630538618e10fe1d008992289ce1f28e","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected '{' and instead saw 'return'.<br>Missing semicolon.","created_at":"2016-06-06T21:11:51Z","updated_at":"2016-06-06T21:11:51Z","html_url":"https://github.com/fossasia/open-event-webapp/pull/233#discussion_r65969965","pull_request_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/233","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments/65969965"},"html":{"href":"https://github.com/fossasia/open-event-webapp/pull/233#discussion_r65969965"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/233"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/233","id":72778724,"html_url":"https://github.com/fossasia/open-event-webapp/pull/233","diff_url":"https://github.com/fossasia/open-event-webapp/pull/233.diff","patch_url":"https://github.com/fossasia/open-event-webapp/pull/233.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/233","number":233,"state":"open","locked":false,"title":"create basic express app that runs the generator","user":{"login":"championswimmer","id":1327050,"avatar_url":"https://avatars.githubusercontent.com/u/1327050?v=3","gravatar_id":"","url":"https://api.github.com/users/championswimmer","html_url":"https://github.com/championswimmer","followers_url":"https://api.github.com/users/championswimmer/followers","following_url":"https://api.github.com/users/championswimmer/following{/other_user}","gists_url":"https://api.github.com/users/championswimmer/gists{/gist_id}","starred_url":"https://api.github.com/users/championswimmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/championswimmer/subscriptions","organizations_url":"https://api.github.com/users/championswimmer/orgs","repos_url":"https://api.github.com/users/championswimmer/repos","events_url":"https://api.github.com/users/championswimmer/events{/privacy}","received_events_url":"https://api.github.com/users/championswimmer/received_events","type":"User","site_admin":false},"body":"check this PR out,\r\n\r\nlocally run\r\n```\r\nnpm install\r\nnpm run server.generator\r\n```\r\n\r\nVisit localhost:3000 -> you'll see the form for generator\r\nVisit localhost:3000/generate -> you'll see OTS16 data schedule page\r\n\r\n\r\nSigned-off-by: Arnav Gupta <championswimmer@gmail.com>","created_at":"2016-06-06T21:11:39Z","updated_at":"2016-06-06T21:11:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"485fcc2c67bbb3693bcaa0e07d75565faed8a0e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/233/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/233/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/233/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/6b6f5cfd630538618e10fe1d008992289ce1f28e","head":{"label":"championswimmer:master_basic_generator_app","ref":"master_basic_generator_app","sha":"6b6f5cfd630538618e10fe1d008992289ce1f28e","user":{"login":"championswimmer","id":1327050,"avatar_url":"https://avatars.githubusercontent.com/u/1327050?v=3","gravatar_id":"","url":"https://api.github.com/users/championswimmer","html_url":"https://github.com/championswimmer","followers_url":"https://api.github.com/users/championswimmer/followers","following_url":"https://api.github.com/users/championswimmer/following{/other_user}","gists_url":"https://api.github.com/users/championswimmer/gists{/gist_id}","starred_url":"https://api.github.com/users/championswimmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/championswimmer/subscriptions","organizations_url":"https://api.github.com/users/championswimmer/orgs","repos_url":"https://api.github.com/users/championswimmer/repos","events_url":"https://api.github.com/users/championswimmer/events{/privacy}","received_events_url":"https://api.github.com/users/championswimmer/received_events","type":"User","site_admin":false},"repo":{"id":53207624,"name":"open-event-webapp","full_name":"championswimmer/open-event-webapp","owner":{"login":"championswimmer","id":1327050,"avatar_url":"https://avatars.githubusercontent.com/u/1327050?v=3","gravatar_id":"","url":"https://api.github.com/users/championswimmer","html_url":"https://github.com/championswimmer","followers_url":"https://api.github.com/users/championswimmer/followers","following_url":"https://api.github.com/users/championswimmer/following{/other_user}","gists_url":"https://api.github.com/users/championswimmer/gists{/gist_id}","starred_url":"https://api.github.com/users/championswimmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/championswimmer/subscriptions","organizations_url":"https://api.github.com/users/championswimmer/orgs","repos_url":"https://api.github.com/users/championswimmer/repos","events_url":"https://api.github.com/users/championswimmer/events{/privacy}","received_events_url":"https://api.github.com/users/championswimmer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/championswimmer/open-event-webapp","description":"Open Event Webapp","fork":true,"url":"https://api.github.com/repos/championswimmer/open-event-webapp","forks_url":"https://api.github.com/repos/championswimmer/open-event-webapp/forks","keys_url":"https://api.github.com/repos/championswimmer/open-event-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/championswimmer/open-event-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/championswimmer/open-event-webapp/teams","hooks_url":"https://api.github.com/repos/championswimmer/open-event-webapp/hooks","issue_events_url":"https://api.github.com/repos/championswimmer/open-event-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/championswimmer/open-event-webapp/events","assignees_url":"https://api.github.com/repos/championswimmer/open-event-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/championswimmer/open-event-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/championswimmer/open-event-webapp/tags","blobs_url":"https://api.github.com/repos/championswimmer/open-event-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/championswimmer/open-event-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/championswimmer/open-event-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/championswimmer/open-event-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/championswimmer/open-event-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/championswimmer/open-event-webapp/languages","stargazers_url":"https://api.github.com/repos/championswimmer/open-event-webapp/stargazers","contributors_url":"https://api.github.com/repos/championswimmer/open-event-webapp/contributors","subscribers_url":"https://api.github.com/repos/championswimmer/open-event-webapp/subscribers","subscription_url":"https://api.github.com/repos/championswimmer/open-event-webapp/subscription","commits_url":"https://api.github.com/repos/championswimmer/open-event-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/championswimmer/open-event-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/championswimmer/open-event-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/championswimmer/open-event-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/championswimmer/open-event-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/championswimmer/open-event-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/championswimmer/open-event-webapp/merges","archive_url":"https://api.github.com/repos/championswimmer/open-event-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/championswimmer/open-event-webapp/downloads","issues_url":"https://api.github.com/repos/championswimmer/open-event-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/championswimmer/open-event-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/championswimmer/open-event-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/championswimmer/open-event-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/championswimmer/open-event-webapp/labels{/name}","releases_url":"https://api.github.com/repos/championswimmer/open-event-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/championswimmer/open-event-webapp/deployments","created_at":"2016-03-05T15:18:15Z","updated_at":"2016-06-06T20:05:45Z","pushed_at":"2016-06-06T21:10:12Z","git_url":"git://github.com/championswimmer/open-event-webapp.git","ssh_url":"git@github.com:championswimmer/open-event-webapp.git","clone_url":"https://github.com/championswimmer/open-event-webapp.git","svn_url":"https://github.com/championswimmer/open-event-webapp","homepage":null,"size":1451,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fossasia:master","ref":"master","sha":"c00a394d662c8cbb50736c85120b97f36e9a9558","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35269905,"name":"open-event-webapp","full_name":"fossasia/open-event-webapp","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-webapp","description":"Open Event Webapp","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-webapp","forks_url":"https://api.github.com/repos/fossasia/open-event-webapp/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-webapp/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-webapp/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-webapp/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-webapp/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-webapp/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-webapp/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-webapp/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-webapp/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-webapp/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-webapp/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-webapp/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-webapp/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-webapp/deployments","created_at":"2015-05-08T09:11:00Z","updated_at":"2016-06-06T20:54:17Z","pushed_at":"2016-06-06T21:11:39Z","git_url":"git://github.com/fossasia/open-event-webapp.git","ssh_url":"git@github.com:fossasia/open-event-webapp.git","clone_url":"https://github.com/fossasia/open-event-webapp.git","svn_url":"https://github.com/fossasia/open-event-webapp","homepage":null,"size":10999,"stargazers_count":18,"watchers_count":18,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"open_issues_count":8,"forks":59,"open_issues":8,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/233"},"html":{"href":"https://github.com/fossasia/open-event-webapp/pull/233"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/issues/233"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/issues/233/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/233/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/233/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/6b6f5cfd630538618e10fe1d008992289ce1f28e"}}}}
{"actor":{"display_login":"houndci-bot"}}