{"action":"created","comment":{"url":"https://api.github.com/repos/gauriramesh/Rosie/pulls/comments/170667206","pull_request_review_id":99387818,"id":170667206,"diff_hunk":"@@ -99,4 +106,74 @@ getKeywordMatches = (keywords)=>{\n \n getKeyReplacements = (keywordMatches, keywords)=>{\n     return keywordMatches.map((word)=>WORDS.words[keywords.indexOf(word.toLowerCase())].replacement);\n-}\n\\ No newline at end of file\n+}\n+\n+//Displays progress bar with initial analysis of the confidence of the text.\n+initializeProgressBar = () => {\n+    let initialAnalysis = getPercentages();\n+    $(\"#myBar\").css(\"dislay\", \"inline\");\n+    if(initialAnalysis !== 0) {\n+        $(\"#myBar\").css(\"width\", `${initialAnalysis}%`);\n+    } else {\n+        $(\"#myBar\").css(\"width\", \"100%\");\n+    }\n+    $(\"#myBar\").html(`${initialAnalysis}%`);\n+    if(initialAnalysis <= 50) {\n+        $(\"#myBar\").css(\"background-color\", \"#b22222\");\n+    } \n+    else {\n+        $(\"#myBar\").css(\"background-color\", \"#2f88c4\");\n+    }\n+    return initialAnalysis;\n+}\n+\n+//Currently calculates percentages based on number of sentences that contain a keyword.\n+getPercentages = () => {\n+    let input  = $(\"#popupMessage\").html().toString();\n+    input = removeCode(input);\n+    let percent = 0;\n+    let sentenceArr = input.match(/\\S.*?\\.\"?(?=\\s|$)/g);","path":"analyzeText.js","position":59,"original_position":59,"commit_id":"586882308aa91344b925f2efd704a59b0dbd4b70","original_commit_id":"586882308aa91344b925f2efd704a59b0dbd4b70","user":{"login":"ckrueger6","id":21688928,"avatar_url":"https://avatars0.githubusercontent.com/u/21688928?v=4","gravatar_id":"","url":"https://api.github.com/users/ckrueger6","html_url":"https://github.com/ckrueger6","followers_url":"https://api.github.com/users/ckrueger6/followers","following_url":"https://api.github.com/users/ckrueger6/following{/other_user}","gists_url":"https://api.github.com/users/ckrueger6/gists{/gist_id}","starred_url":"https://api.github.com/users/ckrueger6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckrueger6/subscriptions","organizations_url":"https://api.github.com/users/ckrueger6/orgs","repos_url":"https://api.github.com/users/ckrueger6/repos","events_url":"https://api.github.com/users/ckrueger6/events{/privacy}","received_events_url":"https://api.github.com/users/ckrueger6/received_events","type":"User","site_admin":false},"body":"Does this account for \"!\" as a sentence ending?","created_at":"2018-02-26T17:14:59Z","updated_at":"2018-02-26T17:14:59Z","html_url":"https://github.com/gauriramesh/Rosie/pull/10#discussion_r170667206","pull_request_url":"https://api.github.com/repos/gauriramesh/Rosie/pulls/10","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/gauriramesh/Rosie/pulls/comments/170667206"},"html":{"href":"https://github.com/gauriramesh/Rosie/pull/10#discussion_r170667206"},"pull_request":{"href":"https://api.github.com/repos/gauriramesh/Rosie/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/gauriramesh/Rosie/pulls/10","id":171241309,"html_url":"https://github.com/gauriramesh/Rosie/pull/10","diff_url":"https://github.com/gauriramesh/Rosie/pull/10.diff","patch_url":"https://github.com/gauriramesh/Rosie/pull/10.patch","issue_url":"https://api.github.com/repos/gauriramesh/Rosie/issues/10","number":10,"state":"open","locked":false,"title":"Progress Bar","user":{"login":"gauriramesh","id":21688954,"avatar_url":"https://avatars1.githubusercontent.com/u/21688954?v=4","gravatar_id":"","url":"https://api.github.com/users/gauriramesh","html_url":"https://github.com/gauriramesh","followers_url":"https://api.github.com/users/gauriramesh/followers","following_url":"https://api.github.com/users/gauriramesh/following{/other_user}","gists_url":"https://api.github.com/users/gauriramesh/gists{/gist_id}","starred_url":"https://api.github.com/users/gauriramesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauriramesh/subscriptions","organizations_url":"https://api.github.com/users/gauriramesh/orgs","repos_url":"https://api.github.com/users/gauriramesh/repos","events_url":"https://api.github.com/users/gauriramesh/events{/privacy}","received_events_url":"https://api.github.com/users/gauriramesh/received_events","type":"User","site_admin":false},"body":"-Added a progress bar that determines the confidence of your document by calculating the number of sentences that have unconfident words in them. The bar dynamically changes each time a word is accepted and goes to 100% when all changes are accepted. The bar also changes color depending on how far along the progress is.\r\n-Tweaked CSS to make room for the progress bar. This included changing the positioning of some buttons and moving the instructions to the top of the page. (I also changed the instructions to be navy blue to go with our color scheme). ","created_at":"2018-02-25T17:33:04Z","updated_at":"2018-02-26T17:17:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f791a804a3bddca3c84659a9fece489c3be15b34","assignee":null,"assignees":[],"requested_reviewers":[{"login":"allisoninman","id":19307648,"avatar_url":"https://avatars1.githubusercontent.com/u/19307648?v=4","gravatar_id":"","url":"https://api.github.com/users/allisoninman","html_url":"https://github.com/allisoninman","followers_url":"https://api.github.com/users/allisoninman/followers","following_url":"https://api.github.com/users/allisoninman/following{/other_user}","gists_url":"https://api.github.com/users/allisoninman/gists{/gist_id}","starred_url":"https://api.github.com/users/allisoninman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allisoninman/subscriptions","organizations_url":"https://api.github.com/users/allisoninman/orgs","repos_url":"https://api.github.com/users/allisoninman/repos","events_url":"https://api.github.com/users/allisoninman/events{/privacy}","received_events_url":"https://api.github.com/users/allisoninman/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gauriramesh/Rosie/pulls/10/commits","review_comments_url":"https://api.github.com/repos/gauriramesh/Rosie/pulls/10/comments","review_comment_url":"https://api.github.com/repos/gauriramesh/Rosie/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gauriramesh/Rosie/issues/10/comments","statuses_url":"https://api.github.com/repos/gauriramesh/Rosie/statuses/586882308aa91344b925f2efd704a59b0dbd4b70","head":{"label":"gauriramesh:progressBar","ref":"progressBar","sha":"586882308aa91344b925f2efd704a59b0dbd4b70","user":{"login":"gauriramesh","id":21688954,"avatar_url":"https://avatars1.githubusercontent.com/u/21688954?v=4","gravatar_id":"","url":"https://api.github.com/users/gauriramesh","html_url":"https://github.com/gauriramesh","followers_url":"https://api.github.com/users/gauriramesh/followers","following_url":"https://api.github.com/users/gauriramesh/following{/other_user}","gists_url":"https://api.github.com/users/gauriramesh/gists{/gist_id}","starred_url":"https://api.github.com/users/gauriramesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauriramesh/subscriptions","organizations_url":"https://api.github.com/users/gauriramesh/orgs","repos_url":"https://api.github.com/users/gauriramesh/repos","events_url":"https://api.github.com/users/gauriramesh/events{/privacy}","received_events_url":"https://api.github.com/users/gauriramesh/received_events","type":"User","site_admin":false},"repo":{"id":119071304,"name":"Rosie","full_name":"gauriramesh/Rosie","owner":{"login":"gauriramesh","id":21688954,"avatar_url":"https://avatars1.githubusercontent.com/u/21688954?v=4","gravatar_id":"","url":"https://api.github.com/users/gauriramesh","html_url":"https://github.com/gauriramesh","followers_url":"https://api.github.com/users/gauriramesh/followers","following_url":"https://api.github.com/users/gauriramesh/following{/other_user}","gists_url":"https://api.github.com/users/gauriramesh/gists{/gist_id}","starred_url":"https://api.github.com/users/gauriramesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauriramesh/subscriptions","organizations_url":"https://api.github.com/users/gauriramesh/orgs","repos_url":"https://api.github.com/users/gauriramesh/repos","events_url":"https://api.github.com/users/gauriramesh/events{/privacy}","received_events_url":"https://api.github.com/users/gauriramesh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gauriramesh/Rosie","description":"Project for HackerEarth's International Women's Hackathon: https://www.hackerearth.com/sprints/international-women-hackathon-2018/","fork":false,"url":"https://api.github.com/repos/gauriramesh/Rosie","forks_url":"https://api.github.com/repos/gauriramesh/Rosie/forks","keys_url":"https://api.github.com/repos/gauriramesh/Rosie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gauriramesh/Rosie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gauriramesh/Rosie/teams","hooks_url":"https://api.github.com/repos/gauriramesh/Rosie/hooks","issue_events_url":"https://api.github.com/repos/gauriramesh/Rosie/issues/events{/number}","events_url":"https://api.github.com/repos/gauriramesh/Rosie/events","assignees_url":"https://api.github.com/repos/gauriramesh/Rosie/assignees{/user}","branches_url":"https://api.github.com/repos/gauriramesh/Rosie/branches{/branch}","tags_url":"https://api.github.com/repos/gauriramesh/Rosie/tags","blobs_url":"https://api.github.com/repos/gauriramesh/Rosie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gauriramesh/Rosie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gauriramesh/Rosie/git/refs{/sha}","trees_url":"https://api.github.com/repos/gauriramesh/Rosie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gauriramesh/Rosie/statuses/{sha}","languages_url":"https://api.github.com/repos/gauriramesh/Rosie/languages","stargazers_url":"https://api.github.com/repos/gauriramesh/Rosie/stargazers","contributors_url":"https://api.github.com/repos/gauriramesh/Rosie/contributors","subscribers_url":"https://api.github.com/repos/gauriramesh/Rosie/subscribers","subscription_url":"https://api.github.com/repos/gauriramesh/Rosie/subscription","commits_url":"https://api.github.com/repos/gauriramesh/Rosie/commits{/sha}","git_commits_url":"https://api.github.com/repos/gauriramesh/Rosie/git/commits{/sha}","comments_url":"https://api.github.com/repos/gauriramesh/Rosie/comments{/number}","issue_comment_url":"https://api.github.com/repos/gauriramesh/Rosie/issues/comments{/number}","contents_url":"https://api.github.com/repos/gauriramesh/Rosie/contents/{+path}","compare_url":"https://api.github.com/repos/gauriramesh/Rosie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gauriramesh/Rosie/merges","archive_url":"https://api.github.com/repos/gauriramesh/Rosie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gauriramesh/Rosie/downloads","issues_url":"https://api.github.com/repos/gauriramesh/Rosie/issues{/number}","pulls_url":"https://api.github.com/repos/gauriramesh/Rosie/pulls{/number}","milestones_url":"https://api.github.com/repos/gauriramesh/Rosie/milestones{/number}","notifications_url":"https://api.github.com/repos/gauriramesh/Rosie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gauriramesh/Rosie/labels{/name}","releases_url":"https://api.github.com/repos/gauriramesh/Rosie/releases{/id}","deployments_url":"https://api.github.com/repos/gauriramesh/Rosie/deployments","created_at":"2018-01-26T15:54:08Z","updated_at":"2018-02-16T20:00:48Z","pushed_at":"2018-02-26T16:19:39Z","git_url":"git://github.com/gauriramesh/Rosie.git","ssh_url":"git@github.com:gauriramesh/Rosie.git","clone_url":"https://github.com/gauriramesh/Rosie.git","svn_url":"https://github.com/gauriramesh/Rosie","homepage":null,"size":246,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"gauriramesh:master","ref":"master","sha":"a451eb801cc6063d9675796ca8f6917df1f08967","user":{"login":"gauriramesh","id":21688954,"avatar_url":"https://avatars1.githubusercontent.com/u/21688954?v=4","gravatar_id":"","url":"https://api.github.com/users/gauriramesh","html_url":"https://github.com/gauriramesh","followers_url":"https://api.github.com/users/gauriramesh/followers","following_url":"https://api.github.com/users/gauriramesh/following{/other_user}","gists_url":"https://api.github.com/users/gauriramesh/gists{/gist_id}","starred_url":"https://api.github.com/users/gauriramesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauriramesh/subscriptions","organizations_url":"https://api.github.com/users/gauriramesh/orgs","repos_url":"https://api.github.com/users/gauriramesh/repos","events_url":"https://api.github.com/users/gauriramesh/events{/privacy}","received_events_url":"https://api.github.com/users/gauriramesh/received_events","type":"User","site_admin":false},"repo":{"id":119071304,"name":"Rosie","full_name":"gauriramesh/Rosie","owner":{"login":"gauriramesh","id":21688954,"avatar_url":"https://avatars1.githubusercontent.com/u/21688954?v=4","gravatar_id":"","url":"https://api.github.com/users/gauriramesh","html_url":"https://github.com/gauriramesh","followers_url":"https://api.github.com/users/gauriramesh/followers","following_url":"https://api.github.com/users/gauriramesh/following{/other_user}","gists_url":"https://api.github.com/users/gauriramesh/gists{/gist_id}","starred_url":"https://api.github.com/users/gauriramesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauriramesh/subscriptions","organizations_url":"https://api.github.com/users/gauriramesh/orgs","repos_url":"https://api.github.com/users/gauriramesh/repos","events_url":"https://api.github.com/users/gauriramesh/events{/privacy}","received_events_url":"https://api.github.com/users/gauriramesh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gauriramesh/Rosie","description":"Project for HackerEarth's International Women's Hackathon: https://www.hackerearth.com/sprints/international-women-hackathon-2018/","fork":false,"url":"https://api.github.com/repos/gauriramesh/Rosie","forks_url":"https://api.github.com/repos/gauriramesh/Rosie/forks","keys_url":"https://api.github.com/repos/gauriramesh/Rosie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gauriramesh/Rosie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gauriramesh/Rosie/teams","hooks_url":"https://api.github.com/repos/gauriramesh/Rosie/hooks","issue_events_url":"https://api.github.com/repos/gauriramesh/Rosie/issues/events{/number}","events_url":"https://api.github.com/repos/gauriramesh/Rosie/events","assignees_url":"https://api.github.com/repos/gauriramesh/Rosie/assignees{/user}","branches_url":"https://api.github.com/repos/gauriramesh/Rosie/branches{/branch}","tags_url":"https://api.github.com/repos/gauriramesh/Rosie/tags","blobs_url":"https://api.github.com/repos/gauriramesh/Rosie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gauriramesh/Rosie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gauriramesh/Rosie/git/refs{/sha}","trees_url":"https://api.github.com/repos/gauriramesh/Rosie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gauriramesh/Rosie/statuses/{sha}","languages_url":"https://api.github.com/repos/gauriramesh/Rosie/languages","stargazers_url":"https://api.github.com/repos/gauriramesh/Rosie/stargazers","contributors_url":"https://api.github.com/repos/gauriramesh/Rosie/contributors","subscribers_url":"https://api.github.com/repos/gauriramesh/Rosie/subscribers","subscription_url":"https://api.github.com/repos/gauriramesh/Rosie/subscription","commits_url":"https://api.github.com/repos/gauriramesh/Rosie/commits{/sha}","git_commits_url":"https://api.github.com/repos/gauriramesh/Rosie/git/commits{/sha}","comments_url":"https://api.github.com/repos/gauriramesh/Rosie/comments{/number}","issue_comment_url":"https://api.github.com/repos/gauriramesh/Rosie/issues/comments{/number}","contents_url":"https://api.github.com/repos/gauriramesh/Rosie/contents/{+path}","compare_url":"https://api.github.com/repos/gauriramesh/Rosie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gauriramesh/Rosie/merges","archive_url":"https://api.github.com/repos/gauriramesh/Rosie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gauriramesh/Rosie/downloads","issues_url":"https://api.github.com/repos/gauriramesh/Rosie/issues{/number}","pulls_url":"https://api.github.com/repos/gauriramesh/Rosie/pulls{/number}","milestones_url":"https://api.github.com/repos/gauriramesh/Rosie/milestones{/number}","notifications_url":"https://api.github.com/repos/gauriramesh/Rosie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gauriramesh/Rosie/labels{/name}","releases_url":"https://api.github.com/repos/gauriramesh/Rosie/releases{/id}","deployments_url":"https://api.github.com/repos/gauriramesh/Rosie/deployments","created_at":"2018-01-26T15:54:08Z","updated_at":"2018-02-16T20:00:48Z","pushed_at":"2018-02-26T16:19:39Z","git_url":"git://github.com/gauriramesh/Rosie.git","ssh_url":"git@github.com:gauriramesh/Rosie.git","clone_url":"https://github.com/gauriramesh/Rosie.git","svn_url":"https://github.com/gauriramesh/Rosie","homepage":null,"size":246,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gauriramesh/Rosie/pulls/10"},"html":{"href":"https://github.com/gauriramesh/Rosie/pull/10"},"issue":{"href":"https://api.github.com/repos/gauriramesh/Rosie/issues/10"},"comments":{"href":"https://api.github.com/repos/gauriramesh/Rosie/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/gauriramesh/Rosie/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/gauriramesh/Rosie/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gauriramesh/Rosie/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/gauriramesh/Rosie/statuses/586882308aa91344b925f2efd704a59b0dbd4b70"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ckrueger6"}}