{"action":"created","comment":{"url":"https://api.github.com/repos/andela-ekupara/dcman/pulls/comments/56182890","id":56182890,"diff_hunk":"@@ -0,0 +1,158 @@\n+var addSorting = (function () {\n+    \"use strict\";\n+    var cols,\n+        currentSort = {\n+            index: 0,\n+            desc: false\n+        };\n+\n+    // returns the summary table element\n+    function getTable() { return document.querySelector('.coverage-summary'); }\n+    // returns the thead element of the summary table\n+    function getTableHeader() { return getTable().querySelector('thead tr'); }\n+    // returns the tbody element of the summary table\n+    function getTableBody() { return getTable().querySelector('tbody'); }\n+    // returns the th element for nth column\n+    function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; }\n+\n+    // loads all columns\n+    function loadColumns() {\n+        var colNodes = getTableHeader().querySelectorAll('th'),\n+            colNode,\n+            cols = [],\n+            col,\n+            i;\n+\n+        for (i = 0; i < colNodes.length; i += 1) {\n+            colNode = colNodes[i];\n+            col = {\n+                key: colNode.getAttribute('data-col'),\n+                sortable: !colNode.getAttribute('data-nosort'),\n+                type: colNode.getAttribute('data-type') || 'string'\n+            };\n+            cols.push(col);\n+            if (col.sortable) {\n+                col.defaultDescSort = col.type === 'number';\n+                colNode.innerHTML = colNode.innerHTML + '<span class=\"sorter\"></span>';\n+            }\n+        }\n+        return cols;\n+    }\n+    // attaches a data attribute to every tr element with an object\n+    // of data values keyed by column name\n+    function loadRowData(tableRow) {\n+        var tableCols = tableRow.querySelectorAll('td'),\n+            colNode,\n+            col,\n+            data = {},\n+            i,\n+            val;\n+        for (i = 0; i < tableCols.length; i += 1) {\n+            colNode = tableCols[i];\n+            col = cols[i];\n+            val = colNode.getAttribute('data-value');\n+            if (col.type === 'number') {\n+                val = Number(val);\n+            }\n+            data[col.key] = val;\n+        }\n+        return data;\n+    }\n+    // loads all row data\n+    function loadData() {\n+        var rows = getTableBody().querySelectorAll('tr'),\n+            i;\n+\n+        for (i = 0; i < rows.length; i += 1) {\n+            rows[i].data = loadRowData(rows[i]);\n+        }\n+    }\n+    // sorts the table using the data for the ith column\n+    function sortByIndex(index, desc) {\n+        var key = cols[index].key,\n+            sorter = function (a, b) {\n+                a = a.data[key];\n+                b = b.data[key];\n+                return a < b ? -1 : a > b ? 1 : 0;\n+            },\n+            finalSorter = sorter,\n+            tableBody = document.querySelector('.coverage-summary tbody'),\n+            rowNodes = tableBody.querySelectorAll('tr'),","path":"coverage/lcov-report/sorter.js","position":80,"original_position":80,"commit_id":"44f80d27063c3609269ea0a4749b908e6f42819b","original_commit_id":"44f80d27063c3609269ea0a4749b908e6f42819b","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":"Mixed double and single quotes.","created_at":"2016-03-15T15:28:42Z","updated_at":"2016-03-15T15:28:42Z","html_url":"https://github.com/andela-ekupara/dcman/pull/9#discussion_r56182890","pull_request_url":"https://api.github.com/repos/andela-ekupara/dcman/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/andela-ekupara/dcman/pulls/comments/56182890"},"html":{"href":"https://github.com/andela-ekupara/dcman/pull/9#discussion_r56182890"},"pull_request":{"href":"https://api.github.com/repos/andela-ekupara/dcman/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/andela-ekupara/dcman/pulls/9","id":62923072,"html_url":"https://github.com/andela-ekupara/dcman/pull/9","diff_url":"https://github.com/andela-ekupara/dcman/pull/9.diff","patch_url":"https://github.com/andela-ekupara/dcman/pull/9.patch","issue_url":"https://api.github.com/repos/andela-ekupara/dcman/issues/9","number":9,"state":"open","locked":false,"title":"Develop rebasing","user":{"login":"andela-ekupara","id":16223673,"avatar_url":"https://avatars.githubusercontent.com/u/16223673?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-ekupara","html_url":"https://github.com/andela-ekupara","followers_url":"https://api.github.com/users/andela-ekupara/followers","following_url":"https://api.github.com/users/andela-ekupara/following{/other_user}","gists_url":"https://api.github.com/users/andela-ekupara/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-ekupara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-ekupara/subscriptions","organizations_url":"https://api.github.com/users/andela-ekupara/orgs","repos_url":"https://api.github.com/users/andela-ekupara/repos","events_url":"https://api.github.com/users/andela-ekupara/events{/privacy}","received_events_url":"https://api.github.com/users/andela-ekupara/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-15T15:20:31Z","updated_at":"2016-03-15T15:28:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"feac195de7d97f12d0139fe82c341b914edbc2f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela-ekupara/dcman/pulls/9/commits","review_comments_url":"https://api.github.com/repos/andela-ekupara/dcman/pulls/9/comments","review_comment_url":"https://api.github.com/repos/andela-ekupara/dcman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-ekupara/dcman/issues/9/comments","statuses_url":"https://api.github.com/repos/andela-ekupara/dcman/statuses/44f80d27063c3609269ea0a4749b908e6f42819b","head":{"label":"andela-ekupara:develop","ref":"develop","sha":"44f80d27063c3609269ea0a4749b908e6f42819b","user":{"login":"andela-ekupara","id":16223673,"avatar_url":"https://avatars.githubusercontent.com/u/16223673?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-ekupara","html_url":"https://github.com/andela-ekupara","followers_url":"https://api.github.com/users/andela-ekupara/followers","following_url":"https://api.github.com/users/andela-ekupara/following{/other_user}","gists_url":"https://api.github.com/users/andela-ekupara/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-ekupara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-ekupara/subscriptions","organizations_url":"https://api.github.com/users/andela-ekupara/orgs","repos_url":"https://api.github.com/users/andela-ekupara/repos","events_url":"https://api.github.com/users/andela-ekupara/events{/privacy}","received_events_url":"https://api.github.com/users/andela-ekupara/received_events","type":"User","site_admin":false},"repo":{"id":52876155,"name":"dcman","full_name":"andela-ekupara/dcman","owner":{"login":"andela-ekupara","id":16223673,"avatar_url":"https://avatars.githubusercontent.com/u/16223673?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-ekupara","html_url":"https://github.com/andela-ekupara","followers_url":"https://api.github.com/users/andela-ekupara/followers","following_url":"https://api.github.com/users/andela-ekupara/following{/other_user}","gists_url":"https://api.github.com/users/andela-ekupara/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-ekupara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-ekupara/subscriptions","organizations_url":"https://api.github.com/users/andela-ekupara/orgs","repos_url":"https://api.github.com/users/andela-ekupara/repos","events_url":"https://api.github.com/users/andela-ekupara/events{/privacy}","received_events_url":"https://api.github.com/users/andela-ekupara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-ekupara/dcman","description":"Document Management API","fork":false,"url":"https://api.github.com/repos/andela-ekupara/dcman","forks_url":"https://api.github.com/repos/andela-ekupara/dcman/forks","keys_url":"https://api.github.com/repos/andela-ekupara/dcman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-ekupara/dcman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-ekupara/dcman/teams","hooks_url":"https://api.github.com/repos/andela-ekupara/dcman/hooks","issue_events_url":"https://api.github.com/repos/andela-ekupara/dcman/issues/events{/number}","events_url":"https://api.github.com/repos/andela-ekupara/dcman/events","assignees_url":"https://api.github.com/repos/andela-ekupara/dcman/assignees{/user}","branches_url":"https://api.github.com/repos/andela-ekupara/dcman/branches{/branch}","tags_url":"https://api.github.com/repos/andela-ekupara/dcman/tags","blobs_url":"https://api.github.com/repos/andela-ekupara/dcman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-ekupara/dcman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-ekupara/dcman/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-ekupara/dcman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-ekupara/dcman/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-ekupara/dcman/languages","stargazers_url":"https://api.github.com/repos/andela-ekupara/dcman/stargazers","contributors_url":"https://api.github.com/repos/andela-ekupara/dcman/contributors","subscribers_url":"https://api.github.com/repos/andela-ekupara/dcman/subscribers","subscription_url":"https://api.github.com/repos/andela-ekupara/dcman/subscription","commits_url":"https://api.github.com/repos/andela-ekupara/dcman/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-ekupara/dcman/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-ekupara/dcman/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-ekupara/dcman/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-ekupara/dcman/contents/{+path}","compare_url":"https://api.github.com/repos/andela-ekupara/dcman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-ekupara/dcman/merges","archive_url":"https://api.github.com/repos/andela-ekupara/dcman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-ekupara/dcman/downloads","issues_url":"https://api.github.com/repos/andela-ekupara/dcman/issues{/number}","pulls_url":"https://api.github.com/repos/andela-ekupara/dcman/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-ekupara/dcman/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-ekupara/dcman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-ekupara/dcman/labels{/name}","releases_url":"https://api.github.com/repos/andela-ekupara/dcman/releases{/id}","deployments_url":"https://api.github.com/repos/andela-ekupara/dcman/deployments","created_at":"2016-03-01T12:46:07Z","updated_at":"2016-03-03T08:20:11Z","pushed_at":"2016-03-15T15:28:25Z","git_url":"git://github.com/andela-ekupara/dcman.git","ssh_url":"git@github.com:andela-ekupara/dcman.git","clone_url":"https://github.com/andela-ekupara/dcman.git","svn_url":"https://github.com/andela-ekupara/dcman","homepage":null,"size":70,"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-ekupara:master","ref":"master","sha":"dd4f89b0d97110c6b0a260b9f227f2594fcca5d3","user":{"login":"andela-ekupara","id":16223673,"avatar_url":"https://avatars.githubusercontent.com/u/16223673?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-ekupara","html_url":"https://github.com/andela-ekupara","followers_url":"https://api.github.com/users/andela-ekupara/followers","following_url":"https://api.github.com/users/andela-ekupara/following{/other_user}","gists_url":"https://api.github.com/users/andela-ekupara/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-ekupara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-ekupara/subscriptions","organizations_url":"https://api.github.com/users/andela-ekupara/orgs","repos_url":"https://api.github.com/users/andela-ekupara/repos","events_url":"https://api.github.com/users/andela-ekupara/events{/privacy}","received_events_url":"https://api.github.com/users/andela-ekupara/received_events","type":"User","site_admin":false},"repo":{"id":52876155,"name":"dcman","full_name":"andela-ekupara/dcman","owner":{"login":"andela-ekupara","id":16223673,"avatar_url":"https://avatars.githubusercontent.com/u/16223673?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-ekupara","html_url":"https://github.com/andela-ekupara","followers_url":"https://api.github.com/users/andela-ekupara/followers","following_url":"https://api.github.com/users/andela-ekupara/following{/other_user}","gists_url":"https://api.github.com/users/andela-ekupara/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-ekupara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-ekupara/subscriptions","organizations_url":"https://api.github.com/users/andela-ekupara/orgs","repos_url":"https://api.github.com/users/andela-ekupara/repos","events_url":"https://api.github.com/users/andela-ekupara/events{/privacy}","received_events_url":"https://api.github.com/users/andela-ekupara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-ekupara/dcman","description":"Document Management API","fork":false,"url":"https://api.github.com/repos/andela-ekupara/dcman","forks_url":"https://api.github.com/repos/andela-ekupara/dcman/forks","keys_url":"https://api.github.com/repos/andela-ekupara/dcman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-ekupara/dcman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-ekupara/dcman/teams","hooks_url":"https://api.github.com/repos/andela-ekupara/dcman/hooks","issue_events_url":"https://api.github.com/repos/andela-ekupara/dcman/issues/events{/number}","events_url":"https://api.github.com/repos/andela-ekupara/dcman/events","assignees_url":"https://api.github.com/repos/andela-ekupara/dcman/assignees{/user}","branches_url":"https://api.github.com/repos/andela-ekupara/dcman/branches{/branch}","tags_url":"https://api.github.com/repos/andela-ekupara/dcman/tags","blobs_url":"https://api.github.com/repos/andela-ekupara/dcman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-ekupara/dcman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-ekupara/dcman/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-ekupara/dcman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-ekupara/dcman/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-ekupara/dcman/languages","stargazers_url":"https://api.github.com/repos/andela-ekupara/dcman/stargazers","contributors_url":"https://api.github.com/repos/andela-ekupara/dcman/contributors","subscribers_url":"https://api.github.com/repos/andela-ekupara/dcman/subscribers","subscription_url":"https://api.github.com/repos/andela-ekupara/dcman/subscription","commits_url":"https://api.github.com/repos/andela-ekupara/dcman/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-ekupara/dcman/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-ekupara/dcman/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-ekupara/dcman/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-ekupara/dcman/contents/{+path}","compare_url":"https://api.github.com/repos/andela-ekupara/dcman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-ekupara/dcman/merges","archive_url":"https://api.github.com/repos/andela-ekupara/dcman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-ekupara/dcman/downloads","issues_url":"https://api.github.com/repos/andela-ekupara/dcman/issues{/number}","pulls_url":"https://api.github.com/repos/andela-ekupara/dcman/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-ekupara/dcman/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-ekupara/dcman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-ekupara/dcman/labels{/name}","releases_url":"https://api.github.com/repos/andela-ekupara/dcman/releases{/id}","deployments_url":"https://api.github.com/repos/andela-ekupara/dcman/deployments","created_at":"2016-03-01T12:46:07Z","updated_at":"2016-03-03T08:20:11Z","pushed_at":"2016-03-15T15:28:25Z","git_url":"git://github.com/andela-ekupara/dcman.git","ssh_url":"git@github.com:andela-ekupara/dcman.git","clone_url":"https://github.com/andela-ekupara/dcman.git","svn_url":"https://github.com/andela-ekupara/dcman","homepage":null,"size":70,"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-ekupara/dcman/pulls/9"},"html":{"href":"https://github.com/andela-ekupara/dcman/pull/9"},"issue":{"href":"https://api.github.com/repos/andela-ekupara/dcman/issues/9"},"comments":{"href":"https://api.github.com/repos/andela-ekupara/dcman/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-ekupara/dcman/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-ekupara/dcman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-ekupara/dcman/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/andela-ekupara/dcman/statuses/44f80d27063c3609269ea0a4749b908e6f42819b"}}}}