{"action":"created","comment":{"url":"https://api.github.com/repos/fjordllc/interns/pulls/comments/54362714","id":54362714,"diff_hunk":"@@ -0,0 +1,168 @@\n+var assert = require(\"assert\"),\n+    path = require(\"path\"),\n+    entities = require(\"../\");\n+\n+describe(\"Encode->decode test\", function(){\n+\tvar testcases = [\n+\t\t{\n+\t\t\tinput: \"asdf & ÿ ü '\",\n+\t\t\txml: \"asdf &amp; &#xFF; &#xFC; &apos;\",\n+\t\t\thtml: \"asdf &amp; &yuml; &uuml; &apos;\"\n+\t\t}, {\n+\t\t\tinput: \"&#38;\",\n+\t\t\txml: \"&amp;#38;\",\n+\t\t\thtml: \"&amp;&num;38&semi;\"\n+\t\t},\n+\t];\n+\ttestcases.forEach(function(tc) {\n+\t\tvar encodedXML = entities.encodeXML(tc.input);\n+\t\tit(\"should XML encode \" + tc.input, function(){\n+\t\t\tassert.equal(encodedXML, tc.xml);\n+\t\t});\n+\t\tit(\"should default to XML encode \" + tc.input, function(){\n+\t\t\tassert.equal(entities.encode(tc.input), tc.xml);\n+\t\t});\n+\t\tit(\"should XML decode \" + encodedXML, function(){\n+\t\t\tassert.equal(entities.decodeXML(encodedXML), tc.input);\n+\t\t});\n+\t\tit(\"should default to XML encode \" + encodedXML, function(){\n+\t\t\tassert.equal(entities.decode(encodedXML), tc.input);\n+\t\t});\n+\t\tit(\"should default strict to XML encode \" + encodedXML, function(){\n+\t\t\tassert.equal(entities.decodeStrict(encodedXML), tc.input);\n+\t\t});\n+\n+\t\tvar encodedHTML5 = entities.encodeHTML5(tc.input);\n+\t\tit(\"should HTML5 encode \" + tc.input, function(){\n+\t\t\tassert.equal(encodedHTML5, tc.html);\n+\t\t});\n+\t\tit(\"should HTML5 decode \" + encodedHTML5, function(){\n+\t\t\tassert.equal(entities.decodeHTML(encodedHTML5), tc.input);\n+\t\t});\n+\t});\n+\n+\tit(\"should encode data URIs (issue 16)\", function(){\n+\t\tvar data = \"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAALAAABAAEAAAIBRAA7\";","path":"node_modules/entities/test/test.js","position":45,"original_position":45,"commit_id":"25ecd7b5733dd7b3b469626e0fa73d9969da68bc","original_commit_id":"25ecd7b5733dd7b3b469626e0fa73d9969da68bc","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":"Line is too long.","created_at":"2016-02-29T01:43:18Z","updated_at":"2016-02-29T01:43:18Z","html_url":"https://github.com/fjordllc/interns/pull/110#discussion_r54362714","pull_request_url":"https://api.github.com/repos/fjordllc/interns/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/comments/54362714"},"html":{"href":"https://github.com/fjordllc/interns/pull/110#discussion_r54362714"},"pull_request":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/fjordllc/interns/pulls/110","id":61017711,"html_url":"https://github.com/fjordllc/interns/pull/110","diff_url":"https://github.com/fjordllc/interns/pull/110.diff","patch_url":"https://github.com/fjordllc/interns/pull/110.patch","issue_url":"https://api.github.com/repos/fjordllc/interns/issues/110","number":110,"state":"open","locked":false,"title":"[WIP] Add copy button in Reports","user":{"login":"poyopoyo0","id":10114122,"avatar_url":"https://avatars.githubusercontent.com/u/10114122?v=3","gravatar_id":"","url":"https://api.github.com/users/poyopoyo0","html_url":"https://github.com/poyopoyo0","followers_url":"https://api.github.com/users/poyopoyo0/followers","following_url":"https://api.github.com/users/poyopoyo0/following{/other_user}","gists_url":"https://api.github.com/users/poyopoyo0/gists{/gist_id}","starred_url":"https://api.github.com/users/poyopoyo0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poyopoyo0/subscriptions","organizations_url":"https://api.github.com/users/poyopoyo0/orgs","repos_url":"https://api.github.com/users/poyopoyo0/repos","events_url":"https://api.github.com/users/poyopoyo0/events{/privacy}","received_events_url":"https://api.github.com/users/poyopoyo0/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-02-29T01:42:30Z","updated_at":"2016-02-29T01:43:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27be850dcb07a8f72aff35c9fa7dfb267b75279a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fjordllc/interns/pulls/110/commits","review_comments_url":"https://api.github.com/repos/fjordllc/interns/pulls/110/comments","review_comment_url":"https://api.github.com/repos/fjordllc/interns/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fjordllc/interns/issues/110/comments","statuses_url":"https://api.github.com/repos/fjordllc/interns/statuses/25ecd7b5733dd7b3b469626e0fa73d9969da68bc","head":{"label":"fjordllc:add-copy-reports","ref":"add-copy-reports","sha":"25ecd7b5733dd7b3b469626e0fa73d9969da68bc","user":{"login":"fjordllc","id":1106666,"avatar_url":"https://avatars.githubusercontent.com/u/1106666?v=3","gravatar_id":"","url":"https://api.github.com/users/fjordllc","html_url":"https://github.com/fjordllc","followers_url":"https://api.github.com/users/fjordllc/followers","following_url":"https://api.github.com/users/fjordllc/following{/other_user}","gists_url":"https://api.github.com/users/fjordllc/gists{/gist_id}","starred_url":"https://api.github.com/users/fjordllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjordllc/subscriptions","organizations_url":"https://api.github.com/users/fjordllc/orgs","repos_url":"https://api.github.com/users/fjordllc/repos","events_url":"https://api.github.com/users/fjordllc/events{/privacy}","received_events_url":"https://api.github.com/users/fjordllc/received_events","type":"Organization","site_admin":false},"repo":{"id":5139175,"name":"interns","full_name":"fjordllc/interns","owner":{"login":"fjordllc","id":1106666,"avatar_url":"https://avatars.githubusercontent.com/u/1106666?v=3","gravatar_id":"","url":"https://api.github.com/users/fjordllc","html_url":"https://github.com/fjordllc","followers_url":"https://api.github.com/users/fjordllc/followers","following_url":"https://api.github.com/users/fjordllc/following{/other_user}","gists_url":"https://api.github.com/users/fjordllc/gists{/gist_id}","starred_url":"https://api.github.com/users/fjordllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjordllc/subscriptions","organizations_url":"https://api.github.com/users/fjordllc/orgs","repos_url":"https://api.github.com/users/fjordllc/repos","events_url":"https://api.github.com/users/fjordllc/events{/privacy}","received_events_url":"https://api.github.com/users/fjordllc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fjordllc/interns","description":"Interns and E-Learning Management System.","fork":false,"url":"https://api.github.com/repos/fjordllc/interns","forks_url":"https://api.github.com/repos/fjordllc/interns/forks","keys_url":"https://api.github.com/repos/fjordllc/interns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fjordllc/interns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fjordllc/interns/teams","hooks_url":"https://api.github.com/repos/fjordllc/interns/hooks","issue_events_url":"https://api.github.com/repos/fjordllc/interns/issues/events{/number}","events_url":"https://api.github.com/repos/fjordllc/interns/events","assignees_url":"https://api.github.com/repos/fjordllc/interns/assignees{/user}","branches_url":"https://api.github.com/repos/fjordllc/interns/branches{/branch}","tags_url":"https://api.github.com/repos/fjordllc/interns/tags","blobs_url":"https://api.github.com/repos/fjordllc/interns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fjordllc/interns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fjordllc/interns/git/refs{/sha}","trees_url":"https://api.github.com/repos/fjordllc/interns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fjordllc/interns/statuses/{sha}","languages_url":"https://api.github.com/repos/fjordllc/interns/languages","stargazers_url":"https://api.github.com/repos/fjordllc/interns/stargazers","contributors_url":"https://api.github.com/repos/fjordllc/interns/contributors","subscribers_url":"https://api.github.com/repos/fjordllc/interns/subscribers","subscription_url":"https://api.github.com/repos/fjordllc/interns/subscription","commits_url":"https://api.github.com/repos/fjordllc/interns/commits{/sha}","git_commits_url":"https://api.github.com/repos/fjordllc/interns/git/commits{/sha}","comments_url":"https://api.github.com/repos/fjordllc/interns/comments{/number}","issue_comment_url":"https://api.github.com/repos/fjordllc/interns/issues/comments{/number}","contents_url":"https://api.github.com/repos/fjordllc/interns/contents/{+path}","compare_url":"https://api.github.com/repos/fjordllc/interns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fjordllc/interns/merges","archive_url":"https://api.github.com/repos/fjordllc/interns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fjordllc/interns/downloads","issues_url":"https://api.github.com/repos/fjordllc/interns/issues{/number}","pulls_url":"https://api.github.com/repos/fjordllc/interns/pulls{/number}","milestones_url":"https://api.github.com/repos/fjordllc/interns/milestones{/number}","notifications_url":"https://api.github.com/repos/fjordllc/interns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fjordllc/interns/labels{/name}","releases_url":"https://api.github.com/repos/fjordllc/interns/releases{/id}","deployments_url":"https://api.github.com/repos/fjordllc/interns/deployments","created_at":"2012-07-22T04:59:57Z","updated_at":"2016-01-15T01:51:52Z","pushed_at":"2016-02-29T01:42:30Z","git_url":"git://github.com/fjordllc/interns.git","ssh_url":"git@github.com:fjordllc/interns.git","clone_url":"https://github.com/fjordllc/interns.git","svn_url":"https://github.com/fjordllc/interns","homepage":"","size":14866,"stargazers_count":31,"watchers_count":31,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":17,"forks":6,"open_issues":17,"watchers":31,"default_branch":"master"}},"base":{"label":"fjordllc:master","ref":"master","sha":"fc7744c1514d9342fe5a12f36909d0e3feb149b9","user":{"login":"fjordllc","id":1106666,"avatar_url":"https://avatars.githubusercontent.com/u/1106666?v=3","gravatar_id":"","url":"https://api.github.com/users/fjordllc","html_url":"https://github.com/fjordllc","followers_url":"https://api.github.com/users/fjordllc/followers","following_url":"https://api.github.com/users/fjordllc/following{/other_user}","gists_url":"https://api.github.com/users/fjordllc/gists{/gist_id}","starred_url":"https://api.github.com/users/fjordllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjordllc/subscriptions","organizations_url":"https://api.github.com/users/fjordllc/orgs","repos_url":"https://api.github.com/users/fjordllc/repos","events_url":"https://api.github.com/users/fjordllc/events{/privacy}","received_events_url":"https://api.github.com/users/fjordllc/received_events","type":"Organization","site_admin":false},"repo":{"id":5139175,"name":"interns","full_name":"fjordllc/interns","owner":{"login":"fjordllc","id":1106666,"avatar_url":"https://avatars.githubusercontent.com/u/1106666?v=3","gravatar_id":"","url":"https://api.github.com/users/fjordllc","html_url":"https://github.com/fjordllc","followers_url":"https://api.github.com/users/fjordllc/followers","following_url":"https://api.github.com/users/fjordllc/following{/other_user}","gists_url":"https://api.github.com/users/fjordllc/gists{/gist_id}","starred_url":"https://api.github.com/users/fjordllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjordllc/subscriptions","organizations_url":"https://api.github.com/users/fjordllc/orgs","repos_url":"https://api.github.com/users/fjordllc/repos","events_url":"https://api.github.com/users/fjordllc/events{/privacy}","received_events_url":"https://api.github.com/users/fjordllc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fjordllc/interns","description":"Interns and E-Learning Management System.","fork":false,"url":"https://api.github.com/repos/fjordllc/interns","forks_url":"https://api.github.com/repos/fjordllc/interns/forks","keys_url":"https://api.github.com/repos/fjordllc/interns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fjordllc/interns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fjordllc/interns/teams","hooks_url":"https://api.github.com/repos/fjordllc/interns/hooks","issue_events_url":"https://api.github.com/repos/fjordllc/interns/issues/events{/number}","events_url":"https://api.github.com/repos/fjordllc/interns/events","assignees_url":"https://api.github.com/repos/fjordllc/interns/assignees{/user}","branches_url":"https://api.github.com/repos/fjordllc/interns/branches{/branch}","tags_url":"https://api.github.com/repos/fjordllc/interns/tags","blobs_url":"https://api.github.com/repos/fjordllc/interns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fjordllc/interns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fjordllc/interns/git/refs{/sha}","trees_url":"https://api.github.com/repos/fjordllc/interns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fjordllc/interns/statuses/{sha}","languages_url":"https://api.github.com/repos/fjordllc/interns/languages","stargazers_url":"https://api.github.com/repos/fjordllc/interns/stargazers","contributors_url":"https://api.github.com/repos/fjordllc/interns/contributors","subscribers_url":"https://api.github.com/repos/fjordllc/interns/subscribers","subscription_url":"https://api.github.com/repos/fjordllc/interns/subscription","commits_url":"https://api.github.com/repos/fjordllc/interns/commits{/sha}","git_commits_url":"https://api.github.com/repos/fjordllc/interns/git/commits{/sha}","comments_url":"https://api.github.com/repos/fjordllc/interns/comments{/number}","issue_comment_url":"https://api.github.com/repos/fjordllc/interns/issues/comments{/number}","contents_url":"https://api.github.com/repos/fjordllc/interns/contents/{+path}","compare_url":"https://api.github.com/repos/fjordllc/interns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fjordllc/interns/merges","archive_url":"https://api.github.com/repos/fjordllc/interns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fjordllc/interns/downloads","issues_url":"https://api.github.com/repos/fjordllc/interns/issues{/number}","pulls_url":"https://api.github.com/repos/fjordllc/interns/pulls{/number}","milestones_url":"https://api.github.com/repos/fjordllc/interns/milestones{/number}","notifications_url":"https://api.github.com/repos/fjordllc/interns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fjordllc/interns/labels{/name}","releases_url":"https://api.github.com/repos/fjordllc/interns/releases{/id}","deployments_url":"https://api.github.com/repos/fjordllc/interns/deployments","created_at":"2012-07-22T04:59:57Z","updated_at":"2016-01-15T01:51:52Z","pushed_at":"2016-02-29T01:42:30Z","git_url":"git://github.com/fjordllc/interns.git","ssh_url":"git@github.com:fjordllc/interns.git","clone_url":"https://github.com/fjordllc/interns.git","svn_url":"https://github.com/fjordllc/interns","homepage":"","size":14866,"stargazers_count":31,"watchers_count":31,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":17,"forks":6,"open_issues":17,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/110"},"html":{"href":"https://github.com/fjordllc/interns/pull/110"},"issue":{"href":"https://api.github.com/repos/fjordllc/interns/issues/110"},"comments":{"href":"https://api.github.com/repos/fjordllc/interns/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fjordllc/interns/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/fjordllc/interns/statuses/25ecd7b5733dd7b3b469626e0fa73d9969da68bc"}}}}