{"action":"created","comment":{"url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/comments/39325466","id":39325466,"diff_hunk":"@@ -0,0 +1,369 @@\n+// Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n+// use this file except in compliance with the License. You may obtain a copy of\n+// the License at\n+//\n+//   http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n+// License for the specific language governing permissions and limitations under\n+// the License.\n+\n+define([\n+  'app',\n+  'api',\n+  'addons/dataimporter/actiontypes',\n+  'papaparse'\n+], function (app, FauxtonAPI, ActionTypes, Papa) {\n+\n+  Papa.SCRIPT_PATH = '../../assets/js/libs/papaparse.min.js';\n+\n+  var DataImporterStore = FauxtonAPI.Store.extend({\n+\n+    init: function (firstTimeHere) { //to reset, call this with true\n+      if (firstTimeHere) {\n+        this._isDataCurrentlyLoading = false;\n+        this._hasDataLoaded = false;\n+        this._hasErrored = false;\n+        this._theData = [];\n+        this._theMetadata = [];\n+        this._smallData = [];\n+        this._showView = 'table';\n+        this._theFile = { size: 0 };\n+        this._config = this.getDefaultConfig();\n+        this._completeFn = this._config.complete;\n+        this._errorFn = this._config.error;\n+        this._fileSize = 0;\n+        this._time = \"just started\";\n+        this._repeatTimeID;\n+        this.fetchAllDBs();\n+        this._chunkedData = [];\n+        this._maxSize = 150000000;  //in bytes\n+        this._showErrorScreen = false;\n+        this._errorMessageArray = [];\n+        this._loadingInDBInProgress = false;\n+      } // else keeps store as it was when you left the page\n+      this.fetchAllDBs();\n+\n+    },\n+\n+    fetchAllDBs: function () {\n+      $.ajax({\n+        method: \"GET\",\n+        dataType: \"json\",\n+        url: window.location.origin + \"/_all_dbs\"\n+      }).then(function (resp) {\n+        this._all_dbs = _.filter(resp, function (dbName) {\n+          return dbName[0] !== '_'; //_all_dbs without _ as first letter\n+        });\n+        this.triggerChange();\n+      }.bind(this));\n+    },\n+\n+    getMaxSize: function () {\n+      return this._maxSize;\n+    },\n+\n+    getAllDBs: function () {\n+      return this._all_dbs;\n+    },\n+\n+    isDataCurrentlyLoading: function () {\n+      return this._isDataCurrentlyLoading;\n+    },\n+\n+    dataIsLoading: function () {\n+      this._startTime = app.helpers.moment();\n+      this._isDataCurrentlyLoading = true;\n+    },\n+\n+    hasDataLoaded: function () {\n+      return this._hasDataLoaded;\n+    },\n+\n+    dataLoaded: function () {\n+      this._hasDataLoaded = true;\n+      clearInterval(this._repeatTimeID);\n+    },\n+\n+    loadData: function (data) {\n+      this._theData = data;\n+    },\n+\n+    getFileSize: function () {\n+      return this._theFile.size;\n+    },\n+\n+    isThisABigFile: function () {\n+      return this._theFile.size > 750000 ? true : false;\n+    },\n+\n+    getTimeSinceLoad: function () {\n+      return this._time;\n+    },\n+\n+    repeatTime: function () {\n+      this._repeatTimeID = setInterval(function () {\n+        var secondsElapsed = app.helpers.moment().diff(this._startTime);\n+        this._time = app.helpers.getDateFromNow(this._startTime);\n+        if (secondsElapsed < 60000) {\n+          this._time = '~' + Math.ceil(secondsElapsed / 1000) + ' seconds ago';\n+        }\n+        this.triggerChange();\n+      }.bind(this), 3000);\n+    },\n+\n+    loadMeta: function (meta) {\n+      this._theMetadata = meta;\n+    },\n+\n+    loadFile: function (file) {\n+      this._theFile = file;\n+      this.repeatTime();\n+    },\n+\n+    getTotalRows: function () {\n+      return this._totalRows;\n+    },\n+\n+    getPreviewView: function () {\n+      return this._showView;\n+    },\n+\n+    setPreviewView: function (type) {\n+      this._showView = type;\n+    },\n+\n+    calcSmallPreviewOfData: function () {\n+      //this is incase the file has large rows\n+      var filesize = this._theFile.size,\n+          rows = this._totalRows,\n+          sizeOfEachRow = filesize / rows, //this is approximate\n+          sizeCap = 800000,  //in bytes\n+          numberOfRowsToShow;\n+\n+      numberOfRowsToShow = Math.ceil(sizeCap / sizeOfEachRow);\n+      numberOfRowsToShow = numberOfRowsToShow < 500 ? 500 : numberOfRowsToShow;\n+\n+      this._rowsShown = numberOfRowsToShow;\n+      this._smallData = this._theData.slice(0, this._rowsShown);\n+    },\n+\n+    getSmallPreviewOfData: function () {\n+      return this._smallData;\n+    },\n+\n+    getRowsShown: function () {\n+      return this._rowsShown;\n+    },\n+\n+    getTheMetadata: function () {\n+      return this._theMetadata;\n+    },\n+\n+    getTheData: function () {\n+      return this._theData;\n+    },\n+\n+    papaparse: function () {\n+      //for some reason this._config.complete gets overwritten on setconfig\n+      this._config.complete = this._completeFn;\n+      this._config.error = this._errorFn;\n+      Papa.parse(this._theFile, this._config);\n+    },\n+\n+    loadingComplete: function (results) {\n+      this.loadMeta(results.meta);\n+      this.loadData(results.data);\n+      this._totalRows = this._theData.length;\n+\n+      if (this.isThisABigFile()) {\n+        this.calcSmallPreviewOfData();\n+      }\n+\n+      this.chunkData();\n+      this.dataLoaded();\n+      this.triggerChange();\n+    },\n+\n+    chunkData: function () {\n+      for (var i = 0; i < this._theData.length; i += 500) {\n+        var oneChunk = this._theData.slice(i, i + 500);\n+        this._chunkedData.push(oneChunk);\n+      }\n+    },\n+\n+    clearData: function () {\n+      this._theData = [];\n+    },\n+\n+    setParseConfig: function (key, value) {\n+      this._config[key] = value;\n+    },\n+\n+    getConfigSetting: function (key) {\n+      return this._config[key];\n+    },\n+\n+    getDefaultConfig: function () {\n+      return {\n+        delimiter : '',  // auto-detect\n+        newline: '',  // auto-detect\n+        header: true,\n+        dynamicTyping: true,\n+        preview: 0,\n+        encoding: '',\n+        worker: true, //true = page doesn't lock up\n+        comments: false,\n+        complete: function (results) {\n+          this.loadingComplete(results);\n+          this._changingConfig = false;\n+        }.bind(this),\n+        error: function () {\n+          var msg1 = 'There was an error while parsing the file.',\n+              msg2 = 'Please try again.';\n+\n+          this.goToErrorScreen('', [msg1, msg2]);\n+        }.bind(this),\n+        download: false,\n+        skipEmptyLines: false,\n+        chunk: undefined, //define function for streaming\n+        beforeFirstChunk: undefined,\n+      };\n+    },\n+\n+    loadDataIntoDatabase: function (createNewDB, targetDB) {\n+      this._loadingInDBInProgress = true;\n+      this.triggerChange();\n+      if (createNewDB) {\n+        if (this.dataBaseIsnew(targetDB)) {\n+          var msg1 = 'The database ' + targetDB + ' already exists.';\n+          this.goToErrorScreen('', [msg1]);\n+        }\n+        this.loadIntoNewDB(targetDB);\n+      } else {\n+        this.loadDataIntoTarget(targetDB);\n+      }\n+    },\n+\n+    dataBaseIsnew: function (targetDB) {\n+      return _.some(this._all_dbs, targetDB);\n+    },\n+\n+    showErrorScreen: function () {\n+      return this._showErrorScreen;\n+    },\n+\n+    getErrorMsg: function () {\n+      return this._errorMessageArray;\n+    },\n+\n+    goToErrorScreen: function (resp, messageArray) {\n+      this._loadingInDBInProgress = false;\n+      this._showErrorScreen = true;\n+      if (resp) messageArray.push(resp);\n+      this._errorMessageArray.unshift(messageArray);\n+      this.triggerChange();\n+    },\n+\n+    loadIntoNewDB: function (targetDB) {\n+      $.ajax({\n+        url: FauxtonAPI.urls('databaseBaseURL', 'server', targetDB),\n+        xhrFields: { withCredentials: true },\n+        contentType: 'application/json; charset=UTF-8',\n+        method: 'PUT'\n+      }).then(function (resp) {\n+        this.loadDataIntoTarget(targetDB);\n+      }.bind(this), function (resp) {\n+        this.importFailed();\n+      }.bind(this));\n+    },\n+\n+    loadDataIntoTarget: function (targetDB) {\n+      var loadURL = FauxtonAPI.urls('document', 'server', targetDB, '_bulk_docs');\n+      _.each(this._chunkedData, function (data, i) {\n+        var payload = JSON.stringify({ 'docs': data });\n+        var prettyprint = JSON.stringify({ 'docs': data }, null, 2);\n+        $.ajax({\n+          url: loadURL,\n+          xhrFields: { withCredentials: true },\n+          contentType: 'application/json; charset=UTF-8',\n+          method: 'POST',\n+          data: payload\n+        }).then(function (resp) {\n+          i++;\n+          if (i === this._chunkedData.length ) {\n+            //console.log(\"alldone\");\n+            this.successfulImport(targetDB);\n+            this.init(true);\n+          }\n+        }.bind(this), function (resp) {\n+          this.importFailed(resp, ['There was an error loading documents into ' + targetDB, 'Data that failed to load:' + prettyprint]);\n+        }.bind(this));\n+      }.bind(this));\n+    },\n+\n+    successfulImport: function (targetDB) {\n+      FauxtonAPI.navigate(FauxtonAPI.urls('allDocs', 'app', targetDB, '?include_docs=true'));\n+    },\n+\n+    importFailed: function (resp, messageArray) {\n+      this._loadingInDBInProgress = false;\n+      this.goToErrorScreen(resp, messageArray);\n+    },\n+\n+    getIsloadingInDBInProgress: function () {\n+      return this._loadingInDBInProgress;\n+    },\n+\n+    dispatch: function (action) {\n+      switch (action.type) {\n+        case ActionTypes.DATA_IMPORTER_INIT:\n+          this.init(action.firstTimeHere);\n+          this.triggerChange();\n+        break;\n+\n+        case ActionTypes.DATA_IMPORTER_DATA_IS_CURRENTLY_LOADING:\n+          this.dataIsLoading();\n+          this.triggerChange();\n+        break;\n+\n+        case ActionTypes.DATA_IMPORTER_LOAD_FILE:\n+          this.loadFile(action.file);\n+          this.papaparse(action.file);\n+          this.triggerChange();\n+        break;\n+\n+        case ActionTypes.DATA_IMPORTER_SET_PREVIEW_VIEW:\n+          this.setPreviewView(action.view);\n+          this.triggerChange();\n+        break;\n+\n+        case ActionTypes.DATA_IMPORTER_SET_PARSE_CONFIG:\n+          this.setParseConfig(action.key, action.value);\n+          this.clearData();\n+          this.papaparse(this._theFile);\n+        break;\n+\n+        case ActionTypes.DATA_IMPORTER_GET_ALL_DBS:\n+          this.getAllDBs(action.databases);\n+        break;","path":"app/addons/dataimporter/stores.js","position":351,"original_position":351,"commit_id":"136d715900f607949f2b95ccb129d5aa7d4f3eab","original_commit_id":"5c8b278d49c49d53863dde35c8761f905f581a8d","user":{"login":"benkeen","id":512116,"avatar_url":"https://avatars.githubusercontent.com/u/512116?v=3","gravatar_id":"","url":"https://api.github.com/users/benkeen","html_url":"https://github.com/benkeen","followers_url":"https://api.github.com/users/benkeen/followers","following_url":"https://api.github.com/users/benkeen/following{/other_user}","gists_url":"https://api.github.com/users/benkeen/gists{/gist_id}","starred_url":"https://api.github.com/users/benkeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benkeen/subscriptions","organizations_url":"https://api.github.com/users/benkeen/orgs","repos_url":"https://api.github.com/users/benkeen/repos","events_url":"https://api.github.com/users/benkeen/events{/privacy}","received_events_url":"https://api.github.com/users/benkeen/received_events","type":"User","site_admin":false},"body":"What's the purpose of this being here? Is it used at all? ","created_at":"2015-09-11T22:38:18Z","updated_at":"2015-09-11T22:38:18Z","html_url":"https://github.com/apache/couchdb-fauxton/pull/495#discussion_r39325466","pull_request_url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/495","_links":{"self":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/comments/39325466"},"html":{"href":"https://github.com/apache/couchdb-fauxton/pull/495#discussion_r39325466"},"pull_request":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/495"}}},"pull_request":{"url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/495","id":42028468,"html_url":"https://github.com/apache/couchdb-fauxton/pull/495","diff_url":"https://github.com/apache/couchdb-fauxton/pull/495.diff","patch_url":"https://github.com/apache/couchdb-fauxton/pull/495.patch","issue_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/495","number":495,"state":"open","locked":false,"title":"Data importer","user":{"login":"michellephung","id":836039,"avatar_url":"https://avatars.githubusercontent.com/u/836039?v=3","gravatar_id":"","url":"https://api.github.com/users/michellephung","html_url":"https://github.com/michellephung","followers_url":"https://api.github.com/users/michellephung/followers","following_url":"https://api.github.com/users/michellephung/following{/other_user}","gists_url":"https://api.github.com/users/michellephung/gists{/gist_id}","starred_url":"https://api.github.com/users/michellephung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michellephung/subscriptions","organizations_url":"https://api.github.com/users/michellephung/orgs","repos_url":"https://api.github.com/users/michellephung/repos","events_url":"https://api.github.com/users/michellephung/events{/privacy}","received_events_url":"https://api.github.com/users/michellephung/received_events","type":"User","site_admin":false},"body":"DataImport!","created_at":"2015-08-10T14:52:51Z","updated_at":"2015-09-11T22:38:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01e32e0e701dca311ea12512994ac33850d85911","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/495/commits","review_comments_url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/495/comments","review_comment_url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/495/comments","statuses_url":"https://api.github.com/repos/apache/couchdb-fauxton/statuses/136d715900f607949f2b95ccb129d5aa7d4f3eab","head":{"label":"michellephung:data-importer","ref":"data-importer","sha":"136d715900f607949f2b95ccb129d5aa7d4f3eab","user":{"login":"michellephung","id":836039,"avatar_url":"https://avatars.githubusercontent.com/u/836039?v=3","gravatar_id":"","url":"https://api.github.com/users/michellephung","html_url":"https://github.com/michellephung","followers_url":"https://api.github.com/users/michellephung/followers","following_url":"https://api.github.com/users/michellephung/following{/other_user}","gists_url":"https://api.github.com/users/michellephung/gists{/gist_id}","starred_url":"https://api.github.com/users/michellephung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michellephung/subscriptions","organizations_url":"https://api.github.com/users/michellephung/orgs","repos_url":"https://api.github.com/users/michellephung/repos","events_url":"https://api.github.com/users/michellephung/events{/privacy}","received_events_url":"https://api.github.com/users/michellephung/received_events","type":"User","site_admin":false},"repo":{"id":24307610,"name":"couchdb-fauxton","full_name":"michellephung/couchdb-fauxton","owner":{"login":"michellephung","id":836039,"avatar_url":"https://avatars.githubusercontent.com/u/836039?v=3","gravatar_id":"","url":"https://api.github.com/users/michellephung","html_url":"https://github.com/michellephung","followers_url":"https://api.github.com/users/michellephung/followers","following_url":"https://api.github.com/users/michellephung/following{/other_user}","gists_url":"https://api.github.com/users/michellephung/gists{/gist_id}","starred_url":"https://api.github.com/users/michellephung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michellephung/subscriptions","organizations_url":"https://api.github.com/users/michellephung/orgs","repos_url":"https://api.github.com/users/michellephung/repos","events_url":"https://api.github.com/users/michellephung/events{/privacy}","received_events_url":"https://api.github.com/users/michellephung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michellephung/couchdb-fauxton","description":"Mirror of Apache CouchDB","fork":true,"url":"https://api.github.com/repos/michellephung/couchdb-fauxton","forks_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/forks","keys_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/teams","hooks_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/hooks","issue_events_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/issues/events{/number}","events_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/events","assignees_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/assignees{/user}","branches_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/branches{/branch}","tags_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/tags","blobs_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/git/refs{/sha}","trees_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/statuses/{sha}","languages_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/languages","stargazers_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/stargazers","contributors_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/contributors","subscribers_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/subscribers","subscription_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/subscription","commits_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/commits{/sha}","git_commits_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/git/commits{/sha}","comments_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/comments{/number}","issue_comment_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/issues/comments{/number}","contents_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/contents/{+path}","compare_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/merges","archive_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/downloads","issues_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/issues{/number}","pulls_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/pulls{/number}","milestones_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/milestones{/number}","notifications_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/labels{/name}","releases_url":"https://api.github.com/repos/michellephung/couchdb-fauxton/releases{/id}","created_at":"2014-09-21T23:17:43Z","updated_at":"2015-05-21T21:36:28Z","pushed_at":"2015-09-11T22:23:02Z","git_url":"git://github.com/michellephung/couchdb-fauxton.git","ssh_url":"git@github.com:michellephung/couchdb-fauxton.git","clone_url":"https://github.com/michellephung/couchdb-fauxton.git","svn_url":"https://github.com/michellephung/couchdb-fauxton","homepage":null,"size":44883,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"ae91c75e6672c214a4f2a98377791d13fa714f83","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":15993612,"name":"couchdb-fauxton","full_name":"apache/couchdb-fauxton","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/couchdb-fauxton","description":"Mirror of Apache CouchDB","fork":false,"url":"https://api.github.com/repos/apache/couchdb-fauxton","forks_url":"https://api.github.com/repos/apache/couchdb-fauxton/forks","keys_url":"https://api.github.com/repos/apache/couchdb-fauxton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/couchdb-fauxton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/couchdb-fauxton/teams","hooks_url":"https://api.github.com/repos/apache/couchdb-fauxton/hooks","issue_events_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/events{/number}","events_url":"https://api.github.com/repos/apache/couchdb-fauxton/events","assignees_url":"https://api.github.com/repos/apache/couchdb-fauxton/assignees{/user}","branches_url":"https://api.github.com/repos/apache/couchdb-fauxton/branches{/branch}","tags_url":"https://api.github.com/repos/apache/couchdb-fauxton/tags","blobs_url":"https://api.github.com/repos/apache/couchdb-fauxton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/couchdb-fauxton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/couchdb-fauxton/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/couchdb-fauxton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/couchdb-fauxton/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/couchdb-fauxton/languages","stargazers_url":"https://api.github.com/repos/apache/couchdb-fauxton/stargazers","contributors_url":"https://api.github.com/repos/apache/couchdb-fauxton/contributors","subscribers_url":"https://api.github.com/repos/apache/couchdb-fauxton/subscribers","subscription_url":"https://api.github.com/repos/apache/couchdb-fauxton/subscription","commits_url":"https://api.github.com/repos/apache/couchdb-fauxton/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/couchdb-fauxton/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/couchdb-fauxton/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/couchdb-fauxton/contents/{+path}","compare_url":"https://api.github.com/repos/apache/couchdb-fauxton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/couchdb-fauxton/merges","archive_url":"https://api.github.com/repos/apache/couchdb-fauxton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/couchdb-fauxton/downloads","issues_url":"https://api.github.com/repos/apache/couchdb-fauxton/issues{/number}","pulls_url":"https://api.github.com/repos/apache/couchdb-fauxton/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/couchdb-fauxton/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/couchdb-fauxton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/couchdb-fauxton/labels{/name}","releases_url":"https://api.github.com/repos/apache/couchdb-fauxton/releases{/id}","created_at":"2014-01-17T08:00:08Z","updated_at":"2015-09-01T23:07:21Z","pushed_at":"2015-09-11T22:23:03Z","git_url":"git://github.com/apache/couchdb-fauxton.git","ssh_url":"git@github.com:apache/couchdb-fauxton.git","clone_url":"https://github.com/apache/couchdb-fauxton.git","svn_url":"https://github.com/apache/couchdb-fauxton","homepage":null,"size":12059,"stargazers_count":58,"watchers_count":58,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":57,"mirror_url":"git://git.apache.org/couchdb-fauxton.git","open_issues_count":8,"forks":57,"open_issues":8,"watchers":58,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/495"},"html":{"href":"https://github.com/apache/couchdb-fauxton/pull/495"},"issue":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/issues/495"},"comments":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/issues/495/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/495/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/pulls/495/commits"},"statuses":{"href":"https://api.github.com/repos/apache/couchdb-fauxton/statuses/136d715900f607949f2b95ccb129d5aa7d4f3eab"}}}}