{"action":"created","comment":{"url":"https://api.github.com/repos/apinfodesign/ES6features/pulls/comments/50923454","id":50923454,"diff_hunk":"@@ -0,0 +1,83 @@\n+// Program to evaluate how much a web site has changed over a time period.\n+// Uses \"natural\", an npm language processing module.\n+// Also provides demo of various ES6 syntax features -\n+\n+\"use strict\";\n+\n+function app( theurl, theurlHTML, hours ){\n+\n+    var http    = require('http' );\n+    var request = require('request');  //simplest http server\n+    var natural = require('natural');\n+    var server  = http.createServer();\n+\n+    //Example of ES6 class\n+    class DifferenceFinder {\n+        constructor(HTMLtime1 = '', HTMLtime2 = '') {\n+            this.first = HTMLtime1;\n+            this.second = HTMLtime2;\n+        }\n+        jarowinkler() {\n+            return natural.JaroWinklerDistance( this.first, this.second);\n+        }\n+        dice() {\n+            return natural.DiceCoefficient( this.first, this.second);\n+        }\n+    }\n+\n+    //example of ES6 class inheritance\n+    var measureFrequencySymbol = Symbol();\n+    class TimeStamper extends DifferenceFinder {\n+\n+        constructor(HTMLtime1, HTMLtime2, hours = 0) {\n+            super(HTMLtime1, HTMLtime2);      ///call constructor above\n+            this[measureFrequencySymbol] = hours;\n+        }\n+\n+        get measureFrequecy() {\n+            return this[measureFrequencySymbol];\n+        }\n+\n+        set measureFrequency(value) {\n+            if ( Number.isNaN(value) ) {\n+                return {error: 'measureFrequency must be greater than zero.'};\n+            }","path":"app.js","position":44,"original_position":44,"commit_id":"1744aa2ad5e24f762b61b8642a2fe35df024868f","original_commit_id":"1744aa2ad5e24f762b61b8642a2fe35df024868f","user":{"login":"martypdx","id":478864,"avatar_url":"https://avatars.githubusercontent.com/u/478864?v=3","gravatar_id":"","url":"https://api.github.com/users/martypdx","html_url":"https://github.com/martypdx","followers_url":"https://api.github.com/users/martypdx/followers","following_url":"https://api.github.com/users/martypdx/following{/other_user}","gists_url":"https://api.github.com/users/martypdx/gists{/gist_id}","starred_url":"https://api.github.com/users/martypdx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martypdx/subscriptions","organizations_url":"https://api.github.com/users/martypdx/orgs","repos_url":"https://api.github.com/users/martypdx/repos","events_url":"https://api.github.com/users/martypdx/events{/privacy}","received_events_url":"https://api.github.com/users/martypdx/received_events","type":"User","site_admin":false},"body":"but negative numbers return false for `Number.isNaN`","created_at":"2016-01-27T00:11:14Z","updated_at":"2016-01-27T00:11:14Z","html_url":"https://github.com/apinfodesign/ES6features/pull/1#discussion_r50923454","pull_request_url":"https://api.github.com/repos/apinfodesign/ES6features/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/apinfodesign/ES6features/pulls/comments/50923454"},"html":{"href":"https://github.com/apinfodesign/ES6features/pull/1#discussion_r50923454"},"pull_request":{"href":"https://api.github.com/repos/apinfodesign/ES6features/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/apinfodesign/ES6features/pulls/1","id":56845632,"html_url":"https://github.com/apinfodesign/ES6features/pull/1","diff_url":"https://github.com/apinfodesign/ES6features/pull/1.diff","patch_url":"https://github.com/apinfodesign/ES6features/pull/1.patch","issue_url":"https://api.github.com/repos/apinfodesign/ES6features/issues/1","number":1,"state":"open","locked":false,"title":"Dev","user":{"login":"apinfodesign","id":8674175,"avatar_url":"https://avatars.githubusercontent.com/u/8674175?v=3","gravatar_id":"","url":"https://api.github.com/users/apinfodesign","html_url":"https://github.com/apinfodesign","followers_url":"https://api.github.com/users/apinfodesign/followers","following_url":"https://api.github.com/users/apinfodesign/following{/other_user}","gists_url":"https://api.github.com/users/apinfodesign/gists{/gist_id}","starred_url":"https://api.github.com/users/apinfodesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinfodesign/subscriptions","organizations_url":"https://api.github.com/users/apinfodesign/orgs","repos_url":"https://api.github.com/users/apinfodesign/repos","events_url":"https://api.github.com/users/apinfodesign/events{/privacy}","received_events_url":"https://api.github.com/users/apinfodesign/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-22T04:28:07Z","updated_at":"2016-01-27T00:11:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f7b2bef184c7658e9fb1ca2b9509c85ba32dc35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apinfodesign/ES6features/pulls/1/commits","review_comments_url":"https://api.github.com/repos/apinfodesign/ES6features/pulls/1/comments","review_comment_url":"https://api.github.com/repos/apinfodesign/ES6features/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apinfodesign/ES6features/issues/1/comments","statuses_url":"https://api.github.com/repos/apinfodesign/ES6features/statuses/1744aa2ad5e24f762b61b8642a2fe35df024868f","head":{"label":"apinfodesign:dev","ref":"dev","sha":"1744aa2ad5e24f762b61b8642a2fe35df024868f","user":{"login":"apinfodesign","id":8674175,"avatar_url":"https://avatars.githubusercontent.com/u/8674175?v=3","gravatar_id":"","url":"https://api.github.com/users/apinfodesign","html_url":"https://github.com/apinfodesign","followers_url":"https://api.github.com/users/apinfodesign/followers","following_url":"https://api.github.com/users/apinfodesign/following{/other_user}","gists_url":"https://api.github.com/users/apinfodesign/gists{/gist_id}","starred_url":"https://api.github.com/users/apinfodesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinfodesign/subscriptions","organizations_url":"https://api.github.com/users/apinfodesign/orgs","repos_url":"https://api.github.com/users/apinfodesign/repos","events_url":"https://api.github.com/users/apinfodesign/events{/privacy}","received_events_url":"https://api.github.com/users/apinfodesign/received_events","type":"User","site_admin":false},"repo":{"id":50050071,"name":"ES6features","full_name":"apinfodesign/ES6features","owner":{"login":"apinfodesign","id":8674175,"avatar_url":"https://avatars.githubusercontent.com/u/8674175?v=3","gravatar_id":"","url":"https://api.github.com/users/apinfodesign","html_url":"https://github.com/apinfodesign","followers_url":"https://api.github.com/users/apinfodesign/followers","following_url":"https://api.github.com/users/apinfodesign/following{/other_user}","gists_url":"https://api.github.com/users/apinfodesign/gists{/gist_id}","starred_url":"https://api.github.com/users/apinfodesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinfodesign/subscriptions","organizations_url":"https://api.github.com/users/apinfodesign/orgs","repos_url":"https://api.github.com/users/apinfodesign/repos","events_url":"https://api.github.com/users/apinfodesign/events{/privacy}","received_events_url":"https://api.github.com/users/apinfodesign/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apinfodesign/ES6features","description":"Practice using various ES6 features","fork":false,"url":"https://api.github.com/repos/apinfodesign/ES6features","forks_url":"https://api.github.com/repos/apinfodesign/ES6features/forks","keys_url":"https://api.github.com/repos/apinfodesign/ES6features/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apinfodesign/ES6features/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apinfodesign/ES6features/teams","hooks_url":"https://api.github.com/repos/apinfodesign/ES6features/hooks","issue_events_url":"https://api.github.com/repos/apinfodesign/ES6features/issues/events{/number}","events_url":"https://api.github.com/repos/apinfodesign/ES6features/events","assignees_url":"https://api.github.com/repos/apinfodesign/ES6features/assignees{/user}","branches_url":"https://api.github.com/repos/apinfodesign/ES6features/branches{/branch}","tags_url":"https://api.github.com/repos/apinfodesign/ES6features/tags","blobs_url":"https://api.github.com/repos/apinfodesign/ES6features/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apinfodesign/ES6features/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apinfodesign/ES6features/git/refs{/sha}","trees_url":"https://api.github.com/repos/apinfodesign/ES6features/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apinfodesign/ES6features/statuses/{sha}","languages_url":"https://api.github.com/repos/apinfodesign/ES6features/languages","stargazers_url":"https://api.github.com/repos/apinfodesign/ES6features/stargazers","contributors_url":"https://api.github.com/repos/apinfodesign/ES6features/contributors","subscribers_url":"https://api.github.com/repos/apinfodesign/ES6features/subscribers","subscription_url":"https://api.github.com/repos/apinfodesign/ES6features/subscription","commits_url":"https://api.github.com/repos/apinfodesign/ES6features/commits{/sha}","git_commits_url":"https://api.github.com/repos/apinfodesign/ES6features/git/commits{/sha}","comments_url":"https://api.github.com/repos/apinfodesign/ES6features/comments{/number}","issue_comment_url":"https://api.github.com/repos/apinfodesign/ES6features/issues/comments{/number}","contents_url":"https://api.github.com/repos/apinfodesign/ES6features/contents/{+path}","compare_url":"https://api.github.com/repos/apinfodesign/ES6features/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apinfodesign/ES6features/merges","archive_url":"https://api.github.com/repos/apinfodesign/ES6features/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apinfodesign/ES6features/downloads","issues_url":"https://api.github.com/repos/apinfodesign/ES6features/issues{/number}","pulls_url":"https://api.github.com/repos/apinfodesign/ES6features/pulls{/number}","milestones_url":"https://api.github.com/repos/apinfodesign/ES6features/milestones{/number}","notifications_url":"https://api.github.com/repos/apinfodesign/ES6features/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apinfodesign/ES6features/labels{/name}","releases_url":"https://api.github.com/repos/apinfodesign/ES6features/releases{/id}","deployments_url":"https://api.github.com/repos/apinfodesign/ES6features/deployments","created_at":"2016-01-20T18:16:28Z","updated_at":"2016-01-20T18:16:28Z","pushed_at":"2016-01-22T04:28:07Z","git_url":"git://github.com/apinfodesign/ES6features.git","ssh_url":"git@github.com:apinfodesign/ES6features.git","clone_url":"https://github.com/apinfodesign/ES6features.git","svn_url":"https://github.com/apinfodesign/ES6features","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"apinfodesign:master","ref":"master","sha":"97b41c9866ffeb9f79651832d7c7490bdd68e935","user":{"login":"apinfodesign","id":8674175,"avatar_url":"https://avatars.githubusercontent.com/u/8674175?v=3","gravatar_id":"","url":"https://api.github.com/users/apinfodesign","html_url":"https://github.com/apinfodesign","followers_url":"https://api.github.com/users/apinfodesign/followers","following_url":"https://api.github.com/users/apinfodesign/following{/other_user}","gists_url":"https://api.github.com/users/apinfodesign/gists{/gist_id}","starred_url":"https://api.github.com/users/apinfodesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinfodesign/subscriptions","organizations_url":"https://api.github.com/users/apinfodesign/orgs","repos_url":"https://api.github.com/users/apinfodesign/repos","events_url":"https://api.github.com/users/apinfodesign/events{/privacy}","received_events_url":"https://api.github.com/users/apinfodesign/received_events","type":"User","site_admin":false},"repo":{"id":50050071,"name":"ES6features","full_name":"apinfodesign/ES6features","owner":{"login":"apinfodesign","id":8674175,"avatar_url":"https://avatars.githubusercontent.com/u/8674175?v=3","gravatar_id":"","url":"https://api.github.com/users/apinfodesign","html_url":"https://github.com/apinfodesign","followers_url":"https://api.github.com/users/apinfodesign/followers","following_url":"https://api.github.com/users/apinfodesign/following{/other_user}","gists_url":"https://api.github.com/users/apinfodesign/gists{/gist_id}","starred_url":"https://api.github.com/users/apinfodesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinfodesign/subscriptions","organizations_url":"https://api.github.com/users/apinfodesign/orgs","repos_url":"https://api.github.com/users/apinfodesign/repos","events_url":"https://api.github.com/users/apinfodesign/events{/privacy}","received_events_url":"https://api.github.com/users/apinfodesign/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apinfodesign/ES6features","description":"Practice using various ES6 features","fork":false,"url":"https://api.github.com/repos/apinfodesign/ES6features","forks_url":"https://api.github.com/repos/apinfodesign/ES6features/forks","keys_url":"https://api.github.com/repos/apinfodesign/ES6features/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apinfodesign/ES6features/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apinfodesign/ES6features/teams","hooks_url":"https://api.github.com/repos/apinfodesign/ES6features/hooks","issue_events_url":"https://api.github.com/repos/apinfodesign/ES6features/issues/events{/number}","events_url":"https://api.github.com/repos/apinfodesign/ES6features/events","assignees_url":"https://api.github.com/repos/apinfodesign/ES6features/assignees{/user}","branches_url":"https://api.github.com/repos/apinfodesign/ES6features/branches{/branch}","tags_url":"https://api.github.com/repos/apinfodesign/ES6features/tags","blobs_url":"https://api.github.com/repos/apinfodesign/ES6features/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apinfodesign/ES6features/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apinfodesign/ES6features/git/refs{/sha}","trees_url":"https://api.github.com/repos/apinfodesign/ES6features/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apinfodesign/ES6features/statuses/{sha}","languages_url":"https://api.github.com/repos/apinfodesign/ES6features/languages","stargazers_url":"https://api.github.com/repos/apinfodesign/ES6features/stargazers","contributors_url":"https://api.github.com/repos/apinfodesign/ES6features/contributors","subscribers_url":"https://api.github.com/repos/apinfodesign/ES6features/subscribers","subscription_url":"https://api.github.com/repos/apinfodesign/ES6features/subscription","commits_url":"https://api.github.com/repos/apinfodesign/ES6features/commits{/sha}","git_commits_url":"https://api.github.com/repos/apinfodesign/ES6features/git/commits{/sha}","comments_url":"https://api.github.com/repos/apinfodesign/ES6features/comments{/number}","issue_comment_url":"https://api.github.com/repos/apinfodesign/ES6features/issues/comments{/number}","contents_url":"https://api.github.com/repos/apinfodesign/ES6features/contents/{+path}","compare_url":"https://api.github.com/repos/apinfodesign/ES6features/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apinfodesign/ES6features/merges","archive_url":"https://api.github.com/repos/apinfodesign/ES6features/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apinfodesign/ES6features/downloads","issues_url":"https://api.github.com/repos/apinfodesign/ES6features/issues{/number}","pulls_url":"https://api.github.com/repos/apinfodesign/ES6features/pulls{/number}","milestones_url":"https://api.github.com/repos/apinfodesign/ES6features/milestones{/number}","notifications_url":"https://api.github.com/repos/apinfodesign/ES6features/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apinfodesign/ES6features/labels{/name}","releases_url":"https://api.github.com/repos/apinfodesign/ES6features/releases{/id}","deployments_url":"https://api.github.com/repos/apinfodesign/ES6features/deployments","created_at":"2016-01-20T18:16:28Z","updated_at":"2016-01-20T18:16:28Z","pushed_at":"2016-01-22T04:28:07Z","git_url":"git://github.com/apinfodesign/ES6features.git","ssh_url":"git@github.com:apinfodesign/ES6features.git","clone_url":"https://github.com/apinfodesign/ES6features.git","svn_url":"https://github.com/apinfodesign/ES6features","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apinfodesign/ES6features/pulls/1"},"html":{"href":"https://github.com/apinfodesign/ES6features/pull/1"},"issue":{"href":"https://api.github.com/repos/apinfodesign/ES6features/issues/1"},"comments":{"href":"https://api.github.com/repos/apinfodesign/ES6features/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/apinfodesign/ES6features/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/apinfodesign/ES6features/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apinfodesign/ES6features/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/apinfodesign/ES6features/statuses/1744aa2ad5e24f762b61b8642a2fe35df024868f"}}}}