{"action":"created","comment":{"url":"https://api.github.com/repos/mapsme/omim/pulls/comments/196425185","pull_request_review_id":129973373,"id":196425185,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjQyNTE4NQ==","diff_hunk":"@@ -215,222 +139,273 @@ class OSMElementCache\n     return true;\n   }\n \n-  inline void SaveOffsets() { m_offsets.WriteAll(); }\n-  inline void LoadOffsets() { m_offsets.ReadAll(); }\n+  void LoadOffsets();\n+\n+protected:\n+  FileReader m_fileReader;\n+  IndexFileReader m_offsets;\n+  std::string m_name;\n+  std::vector<uint8_t> m_data;\n+  bool m_preload = false;\n };\n \n-/// Used to store all world nodes inside temporary index file.\n-/// To find node by id, just calculate offset inside index file:\n-/// offset_in_file = sizeof(LatLon) * node_ID\n-class PointStorage\n+class OSMElementCacheWriter\n {\n-  size_t m_processedPoint = 0;\n-\n public:\n-  struct LatLon\n-  {\n-    int32_t lat;\n-    int32_t lon;\n-  };\n-  static_assert(sizeof(LatLon) == 8, \"Invalid structure size\");\n+  explicit OSMElementCacheWriter(std::string const & name, bool preload = false);\n \n-  struct LatLonPos\n+  template <typename Value>\n+  void Write(Key id, Value const & value)\n   {\n-    uint64_t pos;\n-    int32_t lat;\n-    int32_t lon;\n-  };\n-  static_assert(sizeof(LatLonPos) == 16, \"Invalid structure size\");\n+    m_offsets.Add(id, m_fileWriter.Pos());\n+    m_data.clear();\n+    MemWriter<decltype(m_data)> w(m_data);\n+\n+    value.Write(w);\n+\n+    ASSERT_LESS(m_data.size(), std::numeric_limits<uint32_t>::max(), ());\n+    uint32_t sz = static_cast<uint32_t>(m_data.size());\n+    // ?!\n+    m_fileWriter.Write(&sz, sizeof(sz));\n+    m_fileWriter.Write(m_data.data(), sz);\n+  }\n+\n+  void SaveOffsets();\n \n-  inline size_t GetProcessedPoint() const { return m_processedPoint; }\n-  inline void IncProcessedPoint() { ++m_processedPoint; }\n+protected:\n+  FileWriter m_fileWriter;\n+  IndexFileWriter m_offsets;\n+  std::string m_name;\n+  std::vector<uint8_t> m_data;\n+  bool m_preload = false;\n };\n \n-template <EMode TMode>\n-class RawFilePointStorage : public PointStorage\n+class RawFilePointStorageMmapReader\n {\n-#ifdef OMIM_OS_WINDOWS\n-  using TFileReader = FileReader;\n-#else\n-  using TFileReader = MmapReader;\n-#endif\n+public:\n+  explicit RawFilePointStorageMmapReader(std::string const & name);\n \n-  std::conditional_t<TMode == EMode::Write, FileWriter, TFileReader> m_file;\n+  bool GetPoint(uint64_t id, double & lat, double & lon) const;\n \n-  constexpr static double const kValueOrder = 1E+7;\n+private:\n+  MmapReader m_mmapReader;\n+};\n \n+class RawFilePointStorageWriter\n+{\n public:\n-  explicit RawFilePointStorage(std::string const & name) : m_file(name) {}\n-\n-  template <EMode T = TMode>\n-  std::enable_if_t<T == EMode::Write, void> AddPoint(uint64_t id, double lat, double lng)\n-  {\n-    int64_t const lat64 = lat * kValueOrder;\n-    int64_t const lng64 = lng * kValueOrder;\n+  explicit RawFilePointStorageWriter(std::string const & name);\n \n-    LatLon ll;\n-    ll.lat = static_cast<int32_t>(lat64);\n-    ll.lon = static_cast<int32_t>(lng64);\n-    CHECK_EQUAL(static_cast<int64_t>(ll.lat), lat64, (\"Latitude is out of 32bit boundary!\"));\n-    CHECK_EQUAL(static_cast<int64_t>(ll.lon), lng64, (\"Longtitude is out of 32bit boundary!\"));\n+  void AddPoint(uint64_t id, double lat, double lon);\n+  uint64_t GetNumProcessedPoints() const { return m_numProcessedPoints; }\n \n-    m_file.Seek(id * sizeof(ll));\n-    m_file.Write(&ll, sizeof(ll));\n+private:\n+  FileWriter m_fileWriter;\n+  uint64_t m_numProcessedPoints = 0;\n+};\n \n-    IncProcessedPoint();\n-  }\n+class RawMemPointStorageReader\n+{\n+public:\n+  explicit RawMemPointStorageReader(std::string const & name);\n \n-  template <EMode T = TMode>\n-  std::enable_if_t<T == EMode::Read, bool> GetPoint(uint64_t id, double & lat, double & lng) const\n-  {\n-    LatLon ll;\n-    m_file.Read(id * sizeof(ll), &ll, sizeof(ll));\n+  bool GetPoint(uint64_t id, double & lat, double & lon) const;\n \n-    // assume that valid coordinate is not (0, 0)\n-    if (ll.lat != 0.0 || ll.lon != 0.0)\n-    {\n-      lat = static_cast<double>(ll.lat) / kValueOrder;\n-      lng = static_cast<double>(ll.lon) / kValueOrder;\n-      return true;\n-    }\n-    LOG(LERROR, (\"Node with id = \", id, \" not found!\"));\n-    return false;\n-  }\n+private:\n+  FileReader m_fileReader;\n+  std::vector<LatLon> m_data;\n };\n \n-template <EMode TMode>\n-class RawMemPointStorage : public PointStorage\n+class RawMemPointStorageWriter\n {\n-  std::conditional_t<TMode == EMode::Write, FileWriter, FileReader> m_file;\n+public:\n+  explicit RawMemPointStorageWriter(std::string const & name);\n \n-  constexpr static double const kValueOrder = 1E+7;\n+  ~RawMemPointStorageWriter();\n \n+  void AddPoint(uint64_t id, double lat, double lon);\n+  uint64_t GetNumProcessedPoints() const { return m_numProcessedPoints; }\n+\n+private:\n+  FileWriter m_fileWriter;\n   std::vector<LatLon> m_data;\n+  uint64_t m_numProcessedPoints = 0;\n+};\n \n+class MapFilePointStorageReader\n+{\n public:\n-  explicit RawMemPointStorage(std::string const & name) : m_file(name), m_data(static_cast<size_t>(1) << 33)\n-  {\n-    InitStorage<TMode>();\n-  }\n+  explicit MapFilePointStorageReader(std::string const & name);\n+\n+  bool GetPoint(uint64_t id, double & lat, double & lon) const;\n+\n+private:\n+  FileReader m_fileReader;\n+  std::unordered_map<uint64_t, std::pair<int32_t, int32_t>> m_map;\n+};\n+\n+class MapFilePointStorageWriter\n+{\n+public:\n+  explicit MapFilePointStorageWriter(std::string const & name);\n \n-  ~RawMemPointStorage() { DoneStorage<TMode>(); }\n+  void AddPoint(uint64_t id, double lat, double lon);\n+  uint64_t GetNumProcessedPoints() const { return m_numProcessedPoints; }\n \n-  template <EMode T>\n-  std::enable_if_t<T == EMode::Write, void> InitStorage()\n+private:\n+  FileWriter m_fileWriter;\n+  std::unordered_map<uint64_t, std::pair<int32_t, int32_t>> m_map;\n+  uint64_t m_numProcessedPoints = 0;\n+};\n+\n+template <typename NodesHolder>\n+class IntermediateDataReader\n+{\n+public:\n+  IntermediateDataReader(NodesHolder & nodes, feature::GenerateInfo & info)\n+    : m_nodes(nodes)\n+    , m_ways(info.GetIntermediateFileName(WAYS_FILE, \"\"), info.m_preloadCache)\n+    , m_relations(info.GetIntermediateFileName(RELATIONS_FILE, \"\"), info.m_preloadCache)\n+    , m_nodeToRelations(info.GetIntermediateFileName(NODES_FILE, ID2REL_EXT))\n+    , m_wayToRelations(info.GetIntermediateFileName(WAYS_FILE, ID2REL_EXT))\n   {\n   }\n \n-  template <EMode T>\n-  std::enable_if_t<T == EMode::Read, void> InitStorage()\n+  bool GetNode(Key id, double & lat, double & lon) { return m_nodes.GetPoint(id, lat, lon); }\n+  bool GetWay(Key id, WayElement & e) { return m_ways.Read(id, e); }\n+\n+  template <class ToDo>\n+  void ForEachRelationByWay(Key id, ToDo && toDo)\n   {\n-    m_file.Read(0, m_data.data(), m_data.size() * sizeof(LatLon));\n+    RelationProcessor<ToDo> processor(m_relations, toDo);\n+    m_wayToRelations.ForEachByKey(id, processor);\n   }\n \n-  template <EMode T>\n-  std::enable_if_t<T == EMode::Write, void> DoneStorage()\n+  template <class ToDo>\n+  void ForEachRelationByWayCached(Key id, ToDo && toDo)\n   {\n-    m_file.Write(m_data.data(), m_data.size() * sizeof(LatLon));\n+    CachedRelationProcessor<ToDo> processor(m_relations, toDo);\n+    m_wayToRelations.ForEachByKey(id, processor);\n   }\n \n-  template <EMode T>\n-  std::enable_if_t<T == EMode::Read, void> DoneStorage()\n+  template <class ToDo>\n+  void ForEachRelationByNodeCached(Key id, ToDo && toDo)\n   {\n+    CachedRelationProcessor<ToDo> processor(m_relations, toDo);\n+    m_nodeToRelations.ForEachByKey(id, processor);\n   }\n \n-  template <EMode T = TMode>\n-  std::enable_if_t<T == EMode::Write, void> AddPoint(uint64_t id, double lat, double lng)\n+  void LoadIndex()\n   {\n-    int64_t const lat64 = lat * kValueOrder;\n-    int64_t const lng64 = lng * kValueOrder;\n-\n-    CHECK_LESS(id, m_data.size(), (\"Found node with id\", id, \"which is bigger than the allocated cache size\"));\n-    LatLon & ll = m_data[id];\n-    ll.lat = static_cast<int32_t>(lat64);\n-    ll.lon = static_cast<int32_t>(lng64);\n-    CHECK_EQUAL(static_cast<int64_t>(ll.lat), lat64, (\"Latitude is out of 32bit boundary!\"));\n-    CHECK_EQUAL(static_cast<int64_t>(ll.lon), lng64, (\"Longtitude is out of 32bit boundary!\"));\n+    m_ways.LoadOffsets();\n+    m_relations.LoadOffsets();\n \n-    IncProcessedPoint();\n+    m_nodeToRelations.ReadAll();\n+    m_wayToRelations.ReadAll();\n   }\n \n-  template <EMode T = TMode>\n-  std::enable_if_t<T == EMode::Read, bool> GetPoint(uint64_t id, double & lat, double & lng) const\n+private:\n+  using CacheReader = cache::OSMElementCacheReader;\n+\n+  template <class Element, class ToDo>\n+  struct ElementProcessorBase\n   {\n-    LatLon const & ll = m_data[id];\n-    // assume that valid coordinate is not (0, 0)\n-    if (ll.lat != 0.0 || ll.lon != 0.0)\n+  protected:\n+    CacheReader m_reader;\n+    ToDo & m_toDo;\n+\n+  public:\n+    ElementProcessorBase(CacheReader & reader, ToDo & toDo) : m_reader(reader), m_toDo(toDo) {}\n+\n+    bool operator()(uint64_t id)\n     {\n-      lat = static_cast<double>(ll.lat) / kValueOrder;\n-      lng = static_cast<double>(ll.lon) / kValueOrder;\n-      return true;\n+      Element e;\n+      return m_reader.Read(id, e) ? m_toDo(id, e) : false;\n     }\n-    LOG(LERROR, (\"Node with id = \", id, \" not found!\"));\n-    return false;\n-  }\n-};\n+  };\n \n-template <EMode TMode>\n-class MapFilePointStorage : public PointStorage\n-{\n-  std::conditional_t<TMode == EMode::Write, FileWriter, FileReader> m_file;\n-  std::unordered_map<uint64_t, std::pair<int32_t, int32_t>> m_map;\n+  template <class ToDo>\n+  struct RelationProcessor : public ElementProcessorBase<RelationElement, ToDo>\n+  {\n+    using Base = ElementProcessorBase<RelationElement, ToDo>;\n \n-  constexpr static double const kValueOrder = 1E+7;\n+    RelationProcessor(CacheReader & reader, ToDo & toDo) : Base(reader, toDo) {}\n+  };\n \n-public:\n-  explicit MapFilePointStorage(std::string const & name) : m_file(name + \".short\") { InitStorage<TMode>(); }\n+  template <class ToDo>\n+  struct CachedRelationProcessor : public RelationProcessor<ToDo>\n+  {\n+    using Base = RelationProcessor<ToDo>;\n+\n+    CachedRelationProcessor(CacheReader & reader, ToDo & toDo) : Base(reader, toDo) {}\n+    bool operator()(uint64_t id) { return this->m_toDo(id, this->m_reader); }\n+  };\n+\n+  NodesHolder & m_nodes;\n+\n+  cache::OSMElementCacheReader m_ways;\n+  cache::OSMElementCacheReader m_relations;\n+\n+  cache::IndexFileReader m_nodeToRelations;\n+  cache::IndexFileReader m_wayToRelations;\n+};\n \n-  template <EMode T>\n-  std::enable_if_t<T == EMode::Write, void> InitStorage()\n+template <typename NodesHolder>\n+class IntermediateDataWriter\n+{\n+public:\n+  IntermediateDataWriter(NodesHolder & nodes, feature::GenerateInfo & info)","path":"generator/intermediate_data.hpp","position":612,"original_position":612,"commit_id":"6a8c5f011d1da153ad091e77447bf18bbd52daa7","original_commit_id":"6a8c5f011d1da153ad091e77447bf18bbd52daa7","user":{"login":"mpimenov","id":10366009,"node_id":"MDQ6VXNlcjEwMzY2MDA5","avatar_url":"https://avatars0.githubusercontent.com/u/10366009?v=4","gravatar_id":"","url":"https://api.github.com/users/mpimenov","html_url":"https://github.com/mpimenov","followers_url":"https://api.github.com/users/mpimenov/followers","following_url":"https://api.github.com/users/mpimenov/following{/other_user}","gists_url":"https://api.github.com/users/mpimenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mpimenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpimenov/subscriptions","organizations_url":"https://api.github.com/users/mpimenov/orgs","repos_url":"https://api.github.com/users/mpimenov/repos","events_url":"https://api.github.com/users/mpimenov/events{/privacy}","received_events_url":"https://api.github.com/users/mpimenov/received_events","type":"User","site_admin":false},"body":"NodesHolder -- параметр шаблона.","created_at":"2018-06-19T13:33:11Z","updated_at":"2018-06-19T13:33:11Z","html_url":"https://github.com/mapsme/omim/pull/8881#discussion_r196425185","pull_request_url":"https://api.github.com/repos/mapsme/omim/pulls/8881","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mapsme/omim/pulls/comments/196425185"},"html":{"href":"https://github.com/mapsme/omim/pull/8881#discussion_r196425185"},"pull_request":{"href":"https://api.github.com/repos/mapsme/omim/pulls/8881"}},"in_reply_to_id":196389765},"pull_request":{"url":"https://api.github.com/repos/mapsme/omim/pulls/8881","id":195551929,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NTUxOTI5","html_url":"https://github.com/mapsme/omim/pull/8881","diff_url":"https://github.com/mapsme/omim/pull/8881.diff","patch_url":"https://github.com/mapsme/omim/pull/8881.patch","issue_url":"https://api.github.com/repos/mapsme/omim/issues/8881","number":8881,"state":"open","locked":false,"title":"[generator] Separated readers and writers in IntermediateData.","user":{"login":"mpimenov","id":10366009,"node_id":"MDQ6VXNlcjEwMzY2MDA5","avatar_url":"https://avatars0.githubusercontent.com/u/10366009?v=4","gravatar_id":"","url":"https://api.github.com/users/mpimenov","html_url":"https://github.com/mpimenov","followers_url":"https://api.github.com/users/mpimenov/followers","following_url":"https://api.github.com/users/mpimenov/following{/other_user}","gists_url":"https://api.github.com/users/mpimenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mpimenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpimenov/subscriptions","organizations_url":"https://api.github.com/users/mpimenov/orgs","repos_url":"https://api.github.com/users/mpimenov/repos","events_url":"https://api.github.com/users/mpimenov/events{/privacy}","received_events_url":"https://api.github.com/users/mpimenov/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-18T14:53:10Z","updated_at":"2018-06-19T13:33:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a005d560f38354c7e7b1f67cf6e1f95e498f52e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"syershov","id":14223965,"node_id":"MDQ6VXNlcjE0MjIzOTY1","avatar_url":"https://avatars3.githubusercontent.com/u/14223965?v=4","gravatar_id":"","url":"https://api.github.com/users/syershov","html_url":"https://github.com/syershov","followers_url":"https://api.github.com/users/syershov/followers","following_url":"https://api.github.com/users/syershov/following{/other_user}","gists_url":"https://api.github.com/users/syershov/gists{/gist_id}","starred_url":"https://api.github.com/users/syershov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syershov/subscriptions","organizations_url":"https://api.github.com/users/syershov/orgs","repos_url":"https://api.github.com/users/syershov/repos","events_url":"https://api.github.com/users/syershov/events{/privacy}","received_events_url":"https://api.github.com/users/syershov/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mapsme/omim/pulls/8881/commits","review_comments_url":"https://api.github.com/repos/mapsme/omim/pulls/8881/comments","review_comment_url":"https://api.github.com/repos/mapsme/omim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapsme/omim/issues/8881/comments","statuses_url":"https://api.github.com/repos/mapsme/omim/statuses/6a8c5f011d1da153ad091e77447bf18bbd52daa7","head":{"label":"mpimenov:osm-intermediate-data","ref":"osm-intermediate-data","sha":"6a8c5f011d1da153ad091e77447bf18bbd52daa7","user":{"login":"mpimenov","id":10366009,"node_id":"MDQ6VXNlcjEwMzY2MDA5","avatar_url":"https://avatars0.githubusercontent.com/u/10366009?v=4","gravatar_id":"","url":"https://api.github.com/users/mpimenov","html_url":"https://github.com/mpimenov","followers_url":"https://api.github.com/users/mpimenov/followers","following_url":"https://api.github.com/users/mpimenov/following{/other_user}","gists_url":"https://api.github.com/users/mpimenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mpimenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpimenov/subscriptions","organizations_url":"https://api.github.com/users/mpimenov/orgs","repos_url":"https://api.github.com/users/mpimenov/repos","events_url":"https://api.github.com/users/mpimenov/events{/privacy}","received_events_url":"https://api.github.com/users/mpimenov/received_events","type":"User","site_admin":false},"repo":{"id":43427925,"node_id":"MDEwOlJlcG9zaXRvcnk0MzQyNzkyNQ==","name":"omim","full_name":"mpimenov/omim","owner":{"login":"mpimenov","id":10366009,"node_id":"MDQ6VXNlcjEwMzY2MDA5","avatar_url":"https://avatars0.githubusercontent.com/u/10366009?v=4","gravatar_id":"","url":"https://api.github.com/users/mpimenov","html_url":"https://github.com/mpimenov","followers_url":"https://api.github.com/users/mpimenov/followers","following_url":"https://api.github.com/users/mpimenov/following{/other_user}","gists_url":"https://api.github.com/users/mpimenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mpimenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpimenov/subscriptions","organizations_url":"https://api.github.com/users/mpimenov/orgs","repos_url":"https://api.github.com/users/mpimenov/repos","events_url":"https://api.github.com/users/mpimenov/events{/privacy}","received_events_url":"https://api.github.com/users/mpimenov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mpimenov/omim","description":"MAPS.ME - Offline OpenStreetMap maps for iOS/Android/Mac/Linux/Windows","fork":true,"url":"https://api.github.com/repos/mpimenov/omim","forks_url":"https://api.github.com/repos/mpimenov/omim/forks","keys_url":"https://api.github.com/repos/mpimenov/omim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mpimenov/omim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mpimenov/omim/teams","hooks_url":"https://api.github.com/repos/mpimenov/omim/hooks","issue_events_url":"https://api.github.com/repos/mpimenov/omim/issues/events{/number}","events_url":"https://api.github.com/repos/mpimenov/omim/events","assignees_url":"https://api.github.com/repos/mpimenov/omim/assignees{/user}","branches_url":"https://api.github.com/repos/mpimenov/omim/branches{/branch}","tags_url":"https://api.github.com/repos/mpimenov/omim/tags","blobs_url":"https://api.github.com/repos/mpimenov/omim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mpimenov/omim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mpimenov/omim/git/refs{/sha}","trees_url":"https://api.github.com/repos/mpimenov/omim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mpimenov/omim/statuses/{sha}","languages_url":"https://api.github.com/repos/mpimenov/omim/languages","stargazers_url":"https://api.github.com/repos/mpimenov/omim/stargazers","contributors_url":"https://api.github.com/repos/mpimenov/omim/contributors","subscribers_url":"https://api.github.com/repos/mpimenov/omim/subscribers","subscription_url":"https://api.github.com/repos/mpimenov/omim/subscription","commits_url":"https://api.github.com/repos/mpimenov/omim/commits{/sha}","git_commits_url":"https://api.github.com/repos/mpimenov/omim/git/commits{/sha}","comments_url":"https://api.github.com/repos/mpimenov/omim/comments{/number}","issue_comment_url":"https://api.github.com/repos/mpimenov/omim/issues/comments{/number}","contents_url":"https://api.github.com/repos/mpimenov/omim/contents/{+path}","compare_url":"https://api.github.com/repos/mpimenov/omim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mpimenov/omim/merges","archive_url":"https://api.github.com/repos/mpimenov/omim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mpimenov/omim/downloads","issues_url":"https://api.github.com/repos/mpimenov/omim/issues{/number}","pulls_url":"https://api.github.com/repos/mpimenov/omim/pulls{/number}","milestones_url":"https://api.github.com/repos/mpimenov/omim/milestones{/number}","notifications_url":"https://api.github.com/repos/mpimenov/omim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mpimenov/omim/labels{/name}","releases_url":"https://api.github.com/repos/mpimenov/omim/releases{/id}","deployments_url":"https://api.github.com/repos/mpimenov/omim/deployments","created_at":"2015-09-30T10:55:18Z","updated_at":"2018-06-13T13:34:44Z","pushed_at":"2018-06-19T11:02:05Z","git_url":"git://github.com/mpimenov/omim.git","ssh_url":"git@github.com:mpimenov/omim.git","clone_url":"https://github.com/mpimenov/omim.git","svn_url":"https://github.com/mpimenov/omim","homepage":null,"size":3773263,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mapsme:master","ref":"master","sha":"260f552a564fb56806003fa0b0338f2d450f1bf0","user":{"login":"mapsme","id":14185141,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTg1MTQx","avatar_url":"https://avatars1.githubusercontent.com/u/14185141?v=4","gravatar_id":"","url":"https://api.github.com/users/mapsme","html_url":"https://github.com/mapsme","followers_url":"https://api.github.com/users/mapsme/followers","following_url":"https://api.github.com/users/mapsme/following{/other_user}","gists_url":"https://api.github.com/users/mapsme/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsme/subscriptions","organizations_url":"https://api.github.com/users/mapsme/orgs","repos_url":"https://api.github.com/users/mapsme/repos","events_url":"https://api.github.com/users/mapsme/events{/privacy}","received_events_url":"https://api.github.com/users/mapsme/received_events","type":"Organization","site_admin":false},"repo":{"id":42798033,"node_id":"MDEwOlJlcG9zaXRvcnk0Mjc5ODAzMw==","name":"omim","full_name":"mapsme/omim","owner":{"login":"mapsme","id":14185141,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTg1MTQx","avatar_url":"https://avatars1.githubusercontent.com/u/14185141?v=4","gravatar_id":"","url":"https://api.github.com/users/mapsme","html_url":"https://github.com/mapsme","followers_url":"https://api.github.com/users/mapsme/followers","following_url":"https://api.github.com/users/mapsme/following{/other_user}","gists_url":"https://api.github.com/users/mapsme/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsme/subscriptions","organizations_url":"https://api.github.com/users/mapsme/orgs","repos_url":"https://api.github.com/users/mapsme/repos","events_url":"https://api.github.com/users/mapsme/events{/privacy}","received_events_url":"https://api.github.com/users/mapsme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapsme/omim","description":"🗺️ MAPS.ME — Offline OpenStreetMap maps for iOS and Android","fork":false,"url":"https://api.github.com/repos/mapsme/omim","forks_url":"https://api.github.com/repos/mapsme/omim/forks","keys_url":"https://api.github.com/repos/mapsme/omim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapsme/omim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapsme/omim/teams","hooks_url":"https://api.github.com/repos/mapsme/omim/hooks","issue_events_url":"https://api.github.com/repos/mapsme/omim/issues/events{/number}","events_url":"https://api.github.com/repos/mapsme/omim/events","assignees_url":"https://api.github.com/repos/mapsme/omim/assignees{/user}","branches_url":"https://api.github.com/repos/mapsme/omim/branches{/branch}","tags_url":"https://api.github.com/repos/mapsme/omim/tags","blobs_url":"https://api.github.com/repos/mapsme/omim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapsme/omim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapsme/omim/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapsme/omim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapsme/omim/statuses/{sha}","languages_url":"https://api.github.com/repos/mapsme/omim/languages","stargazers_url":"https://api.github.com/repos/mapsme/omim/stargazers","contributors_url":"https://api.github.com/repos/mapsme/omim/contributors","subscribers_url":"https://api.github.com/repos/mapsme/omim/subscribers","subscription_url":"https://api.github.com/repos/mapsme/omim/subscription","commits_url":"https://api.github.com/repos/mapsme/omim/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapsme/omim/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapsme/omim/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapsme/omim/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapsme/omim/contents/{+path}","compare_url":"https://api.github.com/repos/mapsme/omim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapsme/omim/merges","archive_url":"https://api.github.com/repos/mapsme/omim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapsme/omim/downloads","issues_url":"https://api.github.com/repos/mapsme/omim/issues{/number}","pulls_url":"https://api.github.com/repos/mapsme/omim/pulls{/number}","milestones_url":"https://api.github.com/repos/mapsme/omim/milestones{/number}","notifications_url":"https://api.github.com/repos/mapsme/omim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapsme/omim/labels{/name}","releases_url":"https://api.github.com/repos/mapsme/omim/releases{/id}","deployments_url":"https://api.github.com/repos/mapsme/omim/deployments","created_at":"2015-09-20T02:57:13Z","updated_at":"2018-06-19T13:24:07Z","pushed_at":"2018-06-19T13:28:56Z","git_url":"git://github.com/mapsme/omim.git","ssh_url":"git@github.com:mapsme/omim.git","clone_url":"https://github.com/mapsme/omim.git","svn_url":"https://github.com/mapsme/omim","homepage":"","size":3969589,"stargazers_count":2685,"watchers_count":2685,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":583,"mirror_url":null,"archived":false,"open_issues_count":711,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":583,"open_issues":711,"watchers":2685,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapsme/omim/pulls/8881"},"html":{"href":"https://github.com/mapsme/omim/pull/8881"},"issue":{"href":"https://api.github.com/repos/mapsme/omim/issues/8881"},"comments":{"href":"https://api.github.com/repos/mapsme/omim/issues/8881/comments"},"review_comments":{"href":"https://api.github.com/repos/mapsme/omim/pulls/8881/comments"},"review_comment":{"href":"https://api.github.com/repos/mapsme/omim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapsme/omim/pulls/8881/commits"},"statuses":{"href":"https://api.github.com/repos/mapsme/omim/statuses/6a8c5f011d1da153ad091e77447bf18bbd52daa7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mpimenov"}}