{"action":"created","comment":{"url":"https://api.github.com/repos/mapsme/omim/pulls/comments/48423563","id":48423563,"diff_hunk":"@@ -0,0 +1,334 @@\n+#include \"sunrise_sunset_algorithm.hpp\"\n+\n+#include \"base/assert.hpp\"\n+#include \"base/math.hpp\"\n+#include \"base/timegm.hpp\"\n+\n+namespace\n+{\n+\n+// Sun's zenith for sunrise/sunset\n+//   offical      = 90 degrees 50' = 90,83333333333333 degrees\n+//   civil        = 96 degrees\n+//   nautical     = 102 degrees\n+//   astronomical = 108 degrees\n+double constexpr kZenith = 96;\n+\n+time_t constexpr kOneDaySeconds = 24 * 60 * 60;\n+\n+inline double NormalizeAngle(double a)\n+{\n+  double res = fmod(a, 360.);\n+  if (res < 0)\n+    res += 360.;\n+  return res;\n+}\n+\n+inline double NormalizeHour(double h)\n+{\n+  double res = fmod(h, 24.);\n+  if (res < 0)\n+    res += 24.;\n+  return res;\n+}\n+\n+inline int DaysOfMonth(int year, int month)\n+{\n+  ASSERT_GREATER_OR_EQUAL(month, 1, ());\n+  ASSERT_LESS_OR_EQUAL(month, 12, ());\n+  int const february = base::IsLeapYear(year) ? 29 : 28;\n+  int const daysPerMonth[12] = { 31, february, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };\n+  return daysPerMonth[month - 1];\n+}\n+\n+void NextDay(int & year, int & month, int & day)\n+{\n+  if (day < DaysOfMonth(year, month))\n+  {\n+    ++day;\n+    return;\n+  }\n+  if (month < 12)\n+  {\n+    day = 1;\n+    ++month;\n+    return;\n+  }\n+  day = 1;\n+  month = 1;\n+  ++year;\n+}\n+\n+void PrevDay(int & year, int & month, int & day)\n+{\n+  if (day > 1)\n+  {\n+    --day;\n+    return;\n+  }\n+  if (month > 1)\n+  {\n+    --month;\n+    day = DaysOfMonth(year, month);\n+    return;\n+  }\n+  --year;\n+  month = 12;\n+  day = 31;\n+}\n+\n+enum class DayEventType\n+{\n+  Sunrise,\n+  Sunset,\n+  PolarDay,\n+  PolarNight\n+};\n+\n+DayEventType CalculateDayEventTime(int year, int month, int day,\n+                                   double latitude, double longitude,\n+                                   bool sunrise,\n+                                   int & hour, int & minute, int & second)\n+{\n+  // Source: http://williams.best.vwh.net/sunrise_sunset_algorithm.htm\n+\n+  // 1. first calculate the day of the year\n+\n+  double const N1 = floor(275. * month / 9.);\n+  double const N2 = floor((month + 9.) / 12.);\n+  double const N3 = (1. + floor((year - 4. * floor(year / 4.) + 2.) / 3.));\n+  double const N = N1 - (N2 * N3) + day - 30.;\n+\n+  // 2. convert the longitude to hour value and calculate an approximate time\n+\n+  double const lngHour = longitude / 15;\n+\n+  double t = 0;\n+  if (sunrise)\n+    t = N + ((6 - lngHour) / 24);\n+  else\n+    t = N + ((18 - lngHour) / 24);\n+\n+  // 3. calculate the Sun's mean anomaly\n+\n+  double const M = (0.9856 * t) - 3.289;\n+\n+  // 4. calculate the Sun's true longitude\n+\n+  double L = M + (1.916 * sin(my::DegToRad(M))) + (0.020 * sin(2 * my::DegToRad(M))) + 282.634;\n+  // NOTE: L potentially needs to be adjusted into the range [0,360) by adding/subtracting 360\n+  L = NormalizeAngle(L);\n+\n+  // 5a. calculate the Sun's right ascension\n+\n+  double RA = my::RadToDeg( atan(0.91764 * tan(my::DegToRad(L))) );\n+  // NOTE: RA potentially needs to be adjusted into the range [0,360) by adding/subtracting 360\n+  RA = NormalizeAngle(RA);\n+\n+  // 5b. right ascension value needs to be in the same quadrant as L\n+\n+  double const Lquadrant = (floor( L / 90)) * 90;\n+  double const RAquadrant = (floor(RA / 90)) * 90;\n+  RA = RA + (Lquadrant - RAquadrant);\n+\n+  // 5c. right ascension value needs to be converted into hours\n+\n+  RA = RA / 15;\n+\n+  // 6. calculate the Sun's declination\n+\n+  double sinDec = 0.39782 * sin(my::DegToRad(L));\n+  double cosDec = cos(asin(sinDec));\n+\n+  // 7a. calculate the Sun's local hour angle\n+\n+  double cosH = (cos(my::DegToRad(kZenith)) - (sinDec * sin(my::DegToRad(latitude)))) / (cosDec * cos(my::DegToRad(latitude)));\n+\n+  // if cosH > 1 then sun is never rises on this location on specified date (polar night)\n+  // if cosH < -1 then sun is never sets on this location on specified date (polar day)\n+  if (cosH < -1 || cosH > 1)\n+  {\n+    hour = sunrise ? 0 : 23;\n+    minute = sunrise ? 0 : 59;\n+    second = sunrise ? 0 : 59;\n+    return (cosH < -1) ? DayEventType::PolarDay : DayEventType::PolarNight;\n+  }\n+\n+  // 7b. finish calculating H and convert into hours\n+\n+  double H = 0;\n+  if (sunrise)\n+    H = 360 - my::RadToDeg(acos(cosH));\n+  else\n+    H = my::RadToDeg(acos(cosH));\n+\n+  H = H / 15;\n+\n+  // 8. calculate local mean time of rising/setting\n+\n+  double T = H + RA - (0.06571 * t) - 6.622;\n+\n+  // 9. adjust back to UTC\n+\n+  double UT = T - lngHour;\n+  // NOTE: UT potentially needs to be adjusted into the range [0,24) by adding/subtracting 24\n+  UT = NormalizeHour(UT);\n+\n+  // UT - is a hour with fractional part of date year/month/day, in range of [0;24)\n+\n+  hour = floor(UT); // [0;24)\n+  minute = floor((UT - hour) * 60); // [0;60)\n+  second = fmod(floor(UT * 60 * 60) /* number of seconds from 0:0 to UT */, 60); // [0;60)\n+\n+  return sunrise ? DayEventType::Sunrise : DayEventType::Sunset;\n+}\n+\n+DayEventType CalculateDayEventTime(int year, int month, int day,\n+                                   double latitude, double longitude,\n+                                   bool sunrise,\n+                                   time_t & timestampUtc)\n+{\n+  int h, m, s;\n+  DayEventType res = CalculateDayEventTime(year, month, day, latitude, longitude, sunrise, h, m, s);\n+  timestampUtc = base::TimeGM(year, month, day, h, m, s);\n+  return res;\n+}\n+\n+} // namespace\n+\n+bool CalculateSunriseSunsetTime(int year, int month, int day,\n+                                double latitude, double longitude,\n+                                time_t & sunriseUtc, time_t & sunsetUtc)\n+{\n+  ASSERT_GREATER_OR_EQUAL(month, 1, ());\n+  ASSERT_LESS_OR_EQUAL(month, 12, ());\n+  ASSERT_GREATER_OR_EQUAL(day, 1, ());\n+  ASSERT_LESS_OR_EQUAL(day, DaysOfMonth(year, month), ());\n+\n+  time_t timestampSunrise, timestampSunset;\n+  DayEventType sunriseRes = CalculateDayEventTime(year, month, day, latitude, longitude, true /* sunrise */, timestampSunrise);\n+  DayEventType sunsetRes = CalculateDayEventTime(year, month, day, latitude, longitude, false /* sunrise */, timestampSunset);\n+\n+  // Edge cases: polar day and polar night\n+  if (sunriseRes == DayEventType::PolarDay || sunsetRes == DayEventType::PolarDay)\n+  {\n+    // Polar day: 24 hours of sun\n+    sunriseUtc = base::TimeGM(year, month, day, 0, 0, 0);\n+    sunsetUtc = sunriseUtc + kOneDaySeconds;\n+    return true;\n+  }\n+  else if (sunriseRes == DayEventType::PolarNight || sunsetRes == DayEventType::PolarNight)\n+  {\n+    // Polar night: 0 seconds of sun\n+    sunriseUtc = sunsetUtc = base::TimeGM(year, month, day, 0, 0, 0);\n+    return true;\n+  }\n+\n+  if (timestampSunset < timestampSunrise)\n+  {\n+    // Process line of date changing.\n+    // Local date fits to two utc dates (current utc date and previous utc date).\n+\n+    if (longitude > 0)\n+    {\n+      PrevDay(year, month, day);\n+      CalculateDayEventTime(year, month, day, latitude, longitude, true /* sunrise */, timestampSunrise);\n+    }\n+    else if (longitude < 0)\n+    {\n+      NextDay(year, month, day);\n+      CalculateDayEventTime(year, month, day, latitude, longitude, false /* sunrise */, timestampSunset);\n+    }\n+  }\n+\n+  ASSERT_LESS(timestampSunrise, timestampSunset, ());\n+  sunriseUtc = timestampSunrise;\n+  sunsetUtc = timestampSunset;\n+  return true;\n+}\n+\n+bool CalculateSunriseSunsetTime(time_t timeUtc,\n+                                double latitude, double longitude,\n+                                time_t & sunriseUtc, time_t & sunsetUtc)\n+{\n+  tm const * const t = gmtime(&timeUtc);\n+  if (nullptr == t)\n+    return false;\n+\n+  time_t timestampSunriseUtc, timestampSunsetUtc;\n+  if (!CalculateSunriseSunsetTime(t->tm_year + 1900, t->tm_mon + 1, t->tm_mday,","path":"map/sunrise_sunset_algorithm.cpp","position":259,"original_position":259,"commit_id":"317ea95ba312900c530ec9d62cc0a0b33d48e31d","original_commit_id":"317ea95ba312900c530ec9d62cc0a0b33d48e31d","user":{"login":"deathbaba","id":170263,"avatar_url":"https://avatars.githubusercontent.com/u/170263?v=3","gravatar_id":"","url":"https://api.github.com/users/deathbaba","html_url":"https://github.com/deathbaba","followers_url":"https://api.github.com/users/deathbaba/followers","following_url":"https://api.github.com/users/deathbaba/following{/other_user}","gists_url":"https://api.github.com/users/deathbaba/gists{/gist_id}","starred_url":"https://api.github.com/users/deathbaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deathbaba/subscriptions","organizations_url":"https://api.github.com/users/deathbaba/orgs","repos_url":"https://api.github.com/users/deathbaba/repos","events_url":"https://api.github.com/users/deathbaba/events{/privacy}","received_events_url":"https://api.github.com/users/deathbaba/received_events","type":"User","site_admin":false},"body":"Этот метод, судя по реализации, всегда возвращает true.","created_at":"2015-12-24T18:38:01Z","updated_at":"2015-12-24T18:38:01Z","html_url":"https://github.com/mapsme/omim/pull/1087#discussion_r48423563","pull_request_url":"https://api.github.com/repos/mapsme/omim/pulls/1087","_links":{"self":{"href":"https://api.github.com/repos/mapsme/omim/pulls/comments/48423563"},"html":{"href":"https://github.com/mapsme/omim/pull/1087#discussion_r48423563"},"pull_request":{"href":"https://api.github.com/repos/mapsme/omim/pulls/1087"}}},"pull_request":{"url":"https://api.github.com/repos/mapsme/omim/pulls/1087","id":54276146,"html_url":"https://github.com/mapsme/omim/pull/1087","diff_url":"https://github.com/mapsme/omim/pull/1087.diff","patch_url":"https://github.com/mapsme/omim/pull/1087.patch","issue_url":"https://api.github.com/repos/mapsme/omim/issues/1087","number":1087,"state":"open","locked":false,"title":"[DO NOT MERGE][nightmode] Implementation of sunrise/sunset calculator","user":{"login":"kshalnev","id":8023141,"avatar_url":"https://avatars.githubusercontent.com/u/8023141?v=3","gravatar_id":"","url":"https://api.github.com/users/kshalnev","html_url":"https://github.com/kshalnev","followers_url":"https://api.github.com/users/kshalnev/followers","following_url":"https://api.github.com/users/kshalnev/following{/other_user}","gists_url":"https://api.github.com/users/kshalnev/gists{/gist_id}","starred_url":"https://api.github.com/users/kshalnev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshalnev/subscriptions","organizations_url":"https://api.github.com/users/kshalnev/orgs","repos_url":"https://api.github.com/users/kshalnev/repos","events_url":"https://api.github.com/users/kshalnev/events{/privacy}","received_events_url":"https://api.github.com/users/kshalnev/received_events","type":"User","site_admin":false},"body":"Do not merge while i'm writing tests.","created_at":"2015-12-21T16:36:29Z","updated_at":"2015-12-24T18:38:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29bbc7ea5c1f486e0fabc192c88a719c1d662625","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mapsme/omim/pulls/1087/commits","review_comments_url":"https://api.github.com/repos/mapsme/omim/pulls/1087/comments","review_comment_url":"https://api.github.com/repos/mapsme/omim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapsme/omim/issues/1087/comments","statuses_url":"https://api.github.com/repos/mapsme/omim/statuses/317ea95ba312900c530ec9d62cc0a0b33d48e31d","head":{"label":"kshalnev:sunrise_sunset","ref":"sunrise_sunset","sha":"317ea95ba312900c530ec9d62cc0a0b33d48e31d","user":{"login":"kshalnev","id":8023141,"avatar_url":"https://avatars.githubusercontent.com/u/8023141?v=3","gravatar_id":"","url":"https://api.github.com/users/kshalnev","html_url":"https://github.com/kshalnev","followers_url":"https://api.github.com/users/kshalnev/followers","following_url":"https://api.github.com/users/kshalnev/following{/other_user}","gists_url":"https://api.github.com/users/kshalnev/gists{/gist_id}","starred_url":"https://api.github.com/users/kshalnev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshalnev/subscriptions","organizations_url":"https://api.github.com/users/kshalnev/orgs","repos_url":"https://api.github.com/users/kshalnev/repos","events_url":"https://api.github.com/users/kshalnev/events{/privacy}","received_events_url":"https://api.github.com/users/kshalnev/received_events","type":"User","site_admin":false},"repo":{"id":43427584,"name":"omim","full_name":"kshalnev/omim","owner":{"login":"kshalnev","id":8023141,"avatar_url":"https://avatars.githubusercontent.com/u/8023141?v=3","gravatar_id":"","url":"https://api.github.com/users/kshalnev","html_url":"https://github.com/kshalnev","followers_url":"https://api.github.com/users/kshalnev/followers","following_url":"https://api.github.com/users/kshalnev/following{/other_user}","gists_url":"https://api.github.com/users/kshalnev/gists{/gist_id}","starred_url":"https://api.github.com/users/kshalnev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshalnev/subscriptions","organizations_url":"https://api.github.com/users/kshalnev/orgs","repos_url":"https://api.github.com/users/kshalnev/repos","events_url":"https://api.github.com/users/kshalnev/events{/privacy}","received_events_url":"https://api.github.com/users/kshalnev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kshalnev/omim","description":"MAPS.ME - Offline OpenStreetMap maps for iOS/Android/Mac/Linux/Windows","fork":true,"url":"https://api.github.com/repos/kshalnev/omim","forks_url":"https://api.github.com/repos/kshalnev/omim/forks","keys_url":"https://api.github.com/repos/kshalnev/omim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kshalnev/omim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kshalnev/omim/teams","hooks_url":"https://api.github.com/repos/kshalnev/omim/hooks","issue_events_url":"https://api.github.com/repos/kshalnev/omim/issues/events{/number}","events_url":"https://api.github.com/repos/kshalnev/omim/events","assignees_url":"https://api.github.com/repos/kshalnev/omim/assignees{/user}","branches_url":"https://api.github.com/repos/kshalnev/omim/branches{/branch}","tags_url":"https://api.github.com/repos/kshalnev/omim/tags","blobs_url":"https://api.github.com/repos/kshalnev/omim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kshalnev/omim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kshalnev/omim/git/refs{/sha}","trees_url":"https://api.github.com/repos/kshalnev/omim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kshalnev/omim/statuses/{sha}","languages_url":"https://api.github.com/repos/kshalnev/omim/languages","stargazers_url":"https://api.github.com/repos/kshalnev/omim/stargazers","contributors_url":"https://api.github.com/repos/kshalnev/omim/contributors","subscribers_url":"https://api.github.com/repos/kshalnev/omim/subscribers","subscription_url":"https://api.github.com/repos/kshalnev/omim/subscription","commits_url":"https://api.github.com/repos/kshalnev/omim/commits{/sha}","git_commits_url":"https://api.github.com/repos/kshalnev/omim/git/commits{/sha}","comments_url":"https://api.github.com/repos/kshalnev/omim/comments{/number}","issue_comment_url":"https://api.github.com/repos/kshalnev/omim/issues/comments{/number}","contents_url":"https://api.github.com/repos/kshalnev/omim/contents/{+path}","compare_url":"https://api.github.com/repos/kshalnev/omim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kshalnev/omim/merges","archive_url":"https://api.github.com/repos/kshalnev/omim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kshalnev/omim/downloads","issues_url":"https://api.github.com/repos/kshalnev/omim/issues{/number}","pulls_url":"https://api.github.com/repos/kshalnev/omim/pulls{/number}","milestones_url":"https://api.github.com/repos/kshalnev/omim/milestones{/number}","notifications_url":"https://api.github.com/repos/kshalnev/omim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kshalnev/omim/labels{/name}","releases_url":"https://api.github.com/repos/kshalnev/omim/releases{/id}","created_at":"2015-09-30T10:46:32Z","updated_at":"2015-09-30T10:49:20Z","pushed_at":"2015-12-24T18:25:46Z","git_url":"git://github.com/kshalnev/omim.git","ssh_url":"git@github.com:kshalnev/omim.git","clone_url":"https://github.com/kshalnev/omim.git","svn_url":"https://github.com/kshalnev/omim","homepage":null,"size":1947145,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mapsme:master","ref":"master","sha":"2dfe2e807f77a8bebc422393cb9cbee54435925e","user":{"login":"mapsme","id":14185141,"avatar_url":"https://avatars.githubusercontent.com/u/14185141?v=3","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,"name":"omim","full_name":"mapsme/omim","owner":{"login":"mapsme","id":14185141,"avatar_url":"https://avatars.githubusercontent.com/u/14185141?v=3","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/Android/Mac/Linux/Windows","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}","created_at":"2015-09-20T02:57:13Z","updated_at":"2015-12-24T12:31:12Z","pushed_at":"2015-12-24T18:25:46Z","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":null,"size":2012382,"stargazers_count":1545,"watchers_count":1545,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":196,"mirror_url":null,"open_issues_count":89,"forks":196,"open_issues":89,"watchers":1545,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapsme/omim/pulls/1087"},"html":{"href":"https://github.com/mapsme/omim/pull/1087"},"issue":{"href":"https://api.github.com/repos/mapsme/omim/issues/1087"},"comments":{"href":"https://api.github.com/repos/mapsme/omim/issues/1087/comments"},"review_comments":{"href":"https://api.github.com/repos/mapsme/omim/pulls/1087/comments"},"review_comment":{"href":"https://api.github.com/repos/mapsme/omim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapsme/omim/pulls/1087/commits"},"statuses":{"href":"https://api.github.com/repos/mapsme/omim/statuses/317ea95ba312900c530ec9d62cc0a0b33d48e31d"}}}}