{"action":"created","comment":{"url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls/comments/108052688","pull_request_review_id":29063107,"id":108052688,"diff_hunk":"@@ -0,0 +1,39 @@\n+'use strict';\n+\n+angular.module('iDexApp').factory('Utility', [function () {\n+  function toggleSort(createdIndex) {\n+    var allwords = [];\n+    var resultObject = {};\n+    Object.keys(createdIndex).forEach(function (word) {\n+      allwords.push(word);\n+    });\n+    allwords.sort();\n+    allwords.forEach(function (word) {\n+      resultObject[word] = '' + createdIndex[word];\n+    });\n+    return resultObject;\n+  }\n+\n+  function toggleSortInnerText(buttonToShow, buttonToHide) {\n+    document.getElementById(buttonToShow).style.display = 'inline';\n+    document.getElementById(buttonToShow).innerText = 'Toggle sort indexes';\n+    document.getElementById(buttonToHide).style.display = 'none';\n+  }\n+\n+  function newlyCreatedIndexInnerText() {\n+    toggleSortInnerText('toggele-sort', 'toggele-sortB');\n+    document.getElementById('create-index').innerText = 'Indexes created';\n+  }\n+\n+  function feedback(message) {\n+    document.getElementById('modal-body').innerText = message;\n+    $('#iDexModal').modal();\n+  }\n+\n+  return {\n+    toggleSort: toggleSort,\n+    toggleSortInnerText: toggleSortInnerText,","path":"public/lib/services/utilityservice.min.js","position":35,"original_position":35,"commit_id":"e53106c0b7ed2b6b1e57cb6a662c329d290a272b","original_commit_id":"e53106c0b7ed2b6b1e57cb6a662c329d290a272b","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.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 property shorthand                    object-shorthand","created_at":"2017-03-26T06:11:56Z","updated_at":"2017-03-26T06:11:57Z","html_url":"https://github.com/Andela-JUdensi/inverted-index/pull/7#discussion_r108052688","pull_request_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls/comments/108052688"},"html":{"href":"https://github.com/Andela-JUdensi/inverted-index/pull/7#discussion_r108052688"},"pull_request":{"href":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls/7","id":112616087,"html_url":"https://github.com/Andela-JUdensi/inverted-index/pull/7","diff_url":"https://github.com/Andela-JUdensi/inverted-index/pull/7.diff","patch_url":"https://github.com/Andela-JUdensi/inverted-index/pull/7.patch","issue_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/issues/7","number":7,"state":"open","locked":false,"title":"Develop","user":{"login":"Andela-JUdensi","id":26272640,"avatar_url":"https://avatars2.githubusercontent.com/u/26272640?v=3","gravatar_id":"","url":"https://api.github.com/users/Andela-JUdensi","html_url":"https://github.com/Andela-JUdensi","followers_url":"https://api.github.com/users/Andela-JUdensi/followers","following_url":"https://api.github.com/users/Andela-JUdensi/following{/other_user}","gists_url":"https://api.github.com/users/Andela-JUdensi/gists{/gist_id}","starred_url":"https://api.github.com/users/Andela-JUdensi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andela-JUdensi/subscriptions","organizations_url":"https://api.github.com/users/Andela-JUdensi/orgs","repos_url":"https://api.github.com/users/Andela-JUdensi/repos","events_url":"https://api.github.com/users/Andela-JUdensi/events{/privacy}","received_events_url":"https://api.github.com/users/Andela-JUdensi/received_events","type":"User","site_admin":false},"body":"##### What does this PR do?\r\nResolves UI fixes and application port","created_at":"2017-03-26T06:11:46Z","updated_at":"2017-03-26T06:11:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d65af4f10fde15faa009abed91b78b36029c7582","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/issues/7/comments","statuses_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/statuses/e53106c0b7ed2b6b1e57cb6a662c329d290a272b","head":{"label":"Andela-JUdensi:develop","ref":"develop","sha":"e53106c0b7ed2b6b1e57cb6a662c329d290a272b","user":{"login":"Andela-JUdensi","id":26272640,"avatar_url":"https://avatars2.githubusercontent.com/u/26272640?v=3","gravatar_id":"","url":"https://api.github.com/users/Andela-JUdensi","html_url":"https://github.com/Andela-JUdensi","followers_url":"https://api.github.com/users/Andela-JUdensi/followers","following_url":"https://api.github.com/users/Andela-JUdensi/following{/other_user}","gists_url":"https://api.github.com/users/Andela-JUdensi/gists{/gist_id}","starred_url":"https://api.github.com/users/Andela-JUdensi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andela-JUdensi/subscriptions","organizations_url":"https://api.github.com/users/Andela-JUdensi/orgs","repos_url":"https://api.github.com/users/Andela-JUdensi/repos","events_url":"https://api.github.com/users/Andela-JUdensi/events{/privacy}","received_events_url":"https://api.github.com/users/Andela-JUdensi/received_events","type":"User","site_admin":false},"repo":{"id":86057453,"name":"inverted-index","full_name":"Andela-JUdensi/inverted-index","owner":{"login":"Andela-JUdensi","id":26272640,"avatar_url":"https://avatars2.githubusercontent.com/u/26272640?v=3","gravatar_id":"","url":"https://api.github.com/users/Andela-JUdensi","html_url":"https://github.com/Andela-JUdensi","followers_url":"https://api.github.com/users/Andela-JUdensi/followers","following_url":"https://api.github.com/users/Andela-JUdensi/following{/other_user}","gists_url":"https://api.github.com/users/Andela-JUdensi/gists{/gist_id}","starred_url":"https://api.github.com/users/Andela-JUdensi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andela-JUdensi/subscriptions","organizations_url":"https://api.github.com/users/Andela-JUdensi/orgs","repos_url":"https://api.github.com/users/Andela-JUdensi/repos","events_url":"https://api.github.com/users/Andela-JUdensi/events{/privacy}","received_events_url":"https://api.github.com/users/Andela-JUdensi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Andela-JUdensi/inverted-index","description":"An Inverted Index is an Index Data Structure storing a mapping from content to location (i.e. a mapping of words or numbers to it's location in a database file).","fork":false,"url":"https://api.github.com/repos/Andela-JUdensi/inverted-index","forks_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/forks","keys_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/teams","hooks_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/hooks","issue_events_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/issues/events{/number}","events_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/events","assignees_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/assignees{/user}","branches_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/branches{/branch}","tags_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/tags","blobs_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/git/refs{/sha}","trees_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/statuses/{sha}","languages_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/languages","stargazers_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/stargazers","contributors_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/contributors","subscribers_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/subscribers","subscription_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/subscription","commits_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/commits{/sha}","git_commits_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/git/commits{/sha}","comments_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/comments{/number}","issue_comment_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/issues/comments{/number}","contents_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/contents/{+path}","compare_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/merges","archive_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/downloads","issues_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/issues{/number}","pulls_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls{/number}","milestones_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/milestones{/number}","notifications_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/labels{/name}","releases_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/releases{/id}","deployments_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/deployments","created_at":"2017-03-24T10:43:40Z","updated_at":"2017-03-26T03:19:47Z","pushed_at":"2017-03-26T06:11:46Z","git_url":"git://github.com/Andela-JUdensi/inverted-index.git","ssh_url":"git@github.com:Andela-JUdensi/inverted-index.git","clone_url":"https://github.com/Andela-JUdensi/inverted-index.git","svn_url":"https://github.com/Andela-JUdensi/inverted-index","homepage":null,"size":92,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"Andela-JUdensi:master","ref":"master","sha":"d3b556f8a26604d792d0d6b36ec9b779c33fd2cc","user":{"login":"Andela-JUdensi","id":26272640,"avatar_url":"https://avatars2.githubusercontent.com/u/26272640?v=3","gravatar_id":"","url":"https://api.github.com/users/Andela-JUdensi","html_url":"https://github.com/Andela-JUdensi","followers_url":"https://api.github.com/users/Andela-JUdensi/followers","following_url":"https://api.github.com/users/Andela-JUdensi/following{/other_user}","gists_url":"https://api.github.com/users/Andela-JUdensi/gists{/gist_id}","starred_url":"https://api.github.com/users/Andela-JUdensi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andela-JUdensi/subscriptions","organizations_url":"https://api.github.com/users/Andela-JUdensi/orgs","repos_url":"https://api.github.com/users/Andela-JUdensi/repos","events_url":"https://api.github.com/users/Andela-JUdensi/events{/privacy}","received_events_url":"https://api.github.com/users/Andela-JUdensi/received_events","type":"User","site_admin":false},"repo":{"id":86057453,"name":"inverted-index","full_name":"Andela-JUdensi/inverted-index","owner":{"login":"Andela-JUdensi","id":26272640,"avatar_url":"https://avatars2.githubusercontent.com/u/26272640?v=3","gravatar_id":"","url":"https://api.github.com/users/Andela-JUdensi","html_url":"https://github.com/Andela-JUdensi","followers_url":"https://api.github.com/users/Andela-JUdensi/followers","following_url":"https://api.github.com/users/Andela-JUdensi/following{/other_user}","gists_url":"https://api.github.com/users/Andela-JUdensi/gists{/gist_id}","starred_url":"https://api.github.com/users/Andela-JUdensi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andela-JUdensi/subscriptions","organizations_url":"https://api.github.com/users/Andela-JUdensi/orgs","repos_url":"https://api.github.com/users/Andela-JUdensi/repos","events_url":"https://api.github.com/users/Andela-JUdensi/events{/privacy}","received_events_url":"https://api.github.com/users/Andela-JUdensi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Andela-JUdensi/inverted-index","description":"An Inverted Index is an Index Data Structure storing a mapping from content to location (i.e. a mapping of words or numbers to it's location in a database file).","fork":false,"url":"https://api.github.com/repos/Andela-JUdensi/inverted-index","forks_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/forks","keys_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/teams","hooks_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/hooks","issue_events_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/issues/events{/number}","events_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/events","assignees_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/assignees{/user}","branches_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/branches{/branch}","tags_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/tags","blobs_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/git/refs{/sha}","trees_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/statuses/{sha}","languages_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/languages","stargazers_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/stargazers","contributors_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/contributors","subscribers_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/subscribers","subscription_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/subscription","commits_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/commits{/sha}","git_commits_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/git/commits{/sha}","comments_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/comments{/number}","issue_comment_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/issues/comments{/number}","contents_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/contents/{+path}","compare_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/merges","archive_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/downloads","issues_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/issues{/number}","pulls_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls{/number}","milestones_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/milestones{/number}","notifications_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/labels{/name}","releases_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/releases{/id}","deployments_url":"https://api.github.com/repos/Andela-JUdensi/inverted-index/deployments","created_at":"2017-03-24T10:43:40Z","updated_at":"2017-03-26T03:19:47Z","pushed_at":"2017-03-26T06:11:46Z","git_url":"git://github.com/Andela-JUdensi/inverted-index.git","ssh_url":"git@github.com:Andela-JUdensi/inverted-index.git","clone_url":"https://github.com/Andela-JUdensi/inverted-index.git","svn_url":"https://github.com/Andela-JUdensi/inverted-index","homepage":null,"size":92,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/Andela-JUdensi/inverted-index/pulls/7"},"html":{"href":"https://github.com/Andela-JUdensi/inverted-index/pull/7"},"issue":{"href":"https://api.github.com/repos/Andela-JUdensi/inverted-index/issues/7"},"comments":{"href":"https://api.github.com/repos/Andela-JUdensi/inverted-index/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Andela-JUdensi/inverted-index/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Andela-JUdensi/inverted-index/statuses/e53106c0b7ed2b6b1e57cb6a662c329d290a272b"}}}}
{"actor":{"display_login":"houndci-bot"}}