{"action":"created","comment":{"url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments/46064095","id":46064095,"diff_hunk":"@@ -4,148 +4,101 @@\n //\n // ------------------------------------------------------------------------------\n \n-define([\n-  \"jquery\",\n-  \"data/countries\",\n-  \"autocomplete\"\n-], function($, countries, AutoComplete) {\n+define([ \"jquery\", \"data/countries2\", \"autocomplete\", \"lib/utils/local_store\" ], function($, countries, AutoComplete, LocalStore) {\n \n   \"use strict\";\n \n-  var API_KEY = \"lp994363056324023341132625613270\",\n-      userCountry, geoIPCountryCode, geoIPLookupPromise;\n+  function FlightsWidgetAutocomplete($currency, $fromAirport, $fromCity, $toAirport, $toCity) {\n+    this.$currency        = $currency;\n+    this.$fromAirport     = $fromAirport;\n+    this.$fromCity        = $fromCity;\n+    this.$toAirport       = $toAirport;\n+    this.$toCity          = $toCity;\n+    this._onSelectCity    = this._onSelectCity.bind(this);\n+    this._fetchCountries  = this._fetchCountries.bind(this);\n+    this.localStore       = new LocalStore();\n+    this.getAndSetCurrency();\n+    this.getCountryCode().done(this.getAndSetCurrency.bind(this));\n+    this.setupAutocomplete(this.$fromCity);\n+    this.setupAutocomplete(this.$toCity);\n+  }\n+\n+  FlightsWidgetAutocomplete.prototype.API_KEY = \"lp994363056324023341132625613270\";\n \n-  function FlightsWidgetAutocomplete() {\n-    geoIPLookupPromise = $.ajax({\n+  FlightsWidgetAutocomplete.prototype.getCountryCode = function() {\n+    return $.ajax({\n       type: \"GET\",\n       url: \"http://www.lonelyplanet.com\",\n       success: function(data, textStatus, request) {\n-        var userCurrency, $currencySelect;\n-\n-        geoIPCountryCode = request.getResponseHeader(\"X-GeoIP-CountryCode\") || \"GB\";\n-        userCountry = $.grep(countries, function(currency) {\n-          return currency.code === geoIPCountryCode;\n-        });\n-\n-        if (userCountry.length && userCountry[0].Currency) {\n-          userCurrency = userCountry[0].Currency;\n-          $currencySelect = $(\".js-currency-select\");\n-\n-          $currencySelect.find(\".js-select\").val(userCurrency);\n-          $currencySelect.find(\".js-select-overlay\").text(userCurrency);\n-        }\n-      }\n+          this.countryCode = request.getResponseHeader(\"X-GeoIP-CountryCode\") || \"US\";\n+        }.bind(this)\n     });\n-  }\n-\n-  FlightsWidgetAutocomplete.prototype.init = function() {\n-    this.$fromAirport = $(\".js-from-airport\");\n-    this.$fromCity = $(\".js-from-city\");\n-    this.$toAirport = $(\".js-to-airport\");\n-    this.$toCity = $(\".js-to-city\");\n-\n-    this.setupAutocomplete(\"#js-from-city\");\n-    this.setupAutocomplete(\"#js-to-city\");\n   };\n \n-  FlightsWidgetAutocomplete.prototype.getCurrency = function(countries, countryCode) {\n-    var currency = \"USD\";\n-    for (var i = 0; i < countries.length; i++) {\n-      if (countries[i].Code === countryCode) {\n-        currency = countries[i].Currency;\n+  FlightsWidgetAutocomplete.prototype.getAndSetCurrency = function() {\n+    if (!this.userCurrency) {\n+      this.userCurrency = this.localStore.getCookie(\"lpCurrency\") || countries[this.countryCode];\n+      if (this.userCurrency) {\n+        this._userCurrencySelect();\n       }\n     }\n-    return currency;\n-  };\n-\n-  FlightsWidgetAutocomplete.prototype.buildUrl = function() {\n-    var currency = this.getCurrency(countries, geoIPCountryCode);\n-    return \"http://partners.api.skyscanner.net/apiservices/xd/autosuggest/v1.0/\" + geoIPCountryCode + \"/\" + currency + \"/\";\n-  };\n-\n-  FlightsWidgetAutocomplete.prototype.fetchCountries = function(searchTerm, callback) {\n-    var url = this.buildUrl();\n-\n-    $.ajax({\n-      type: \"GET\",\n-      url: url + \"en-GB?query=\" + searchTerm + \"&apikey=\" + API_KEY,\n-      dataType: \"JSONP\"\n-    }).done(function(data) {\n-      var places = data.Places;\n-\n-      places = places.filter(function(elem) {\n-        return elem.CityId !== \"-sky\";\n-      });\n-      for (var i = 0; i < places.length; i++) {\n-        var place = places[i];\n-        if (place.PlaceId === place.CityId) {\n-          place.PlaceName = place.PlaceName + \" (Any)\";\n-        } else {\n-          place.PlaceName = place.PlaceName + \" (\" + place.PlaceId.slice(0, -4) + \")\";\n-        }\n-      }\n-      var city = \"\";\n-      for (i = 0; i < places.length; i++) {\n-        if (city === places[i].CityId) {\n-          places[i].isCity = \"child\";\n-        } else {\n-          city = places[i].CityId;\n-          places[i].isCity = \"parent\";\n-\n-        }\n-      }\n-      callback(places);\n-    });\n   };\n \n-  FlightsWidgetAutocomplete.prototype.onSelectCity = function(item, event, currentField) {\n-    var $item = $(item),\n-        selectedCode = $item.data(\"value\").slice(0, -4),\n-        selectedValue = $item.text();\n+  // -------------------------------------------------------------------------\n+  // Private\n+  // -------------------------------------------------------------------------\n \n-    selectedValue = selectedValue.substring(0, selectedValue.indexOf(\")\"));\n-    if (currentField === \"#js-from-city\") {\n-      this.$fromAirport.val(selectedCode);\n-      this.$fromCity.val(selectedValue + \")\");\n-    } else {\n-      this.$toAirport.val(selectedCode);\n-      this.$toCity.val(selectedValue + \")\");\n-    }\n+  FlightsWidgetAutocomplete.prototype._userCurrencySelect = function() {\n+    this.$currency.val(this.userCurrency);\n+    this.$currency.prev().html(\" \" + this.userCurrency + \" \");\n   };\n \n-  FlightsWidgetAutocomplete.prototype.setupAutocomplete = function(el) {\n+  FlightsWidgetAutocomplete.prototype.setupAutocomplete = function($el) {\n     new AutoComplete({\n-      el: el,\n+      el: $el,\n       threshold: 3,\n       limit: 4,\n-      fetch: this.fetchCountries.bind(this),\n-      onItem: this.onSelectCity.bind(this),\n+      fetch: this._fetchCountries,\n+      onItem: this._onSelectCity,\n       templates: {\n-        item:\n-          \"<div class='{{isCity}}'>\" +\n-            \"<span class='autocomplete__place-name'>{{PlaceName}}</span>\" +\n-            \"<span class='autocomplete__country-name'>{{CountryName}}</span>\" +\n-          \"</div>\",\n+        item: \"<div class='{{isCity}}'>\" + \"<span class='autocomplete__place-name'>{{PlaceName}}</span>\" + \"<span class='autocomplete__country-name'>{{CountryName}}</span>\" + \"</div>\",\n         value: \"{{PlaceId}}\"\n       }\n     });\n+  };\n+\n+  FlightsWidgetAutocomplete.prototype._fetchCountries = function(searchTerm, callback) {\n+    $.ajax({\n+      type: \"GET\",\n+      dataType: \"JSONP\",\n+      url: this.__buildUrl(searchTerm)\n+    }).done(function(data) {\n+      var city, places;\n+      places = data.Places.filter(function(el) {\n+        return el.CityId !== \"-sky\";\n+      });\n+      city = \"\";\n+      $.each(places, function(i, place) {\n+        place.PlaceName += place.PlaceId === place.CityId ? \" (Any)\" : \" (\" + (place.PlaceId.slice(0, -4)) + \")\";\n+        place.isCity = city === place.CityId ? \"child\" : (city = place.CityId, \"parent\");\n+      });\n+      return callback(places);","path":"app/assets/javascripts/lib/widgets/flights_autocomplete.js","position":184,"original_position":183,"commit_id":"4b8fdc6c22700a82ef1704831a7028194e0bdd0e","original_commit_id":"4c070afb6f8d0692095c674a3abd0c33f23b9538","user":{"login":"WunderBart","id":1451471,"avatar_url":"https://avatars.githubusercontent.com/u/1451471?v=3","gravatar_id":"","url":"https://api.github.com/users/WunderBart","html_url":"https://github.com/WunderBart","followers_url":"https://api.github.com/users/WunderBart/followers","following_url":"https://api.github.com/users/WunderBart/following{/other_user}","gists_url":"https://api.github.com/users/WunderBart/gists{/gist_id}","starred_url":"https://api.github.com/users/WunderBart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WunderBart/subscriptions","organizations_url":"https://api.github.com/users/WunderBart/orgs","repos_url":"https://api.github.com/users/WunderBart/repos","events_url":"https://api.github.com/users/WunderBart/events{/privacy}","received_events_url":"https://api.github.com/users/WunderBart/received_events","type":"User","site_admin":false},"body":"Would be nice to move this (and other functions like this) to named ones. For ex:\r\n\r\n```javascript\r\n...\r\nsuccess: this.onFetchCountriesSuccess.bind(this)\r\n\r\n","created_at":"2015-11-27T17:50:39Z","updated_at":"2015-11-27T17:50:39Z","html_url":"https://github.com/lonelyplanet/rizzo/pull/1404#discussion_r46064095","pull_request_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404","_links":{"self":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments/46064095"},"html":{"href":"https://github.com/lonelyplanet/rizzo/pull/1404#discussion_r46064095"},"pull_request":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404"}}},"pull_request":{"url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404","id":51814238,"html_url":"https://github.com/lonelyplanet/rizzo/pull/1404","diff_url":"https://github.com/lonelyplanet/rizzo/pull/1404.diff","patch_url":"https://github.com/lonelyplanet/rizzo/pull/1404.patch","issue_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1404","number":1404,"state":"open","locked":false,"title":"rewrite flights widget","user":{"login":"madmaniak","id":2125923,"avatar_url":"https://avatars.githubusercontent.com/u/2125923?v=3","gravatar_id":"","url":"https://api.github.com/users/madmaniak","html_url":"https://github.com/madmaniak","followers_url":"https://api.github.com/users/madmaniak/followers","following_url":"https://api.github.com/users/madmaniak/following{/other_user}","gists_url":"https://api.github.com/users/madmaniak/gists{/gist_id}","starred_url":"https://api.github.com/users/madmaniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmaniak/subscriptions","organizations_url":"https://api.github.com/users/madmaniak/orgs","repos_url":"https://api.github.com/users/madmaniak/repos","events_url":"https://api.github.com/users/madmaniak/events{/privacy}","received_events_url":"https://api.github.com/users/madmaniak/received_events","type":"User","site_admin":false},"body":"https://lonelyplanet.atlassian.net/browse/LPMC-217","created_at":"2015-11-25T16:14:05Z","updated_at":"2015-11-27T17:50:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"672e1192aa333bc739ac7fcfd7399d438888c304","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404/commits","review_comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404/comments","review_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1404/comments","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/4b8fdc6c22700a82ef1704831a7028194e0bdd0e","head":{"label":"lonelyplanet:flights_widget_rewrite","ref":"flights_widget_rewrite","sha":"4b8fdc6c22700a82ef1704831a7028194e0bdd0e","user":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"repo":{"id":4184894,"name":"rizzo","full_name":"lonelyplanet/rizzo","owner":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lonelyplanet/rizzo","description":"UI Layer for lonelyplanet.com","fork":false,"url":"https://api.github.com/repos/lonelyplanet/rizzo","forks_url":"https://api.github.com/repos/lonelyplanet/rizzo/forks","keys_url":"https://api.github.com/repos/lonelyplanet/rizzo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lonelyplanet/rizzo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lonelyplanet/rizzo/teams","hooks_url":"https://api.github.com/repos/lonelyplanet/rizzo/hooks","issue_events_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/events{/number}","events_url":"https://api.github.com/repos/lonelyplanet/rizzo/events","assignees_url":"https://api.github.com/repos/lonelyplanet/rizzo/assignees{/user}","branches_url":"https://api.github.com/repos/lonelyplanet/rizzo/branches{/branch}","tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/tags","blobs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/refs{/sha}","trees_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/{sha}","languages_url":"https://api.github.com/repos/lonelyplanet/rizzo/languages","stargazers_url":"https://api.github.com/repos/lonelyplanet/rizzo/stargazers","contributors_url":"https://api.github.com/repos/lonelyplanet/rizzo/contributors","subscribers_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscribers","subscription_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscription","commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/commits{/sha}","git_commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/commits{/sha}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/comments{/number}","issue_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/comments{/number}","contents_url":"https://api.github.com/repos/lonelyplanet/rizzo/contents/{+path}","compare_url":"https://api.github.com/repos/lonelyplanet/rizzo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lonelyplanet/rizzo/merges","archive_url":"https://api.github.com/repos/lonelyplanet/rizzo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lonelyplanet/rizzo/downloads","issues_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues{/number}","pulls_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls{/number}","milestones_url":"https://api.github.com/repos/lonelyplanet/rizzo/milestones{/number}","notifications_url":"https://api.github.com/repos/lonelyplanet/rizzo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lonelyplanet/rizzo/labels{/name}","releases_url":"https://api.github.com/repos/lonelyplanet/rizzo/releases{/id}","created_at":"2012-04-30T17:06:06Z","updated_at":"2015-11-25T19:24:18Z","pushed_at":"2015-11-27T17:39:47Z","git_url":"git://github.com/lonelyplanet/rizzo.git","ssh_url":"git@github.com:lonelyplanet/rizzo.git","clone_url":"https://github.com/lonelyplanet/rizzo.git","svn_url":"https://github.com/lonelyplanet/rizzo","homepage":"","size":108190,"stargazers_count":492,"watchers_count":492,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":10,"forks":49,"open_issues":10,"watchers":492,"default_branch":"master"}},"base":{"label":"lonelyplanet:master","ref":"master","sha":"787629e2d680d6129d36c58ebe5bd4a3394d7dcc","user":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"repo":{"id":4184894,"name":"rizzo","full_name":"lonelyplanet/rizzo","owner":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lonelyplanet/rizzo","description":"UI Layer for lonelyplanet.com","fork":false,"url":"https://api.github.com/repos/lonelyplanet/rizzo","forks_url":"https://api.github.com/repos/lonelyplanet/rizzo/forks","keys_url":"https://api.github.com/repos/lonelyplanet/rizzo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lonelyplanet/rizzo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lonelyplanet/rizzo/teams","hooks_url":"https://api.github.com/repos/lonelyplanet/rizzo/hooks","issue_events_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/events{/number}","events_url":"https://api.github.com/repos/lonelyplanet/rizzo/events","assignees_url":"https://api.github.com/repos/lonelyplanet/rizzo/assignees{/user}","branches_url":"https://api.github.com/repos/lonelyplanet/rizzo/branches{/branch}","tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/tags","blobs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/refs{/sha}","trees_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/{sha}","languages_url":"https://api.github.com/repos/lonelyplanet/rizzo/languages","stargazers_url":"https://api.github.com/repos/lonelyplanet/rizzo/stargazers","contributors_url":"https://api.github.com/repos/lonelyplanet/rizzo/contributors","subscribers_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscribers","subscription_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscription","commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/commits{/sha}","git_commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/commits{/sha}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/comments{/number}","issue_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/comments{/number}","contents_url":"https://api.github.com/repos/lonelyplanet/rizzo/contents/{+path}","compare_url":"https://api.github.com/repos/lonelyplanet/rizzo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lonelyplanet/rizzo/merges","archive_url":"https://api.github.com/repos/lonelyplanet/rizzo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lonelyplanet/rizzo/downloads","issues_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues{/number}","pulls_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls{/number}","milestones_url":"https://api.github.com/repos/lonelyplanet/rizzo/milestones{/number}","notifications_url":"https://api.github.com/repos/lonelyplanet/rizzo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lonelyplanet/rizzo/labels{/name}","releases_url":"https://api.github.com/repos/lonelyplanet/rizzo/releases{/id}","created_at":"2012-04-30T17:06:06Z","updated_at":"2015-11-25T19:24:18Z","pushed_at":"2015-11-27T17:39:47Z","git_url":"git://github.com/lonelyplanet/rizzo.git","ssh_url":"git@github.com:lonelyplanet/rizzo.git","clone_url":"https://github.com/lonelyplanet/rizzo.git","svn_url":"https://github.com/lonelyplanet/rizzo","homepage":"","size":108190,"stargazers_count":492,"watchers_count":492,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":10,"forks":49,"open_issues":10,"watchers":492,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404"},"html":{"href":"https://github.com/lonelyplanet/rizzo/pull/1404"},"issue":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1404"},"comments":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1404/comments"},"review_comments":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404/comments"},"review_comment":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404/commits"},"statuses":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/4b8fdc6c22700a82ef1704831a7028194e0bdd0e"}}}}